Skip to main content

LiveNotification

type LiveNotification = {
[key: string]: unknown;
assignedByUid?: string | null;
createdAt: Date;
fromUid?: string;
fromUser?: {
email: string;
fullName: string;
id: string;
imageId: string | null;
};
id: string;
invitationId?: string;
invitationSecret?: string;
isDeleted?: boolean;
isUnread: boolean;
itemContent?: string;
itemId?: string;
notificationType: string;
projectId?: string;
projectName?: string;
responsibleUid?: string | null;
};

Live notification resource from the Sync API.

Uses a loose object schema with commonly-present fields for forward compatibility. The Sync API returns 20+ notification variants; fully typing each is too fragile for a library, so we validate the common shape and preserve all extra fields.

Type Declaration

Index Signature

[key: string]: unknown
NameTypeDefault value
assignedByUid?string | null-
createdAtDate-
fromUid?string-
fromUser?{ email: string; fullName: string; id: string; imageId: string | null; }-
fromUser.emailstring-
fromUser.fullNamestring-
fromUser.idstringStringOrNumberSchema
fromUser.imageIdstring | null-
idstring-
invitationId?string-
invitationSecret?string-
isDeleted?boolean-
isUnreadboolean-
itemContent?string-
itemId?string-
notificationTypestring-
projectId?string-
projectName?string-
responsibleUid?string | null-