pushover-notification - v1.0.3
    Preparing search index...

    Class NotificationStore

    Persistent notification storage with YAML backend and Pushover integration

    Benachrichtigungsspeicher

    Notification Management System

    const store = new NotificationStore('./data/notifications.yaml', {
    userKey: 'pushover-user-key',
    apiToken: 'pushover-api-token'
    });
    Index

    Constructors

    Methods

    • Returns void

      clearAll

      Clears all notifications from storage

    • Parameters

      • notification: Omit<
            NotificationData,
            "id"
            | "read"
            | "createdAt"
            | "pushoverSent"
            | "pushoverReceipt",
        >

        Notification data

      Returns Promise<NotificationData>

      Created notification with system fields

      create

      Creates new notification with optional Pushover delivery

      await store.create({
      title: 'New Message',
      message: 'You have a new notification',
      recipient: 'user@example.com'
      });
    • Parameters

      • id: string

        Notification ID

      Returns boolean

      Deletion success status

      delete

      Removes notification by ID

    • Parameters

      • recipient: string

        Target recipient identifier

      Returns NotificationData[]

      Filtered notifications array

      getAll

      Retrieves all notifications for a recipient (sorted by date)

    • Parameters

      • id: string

        Notification ID

      Returns undefined | NotificationData

      Found notification or undefined

      getById

      Finds notification by ID

    • Parameters

      • id: string

        Notification ID

      Returns undefined | NotificationData

      Updated notification or undefined

      markAsRead

      Updates notification read status