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

    Interface ITwoFactorPrompter

    ITwoFactorPrompter — abstracts 2FA OTP collection from the scrape strategy.

    The Scraper layer depends on this interface only; the concrete TwoFactorService (which couples to TelegramNotifier) is wired by the composition root in src/Index.ts. This removes the only cross-layer concrete new in the codebase (Pattern D — Surgical Win).

    interface ITwoFactorPrompter {
        createOtpRetriever(
            bankName: string,
            timeoutSeconds?: number,
        ): () => Promise<string>;
    }

    Implemented by

    Index
    • Returns an async function that resolves an OTP code for the given bank.

      Parameters

      • bankName: string

        Bank name displayed to the user in the prompt.

      • OptionaltimeoutSeconds: number

        Optional per-bank timeout override; falls back to the prompter's configured default when omitted.

      Returns () => Promise<string>

      Async function that blocks until an OTP code is received.