Hierarchy

  • BaseMongoEntity
    • MessageEntity

Implements

Constructors

Properties

category: string

Category of the message

content: string

Message content

customFields?: Record<string, unknown>

Custom fields

priority: string

Priority of the message

publications: {
    since?: number;
    until?: number;
}

The message can be accessed during publication times

Type declaration

  • Optional since?: number

    Publication displayed since

  • Optional until?: number

    Publication displayed until

readBy?: {
    readAt: Date;
    userId: string;
}[]

Read by list

Type declaration

  • readAt: Date

    Date of read at

  • userId: string

    User ID of the read

readStatus?: "read" | "unread"

Read status

senderId: string

Message sender ID

senderType: string

Message sender type

shouldSendMail?: boolean

Should email be sent

title: string

Message title

topicId: string

Topic ID of the message

typeId: string

Type ID of the message

Generated using TypeDoc