@tellescope/types-models 1.124.0 → 1.126.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 +37 -3
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +37 -3
- 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 +2 -2
- package/src/index.ts +39 -5
package/src/index.ts
CHANGED
|
@@ -186,6 +186,8 @@ export type OrganizationSettings = {
|
|
|
186
186
|
canMoveSMS?: boolean,
|
|
187
187
|
inboxRepliesMarkRead?: boolean,
|
|
188
188
|
alwaysShowInsurance?: boolean,
|
|
189
|
+
defaultToOutboundConferenceCall?: boolean,
|
|
190
|
+
sharedInboxReadStatus?: boolean,
|
|
189
191
|
},
|
|
190
192
|
tickets?: {
|
|
191
193
|
defaultJourneyDueDateOffsetInMS?: number | '',
|
|
@@ -194,6 +196,7 @@ export type OrganizationSettings = {
|
|
|
194
196
|
showJourneys?: boolean,
|
|
195
197
|
requireDueDate?: boolean,
|
|
196
198
|
allowArchival?: boolean,
|
|
199
|
+
returnToTicketsList?: boolean,
|
|
197
200
|
},
|
|
198
201
|
calendar?: {
|
|
199
202
|
dayStart?: {
|
|
@@ -314,6 +317,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
314
317
|
hasConnectedAthena?: boolean,
|
|
315
318
|
hasConnectedActiveCampaign?: boolean,
|
|
316
319
|
hasConnectedDocsumo?: boolean,
|
|
320
|
+
hasConnectedEmotii?: boolean,
|
|
317
321
|
hasConfiguredZoom?: boolean,
|
|
318
322
|
hasTicketQueues?: boolean,
|
|
319
323
|
vitalTeamId?: string,
|
|
@@ -1346,7 +1350,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
|
|
|
1346
1350
|
}
|
|
1347
1351
|
|
|
1348
1352
|
export type FormFieldLiteralType = 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' /* date + time */ | 'dateString' | 'rating' | 'Time'
|
|
1349
|
-
export type FormFieldComplexType = "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"
|
|
1353
|
+
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"
|
|
1350
1354
|
export type FormFieldType = FormFieldLiteralType | FormFieldComplexType
|
|
1351
1355
|
|
|
1352
1356
|
export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic'
|
|
@@ -1625,6 +1629,7 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1625
1629
|
defaultAttendeeId?: string,
|
|
1626
1630
|
sendEmailOnSync?: boolean,
|
|
1627
1631
|
enduserFieldMapping?: FieldMapping[],
|
|
1632
|
+
default_dietitian_id?: string,
|
|
1628
1633
|
}
|
|
1629
1634
|
|
|
1630
1635
|
export type BuildDatabaseRecordField <K extends string, V, O> = { type: K, value: V, options: O & { width?: string } }
|
|
@@ -1765,6 +1770,7 @@ export type FormResponseAnswerMultipleChoice = FormResponseValueAnswerBuilder<'m
|
|
|
1765
1770
|
export type FormResponseAnswerDropdown = FormResponseValueAnswerBuilder<'Dropdown', FormResponseAnswerMultipleChoiceValue>
|
|
1766
1771
|
export type FormResponseAnswerRanking = FormResponseValueAnswerBuilder<'ranking', FormResponseAnswerMultipleChoiceValue>
|
|
1767
1772
|
export type FormResponseAnswerHiddenValue = FormResponseValueAnswerBuilder<'Hidden Value', string>
|
|
1773
|
+
export type FormResponseAnswerEmotii = FormResponseValueAnswerBuilder<'Emotii', string>
|
|
1768
1774
|
|
|
1769
1775
|
export type FormResponseAnswerFileValue = {
|
|
1770
1776
|
secureName: string,
|
|
@@ -1803,6 +1809,7 @@ export type FormResponseValueAnswer = (
|
|
|
1803
1809
|
| FormResponseAnswerHeight
|
|
1804
1810
|
| FormResponseAnswerRedirect
|
|
1805
1811
|
| FormResponseAnswerHiddenValue
|
|
1812
|
+
| FormResponseAnswerEmotii
|
|
1806
1813
|
)
|
|
1807
1814
|
|
|
1808
1815
|
export type FormResponseValue = {
|
|
@@ -1817,7 +1824,7 @@ export type FormResponseValue = {
|
|
|
1817
1824
|
isCalledOut?: boolean,
|
|
1818
1825
|
disabled?: boolean,
|
|
1819
1826
|
isHighlightedOnTimeline?: boolean,
|
|
1820
|
-
computedValueKey?: 'Height' | 'Weight' | 'Date of Birth',
|
|
1827
|
+
computedValueKey?: 'Height' | 'Weight' | 'Date of Birth' | "Gender",
|
|
1821
1828
|
}
|
|
1822
1829
|
|
|
1823
1830
|
export type AnswerForType = {
|
|
@@ -1847,6 +1854,7 @@ export type AnswerForType = {
|
|
|
1847
1854
|
'Height': FormResponseAnswerHeight['value']
|
|
1848
1855
|
'Redirect': FormResponseAnswerRedirect['value']
|
|
1849
1856
|
'Hidden Value': FormResponseAnswerHiddenValue['value']
|
|
1857
|
+
'Emotii': FormResponseAnswerEmotii['value']
|
|
1850
1858
|
}
|
|
1851
1859
|
|
|
1852
1860
|
export interface FormResponse_readonly extends ClientRecord {
|
|
@@ -1902,6 +1910,10 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
|
|
|
1902
1910
|
groupInstance?: string,
|
|
1903
1911
|
groupPosition?: number,
|
|
1904
1912
|
utm?: LabeledField[],
|
|
1913
|
+
emotii?: {
|
|
1914
|
+
id?: string,
|
|
1915
|
+
scores?: any,
|
|
1916
|
+
}[]
|
|
1905
1917
|
}
|
|
1906
1918
|
|
|
1907
1919
|
export interface WebHook_readonly extends ClientRecord {}
|
|
@@ -1937,7 +1949,7 @@ export type CalendarEventReminderNotificationInfo = {
|
|
|
1937
1949
|
templateId?: string,
|
|
1938
1950
|
channel?: 'Email' | 'SMS',
|
|
1939
1951
|
}
|
|
1940
|
-
type BuildCalendarEventReminderInfo <T, I> = { type: T, info: I, msBeforeStartTime: number, didRemind?: boolean }
|
|
1952
|
+
type BuildCalendarEventReminderInfo <T, I> = { type: T, info: I, msBeforeStartTime: number, dontSendIfPassed?: boolean, didRemind?: boolean }
|
|
1941
1953
|
export type CalendarEventReminderInfoForType = {
|
|
1942
1954
|
"webhook": BuildCalendarEventReminderInfo<'webhook', {}>,
|
|
1943
1955
|
"add-to-journey": BuildCalendarEventReminderInfo<'add-to-journey', { journeyId: string }>,
|
|
@@ -1975,7 +1987,8 @@ export interface CalendarEvent_required {
|
|
|
1975
1987
|
}
|
|
1976
1988
|
export interface CalendarEvent_updatesDisabled {}
|
|
1977
1989
|
export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
|
|
1978
|
-
reason?: string,
|
|
1990
|
+
reason?: string, // reason for booking, patient-entered
|
|
1991
|
+
cancelReason?: string,
|
|
1979
1992
|
attendees: UserIdentity[],
|
|
1980
1993
|
color?: string,
|
|
1981
1994
|
enableVideoCall?: boolean,
|
|
@@ -2040,6 +2053,10 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
2040
2053
|
healthieZoomJoinURL?: string,
|
|
2041
2054
|
instructions?: string,
|
|
2042
2055
|
scheduledBy?: string,
|
|
2056
|
+
statusChangeSource?: {
|
|
2057
|
+
source: string,
|
|
2058
|
+
identifier: string,
|
|
2059
|
+
}
|
|
2043
2060
|
// isAllDay?: boolean,
|
|
2044
2061
|
}
|
|
2045
2062
|
|
|
@@ -2172,6 +2189,16 @@ export interface AppointmentLocation extends AppointmentLocation_readonly, Appoi
|
|
|
2172
2189
|
instructions?: string,
|
|
2173
2190
|
}
|
|
2174
2191
|
|
|
2192
|
+
export interface BookingRestrictions {
|
|
2193
|
+
templateId: string,
|
|
2194
|
+
restrictions: {
|
|
2195
|
+
state?: boolean,
|
|
2196
|
+
careTeam?: boolean,
|
|
2197
|
+
tagsPortal?: string[],
|
|
2198
|
+
hoursBefore?: number | '',
|
|
2199
|
+
hoursAfter?: number | '',
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2175
2202
|
export type AppointmentTerm = {
|
|
2176
2203
|
title: string,
|
|
2177
2204
|
link: string,
|
|
@@ -2209,7 +2236,11 @@ export interface AppointmentBookingPage extends AppointmentBookingPage_readonly,
|
|
|
2209
2236
|
limitedByState?: boolean,
|
|
2210
2237
|
limitedByTagsPortal?: string[],
|
|
2211
2238
|
requireLocationSelection?: boolean,
|
|
2212
|
-
collectReason?: "Do Not Collect" | 'Optional' | 'Required'
|
|
2239
|
+
collectReason?: "Do Not Collect" | 'Optional' | 'Required',
|
|
2240
|
+
restrictionsByTemplate?: BookingRestrictions[],
|
|
2241
|
+
publicMulti?: boolean,
|
|
2242
|
+
publicUserTags?: string[],
|
|
2243
|
+
publicUserFilterTags?: string[],
|
|
2213
2244
|
// productIds?: string[], // defer to specific template
|
|
2214
2245
|
}
|
|
2215
2246
|
|
|
@@ -3491,7 +3522,9 @@ export type PhoneTreeActions = {
|
|
|
3491
3522
|
byTags?: ListOfStringsWithQualifier,
|
|
3492
3523
|
playback?: Partial<PhonePlayback>,
|
|
3493
3524
|
duration?: number,
|
|
3525
|
+
addToCareTeam?: boolean,
|
|
3494
3526
|
}>
|
|
3527
|
+
"Select Care Team Member": PhoneTreeActionBuilder<"Select Care Team Member", { }>,
|
|
3495
3528
|
'Forward Call': PhoneTreeActionBuilder<"Forward Call", { to: string }>
|
|
3496
3529
|
'Conditional Split': PhoneTreeActionBuilder<"Conditional Split", {
|
|
3497
3530
|
timezone?: Timezone,
|
|
@@ -3630,6 +3663,7 @@ export interface TicketQueue extends TicketQueue_readonly, TicketQueue_required,
|
|
|
3630
3663
|
defaultFromNumber?: string,
|
|
3631
3664
|
enduserFields?: string[],
|
|
3632
3665
|
lastRefreshedCountAt?: Date,
|
|
3666
|
+
preventPull?: string[],
|
|
3633
3667
|
}
|
|
3634
3668
|
|
|
3635
3669
|
export interface EnduserOrder_readonly extends ClientRecord {}
|