{
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;
}
{
organization = 'organization',
person = 'person',
}
{
record_id: string;
email: string; // Max length 320
}
{
record_id: string;
phone_number: string; // Max length 30
}
{
domain?: string;
twitter_url?: string;
linkedin_url?: string;
facebook_url?: string;
github_url?: string;
instagram_url?: string;
}
{
record_id: string;
record_sub_type: string;
name: string;
avatar_url?: string;
parent_name?: string;
designation?: string;
archived: boolean;
}