Creates an ImportMediator wired to the given dependencies.
Dependencies including spawn function, bank names, and notifier.
Requests an import, isolating each bank in its own child process.
One child per bank is a containment boundary, not an optimisation: a bank whose scrape is killed by the kernel OOM reaper cannot be caught in-process, so sharing a process across banks lets one bad bank cancel every other one.
Import request options including banks, source, and extra env.
The batch ID, or false if an import is already active.
Returns a promise that resolves when the batch completes.
The batch ID returned by requestImport.
Promise resolving to the IBatchResult.
Returns whether any import is currently active.
True if the queue is busy.
Returns the most recent completed batch result.
Last IBatchResult, or null if none.
Returns the timestamp of the last completed batch.
Date of last completion, or null.
Domain-aware orchestrator for import requests from any source.