File

src/notification/entities/notification.entity.ts

Index

Properties

Constructor

constructor(partial: Partial<Notification>)
Parameters :
Name Type Optional
partial Partial<Notification> No

Properties

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);
  }
}

results matching ""

    No results matching ""