template-for-typescript-projects
    Preparing search index...

    Coordinates alert creation, delivery, and repository operations.

    The persistence implementation for alerts.

    The transport responsible for sending alerts.

    Index

    Constructors

    Methods

    • Creates an alert from the given command, attempts delivery, and persists state.

      Applies spam mitigation: If an unread alert for the same threshold exists and was created within the last hour, creation is skipped.

      Parameters

      Returns Promise<AlertId | null>

      The created alert identifier, or null if suppressed.

    • Retrieves an alert by its string identifier.

      Parameters

      • id: string

        The string identifier of the alert.

      Returns Promise<Alert>

      The Alert instance when found.

      If no alert exists for the provided identifier.