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

    Persists import run history to a local JSON file for debugging and /status history.

    Implements

    Index
    • Binds the log to one path on one filesystem.

      Parameters

      • fileSystem: IFileSystem

        Injected filesystem access.

      • filePath: string

        Absolute path to the JSON audit log file.

      • maxEntries: number = DEFAULT_MAX_ENTRIES

        Maximum number of entries to retain in the log.

      Returns AuditLogService

    • Returns the readable entries among the most recent ones stored, up to the requested count. An unreadable entry still takes its place in the count. A file that cannot be read yields no entries.

      Parameters

      • count: number

        Maximum number of stored entries to read.

      Returns Procedure<IAuditEntry[]>

      Procedure containing an array of IAuditEntry objects, most recent last.

    • Counts how many consecutive recent entries have a failure for the given bank.

      Parameters

      • bankName: string

        The bank name to check for consecutive failures.

      Returns Procedure<number>

      Procedure containing the number of consecutive failures from the most recent entry.