export type GetApiGetfullnamematchArgs = {fullname: string}; export type GetApiGetfullnamematchOptions = {baseUrl?: string | undefined, ApiKeyAuth?: string | undefined, fetch?: typeof fetch | undefined}; /** * Person name matching and deduplication: generates an AI-powered similarity key for an individual's full name, so variations such as 'Bob Smith', 'Robert Smith', and 'Smith, Robert J.' produce the same key. Group records on the key to find duplicate contacts and customers across CRM, marketing, and customer datasets. * * GET /getfullnamematch */ export const getApiGetfullnamematch = async (args: GetApiGetfullnamematchArgs, options?: GetApiGetfullnamematchOptions) => { const {baseUrl = "https://api.interzoid.com", fetch: fetchFn = fetch, ApiKeyAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "application/json") if (args.fullname != null) query.append("fullname", String(args.fullname)) if (ApiKeyAuth !== undefined) headers.set("x-api-key", ApiKeyAuth) const url = `${baseUrl.replace(/\/+$/, '')}/getfullnamematch${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 (await res.json()) as unknown };