The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { CoreApiClient } from 'twenty-client-sdk/core';
import { personEnrichmentAdapter } from 'src/logic-functions/handlers/person-enrichment-adapter';
import { runBatchEnrichment } from 'src/logic-functions/utils/run-batch-enrichment';
import { type BulkEnrichInput } from 'src/types/bulk-enrich-input';
import { type BulkEnrichResult } from 'src/types/bulk-enrich-result';
export const enrichPeopleCore = ({
input,
client = new CoreApiClient(),
}: {
input: BulkEnrichInput;
client?: CoreApiClient;
}): Promise<BulkEnrichResult> =>
runBatchEnrichment({ client, input, adapter: personEnrichmentAdapter });