@tellescope/types-models 1.87.0 → 1.89.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 +38 -13
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +38 -13
- 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 +28 -11
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,8 +314,9 @@ 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[];
|
|
314
321
|
}
|
|
315
322
|
export type OrganizationTheme = {
|
|
@@ -389,6 +396,7 @@ export interface UserSession extends Session, OrganizationLimits {
|
|
|
389
396
|
eat?: boolean;
|
|
390
397
|
lockedOutUntil?: number;
|
|
391
398
|
duration?: number;
|
|
399
|
+
availablePhoneNumbers: string[];
|
|
392
400
|
}
|
|
393
401
|
export type StateCredentialInfo = {
|
|
394
402
|
state: string;
|
|
@@ -454,6 +462,7 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
454
462
|
weeklyAvailabilities?: WeeklyAvailability[];
|
|
455
463
|
autoReplyEnabled?: boolean;
|
|
456
464
|
twilioNumber?: string;
|
|
465
|
+
availableFromNumbers?: string[];
|
|
457
466
|
hashedPass?: string;
|
|
458
467
|
pushNotificationIosTokens?: string[];
|
|
459
468
|
pushNotificationDestinations?: string[];
|
|
@@ -1048,6 +1057,10 @@ export type TicketActions = {
|
|
|
1048
1057
|
formResponseId?: string;
|
|
1049
1058
|
}>;
|
|
1050
1059
|
"Create Prescription": TicketActionBuilder<'Create Prescription', {}>;
|
|
1060
|
+
"Send SMS": TicketActionBuilder<'Send SMS', {
|
|
1061
|
+
templateId: string;
|
|
1062
|
+
smsId?: string;
|
|
1063
|
+
}>;
|
|
1051
1064
|
};
|
|
1052
1065
|
export type TicketActionType = keyof TicketActions;
|
|
1053
1066
|
export type TicketAction = TicketActions[TicketActionType];
|
|
@@ -1118,6 +1131,7 @@ export interface Ticket extends Ticket_readonly, Ticket_required, Ticket_updates
|
|
|
1118
1131
|
preserveContext?: boolean;
|
|
1119
1132
|
phoneCallId?: string;
|
|
1120
1133
|
calendarEventId?: string;
|
|
1134
|
+
observationId?: string;
|
|
1121
1135
|
}
|
|
1122
1136
|
export type AttendeeInfo = {
|
|
1123
1137
|
ExternalUserId: string;
|
|
@@ -1246,6 +1260,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1246
1260
|
};
|
|
1247
1261
|
useDatePicker?: boolean;
|
|
1248
1262
|
sharedIntakeFields?: string[];
|
|
1263
|
+
copyResponse?: boolean;
|
|
1249
1264
|
disableGoBack?: boolean;
|
|
1250
1265
|
disableNext?: boolean;
|
|
1251
1266
|
customPriceMessage?: string;
|
|
@@ -1255,6 +1270,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1255
1270
|
userFilterTags?: string[];
|
|
1256
1271
|
requirePredefinedInsurer?: boolean;
|
|
1257
1272
|
addressFields?: string[];
|
|
1273
|
+
validStates?: string[];
|
|
1258
1274
|
autoAdvance?: boolean;
|
|
1259
1275
|
prefillSignature?: boolean;
|
|
1260
1276
|
};
|
|
@@ -1355,6 +1371,8 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
1355
1371
|
tags?: string[];
|
|
1356
1372
|
language?: string;
|
|
1357
1373
|
isNonVisitElationNote?: boolean;
|
|
1374
|
+
canvasId?: string;
|
|
1375
|
+
canvasQuestionId?: string;
|
|
1358
1376
|
}
|
|
1359
1377
|
export type OAuth2AuthenticationFields = {
|
|
1360
1378
|
access_token: string;
|
|
@@ -1548,7 +1566,7 @@ export type FormResponseValue = {
|
|
|
1548
1566
|
sharedWithEnduser?: boolean;
|
|
1549
1567
|
isCalledOut?: boolean;
|
|
1550
1568
|
isHighlightedOnTimeline?: boolean;
|
|
1551
|
-
computedValueKey?: 'Height' | 'Weight';
|
|
1569
|
+
computedValueKey?: 'Height' | 'Weight' | 'Date of Birth';
|
|
1552
1570
|
};
|
|
1553
1571
|
export type AnswerForType = {
|
|
1554
1572
|
'email': FormResponseAnswerEmail['value'];
|
|
@@ -1621,6 +1639,7 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
|
|
|
1621
1639
|
carePlanId?: string;
|
|
1622
1640
|
context?: string;
|
|
1623
1641
|
calendarEventId?: string;
|
|
1642
|
+
copiedFrom?: string;
|
|
1624
1643
|
}
|
|
1625
1644
|
export interface WebHook_readonly extends ClientRecord {
|
|
1626
1645
|
}
|
|
@@ -2074,6 +2093,7 @@ export type SetEnduserStatusInfo = {
|
|
|
2074
2093
|
interface AutomationActionBuilder<T extends string, V extends object> {
|
|
2075
2094
|
type: T;
|
|
2076
2095
|
info: V;
|
|
2096
|
+
continueOnError?: boolean;
|
|
2077
2097
|
}
|
|
2078
2098
|
export type AssignToQueueInfo = {
|
|
2079
2099
|
queueId: string;
|
|
@@ -2593,6 +2613,12 @@ export interface RoleBasedAccessPermission_updatesDisabled {
|
|
|
2593
2613
|
export interface RoleBasedAccessPermission extends RoleBasedAccessPermission_readonly, RoleBasedAccessPermission_required, RoleBasedAccessPermission_updatesDisabled {
|
|
2594
2614
|
}
|
|
2595
2615
|
export interface PhoneCall_readonly extends ClientRecord {
|
|
2616
|
+
}
|
|
2617
|
+
export interface PhoneCall_required {
|
|
2618
|
+
}
|
|
2619
|
+
export interface PhoneCall_updatesDisabled {
|
|
2620
|
+
}
|
|
2621
|
+
export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, PhoneCall_updatesDisabled {
|
|
2596
2622
|
enduserId: string;
|
|
2597
2623
|
externalId: string;
|
|
2598
2624
|
from: string;
|
|
@@ -2606,12 +2632,6 @@ export interface PhoneCall_readonly extends ClientRecord {
|
|
|
2606
2632
|
transcriptionId?: string;
|
|
2607
2633
|
conferenceId?: string;
|
|
2608
2634
|
conferenceAttendees?: string[];
|
|
2609
|
-
}
|
|
2610
|
-
export interface PhoneCall_required {
|
|
2611
|
-
}
|
|
2612
|
-
export interface PhoneCall_updatesDisabled {
|
|
2613
|
-
}
|
|
2614
|
-
export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, PhoneCall_updatesDisabled {
|
|
2615
2635
|
unread?: boolean;
|
|
2616
2636
|
transcription?: string;
|
|
2617
2637
|
note?: string;
|
|
@@ -2629,6 +2649,7 @@ export interface PhoneCall extends PhoneCall_readonly, PhoneCall_required, Phone
|
|
|
2629
2649
|
answeredAt?: Date;
|
|
2630
2650
|
recordingCancelledAt?: Date;
|
|
2631
2651
|
assignedTo?: string[];
|
|
2652
|
+
timestamp?: Date;
|
|
2632
2653
|
}
|
|
2633
2654
|
export type AnalyticsQueryResultValue = {
|
|
2634
2655
|
key?: string;
|
|
@@ -2767,7 +2788,9 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
2767
2788
|
"Purchase Credits": {} & EnduserGrouping & {
|
|
2768
2789
|
Enduser: string;
|
|
2769
2790
|
};
|
|
2770
|
-
"Tickets": {
|
|
2791
|
+
"Tickets": {
|
|
2792
|
+
Owner: boolean;
|
|
2793
|
+
} & EnduserGrouping & {
|
|
2771
2794
|
Enduser: string;
|
|
2772
2795
|
};
|
|
2773
2796
|
"Phone Calls": {} & EnduserGrouping & {
|
|
@@ -2792,16 +2815,17 @@ type DefaultRangeKey = 'Created At' | 'Updated At';
|
|
|
2792
2815
|
export type AnalyticsQueryRangeKeyForType = {
|
|
2793
2816
|
"Endusers": DefaultRangeKey;
|
|
2794
2817
|
"Calendar Events": DefaultRangeKey;
|
|
2795
|
-
"Form Responses": DefaultRangeKey;
|
|
2818
|
+
"Form Responses": DefaultRangeKey | "Submitted At";
|
|
2796
2819
|
"Purchases": DefaultRangeKey;
|
|
2797
2820
|
"Purchase Credits": DefaultRangeKey;
|
|
2798
|
-
"Tickets": DefaultRangeKey;
|
|
2821
|
+
"Tickets": DefaultRangeKey | "Closed At";
|
|
2799
2822
|
"Phone Calls": DefaultRangeKey;
|
|
2800
2823
|
"SMS Messages": DefaultRangeKey;
|
|
2801
2824
|
"Emails": DefaultRangeKey;
|
|
2802
2825
|
"Medications": DefaultRangeKey;
|
|
2803
2826
|
"Files": DefaultRangeKey;
|
|
2804
2827
|
};
|
|
2828
|
+
export type RangeKey = DefaultRangeKey | 'Submitted At' | "Closed At";
|
|
2805
2829
|
export type AnalyticsQueryRangeInterval = 'Hourly' | 'Daily' | 'Weekly' | 'Monthly';
|
|
2806
2830
|
export type AnalyticsQueryRange<R> = {
|
|
2807
2831
|
interval: AnalyticsQueryRangeInterval;
|
|
@@ -3787,6 +3811,7 @@ export type JourneyContext = {
|
|
|
3787
3811
|
purchaseId?: string;
|
|
3788
3812
|
templateId?: string;
|
|
3789
3813
|
orderId?: string;
|
|
3814
|
+
observationId?: string;
|
|
3790
3815
|
};
|
|
3791
3816
|
export declare const TIMEZONE_MAP: {
|
|
3792
3817
|
readonly "Africa/Abidjan": "+00:00";
|