/** * Parameter mapping and query builder for `search_tenders`. * * The simap API uses different parameter names than our tool surface * (e.g. `cantons` → `orderAddressCantons`). Keeping the mapping and the * default-filter logic here — rather than hardcoded in the handler — makes * it easy to inspect, test, and extend. */ import type { SearchTendersInput } from "./search-tenders.js"; /** * User-facing parameter name → simap API query parameter name. * * Every key of SearchTendersInput (except `lang`, which does not hit the API * directly as a filter) should appear here so that the mapping is complete. */ export declare const SEARCH_TENDERS_PARAM_MAP: { readonly search: "search"; readonly publicationFrom: "newestPublicationFrom"; readonly publicationUntil: "newestPublicationUntil"; readonly projectSubTypes: "projectSubTypes"; readonly cantons: "orderAddressCantons"; readonly processTypes: "processTypes"; readonly pubTypes: "newestPubTypes"; readonly cpvCodes: "cpvCodes"; readonly bkpCodes: "bkpCodes"; readonly issuedByOrganizations: "issuedByOrganizations"; readonly lastItem: "lastItem"; }; type QueryValue = string | string[] | undefined; /** * Builds the simap API query params for `search_tenders`, applying: * - user→API name mapping (see SEARCH_TENDERS_PARAM_MAP) * - empty arrays are skipped * - if no filter is provided, defaults to today's publications so the API * call does not return the full dataset */ export declare function buildTenderSearchQuery(input: SearchTendersInput): Record; export {};