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

    Interface DocRef

    One Anfrage the source found, with everything it knows for certain about it.

    interface DocRef {
        answered_by: AnsweredBy;
        askers: Asker[];
        dates: Dates;
        documents: DocRefDocument[];
        documentType: "kleine_anfrage" | "schriftliche_anfrage" | "grosse_anfrage";
        formerly?: string[];
        key: string;
        legislative_period: number;
        parliament?:
            | "bund"
            | "baden-wuerttemberg"
            | "bayern"
            | "berlin"
            | "brandenburg"
            | "bremen"
            | "hamburg"
            | "hessen"
            | "mecklenburg-vorpommern"
            | "niedersachsen"
            | "nordrhein-westfalen"
            | "rheinland-pfalz"
            | "saarland"
            | "sachsen"
            | "sachsen-anhalt"
            | "schleswig-holstein"
            | "thueringen";
        reference: string;
        replaces?: string[];
        title: string;
    }
    Index
    answered_by: AnsweredBy
    askers: Asker[]
    dates: Dates
    documents: DocRefDocument[]
    documentType: "kleine_anfrage" | "schriftliche_anfrage" | "grosse_anfrage"
    formerly?: string[]

    References this ref was filed under before, wrongly: Sachsen-Anhalt's unanswered questions were filed under their KA number read as a Drucksache (8/3985), where they took the id of an older answer. A stored record there that holds this ref's own documents is that misfiled copy, and is removed once the ref is stored.

    key: string

    Stable within the source; used for de-duplication across runs.

    legislative_period: number
    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 Anfrage belongs to, when the source covers more than one. The Parlamentsspiegel aggregates 16 Länder, so each result names its own; a single-parliament source leaves this out and the source's key applies.

    reference: string
    replaces?: string[]

    References of earlier refs this one is the continuation of: Sachsen-Anhalt lists an unanswered question under its own number (KA 8/3417) and its answer later as a Drucksache that cites it — "Drucksache 8/6424 (KA 8/3417)". The pipeline carries the question's date over from such a record and removes it (issue #22).

    title: string