Optionalshared: EPSharedResourcesProtected ReadonlybaseEuropean Parliament API base URL.
Protected ReadonlycacheLRU cache for API responses.
Protected ReadonlyenableEnable automatic retry on transient failures.
Protected ReadonlymaxMaximum allowed response body size in bytes.
Protected ReadonlymaxMaximum number of retry attempts.
Protected ReadonlyrateToken bucket rate limiter.
Protected ReadonlytimeoutRequest timeout in milliseconds.
PrivatebuildBuilds EP API parameters for parliamentary question search.
Clears all entries from the LRU cache.
ProtectedevictEvicts a single cache entry matching the given endpoint and params. Sub-clients use this when they detect that a successfully-fetched payload is a content-pending sentinel that must not be served from cache for the remainder of the TTL — eviction lets availability recover as soon as the upstream document is enriched.
PrivatefilterApplies client-side filters to parliamentary questions.
ProtectedgetExecutes a cached, rate-limited GET request to the EP API.
Expected response type (extends Record<string, unknown>)
API endpoint path (relative to baseURL)
Optionalparams: Record<string, unknown>Optional query parameters
OptionalminimumTimeoutMs: numberOptional per-request minimum timeout in milliseconds.
When provided, the effective timeout is Math.max(minimumTimeoutMs, this.timeoutMs),
so the global timeout (set via --timeout or EP_REQUEST_TIMEOUT_MS) can still
extend it beyond the per-endpoint minimum.
Use for known slow EP API endpoints such as procedures/feed.
Promise resolving to the typed API response
Returns cache statistics for monitoring and debugging.
{ size, maxSize, hitRate, hits, misses }
Returns a single parliamentary question by document ID.
EP API Endpoint: GET /parliamentary-questions/{doc-id}
Retrieves parliamentary questions with filtering by type, author, and status.
EP API Endpoint: GET /parliamentary-questions
type, author, topic, status, dateFrom, dateTo, limit, offset
Paginated parliamentary questions list
Retrieves recently updated parliamentary questions via the feed endpoint.
EP API Endpoint: GET /parliamentary-questions/feed
Fixed-window feed — no timeframe parameter per OpenAPI spec.
Extended timeout applied (120 s minimum).
Privatetransform
Sub-client for parliamentary-questions EP API endpoints.