export type GetApiAktaProV1CompanyHeadcountTrendsArgs = {company: string}; export type GetApiAktaProV1CompanyHeadcountTrendsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Company headcount and employee growth by domain or akta UUID using LinkedIn-sourced workforce data: current employees, monthly historical headcount, 6/12/24-month growth, and department-level headcount with 6/12-month growth. Use for workforce momentum, functional expansion or contraction, hiring signals and post-layoff analysis. Optimized for AI agents with compact, structured output for reliable routing. * * GET /akta-pro/v1/company/headcount-trends */ export const getApiAktaProV1CompanyHeadcountTrends = async (args: GetApiAktaProV1CompanyHeadcountTrendsArgs, options?: GetApiAktaProV1CompanyHeadcountTrendsOptions) => { const {baseUrl = "https://api.orthogonal.com/mpp", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.company != null) query.append("company", String(args.company)) const url = `${baseUrl.replace(/\/+$/, '')}/akta-pro/v1/company/headcount-trends${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 };