@tellescope/types-models 1.80.3 → 1.81.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 +81 -0
- 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 +81 -0
- 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 +2 -2
- package/src/index.ts +71 -2
package/lib/cjs/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export type OrganizationSettings = {
|
|
|
156
156
|
flaggedFileText?: string;
|
|
157
157
|
showBulkFormInput?: boolean;
|
|
158
158
|
autofillSignature?: boolean;
|
|
159
|
+
showFullVitalsTab?: boolean;
|
|
159
160
|
};
|
|
160
161
|
tickets?: {
|
|
161
162
|
defaultJourneyDueDateOffsetInMS?: number | '';
|
|
@@ -247,6 +248,8 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
247
248
|
hasConnectedCanvas?: boolean;
|
|
248
249
|
hasConnectedCandid?: boolean;
|
|
249
250
|
hasConnectedGoGoMeds?: boolean;
|
|
251
|
+
hasConnectedPagerDuty?: boolean;
|
|
252
|
+
hasConnectedSmartMeter?: boolean;
|
|
250
253
|
hasConfiguredZoom?: boolean;
|
|
251
254
|
hasTicketQueues?: boolean;
|
|
252
255
|
vitalTeamId?: string;
|
|
@@ -566,6 +569,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
566
569
|
lastZendeskSyncAt?: Date;
|
|
567
570
|
accessTags?: string[];
|
|
568
571
|
unsubscribedFromMarketing?: boolean;
|
|
572
|
+
unsubscribedFromPhones?: string[];
|
|
569
573
|
insurance?: EnduserInsurance;
|
|
570
574
|
insuranceSecondary?: EnduserInsurance;
|
|
571
575
|
bookingNotes?: {
|
|
@@ -816,6 +820,7 @@ export interface Email extends Email_required, Email_readonly, Email_updatesDisa
|
|
|
816
820
|
batchId?: string;
|
|
817
821
|
isMarketing?: boolean;
|
|
818
822
|
destination?: string[];
|
|
823
|
+
assignedTo?: string[];
|
|
819
824
|
}
|
|
820
825
|
export interface SMSMessage_readonly extends ClientRecord {
|
|
821
826
|
delivered: boolean;
|
|
@@ -862,6 +867,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
|
|
|
862
867
|
tags?: string[];
|
|
863
868
|
batchId?: string;
|
|
864
869
|
replyToTemplateId?: string;
|
|
870
|
+
assignedTo?: string[];
|
|
865
871
|
}
|
|
866
872
|
export type ChatRoomType = 'internal' | 'external' | 'Group Chat';
|
|
867
873
|
export interface ChatRoom_readonly extends ClientRecord {
|
|
@@ -896,6 +902,7 @@ export interface ChatRoom extends ChatRoom_readonly, ChatRoom_required, ChatRoom
|
|
|
896
902
|
pinnedAt?: Date | '';
|
|
897
903
|
fields?: Indexable<string | CustomField>;
|
|
898
904
|
suggestedReply?: string;
|
|
905
|
+
assignedTo?: string[];
|
|
899
906
|
}
|
|
900
907
|
export type ChatAttachmentType = 'image' | 'video' | 'file' | string;
|
|
901
908
|
export type ChatAttachment = {
|
|
@@ -1189,6 +1196,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1189
1196
|
customPriceMessage?: string;
|
|
1190
1197
|
billingProvider?: 'Canvas' | "Candid" | string;
|
|
1191
1198
|
bookingPageId?: string;
|
|
1199
|
+
userTags?: string[];
|
|
1192
1200
|
addressFields?: string[];
|
|
1193
1201
|
autoAdvance?: boolean;
|
|
1194
1202
|
};
|
|
@@ -1769,6 +1777,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
1769
1777
|
bufferStartMinutes?: number;
|
|
1770
1778
|
bufferEndMinutes?: number;
|
|
1771
1779
|
canvasCoding?: CanvasCoding;
|
|
1780
|
+
tags?: string[];
|
|
1772
1781
|
}
|
|
1773
1782
|
export interface AppointmentLocation_readonly extends ClientRecord {
|
|
1774
1783
|
}
|
|
@@ -1888,7 +1897,20 @@ export interface WithAutomationStepId {
|
|
|
1888
1897
|
export interface AutomationForTemplate {
|
|
1889
1898
|
templateId: string;
|
|
1890
1899
|
}
|
|
1900
|
+
export type SenderAssignmentStrategies = {
|
|
1901
|
+
'Care Team Primary': {
|
|
1902
|
+
type: 'Care Team Primary';
|
|
1903
|
+
info: {};
|
|
1904
|
+
};
|
|
1905
|
+
'Default': {
|
|
1906
|
+
type: 'Default';
|
|
1907
|
+
info: {};
|
|
1908
|
+
};
|
|
1909
|
+
};
|
|
1910
|
+
export type SenderAssignmentStrategyType = keyof SenderAssignmentStrategies;
|
|
1911
|
+
export type SenderAssignmentStrategy = SenderAssignmentStrategies[SenderAssignmentStrategyType];
|
|
1891
1912
|
export interface AutomationForSender {
|
|
1913
|
+
assignment?: SenderAssignmentStrategy;
|
|
1892
1914
|
senderId: string;
|
|
1893
1915
|
}
|
|
1894
1916
|
export interface AutomationForFormRequest extends AutomationForForm, AutomationForSender {
|
|
@@ -2060,6 +2082,11 @@ export type CreateCarePlanAutomationAction = AutomationActionBuilder<'createCare
|
|
|
2060
2082
|
}>;
|
|
2061
2083
|
export type CompleteCarePlanAutomationAction = AutomationActionBuilder<'completeCarePlan', {}>;
|
|
2062
2084
|
export type ZusSyncAutomationAction = AutomationActionBuilder<'zusSync', {}>;
|
|
2085
|
+
export type PagerDutyCreateIncidentAutomationAction = AutomationActionBuilder<'pagerDutyCreateIncident', {
|
|
2086
|
+
type: string;
|
|
2087
|
+
title: string;
|
|
2088
|
+
serviceId: string;
|
|
2089
|
+
}>;
|
|
2063
2090
|
export type IterableFieldsMapping = {
|
|
2064
2091
|
iterable: string;
|
|
2065
2092
|
tellescope: string;
|
|
@@ -2104,6 +2131,7 @@ export type AutomationActionForType = {
|
|
|
2104
2131
|
'createCarePlan': CreateCarePlanAutomationAction;
|
|
2105
2132
|
'completeCarePlan': CompleteCarePlanAutomationAction;
|
|
2106
2133
|
'zusSync': ZusSyncAutomationAction;
|
|
2134
|
+
'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction;
|
|
2107
2135
|
};
|
|
2108
2136
|
export type AutomationActionType = keyof AutomationActionForType;
|
|
2109
2137
|
export type AutomationAction = AutomationActionForType[AutomationActionType];
|
|
@@ -2160,6 +2188,7 @@ export interface EnduserObservation_updatesDisabled {
|
|
|
2160
2188
|
}
|
|
2161
2189
|
export interface EnduserObservation extends EnduserObservation_readonly, EnduserObservation_required, EnduserObservation_updatesDisabled {
|
|
2162
2190
|
recordedAt?: Date;
|
|
2191
|
+
timestamp: Date;
|
|
2163
2192
|
code?: string;
|
|
2164
2193
|
type?: string;
|
|
2165
2194
|
source?: string;
|
|
@@ -2483,6 +2512,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
|
|
|
2483
2512
|
inputs?: string[];
|
|
2484
2513
|
answeredAt?: Date;
|
|
2485
2514
|
recordingCancelledAt?: Date;
|
|
2515
|
+
assignedTo?: string[];
|
|
2486
2516
|
}
|
|
2487
2517
|
export type AnalyticsQueryResultValue = {
|
|
2488
2518
|
key?: string;
|
|
@@ -2844,6 +2874,16 @@ export type AutomationTriggerEvents = {
|
|
|
2844
2874
|
'Has Not Engaged': AutomationTriggerEventBuilder<"Has Not Engaged", {
|
|
2845
2875
|
intervalInMS: number;
|
|
2846
2876
|
}, {}>;
|
|
2877
|
+
'Vital Count': AutomationTriggerEventBuilder<"Vital Count", {
|
|
2878
|
+
units?: string[];
|
|
2879
|
+
minutes: number;
|
|
2880
|
+
comparison: VitalComparison;
|
|
2881
|
+
periodInMS: number;
|
|
2882
|
+
}, {}>;
|
|
2883
|
+
'Vital Update': AutomationTriggerEventBuilder<"Vital Update", {
|
|
2884
|
+
configurationIds: string[];
|
|
2885
|
+
classifications: string[];
|
|
2886
|
+
}, {}>;
|
|
2847
2887
|
};
|
|
2848
2888
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
|
|
2849
2889
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];
|
|
@@ -3057,6 +3097,7 @@ export interface TicketThread extends TicketThread_readonly, TicketThread_requir
|
|
|
3057
3097
|
subject: string;
|
|
3058
3098
|
closedAt?: Date | '';
|
|
3059
3099
|
pinnedAt?: Date | '';
|
|
3100
|
+
assignedTo?: string[];
|
|
3060
3101
|
}
|
|
3061
3102
|
export interface TicketThreadComment_readonly extends ClientRecord {
|
|
3062
3103
|
externalThreadId?: string;
|
|
@@ -3208,6 +3249,7 @@ export interface GroupMMSConversation_readonly extends ClientRecord {
|
|
|
3208
3249
|
hiddenBy?: {
|
|
3209
3250
|
[index: string]: Date | '';
|
|
3210
3251
|
};
|
|
3252
|
+
assignedTo?: string[];
|
|
3211
3253
|
}
|
|
3212
3254
|
export interface GroupMMSConversation_updatesDisabled {
|
|
3213
3255
|
}
|
|
@@ -3215,7 +3257,43 @@ export interface GroupMMSConversation_required {
|
|
|
3215
3257
|
}
|
|
3216
3258
|
export interface GroupMMSConversation extends GroupMMSConversation_readonly, GroupMMSConversation_required, GroupMMSConversation_updatesDisabled {
|
|
3217
3259
|
}
|
|
3260
|
+
export type VitalComparisons = {
|
|
3261
|
+
'Less Than': {
|
|
3262
|
+
type: "Less Than";
|
|
3263
|
+
value: number;
|
|
3264
|
+
};
|
|
3265
|
+
'Greater Than': {
|
|
3266
|
+
type: "Greater Than";
|
|
3267
|
+
value: number;
|
|
3268
|
+
};
|
|
3269
|
+
'Between': {
|
|
3270
|
+
type: "Between";
|
|
3271
|
+
value: {
|
|
3272
|
+
lower: number;
|
|
3273
|
+
upper: number;
|
|
3274
|
+
};
|
|
3275
|
+
};
|
|
3276
|
+
};
|
|
3277
|
+
export type VitalComparisonType = keyof VitalComparisons;
|
|
3278
|
+
export type VitalComparison = VitalComparisons[VitalComparisonType];
|
|
3279
|
+
export type VitalConfigurationRange = {
|
|
3280
|
+
classification: string;
|
|
3281
|
+
comparison: VitalComparison;
|
|
3282
|
+
trendIntervalInMS: number;
|
|
3283
|
+
};
|
|
3284
|
+
export interface VitalConfiguration_readonly extends ClientRecord {
|
|
3285
|
+
}
|
|
3286
|
+
export interface VitalConfiguration_required {
|
|
3287
|
+
}
|
|
3288
|
+
export interface VitalConfiguration_updatesDisabled {
|
|
3289
|
+
}
|
|
3290
|
+
export interface VitalConfiguration extends VitalConfiguration_readonly, VitalConfiguration_required, VitalConfiguration_updatesDisabled {
|
|
3291
|
+
title: string;
|
|
3292
|
+
unit: string;
|
|
3293
|
+
ranges: VitalConfigurationRange[];
|
|
3294
|
+
}
|
|
3218
3295
|
export type ModelForName_required = {
|
|
3296
|
+
vital_configurations: VitalConfiguration_required;
|
|
3219
3297
|
enduser_encounters: EnduserEncounter_required;
|
|
3220
3298
|
enduser_orders: EnduserOrder_required;
|
|
3221
3299
|
group_mms_conversations: GroupMMSConversation_required;
|
|
@@ -3287,6 +3365,7 @@ export type ModelForName_required = {
|
|
|
3287
3365
|
};
|
|
3288
3366
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
|
|
3289
3367
|
export interface ModelForName_readonly {
|
|
3368
|
+
vital_configurations: VitalConfiguration_readonly;
|
|
3290
3369
|
enduser_encounters: EnduserEncounter_readonly;
|
|
3291
3370
|
enduser_orders: EnduserOrder_readonly;
|
|
3292
3371
|
group_mms_conversations: GroupMMSConversation_readonly;
|
|
@@ -3358,6 +3437,7 @@ export interface ModelForName_readonly {
|
|
|
3358
3437
|
}
|
|
3359
3438
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
|
|
3360
3439
|
export interface ModelForName_updatesDisabled {
|
|
3440
|
+
vital_configurations: VitalConfiguration_updatesDisabled;
|
|
3361
3441
|
enduser_encounters: EnduserEncounter_updatesDisabled;
|
|
3362
3442
|
enduser_orders: EnduserOrder_updatesDisabled;
|
|
3363
3443
|
group_mms_conversations: GroupMMSConversation_updatesDisabled;
|
|
@@ -3429,6 +3509,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
3429
3509
|
}
|
|
3430
3510
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
|
|
3431
3511
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3512
|
+
vital_configurations: VitalConfiguration;
|
|
3432
3513
|
enduser_encounters: EnduserEncounter;
|
|
3433
3514
|
enduser_orders: EnduserOrder;
|
|
3434
3515
|
group_mms_conversations: GroupMMSConversation;
|