NotificationService
Source: NotificationService.ts:3
Service for managing user notifications.
Constructor
new NotificationService(): NotificationServiceInstance Methods
getAll(): Promise.<Array>
Get all notifications for the user.
Returns
Promise.<Array>— Array of notification objects
markAsNotRead(notificationId: string): Promise.<Object>
Mark a notification as not read.
Parameters
notificationId(string) — ID of the notification to mark as not read
Returns
Promise.<Object>— Response data
markAsRead(notificationId: string): Promise.<Object>
Mark a notification as read.
Parameters
notificationId(string) — ID of the notification to mark as read
Returns
Promise.<Object>— Response data
delete(notificationId: string): Promise.<Object>
Delete a notification by its ID.
Parameters
notificationId(string) — ID of the notification to delete
Returns
Promise.<Object>— Response data