export type GetApiSignalbaseSignalsAcquisitionsArgs = {page?: number | undefined, limit?: number | undefined, date_preset?: string | undefined, countries?: string | undefined, exclude_countries?: string | undefined, acquirer_countries?: string | undefined, exclude_acquirer_countries?: string | undefined, categories?: string | undefined, subcategories?: string | undefined, industry?: string | undefined, company_domain?: string | undefined, company_linkedin_url?: string | undefined, company_name?: string | undefined, search?: string | undefined, amount_min?: number | undefined, amount_max?: number | undefined, employee_count_min?: number | undefined, employee_count_max?: number | undefined, founded_year_min?: number | undefined, founded_year_max?: number | undefined, currency?: string | undefined, verification_status?: string | undefined, acquiring_company?: string | undefined, sort_by?: string | undefined, sort_order?: string | undefined}; export type GetApiSignalbaseSignalsAcquisitionsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Fetch acquisition signals with filtering by date, country, deal amount, and company details. Pagination billing: call the first page normally and save billing.requestId from the Orthogonal /v1/run response. For later page, offset, or cursor calls on the same logical search, pass parentRequestId with unchanged non-pagination parameters. Valid continuation calls still get their own request IDs and quoted price, but are charged 0. Changing filters starts a new billable request. * * GET /signalbase/signals/acquisitions */ export const getApiSignalbaseSignalsAcquisitions = async (args: GetApiSignalbaseSignalsAcquisitionsArgs, options?: GetApiSignalbaseSignalsAcquisitionsOptions) => { const {baseUrl = "https://api.orthogonal.com/mpp", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.page != null) query.append("page", String(args.page)) if (args.limit != null) query.append("limit", String(args.limit)) if (args.date_preset != null) query.append("date_preset", String(args.date_preset)) if (args.countries != null) query.append("countries", String(args.countries)) if (args.exclude_countries != null) query.append("exclude_countries", String(args.exclude_countries)) if (args.acquirer_countries != null) query.append("acquirer_countries", String(args.acquirer_countries)) if (args.exclude_acquirer_countries != null) query.append("exclude_acquirer_countries", String(args.exclude_acquirer_countries)) if (args.categories != null) query.append("categories", String(args.categories)) if (args.subcategories != null) query.append("subcategories", String(args.subcategories)) if (args.industry != null) query.append("industry", String(args.industry)) if (args.company_domain != null) query.append("company_domain", String(args.company_domain)) if (args.company_linkedin_url != null) query.append("company_linkedin_url", String(args.company_linkedin_url)) if (args.company_name != null) query.append("company_name", String(args.company_name)) if (args.search != null) query.append("search", String(args.search)) if (args.amount_min != null) query.append("amount_min", String(args.amount_min)) if (args.amount_max != null) query.append("amount_max", String(args.amount_max)) if (args.employee_count_min != null) query.append("employee_count_min", String(args.employee_count_min)) if (args.employee_count_max != null) query.append("employee_count_max", String(args.employee_count_max)) if (args.founded_year_min != null) query.append("founded_year_min", String(args.founded_year_min)) if (args.founded_year_max != null) query.append("founded_year_max", String(args.founded_year_max)) if (args.currency != null) query.append("currency", String(args.currency)) if (args.verification_status != null) query.append("verification_status", String(args.verification_status)) if (args.acquiring_company != null) query.append("acquiring_company", String(args.acquiring_company)) if (args.sort_by != null) query.append("sort_by", String(args.sort_by)) if (args.sort_order != null) query.append("sort_order", String(args.sort_order)) const url = `${baseUrl.replace(/\/+$/, '')}/signalbase/signals/acquisitions${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };