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

    Type Alias StationRanking

    StationRanking:
        | {
            aboveZero?: number;
            basis: "annualBalance"
            | "transgressions";
            basisNote: string;
            columns: Record<string, string>;
            component: ComponentInfo | { id: number };
            limit?: ColumnLimit;
            metric: { column: number; text: string };
            nextOffset?: number;
            notes: string[];
            overLimit?: number;
            period?: { from: string; stationsEndingEarlier: number; to: string };
            searched: Record<string, unknown>;
            stationCount: number;
            stations: RankedStation[];
            status: "ok";
            unknownStations: number;
            withoutFigure: number;
            year: number;
        }
        | { reason: string; searched: Record<string, unknown>; status: "empty" }

    The answer of rankStations.

    Type Declaration

    • {
          aboveZero?: number;
          basis: "annualBalance" | "transgressions";
          basisNote: string;
          columns: Record<string, string>;
          component: ComponentInfo | { id: number };
          limit?: ColumnLimit;
          metric: { column: number; text: string };
          nextOffset?: number;
          notes: string[];
          overLimit?: number;
          period?: { from: string; stationsEndingEarlier: number; to: string };
          searched: Record<string, unknown>;
          stationCount: number;
          stations: RankedStation[];
          status: "ok";
          unknownStations: number;
          withoutFigure: number;
          year: number;
      }
      • OptionalaboveZero?: number

        For a count: how many stations counted at least one.

      • basis: "annualBalance" | "transgressions"
      • basisNote: string
      • columns: Record<string, string>

        Every column of the table, by number.

      • component: ComponentInfo | { id: number }
      • Optionallimit?: ColumnLimit
      • metric: { column: number; text: string }

        The column ranked on: its number and UBA's text (what is counted, with the unit).

      • OptionalnextOffset?: number
      • notes: string[]
      • OptionaloverLimit?: number
      • Optionalperiod?: { from: string; stationsEndingEarlier: number; to: string }

        Transgressions: the period covered.

      • searched: Record<string, unknown>
      • stationCount: number
      • stations: RankedStation[]
      • status: "ok"
      • unknownStations: number
      • withoutFigure: number
      • year: number
    • { reason: string; searched: Record<string, unknown>; status: "empty" }