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

    Class ConfigLoader

    Loads IImporterConfig from config.json, credentials.json, or environment variables.

    Implements

    Index
    • Creates a ConfigLoader pointing at the given config file path.

      Parameters

      • configPath: string = DEFAULT_CONFIG_PATH

        Absolute path to config.json; defaults to DEFAULT_CONFIG_PATH.

      Returns ConfigLoader

    • Loads and merges the on-disk config (config.json + credentials.json) WITHOUT applying runtime environment overrides, so an ephemeral variable such as PROXY_SERVER is never folded in and then baked into the file. The portal store — which edits this config and writes it back — uses this so a runtime override can never be silently persisted over the operator's real config.

      Returns Procedure<IImporterConfig>

      Procedure containing the file-merged IImporterConfig or a failure.

    • Boot-gate validation seam: enforces the exact "is this config bootable?" rules the importer applies at startup, without file loading. The portal write-gate calls this so a saved config can never pass the portal yet make the importer exit(1). Delegates to the loader's own private validation, the same check the loader runs after merging files, so the two cannot drift.

      Parameters

      Returns Procedure<IImporterConfig>

      Procedure with the validated config, or a config-error failure.