Skip to content

Customer

Defined in: types/customer.ts:5

A CRM customer record associated with the current presentation session. Mirrors the iOS GRDBCustomer Swift model.

id: string;

Defined in: types/customer.ts:7

CRM object ID (e.g. a Salesforce 18-char ID). Also available as object_id.


object_id: string;

Defined in: types/customer.ts:8


object: string;

Defined in: types/customer.ts:10

CRM object type (e.g. 'Contact', 'Account').


is_active: boolean;

Defined in: types/customer.ts:11


is_person_account: boolean;

Defined in: types/customer.ts:12


salutation: string;

Defined in: types/customer.ts:13


name: string;

Defined in: types/customer.ts:14


slug: string;

Defined in: types/customer.ts:15


related_object: string;

Defined in: types/customer.ts:17

Display name of the related CRM object (e.g. an Account name).


related_object_id: string;

Defined in: types/customer.ts:18


designation: string;

Defined in: types/customer.ts:20

Professional designation (e.g. 'MD', 'PhD').


specialty: string;

Defined in: types/customer.ts:21


record_type_name: string;

Defined in: types/customer.ts:23

CRM record type name (e.g. 'Physician', 'Hospital').


record_type_id: string;

Defined in: types/customer.ts:24


is_favorite: boolean;

Defined in: types/customer.ts:25


is_current: boolean;

Defined in: types/customer.ts:27

Whether this customer is currently associated with the active session.


last_used_at: string | null;

Defined in: types/customer.ts:29

ISO 8601 timestamp of the most recent session this customer was selected in.


updated_at: string | null;

Defined in: types/customer.ts:30


is_fake: boolean;

Defined in: types/customer.ts:31