@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/lib/cjs/index.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export type OrganizationSettings = {
|
|
|
245
245
|
};
|
|
246
246
|
integrations?: {
|
|
247
247
|
vitalLabOrderPhysicianOptional?: boolean;
|
|
248
|
+
athenaAppointmentSyncJITSeconds?: number;
|
|
248
249
|
};
|
|
249
250
|
interface?: {
|
|
250
251
|
dontPersistSearches?: boolean;
|
|
@@ -310,6 +311,7 @@ export interface Organization_updatesDisabled {
|
|
|
310
311
|
subdomain: string;
|
|
311
312
|
}
|
|
312
313
|
export interface Organization extends Organization_readonly, Organization_required, Organization_updatesDisabled {
|
|
314
|
+
bedrockAIAllowed?: boolean;
|
|
313
315
|
subdomains?: string[];
|
|
314
316
|
owner?: string;
|
|
315
317
|
timezone?: Timezone;
|
|
@@ -439,6 +441,8 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
439
441
|
customerIOFields?: string[];
|
|
440
442
|
customerIOIdField?: string;
|
|
441
443
|
createEnduserForms?: string[];
|
|
444
|
+
creditCount?: number;
|
|
445
|
+
creditTrialStartedAt?: Date;
|
|
442
446
|
}
|
|
443
447
|
export type OrganizationTheme = {
|
|
444
448
|
name: string;
|
|
@@ -461,6 +465,7 @@ export type OrganizationTheme = {
|
|
|
461
465
|
customPoliciesVersion?: string;
|
|
462
466
|
requireCustomTermsOnMagicLink?: boolean;
|
|
463
467
|
hasConnectedVital?: boolean;
|
|
468
|
+
brandId?: string;
|
|
464
469
|
};
|
|
465
470
|
export interface RecordInfo {
|
|
466
471
|
businessId: string;
|
|
@@ -703,6 +708,12 @@ export type EnduserInsurance = {
|
|
|
703
708
|
planName?: string;
|
|
704
709
|
startDate?: string;
|
|
705
710
|
};
|
|
711
|
+
export type EnduserDevice = {
|
|
712
|
+
title: string;
|
|
713
|
+
id: string;
|
|
714
|
+
gatewayId?: string;
|
|
715
|
+
disabled?: boolean;
|
|
716
|
+
};
|
|
706
717
|
export type EnduserDiagnosis = {
|
|
707
718
|
id?: string;
|
|
708
719
|
createdAt?: Date;
|
|
@@ -806,11 +817,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
806
817
|
bookingPageId: string;
|
|
807
818
|
note: string;
|
|
808
819
|
}[];
|
|
809
|
-
devices?:
|
|
810
|
-
title: string;
|
|
811
|
-
id: string;
|
|
812
|
-
disabled?: boolean;
|
|
813
|
-
}[];
|
|
820
|
+
devices?: EnduserDevice[];
|
|
814
821
|
salesforceId?: string;
|
|
815
822
|
athenaPracticeId?: string;
|
|
816
823
|
athenaDepartmentId?: string;
|
|
@@ -1582,6 +1589,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1582
1589
|
fieldId?: string;
|
|
1583
1590
|
databaseLabel?: string;
|
|
1584
1591
|
};
|
|
1592
|
+
allowAddToDatabase?: boolean;
|
|
1585
1593
|
useDatePicker?: boolean;
|
|
1586
1594
|
sharedIntakeFields?: string[];
|
|
1587
1595
|
hiddenDefaultFields?: string[];
|
|
@@ -1645,6 +1653,7 @@ export interface FormField_required {
|
|
|
1645
1653
|
export interface FormField_updatesDisabled {
|
|
1646
1654
|
}
|
|
1647
1655
|
export interface FormField extends FormField_readonly, FormField_required, FormField_updatesDisabled {
|
|
1656
|
+
internalNote?: string;
|
|
1648
1657
|
placeholder?: string;
|
|
1649
1658
|
isOptional?: boolean;
|
|
1650
1659
|
fullZIP?: boolean;
|
|
@@ -2238,6 +2247,7 @@ export interface CalendarEvent_required {
|
|
|
2238
2247
|
export interface CalendarEvent_updatesDisabled {
|
|
2239
2248
|
}
|
|
2240
2249
|
export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
|
|
2250
|
+
updateKey?: string;
|
|
2241
2251
|
createAndBookAthenaSlot?: boolean;
|
|
2242
2252
|
athenaDepartmentId?: string;
|
|
2243
2253
|
generateAthenaTelehealthLink?: boolean;
|
|
@@ -2582,7 +2592,7 @@ export interface WebhookCall {
|
|
|
2582
2592
|
integrity: string;
|
|
2583
2593
|
description?: string;
|
|
2584
2594
|
}
|
|
2585
|
-
export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger';
|
|
2595
|
+
export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger' | "onCallOutcome";
|
|
2586
2596
|
interface AutomationEventBuilder<T extends AutomationEventType, V extends object> {
|
|
2587
2597
|
type: T;
|
|
2588
2598
|
info: V;
|
|
@@ -2642,6 +2652,8 @@ export interface AutomationForWebhook {
|
|
|
2642
2652
|
url?: string;
|
|
2643
2653
|
secret?: string;
|
|
2644
2654
|
fields?: LabeledField[];
|
|
2655
|
+
headers?: LabeledField[];
|
|
2656
|
+
method?: 'get' | 'patch' | 'post' | 'put' | 'delete';
|
|
2645
2657
|
}
|
|
2646
2658
|
export type FormResponseAutomationEvent = AutomationEventBuilder<'formResponse', {
|
|
2647
2659
|
automationStepId: string;
|
|
@@ -2706,7 +2718,11 @@ export type WaitForTriggerAutomationEvent = AutomationEventBuilder<'waitForTrigg
|
|
|
2706
2718
|
automationStepId: string;
|
|
2707
2719
|
triggerId: string;
|
|
2708
2720
|
}>;
|
|
2709
|
-
export type
|
|
2721
|
+
export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome', {
|
|
2722
|
+
automationStepId: string;
|
|
2723
|
+
outcome: string;
|
|
2724
|
+
}>;
|
|
2725
|
+
export type AutomationEvent = FormResponseAutomationEvent | FormResponsesAutomationEvent | AfterActionAutomationEvent | OnJourneyStartAutomationEvent | FormUnsubmittedEvent | FormsUnsubmittedEvent | TicketCompletedAutomationEvent | WaitForTriggerAutomationEvent | OnCallOutcomeAutomationEvent;
|
|
2710
2726
|
export type AutomationEventForType = {
|
|
2711
2727
|
'onJourneyStart': OnJourneyStartAutomationEvent;
|
|
2712
2728
|
'afterAction': AfterActionAutomationEvent;
|
|
@@ -2716,6 +2732,7 @@ export type AutomationEventForType = {
|
|
|
2716
2732
|
'formsUnsubmitted': FormsUnsubmittedEvent;
|
|
2717
2733
|
'ticketCompleted': TicketCompletedAutomationEvent;
|
|
2718
2734
|
'waitForTrigger': WaitForTriggerAutomationEvent;
|
|
2735
|
+
'onCallOutcome': OnCallOutcomeAutomationEvent;
|
|
2719
2736
|
};
|
|
2720
2737
|
export type SetEnduserStatusInfo = {
|
|
2721
2738
|
status: string;
|
|
@@ -2792,6 +2809,7 @@ export type CreateTicketActionInfo = {
|
|
|
2792
2809
|
};
|
|
2793
2810
|
export type SendEmailAutomationAction = AutomationActionBuilder<'sendEmail', AutomationForMessage & {
|
|
2794
2811
|
fromEmailOverride?: string;
|
|
2812
|
+
ccRelatedContactTypes?: string[];
|
|
2795
2813
|
}>;
|
|
2796
2814
|
export type NotifyTeamAutomationAction = AutomationActionBuilder<'notifyTeam', {
|
|
2797
2815
|
templateId: string;
|
|
@@ -2863,6 +2881,7 @@ export type SendChatAutomationAction = AutomationActionBuilder<'sendChat', {
|
|
|
2863
2881
|
identifier: string;
|
|
2864
2882
|
includeCareTeam?: boolean;
|
|
2865
2883
|
userIds?: string[];
|
|
2884
|
+
sendToDestinationOfRelatedContactTypes?: string[];
|
|
2866
2885
|
}>;
|
|
2867
2886
|
export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>;
|
|
2868
2887
|
export type HealthieAddToCourseAutomationAction = AutomationActionBuilder<'healthieAddToCourse', {
|
|
@@ -2946,7 +2965,11 @@ export type AutomationConditionBuilder<T extends AutomationConditionType, V exte
|
|
|
2946
2965
|
};
|
|
2947
2966
|
export type AtJourneyStateAutomationCondition = AutomationConditionBuilder<'atJourneyState', AutomationForJourneyAndState>;
|
|
2948
2967
|
export type AutomationCondition = AtJourneyStateAutomationCondition;
|
|
2968
|
+
export type OutboundCallAutomationAction = AutomationActionBuilder<'outboundCall', {
|
|
2969
|
+
treeId: string;
|
|
2970
|
+
}>;
|
|
2949
2971
|
export type AutomationActionForType = {
|
|
2972
|
+
'outboundCall': OutboundCallAutomationAction;
|
|
2950
2973
|
"sendEmail": SendEmailAutomationAction;
|
|
2951
2974
|
"sendSMS": SendSMSAutomationAction;
|
|
2952
2975
|
"sendChat": SendChatAutomationAction;
|
|
@@ -3200,6 +3223,7 @@ export interface PortalCustomization extends PortalCustomization_readonly, Porta
|
|
|
3200
3223
|
hideReschedule?: boolean;
|
|
3201
3224
|
hiddenEventTitles?: string[];
|
|
3202
3225
|
hiddenFormIds?: string[];
|
|
3226
|
+
brandId?: string;
|
|
3203
3227
|
}
|
|
3204
3228
|
export declare const MOBILE_BOTTOM_NAVIGATION_DISABLED_POSITION = 1000;
|
|
3205
3229
|
export declare const DEFAULT_PATIENT_PORTAL_BOTTOM_NAVIGATION_POSITIONS: {
|
|
@@ -3610,6 +3634,7 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
3610
3634
|
Type: boolean;
|
|
3611
3635
|
"Scheduled By"?: boolean;
|
|
3612
3636
|
alsoGroupByHost?: boolean;
|
|
3637
|
+
"Cancel Reason"?: boolean;
|
|
3613
3638
|
} & EnduserGrouping & {
|
|
3614
3639
|
Enduser: string;
|
|
3615
3640
|
};
|
|
@@ -3945,6 +3970,9 @@ export type AutomationTriggerEvents = {
|
|
|
3945
3970
|
field: string;
|
|
3946
3971
|
value: string;
|
|
3947
3972
|
}, {}>;
|
|
3973
|
+
'Fields Changed': AutomationTriggerEventBuilder<"Fields Changed", {
|
|
3974
|
+
fields: string[];
|
|
3975
|
+
}, {}>;
|
|
3948
3976
|
'Tag Added': AutomationTriggerEventBuilder<"Tag Added", {
|
|
3949
3977
|
tag: string;
|
|
3950
3978
|
}, {}>;
|
|
@@ -4203,6 +4231,9 @@ export type PhoneTreeActions = {
|
|
|
4203
4231
|
'Play Message': PhoneTreeActionBuilder<"Play Message", {
|
|
4204
4232
|
playback: PhonePlayback;
|
|
4205
4233
|
journeyId?: string;
|
|
4234
|
+
outcome?: string;
|
|
4235
|
+
cancelAppointment?: boolean;
|
|
4236
|
+
confirmAppointment?: boolean;
|
|
4206
4237
|
}>;
|
|
4207
4238
|
'Dial Users': PhoneTreeActionBuilder<"Dial Users", {
|
|
4208
4239
|
userIds: string[];
|
|
@@ -4269,6 +4300,8 @@ export interface PhoneTree extends PhoneTree_readonly, PhoneTree_required, Phone
|
|
|
4269
4300
|
bypassOOO?: boolean;
|
|
4270
4301
|
defaultEntityType?: string;
|
|
4271
4302
|
tags?: string[];
|
|
4303
|
+
title?: string;
|
|
4304
|
+
outboundNumber?: string;
|
|
4272
4305
|
}
|
|
4273
4306
|
export type TableViewColumn = {
|
|
4274
4307
|
field: string;
|
|
@@ -4639,6 +4672,7 @@ export interface PortalBranding extends PortalBranding_readonly, PortalBranding_
|
|
|
4639
4672
|
logoURL?: string;
|
|
4640
4673
|
subdomain?: string;
|
|
4641
4674
|
customPortalURL?: string;
|
|
4675
|
+
portalSettings?: PortalSettings;
|
|
4642
4676
|
}
|
|
4643
4677
|
export interface WebhookLog_readonly extends ClientRecord {
|
|
4644
4678
|
url: string;
|
|
@@ -4751,7 +4785,31 @@ export interface Waitlist extends Waitlist_readonly, Waitlist_required, Waitlist
|
|
|
4751
4785
|
enduserIds: string[];
|
|
4752
4786
|
tags?: string[];
|
|
4753
4787
|
}
|
|
4788
|
+
export type AICOnversationMessageContent = {
|
|
4789
|
+
type: 'text' | 'image' | 'file';
|
|
4790
|
+
text?: string;
|
|
4791
|
+
};
|
|
4792
|
+
export type AIConversationMessage = {
|
|
4793
|
+
role: 'user' | 'assistant';
|
|
4794
|
+
text: string;
|
|
4795
|
+
timestamp: Date;
|
|
4796
|
+
tokens: number;
|
|
4797
|
+
content?: AICOnversationMessageContent[];
|
|
4798
|
+
userId?: string;
|
|
4799
|
+
};
|
|
4800
|
+
export interface AIConversation_readonly extends ClientRecord {
|
|
4801
|
+
}
|
|
4802
|
+
export interface AIConversation_required {
|
|
4803
|
+
type: string;
|
|
4804
|
+
modelName: string;
|
|
4805
|
+
messages: AIConversationMessage[];
|
|
4806
|
+
}
|
|
4807
|
+
export interface AIConversation_updatesDisabled {
|
|
4808
|
+
}
|
|
4809
|
+
export interface AIConversation extends AIConversation_readonly, AIConversation_required, AIConversation_updatesDisabled {
|
|
4810
|
+
}
|
|
4754
4811
|
export type ModelForName_required = {
|
|
4812
|
+
ai_conversations: AIConversation_required;
|
|
4755
4813
|
waitlists: Waitlist_required;
|
|
4756
4814
|
agent_records: AgentRecord_required;
|
|
4757
4815
|
enduser_eligibility_results: EnduserEligibilityResult_required;
|
|
@@ -4841,6 +4899,7 @@ export type ModelForName_required = {
|
|
|
4841
4899
|
};
|
|
4842
4900
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
|
|
4843
4901
|
export interface ModelForName_readonly {
|
|
4902
|
+
ai_conversations: AIConversation_readonly;
|
|
4844
4903
|
waitlists: Waitlist_readonly;
|
|
4845
4904
|
agent_records: AgentRecord_readonly;
|
|
4846
4905
|
enduser_eligibility_results: EnduserEligibilityResult_readonly;
|
|
@@ -4930,6 +4989,7 @@ export interface ModelForName_readonly {
|
|
|
4930
4989
|
}
|
|
4931
4990
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
|
|
4932
4991
|
export interface ModelForName_updatesDisabled {
|
|
4992
|
+
ai_conversations: AIConversation_updatesDisabled;
|
|
4933
4993
|
waitlists: Waitlist_updatesDisabled;
|
|
4934
4994
|
agent_records: AgentRecord_updatesDisabled;
|
|
4935
4995
|
enduser_eligibility_results: EnduserEligibilityResult_updatesDisabled;
|
|
@@ -5019,6 +5079,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
5019
5079
|
}
|
|
5020
5080
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
|
|
5021
5081
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
5082
|
+
ai_conversations: AIConversation;
|
|
5022
5083
|
waitlists: Waitlist;
|
|
5023
5084
|
agent_records: AgentRecord;
|
|
5024
5085
|
enduser_eligibility_results: EnduserEligibilityResult;
|