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

    Type Alias Breakdown

    Breakdown:
        | { reason: string; searched: BudgetParams; status: "empty" }
        | {
            account: Account;
            element: {
                id?: string;
                label: string;
                level?: number;
                maxLevel?: number;
                path: { id: string; label: string }[];
                value: number;
            };
            leaf: boolean;
            modified?: string;
            pdf?: string[];
            quota: Quota;
            related?: Record<string, { id: string; label: string }[]>;
            rest?: { count: number; value: number };
            rows: BreakdownRow[];
            rowsAre?: string;
            status: "ok";
            unit: Unit;
            year: number;
        }

    The answer of getBudgetBreakdown.

    Type Declaration

    • { reason: string; searched: BudgetParams; status: "empty" }
    • {
          account: Account;
          element: {
              id?: string;
              label: string;
              level?: number;
              maxLevel?: number;
              path: { id: string; label: string }[];
              value: number;
          };
          leaf: boolean;
          modified?: string;
          pdf?: string[];
          quota: Quota;
          related?: Record<string, { id: string; label: string }[]>;
          rest?: { count: number; value: number };
          rows: BreakdownRow[];
          rowsAre?: string;
          status: "ok";
          unit: Unit;
          year: number;
      }
      • account: Account
      • element: {
            id?: string;
            label: string;
            level?: number;
            maxLevel?: number;
            path: { id: string; label: string }[];
            value: number;
        }

        The element broken down: its label, its amount in euros, its depth and its path from the top.

      • leaf: boolean

        At a leaf (a Titel), which has no children: the same line in the other groupings, and its pages in the Haushaltsplan.

      • Optionalmodified?: string

        The view's last change at the portal (dd.mm.yyyy).

      • Optionalpdf?: string[]
      • quota: Quota
      • Optionalrelated?: Record<string, { id: string; label: string }[]>
      • Optionalrest?: { count: number; value: number }

        The children past limit, summed.

      • rows: BreakdownRow[]

        The element's children by amount, largest first.

      • OptionalrowsAre?: string

        What the rows are (Einzelplan, Kapitel, Titel, Hauptgruppe, …); absent at a leaf.

      • status: "ok"
      • unit: Unit
      • year: number