export type GetApiCaptaindataPeopleEnrichArgs = {li_profile_url: string}; export type GetApiCaptaindataPeopleEnrichOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Get comprehensive profile information from a LinkedIn URL with additional enrichment data. Returns full name, headline, summary, skills, languages, education, experiences, company info, and more. * * GET /captaindata/people/enrich */ export const getApiCaptaindataPeopleEnrich = async (args: GetApiCaptaindataPeopleEnrichArgs, options?: GetApiCaptaindataPeopleEnrichOptions) => { const {baseUrl = "https://api.orthogonal.com/mpp", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.li_profile_url != null) query.append("li_profile_url", String(args.li_profile_url)) const url = `${baseUrl.replace(/\/+$/, '')}/captaindata/people/enrich${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 };