Service for handling notifications

Hierarchy

  • NotificationRepository

Methods

  • Delete a notification

    Parameters

    • notification: Notification<unknown>

      the notification to delete

    Returns Promise<void>

  • Get a loaded notification by its id

    Returns

    the fetched notification

    Parameters

    • notificationId: number

      the id of the notification to get

    Returns Notification<unknown>

  • Mark a notification as read or unread

    Returns

    the updated notification

    Parameters

    • notification: Notification<unknown>

      the notification to update

    • Optional read: boolean

      optional - whether the notification should be marked as read or unread. Defaults to true

    Returns Promise<Notification<unknown>>