Lime Web Components API Documentation - v6.24.0
    Preparing search index...

    Interface NotificationRepositoryBeta

    Service for handling notifications

    interface NotificationRepository {
        delete(notification: Notification): Promise<void>;
        get(notificationId: number): Notification;
        loadAll(options?: NotificationLoadOptions): Promise<NotificationResponse>;
        markAsRead(
            notification: Notification,
            read?: boolean,
        ): Promise<Notification>;
    }
    Index

    Methods

    • Beta

      Delete a notification

      Parameters

      Returns Promise<void>

    • Beta

      Get a loaded notification by its id

      Parameters

      • notificationId: number

        the id of the notification to get

      Returns Notification

      the fetched notification

    • Beta

      Mark a notification as read or unread

      Parameters

      • notification: Notification

        the notification to update

      • Optionalread: boolean

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

      Returns Promise<Notification>

      the updated notification