@tellescope/types-models 1.93.0 → 1.95.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 +45 -2
- 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 +45 -2
- 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 +49 -6
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,
|
|
@@ -240,7 +241,7 @@ export type AthenaFieldSync = {
|
|
|
240
241
|
|
|
241
242
|
export type AthenaSubscription = {
|
|
242
243
|
// make sure to update validator if adding new types here
|
|
243
|
-
type: 'patients' | 'appointments' | 'orders' | 'chart/healthhistory/problems',
|
|
244
|
+
type: 'patients' | 'appointments' | 'orders' | 'chart/healthhistory/problems' | 'obepisode',
|
|
244
245
|
frequencyInMinutes: number,
|
|
245
246
|
lastSyncedAt: Date,
|
|
246
247
|
}
|
|
@@ -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 {
|
|
@@ -1500,6 +1512,10 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1500
1512
|
disableEnduserAutoSync?: boolean,
|
|
1501
1513
|
disableTicketAutoSync?: boolean,
|
|
1502
1514
|
redactExternalEvents?: boolean,
|
|
1515
|
+
fhirClientId?: string,
|
|
1516
|
+
fhirClientSecret?: string,
|
|
1517
|
+
fhirAccessToken?: string,
|
|
1518
|
+
fhirExpiryDate?: number,
|
|
1503
1519
|
}
|
|
1504
1520
|
|
|
1505
1521
|
export type BuildDatabaseRecordField <K extends string, V, O> = { type: K, value: V, options: O & { width?: string } }
|
|
@@ -1988,7 +2004,8 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
1988
2004
|
bufferEndMinutes?: number,
|
|
1989
2005
|
|
|
1990
2006
|
canvasCoding?: CanvasCoding,
|
|
1991
|
-
tags?: string[]
|
|
2007
|
+
tags?: string[],
|
|
2008
|
+
matchToHealthieTemplate?: boolean,
|
|
1992
2009
|
}
|
|
1993
2010
|
|
|
1994
2011
|
export interface AppointmentLocation_readonly extends ClientRecord {}
|
|
@@ -2298,6 +2315,7 @@ export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smar
|
|
|
2298
2315
|
}>
|
|
2299
2316
|
export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>
|
|
2300
2317
|
export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', { journeyIds?: string[] }>
|
|
2318
|
+
export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', { type: string }>
|
|
2301
2319
|
|
|
2302
2320
|
export type IterableFieldsMapping = {
|
|
2303
2321
|
iterable: string,
|
|
@@ -2351,6 +2369,7 @@ export type AutomationActionForType = {
|
|
|
2351
2369
|
'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction,
|
|
2352
2370
|
'healthieSync': HealthieSyncAutomationAction,
|
|
2353
2371
|
'completeTickets': CompleteTicketsAutomationAction,
|
|
2372
|
+
'changeContactType': ChangeContactTypeAutomationAction,
|
|
2354
2373
|
}
|
|
2355
2374
|
export type AutomationActionType = keyof AutomationActionForType
|
|
2356
2375
|
export type AutomationAction = AutomationActionForType[AutomationActionType]
|
|
@@ -3058,6 +3077,11 @@ export type EnduserProfileViewBlocks = {
|
|
|
3058
3077
|
fields: string[],
|
|
3059
3078
|
displayFields?: { field: string, display: string }[],
|
|
3060
3079
|
}>,
|
|
3080
|
+
"Form Responses": EnduserProfileViewBlockBuilder<"Form Responses", {
|
|
3081
|
+
title: string,
|
|
3082
|
+
formId: string,
|
|
3083
|
+
fieldIds: string[],
|
|
3084
|
+
}>,
|
|
3061
3085
|
}
|
|
3062
3086
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks
|
|
3063
3087
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType]
|
|
@@ -3085,7 +3109,8 @@ export type AutomationTriggerActions = {
|
|
|
3085
3109
|
"Add Access Tags": AutomationTriggerActionBuilder<'Add Access Tags', { tags: string[] }>,
|
|
3086
3110
|
"Move To Step": AutomationTriggerActionBuilder<'Move To Step', { }>, // journeyId and automationStepId stored as part of trigger for better dependency deletion
|
|
3087
3111
|
"Assign Care Team": AutomationTriggerActionBuilder<'Assign Care Team', {
|
|
3088
|
-
tags: ListOfStringsWithQualifier
|
|
3112
|
+
tags: ListOfStringsWithQualifier,
|
|
3113
|
+
limitToOneUser?: boolean,
|
|
3089
3114
|
}>,
|
|
3090
3115
|
"Canvas: Add Patient": AutomationTriggerActionBuilder<'Canvas: Add Patient', { }>,
|
|
3091
3116
|
}
|
|
@@ -3132,6 +3157,9 @@ export type AutomationTriggerEvents = {
|
|
|
3132
3157
|
}, {}>,
|
|
3133
3158
|
'Order Created': AutomationTriggerEventBuilder<"Order Created", { titles?: string[] }, {}>,
|
|
3134
3159
|
'Problem Created': AutomationTriggerEventBuilder<"Problem Created", { titles?: string[] }, {}>,
|
|
3160
|
+
'Message Delivery Failure': AutomationTriggerEventBuilder<"Message Delivery Failure", { }, {}>,
|
|
3161
|
+
'Incoming Message (No Care Team)': AutomationTriggerEventBuilder<"Incoming Message (No Care Team)", { }, {}>,
|
|
3162
|
+
'Pregnancy Ended': AutomationTriggerEventBuilder<"Pregnancy Ended", { reason?: string }, {}>,
|
|
3135
3163
|
}
|
|
3136
3164
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents
|
|
3137
3165
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType]
|
|
@@ -3235,7 +3263,7 @@ export type PhoneTreeActions = {
|
|
|
3235
3263
|
// 'Play': PhoneTreeActionBuilder<"Play", { playback: PhonePlayback }>
|
|
3236
3264
|
'Gather': PhoneTreeActionBuilder<"Gather", { digits: boolean, speech: boolean, playback: PhonePlayback }>
|
|
3237
3265
|
'Voicemail': PhoneTreeActionBuilder<"Voicemail", { playback: PhonePlayback }>
|
|
3238
|
-
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback }>
|
|
3266
|
+
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string }>
|
|
3239
3267
|
'Dial Users': PhoneTreeActionBuilder<"Dial Users", { userIds: string[], playback?: Partial<PhonePlayback> }>
|
|
3240
3268
|
'Route Call': PhoneTreeActionBuilder<"Route Call", {
|
|
3241
3269
|
prePlayback?: Partial<PhonePlayback>,
|
|
@@ -3544,7 +3572,17 @@ export interface PrescriptionRoute extends PrescriptionRoute_readonly, Prescript
|
|
|
3544
3572
|
tags?: string[],
|
|
3545
3573
|
}
|
|
3546
3574
|
|
|
3575
|
+
export interface FlowchartNote_readonly extends ClientRecord { }
|
|
3576
|
+
export interface FlowchartNote_required {}
|
|
3577
|
+
export interface FlowchartNote_updatesDisabled {}
|
|
3578
|
+
export interface FlowchartNote extends FlowchartNote_readonly, FlowchartNote_required, FlowchartNote_updatesDisabled {
|
|
3579
|
+
flowchartId: string,
|
|
3580
|
+
note: string,
|
|
3581
|
+
flowchartUI?: FlowchartUI,
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3547
3584
|
export type ModelForName_required = {
|
|
3585
|
+
flowchart_notes: FlowchartNote_required,
|
|
3548
3586
|
enduser_problems: EnduserProblem_required,
|
|
3549
3587
|
prescription_routes: PrescriptionRoute_required,
|
|
3550
3588
|
vital_configurations: VitalConfiguration_required,
|
|
@@ -3621,6 +3659,7 @@ export type ModelForName_required = {
|
|
|
3621
3659
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
|
|
3622
3660
|
|
|
3623
3661
|
export interface ModelForName_readonly {
|
|
3662
|
+
flowchart_notes: FlowchartNote_readonly,
|
|
3624
3663
|
enduser_problems: EnduserProblem_readonly,
|
|
3625
3664
|
prescription_routes: PrescriptionRoute_readonly,
|
|
3626
3665
|
blocked_phones: BlockedPhone_readonly,
|
|
@@ -3697,6 +3736,7 @@ export interface ModelForName_readonly {
|
|
|
3697
3736
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
|
|
3698
3737
|
|
|
3699
3738
|
export interface ModelForName_updatesDisabled {
|
|
3739
|
+
flowchart_notes: FlowchartNote_updatesDisabled,
|
|
3700
3740
|
enduser_problems: EnduserProblem_updatesDisabled,
|
|
3701
3741
|
prescription_routes: PrescriptionRoute_updatesDisabled,
|
|
3702
3742
|
blocked_phones: BlockedPhone_updatesDisabled,
|
|
@@ -3773,6 +3813,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
3773
3813
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
|
|
3774
3814
|
|
|
3775
3815
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3816
|
+
flowchart_notes: FlowchartNote,
|
|
3776
3817
|
enduser_problems: EnduserProblem,
|
|
3777
3818
|
prescription_routes: PrescriptionRoute,
|
|
3778
3819
|
blocked_phones: BlockedPhone,
|
|
@@ -3859,6 +3900,7 @@ export interface UserActivityInfo {
|
|
|
3859
3900
|
export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
|
|
3860
3901
|
|
|
3861
3902
|
export const modelNameChecker: { [K in ModelName] : true } = {
|
|
3903
|
+
flowchart_notes: true,
|
|
3862
3904
|
enduser_problems: true,
|
|
3863
3905
|
prescription_routes: true,
|
|
3864
3906
|
blocked_phones: true,
|
|
@@ -3959,6 +4001,7 @@ export type JourneyContext = {
|
|
|
3959
4001
|
orderId?: string,
|
|
3960
4002
|
observationId?: string,
|
|
3961
4003
|
phoneCallId?: string,
|
|
4004
|
+
smsId?: string,
|
|
3962
4005
|
}
|
|
3963
4006
|
|
|
3964
4007
|
// https://gist.github.com/aviflax/a4093965be1cd008f172/
|