interface Message {
    category: string;
    content: string;
    customFields?: Record<string, unknown>;
    priority: string;
    publications: {
        since?: number;
        until?: number;
    };
    readBy?: {
        readAt: Date;
        userId: string;
    }[];
    readStatus?: "read" | "unread";
    senderId: string;
    senderType: string;
    shouldSendMail?: boolean;
    title: string;
    topicId: string;
    typeId: string;
}

Hierarchy

  • WithCustomFields
    • Message

Implemented by

Properties

category: string
content: string
customFields?: Record<string, unknown>
priority: string
publications: {
    since?: number;
    until?: number;
}

Type declaration

  • Optional since?: number
  • Optional until?: number
readBy?: {
    readAt: Date;
    userId: string;
}[]

Type declaration

  • readAt: Date
  • userId: string
readStatus?: "read" | "unread"
senderId: string
senderType: string
shouldSendMail?: boolean
title: string
topicId: string
typeId: string

Generated using TypeDoc