export type CreateApiFiberV1InvestorSearchArgs = {body: {searchParams: {countryCode?: Record | undefined, stateName?: Record | undefined, investorType?: string | undefined, types?: Record | undefined, numInvestments?: Record | undefined, numLeadInvestments?: Record | undefined, leadRate?: Record | undefined, lastInvestmentDate?: Record | undefined, foundedOn?: Record | undefined, sorting?: Record | undefined, isTopVc?: boolean | undefined, domains?: Array | undefined, namePatterns?: Array | undefined, crunchbaseSlugs?: Array | undefined}, pageSize?: number | undefined, cursor?: string | undefined}}; export type CreateApiFiberV1InvestorSearchOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Search for investors with flexible filtering capabilities 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. * * POST /fiber/v1/investor-search */ export const createApiFiberV1InvestorSearch = async (args: CreateApiFiberV1InvestorSearchArgs, options?: CreateApiFiberV1InvestorSearchOptions) => { 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(/\/+$/, '')}/fiber/v1/investor-search${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 };