EU Parliament Monitor — API Documentation - v1.0.11
    Preparing search index...

    Module Config/ArticleHorizons

    Thin re-export barrel for the article-horizon registry.

    The original 603-LOC file was split into focused, single-responsibility modules under ./horizons/ as part of Refactor 2/8 (issue Hack23/euparliamentmonitor#2030):

    Module Contents
    ./horizons/types.ts ArticleHorizonConfig and supporting types
    ./horizons/artifact-paths.ts Artifact-path constants + shared mandatory lists
    ./horizons/stage-budgets.ts Shared stage-budget shapes + per-slug PR-call deadlines
    ./horizons/forward-projection.ts Forward-statement horizon + scenario-depth helpers
    ./horizons/registry.ts ARTICLE_HORIZONS constant (pure data)
    ./horizons/lookup.ts getHorizonConfig / getProspectiveSlugs / getElectoralOverlaySlugs / getMandatoryArtifacts

    Consumers continue to import from src/config/article-horizons.js — no import-path changes are required downstream.

    Adding a new article horizon remains a four-step change:

    1. New ArticleCategory enum value (src/types/article-categories.ts).
    2. New entry in ARTICLE_HORIZONS keyed by that category (./horizons/registry.ts).
    3. Per-language title generator in src/constants/language-articles.ts.
    4. New news-<slug>.md workflow under .github/workflows/.
    • analysis/methodologies/forward-projection-methodology.md
    • analysis/methodologies/electoral-cycle-methodology.md

    Functions

    getElectoralOverlaySlugs → getElectoralOverlaySlugs
    getHorizonConfig → getHorizonConfig
    getMandatoryArtifacts → getMandatoryArtifacts
    getProspectiveSlugs → getProspectiveSlugs

    Interfaces

    ArticleHorizonConfig → ArticleHorizonConfig
    CadenceConfig → CadenceConfig
    DataWindowConfig → DataWindowConfig
    StageBudgetConfig → StageBudgetConfig

    Type Aliases

    DataWindowAnchor → DataWindowAnchor
    DataWindowDirection → DataWindowDirection

    Variables

    ARTICLE_HORIZONS → ARTICLE_HORIZONS