feat: support saving and marking notifications done

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2023-12-15 16:13:57 +02:00
parent b3d70e2a4f
commit 49afb1823f
16 changed files with 431 additions and 56 deletions
@@ -11,11 +11,18 @@ type Notification_2 = {
description: string;
link: string;
icon?: string;
image?: string;
created: Date;
read?: Date;
saved: boolean;
};
export { Notification_2 as Notification };
// @public (undocumented)
export type NotificationIds = {
ids: string[];
};
// @public (undocumented)
export type NotificationStatus = {
unread: number;
@@ -26,8 +26,10 @@ export type Notification = {
link: string;
// TODO: Icon should be typed so that we know what to render
icon?: string;
image?: string;
created: Date;
read?: Date;
saved: boolean;
};
/** @public */
@@ -35,3 +37,8 @@ export type NotificationStatus = {
unread: number;
read: number;
};
/** @public */
export type NotificationIds = {
ids: string[];
};