@tellescope/types-models 1.93.0 → 1.94.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 +36 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +36 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +41 -4
package/src/index.ts
CHANGED
|
@@ -167,8 +167,9 @@ export type OrganizationSettings = {
|
|
|
167
167
|
showFreeNote?: boolean,
|
|
168
168
|
canDeleteFreeNote?: boolean,
|
|
169
169
|
recordCalls?: boolean,
|
|
170
|
+
recordCallAudioPlayback?: string,
|
|
170
171
|
transcribeCalls?: boolean,
|
|
171
|
-
transcribeCallInboundPlayback?: string,
|
|
172
|
+
transcribeCallInboundPlayback?: string, // should be 'recordCall' but too late
|
|
172
173
|
showDeleteCallRecordingOnTimeline?: boolean,
|
|
173
174
|
defaultPhoneNumber?: string,
|
|
174
175
|
sendSMSOnZoomStart?: boolean,
|
|
@@ -321,6 +322,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
321
322
|
billingOrganizationAddress?: Address,
|
|
322
323
|
videoCallBackgroundImage?: string,
|
|
323
324
|
sendToVoicemailOOO?: boolean
|
|
325
|
+
onCallUserIds?: string[],
|
|
324
326
|
outOfOfficeVoicemail?: PhonePlayback
|
|
325
327
|
enduserProfileWebhooks?: BasicWebhook[],
|
|
326
328
|
showCommunity?: boolean,
|
|
@@ -335,6 +337,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
335
337
|
questionId: string,
|
|
336
338
|
},
|
|
337
339
|
dosespotClinics?: { id: string, name: string }[],
|
|
340
|
+
enforceMFA?: boolean,
|
|
338
341
|
// _AIEnabled?: boolean,
|
|
339
342
|
}
|
|
340
343
|
export type OrganizationTheme = {
|
|
@@ -520,6 +523,7 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
520
523
|
iOSBadgeCount?: number,
|
|
521
524
|
doseSpotUserId?: string,
|
|
522
525
|
url?: string,
|
|
526
|
+
requiresMFAConfiguration?: boolean,
|
|
523
527
|
}
|
|
524
528
|
|
|
525
529
|
export type Preference = 'email' | 'sms' | 'call' | 'chat'
|
|
@@ -561,7 +565,13 @@ export type ScheduledJourney = {
|
|
|
561
565
|
}
|
|
562
566
|
|
|
563
567
|
export type EnduserRelationship = {
|
|
564
|
-
type:
|
|
568
|
+
type: (
|
|
569
|
+
'Parent' | 'Child' | 'Spouse' | 'Partner' | 'Sibling' | 'Grandparent' | 'Grandchild'
|
|
570
|
+
| 'Caregiver' | 'Caretaker' | 'Care Recipient'
|
|
571
|
+
| 'Power of Attorney' | 'Power of Attorney For'
|
|
572
|
+
| "Emergency Contact" | "Emergency Contact For"
|
|
573
|
+
| 'Relates To'
|
|
574
|
+
)
|
|
565
575
|
id: string,
|
|
566
576
|
}
|
|
567
577
|
export type Language = {
|
|
@@ -1107,7 +1117,9 @@ export interface MessageTemplate extends MessageTemplate_readonly, MessageTempla
|
|
|
1107
1117
|
isMarketing?: boolean,
|
|
1108
1118
|
forChannels?: string[],
|
|
1109
1119
|
forRoles?: string[],
|
|
1120
|
+
forEntityTypes?: string[],
|
|
1110
1121
|
hideFromCompose?: boolean,
|
|
1122
|
+
tags?: string[],
|
|
1111
1123
|
}
|
|
1112
1124
|
|
|
1113
1125
|
export interface File_readonly extends ClientRecord {
|
|
@@ -1988,7 +2000,8 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
1988
2000
|
bufferEndMinutes?: number,
|
|
1989
2001
|
|
|
1990
2002
|
canvasCoding?: CanvasCoding,
|
|
1991
|
-
tags?: string[]
|
|
2003
|
+
tags?: string[],
|
|
2004
|
+
matchToHealthieTemplate?: boolean,
|
|
1992
2005
|
}
|
|
1993
2006
|
|
|
1994
2007
|
export interface AppointmentLocation_readonly extends ClientRecord {}
|
|
@@ -2298,6 +2311,7 @@ export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smar
|
|
|
2298
2311
|
}>
|
|
2299
2312
|
export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>
|
|
2300
2313
|
export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', { journeyIds?: string[] }>
|
|
2314
|
+
export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', { type: string }>
|
|
2301
2315
|
|
|
2302
2316
|
export type IterableFieldsMapping = {
|
|
2303
2317
|
iterable: string,
|
|
@@ -2351,6 +2365,7 @@ export type AutomationActionForType = {
|
|
|
2351
2365
|
'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction,
|
|
2352
2366
|
'healthieSync': HealthieSyncAutomationAction,
|
|
2353
2367
|
'completeTickets': CompleteTicketsAutomationAction,
|
|
2368
|
+
'changeContactType': ChangeContactTypeAutomationAction,
|
|
2354
2369
|
}
|
|
2355
2370
|
export type AutomationActionType = keyof AutomationActionForType
|
|
2356
2371
|
export type AutomationAction = AutomationActionForType[AutomationActionType]
|
|
@@ -3058,6 +3073,11 @@ export type EnduserProfileViewBlocks = {
|
|
|
3058
3073
|
fields: string[],
|
|
3059
3074
|
displayFields?: { field: string, display: string }[],
|
|
3060
3075
|
}>,
|
|
3076
|
+
"Form Responses": EnduserProfileViewBlockBuilder<"Form Responses", {
|
|
3077
|
+
title: string,
|
|
3078
|
+
formId: string,
|
|
3079
|
+
fieldIds: string[],
|
|
3080
|
+
}>,
|
|
3061
3081
|
}
|
|
3062
3082
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks
|
|
3063
3083
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType]
|
|
@@ -3132,6 +3152,8 @@ export type AutomationTriggerEvents = {
|
|
|
3132
3152
|
}, {}>,
|
|
3133
3153
|
'Order Created': AutomationTriggerEventBuilder<"Order Created", { titles?: string[] }, {}>,
|
|
3134
3154
|
'Problem Created': AutomationTriggerEventBuilder<"Problem Created", { titles?: string[] }, {}>,
|
|
3155
|
+
'Message Delivery Failure': AutomationTriggerEventBuilder<"Message Delivery Failure", { }, {}>,
|
|
3156
|
+
'Incoming Message (No Care Team)': AutomationTriggerEventBuilder<"Incoming Message (No Care Team)", { }, {}>,
|
|
3135
3157
|
}
|
|
3136
3158
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents
|
|
3137
3159
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType]
|
|
@@ -3235,7 +3257,7 @@ export type PhoneTreeActions = {
|
|
|
3235
3257
|
// 'Play': PhoneTreeActionBuilder<"Play", { playback: PhonePlayback }>
|
|
3236
3258
|
'Gather': PhoneTreeActionBuilder<"Gather", { digits: boolean, speech: boolean, playback: PhonePlayback }>
|
|
3237
3259
|
'Voicemail': PhoneTreeActionBuilder<"Voicemail", { playback: PhonePlayback }>
|
|
3238
|
-
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback }>
|
|
3260
|
+
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string }>
|
|
3239
3261
|
'Dial Users': PhoneTreeActionBuilder<"Dial Users", { userIds: string[], playback?: Partial<PhonePlayback> }>
|
|
3240
3262
|
'Route Call': PhoneTreeActionBuilder<"Route Call", {
|
|
3241
3263
|
prePlayback?: Partial<PhonePlayback>,
|
|
@@ -3544,7 +3566,17 @@ export interface PrescriptionRoute extends PrescriptionRoute_readonly, Prescript
|
|
|
3544
3566
|
tags?: string[],
|
|
3545
3567
|
}
|
|
3546
3568
|
|
|
3569
|
+
export interface FlowchartNote_readonly extends ClientRecord { }
|
|
3570
|
+
export interface FlowchartNote_required {}
|
|
3571
|
+
export interface FlowchartNote_updatesDisabled {}
|
|
3572
|
+
export interface FlowchartNote extends FlowchartNote_readonly, FlowchartNote_required, FlowchartNote_updatesDisabled {
|
|
3573
|
+
flowchartId: string,
|
|
3574
|
+
note: string,
|
|
3575
|
+
flowchartUI?: FlowchartUI,
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3547
3578
|
export type ModelForName_required = {
|
|
3579
|
+
flowchart_notes: FlowchartNote_required,
|
|
3548
3580
|
enduser_problems: EnduserProblem_required,
|
|
3549
3581
|
prescription_routes: PrescriptionRoute_required,
|
|
3550
3582
|
vital_configurations: VitalConfiguration_required,
|
|
@@ -3621,6 +3653,7 @@ export type ModelForName_required = {
|
|
|
3621
3653
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
|
|
3622
3654
|
|
|
3623
3655
|
export interface ModelForName_readonly {
|
|
3656
|
+
flowchart_notes: FlowchartNote_readonly,
|
|
3624
3657
|
enduser_problems: EnduserProblem_readonly,
|
|
3625
3658
|
prescription_routes: PrescriptionRoute_readonly,
|
|
3626
3659
|
blocked_phones: BlockedPhone_readonly,
|
|
@@ -3697,6 +3730,7 @@ export interface ModelForName_readonly {
|
|
|
3697
3730
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
|
|
3698
3731
|
|
|
3699
3732
|
export interface ModelForName_updatesDisabled {
|
|
3733
|
+
flowchart_notes: FlowchartNote_updatesDisabled,
|
|
3700
3734
|
enduser_problems: EnduserProblem_updatesDisabled,
|
|
3701
3735
|
prescription_routes: PrescriptionRoute_updatesDisabled,
|
|
3702
3736
|
blocked_phones: BlockedPhone_updatesDisabled,
|
|
@@ -3773,6 +3807,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
3773
3807
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
|
|
3774
3808
|
|
|
3775
3809
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3810
|
+
flowchart_notes: FlowchartNote,
|
|
3776
3811
|
enduser_problems: EnduserProblem,
|
|
3777
3812
|
prescription_routes: PrescriptionRoute,
|
|
3778
3813
|
blocked_phones: BlockedPhone,
|
|
@@ -3859,6 +3894,7 @@ export interface UserActivityInfo {
|
|
|
3859
3894
|
export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
|
|
3860
3895
|
|
|
3861
3896
|
export const modelNameChecker: { [K in ModelName] : true } = {
|
|
3897
|
+
flowchart_notes: true,
|
|
3862
3898
|
enduser_problems: true,
|
|
3863
3899
|
prescription_routes: true,
|
|
3864
3900
|
blocked_phones: true,
|
|
@@ -3959,6 +3995,7 @@ export type JourneyContext = {
|
|
|
3959
3995
|
orderId?: string,
|
|
3960
3996
|
observationId?: string,
|
|
3961
3997
|
phoneCallId?: string,
|
|
3998
|
+
smsId?: string,
|
|
3962
3999
|
}
|
|
3963
4000
|
|
|
3964
4001
|
// https://gist.github.com/aviflax/a4093965be1cd008f172/
|