@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/lib/cjs/index.d.ts
CHANGED
|
@@ -461,6 +461,7 @@ export type OrganizationTheme = {
|
|
|
461
461
|
customPoliciesVersion?: string;
|
|
462
462
|
requireCustomTermsOnMagicLink?: boolean;
|
|
463
463
|
hasConnectedVital?: boolean;
|
|
464
|
+
brandId?: string;
|
|
464
465
|
};
|
|
465
466
|
export interface RecordInfo {
|
|
466
467
|
businessId: string;
|
|
@@ -703,6 +704,12 @@ export type EnduserInsurance = {
|
|
|
703
704
|
planName?: string;
|
|
704
705
|
startDate?: string;
|
|
705
706
|
};
|
|
707
|
+
export type EnduserDevice = {
|
|
708
|
+
title: string;
|
|
709
|
+
id: string;
|
|
710
|
+
gatewayId?: string;
|
|
711
|
+
disabled?: boolean;
|
|
712
|
+
};
|
|
706
713
|
export type EnduserDiagnosis = {
|
|
707
714
|
id?: string;
|
|
708
715
|
createdAt?: Date;
|
|
@@ -806,11 +813,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
806
813
|
bookingPageId: string;
|
|
807
814
|
note: string;
|
|
808
815
|
}[];
|
|
809
|
-
devices?:
|
|
810
|
-
title: string;
|
|
811
|
-
id: string;
|
|
812
|
-
disabled?: boolean;
|
|
813
|
-
}[];
|
|
816
|
+
devices?: EnduserDevice[];
|
|
814
817
|
salesforceId?: string;
|
|
815
818
|
athenaPracticeId?: string;
|
|
816
819
|
athenaDepartmentId?: string;
|
|
@@ -999,6 +1002,10 @@ export type EndusersReport = Report;
|
|
|
999
1002
|
export type JourneyStatistics = {
|
|
1000
1003
|
steps: Record<string, {
|
|
1001
1004
|
count: number;
|
|
1005
|
+
activeCount: number;
|
|
1006
|
+
finishedCount: number;
|
|
1007
|
+
errorCount: number;
|
|
1008
|
+
cancelledCount: number;
|
|
1002
1009
|
opens?: number;
|
|
1003
1010
|
clicked?: number;
|
|
1004
1011
|
}>;
|
|
@@ -1578,6 +1585,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1578
1585
|
fieldId?: string;
|
|
1579
1586
|
databaseLabel?: string;
|
|
1580
1587
|
};
|
|
1588
|
+
allowAddToDatabase?: boolean;
|
|
1581
1589
|
useDatePicker?: boolean;
|
|
1582
1590
|
sharedIntakeFields?: string[];
|
|
1583
1591
|
hiddenDefaultFields?: string[];
|
|
@@ -1641,6 +1649,7 @@ export interface FormField_required {
|
|
|
1641
1649
|
export interface FormField_updatesDisabled {
|
|
1642
1650
|
}
|
|
1643
1651
|
export interface FormField extends FormField_readonly, FormField_required, FormField_updatesDisabled {
|
|
1652
|
+
internalNote?: string;
|
|
1644
1653
|
placeholder?: string;
|
|
1645
1654
|
isOptional?: boolean;
|
|
1646
1655
|
fullZIP?: boolean;
|
|
@@ -2234,6 +2243,7 @@ export interface CalendarEvent_required {
|
|
|
2234
2243
|
export interface CalendarEvent_updatesDisabled {
|
|
2235
2244
|
}
|
|
2236
2245
|
export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
|
|
2246
|
+
updateKey?: string;
|
|
2237
2247
|
createAndBookAthenaSlot?: boolean;
|
|
2238
2248
|
athenaDepartmentId?: string;
|
|
2239
2249
|
generateAthenaTelehealthLink?: boolean;
|
|
@@ -2353,6 +2363,7 @@ export interface Product extends Product_readonly, Product_required, Product_upd
|
|
|
2353
2363
|
stripeSubscriptionId?: string;
|
|
2354
2364
|
stripeProductId?: string;
|
|
2355
2365
|
stripePriceId?: string;
|
|
2366
|
+
additionalStripePriceIds?: string[];
|
|
2356
2367
|
}
|
|
2357
2368
|
export interface Purchase_readonly extends ClientRecord {
|
|
2358
2369
|
}
|
|
@@ -2577,7 +2588,7 @@ export interface WebhookCall {
|
|
|
2577
2588
|
integrity: string;
|
|
2578
2589
|
description?: string;
|
|
2579
2590
|
}
|
|
2580
|
-
export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger';
|
|
2591
|
+
export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger' | "onCallOutcome";
|
|
2581
2592
|
interface AutomationEventBuilder<T extends AutomationEventType, V extends object> {
|
|
2582
2593
|
type: T;
|
|
2583
2594
|
info: V;
|
|
@@ -2637,6 +2648,8 @@ export interface AutomationForWebhook {
|
|
|
2637
2648
|
url?: string;
|
|
2638
2649
|
secret?: string;
|
|
2639
2650
|
fields?: LabeledField[];
|
|
2651
|
+
headers?: LabeledField[];
|
|
2652
|
+
method?: 'get' | 'patch' | 'post' | 'put' | 'delete';
|
|
2640
2653
|
}
|
|
2641
2654
|
export type FormResponseAutomationEvent = AutomationEventBuilder<'formResponse', {
|
|
2642
2655
|
automationStepId: string;
|
|
@@ -2701,7 +2714,11 @@ export type WaitForTriggerAutomationEvent = AutomationEventBuilder<'waitForTrigg
|
|
|
2701
2714
|
automationStepId: string;
|
|
2702
2715
|
triggerId: string;
|
|
2703
2716
|
}>;
|
|
2704
|
-
export type
|
|
2717
|
+
export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome', {
|
|
2718
|
+
automationStepId: string;
|
|
2719
|
+
outcome: string;
|
|
2720
|
+
}>;
|
|
2721
|
+
export type AutomationEvent = FormResponseAutomationEvent | FormResponsesAutomationEvent | AfterActionAutomationEvent | OnJourneyStartAutomationEvent | FormUnsubmittedEvent | FormsUnsubmittedEvent | TicketCompletedAutomationEvent | WaitForTriggerAutomationEvent | OnCallOutcomeAutomationEvent;
|
|
2705
2722
|
export type AutomationEventForType = {
|
|
2706
2723
|
'onJourneyStart': OnJourneyStartAutomationEvent;
|
|
2707
2724
|
'afterAction': AfterActionAutomationEvent;
|
|
@@ -2711,6 +2728,7 @@ export type AutomationEventForType = {
|
|
|
2711
2728
|
'formsUnsubmitted': FormsUnsubmittedEvent;
|
|
2712
2729
|
'ticketCompleted': TicketCompletedAutomationEvent;
|
|
2713
2730
|
'waitForTrigger': WaitForTriggerAutomationEvent;
|
|
2731
|
+
'onCallOutcome': OnCallOutcomeAutomationEvent;
|
|
2714
2732
|
};
|
|
2715
2733
|
export type SetEnduserStatusInfo = {
|
|
2716
2734
|
status: string;
|
|
@@ -2941,7 +2959,11 @@ export type AutomationConditionBuilder<T extends AutomationConditionType, V exte
|
|
|
2941
2959
|
};
|
|
2942
2960
|
export type AtJourneyStateAutomationCondition = AutomationConditionBuilder<'atJourneyState', AutomationForJourneyAndState>;
|
|
2943
2961
|
export type AutomationCondition = AtJourneyStateAutomationCondition;
|
|
2962
|
+
export type OutboundCallAutomationAction = AutomationActionBuilder<'outboundCall', {
|
|
2963
|
+
treeId: string;
|
|
2964
|
+
}>;
|
|
2944
2965
|
export type AutomationActionForType = {
|
|
2966
|
+
'outboundCall': OutboundCallAutomationAction;
|
|
2945
2967
|
"sendEmail": SendEmailAutomationAction;
|
|
2946
2968
|
"sendSMS": SendSMSAutomationAction;
|
|
2947
2969
|
"sendChat": SendChatAutomationAction;
|
|
@@ -3195,6 +3217,7 @@ export interface PortalCustomization extends PortalCustomization_readonly, Porta
|
|
|
3195
3217
|
hideReschedule?: boolean;
|
|
3196
3218
|
hiddenEventTitles?: string[];
|
|
3197
3219
|
hiddenFormIds?: string[];
|
|
3220
|
+
brandId?: string;
|
|
3198
3221
|
}
|
|
3199
3222
|
export declare const MOBILE_BOTTOM_NAVIGATION_DISABLED_POSITION = 1000;
|
|
3200
3223
|
export declare const DEFAULT_PATIENT_PORTAL_BOTTOM_NAVIGATION_POSITIONS: {
|
|
@@ -3513,6 +3536,9 @@ export type AnalyticsQueryInfoForType = {
|
|
|
3513
3536
|
"Journey Logs": {
|
|
3514
3537
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
3515
3538
|
};
|
|
3539
|
+
"Orders": {
|
|
3540
|
+
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
3541
|
+
};
|
|
3516
3542
|
};
|
|
3517
3543
|
export type AnalyticsQueryInfoType = keyof AnalyticsQueryInfoForType;
|
|
3518
3544
|
export type AnalyticsQueryInfo = AnalyticsQueryInfoForType[AnalyticsQueryInfoType];
|
|
@@ -3585,6 +3611,7 @@ export type AnalyticsQueryFilterForType = {
|
|
|
3585
3611
|
"Journey Logs": {
|
|
3586
3612
|
automationStepIds?: string[];
|
|
3587
3613
|
};
|
|
3614
|
+
Orders: {};
|
|
3588
3615
|
};
|
|
3589
3616
|
export type EnduserGrouping = {
|
|
3590
3617
|
Field?: string;
|
|
@@ -3648,6 +3675,9 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
3648
3675
|
"Meetings": {
|
|
3649
3676
|
Host?: boolean;
|
|
3650
3677
|
};
|
|
3678
|
+
"Orders": {} & EnduserGrouping & {
|
|
3679
|
+
Enduser: string;
|
|
3680
|
+
};
|
|
3651
3681
|
};
|
|
3652
3682
|
type DefaultRangeKey = 'Created At' | 'Updated At';
|
|
3653
3683
|
export type AnalyticsQueryRangeKeyForType = {
|
|
@@ -3664,6 +3694,7 @@ export type AnalyticsQueryRangeKeyForType = {
|
|
|
3664
3694
|
"Files": DefaultRangeKey;
|
|
3665
3695
|
"Meetings": DefaultRangeKey;
|
|
3666
3696
|
"Journey Logs": DefaultRangeKey;
|
|
3697
|
+
"Orders": DefaultRangeKey;
|
|
3667
3698
|
};
|
|
3668
3699
|
export type RangeKey = DefaultRangeKey | 'Submitted At' | "Closed At";
|
|
3669
3700
|
export type AnalyticsQueryRangeInterval = 'Hourly' | 'Daily' | 'Weekly' | 'Monthly';
|
|
@@ -3692,6 +3723,7 @@ export type AnalyticsQueryForType = {
|
|
|
3692
3723
|
"Files": AnalyticsQueryBuilder<"Files", AnalyticsQueryInfoForType['Files'][keyof AnalyticsQueryInfoForType['Files']], AnalyticsQueryFilterForType['Files'], AnalyticsQueryGroupingForType['Files'], AnalyticsQueryRangeKeyForType['Files']>;
|
|
3693
3724
|
"Meetings": AnalyticsQueryBuilder<"Meetings", AnalyticsQueryInfoForType['Meetings'][keyof AnalyticsQueryInfoForType['Meetings']], AnalyticsQueryFilterForType['Meetings'], AnalyticsQueryGroupingForType['Meetings'], AnalyticsQueryRangeKeyForType['Meetings']>;
|
|
3694
3725
|
"Journey Logs": AnalyticsQueryBuilder<"Journey Logs", AnalyticsQueryInfoForType['Journey Logs'][keyof AnalyticsQueryInfoForType['Journey Logs']], AnalyticsQueryFilterForType['Journey Logs'], AnalyticsQueryGroupingForType['Journey Logs'], AnalyticsQueryRangeKeyForType['Journey Logs']>;
|
|
3726
|
+
"Orders": AnalyticsQueryBuilder<"Orders", AnalyticsQueryInfoForType['Orders'][keyof AnalyticsQueryInfoForType['Orders']], AnalyticsQueryFilterForType['Orders'], AnalyticsQueryGroupingForType['Orders'], AnalyticsQueryRangeKeyForType['Orders']>;
|
|
3695
3727
|
};
|
|
3696
3728
|
export type AnalyticsQueryType = keyof AnalyticsQueryForType;
|
|
3697
3729
|
export type AnalyticsQuery = AnalyticsQueryForType[AnalyticsQueryType];
|
|
@@ -4114,6 +4146,7 @@ export type SuperbillLineItem = {
|
|
|
4114
4146
|
currency: Currency;
|
|
4115
4147
|
};
|
|
4116
4148
|
discount?: number;
|
|
4149
|
+
diagnosisCodes?: string[];
|
|
4117
4150
|
};
|
|
4118
4151
|
export type SuperbillPatientInfo = {
|
|
4119
4152
|
name: string;
|
|
@@ -4188,6 +4221,9 @@ export type PhoneTreeActions = {
|
|
|
4188
4221
|
'Play Message': PhoneTreeActionBuilder<"Play Message", {
|
|
4189
4222
|
playback: PhonePlayback;
|
|
4190
4223
|
journeyId?: string;
|
|
4224
|
+
outcome?: string;
|
|
4225
|
+
cancelAppointment?: boolean;
|
|
4226
|
+
confirmAppointment?: boolean;
|
|
4191
4227
|
}>;
|
|
4192
4228
|
'Dial Users': PhoneTreeActionBuilder<"Dial Users", {
|
|
4193
4229
|
userIds: string[];
|
|
@@ -4254,6 +4290,8 @@ export interface PhoneTree extends PhoneTree_readonly, PhoneTree_required, Phone
|
|
|
4254
4290
|
bypassOOO?: boolean;
|
|
4255
4291
|
defaultEntityType?: string;
|
|
4256
4292
|
tags?: string[];
|
|
4293
|
+
title?: string;
|
|
4294
|
+
outboundNumber?: string;
|
|
4257
4295
|
}
|
|
4258
4296
|
export type TableViewColumn = {
|
|
4259
4297
|
field: string;
|
|
@@ -4624,6 +4662,7 @@ export interface PortalBranding extends PortalBranding_readonly, PortalBranding_
|
|
|
4624
4662
|
logoURL?: string;
|
|
4625
4663
|
subdomain?: string;
|
|
4626
4664
|
customPortalURL?: string;
|
|
4665
|
+
portalSettings?: PortalSettings;
|
|
4627
4666
|
}
|
|
4628
4667
|
export interface WebhookLog_readonly extends ClientRecord {
|
|
4629
4668
|
url: string;
|