Contact
Contact Model
{
record_id?: string;
organization_id: number;
created_by_user_id: number;
record_sub_type? = RecordSubTypeEnum.person;
access_type = RecordAccessTypeEnum.default;
name: string; // Max length 100
designation?: string; // Max length 50
avatar_url?: string;
assigned_user?: UserModel;
parent?: ContactTypeaheadModel;
address?: string; //4000 chars
address_lat?: number;
address_lng?: number;
emails: ContactEmailModel[] = [];
phones: ContactPhoneModel[] = [];
url_details?: ContactUrlModel;
projects: ProjectRecordModel[] = [];
followers = new Array<OrganizationUserModel>();
files: FileModel[] = [];
custom_field_values: CustomFieldValueModel[] = [];
archived: boolean = false;
created_at: Date;
modified_at: Date;
}
RecordSubTypeEnum
{
organization = 'organization',
person = 'person',
}
ContactEmailModel
{
record_id: string;
email: string; // Max length 320
}
ContactPhoneModel
{
record_id: string;
phone_number: string; // Max length 30
}
ContactUrlModel
{
domain?: string;
twitter_url?: string;
linkedin_url?: string;
facebook_url?: string;
github_url?: string;
instagram_url?: string;
}
ContactTypeaheadModel
{
record_id: string;
record_sub_type: string;
name: string;
avatar_url?: string;
parent_name?: string;
designation?: string;
archived: boolean;
}
More Information
For RecordAccessTypeEnum please refer to Record
For OrganizationUserModel please refer to Organization User
For ProjectRecordModel please refer to ProjectRecordModel
For FileModel please refer to File
For CustomFieldValueModel please refer to Custom Field Value
Last updated