@tellescope/types-models 1.152.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 +19 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +19 -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 +18 -2
package/lib/cjs/index.d.ts
CHANGED
|
@@ -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 = "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,7 @@ 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[]>;
|
|
1774
1786
|
export type FormResponseAnswerSignatureValue = {
|
|
1775
1787
|
fullName: string;
|
|
1776
1788
|
signed: boolean;
|
|
@@ -1792,7 +1804,7 @@ export type FormResponseAnswerFileValue = {
|
|
|
1792
1804
|
};
|
|
1793
1805
|
export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>;
|
|
1794
1806
|
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);
|
|
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);
|
|
1796
1808
|
export type FormResponseValue = {
|
|
1797
1809
|
fieldId: string;
|
|
1798
1810
|
fieldTitle: string;
|
|
@@ -1836,6 +1848,7 @@ export type AnswerForType = {
|
|
|
1836
1848
|
'Redirect': FormResponseAnswerRedirect['value'];
|
|
1837
1849
|
'Hidden Value': FormResponseAnswerHiddenValue['value'];
|
|
1838
1850
|
'Emotii': FormResponseAnswerEmotii['value'];
|
|
1851
|
+
'Allergies': FormResponseAnswerAllergies['value'];
|
|
1839
1852
|
};
|
|
1840
1853
|
export type Addendum = {
|
|
1841
1854
|
timestamp: Date;
|
|
@@ -3092,6 +3105,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
|
|
|
3092
3105
|
timestamp?: Date;
|
|
3093
3106
|
dialedUserIds?: string[][];
|
|
3094
3107
|
ignoredUserIds?: string[][];
|
|
3108
|
+
ticketId?: string;
|
|
3095
3109
|
}
|
|
3096
3110
|
export type AnalyticsQueryResultValue = {
|
|
3097
3111
|
key?: string;
|
|
@@ -3512,6 +3526,7 @@ export type AutomationTriggerEvents = {
|
|
|
3512
3526
|
field: string;
|
|
3513
3527
|
value: string;
|
|
3514
3528
|
}, {}>;
|
|
3529
|
+
'Contact Created': AutomationTriggerEventBuilder<"Contact Created", {}, {}>;
|
|
3515
3530
|
'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", {
|
|
3516
3531
|
titles?: string[];
|
|
3517
3532
|
templateIds?: string[];
|
|
@@ -3732,6 +3747,7 @@ export type PhoneTreeActions = {
|
|
|
3732
3747
|
digits: boolean;
|
|
3733
3748
|
speech: boolean;
|
|
3734
3749
|
playback: PhonePlayback;
|
|
3750
|
+
duration?: number;
|
|
3735
3751
|
}>;
|
|
3736
3752
|
'Voicemail': PhoneTreeActionBuilder<"Voicemail", {
|
|
3737
3753
|
playback: PhonePlayback;
|
|
@@ -3938,6 +3954,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3938
3954
|
instructions?: string;
|
|
3939
3955
|
shippedDate?: string;
|
|
3940
3956
|
frequency?: string;
|
|
3957
|
+
activateBy?: string;
|
|
3941
3958
|
}
|
|
3942
3959
|
export interface EnduserProblem_readonly extends ClientRecord {
|
|
3943
3960
|
}
|