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

    Type Alias Trend

    Trend:
        | { reason: string; searched: TrendInput; status: "empty" }
        | {
            account: Account;
            breaks: number[];
            element: { id?: string; label: string };
            gaps: number[];
            points: TrendPoint[];
            quota: Quota;
            span?: {
                changePercent: number;
                from: number;
                perYearPercent: number;
                to: number;
            };
            status: "ok";
            unit: Unit;
        }

    The answer of getBudgetTrend.

    Type Declaration

    • { reason: string; searched: TrendInput; status: "empty" }
    • {
          account: Account;
          breaks: number[];
          element: { id?: string; label: string };
          gaps: number[];
          points: TrendPoint[];
          quota: Quota;
          span?: {
              changePercent: number;
              from: number;
              perYearPercent: number;
              to: number;
          };
          status: "ok";
          unit: Unit;
      }
      • account: Account
      • breaks: number[]

        Years with a label change (see renamedFrom): compare across them with care.

      • element: { id?: string; label: string }
      • gaps: number[]
      • points: TrendPoint[]
      • quota: Quota
      • Optionalspan?: { changePercent: number; from: number; perYearPercent: number; to: number }

        First and last year with a figure, the change between them in percent and per year (CAGR), one decimal.

      • status: "ok"
      • unit: Unit