feat: follow-up changes on BEP #22641

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-02-02 13:30:34 +02:00
parent b3c3672b64
commit acbe630b9d
16 changed files with 236 additions and 251 deletions
+20 -12
View File
@@ -17,19 +17,32 @@
/** @public */
export type NotificationType = 'undone' | 'done' | 'saved';
/** @public */
export type NotificationSeverity = 'critical' | 'high' | 'normal' | 'low';
/** @public */
export type NotificationPayload = {
title: string;
description?: string;
link: string;
// TODO: Add support for additional links
// additionalLinks?: string[];
severity: NotificationSeverity;
topic?: string;
scope?: string;
icon?: string;
};
/** @public */
export type Notification = {
id: string;
userRef: string;
title: string;
description: string;
link: string;
topic?: string;
created: Date;
updated?: Date;
saved?: Date;
read?: Date;
done?: Date;
saved: boolean;
updated?: Date;
origin: string;
payload: NotificationPayload;
};
/** @public */
@@ -37,8 +50,3 @@ export type NotificationStatus = {
unread: number;
read: number;
};
/** @public */
export type NotificationIds = {
ids: string[];
};