export type GetApiCaptaindataCompaniesCompanyUidEmployeesArgs = {company_uid: string, query?: string | undefined, cursor?: string | undefined, page_size?: number | undefined}; export type GetApiCaptaindataCompaniesCompanyUidEmployeesOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * List employees of a given company. Returns paginated results. The company_uid path parameter is the LinkedIn company ID (e.g., 1035 for Microsoft), which can be obtained from the Enrich Company or Find Company endpoints (li_company_id field). 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 /captaindata/companies/{company_uid}/employees */ export const getApiCaptaindataCompaniesCompanyUidEmployees = async (args: GetApiCaptaindataCompaniesCompanyUidEmployeesArgs, options?: GetApiCaptaindataCompaniesCompanyUidEmployeesOptions) => { const {baseUrl = "https://api.orthogonal.com/mpp", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.query != null) query.append("query", String(args.query)) if (args.cursor != null) query.append("cursor", String(args.cursor)) if (args.page_size != null) query.append("page_size", String(args.page_size)) const url = `${baseUrl.replace(/\/+$/, '')}/captaindata/companies/${encodeURIComponent(String(args.company_uid))}/employees${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 };