EU Parliament Monitor — API Documentation - v0.8.43
    Preparing search index...
    • Parse a run slug such as breaking-run192, week-in-review-run45 or committee-reports-run07 into its canonical run-type slug (e.g. breaking, week-in-review, committee-reports) plus the run index (e.g. 192, 45, 07). When the slug doesn't match any known prefix the caller receives type: null and the raw slug as runId.

      Parameters

      • slug: string

        Run directory slug

      Returns {
          type:
              | "week-ahead"
              | "month-ahead"
              | "year-ahead"
              | "week-in-review"
              | "month-in-review"
              | "year-in-review"
              | "breaking"
              | "committee-reports"
              | "motions"
              | "propositions"
              | "committee"
              | "deep"
              | "weekly-review"
              | "monthly-review"
              | "translate"
              | null;
          runId: string;
      }

      Object with the canonical type (or null) and run-id tail