dhaga.docs
API referenceFunctions

profileFromExtracted()

function profileFromExtracted(extracted): object;

Defined in: schemas/contact.ts:89

Lift a capture-time ExtractedContact into the editable profile: its single title/company becomes one current position, and bare method strings become unlabeled ContactMethods the user can label later.

Parameters

extracted

name

string = ...

title

string | null = ...

company

string | null = ...

emails

string[] = ...

phones

string[] = ...

string[] = ...

location

string | null = ...

Returns

object

name

name: string;

nickname

nickname: string | null;

positions

positions: object[];

emails

emails: object[];

phones

phones: object[];
links: object[];

addresses

addresses: object[];

importantDates

importantDates: object[];

customFields

customFields: object[];

location

location: string | null;

On this page