@tellescope/types-models 1.205.0 → 1.207.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 +68 -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 +68 -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 +62 -8
package/src/index.ts
CHANGED
|
@@ -260,6 +260,7 @@ export type OrganizationSettings = {
|
|
|
260
260
|
},
|
|
261
261
|
integrations?: {
|
|
262
262
|
vitalLabOrderPhysicianOptional?: boolean,
|
|
263
|
+
athenaAppointmentSyncJITSeconds?: number,
|
|
263
264
|
},
|
|
264
265
|
interface?: {
|
|
265
266
|
dontPersistSearches?: boolean,
|
|
@@ -328,6 +329,7 @@ export interface Organization_updatesDisabled {
|
|
|
328
329
|
subdomain: string;
|
|
329
330
|
}
|
|
330
331
|
export interface Organization extends Organization_readonly, Organization_required, Organization_updatesDisabled {
|
|
332
|
+
bedrockAIAllowed?: boolean,
|
|
331
333
|
subdomains?: string[],
|
|
332
334
|
owner?: string,
|
|
333
335
|
timezone?: Timezone,
|
|
@@ -435,6 +437,8 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
435
437
|
customerIOFields?: string[],
|
|
436
438
|
customerIOIdField?: string,
|
|
437
439
|
createEnduserForms?: string[],
|
|
440
|
+
creditCount?: number,
|
|
441
|
+
creditTrialStartedAt?: Date,
|
|
438
442
|
// _AIEnabled?: boolean,
|
|
439
443
|
}
|
|
440
444
|
export type OrganizationTheme = {
|
|
@@ -458,6 +462,7 @@ export type OrganizationTheme = {
|
|
|
458
462
|
customPoliciesVersion?: string,
|
|
459
463
|
requireCustomTermsOnMagicLink?: boolean,
|
|
460
464
|
hasConnectedVital?: boolean,
|
|
465
|
+
brandId?: string,
|
|
461
466
|
}
|
|
462
467
|
|
|
463
468
|
|
|
@@ -762,6 +767,13 @@ export type EnduserInsurance = {
|
|
|
762
767
|
startDate?: string,
|
|
763
768
|
}
|
|
764
769
|
|
|
770
|
+
export type EnduserDevice = {
|
|
771
|
+
title: string,
|
|
772
|
+
id: string,
|
|
773
|
+
gatewayId?: string,
|
|
774
|
+
disabled?: boolean,
|
|
775
|
+
}
|
|
776
|
+
|
|
765
777
|
export type EnduserDiagnosis = {
|
|
766
778
|
id?: string, // if created in Tellescope
|
|
767
779
|
createdAt?: Date,
|
|
@@ -863,11 +875,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
863
875
|
insurance?: EnduserInsurance,
|
|
864
876
|
insuranceSecondary?: EnduserInsurance,
|
|
865
877
|
bookingNotes?: { bookingPageId: string, note: string }[]
|
|
866
|
-
devices?:
|
|
867
|
-
title: string,
|
|
868
|
-
id: string,
|
|
869
|
-
disabled?: boolean,
|
|
870
|
-
}[],
|
|
878
|
+
devices?: EnduserDevice[],
|
|
871
879
|
salesforceId?: string,
|
|
872
880
|
athenaPracticeId?: string,
|
|
873
881
|
athenaDepartmentId?: string,
|
|
@@ -1610,6 +1618,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1610
1618
|
fieldId?: string,
|
|
1611
1619
|
databaseLabel?: string,
|
|
1612
1620
|
},
|
|
1621
|
+
allowAddToDatabase?: boolean,
|
|
1613
1622
|
useDatePicker?: boolean,
|
|
1614
1623
|
sharedIntakeFields?: string[],
|
|
1615
1624
|
hiddenDefaultFields?: string[],
|
|
@@ -1674,6 +1683,7 @@ export interface FormField_required {
|
|
|
1674
1683
|
}
|
|
1675
1684
|
export interface FormField_updatesDisabled {}
|
|
1676
1685
|
export interface FormField extends FormField_readonly, FormField_required, FormField_updatesDisabled {
|
|
1686
|
+
internalNote?: string,
|
|
1677
1687
|
placeholder ?: string,
|
|
1678
1688
|
isOptional ?: boolean,
|
|
1679
1689
|
fullZIP ?: boolean,
|
|
@@ -2300,6 +2310,7 @@ export interface CalendarEvent_required {
|
|
|
2300
2310
|
}
|
|
2301
2311
|
export interface CalendarEvent_updatesDisabled {}
|
|
2302
2312
|
export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
|
|
2313
|
+
updateKey?: string,
|
|
2303
2314
|
createAndBookAthenaSlot?: boolean,
|
|
2304
2315
|
athenaDepartmentId?: string,
|
|
2305
2316
|
generateAthenaTelehealthLink?: boolean,
|
|
@@ -2645,6 +2656,7 @@ export type AutomationEventType =
|
|
|
2645
2656
|
| "formsUnsubmitted"
|
|
2646
2657
|
| "ticketCompleted"
|
|
2647
2658
|
| 'waitForTrigger'
|
|
2659
|
+
| "onCallOutcome"
|
|
2648
2660
|
|
|
2649
2661
|
interface AutomationEventBuilder <T extends AutomationEventType, V extends object> {
|
|
2650
2662
|
type: T,
|
|
@@ -2691,6 +2703,8 @@ export interface AutomationForWebhook {
|
|
|
2691
2703
|
url?: string,
|
|
2692
2704
|
secret?: string,
|
|
2693
2705
|
fields?: LabeledField[],
|
|
2706
|
+
headers?: LabeledField[],
|
|
2707
|
+
method?: 'get' | 'patch' | 'post' | 'put' | 'delete',
|
|
2694
2708
|
}
|
|
2695
2709
|
|
|
2696
2710
|
export type FormResponseAutomationEvent = AutomationEventBuilder<'formResponse', {
|
|
@@ -2745,6 +2759,7 @@ export type FormsUnsubmittedEvent = AutomationEventBuilder<'formsUnsubmitted', F
|
|
|
2745
2759
|
export type OnJourneyStartAutomationEvent = AutomationEventBuilder<'onJourneyStart', {}>
|
|
2746
2760
|
export type TicketCompletedAutomationEvent = AutomationEventBuilder<'ticketCompleted', TicketCompletedEventInfo>
|
|
2747
2761
|
export type WaitForTriggerAutomationEvent = AutomationEventBuilder<'waitForTrigger', { automationStepId: string, triggerId: string }>
|
|
2762
|
+
export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome', { automationStepId: string, outcome: string }>
|
|
2748
2763
|
|
|
2749
2764
|
export type AutomationEvent =
|
|
2750
2765
|
FormResponseAutomationEvent
|
|
@@ -2755,6 +2770,7 @@ export type AutomationEvent =
|
|
|
2755
2770
|
| FormsUnsubmittedEvent
|
|
2756
2771
|
| TicketCompletedAutomationEvent
|
|
2757
2772
|
| WaitForTriggerAutomationEvent
|
|
2773
|
+
| OnCallOutcomeAutomationEvent
|
|
2758
2774
|
|
|
2759
2775
|
export type AutomationEventForType = {
|
|
2760
2776
|
'onJourneyStart': OnJourneyStartAutomationEvent
|
|
@@ -2765,6 +2781,7 @@ export type AutomationEventForType = {
|
|
|
2765
2781
|
'formsUnsubmitted': FormsUnsubmittedEvent
|
|
2766
2782
|
'ticketCompleted': TicketCompletedAutomationEvent
|
|
2767
2783
|
'waitForTrigger': WaitForTriggerAutomationEvent
|
|
2784
|
+
'onCallOutcome': OnCallOutcomeAutomationEvent,
|
|
2768
2785
|
}
|
|
2769
2786
|
|
|
2770
2787
|
export type SetEnduserStatusInfo = { status: string }
|
|
@@ -2842,7 +2859,7 @@ export type CreateTicketActionInfo = {
|
|
|
2842
2859
|
disableEditTitle?: boolean,
|
|
2843
2860
|
}
|
|
2844
2861
|
|
|
2845
|
-
export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & { fromEmailOverride?: string }>
|
|
2862
|
+
export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & { fromEmailOverride?: string, ccRelatedContactTypes?: string[], }>
|
|
2846
2863
|
export type NotifyTeamAutomationAction = AutomationActionBuilder<'notifyTeam', {
|
|
2847
2864
|
templateId: string,
|
|
2848
2865
|
forAssigned: boolean,
|
|
@@ -2890,6 +2907,7 @@ export type SendChatAutomationAction = AutomationActionBuilder<'sendChat', {
|
|
|
2890
2907
|
identifier: string,
|
|
2891
2908
|
includeCareTeam?: boolean,
|
|
2892
2909
|
userIds?: string[], // for when not includeCareTeam
|
|
2910
|
+
sendToDestinationOfRelatedContactTypes?: string[],
|
|
2893
2911
|
}>
|
|
2894
2912
|
export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>
|
|
2895
2913
|
export type HealthieAddToCourseAutomationAction = AutomationActionBuilder<'healthieAddToCourse', { courseId: string }>
|
|
@@ -2954,8 +2972,12 @@ export type AutomationConditionBuilder <T extends AutomationConditionType, V ext
|
|
|
2954
2972
|
}
|
|
2955
2973
|
export type AtJourneyStateAutomationCondition = AutomationConditionBuilder<'atJourneyState', AutomationForJourneyAndState>
|
|
2956
2974
|
export type AutomationCondition = AtJourneyStateAutomationCondition
|
|
2975
|
+
export type OutboundCallAutomationAction = AutomationActionBuilder<'outboundCall', {
|
|
2976
|
+
treeId: string, // id of the call tree to use
|
|
2977
|
+
}>
|
|
2957
2978
|
|
|
2958
2979
|
export type AutomationActionForType = {
|
|
2980
|
+
'outboundCall': OutboundCallAutomationAction,
|
|
2959
2981
|
"sendEmail" : SendEmailAutomationAction,
|
|
2960
2982
|
"sendSMS": SendSMSAutomationAction,
|
|
2961
2983
|
"sendChat": SendChatAutomationAction,
|
|
@@ -3210,6 +3232,7 @@ export interface PortalCustomization extends PortalCustomization_readonly, Porta
|
|
|
3210
3232
|
hideReschedule?: boolean,
|
|
3211
3233
|
hiddenEventTitles?: string[],
|
|
3212
3234
|
hiddenFormIds?: string[],
|
|
3235
|
+
brandId?: string,
|
|
3213
3236
|
}
|
|
3214
3237
|
export const MOBILE_BOTTOM_NAVIGATION_DISABLED_POSITION = 1000
|
|
3215
3238
|
export const DEFAULT_PATIENT_PORTAL_BOTTOM_NAVIGATION_POSITIONS: { [K in PortalPage]: number } = {
|
|
@@ -3585,6 +3608,7 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
3585
3608
|
Type: boolean,
|
|
3586
3609
|
"Scheduled By"?: boolean,
|
|
3587
3610
|
alsoGroupByHost?: boolean, // for further breaking down a grouping by host
|
|
3611
|
+
"Cancel Reason"?: boolean,
|
|
3588
3612
|
} & EnduserGrouping & { Enduser: string },
|
|
3589
3613
|
"Form Responses": {
|
|
3590
3614
|
"Submitted By"?: boolean,
|
|
@@ -3943,6 +3967,7 @@ export type AutomationTriggerEvents = {
|
|
|
3943
3967
|
'Subscription Payment Failed': AutomationTriggerEventBuilder<"Subscription Payment Failed", { }, {}>,
|
|
3944
3968
|
'Appointment No-Showed': AutomationTriggerEventBuilder<"Appointment No-Showed", { titles?: string[], templateIds?: string[] }, { }>,
|
|
3945
3969
|
'Field Equals': AutomationTriggerEventBuilder<"Field Equals", { field: string, value: string }, { }>,
|
|
3970
|
+
'Fields Changed': AutomationTriggerEventBuilder<"Fields Changed", { fields: string[] }, { }>,
|
|
3946
3971
|
'Tag Added': AutomationTriggerEventBuilder<"Tag Added", { tag: string }, { }>,
|
|
3947
3972
|
'Contact Created': AutomationTriggerEventBuilder<"Contact Created", { entityTypes?: string[] }, { }>,
|
|
3948
3973
|
'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", { titles?: string[], templateIds?: string[], excludeTemplateIds?: string[] }, {}>,
|
|
@@ -4118,7 +4143,7 @@ export type PhoneTreeActions = {
|
|
|
4118
4143
|
// 'Play': PhoneTreeActionBuilder<"Play", { playback: PhonePlayback }>
|
|
4119
4144
|
'Gather': PhoneTreeActionBuilder<"Gather", { digits: boolean, speech: boolean, playback: PhonePlayback, duration?: number }>
|
|
4120
4145
|
'Voicemail': PhoneTreeActionBuilder<"Voicemail", { playback: PhonePlayback, journeyId?: string }>
|
|
4121
|
-
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string }>
|
|
4146
|
+
'Play Message': PhoneTreeActionBuilder<"Play Message", { playback: PhonePlayback, journeyId?: string, outcome?: string, cancelAppointment?: boolean, confirmAppointment?: boolean }>
|
|
4122
4147
|
'Dial Users': PhoneTreeActionBuilder<"Dial Users", { userIds: string[], playback?: Partial<PhonePlayback>, duration?: number }>
|
|
4123
4148
|
'Route Call': PhoneTreeActionBuilder<"Route Call", {
|
|
4124
4149
|
prePlayback?: Partial<PhonePlayback>,
|
|
@@ -4164,7 +4189,7 @@ export type PhoneTreeEnduserCondition = (
|
|
|
4164
4189
|
)
|
|
4165
4190
|
export interface PhoneTree_readonly extends ClientRecord {}
|
|
4166
4191
|
export interface PhoneTree_required {
|
|
4167
|
-
number: string,
|
|
4192
|
+
number: string, // blank for outbound phone trees
|
|
4168
4193
|
nodes: PhoneTreeNode[],
|
|
4169
4194
|
isActive: boolean,
|
|
4170
4195
|
}
|
|
@@ -4175,6 +4200,8 @@ export interface PhoneTree extends PhoneTree_readonly, PhoneTree_required, Phone
|
|
|
4175
4200
|
bypassOOO?: boolean,
|
|
4176
4201
|
defaultEntityType?: string,
|
|
4177
4202
|
tags?: string[],
|
|
4203
|
+
title?: string, // set for outbound phone trees
|
|
4204
|
+
outboundNumber?: string, // set for outbound phone trees
|
|
4178
4205
|
}
|
|
4179
4206
|
|
|
4180
4207
|
export type TableViewColumn = {
|
|
@@ -4512,6 +4539,7 @@ export interface PortalBranding extends PortalBranding_readonly, PortalBranding_
|
|
|
4512
4539
|
logoURL?: string,
|
|
4513
4540
|
subdomain?: string,
|
|
4514
4541
|
customPortalURL?: string,
|
|
4542
|
+
portalSettings?: PortalSettings,
|
|
4515
4543
|
}
|
|
4516
4544
|
|
|
4517
4545
|
export interface WebhookLog_readonly extends ClientRecord {
|
|
@@ -4614,7 +4642,29 @@ export interface Waitlist extends Waitlist_readonly, Waitlist_required, Waitlist
|
|
|
4614
4642
|
tags?: string[],
|
|
4615
4643
|
}
|
|
4616
4644
|
|
|
4645
|
+
export type AICOnversationMessageContent = {
|
|
4646
|
+
type: 'text' | 'image' | 'file',
|
|
4647
|
+
text?: string,
|
|
4648
|
+
}
|
|
4649
|
+
export type AIConversationMessage = {
|
|
4650
|
+
role: 'user' | 'assistant',
|
|
4651
|
+
text: string,
|
|
4652
|
+
timestamp: Date,
|
|
4653
|
+
tokens: number,
|
|
4654
|
+
content?: AICOnversationMessageContent[],
|
|
4655
|
+
userId?: string, // for user messages
|
|
4656
|
+
}
|
|
4657
|
+
export interface AIConversation_readonly extends ClientRecord {}
|
|
4658
|
+
export interface AIConversation_required {
|
|
4659
|
+
type: string,
|
|
4660
|
+
modelName: string,
|
|
4661
|
+
messages: AIConversationMessage[],
|
|
4662
|
+
}
|
|
4663
|
+
export interface AIConversation_updatesDisabled {}
|
|
4664
|
+
export interface AIConversation extends AIConversation_readonly, AIConversation_required, AIConversation_updatesDisabled {}
|
|
4665
|
+
|
|
4617
4666
|
export type ModelForName_required = {
|
|
4667
|
+
ai_conversations: AIConversation_required,
|
|
4618
4668
|
waitlists: Waitlist_required,
|
|
4619
4669
|
agent_records: AgentRecord_required,
|
|
4620
4670
|
enduser_eligibility_results: EnduserEligibilityResult_required,
|
|
@@ -4705,6 +4755,7 @@ export type ModelForName_required = {
|
|
|
4705
4755
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
|
|
4706
4756
|
|
|
4707
4757
|
export interface ModelForName_readonly {
|
|
4758
|
+
ai_conversations: AIConversation_readonly,
|
|
4708
4759
|
waitlists: Waitlist_readonly,
|
|
4709
4760
|
agent_records: AgentRecord_readonly,
|
|
4710
4761
|
enduser_eligibility_results: EnduserEligibilityResult_readonly,
|
|
@@ -4795,6 +4846,7 @@ export interface ModelForName_readonly {
|
|
|
4795
4846
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
|
|
4796
4847
|
|
|
4797
4848
|
export interface ModelForName_updatesDisabled {
|
|
4849
|
+
ai_conversations: AIConversation_updatesDisabled,
|
|
4798
4850
|
waitlists: Waitlist_updatesDisabled,
|
|
4799
4851
|
agent_records: AgentRecord_updatesDisabled,
|
|
4800
4852
|
enduser_eligibility_results: EnduserEligibilityResult_updatesDisabled,
|
|
@@ -4885,6 +4937,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
4885
4937
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
|
|
4886
4938
|
|
|
4887
4939
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
4940
|
+
ai_conversations: AIConversation,
|
|
4888
4941
|
waitlists: Waitlist,
|
|
4889
4942
|
agent_records: AgentRecord,
|
|
4890
4943
|
enduser_eligibility_results: EnduserEligibilityResult,
|
|
@@ -4985,6 +5038,7 @@ export interface UserActivityInfo {
|
|
|
4985
5038
|
export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
|
|
4986
5039
|
|
|
4987
5040
|
export const modelNameChecker: { [K in ModelName] : true } = {
|
|
5041
|
+
ai_conversations: true,
|
|
4988
5042
|
waitlists: true,
|
|
4989
5043
|
agent_records: true,
|
|
4990
5044
|
enduser_eligibility_results: true,
|