@tellescope/types-models 1.204.2 → 1.206.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 +46 -7
- 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 +46 -7
- 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 +3 -3
- package/src/index.ts +43 -8
package/src/index.ts
CHANGED
|
@@ -458,6 +458,7 @@ export type OrganizationTheme = {
|
|
|
458
458
|
customPoliciesVersion?: string,
|
|
459
459
|
requireCustomTermsOnMagicLink?: boolean,
|
|
460
460
|
hasConnectedVital?: boolean,
|
|
461
|
+
brandId?: string,
|
|
461
462
|
}
|
|
462
463
|
|
|
463
464
|
|
|
@@ -762,6 +763,13 @@ export type EnduserInsurance = {
|
|
|
762
763
|
startDate?: string,
|
|
763
764
|
}
|
|
764
765
|
|
|
766
|
+
export type EnduserDevice = {
|
|
767
|
+
title: string,
|
|
768
|
+
id: string,
|
|
769
|
+
gatewayId?: string,
|
|
770
|
+
disabled?: boolean,
|
|
771
|
+
}
|
|
772
|
+
|
|
765
773
|
export type EnduserDiagnosis = {
|
|
766
774
|
id?: string, // if created in Tellescope
|
|
767
775
|
createdAt?: Date,
|
|
@@ -863,11 +871,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
863
871
|
insurance?: EnduserInsurance,
|
|
864
872
|
insuranceSecondary?: EnduserInsurance,
|
|
865
873
|
bookingNotes?: { bookingPageId: string, note: string }[]
|
|
866
|
-
devices?:
|
|
867
|
-
title: string,
|
|
868
|
-
id: string,
|
|
869
|
-
disabled?: boolean,
|
|
870
|
-
}[],
|
|
874
|
+
devices?: EnduserDevice[],
|
|
871
875
|
salesforceId?: string,
|
|
872
876
|
athenaPracticeId?: string,
|
|
873
877
|
athenaDepartmentId?: string,
|
|
@@ -1073,7 +1077,7 @@ export type EndusersReportQueries = Record<string, EnduserReportQuery>
|
|
|
1073
1077
|
export type EndusersReport = Report
|
|
1074
1078
|
|
|
1075
1079
|
export type JourneyStatistics = {
|
|
1076
|
-
steps: Record<string, { count: number, opens?: number, clicked?: number }>,
|
|
1080
|
+
steps: Record<string, { count: number, activeCount: number, finishedCount: number, errorCount: number, cancelledCount: number, opens?: number, clicked?: number }>,
|
|
1077
1081
|
}
|
|
1078
1082
|
|
|
1079
1083
|
export type FormStatistics = {
|
|
@@ -1610,6 +1614,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1610
1614
|
fieldId?: string,
|
|
1611
1615
|
databaseLabel?: string,
|
|
1612
1616
|
},
|
|
1617
|
+
allowAddToDatabase?: boolean,
|
|
1613
1618
|
useDatePicker?: boolean,
|
|
1614
1619
|
sharedIntakeFields?: string[],
|
|
1615
1620
|
hiddenDefaultFields?: string[],
|
|
@@ -1674,6 +1679,7 @@ export interface FormField_required {
|
|
|
1674
1679
|
}
|
|
1675
1680
|
export interface FormField_updatesDisabled {}
|
|
1676
1681
|
export interface FormField extends FormField_readonly, FormField_required, FormField_updatesDisabled {
|
|
1682
|
+
internalNote?: string,
|
|
1677
1683
|
placeholder ?: string,
|
|
1678
1684
|
isOptional ?: boolean,
|
|
1679
1685
|
fullZIP ?: boolean,
|
|
@@ -2300,6 +2306,7 @@ export interface CalendarEvent_required {
|
|
|
2300
2306
|
}
|
|
2301
2307
|
export interface CalendarEvent_updatesDisabled {}
|
|
2302
2308
|
export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
|
|
2309
|
+
updateKey?: string,
|
|
2303
2310
|
createAndBookAthenaSlot?: boolean,
|
|
2304
2311
|
athenaDepartmentId?: string,
|
|
2305
2312
|
generateAthenaTelehealthLink?: boolean,
|
|
@@ -2414,6 +2421,7 @@ export interface Product extends Product_readonly, Product_required, Product_upd
|
|
|
2414
2421
|
stripeSubscriptionId?: string,
|
|
2415
2422
|
stripeProductId?: string,
|
|
2416
2423
|
stripePriceId?: string,
|
|
2424
|
+
additionalStripePriceIds?: string[],
|
|
2417
2425
|
}
|
|
2418
2426
|
|
|
2419
2427
|
export interface Purchase_readonly extends ClientRecord {}
|
|
@@ -2644,6 +2652,7 @@ export type AutomationEventType =
|
|
|
2644
2652
|
| "formsUnsubmitted"
|
|
2645
2653
|
| "ticketCompleted"
|
|
2646
2654
|
| 'waitForTrigger'
|
|
2655
|
+
| "onCallOutcome"
|
|
2647
2656
|
|
|
2648
2657
|
interface AutomationEventBuilder <T extends AutomationEventType, V extends object> {
|
|
2649
2658
|
type: T,
|
|
@@ -2690,6 +2699,8 @@ export interface AutomationForWebhook {
|
|
|
2690
2699
|
url?: string,
|
|
2691
2700
|
secret?: string,
|
|
2692
2701
|
fields?: LabeledField[],
|
|
2702
|
+
headers?: LabeledField[],
|
|
2703
|
+
method?: 'get' | 'patch' | 'post' | 'put' | 'delete',
|
|
2693
2704
|
}
|
|
2694
2705
|
|
|
2695
2706
|
export type FormResponseAutomationEvent = AutomationEventBuilder<'formResponse', {
|
|
@@ -2744,6 +2755,7 @@ export type FormsUnsubmittedEvent = AutomationEventBuilder<'formsUnsubmitted', F
|
|
|
2744
2755
|
export type OnJourneyStartAutomationEvent = AutomationEventBuilder<'onJourneyStart', {}>
|
|
2745
2756
|
export type TicketCompletedAutomationEvent = AutomationEventBuilder<'ticketCompleted', TicketCompletedEventInfo>
|
|
2746
2757
|
export type WaitForTriggerAutomationEvent = AutomationEventBuilder<'waitForTrigger', { automationStepId: string, triggerId: string }>
|
|
2758
|
+
export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome', { automationStepId: string, outcome: string }>
|
|
2747
2759
|
|
|
2748
2760
|
export type AutomationEvent =
|
|
2749
2761
|
FormResponseAutomationEvent
|
|
@@ -2754,6 +2766,7 @@ export type AutomationEvent =
|
|
|
2754
2766
|
| FormsUnsubmittedEvent
|
|
2755
2767
|
| TicketCompletedAutomationEvent
|
|
2756
2768
|
| WaitForTriggerAutomationEvent
|
|
2769
|
+
| OnCallOutcomeAutomationEvent
|
|
2757
2770
|
|
|
2758
2771
|
export type AutomationEventForType = {
|
|
2759
2772
|
'onJourneyStart': OnJourneyStartAutomationEvent
|
|
@@ -2764,6 +2777,7 @@ export type AutomationEventForType = {
|
|
|
2764
2777
|
'formsUnsubmitted': FormsUnsubmittedEvent
|
|
2765
2778
|
'ticketCompleted': TicketCompletedAutomationEvent
|
|
2766
2779
|
'waitForTrigger': WaitForTriggerAutomationEvent
|
|
2780
|
+
'onCallOutcome': OnCallOutcomeAutomationEvent,
|
|
2767
2781
|
}
|
|
2768
2782
|
|
|
2769
2783
|
export type SetEnduserStatusInfo = { status: string }
|
|
@@ -2953,8 +2967,12 @@ export type AutomationConditionBuilder <T extends AutomationConditionType, V ext
|
|
|
2953
2967
|
}
|
|
2954
2968
|
export type AtJourneyStateAutomationCondition = AutomationConditionBuilder<'atJourneyState', AutomationForJourneyAndState>
|
|
2955
2969
|
export type AutomationCondition = AtJourneyStateAutomationCondition
|
|
2970
|
+
export type OutboundCallAutomationAction = AutomationActionBuilder<'outboundCall', {
|
|
2971
|
+
treeId: string, // id of the call tree to use
|
|
2972
|
+
}>
|
|
2956
2973
|
|
|
2957
2974
|
export type AutomationActionForType = {
|
|
2975
|
+
'outboundCall': OutboundCallAutomationAction,
|
|
2958
2976
|
"sendEmail" : SendEmailAutomationAction,
|
|
2959
2977
|
"sendSMS": SendSMSAutomationAction,
|
|
2960
2978
|
"sendChat": SendChatAutomationAction,
|
|
@@ -3209,6 +3227,7 @@ export interface PortalCustomization extends PortalCustomization_readonly, Porta
|
|
|
3209
3227
|
hideReschedule?: boolean,
|
|
3210
3228
|
hiddenEventTitles?: string[],
|
|
3211
3229
|
hiddenFormIds?: string[],
|
|
3230
|
+
brandId?: string,
|
|
3212
3231
|
}
|
|
3213
3232
|
export const MOBILE_BOTTOM_NAVIGATION_DISABLED_POSITION = 1000
|
|
3214
3233
|
export const DEFAULT_PATIENT_PORTAL_BOTTOM_NAVIGATION_POSITIONS: { [K in PortalPage]: number } = {
|
|
@@ -3494,6 +3513,7 @@ export type AnalyticsQueryInfoForType = {
|
|
|
3494
3513
|
Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>,
|
|
3495
3514
|
},
|
|
3496
3515
|
"Journey Logs": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
|
|
3516
|
+
"Orders": { Total: AnalyticsQueryInfoBuilder<'Total', undefined> },
|
|
3497
3517
|
}
|
|
3498
3518
|
export type AnalyticsQueryInfoType = keyof AnalyticsQueryInfoForType
|
|
3499
3519
|
export type AnalyticsQueryInfo = AnalyticsQueryInfoForType[AnalyticsQueryInfoType]
|
|
@@ -3564,6 +3584,7 @@ export type AnalyticsQueryFilterForType = {
|
|
|
3564
3584
|
"Journey Logs": {
|
|
3565
3585
|
automationStepIds?: string[],
|
|
3566
3586
|
},
|
|
3587
|
+
Orders: { },
|
|
3567
3588
|
}
|
|
3568
3589
|
|
|
3569
3590
|
export type EnduserGrouping = {
|
|
@@ -3605,6 +3626,7 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
3605
3626
|
"Files": {} & EnduserGrouping & { Enduser: string },
|
|
3606
3627
|
"Journey Logs": {} & EnduserGrouping & { Enduser: string },
|
|
3607
3628
|
"Meetings": { Host?: boolean },
|
|
3629
|
+
"Orders": {} & EnduserGrouping & { Enduser: string },
|
|
3608
3630
|
}
|
|
3609
3631
|
|
|
3610
3632
|
type DefaultRangeKey = 'Created At' | 'Updated At'
|
|
@@ -3622,6 +3644,7 @@ export type AnalyticsQueryRangeKeyForType = {
|
|
|
3622
3644
|
"Files": DefaultRangeKey,
|
|
3623
3645
|
"Meetings": DefaultRangeKey,
|
|
3624
3646
|
"Journey Logs": DefaultRangeKey,
|
|
3647
|
+
"Orders": DefaultRangeKey,
|
|
3625
3648
|
}
|
|
3626
3649
|
export type RangeKey = DefaultRangeKey | 'Submitted At' | "Closed At"
|
|
3627
3650
|
|
|
@@ -3730,6 +3753,13 @@ export type AnalyticsQueryForType = {
|
|
|
3730
3753
|
AnalyticsQueryGroupingForType['Journey Logs'],
|
|
3731
3754
|
AnalyticsQueryRangeKeyForType['Journey Logs']
|
|
3732
3755
|
>,
|
|
3756
|
+
"Orders": AnalyticsQueryBuilder<
|
|
3757
|
+
"Orders",
|
|
3758
|
+
AnalyticsQueryInfoForType['Orders'][keyof AnalyticsQueryInfoForType['Orders']],
|
|
3759
|
+
AnalyticsQueryFilterForType['Orders'],
|
|
3760
|
+
AnalyticsQueryGroupingForType['Orders'],
|
|
3761
|
+
AnalyticsQueryRangeKeyForType['Orders']
|
|
3762
|
+
>,
|
|
3733
3763
|
}
|
|
3734
3764
|
export type AnalyticsQueryType = keyof AnalyticsQueryForType
|
|
3735
3765
|
export type AnalyticsQuery = AnalyticsQueryForType[AnalyticsQueryType]
|
|
@@ -3748,6 +3778,7 @@ export const resource_to_modelName: { [K in AnalyticsQueryType] : ModelName } =
|
|
|
3748
3778
|
Files: "files",
|
|
3749
3779
|
Meetings: "meetings",
|
|
3750
3780
|
"Journey Logs": "automated_actions",
|
|
3781
|
+
Orders: "enduser_orders",
|
|
3751
3782
|
}
|
|
3752
3783
|
|
|
3753
3784
|
export type AnalyticsQueryOptions = {
|
|
@@ -4061,6 +4092,7 @@ export type SuperbillLineItem = {
|
|
|
4061
4092
|
currency: Currency // supported currencies
|
|
4062
4093
|
},
|
|
4063
4094
|
discount?: number, // following Stripe convention of smallest currency unit (e.g. cents for usd)
|
|
4095
|
+
diagnosisCodes?: string[],
|
|
4064
4096
|
}
|
|
4065
4097
|
|
|
4066
4098
|
export type SuperbillPatientInfo = {
|
|
@@ -4104,7 +4136,7 @@ export type PhoneTreeActions = {
|
|
|
4104
4136
|
// 'Play': PhoneTreeActionBuilder<"Play", { playback: PhonePlayback }>
|
|
4105
4137
|
'Gather': PhoneTreeActionBuilder<"Gather", { digits: boolean, speech: boolean, playback: PhonePlayback, duration?: number }>
|
|
4106
4138
|
'Voicemail': PhoneTreeActionBuilder<"Voicemail", { playback: PhonePlayback, journeyId?: string }>
|
|
4107
|
-
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string }>
|
|
4139
|
+
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string, outcome?: string, cancelAppointment?: boolean, confirmAppointment?: boolean }>
|
|
4108
4140
|
'Dial Users': PhoneTreeActionBuilder<"Dial Users", { userIds: string[], playback?: Partial<PhonePlayback>, duration?: number }>
|
|
4109
4141
|
'Route Call': PhoneTreeActionBuilder<"Route Call", {
|
|
4110
4142
|
prePlayback?: Partial<PhonePlayback>,
|
|
@@ -4150,7 +4182,7 @@ export type PhoneTreeEnduserCondition = (
|
|
|
4150
4182
|
)
|
|
4151
4183
|
export interface PhoneTree_readonly extends ClientRecord {}
|
|
4152
4184
|
export interface PhoneTree_required {
|
|
4153
|
-
number: string,
|
|
4185
|
+
number: string, // blank for outbound phone trees
|
|
4154
4186
|
nodes: PhoneTreeNode[],
|
|
4155
4187
|
isActive: boolean,
|
|
4156
4188
|
}
|
|
@@ -4161,6 +4193,8 @@ export interface PhoneTree extends PhoneTree_readonly, PhoneTree_required, Phone
|
|
|
4161
4193
|
bypassOOO?: boolean,
|
|
4162
4194
|
defaultEntityType?: string,
|
|
4163
4195
|
tags?: string[],
|
|
4196
|
+
title?: string, // set for outbound phone trees
|
|
4197
|
+
outboundNumber?: string, // set for outbound phone trees
|
|
4164
4198
|
}
|
|
4165
4199
|
|
|
4166
4200
|
export type TableViewColumn = {
|
|
@@ -4498,6 +4532,7 @@ export interface PortalBranding extends PortalBranding_readonly, PortalBranding_
|
|
|
4498
4532
|
logoURL?: string,
|
|
4499
4533
|
subdomain?: string,
|
|
4500
4534
|
customPortalURL?: string,
|
|
4535
|
+
portalSettings?: PortalSettings,
|
|
4501
4536
|
}
|
|
4502
4537
|
|
|
4503
4538
|
export interface WebhookLog_readonly extends ClientRecord {
|