EU Parliament Monitor — API Documentation - v0.8.30
    Preparing search index...
    • Run the complete fetch → build → write cycle for one article type.

      Iterates over languages, calls the strategy for content and metadata, generates the full HTML wrapper and writes each file through the output stage. Catches all errors so the caller can continue with other types.

      Deduplication operates at the slug level: dedupSuffix (e.g. "-2") is appended to strategy.type to produce unique filenames and URLs, while analysisDir is passed through to the template for transparency links.

      Parameters

      • strategy: ArticleStrategyBase

        Concrete strategy for the target article category

      • client: EuropeanParliamentMCPClient | null

        Connected MCP client or null

      • languages: readonly LanguageCode[]

        Target language codes

      • outputOptions: OutputOptions

        Dry-run, skip-existing and directory flags

      • stats: GenerationStats

        Mutable stats object to increment counters on

      • dedupSuffix: string = ''

        Dedup suffix including leading hyphen (e.g. "-2") or empty string; applied per-strategy to slugs

      • OptionalanalysisDir: string

        Optional resolved analysis directory basename (e.g. "breaking-2") for transparency links

      • OptionalanalysisFiles: readonly AnalysisFileEntry[]

        Optional manifest-derived analysis file entries for dynamic transparency links

      Returns Promise<GenerationResult>

      Generation result with success flag, file count and slug