All files / src/entities notification.ts

100% Statements 48/48
100% Branches 0/0
100% Functions 1/1
100% Lines 46/46

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 1071x 1x 1x 1x 1x 1x 1x 1x 1x 1x   1x 1x   1x 1x 1x 1x   1x     1x     1x     1x     1x     1x     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 { Assignment } from './assignment.js';
import { Domain } from './domain.js';
import { Draft } from './draft.js';
import { DraftComment } from './draft_comment.js';
import { Entity } from '../entity.js';
import { MerchiFile } from './file.js';
import { Invoice } from './invoice.js';
import { Job } from './job.js';
import { JobComment } from './job_comment.js';
import { ProductionComment } from './production_comment.js';
import { Reminder } from './reminder.js';
import { ShortUrl } from './short_url.js';
import { User } from './user.js';
 
export class Notification extends Entity {
  protected static resourceName = 'notifications';
  protected static singularName = 'notification';
  protected static pluralName = 'notifications';
 
  @Notification.property({type: Date})
  public archived?: Date | null;
 
  @Notification.property()
  public id?: number;
 
  @Notification.property()
  public notificationType?: number;
 
  @Notification.property()
  public date?: Date;
 
  @Notification.property({type: Date})
  public emailOpenedAt?: Date | null;
 
  @Notification.property()
  public seen?: boolean;
 
  @Notification.property()
  public sendEmail?: boolean;
 
  @Notification.property()
  public sendSms?: boolean;
 
  @Notification.property()
  public urgency?: number;
 
  @Notification.property({type: String})
  public description?: string | null;
 
  @Notification.property({type: String})
  public subject?: string | null;
 
  @Notification.property()
  public message?: string;
 
  @Notification.property()
  public htmlMessage?: string;
 
  @Notification.property({type: String})
  public link?: string | null;
 
  @Notification.property()
  public section?: number;
 
  @Notification.property({type: ShortUrl})
  public shortUrl?: ShortUrl | null;
 
  @Notification.property()
  public recipient?: User;
 
  @Notification.property({type: User})
  public sender?: User | null;
 
  @Notification.property({type: Job})
  public relatedJob?: Job | null;
 
  @Notification.property({type: Draft})
  public relatedDraft?: Draft | null;
 
  @Notification.property({type: Assignment})
  public relatedAssignment?: Assignment | null;
 
  @Notification.property({type: Invoice})
  public relatedInvoice?: Invoice | null;
 
  @Notification.property({type: JobComment})
  public relatedJobComment?: JobComment | null;
 
  @Notification.property({type: DraftComment})
  public relatedDraftComment?: DraftComment | null;
 
  @Notification.property({type: ProductionComment})
  public relatedProductionComment?: ProductionComment | null;
 
  @Notification.property()
  public domain?: Domain;
 
  @Notification.property({type: MerchiFile})
  public avatar?: MerchiFile | null;
 
  @Notification.property({type: MerchiFile})
  public attachment?: MerchiFile | null;
 
  @Notification.property({arrayType: 'Reminder'})
  public reminders?: Reminder[];
}