@tellescope/types-models 1.92.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 +76 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +76 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +72 -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,
|
|
@@ -186,6 +187,7 @@ export type OrganizationSettings = {
|
|
|
186
187
|
disableSnooze?: boolean,
|
|
187
188
|
showCommunications?: boolean,
|
|
188
189
|
showJourneys?: boolean,
|
|
190
|
+
requireDueDate?: boolean,
|
|
189
191
|
},
|
|
190
192
|
calendar?: {
|
|
191
193
|
dayStart?: {
|
|
@@ -320,6 +322,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
320
322
|
billingOrganizationAddress?: Address,
|
|
321
323
|
videoCallBackgroundImage?: string,
|
|
322
324
|
sendToVoicemailOOO?: boolean
|
|
325
|
+
onCallUserIds?: string[],
|
|
323
326
|
outOfOfficeVoicemail?: PhonePlayback
|
|
324
327
|
enduserProfileWebhooks?: BasicWebhook[],
|
|
325
328
|
showCommunity?: boolean,
|
|
@@ -334,6 +337,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
334
337
|
questionId: string,
|
|
335
338
|
},
|
|
336
339
|
dosespotClinics?: { id: string, name: string }[],
|
|
340
|
+
enforceMFA?: boolean,
|
|
337
341
|
// _AIEnabled?: boolean,
|
|
338
342
|
}
|
|
339
343
|
export type OrganizationTheme = {
|
|
@@ -518,6 +522,8 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
518
522
|
elationUserId?: number,
|
|
519
523
|
iOSBadgeCount?: number,
|
|
520
524
|
doseSpotUserId?: string,
|
|
525
|
+
url?: string,
|
|
526
|
+
requiresMFAConfiguration?: boolean,
|
|
521
527
|
}
|
|
522
528
|
|
|
523
529
|
export type Preference = 'email' | 'sms' | 'call' | 'chat'
|
|
@@ -559,7 +565,13 @@ export type ScheduledJourney = {
|
|
|
559
565
|
}
|
|
560
566
|
|
|
561
567
|
export type EnduserRelationship = {
|
|
562
|
-
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
|
+
)
|
|
563
575
|
id: string,
|
|
564
576
|
}
|
|
565
577
|
export type Language = {
|
|
@@ -618,6 +630,7 @@ export type EnduserInsurance = {
|
|
|
618
630
|
// email?: string, // not needed yet
|
|
619
631
|
},
|
|
620
632
|
payerType?: string, // for Healthie
|
|
633
|
+
groupNumber?: string,
|
|
621
634
|
}
|
|
622
635
|
|
|
623
636
|
export type TellescopeGender = "Male" | "Female" | "Other" | "Unknown"
|
|
@@ -1104,7 +1117,9 @@ export interface MessageTemplate extends MessageTemplate_readonly, MessageTempla
|
|
|
1104
1117
|
isMarketing?: boolean,
|
|
1105
1118
|
forChannels?: string[],
|
|
1106
1119
|
forRoles?: string[],
|
|
1120
|
+
forEntityTypes?: string[],
|
|
1107
1121
|
hideFromCompose?: boolean,
|
|
1122
|
+
tags?: string[],
|
|
1108
1123
|
}
|
|
1109
1124
|
|
|
1110
1125
|
export interface File_readonly extends ClientRecord {
|
|
@@ -1330,6 +1345,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1330
1345
|
},
|
|
1331
1346
|
useDatePicker?: boolean,
|
|
1332
1347
|
sharedIntakeFields?: string[],
|
|
1348
|
+
hiddenDefaultFields?: string[],
|
|
1333
1349
|
copyResponse?: boolean, // copy to related contacts when created
|
|
1334
1350
|
disableGoBack?: boolean,
|
|
1335
1351
|
disableNext?: boolean,
|
|
@@ -1344,6 +1360,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1344
1360
|
validStates?: string[],
|
|
1345
1361
|
autoAdvance?: boolean,
|
|
1346
1362
|
prefillSignature?: boolean,
|
|
1363
|
+
includeGroupNumber?: boolean,
|
|
1347
1364
|
}
|
|
1348
1365
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
|
|
1349
1366
|
|
|
@@ -1486,6 +1503,7 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1486
1503
|
authentication: IntegrationAuthentication,
|
|
1487
1504
|
emailDisabled?: boolean,
|
|
1488
1505
|
syncUnrecognizedSenders?: boolean,
|
|
1506
|
+
createEndusersForUnrecognizedSenders?: boolean,
|
|
1489
1507
|
calendars?: string[],
|
|
1490
1508
|
environment?: string,
|
|
1491
1509
|
webhooksSecret?: string,
|
|
@@ -1982,7 +2000,8 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
1982
2000
|
bufferEndMinutes?: number,
|
|
1983
2001
|
|
|
1984
2002
|
canvasCoding?: CanvasCoding,
|
|
1985
|
-
tags?: string[]
|
|
2003
|
+
tags?: string[],
|
|
2004
|
+
matchToHealthieTemplate?: boolean,
|
|
1986
2005
|
}
|
|
1987
2006
|
|
|
1988
2007
|
export interface AppointmentLocation_readonly extends ClientRecord {}
|
|
@@ -2292,6 +2311,7 @@ export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smar
|
|
|
2292
2311
|
}>
|
|
2293
2312
|
export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>
|
|
2294
2313
|
export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', { journeyIds?: string[] }>
|
|
2314
|
+
export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', { type: string }>
|
|
2295
2315
|
|
|
2296
2316
|
export type IterableFieldsMapping = {
|
|
2297
2317
|
iterable: string,
|
|
@@ -2345,6 +2365,7 @@ export type AutomationActionForType = {
|
|
|
2345
2365
|
'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction,
|
|
2346
2366
|
'healthieSync': HealthieSyncAutomationAction,
|
|
2347
2367
|
'completeTickets': CompleteTicketsAutomationAction,
|
|
2368
|
+
'changeContactType': ChangeContactTypeAutomationAction,
|
|
2348
2369
|
}
|
|
2349
2370
|
export type AutomationActionType = keyof AutomationActionForType
|
|
2350
2371
|
export type AutomationAction = AutomationActionForType[AutomationActionType]
|
|
@@ -3052,6 +3073,11 @@ export type EnduserProfileViewBlocks = {
|
|
|
3052
3073
|
fields: string[],
|
|
3053
3074
|
displayFields?: { field: string, display: string }[],
|
|
3054
3075
|
}>,
|
|
3076
|
+
"Form Responses": EnduserProfileViewBlockBuilder<"Form Responses", {
|
|
3077
|
+
title: string,
|
|
3078
|
+
formId: string,
|
|
3079
|
+
fieldIds: string[],
|
|
3080
|
+
}>,
|
|
3055
3081
|
}
|
|
3056
3082
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks
|
|
3057
3083
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType]
|
|
@@ -3096,6 +3122,8 @@ export type AutomationTriggerEvents = {
|
|
|
3096
3122
|
'Field Equals': AutomationTriggerEventBuilder<"Field Equals", { field: string, value: string }, { }>,
|
|
3097
3123
|
'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", { titles?: string[] }, {}>,
|
|
3098
3124
|
'Appointment Completed': AutomationTriggerEventBuilder<"Appointment Completed", { titles?: string[] }, {}>,
|
|
3125
|
+
'Appointment Cancelled': AutomationTriggerEventBuilder<"Appointment Cancelled", { titles?: string[] }, {}>,
|
|
3126
|
+
'Appointment Rescheduled': AutomationTriggerEventBuilder<"Appointment Rescheduled", { titles?: string[] }, {}>,
|
|
3099
3127
|
'Medication Added': AutomationTriggerEventBuilder<"Medication Added", { titles: string[] }, {}>,
|
|
3100
3128
|
'No Recent Appointment': AutomationTriggerEventBuilder<"No Recent Appointment", {
|
|
3101
3129
|
intervalInMS: number,
|
|
@@ -3122,6 +3150,10 @@ export type AutomationTriggerEvents = {
|
|
|
3122
3150
|
phoneNumbers?: string[],
|
|
3123
3151
|
inputs?: string[],
|
|
3124
3152
|
}, {}>,
|
|
3153
|
+
'Order Created': AutomationTriggerEventBuilder<"Order Created", { titles?: string[] }, {}>,
|
|
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)", { }, {}>,
|
|
3125
3157
|
}
|
|
3126
3158
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents
|
|
3127
3159
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType]
|
|
@@ -3225,7 +3257,7 @@ export type PhoneTreeActions = {
|
|
|
3225
3257
|
// 'Play': PhoneTreeActionBuilder<"Play", { playback: PhonePlayback }>
|
|
3226
3258
|
'Gather': PhoneTreeActionBuilder<"Gather", { digits: boolean, speech: boolean, playback: PhonePlayback }>
|
|
3227
3259
|
'Voicemail': PhoneTreeActionBuilder<"Voicemail", { playback: PhonePlayback }>
|
|
3228
|
-
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback }>
|
|
3260
|
+
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string }>
|
|
3229
3261
|
'Dial Users': PhoneTreeActionBuilder<"Dial Users", { userIds: string[], playback?: Partial<PhonePlayback> }>
|
|
3230
3262
|
'Route Call': PhoneTreeActionBuilder<"Route Call", {
|
|
3231
3263
|
prePlayback?: Partial<PhonePlayback>,
|
|
@@ -3373,6 +3405,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3373
3405
|
externalId: string,
|
|
3374
3406
|
source: string,
|
|
3375
3407
|
title: string,
|
|
3408
|
+
description?: string,
|
|
3376
3409
|
status: string,
|
|
3377
3410
|
enduserId: string,
|
|
3378
3411
|
userId?: string,
|
|
@@ -3384,6 +3417,19 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3384
3417
|
tracking?: string,
|
|
3385
3418
|
}
|
|
3386
3419
|
|
|
3420
|
+
export interface EnduserProblem_readonly extends ClientRecord {}
|
|
3421
|
+
export interface EnduserProblem_updatesDisabled {}
|
|
3422
|
+
export interface EnduserProblem_required {}
|
|
3423
|
+
export interface EnduserProblem extends EnduserProblem_readonly, EnduserProblem_required, EnduserProblem_updatesDisabled {
|
|
3424
|
+
externalId?: string,
|
|
3425
|
+
source?: string,
|
|
3426
|
+
title: string,
|
|
3427
|
+
enduserId: string,
|
|
3428
|
+
code?: string,
|
|
3429
|
+
codeset?: string,
|
|
3430
|
+
references?: RelatedRecord[],
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3387
3433
|
export type CandidProcedureCode = {
|
|
3388
3434
|
code: string,
|
|
3389
3435
|
quantity: number,
|
|
@@ -3516,9 +3562,22 @@ export interface PrescriptionRoute extends PrescriptionRoute_readonly, Prescript
|
|
|
3516
3562
|
state: string,
|
|
3517
3563
|
templateIds: string[],
|
|
3518
3564
|
pharmacyId?: string,
|
|
3565
|
+
pharmacyLabel?: string,
|
|
3566
|
+
tags?: string[],
|
|
3567
|
+
}
|
|
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,
|
|
3519
3576
|
}
|
|
3520
3577
|
|
|
3521
3578
|
export type ModelForName_required = {
|
|
3579
|
+
flowchart_notes: FlowchartNote_required,
|
|
3580
|
+
enduser_problems: EnduserProblem_required,
|
|
3522
3581
|
prescription_routes: PrescriptionRoute_required,
|
|
3523
3582
|
vital_configurations: VitalConfiguration_required,
|
|
3524
3583
|
blocked_phones: BlockedPhone_required,
|
|
@@ -3594,6 +3653,8 @@ export type ModelForName_required = {
|
|
|
3594
3653
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
|
|
3595
3654
|
|
|
3596
3655
|
export interface ModelForName_readonly {
|
|
3656
|
+
flowchart_notes: FlowchartNote_readonly,
|
|
3657
|
+
enduser_problems: EnduserProblem_readonly,
|
|
3597
3658
|
prescription_routes: PrescriptionRoute_readonly,
|
|
3598
3659
|
blocked_phones: BlockedPhone_readonly,
|
|
3599
3660
|
vital_configurations: VitalConfiguration_readonly,
|
|
@@ -3669,6 +3730,8 @@ export interface ModelForName_readonly {
|
|
|
3669
3730
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
|
|
3670
3731
|
|
|
3671
3732
|
export interface ModelForName_updatesDisabled {
|
|
3733
|
+
flowchart_notes: FlowchartNote_updatesDisabled,
|
|
3734
|
+
enduser_problems: EnduserProblem_updatesDisabled,
|
|
3672
3735
|
prescription_routes: PrescriptionRoute_updatesDisabled,
|
|
3673
3736
|
blocked_phones: BlockedPhone_updatesDisabled,
|
|
3674
3737
|
vital_configurations: VitalConfiguration_updatesDisabled,
|
|
@@ -3744,6 +3807,8 @@ export interface ModelForName_updatesDisabled {
|
|
|
3744
3807
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
|
|
3745
3808
|
|
|
3746
3809
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3810
|
+
flowchart_notes: FlowchartNote,
|
|
3811
|
+
enduser_problems: EnduserProblem,
|
|
3747
3812
|
prescription_routes: PrescriptionRoute,
|
|
3748
3813
|
blocked_phones: BlockedPhone,
|
|
3749
3814
|
vital_configurations: VitalConfiguration,
|
|
@@ -3829,6 +3894,8 @@ export interface UserActivityInfo {
|
|
|
3829
3894
|
export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
|
|
3830
3895
|
|
|
3831
3896
|
export const modelNameChecker: { [K in ModelName] : true } = {
|
|
3897
|
+
flowchart_notes: true,
|
|
3898
|
+
enduser_problems: true,
|
|
3832
3899
|
prescription_routes: true,
|
|
3833
3900
|
blocked_phones: true,
|
|
3834
3901
|
vital_configurations: true,
|
|
@@ -3928,6 +3995,7 @@ export type JourneyContext = {
|
|
|
3928
3995
|
orderId?: string,
|
|
3929
3996
|
observationId?: string,
|
|
3930
3997
|
phoneCallId?: string,
|
|
3998
|
+
smsId?: string,
|
|
3931
3999
|
}
|
|
3932
4000
|
|
|
3933
4001
|
// https://gist.github.com/aviflax/a4093965be1cd008f172/
|