src/notification/entities/notification.entity.ts
Properties |
constructor(partial: Partial<Notification>)
|
||||||
|
Parameters :
|
| body |
Type : string
|
| channel |
Type : string
|
| Optional createdAt |
Type : Date
|
| entityId |
Type : number
|
| entityType |
Type : string
|
| eventIdentifier |
Type : string
|
| eventType |
Type : string
|
| Optional extraData |
Type : any
|
| id |
Type : number
|
| Optional notifiedAt |
Type : Date
|
| Optional notifier |
Type : string
|
| projectId |
Type : number
|
| severity |
Type : string
|
| status |
Type : string
|
| subject |
Type : string
|
| Optional updatedAt |
Type : Date
|
| userId |
Type : string
|
export class Notification {
id: number;
projectId: number;
subject: string;
body: string;
status: string;
severity: string;
channel: string;
notifier?: string;
userId: string;
entityId: number;
entityType: string;
eventType: string;
eventIdentifier: string;
notifiedAt?: Date;
createdAt?: Date;
updatedAt?: Date;
extraData?: any;
constructor(partial: Partial<Notification>) {
Object.assign(this, partial);
}
}