@tellescope/types-models 1.88.0 → 1.89.1
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 +37 -9
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +37 -9
- 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 +2 -2
- package/src/index.ts +29 -7
package/lib/cjs/index.d.ts
CHANGED
|
@@ -206,9 +206,15 @@ export type BasicWebhook = {
|
|
|
206
206
|
method?: 'Link' | 'POST';
|
|
207
207
|
};
|
|
208
208
|
export type SyncDirection = "Bidirectional" | "From Tellescope" | "To Tellescope";
|
|
209
|
-
export type
|
|
209
|
+
export type AthenaFieldSync = {
|
|
210
210
|
field: string;
|
|
211
|
-
externalField:
|
|
211
|
+
externalField: {
|
|
212
|
+
id: string;
|
|
213
|
+
options: {
|
|
214
|
+
id: string;
|
|
215
|
+
value: string;
|
|
216
|
+
}[];
|
|
217
|
+
};
|
|
212
218
|
direction: SyncDirection;
|
|
213
219
|
};
|
|
214
220
|
export type AthenaSubscription = {
|
|
@@ -308,9 +314,14 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
308
314
|
label: string;
|
|
309
315
|
}[];
|
|
310
316
|
mfaxAccountId?: string;
|
|
311
|
-
athenaFieldsSync?:
|
|
317
|
+
athenaFieldsSync?: AthenaFieldSync[];
|
|
312
318
|
athenaSubscriptions?: AthenaSubscription[];
|
|
319
|
+
athenaDepartmentIds?: string[];
|
|
313
320
|
fieldsToAdminNote?: string[];
|
|
321
|
+
canvasMessageSync?: {
|
|
322
|
+
id: string;
|
|
323
|
+
questionId: string;
|
|
324
|
+
};
|
|
314
325
|
}
|
|
315
326
|
export type OrganizationTheme = {
|
|
316
327
|
name: string;
|
|
@@ -868,6 +879,7 @@ export interface Email extends Email_required, Email_readonly, Email_updatesDisa
|
|
|
868
879
|
isMarketing?: boolean;
|
|
869
880
|
destination?: string[];
|
|
870
881
|
assignedTo?: string[];
|
|
882
|
+
canvasId?: string;
|
|
871
883
|
}
|
|
872
884
|
export interface SMSMessage_readonly extends ClientRecord {
|
|
873
885
|
delivered: boolean;
|
|
@@ -916,6 +928,7 @@ export interface SMSMessage extends SMSMessage_readonly, SMSMessage_required, SM
|
|
|
916
928
|
replyToTemplateId?: string;
|
|
917
929
|
assignedTo?: string[];
|
|
918
930
|
templatedMessage?: string;
|
|
931
|
+
canvasId?: string;
|
|
919
932
|
}
|
|
920
933
|
export type ChatRoomType = 'internal' | 'external' | 'Group Chat';
|
|
921
934
|
export interface ChatRoom_readonly extends ClientRecord {
|
|
@@ -993,6 +1006,7 @@ export interface ChatMessage extends ChatMessage_readonly, ChatMessage_required,
|
|
|
993
1006
|
mentions?: string[];
|
|
994
1007
|
userId?: string;
|
|
995
1008
|
enduserId?: string;
|
|
1009
|
+
canvasId?: string;
|
|
996
1010
|
}
|
|
997
1011
|
export type MessageTemplateType = 'enduser' | 'Reply' | 'team';
|
|
998
1012
|
export type MessageTemplateMode = 'html' | 'richtext';
|
|
@@ -1050,6 +1064,10 @@ export type TicketActions = {
|
|
|
1050
1064
|
formResponseId?: string;
|
|
1051
1065
|
}>;
|
|
1052
1066
|
"Create Prescription": TicketActionBuilder<'Create Prescription', {}>;
|
|
1067
|
+
"Send SMS": TicketActionBuilder<'Send SMS', {
|
|
1068
|
+
templateId: string;
|
|
1069
|
+
smsId?: string;
|
|
1070
|
+
}>;
|
|
1053
1071
|
};
|
|
1054
1072
|
export type TicketActionType = keyof TicketActions;
|
|
1055
1073
|
export type TicketAction = TicketActions[TicketActionType];
|
|
@@ -1120,6 +1138,7 @@ export interface Ticket extends Ticket_readonly, Ticket_required, Ticket_updates
|
|
|
1120
1138
|
preserveContext?: boolean;
|
|
1121
1139
|
phoneCallId?: string;
|
|
1122
1140
|
calendarEventId?: string;
|
|
1141
|
+
observationId?: string;
|
|
1123
1142
|
}
|
|
1124
1143
|
export type AttendeeInfo = {
|
|
1125
1144
|
ExternalUserId: string;
|
|
@@ -1248,6 +1267,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1248
1267
|
};
|
|
1249
1268
|
useDatePicker?: boolean;
|
|
1250
1269
|
sharedIntakeFields?: string[];
|
|
1270
|
+
copyResponse?: boolean;
|
|
1251
1271
|
disableGoBack?: boolean;
|
|
1252
1272
|
disableNext?: boolean;
|
|
1253
1273
|
customPriceMessage?: string;
|
|
@@ -1358,6 +1378,8 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
1358
1378
|
tags?: string[];
|
|
1359
1379
|
language?: string;
|
|
1360
1380
|
isNonVisitElationNote?: boolean;
|
|
1381
|
+
canvasId?: string;
|
|
1382
|
+
canvasQuestionId?: string;
|
|
1361
1383
|
}
|
|
1362
1384
|
export type OAuth2AuthenticationFields = {
|
|
1363
1385
|
access_token: string;
|
|
@@ -1624,6 +1646,7 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
|
|
|
1624
1646
|
carePlanId?: string;
|
|
1625
1647
|
context?: string;
|
|
1626
1648
|
calendarEventId?: string;
|
|
1649
|
+
copiedFrom?: string;
|
|
1627
1650
|
}
|
|
1628
1651
|
export interface WebHook_readonly extends ClientRecord {
|
|
1629
1652
|
}
|
|
@@ -2077,6 +2100,7 @@ export type SetEnduserStatusInfo = {
|
|
|
2077
2100
|
interface AutomationActionBuilder<T extends string, V extends object> {
|
|
2078
2101
|
type: T;
|
|
2079
2102
|
info: V;
|
|
2103
|
+
continueOnError?: boolean;
|
|
2080
2104
|
}
|
|
2081
2105
|
export type AssignToQueueInfo = {
|
|
2082
2106
|
queueId: string;
|
|
@@ -2505,6 +2529,8 @@ export interface AutomatedAction_readonly extends ClientRecord {
|
|
|
2505
2529
|
journeyContext?: JourneyContext;
|
|
2506
2530
|
source?: string;
|
|
2507
2531
|
triggerId?: string;
|
|
2532
|
+
lockedAt?: number;
|
|
2533
|
+
lockId?: string;
|
|
2508
2534
|
}
|
|
2509
2535
|
export interface AutomatedAction_required {
|
|
2510
2536
|
enduserId: string;
|
|
@@ -2596,6 +2622,12 @@ export interface RoleBasedAccessPermission_updatesDisabled {
|
|
|
2596
2622
|
export interface RoleBasedAccessPermission extends RoleBasedAccessPermission_readonly, RoleBasedAccessPermission_required, RoleBasedAccessPermission_updatesDisabled {
|
|
2597
2623
|
}
|
|
2598
2624
|
export interface PhoneCall_readonly extends ClientRecord {
|
|
2625
|
+
}
|
|
2626
|
+
export interface PhoneCall_required {
|
|
2627
|
+
}
|
|
2628
|
+
export interface PhoneCall_updatesDisabled {
|
|
2629
|
+
}
|
|
2630
|
+
export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, PhoneCall_updatesDisabled {
|
|
2599
2631
|
enduserId: string;
|
|
2600
2632
|
externalId: string;
|
|
2601
2633
|
from: string;
|
|
@@ -2609,12 +2641,6 @@ export interface PhoneCall_readonly extends ClientRecord {
|
|
|
2609
2641
|
transcriptionId?: string;
|
|
2610
2642
|
conferenceId?: string;
|
|
2611
2643
|
conferenceAttendees?: string[];
|
|
2612
|
-
}
|
|
2613
|
-
export interface PhoneCall_required {
|
|
2614
|
-
}
|
|
2615
|
-
export interface PhoneCall_updatesDisabled {
|
|
2616
|
-
}
|
|
2617
|
-
export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, PhoneCall_updatesDisabled {
|
|
2618
2644
|
unread?: boolean;
|
|
2619
2645
|
transcription?: string;
|
|
2620
2646
|
note?: string;
|
|
@@ -2632,6 +2658,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
|
|
|
2632
2658
|
answeredAt?: Date;
|
|
2633
2659
|
recordingCancelledAt?: Date;
|
|
2634
2660
|
assignedTo?: string[];
|
|
2661
|
+
timestamp?: Date;
|
|
2635
2662
|
}
|
|
2636
2663
|
export type AnalyticsQueryResultValue = {
|
|
2637
2664
|
key?: string;
|
|
@@ -3793,6 +3820,7 @@ export type JourneyContext = {
|
|
|
3793
3820
|
purchaseId?: string;
|
|
3794
3821
|
templateId?: string;
|
|
3795
3822
|
orderId?: string;
|
|
3823
|
+
observationId?: string;
|
|
3796
3824
|
};
|
|
3797
3825
|
export declare const TIMEZONE_MAP: {
|
|
3798
3826
|
readonly "Africa/Abidjan": "+00:00";
|