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

    Function recordPendingDocument

    • Record a document as CONTENT_PENDING.

      Idempotent: if the docId is already tracked as PENDING the function increments attempts, updates lastProbedAt, and recomputes nextProbeAfterfirstObservedAt is never overwritten. If the docId already has a terminal status (RESOLVED, ESCALATED) it is left unchanged.

      Parameters

      • docId: string

        Adopted-text identifier (e.g., "TA-10-2026-0104")

      • OptionalstorePath: string

        Path override (for test isolation)

      • now: Date = ...

        Reference time (defaults to new Date())

      Returns Promise<PendingDocument>

      The updated or newly created PendingDocument