Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...

    Main scan. Returns { rows, totals } so callers (tests, CLI) can decide how to surface the result.

    interface ScanResult {
    ย ย ย ย rows: readonly ReportRow[];
    ย ย ย ย totals: {
    ย ย ย ย ย ย ย ย filesScanned: number;
    ย ย ย ย ย ย ย ย filesMatched: number;
    ย ย ย ย ย ย ย ย filesWithViolations: number;
    ย ย ย ย ย ย ย ย totalViolations: number;
    ย ย ย ย ย ย ย ย tierCounts: Record<Tier, number>;
    ย ย ย ย ย ย ย ย uncategorised: number;
    ย ย ย ย };
    }
    Index
    rows: readonly ReportRow[]
    totals: {
    ย ย ย ย filesScanned: number;
    ย ย ย ย filesMatched: number;
    ย ย ย ย filesWithViolations: number;
    ย ย ย ย totalViolations: number;
    ย ย ย ย tierCounts: Record<Tier, number>;
    ย ย ย ย uncategorised: number;
    }

    Type Declaration

    • ReadonlyfilesScanned: number

      Files present in the news/ directory (before any filter).

    • ReadonlyfilesMatched: number

      Files that passed --lang / --date-* / --tier filters and contributed to the report. Equal to filesScanned when no filters are active.

    • ReadonlyfilesWithViolations: number
    • ReadonlytotalViolations: number
    • ReadonlytierCounts: Record<Tier, number>
    • Readonlyuncategorised: number