This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/app/services/notifications/INotificationService.ts

17 lines
561 B
TypeScript

import { User } from 'domain/users'
import { Notification } from 'domain/notifications'
/**
* Notification service interface
*
* @export
* @interface INotificationService
*/
export interface INotificationService {
addNotification: (notification: Notification) => Promise<void>
getNotifications: (userId: string) => Promise<{[notifyId: string]: Notification}>
deleteNotification: (notificationId: string, userId: string) => Promise<void>
setSeenNotification: (notificationId: string, userId: string, notification: Notification) => Promise<void>
}