All files / src/models/Data PrjDocumentData.ts

0% Statements 0/43
100% Branches 0/0
0% Functions 0/24
0% Lines 0/42

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214                                                                                                                                                                                                                                                                                                                                                                                                                                           
/* eslint-disable @typescript-eslint/naming-convention */
import { fieldConfig } from 'src/classes/decorators/FieldConfigDecorator';
import { ImplementsStatic } from 'src/classes/decorators/ImplementsStatic';
import { toStringField } from 'src/classes/decorators/ToStringFieldDecorator';
import { IFileType } from 'src/libs/FileType/interfaces/IFileType';
import { YamlKeyMap } from 'src/types/YamlKeyMap';
import { IPrjData_ } from './interfaces/IPrjData';
import { IPrjDocument } from './interfaces/IPrjDocument';
import { PrjData } from './PrjData';
 
/**
 * Implementation of the PrjTaskManagementModel class.
 */
@ImplementsStatic<IPrjData_<unknown>>()
export class PrjDocumentData
    extends PrjData<PrjDocumentData>
    implements IPrjDocument
{
    protected _uid: string | null | undefined;
    protected _date: string | null | undefined;
    protected _sender: string | null | undefined;
    protected _recipient: string | null | undefined;
    protected _dateOfDelivery: string | null | undefined;
    protected _hide: boolean | null | undefined;
    protected _dontChangePdfPath: boolean | null | undefined;
    protected _file: string | null | undefined;
    protected _relatedFiles: string[] | null | undefined;
    protected _citationTitle: string | null | undefined;
    protected _annotationTarget: string | null | undefined;
 
    static yamlKeyMap: YamlKeyMap = {
        annotationTarget: 'annotation-target',
    };
 
    /**
     * @inheritdoc
     * @remarks The default value is `Metadata`.
     */
    @fieldConfig('Metadata')
    get type(): IFileType | null | undefined {
        return super.type;
    }
 
    /**
     * @inheritdoc
     */
    set type(value: unknown) {
        super.type = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get uid(): string | null | undefined {
        return this._uid;
    }
    /**
     * @inheritdoc
     */
    set uid(value: string | null | undefined) {
        this._uid = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get date(): string | null | undefined {
        return this._date;
    }
    /**
     * @inheritdoc
     */
    set date(value: string | null | undefined) {
        this._date = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get sender(): string | null | undefined {
        return this._sender;
    }
    /**
     * @inheritdoc
     */
    set sender(value: string | null | undefined) {
        this._sender = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get recipient(): string | null | undefined {
        return this._recipient;
    }
    /**
     * @inheritdoc
     */
    set recipient(value: string | null | undefined) {
        this._recipient = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get dateOfDelivery(): string | null | undefined {
        return this._dateOfDelivery;
    }
    /**
     * @inheritdoc
     */
    set dateOfDelivery(value: string | null | undefined) {
        this._dateOfDelivery = value;
    }
 
    /**
     * @inheritdoc
     */
    @fieldConfig()
    get hide(): boolean | null | undefined {
        return this._hide;
    }
    /**
     * @inheritdoc
     */
    set hide(value: boolean | null | undefined) {
        this._hide = value;
    }
 
    /**
     * @inheritdoc
     */
    @fieldConfig()
    get dontChangePdfPath(): boolean | null | undefined {
        return this._dontChangePdfPath;
    }
    /**
     * @inheritdoc
     */
    set dontChangePdfPath(value: boolean | null | undefined) {
        this._dontChangePdfPath = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get file(): string | null | undefined {
        return this._file;
    }
    /**
     * @inheritdoc
     */
    set file(value: string | null | undefined) {
        this._file = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get relatedFiles(): string[] | null | undefined {
        return this._relatedFiles;
    }
    /**
     * @inheritdoc
     */
    set relatedFiles(value: string[] | null | undefined) {
        this._relatedFiles = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get citationTitle(): string | null | undefined {
        return this._citationTitle;
    }
    /**
     * @inheritdoc
     */
    set citationTitle(value: string | null | undefined) {
        this._citationTitle = value;
    }
 
    /**
     * @inheritdoc
     */
    @toStringField
    @fieldConfig()
    get annotationTarget(): string | null | undefined {
        return this._annotationTarget;
    }
    /**
     * @inheritdoc
     */
    set annotationTarget(value: string | null | undefined) {
        this._annotationTarget = value;
    }
}
 
Zur TypeDoc-Dokumentation