27 lines
772 B
TypeScript
27 lines
772 B
TypeScript
export type AdminNotificationRow = {
|
|
id: string;
|
|
title: string;
|
|
body_encrypted: string | null;
|
|
severity: string;
|
|
alert_id: string | null;
|
|
read_at: Date | null;
|
|
created_at: Date;
|
|
};
|
|
export declare function createNotification(input: {
|
|
title: string;
|
|
body?: string;
|
|
severity?: string;
|
|
alertId?: string | null;
|
|
}): Promise<AdminNotificationRow>;
|
|
export declare function listNotifications(opts: {
|
|
unreadOnly?: boolean;
|
|
limit?: number;
|
|
offset?: number;
|
|
}): Promise<{
|
|
items: AdminNotificationRow[];
|
|
total: number;
|
|
unreadCount: number;
|
|
}>;
|
|
export declare function markRead(id: string): Promise<void>;
|
|
export declare function markAllRead(): Promise<void>;
|
|
//# sourceMappingURL=adminNotificationRepository.d.ts.map
|