All files / src/entities draft_comment.ts

100% Statements 27/27
100% Branches 0/0
100% Functions 1/1
100% Lines 25/25

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 611x 1x   1x   1x   1x 1x 1x 1x   1x     1x     1x     1x     1x     1x     1x     1x     1x     1x     1x     1x     1x     1x     1x     1x   1x  
import { Draft } from './draft.js';
import { Entity } from '../entity.js';
import { MerchiFile } from './file.js';
import { Job } from './job.js';
import { Notification } from './notification.js';
import { User } from './user.js';
 
export class DraftComment extends Entity {
  protected static resourceName = 'draft_comments';
  protected static singularName = 'draftComment';
  protected static pluralName = 'draftComments';
 
  @DraftComment.property({type: Date})
  public archived?: Date | null;
 
  @DraftComment.property()
  public id?: number;
 
  @DraftComment.property({type: Date})
  public date?: Date | null;
 
  @DraftComment.property({type: Date})
  public lastEditedTime?: Date | null;
 
  @DraftComment.property()
  public urgency?: number;
 
  @DraftComment.property()
  public text?: string;
 
  @DraftComment.property()
  public changeRequest?: boolean;
 
  @DraftComment.property()
  public sendSms?: boolean;
 
  @DraftComment.property()
  public sendEmail?: boolean;
 
  @DraftComment.property()
  public user?: User;
 
  @DraftComment.property()
  public lastEditedBy?: User;
 
  @DraftComment.property({arrayType: 'MerchiFile'})
  public files?: MerchiFile[];
 
  @DraftComment.property({arrayType: 'User'})
  public forwards?: User[];
 
  @DraftComment.property({arrayType: 'Notification'})
  public notifications?: Notification[];
 
  @DraftComment.property({type: Draft})
  public draft?: Draft | null;
 
  @DraftComment.property({type: Job})
  public job?: Job | null;
}