@tellescope/types-models 1.217.0 → 1.218.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 +33 -4
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +33 -4
- 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 +31 -14
package/lib/cjs/index.d.ts
CHANGED
|
@@ -210,6 +210,7 @@ export type OrganizationSettings = {
|
|
|
210
210
|
launchDosespotWebhookURL?: string;
|
|
211
211
|
reverseTimeline?: boolean;
|
|
212
212
|
delayedReadingIntervalInMS?: number;
|
|
213
|
+
createChatRoomWithBlankUserIds?: boolean;
|
|
213
214
|
};
|
|
214
215
|
tickets?: {
|
|
215
216
|
defaultJourneyDueDateOffsetInMS?: number | '';
|
|
@@ -373,6 +374,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
373
374
|
hasConnectedCustomerIO?: boolean;
|
|
374
375
|
hasConnectedSuperDial?: boolean;
|
|
375
376
|
hasConnectedBeluga?: boolean;
|
|
377
|
+
hasConnectedMetriport?: boolean;
|
|
376
378
|
hasConfiguredZoom?: boolean;
|
|
377
379
|
hasTicketQueues?: boolean;
|
|
378
380
|
vitalTeamId?: string;
|
|
@@ -682,6 +684,8 @@ export interface EnduserEngagementTimestamps {
|
|
|
682
684
|
recentInboundSMSAt?: Date;
|
|
683
685
|
recentOutboundEmailAt?: Date;
|
|
684
686
|
recentInboundEmailAt?: Date;
|
|
687
|
+
recentOutboundGroupMMSAt?: Date;
|
|
688
|
+
recentInboundGroupMMSAt?: Date;
|
|
685
689
|
recentActivityAt?: Date;
|
|
686
690
|
}
|
|
687
691
|
export type StripeSubscriptionStatus = 'active' | 'trialing' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'canceled' | 'unpaid';
|
|
@@ -2632,7 +2636,7 @@ export interface WebhookCall {
|
|
|
2632
2636
|
integrity: string;
|
|
2633
2637
|
description?: string;
|
|
2634
2638
|
}
|
|
2635
|
-
export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger' | "onCallOutcome";
|
|
2639
|
+
export type AutomationEventType = 'onJourneyStart' | 'afterAction' | "formResponse" | "formResponses" | "formUnsubmitted" | "formsUnsubmitted" | "ticketCompleted" | 'waitForTrigger' | "onCallOutcome" | "onAIDecision";
|
|
2636
2640
|
interface AutomationEventBuilder<T extends AutomationEventType, V extends object> {
|
|
2637
2641
|
type: T;
|
|
2638
2642
|
info: V;
|
|
@@ -2762,7 +2766,10 @@ export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome
|
|
|
2762
2766
|
automationStepId: string;
|
|
2763
2767
|
outcome: string;
|
|
2764
2768
|
}>;
|
|
2765
|
-
export type
|
|
2769
|
+
export type OnAIDecisionAutomationEvent = AutomationEventBuilder<'onAIDecision', {
|
|
2770
|
+
automationStepId: string;
|
|
2771
|
+
outcomes: string[];
|
|
2772
|
+
}>;
|
|
2766
2773
|
export type AutomationEventForType = {
|
|
2767
2774
|
'onJourneyStart': OnJourneyStartAutomationEvent;
|
|
2768
2775
|
'afterAction': AfterActionAutomationEvent;
|
|
@@ -2773,7 +2780,9 @@ export type AutomationEventForType = {
|
|
|
2773
2780
|
'ticketCompleted': TicketCompletedAutomationEvent;
|
|
2774
2781
|
'waitForTrigger': WaitForTriggerAutomationEvent;
|
|
2775
2782
|
'onCallOutcome': OnCallOutcomeAutomationEvent;
|
|
2783
|
+
'onAIDecision': OnAIDecisionAutomationEvent;
|
|
2776
2784
|
};
|
|
2785
|
+
export type AutomationEvent = AutomationEventForType[keyof AutomationEventForType];
|
|
2777
2786
|
export type SetEnduserStatusInfo = {
|
|
2778
2787
|
status: string;
|
|
2779
2788
|
};
|
|
@@ -2900,6 +2909,9 @@ export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCare
|
|
|
2900
2909
|
export type CompleteCarePlanAutomationAction = AutomationActionBuilder<'completeCarePlan', {}>;
|
|
2901
2910
|
export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>;
|
|
2902
2911
|
export type ZusPullAutomationAction = AutomationActionBuilder<'zusPull', {}>;
|
|
2912
|
+
export type MetriportSyncAutomationAction = AutomationActionBuilder<'metriportSync', {
|
|
2913
|
+
facilityId: string;
|
|
2914
|
+
}>;
|
|
2903
2915
|
export type ZusSubscribeAutomationAction = AutomationActionBuilder<'zusSubscribe', {
|
|
2904
2916
|
practitionerId: string;
|
|
2905
2917
|
packageIds: string[];
|
|
@@ -3019,7 +3031,22 @@ export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'st
|
|
|
3019
3031
|
stripeKey?: string;
|
|
3020
3032
|
priceIds: string[];
|
|
3021
3033
|
}>;
|
|
3034
|
+
export type AIContextSource = {
|
|
3035
|
+
type: "Email" | "SMS";
|
|
3036
|
+
limit: number;
|
|
3037
|
+
};
|
|
3038
|
+
export type AIDecisionAutomationAction = AutomationActionBuilder<'aiDecision', {
|
|
3039
|
+
prompt: string;
|
|
3040
|
+
sources: AIContextSource[];
|
|
3041
|
+
outcomes: string[];
|
|
3042
|
+
}>;
|
|
3043
|
+
export type AssignInboxItemAutomationAction = AutomationActionBuilder<'assignInboxItem', {
|
|
3044
|
+
tags: ListOfStringsWithQualifier;
|
|
3045
|
+
limit: number;
|
|
3046
|
+
}>;
|
|
3022
3047
|
export type AutomationActionForType = {
|
|
3048
|
+
'aiDecision': AIDecisionAutomationAction;
|
|
3049
|
+
'assignInboxItem': AssignInboxItemAutomationAction;
|
|
3023
3050
|
'stripeChargeCardOnFile': StripeChargeCardOnFileAutomationAction;
|
|
3024
3051
|
'outboundCall': OutboundCallAutomationAction;
|
|
3025
3052
|
"sendEmail": SendEmailAutomationAction;
|
|
@@ -3046,6 +3073,7 @@ export type AutomationActionForType = {
|
|
|
3046
3073
|
'completeCarePlan': CompleteCarePlanAutomationAction;
|
|
3047
3074
|
'zusSync': ZusSyncAutomationAction;
|
|
3048
3075
|
'zusPull': ZusPullAutomationAction;
|
|
3076
|
+
'metriportSync': MetriportSyncAutomationAction;
|
|
3049
3077
|
'zusSubscribe': ZusSubscribeAutomationAction;
|
|
3050
3078
|
'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction;
|
|
3051
3079
|
'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction;
|
|
@@ -3358,7 +3386,6 @@ export interface CommentLike extends CommentLike_readonly, CommentLike_required,
|
|
|
3358
3386
|
}
|
|
3359
3387
|
export type AutomatedActionStatus = 'active' | 'finished' | 'cancelled' | 'error';
|
|
3360
3388
|
export interface AutomatedAction_readonly extends ClientRecord {
|
|
3361
|
-
journeyContext?: JourneyContext;
|
|
3362
3389
|
source?: string;
|
|
3363
3390
|
triggerId?: string;
|
|
3364
3391
|
lockedAt?: number;
|
|
@@ -3385,6 +3412,7 @@ export interface AutomatedAction_updatesDisabled {
|
|
|
3385
3412
|
export interface AutomatedAction extends AutomatedAction_readonly, AutomatedAction_required, AutomatedAction_updatesDisabled {
|
|
3386
3413
|
isNOP?: boolean;
|
|
3387
3414
|
cancelledBy?: string;
|
|
3415
|
+
journeyContext?: JourneyContext;
|
|
3388
3416
|
}
|
|
3389
3417
|
export interface UserLog_readonly extends ClientRecord {
|
|
3390
3418
|
userId: string;
|
|
@@ -4620,6 +4648,7 @@ export type GroupMMSMessage = {
|
|
|
4620
4648
|
sender: string;
|
|
4621
4649
|
timestamp: number;
|
|
4622
4650
|
images?: ImageAttachment[];
|
|
4651
|
+
logOnly?: boolean;
|
|
4623
4652
|
};
|
|
4624
4653
|
export type GroupMMSUserState = {
|
|
4625
4654
|
id: string;
|
|
@@ -4629,7 +4658,6 @@ export type GroupMMSUserState = {
|
|
|
4629
4658
|
export interface GroupMMSConversation_readonly extends ClientRecord {
|
|
4630
4659
|
externalId: string;
|
|
4631
4660
|
destinations: string[];
|
|
4632
|
-
messages: GroupMMSMessage[];
|
|
4633
4661
|
phoneNumber: string;
|
|
4634
4662
|
title: string;
|
|
4635
4663
|
pinnedAt?: Date | '';
|
|
@@ -4641,6 +4669,7 @@ export interface GroupMMSConversation_readonly extends ClientRecord {
|
|
|
4641
4669
|
hiddenForAll?: boolean;
|
|
4642
4670
|
}
|
|
4643
4671
|
export interface GroupMMSConversation_updatesDisabled {
|
|
4672
|
+
messages: GroupMMSMessage[];
|
|
4644
4673
|
}
|
|
4645
4674
|
export interface GroupMMSConversation_required {
|
|
4646
4675
|
userIds: string[];
|