feat: support saving and marking notifications done
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
@@ -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[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user