export type GetApiPredictleadsV3TechnologiesArgs = {page?: number | undefined, fuzzy_name?: string | undefined, limit?: number | undefined, order_by?: string | undefined}; export type GetApiPredictleadsV3TechnologiesOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * List all tracked technologies 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 /predictleads/v3/technologies */ export const getApiPredictleadsV3Technologies = async (args: GetApiPredictleadsV3TechnologiesArgs, options?: GetApiPredictleadsV3TechnologiesOptions) => { 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.fuzzy_name != null) query.append("fuzzy_name", String(args.fuzzy_name)) if (args.limit != null) query.append("limit", String(args.limit)) if (args.order_by != null) query.append("order_by", String(args.order_by)) const url = `${baseUrl.replace(/\/+$/, '')}/predictleads/v3/technologies${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 };