feat: implement comprehensive notification engine with policies, preferences, and automated dispatching services
This commit is contained in:
@@ -63,6 +63,11 @@ export type CreateSystemNotificationParams = {
|
||||
code?: string;
|
||||
};
|
||||
|
||||
export type CreateSystemNotificationBySystemParams = CreateSystemNotificationParams & {
|
||||
userId: string;
|
||||
systemToken: string;
|
||||
};
|
||||
|
||||
export type UpdateSystemNotificationParams = {
|
||||
id: string;
|
||||
readed: boolean;
|
||||
@@ -119,6 +124,7 @@ export interface ISystemNotificationsAdapter {
|
||||
export interface ISystemNotificationsManager {
|
||||
notifications: ISystemNotificationsAdapter;
|
||||
createNotification(data: CreateSystemNotificationParams): Promise<ISystemNotification>;
|
||||
createNotificationBySystem(data: CreateSystemNotificationBySystemParams): Promise<ISystemNotification>;
|
||||
updateNotification(data: UpdateSystemNotificationParams): Promise<void>;
|
||||
deleteNotification(data: DeleteSystemNotificationParams): Promise<void>;
|
||||
deleteConversationNotifications(data: DeleteSystemNotificationsByConversation): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user