@tellescope/types-models 1.217.0 → 1.219.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 +35 -4
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +35 -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 +33 -14
package/src/index.ts
CHANGED
|
@@ -220,6 +220,7 @@ export type OrganizationSettings = {
|
|
|
220
220
|
launchDosespotWebhookURL?: string,
|
|
221
221
|
reverseTimeline?: boolean,
|
|
222
222
|
delayedReadingIntervalInMS?: number,
|
|
223
|
+
createChatRoomWithBlankUserIds?: boolean,
|
|
223
224
|
},
|
|
224
225
|
tickets?: {
|
|
225
226
|
defaultJourneyDueDateOffsetInMS?: number | '',
|
|
@@ -390,6 +391,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
390
391
|
hasConnectedCustomerIO?: boolean,
|
|
391
392
|
hasConnectedSuperDial?: boolean,
|
|
392
393
|
hasConnectedBeluga?: boolean,
|
|
394
|
+
hasConnectedMetriport?: boolean,
|
|
393
395
|
hasConfiguredZoom?: boolean,
|
|
394
396
|
hasTicketQueues?: boolean,
|
|
395
397
|
vitalTeamId?: string,
|
|
@@ -695,6 +697,8 @@ export interface EnduserEngagementTimestamps{
|
|
|
695
697
|
recentInboundSMSAt?: Date,
|
|
696
698
|
recentOutboundEmailAt?: Date,
|
|
697
699
|
recentInboundEmailAt?: Date,
|
|
700
|
+
recentOutboundGroupMMSAt?: Date,
|
|
701
|
+
recentInboundGroupMMSAt?: Date,
|
|
698
702
|
recentActivityAt?: Date,
|
|
699
703
|
}
|
|
700
704
|
|
|
@@ -2697,6 +2701,7 @@ export type AutomationEventType =
|
|
|
2697
2701
|
| "ticketCompleted"
|
|
2698
2702
|
| 'waitForTrigger'
|
|
2699
2703
|
| "onCallOutcome"
|
|
2704
|
+
| "onAIDecision"
|
|
2700
2705
|
|
|
2701
2706
|
interface AutomationEventBuilder <T extends AutomationEventType, V extends object> {
|
|
2702
2707
|
type: T,
|
|
@@ -2745,6 +2750,7 @@ export interface AutomationForWebhook {
|
|
|
2745
2750
|
fields?: LabeledField[],
|
|
2746
2751
|
headers?: LabeledField[],
|
|
2747
2752
|
method?: 'get' | 'patch' | 'post' | 'put' | 'delete',
|
|
2753
|
+
rawJSONBody?: string,
|
|
2748
2754
|
}
|
|
2749
2755
|
|
|
2750
2756
|
export type FormResponseAutomationEvent = AutomationEventBuilder<'formResponse', {
|
|
@@ -2800,17 +2806,7 @@ export type OnJourneyStartAutomationEvent = AutomationEventBuilder<'onJourneySta
|
|
|
2800
2806
|
export type TicketCompletedAutomationEvent = AutomationEventBuilder<'ticketCompleted', TicketCompletedEventInfo>
|
|
2801
2807
|
export type WaitForTriggerAutomationEvent = AutomationEventBuilder<'waitForTrigger', { automationStepId: string, triggerId: string }>
|
|
2802
2808
|
export type OnCallOutcomeAutomationEvent = AutomationEventBuilder<'onCallOutcome', { automationStepId: string, outcome: string }>
|
|
2803
|
-
|
|
2804
|
-
export type AutomationEvent =
|
|
2805
|
-
FormResponseAutomationEvent
|
|
2806
|
-
| FormResponsesAutomationEvent
|
|
2807
|
-
| AfterActionAutomationEvent
|
|
2808
|
-
| OnJourneyStartAutomationEvent
|
|
2809
|
-
| FormUnsubmittedEvent
|
|
2810
|
-
| FormsUnsubmittedEvent
|
|
2811
|
-
| TicketCompletedAutomationEvent
|
|
2812
|
-
| WaitForTriggerAutomationEvent
|
|
2813
|
-
| OnCallOutcomeAutomationEvent
|
|
2809
|
+
export type OnAIDecisionAutomationEvent = AutomationEventBuilder<'onAIDecision', { automationStepId: string, outcomes: string[] }>
|
|
2814
2810
|
|
|
2815
2811
|
export type AutomationEventForType = {
|
|
2816
2812
|
'onJourneyStart': OnJourneyStartAutomationEvent
|
|
@@ -2822,7 +2818,9 @@ export type AutomationEventForType = {
|
|
|
2822
2818
|
'ticketCompleted': TicketCompletedAutomationEvent
|
|
2823
2819
|
'waitForTrigger': WaitForTriggerAutomationEvent
|
|
2824
2820
|
'onCallOutcome': OnCallOutcomeAutomationEvent,
|
|
2821
|
+
'onAIDecision': OnAIDecisionAutomationEvent
|
|
2825
2822
|
}
|
|
2823
|
+
export type AutomationEvent = AutomationEventForType[keyof AutomationEventForType]
|
|
2826
2824
|
|
|
2827
2825
|
export type SetEnduserStatusInfo = { status: string }
|
|
2828
2826
|
|
|
@@ -2936,6 +2934,7 @@ export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCare
|
|
|
2936
2934
|
export type CompleteCarePlanAutomationAction = AutomationActionBuilder<'completeCarePlan', {}>
|
|
2937
2935
|
export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>
|
|
2938
2936
|
export type ZusPullAutomationAction = AutomationActionBuilder<'zusPull', {}>
|
|
2937
|
+
export type MetriportSyncAutomationAction = AutomationActionBuilder<'metriportSync', { facilityId: string }>
|
|
2939
2938
|
export type ZusSubscribeAutomationAction = AutomationActionBuilder<'zusSubscribe', { practitionerId: string, packageIds: string[] }>
|
|
2940
2939
|
export type PagerDutyCreateIncidentAutomationAction = AutomationActionBuilder<'pagerDutyCreateIncident', { type: string, title: string, serviceId: string }>
|
|
2941
2940
|
export type SmartMeterOrderLineItem = { quantity: number, sku: string }
|
|
@@ -3036,7 +3035,23 @@ export type StripeChargeCardOnFileAutomationAction = AutomationActionBuilder<'st
|
|
|
3036
3035
|
priceIds: string[], // Stripe price ids to charge
|
|
3037
3036
|
}>
|
|
3038
3037
|
|
|
3038
|
+
export type AIContextSource = {
|
|
3039
|
+
type: "Email" | "SMS"
|
|
3040
|
+
limit: number,
|
|
3041
|
+
}
|
|
3042
|
+
export type AIDecisionAutomationAction = AutomationActionBuilder<'aiDecision', {
|
|
3043
|
+
prompt: string,
|
|
3044
|
+
sources: AIContextSource[]
|
|
3045
|
+
outcomes: string[],
|
|
3046
|
+
}>
|
|
3047
|
+
export type AssignInboxItemAutomationAction = AutomationActionBuilder<'assignInboxItem', {
|
|
3048
|
+
tags: ListOfStringsWithQualifier,
|
|
3049
|
+
limit: number,
|
|
3050
|
+
}>
|
|
3051
|
+
|
|
3039
3052
|
export type AutomationActionForType = {
|
|
3053
|
+
'aiDecision': AIDecisionAutomationAction,
|
|
3054
|
+
'assignInboxItem': AssignInboxItemAutomationAction,
|
|
3040
3055
|
'stripeChargeCardOnFile': StripeChargeCardOnFileAutomationAction,
|
|
3041
3056
|
'outboundCall': OutboundCallAutomationAction,
|
|
3042
3057
|
"sendEmail" : SendEmailAutomationAction,
|
|
@@ -3063,6 +3078,7 @@ export type AutomationActionForType = {
|
|
|
3063
3078
|
'completeCarePlan': CompleteCarePlanAutomationAction,
|
|
3064
3079
|
'zusSync': ZusSyncAutomationAction,
|
|
3065
3080
|
'zusPull': ZusPullAutomationAction,
|
|
3081
|
+
'metriportSync': MetriportSyncAutomationAction,
|
|
3066
3082
|
'zusSubscribe': ZusSubscribeAutomationAction,
|
|
3067
3083
|
'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction,
|
|
3068
3084
|
'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction,
|
|
@@ -3161,6 +3177,7 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
|
|
|
3161
3177
|
statusChangedBy?: string, // when updating code (e.g. to cancelled or entered-in-error), track who made that change
|
|
3162
3178
|
classifications?: { configurationId: string, classification: string }[]
|
|
3163
3179
|
beforeMeal?: boolean,
|
|
3180
|
+
timestampIsEstimated?: boolean,
|
|
3164
3181
|
dontTrigger?: boolean,
|
|
3165
3182
|
showWithPlotsByUnit?: string[],
|
|
3166
3183
|
invalidationReason?: string,
|
|
@@ -3382,7 +3399,6 @@ export interface CommentLike extends CommentLike_readonly, CommentLike_required,
|
|
|
3382
3399
|
|
|
3383
3400
|
export type AutomatedActionStatus = 'active' | 'finished' | 'cancelled' | 'error'
|
|
3384
3401
|
export interface AutomatedAction_readonly extends ClientRecord {
|
|
3385
|
-
journeyContext?: JourneyContext
|
|
3386
3402
|
source?: string,
|
|
3387
3403
|
triggerId?: string,
|
|
3388
3404
|
lockedAt?: number,
|
|
@@ -3408,6 +3424,7 @@ export interface AutomatedAction_updatesDisabled {}
|
|
|
3408
3424
|
export interface AutomatedAction extends AutomatedAction_readonly, AutomatedAction_required, AutomatedAction_updatesDisabled {
|
|
3409
3425
|
isNOP?: boolean,
|
|
3410
3426
|
cancelledBy?: string,
|
|
3427
|
+
journeyContext?: JourneyContext
|
|
3411
3428
|
}
|
|
3412
3429
|
|
|
3413
3430
|
export interface UserLog_readonly extends ClientRecord {
|
|
@@ -4513,6 +4530,7 @@ export type GroupMMSMessage = {
|
|
|
4513
4530
|
sender: string,
|
|
4514
4531
|
timestamp: number,
|
|
4515
4532
|
images?: ImageAttachment[]
|
|
4533
|
+
logOnly?: boolean,
|
|
4516
4534
|
}
|
|
4517
4535
|
|
|
4518
4536
|
export type GroupMMSUserState = {
|
|
@@ -4525,7 +4543,6 @@ export type GroupMMSUserState = {
|
|
|
4525
4543
|
export interface GroupMMSConversation_readonly extends ClientRecord {
|
|
4526
4544
|
externalId: string,
|
|
4527
4545
|
destinations: string[],
|
|
4528
|
-
messages: GroupMMSMessage[],
|
|
4529
4546
|
phoneNumber: string,
|
|
4530
4547
|
title: string,
|
|
4531
4548
|
pinnedAt?: Date | '',
|
|
@@ -4534,7 +4551,9 @@ export interface GroupMMSConversation_readonly extends ClientRecord {
|
|
|
4534
4551
|
hiddenBy?: { [index: string] : Date | '' };
|
|
4535
4552
|
hiddenForAll?: boolean,
|
|
4536
4553
|
}
|
|
4537
|
-
export interface GroupMMSConversation_updatesDisabled {
|
|
4554
|
+
export interface GroupMMSConversation_updatesDisabled {
|
|
4555
|
+
messages: GroupMMSMessage[],
|
|
4556
|
+
}
|
|
4538
4557
|
export interface GroupMMSConversation_required {
|
|
4539
4558
|
userIds: string[],
|
|
4540
4559
|
userStates: GroupMMSUserState[],
|