External module "crud/notification"
Functions
Const createNotification
- createNotification(notification: Notification): Promise<Object>
-
Parameters
Returns Promise<Object>
Const deleteNotification
- deleteNotification(notificationId: number): Promise<Object>
-
Parameters
Returns Promise<Object>
Const getNotification
- getNotification(notificationId: number): Promise<Notification>
-
Parameters
Const getUserNotifications
- getUserNotifications(userId: number): Promise<Notification[]>
-
Parameters
Const updateNotification
- updateNotification(notificationId: number, data: KeyValue): Promise<Object>
-
Parameters
Returns Promise<Object>
Create a notification