export type CreateApiBytemineSignalsAcquisitionsArgs = {body: {page?: number | undefined, limit?: number | undefined, dateFrom?: string | undefined, dateTo?: string | undefined, date_preset?: string | undefined, countries?: string | undefined, search?: string | undefined, industry?: string | undefined, company_name?: string | undefined, acquiring_company?: string | undefined, amount_min?: number | undefined, amount_max?: number | undefined, sort_by?: string | undefined, sort_order?: string | undefined}}; export type CreateApiBytemineSignalsAcquisitionsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Search real-time M&A/acquisition signals with filters for acquirer, amount, industry, date, and more. 1 credit per record. Use count='true' for free count-only query. * * POST /bytemine/signals/acquisitions */ export const createApiBytemineSignalsAcquisitions = async (args: CreateApiBytemineSignalsAcquisitionsArgs, options?: CreateApiBytemineSignalsAcquisitionsOptions) => { const {baseUrl = "https://api.orthogonal.com/mpp", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/bytemine/signals/acquisitions${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };