feat: update Notifications front-end

Signed-off-by: Marek Libra <marek.libra@gmail.com>
This commit is contained in:
Marek Libra
2024-02-15 12:16:04 +01:00
parent ad327b9b8d
commit 758f2a40c5
18 changed files with 562 additions and 425 deletions
+1 -5
View File
@@ -16,7 +16,6 @@ type Notification_2 = {
created: Date;
saved?: Date;
read?: Date;
done?: Date;
updated?: Date;
origin: string;
payload: NotificationPayload;
@@ -27,7 +26,7 @@ export { Notification_2 as Notification };
export type NotificationPayload = {
title: string;
description?: string;
link: string;
link?: string;
severity: NotificationSeverity;
topic?: string;
scope?: string;
@@ -51,7 +50,4 @@ export type NotificationStatus = {
unread: number;
read: number;
};
// @public (undocumented)
export type NotificationType = 'undone' | 'done' | 'saved';
```
+1 -5
View File
@@ -14,9 +14,6 @@
* limitations under the License.
*/
/** @public */
export type NotificationType = 'undone' | 'done' | 'saved';
/** @public */
export type NotificationSeverity = 'critical' | 'high' | 'normal' | 'low';
@@ -24,7 +21,7 @@ export type NotificationSeverity = 'critical' | 'high' | 'normal' | 'low';
export type NotificationPayload = {
title: string;
description?: string;
link: string;
link?: string;
// TODO: Add support for additional links
// additionalLinks?: string[];
severity: NotificationSeverity;
@@ -40,7 +37,6 @@ export type Notification = {
created: Date;
saved?: Date;
read?: Date;
done?: Date;
updated?: Date;
origin: string;
payload: NotificationPayload;