@tellescope/types-models 1.152.0 → 1.153.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1356,7 +1356,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
1356
1356
  discussionRoomId?: string;
1357
1357
  }
1358
1358
  export type FormFieldLiteralType = 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' | 'dateString' | 'rating' | 'Time';
1359
- export type FormFieldComplexType = "Emotii" | "Hidden Value" | "Redirect" | "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance";
1359
+ export type FormFieldComplexType = "Conditions" | "Allergies" | "Emotii" | "Hidden Value" | "Redirect" | "Height" | "Appointment Booking" | "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance";
1360
1360
  export type FormFieldType = FormFieldLiteralType | FormFieldComplexType;
1361
1361
  export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic';
1362
1362
  export type PreviousFormFieldBuilder<T extends PreviousFormFieldType, V> = {
@@ -1464,6 +1464,7 @@ export type FormFieldOptions = FormFieldValidation & {
1464
1464
  groupPadding?: number;
1465
1465
  saveIntakeOnPartial?: boolean;
1466
1466
  stripeKey?: string;
1467
+ dataSource?: string;
1467
1468
  };
1468
1469
  export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>;
1469
1470
  export type FormFieldCalloutConditionComparison = 'Equals';
@@ -1662,6 +1663,11 @@ export type DatabaseRecordFieldsInfo = {
1662
1663
  'Multiple Select': BuildDatabaseRecordField<'Multiple Select', string[], {
1663
1664
  options: string[];
1664
1665
  }>;
1666
+ 'Dropdown': BuildDatabaseRecordField<'Dropdown', string, {
1667
+ options: string[];
1668
+ }>;
1669
+ 'Timestamp': BuildDatabaseRecordField<'Timestamp', string, {}>;
1670
+ 'Date': BuildDatabaseRecordField<'Date', string, {}>;
1665
1671
  };
1666
1672
  export type DatabaseRecordFieldType = keyof DatabaseRecordFieldsInfo;
1667
1673
  export type DatabaseRecordValues = {
@@ -1748,6 +1754,11 @@ export type MedicationResponse = {
1748
1754
  NDCs?: string[];
1749
1755
  reasonForTaking?: string;
1750
1756
  };
1757
+ export type AllergyResponse = {
1758
+ display: string;
1759
+ code: string;
1760
+ system?: string;
1761
+ };
1751
1762
  export type FormResponseAnswerTable = FormResponseValueAnswerBuilder<'Table Input', TableInputCell[][]>;
1752
1763
  export type FormResponseAnswerGroup = FormResponseValueAnswerBuilder<'Question Group', FormSubField[]>;
1753
1764
  export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description', ''>;
@@ -1771,6 +1782,8 @@ export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height',
1771
1782
  inches: number;
1772
1783
  }>;
1773
1784
  export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>;
1785
+ export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>;
1786
+ export type FormResponseAnswerConditions = FormResponseValueAnswerBuilder<'Conditions', AllergyResponse[]>;
1774
1787
  export type FormResponseAnswerSignatureValue = {
1775
1788
  fullName: string;
1776
1789
  signed: boolean;
@@ -1792,7 +1805,7 @@ export type FormResponseAnswerFileValue = {
1792
1805
  };
1793
1806
  export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>;
1794
1807
  export type FormResponseAnswerFiles = FormResponseValueAnswerBuilder<'files', FormResponseAnswerFileValue[]>;
1795
- export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance | FormResponseAnswerAppointmentBooking | FormResponseAnswerHeight | FormResponseAnswerRedirect | FormResponseAnswerHiddenValue | FormResponseAnswerEmotii);
1808
+ export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance | FormResponseAnswerAppointmentBooking | FormResponseAnswerHeight | FormResponseAnswerRedirect | FormResponseAnswerHiddenValue | FormResponseAnswerEmotii | FormResponseAnswerAllergies | FormResponseAnswerConditions);
1796
1809
  export type FormResponseValue = {
1797
1810
  fieldId: string;
1798
1811
  fieldTitle: string;
@@ -1836,6 +1849,8 @@ export type AnswerForType = {
1836
1849
  'Redirect': FormResponseAnswerRedirect['value'];
1837
1850
  'Hidden Value': FormResponseAnswerHiddenValue['value'];
1838
1851
  'Emotii': FormResponseAnswerEmotii['value'];
1852
+ 'Allergies': FormResponseAnswerAllergies['value'];
1853
+ 'Conditions': FormResponseAnswerConditions['value'];
1839
1854
  };
1840
1855
  export type Addendum = {
1841
1856
  timestamp: Date;
@@ -2394,6 +2409,7 @@ export type AfterActionEventInfo = {
2394
2409
  unit: UnitOfTime;
2395
2410
  officeHoursOnly?: boolean;
2396
2411
  cancelConditions?: CancelCondition[];
2412
+ abTestCondition?: string;
2397
2413
  };
2398
2414
  export type TicketCompletedEventInfo = {
2399
2415
  automationStepId: string;
@@ -3092,6 +3108,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
3092
3108
  timestamp?: Date;
3093
3109
  dialedUserIds?: string[][];
3094
3110
  ignoredUserIds?: string[][];
3111
+ ticketId?: string;
3095
3112
  }
3096
3113
  export type AnalyticsQueryResultValue = {
3097
3114
  key?: string;
@@ -3512,6 +3529,7 @@ export type AutomationTriggerEvents = {
3512
3529
  field: string;
3513
3530
  value: string;
3514
3531
  }, {}>;
3532
+ 'Contact Created': AutomationTriggerEventBuilder<"Contact Created", {}, {}>;
3515
3533
  'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", {
3516
3534
  titles?: string[];
3517
3535
  templateIds?: string[];
@@ -3732,6 +3750,7 @@ export type PhoneTreeActions = {
3732
3750
  digits: boolean;
3733
3751
  speech: boolean;
3734
3752
  playback: PhonePlayback;
3753
+ duration?: number;
3735
3754
  }>;
3736
3755
  'Voicemail': PhoneTreeActionBuilder<"Voicemail", {
3737
3756
  playback: PhonePlayback;
@@ -3938,6 +3957,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
3938
3957
  instructions?: string;
3939
3958
  shippedDate?: string;
3940
3959
  frequency?: string;
3960
+ activateBy?: string;
3941
3961
  }
3942
3962
  export interface EnduserProblem_readonly extends ClientRecord {
3943
3963
  }
@@ -4177,7 +4197,19 @@ export interface SuggestedContact_updatesDisabled {
4177
4197
  }
4178
4198
  export interface SuggestedContact extends SuggestedContact_readonly, SuggestedContact_required, SuggestedContact_updatesDisabled {
4179
4199
  }
4200
+ export interface DiagnosisCode_readonly extends ClientRecord {
4201
+ }
4202
+ export interface DiagnosisCode_required {
4203
+ code: string;
4204
+ display: string;
4205
+ system: string;
4206
+ }
4207
+ export interface DiagnosisCode_updatesDisabled {
4208
+ }
4209
+ export interface DiagnosisCode extends DiagnosisCode_readonly, DiagnosisCode_required, DiagnosisCode_updatesDisabled {
4210
+ }
4180
4211
  export type ModelForName_required = {
4212
+ diagnosis_codes: DiagnosisCode_required;
4181
4213
  suggested_contacts: SuggestedContact_required;
4182
4214
  call_hold_queues: CallHoldQueue_required;
4183
4215
  fax_logs: FaxLog_required;
@@ -4261,6 +4293,7 @@ export type ModelForName_required = {
4261
4293
  };
4262
4294
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
4263
4295
  export interface ModelForName_readonly {
4296
+ diagnosis_codes: DiagnosisCode_readonly;
4264
4297
  suggested_contacts: SuggestedContact_readonly;
4265
4298
  call_hold_queues: CallHoldQueue_readonly;
4266
4299
  fax_logs: FaxLog_readonly;
@@ -4344,6 +4377,7 @@ export interface ModelForName_readonly {
4344
4377
  }
4345
4378
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
4346
4379
  export interface ModelForName_updatesDisabled {
4380
+ diagnosis_codes: DiagnosisCode_updatesDisabled;
4347
4381
  suggested_contacts: SuggestedContact_updatesDisabled;
4348
4382
  call_hold_queues: CallHoldQueue_updatesDisabled;
4349
4383
  fax_logs: FaxLog_updatesDisabled;
@@ -4427,6 +4461,7 @@ export interface ModelForName_updatesDisabled {
4427
4461
  }
4428
4462
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
4429
4463
  export interface ModelForName extends ModelForName_required, ModelForName_readonly {
4464
+ diagnosis_codes: DiagnosisCode;
4430
4465
  suggested_contacts: SuggestedContact;
4431
4466
  call_hold_queues: CallHoldQueue;
4432
4467
  fax_logs: FaxLog;