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

    Class ParlamentsspiegelSource

    The portal as one Land's source.

    Split from the all-Länder adapter, which used to be the same class in a second mode. That class had to invent a parliament it did not have — the field was documented as "only names the adapter's default" — and the placeholder leaked twice: ka sources list reported one Land's record count under the aggregator row, and every aggregator-backed Land reported "never synced" straight after a sync because the two modes disagreed about what key meant. Two types cannot disagree about which fields they have.

    Implements

    Index
    • Parameters

      • parliament:
            | "bund"
            | "baden-wuerttemberg"
            | "bayern"
            | "berlin"
            | "brandenburg"
            | "bremen"
            | "hamburg"
            | "hessen"
            | "mecklenburg-vorpommern"
            | "niedersachsen"
            | "nordrhein-westfalen"
            | "rheinland-pfalz"
            | "saarland"
            | "sachsen"
            | "sachsen-anhalt"
            | "schleswig-holstein"
            | "thueringen"

      Returns ParlamentsspiegelSource

    homepage: "https://www.parlamentsspiegel.de/suche"

    Where a human can see the same data.

    key: string
    label: string
    notes: string

    What is genuinely specific about this source — quirks worth knowing.

    parliament:
        | "bund"
        | "baden-wuerttemberg"
        | "bayern"
        | "berlin"
        | "brandenburg"
        | "bremen"
        | "hamburg"
        | "hessen"
        | "mecklenburg-vorpommern"
        | "niedersachsen"
        | "nordrhein-westfalen"
        | "rheinland-pfalz"
        | "saarland"
        | "sachsen"
        | "sachsen-anhalt"
        | "schleswig-holstein"
        | "thueringen"

    The parliament this adapter is pinned to, when it is pinned to one. An adapter covering several Länder leaves it out rather than naming a placeholder: every ref it yields carries its own parliament, so there is nothing to fall back to.

    tier: "structured"

    The tier the pipeline runs for documents from this source.

    • How many Anfragen the upstream holds, asked with a request or two and no discovery — what ka sources count sets beside the corpus. Optional: a source that could only count by discovering everything leaves it out. A period the upstream cannot count by is a UsageError, not a number for something else.

      Parameters

      Returns Promise<UpstreamCount>