EU Parliament Monitor — API Documentation - v0.8.48
    Preparing search index...

    Function deriveReportingWindowForWeekInReview

    • Return the D-36 → D-8 reporting window for the week-in-review article type. EP roll-call voting data is published with a 2–6 week lag, so using the most-recent 7 days structurally produces a vote-empty dataset. Shifting 8 days back and widening to 28 days (start = D-36, end = D-8) ensures the window always contains at least one full EP plenary week with published roll-call data (ADR-006). Direction is consistent with the workflow's DATE_FROM (start = D-36) → DATE_TO (end = D-8) variables.

      Parameters

      • date: string

        ISO article date string (YYYY-MM-DD) — typically TODAY

      Returns { start: string; end: string }

      { start: D-36, end: D-8 } both as YYYY-MM-DD ISO strings