@tellescope/types-models 1.151.0 → 1.153.0
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.
- package/lib/cjs/index.d.ts +30 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +30 -2
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +33 -3
package/lib/cjs/index.d.ts
CHANGED
|
@@ -626,6 +626,8 @@ export type EnduserInsurance = {
|
|
|
626
626
|
};
|
|
627
627
|
payerType?: string;
|
|
628
628
|
groupNumber?: string;
|
|
629
|
+
planName?: string;
|
|
630
|
+
startDate?: string;
|
|
629
631
|
};
|
|
630
632
|
export type EnduserDiagnosis = {
|
|
631
633
|
id?: string;
|
|
@@ -1354,7 +1356,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
|
|
|
1354
1356
|
discussionRoomId?: string;
|
|
1355
1357
|
}
|
|
1356
1358
|
export type FormFieldLiteralType = 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' | 'dateString' | 'rating' | 'Time';
|
|
1357
|
-
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 = "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";
|
|
1358
1360
|
export type FormFieldType = FormFieldLiteralType | FormFieldComplexType;
|
|
1359
1361
|
export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic';
|
|
1360
1362
|
export type PreviousFormFieldBuilder<T extends PreviousFormFieldType, V> = {
|
|
@@ -1462,6 +1464,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1462
1464
|
groupPadding?: number;
|
|
1463
1465
|
saveIntakeOnPartial?: boolean;
|
|
1464
1466
|
stripeKey?: string;
|
|
1467
|
+
dataSource?: string;
|
|
1465
1468
|
};
|
|
1466
1469
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>;
|
|
1467
1470
|
export type FormFieldCalloutConditionComparison = 'Equals';
|
|
@@ -1660,6 +1663,11 @@ export type DatabaseRecordFieldsInfo = {
|
|
|
1660
1663
|
'Multiple Select': BuildDatabaseRecordField<'Multiple Select', string[], {
|
|
1661
1664
|
options: string[];
|
|
1662
1665
|
}>;
|
|
1666
|
+
'Dropdown': BuildDatabaseRecordField<'Dropdown', string, {
|
|
1667
|
+
options: string[];
|
|
1668
|
+
}>;
|
|
1669
|
+
'Timestamp': BuildDatabaseRecordField<'Timestamp', string, {}>;
|
|
1670
|
+
'Date': BuildDatabaseRecordField<'Date', string, {}>;
|
|
1663
1671
|
};
|
|
1664
1672
|
export type DatabaseRecordFieldType = keyof DatabaseRecordFieldsInfo;
|
|
1665
1673
|
export type DatabaseRecordValues = {
|
|
@@ -1746,6 +1754,11 @@ export type MedicationResponse = {
|
|
|
1746
1754
|
NDCs?: string[];
|
|
1747
1755
|
reasonForTaking?: string;
|
|
1748
1756
|
};
|
|
1757
|
+
export type AllergyResponse = {
|
|
1758
|
+
display: string;
|
|
1759
|
+
code: string;
|
|
1760
|
+
system?: string;
|
|
1761
|
+
};
|
|
1749
1762
|
export type FormResponseAnswerTable = FormResponseValueAnswerBuilder<'Table Input', TableInputCell[][]>;
|
|
1750
1763
|
export type FormResponseAnswerGroup = FormResponseValueAnswerBuilder<'Question Group', FormSubField[]>;
|
|
1751
1764
|
export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description', ''>;
|
|
@@ -1769,6 +1782,7 @@ export type FormResponseAnswerHeight = FormResponseValueAnswerBuilder<'Height',
|
|
|
1769
1782
|
inches: number;
|
|
1770
1783
|
}>;
|
|
1771
1784
|
export type FormResponseAnswerRedirect = FormResponseValueAnswerBuilder<'Redirect', string>;
|
|
1785
|
+
export type FormResponseAnswerAllergies = FormResponseValueAnswerBuilder<'Allergies', AllergyResponse[]>;
|
|
1772
1786
|
export type FormResponseAnswerSignatureValue = {
|
|
1773
1787
|
fullName: string;
|
|
1774
1788
|
signed: boolean;
|
|
@@ -1790,7 +1804,7 @@ export type FormResponseAnswerFileValue = {
|
|
|
1790
1804
|
};
|
|
1791
1805
|
export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>;
|
|
1792
1806
|
export type FormResponseAnswerFiles = FormResponseValueAnswerBuilder<'files', FormResponseAnswerFileValue[]>;
|
|
1793
|
-
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);
|
|
1807
|
+
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);
|
|
1794
1808
|
export type FormResponseValue = {
|
|
1795
1809
|
fieldId: string;
|
|
1796
1810
|
fieldTitle: string;
|
|
@@ -1834,6 +1848,12 @@ export type AnswerForType = {
|
|
|
1834
1848
|
'Redirect': FormResponseAnswerRedirect['value'];
|
|
1835
1849
|
'Hidden Value': FormResponseAnswerHiddenValue['value'];
|
|
1836
1850
|
'Emotii': FormResponseAnswerEmotii['value'];
|
|
1851
|
+
'Allergies': FormResponseAnswerAllergies['value'];
|
|
1852
|
+
};
|
|
1853
|
+
export type Addendum = {
|
|
1854
|
+
timestamp: Date;
|
|
1855
|
+
userId: string;
|
|
1856
|
+
text: string;
|
|
1837
1857
|
};
|
|
1838
1858
|
export interface FormResponse_readonly extends ClientRecord {
|
|
1839
1859
|
openedAt?: Date;
|
|
@@ -1907,6 +1927,7 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
|
|
|
1907
1927
|
discussionRoomId?: string;
|
|
1908
1928
|
formsort?: string;
|
|
1909
1929
|
hideAfterUnsubmittedInMS?: number;
|
|
1930
|
+
addenda?: Addendum[];
|
|
1910
1931
|
}
|
|
1911
1932
|
export interface WebHook_readonly extends ClientRecord {
|
|
1912
1933
|
}
|
|
@@ -2351,6 +2372,9 @@ export interface AutomationForMessage extends AutomationForTemplate, AutomationF
|
|
|
2351
2372
|
}
|
|
2352
2373
|
export interface AutomationForWebhook {
|
|
2353
2374
|
message: string;
|
|
2375
|
+
url?: string;
|
|
2376
|
+
secret?: string;
|
|
2377
|
+
fields?: LabeledField[];
|
|
2354
2378
|
}
|
|
2355
2379
|
export type FormResponseAutomationEvent = AutomationEventBuilder<'formResponse', {
|
|
2356
2380
|
automationStepId: string;
|
|
@@ -3081,6 +3105,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
|
|
|
3081
3105
|
timestamp?: Date;
|
|
3082
3106
|
dialedUserIds?: string[][];
|
|
3083
3107
|
ignoredUserIds?: string[][];
|
|
3108
|
+
ticketId?: string;
|
|
3084
3109
|
}
|
|
3085
3110
|
export type AnalyticsQueryResultValue = {
|
|
3086
3111
|
key?: string;
|
|
@@ -3501,6 +3526,7 @@ export type AutomationTriggerEvents = {
|
|
|
3501
3526
|
field: string;
|
|
3502
3527
|
value: string;
|
|
3503
3528
|
}, {}>;
|
|
3529
|
+
'Contact Created': AutomationTriggerEventBuilder<"Contact Created", {}, {}>;
|
|
3504
3530
|
'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", {
|
|
3505
3531
|
titles?: string[];
|
|
3506
3532
|
templateIds?: string[];
|
|
@@ -3721,6 +3747,7 @@ export type PhoneTreeActions = {
|
|
|
3721
3747
|
digits: boolean;
|
|
3722
3748
|
speech: boolean;
|
|
3723
3749
|
playback: PhonePlayback;
|
|
3750
|
+
duration?: number;
|
|
3724
3751
|
}>;
|
|
3725
3752
|
'Voicemail': PhoneTreeActionBuilder<"Voicemail", {
|
|
3726
3753
|
playback: PhonePlayback;
|
|
@@ -3927,6 +3954,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3927
3954
|
instructions?: string;
|
|
3928
3955
|
shippedDate?: string;
|
|
3929
3956
|
frequency?: string;
|
|
3957
|
+
activateBy?: string;
|
|
3930
3958
|
}
|
|
3931
3959
|
export interface EnduserProblem_readonly extends ClientRecord {
|
|
3932
3960
|
}
|