@maschinenlesbar.org/openka-cli
    Preparing search index...

    Interface SourceCountRow

    interface SourceCountRow {
        basis?: string;
        error?: unknown;
        in_corpus: number;
        missing?: number;
        note?: string;
        parliament: string | undefined;
        source: string;
        upstream?: number;
    }
    Index
    basis?: string

    Where upstream comes from: "DIP numFound", "Parlamentsspiegel".

    error?: unknown

    The error behind note, for a caller that wants to rethrow it — a UsageError for a count asked in a way the upstream cannot answer. Not serialisable: leave it out of JSON.

    in_corpus: number

    Records the corpus holds for the source's parliament (all Länder for an aggregator).

    missing?: number

    upstream - in_corpus, never below zero; absent without upstream.

    note?: string

    Why upstream is absent.

    parliament: string | undefined

    Absent for an aggregator, which counts every Land it covers.

    source: string
    upstream?: number

    What the upstream says it holds; absent when it could not be asked (note says why).