Israeli Bank Importer - v1.44.5
    Preparing search index...

    Function validateNotifications

    • Validates notification settings (Telegram and webhook) when notifications are enabled.

      Returns success immediately when the block is disabled — a "notifications off" config needs no channel — mirroring checkNotificationsOffline so the two validators agree on the enabled gate.

      Iterates NOTIFICATION_CHANNEL_VALIDATORS instead of an if-chain so adding a new channel (e.g., Slack) does not modify this dispatcher.

      Disabled notifications are a no-op: the channel requirement only applies when enabled is true, so users can persist a "notifications off" block.

      Parameters

      Returns Procedure<{ valid: true }>

      Procedure with valid: true on success, or first channel failure.