Service for handling notifications

Hierarchy

  • NotificationRepository

Methods

  • Delete a notification

    Parameters

    • notification: Notification<unknown>

      the notification to delete

    Returns Promise<void>

  • Gets a loaded notification by its id

    Returns

    the fetched notification

    Parameters

    • notificationId: number

      the id of the notification to get

    Returns Notification<unknown>

  • Marks a notification as read

    Returns

    the updated notification

    Parameters

    • notification: Notification<unknown>

      the notification to mark as read

    Returns Promise<Notification<unknown>>