@tellescope/types-models 1.223.0 → 1.225.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 +48 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +48 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +58 -6
package/lib/cjs/index.d.ts
CHANGED
|
@@ -292,6 +292,10 @@ export type StripeKeyDetail = {
|
|
|
292
292
|
key: string;
|
|
293
293
|
title: string;
|
|
294
294
|
};
|
|
295
|
+
export type MetriportIntegrationDetail = {
|
|
296
|
+
title: string;
|
|
297
|
+
environment?: string;
|
|
298
|
+
};
|
|
295
299
|
export type OutOfOfficeBlock = {
|
|
296
300
|
from: Date;
|
|
297
301
|
to: Date;
|
|
@@ -358,6 +362,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
358
362
|
externalCalendarEventPlaceholderDescription?: string;
|
|
359
363
|
customZoomEmailTemplate?: string;
|
|
360
364
|
customZoomEmailSubject?: string;
|
|
365
|
+
customZoomSMSTemplate?: string;
|
|
361
366
|
customVoicemailText?: string;
|
|
362
367
|
hasConnectedOpenAI?: boolean;
|
|
363
368
|
hasConnectedHealthie?: boolean;
|
|
@@ -445,6 +450,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
445
450
|
}[];
|
|
446
451
|
stripePublicKeys?: string[];
|
|
447
452
|
stripeKeyDetails?: StripeKeyDetail[];
|
|
453
|
+
metriportIntegrationDetails?: MetriportIntegrationDetail[];
|
|
448
454
|
additionalIterableKeys?: string[];
|
|
449
455
|
defaultDoseSpotPharmacies?: {
|
|
450
456
|
id: string;
|
|
@@ -1608,6 +1614,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1608
1614
|
subFields?: FormSubField[];
|
|
1609
1615
|
validFileTypes?: string[];
|
|
1610
1616
|
maxFileSize?: number;
|
|
1617
|
+
hideFromPortal?: boolean;
|
|
1611
1618
|
signatureUrl?: string;
|
|
1612
1619
|
productIds?: string[];
|
|
1613
1620
|
chargeImmediately?: boolean;
|
|
@@ -1764,6 +1771,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
1764
1771
|
htmlThanksMessage?: string;
|
|
1765
1772
|
type?: FormType;
|
|
1766
1773
|
scoring?: FormScoring[];
|
|
1774
|
+
realTimeScoring?: boolean;
|
|
1767
1775
|
externalId?: string;
|
|
1768
1776
|
ga4measurementId?: string;
|
|
1769
1777
|
backgroundColor?: string;
|
|
@@ -2605,6 +2613,8 @@ export interface AppointmentBookingPage extends AppointmentBookingPage_readonly,
|
|
|
2605
2613
|
archivedAt?: Date | '';
|
|
2606
2614
|
gtmTag?: string;
|
|
2607
2615
|
dontRestrictRescheduleToOriginalHost?: boolean;
|
|
2616
|
+
calendarTitleText?: string;
|
|
2617
|
+
emailFieldBehavior?: "required" | "optional" | "hidden";
|
|
2608
2618
|
}
|
|
2609
2619
|
export interface CalendarEventRSVP_readonly extends ClientRecord {
|
|
2610
2620
|
creatorType: SessionType;
|
|
@@ -2643,7 +2653,7 @@ export interface WebhookCall {
|
|
|
2643
2653
|
integrity: string;
|
|
2644
2654
|
description?: string;
|
|
2645
2655
|
}
|
|
2646
|
-
export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger' | "onCallOutcome" | "onAIDecision";
|
|
2656
|
+
export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger' | "onCallOutcome" | "onAIDecision" | "onError";
|
|
2647
2657
|
interface AutomationEventBuilder<T extends AutomationEventType, V extends object> {
|
|
2648
2658
|
type: T;
|
|
2649
2659
|
info: V;
|
|
@@ -2778,6 +2788,10 @@ export type OnAIDecisionAutomationEvent = AutomationEventBuilder<'onAIDecision',
|
|
|
2778
2788
|
automationStepId: string;
|
|
2779
2789
|
outcomes: string[];
|
|
2780
2790
|
}>;
|
|
2791
|
+
export type OnErrorEventInfo = {
|
|
2792
|
+
automationStepId: string;
|
|
2793
|
+
};
|
|
2794
|
+
export type OnErrorAutomationEvent = AutomationEventBuilder<'onError', OnErrorEventInfo>;
|
|
2781
2795
|
export type AutomationEventForType = {
|
|
2782
2796
|
'onJourneyStart': OnJourneyStartAutomationEvent;
|
|
2783
2797
|
'afterAction': AfterActionAutomationEvent;
|
|
@@ -2789,6 +2803,7 @@ export type AutomationEventForType = {
|
|
|
2789
2803
|
'waitForTrigger': WaitForTriggerAutomationEvent;
|
|
2790
2804
|
'onCallOutcome': OnCallOutcomeAutomationEvent;
|
|
2791
2805
|
'onAIDecision': OnAIDecisionAutomationEvent;
|
|
2806
|
+
'onError': OnErrorAutomationEvent;
|
|
2792
2807
|
};
|
|
2793
2808
|
export type AutomationEvent = AutomationEventForType[keyof AutomationEventForType];
|
|
2794
2809
|
export type SetEnduserStatusInfo = {
|
|
@@ -2919,6 +2934,7 @@ export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>;
|
|
|
2919
2934
|
export type ZusPullAutomationAction = AutomationActionBuilder<'zusPull', {}>;
|
|
2920
2935
|
export type MetriportSyncAutomationAction = AutomationActionBuilder<'metriportSync', {
|
|
2921
2936
|
facilityId: string;
|
|
2937
|
+
integrationTitle?: string;
|
|
2922
2938
|
}>;
|
|
2923
2939
|
export type ZusSubscribeAutomationAction = AutomationActionBuilder<'zusSubscribe', {
|
|
2924
2940
|
practitionerId: string;
|
|
@@ -3038,6 +3054,7 @@ export type CallUserAutomationAction = AutomationActionBuilder<'callUser', {
|
|
|
3038
3054
|
export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'stripeChargeCardOnFile', {
|
|
3039
3055
|
stripeKey?: string;
|
|
3040
3056
|
priceIds: string[];
|
|
3057
|
+
productIds?: string[];
|
|
3041
3058
|
subscriptionPriceId?: string;
|
|
3042
3059
|
}>;
|
|
3043
3060
|
export type AIContextSource = {
|
|
@@ -3189,9 +3206,18 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
|
|
|
3189
3206
|
excludeFromVitalCountLookback?: boolean;
|
|
3190
3207
|
}
|
|
3191
3208
|
export type BlockType = 'h1' | 'h2' | 'html' | 'image' | 'youtube' | 'pdf' | 'iframe' | 'content-link';
|
|
3209
|
+
export type BlockStyle = {
|
|
3210
|
+
width?: number;
|
|
3211
|
+
height?: number;
|
|
3212
|
+
backgroundColor?: string;
|
|
3213
|
+
borderColor?: string;
|
|
3214
|
+
borderWidth?: number;
|
|
3215
|
+
textColor?: string;
|
|
3216
|
+
};
|
|
3192
3217
|
export type ContentBlockBuilder<BLOCK extends BlockType, INFO extends object> = {
|
|
3193
3218
|
type: BLOCK;
|
|
3194
3219
|
info: INFO;
|
|
3220
|
+
style?: BlockStyle;
|
|
3195
3221
|
};
|
|
3196
3222
|
export type BlockContentText = {
|
|
3197
3223
|
text: string;
|
|
@@ -3199,6 +3225,7 @@ export type BlockContentText = {
|
|
|
3199
3225
|
export type BlockContentMedia = {
|
|
3200
3226
|
link: string;
|
|
3201
3227
|
name?: string;
|
|
3228
|
+
alt?: string;
|
|
3202
3229
|
height?: number;
|
|
3203
3230
|
maxHeight?: number;
|
|
3204
3231
|
width?: number;
|
|
@@ -3295,6 +3322,10 @@ export type PortalBlockForType = {
|
|
|
3295
3322
|
HTML: BuildPortalBlockInfo<'HTML', {
|
|
3296
3323
|
html: string;
|
|
3297
3324
|
}>;
|
|
3325
|
+
pinnedForms: BuildPortalBlockInfo<'pinnedForms', {
|
|
3326
|
+
title?: string;
|
|
3327
|
+
formIds?: string[];
|
|
3328
|
+
}>;
|
|
3298
3329
|
};
|
|
3299
3330
|
export type PortalBlockType = keyof PortalBlockForType;
|
|
3300
3331
|
export type PortalBlock = PortalBlockForType[PortalBlockType];
|
|
@@ -3549,6 +3580,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
|
|
|
3549
3580
|
conferenceAttendees?: (string[]) | (string[][]);
|
|
3550
3581
|
unread?: boolean;
|
|
3551
3582
|
transcription?: string;
|
|
3583
|
+
recordingTranscriptionData?: string;
|
|
3552
3584
|
note?: string;
|
|
3553
3585
|
userId?: string;
|
|
3554
3586
|
pinnedAt?: Date | '';
|
|
@@ -4044,6 +4076,19 @@ export type AutomationTriggerActions = {
|
|
|
4044
4076
|
"Reply to Chat": AutomationTriggerActionBuilder<'Reply to Chat', {
|
|
4045
4077
|
message: string;
|
|
4046
4078
|
}>;
|
|
4079
|
+
"Create User Notifications": AutomationTriggerActionBuilder<'Create User Notifications', {
|
|
4080
|
+
message: string;
|
|
4081
|
+
notificationType: string;
|
|
4082
|
+
careTeamOnly?: boolean;
|
|
4083
|
+
tags?: ListOfStringsWithQualifier;
|
|
4084
|
+
maxUsers?: number;
|
|
4085
|
+
}>;
|
|
4086
|
+
"Assign to Incoming Message": AutomationTriggerActionBuilder<'Assign to Incoming Message', {
|
|
4087
|
+
careTeamOnly?: boolean;
|
|
4088
|
+
tags?: ListOfStringsWithQualifier;
|
|
4089
|
+
maxUsers?: number;
|
|
4090
|
+
}>;
|
|
4091
|
+
"Zendesk: Update Ticket Assignee": AutomationTriggerActionBuilder<'Zendesk: Update Ticket Assignee', {}>;
|
|
4047
4092
|
};
|
|
4048
4093
|
export type AutomationTriggerActionType = keyof AutomationTriggerActions;
|
|
4049
4094
|
export type AutomationTriggerAction = AutomationTriggerActions[AutomationTriggerActionType];
|
|
@@ -5358,6 +5403,8 @@ export type JourneyContext = {
|
|
|
5358
5403
|
fileId?: string;
|
|
5359
5404
|
chatRoomId?: string;
|
|
5360
5405
|
twilioNumber?: string;
|
|
5406
|
+
ticketThreadId?: string;
|
|
5407
|
+
ticketThreadCommentId?: string;
|
|
5361
5408
|
};
|
|
5362
5409
|
export declare const TIMEZONE_MAP: {
|
|
5363
5410
|
readonly "Africa/Abidjan": "+00:00";
|