Notification<T>: {
    createdTime: Date;
    createdUser?: CreatedUser;
    data?: T;
    id: number;
    limetype?: string;
    objectId?: number;
    read?: Date;
    type?: NotificationType;
    userId: number;
}

A Notification object

Type Parameters

  • T = unknown

Type declaration

  • createdTime: Date

    Date when the notification was created

  • Optional createdUser?: CreatedUser

    ID and limetype of the user object that created the notification

  • Optional data?: T

    Data attached to the notification

  • id: number

    The notification id

  • Optional limetype?: string

    Limetype that the notification is attached to

  • Optional objectId?: number

    ID of the object the notification is attached to

  • Optional read?: Date

    Date when the notification was marked as read

  • Optional type?: NotificationType

    Type of notification

  • userId: number

    ID of the user the notification belongs to