@tellescope/types-models 1.92.0 → 1.94.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 +76 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +76 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +72 -4
package/lib/cjs/index.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export type OrganizationSettings = {
|
|
|
151
151
|
showFreeNote?: boolean;
|
|
152
152
|
canDeleteFreeNote?: boolean;
|
|
153
153
|
recordCalls?: boolean;
|
|
154
|
+
recordCallAudioPlayback?: string;
|
|
154
155
|
transcribeCalls?: boolean;
|
|
155
156
|
transcribeCallInboundPlayback?: string;
|
|
156
157
|
showDeleteCallRecordingOnTimeline?: boolean;
|
|
@@ -170,6 +171,7 @@ export type OrganizationSettings = {
|
|
|
170
171
|
disableSnooze?: boolean;
|
|
171
172
|
showCommunications?: boolean;
|
|
172
173
|
showJourneys?: boolean;
|
|
174
|
+
requireDueDate?: boolean;
|
|
173
175
|
};
|
|
174
176
|
calendar?: {
|
|
175
177
|
dayStart?: {
|
|
@@ -307,6 +309,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
307
309
|
billingOrganizationAddress?: Address;
|
|
308
310
|
videoCallBackgroundImage?: string;
|
|
309
311
|
sendToVoicemailOOO?: boolean;
|
|
312
|
+
onCallUserIds?: string[];
|
|
310
313
|
outOfOfficeVoicemail?: PhonePlayback;
|
|
311
314
|
enduserProfileWebhooks?: BasicWebhook[];
|
|
312
315
|
showCommunity?: boolean;
|
|
@@ -330,6 +333,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
330
333
|
id: string;
|
|
331
334
|
name: string;
|
|
332
335
|
}[];
|
|
336
|
+
enforceMFA?: boolean;
|
|
333
337
|
}
|
|
334
338
|
export type OrganizationTheme = {
|
|
335
339
|
name: string;
|
|
@@ -498,6 +502,8 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
498
502
|
elationUserId?: number;
|
|
499
503
|
iOSBadgeCount?: number;
|
|
500
504
|
doseSpotUserId?: string;
|
|
505
|
+
url?: string;
|
|
506
|
+
requiresMFAConfiguration?: boolean;
|
|
501
507
|
}
|
|
502
508
|
export type Preference = 'email' | 'sms' | 'call' | 'chat';
|
|
503
509
|
export type CustomField = string | number | object | {
|
|
@@ -532,7 +538,7 @@ export type ScheduledJourney = {
|
|
|
532
538
|
addAt: Date;
|
|
533
539
|
};
|
|
534
540
|
export type EnduserRelationship = {
|
|
535
|
-
type: 'Parent' | 'Child' | 'Spouse' | 'Partner' | 'Sibling' | '
|
|
541
|
+
type: ('Parent' | 'Child' | 'Spouse' | 'Partner' | 'Sibling' | 'Grandparent' | 'Grandchild' | 'Caregiver' | 'Caretaker' | 'Care Recipient' | 'Power of Attorney' | 'Power of Attorney For' | "Emergency Contact" | "Emergency Contact For" | 'Relates To');
|
|
536
542
|
id: string;
|
|
537
543
|
};
|
|
538
544
|
export type Language = {
|
|
@@ -559,6 +565,7 @@ export type EnduserInsurance = {
|
|
|
559
565
|
dateOfBirth?: string;
|
|
560
566
|
};
|
|
561
567
|
payerType?: string;
|
|
568
|
+
groupNumber?: string;
|
|
562
569
|
};
|
|
563
570
|
export type TellescopeGender = "Male" | "Female" | "Other" | "Unknown";
|
|
564
571
|
export interface Enduser_readonly extends UserActivityInfo, ClientRecord, EnduserEngagementTimestamps {
|
|
@@ -1041,7 +1048,9 @@ export interface MessageTemplate extends MessageTemplate_readonly, MessageTempla
|
|
|
1041
1048
|
isMarketing?: boolean;
|
|
1042
1049
|
forChannels?: string[];
|
|
1043
1050
|
forRoles?: string[];
|
|
1051
|
+
forEntityTypes?: string[];
|
|
1044
1052
|
hideFromCompose?: boolean;
|
|
1053
|
+
tags?: string[];
|
|
1045
1054
|
}
|
|
1046
1055
|
export interface File_readonly extends ClientRecord {
|
|
1047
1056
|
secureName: string;
|
|
@@ -1284,6 +1293,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1284
1293
|
};
|
|
1285
1294
|
useDatePicker?: boolean;
|
|
1286
1295
|
sharedIntakeFields?: string[];
|
|
1296
|
+
hiddenDefaultFields?: string[];
|
|
1287
1297
|
copyResponse?: boolean;
|
|
1288
1298
|
disableGoBack?: boolean;
|
|
1289
1299
|
disableNext?: boolean;
|
|
@@ -1297,6 +1307,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1297
1307
|
validStates?: string[];
|
|
1298
1308
|
autoAdvance?: boolean;
|
|
1299
1309
|
prefillSignature?: boolean;
|
|
1310
|
+
includeGroupNumber?: boolean;
|
|
1300
1311
|
};
|
|
1301
1312
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>;
|
|
1302
1313
|
export type FormFieldCalloutConditionComparison = 'Equals';
|
|
@@ -1430,6 +1441,7 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1430
1441
|
authentication: IntegrationAuthentication;
|
|
1431
1442
|
emailDisabled?: boolean;
|
|
1432
1443
|
syncUnrecognizedSenders?: boolean;
|
|
1444
|
+
createEndusersForUnrecognizedSenders?: boolean;
|
|
1433
1445
|
calendars?: string[];
|
|
1434
1446
|
environment?: string;
|
|
1435
1447
|
webhooksSecret?: string;
|
|
@@ -1899,6 +1911,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
1899
1911
|
bufferEndMinutes?: number;
|
|
1900
1912
|
canvasCoding?: CanvasCoding;
|
|
1901
1913
|
tags?: string[];
|
|
1914
|
+
matchToHealthieTemplate?: boolean;
|
|
1902
1915
|
}
|
|
1903
1916
|
export interface AppointmentLocation_readonly extends ClientRecord {
|
|
1904
1917
|
}
|
|
@@ -2235,6 +2248,9 @@ export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync
|
|
|
2235
2248
|
export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', {
|
|
2236
2249
|
journeyIds?: string[];
|
|
2237
2250
|
}>;
|
|
2251
|
+
export type ChangeContactTypeAutomationAction = AutomationActionBuilder<'changeContactType', {
|
|
2252
|
+
type: string;
|
|
2253
|
+
}>;
|
|
2238
2254
|
export type IterableFieldsMapping = {
|
|
2239
2255
|
iterable: string;
|
|
2240
2256
|
tellescope: string;
|
|
@@ -2284,6 +2300,7 @@ export type AutomationActionForType = {
|
|
|
2284
2300
|
'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction;
|
|
2285
2301
|
'healthieSync': HealthieSyncAutomationAction;
|
|
2286
2302
|
'completeTickets': CompleteTicketsAutomationAction;
|
|
2303
|
+
'changeContactType': ChangeContactTypeAutomationAction;
|
|
2287
2304
|
};
|
|
2288
2305
|
export type AutomationActionType = keyof AutomationActionForType;
|
|
2289
2306
|
export type AutomationAction = AutomationActionForType[AutomationActionType];
|
|
@@ -2965,6 +2982,11 @@ export type EnduserProfileViewBlocks = {
|
|
|
2965
2982
|
display: string;
|
|
2966
2983
|
}[];
|
|
2967
2984
|
}>;
|
|
2985
|
+
"Form Responses": EnduserProfileViewBlockBuilder<"Form Responses", {
|
|
2986
|
+
title: string;
|
|
2987
|
+
formId: string;
|
|
2988
|
+
fieldIds: string[];
|
|
2989
|
+
}>;
|
|
2968
2990
|
};
|
|
2969
2991
|
export type EnduserProfileViewBlockType = keyof EnduserProfileViewBlocks;
|
|
2970
2992
|
export type EnduserProfileViewBlock = EnduserProfileViewBlocks[EnduserProfileViewBlockType];
|
|
@@ -3039,6 +3061,12 @@ export type AutomationTriggerEvents = {
|
|
|
3039
3061
|
'Appointment Completed': AutomationTriggerEventBuilder<"Appointment Completed", {
|
|
3040
3062
|
titles?: string[];
|
|
3041
3063
|
}, {}>;
|
|
3064
|
+
'Appointment Cancelled': AutomationTriggerEventBuilder<"Appointment Cancelled", {
|
|
3065
|
+
titles?: string[];
|
|
3066
|
+
}, {}>;
|
|
3067
|
+
'Appointment Rescheduled': AutomationTriggerEventBuilder<"Appointment Rescheduled", {
|
|
3068
|
+
titles?: string[];
|
|
3069
|
+
}, {}>;
|
|
3042
3070
|
'Medication Added': AutomationTriggerEventBuilder<"Medication Added", {
|
|
3043
3071
|
titles: string[];
|
|
3044
3072
|
}, {}>;
|
|
@@ -3075,6 +3103,14 @@ export type AutomationTriggerEvents = {
|
|
|
3075
3103
|
phoneNumbers?: string[];
|
|
3076
3104
|
inputs?: string[];
|
|
3077
3105
|
}, {}>;
|
|
3106
|
+
'Order Created': AutomationTriggerEventBuilder<"Order Created", {
|
|
3107
|
+
titles?: string[];
|
|
3108
|
+
}, {}>;
|
|
3109
|
+
'Problem Created': AutomationTriggerEventBuilder<"Problem Created", {
|
|
3110
|
+
titles?: string[];
|
|
3111
|
+
}, {}>;
|
|
3112
|
+
'Message Delivery Failure': AutomationTriggerEventBuilder<"Message Delivery Failure", {}, {}>;
|
|
3113
|
+
'Incoming Message (No Care Team)': AutomationTriggerEventBuilder<"Incoming Message (No Care Team)", {}, {}>;
|
|
3078
3114
|
};
|
|
3079
3115
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
|
|
3080
3116
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];
|
|
@@ -3206,6 +3242,7 @@ export type PhoneTreeActions = {
|
|
|
3206
3242
|
}>;
|
|
3207
3243
|
'Play Message': PhoneTreeActionBuilder<"Play Message", {
|
|
3208
3244
|
playback: PhonePlayback;
|
|
3245
|
+
journeyId?: string;
|
|
3209
3246
|
}>;
|
|
3210
3247
|
'Dial Users': PhoneTreeActionBuilder<"Dial Users", {
|
|
3211
3248
|
userIds: string[];
|
|
@@ -3364,6 +3401,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3364
3401
|
externalId: string;
|
|
3365
3402
|
source: string;
|
|
3366
3403
|
title: string;
|
|
3404
|
+
description?: string;
|
|
3367
3405
|
status: string;
|
|
3368
3406
|
enduserId: string;
|
|
3369
3407
|
userId?: string;
|
|
@@ -3374,6 +3412,21 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3374
3412
|
}[];
|
|
3375
3413
|
tracking?: string;
|
|
3376
3414
|
}
|
|
3415
|
+
export interface EnduserProblem_readonly extends ClientRecord {
|
|
3416
|
+
}
|
|
3417
|
+
export interface EnduserProblem_updatesDisabled {
|
|
3418
|
+
}
|
|
3419
|
+
export interface EnduserProblem_required {
|
|
3420
|
+
}
|
|
3421
|
+
export interface EnduserProblem extends EnduserProblem_readonly, EnduserProblem_required, EnduserProblem_updatesDisabled {
|
|
3422
|
+
externalId?: string;
|
|
3423
|
+
source?: string;
|
|
3424
|
+
title: string;
|
|
3425
|
+
enduserId: string;
|
|
3426
|
+
code?: string;
|
|
3427
|
+
codeset?: string;
|
|
3428
|
+
references?: RelatedRecord[];
|
|
3429
|
+
}
|
|
3377
3430
|
export type CandidProcedureCode = {
|
|
3378
3431
|
code: string;
|
|
3379
3432
|
quantity: number;
|
|
@@ -3523,8 +3576,23 @@ export interface PrescriptionRoute extends PrescriptionRoute_readonly, Prescript
|
|
|
3523
3576
|
state: string;
|
|
3524
3577
|
templateIds: string[];
|
|
3525
3578
|
pharmacyId?: string;
|
|
3579
|
+
pharmacyLabel?: string;
|
|
3580
|
+
tags?: string[];
|
|
3581
|
+
}
|
|
3582
|
+
export interface FlowchartNote_readonly extends ClientRecord {
|
|
3583
|
+
}
|
|
3584
|
+
export interface FlowchartNote_required {
|
|
3585
|
+
}
|
|
3586
|
+
export interface FlowchartNote_updatesDisabled {
|
|
3587
|
+
}
|
|
3588
|
+
export interface FlowchartNote extends FlowchartNote_readonly, FlowchartNote_required, FlowchartNote_updatesDisabled {
|
|
3589
|
+
flowchartId: string;
|
|
3590
|
+
note: string;
|
|
3591
|
+
flowchartUI?: FlowchartUI;
|
|
3526
3592
|
}
|
|
3527
3593
|
export type ModelForName_required = {
|
|
3594
|
+
flowchart_notes: FlowchartNote_required;
|
|
3595
|
+
enduser_problems: EnduserProblem_required;
|
|
3528
3596
|
prescription_routes: PrescriptionRoute_required;
|
|
3529
3597
|
vital_configurations: VitalConfiguration_required;
|
|
3530
3598
|
blocked_phones: BlockedPhone_required;
|
|
@@ -3599,6 +3667,8 @@ export type ModelForName_required = {
|
|
|
3599
3667
|
};
|
|
3600
3668
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
|
|
3601
3669
|
export interface ModelForName_readonly {
|
|
3670
|
+
flowchart_notes: FlowchartNote_readonly;
|
|
3671
|
+
enduser_problems: EnduserProblem_readonly;
|
|
3602
3672
|
prescription_routes: PrescriptionRoute_readonly;
|
|
3603
3673
|
blocked_phones: BlockedPhone_readonly;
|
|
3604
3674
|
vital_configurations: VitalConfiguration_readonly;
|
|
@@ -3673,6 +3743,8 @@ export interface ModelForName_readonly {
|
|
|
3673
3743
|
}
|
|
3674
3744
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
|
|
3675
3745
|
export interface ModelForName_updatesDisabled {
|
|
3746
|
+
flowchart_notes: FlowchartNote_updatesDisabled;
|
|
3747
|
+
enduser_problems: EnduserProblem_updatesDisabled;
|
|
3676
3748
|
prescription_routes: PrescriptionRoute_updatesDisabled;
|
|
3677
3749
|
blocked_phones: BlockedPhone_updatesDisabled;
|
|
3678
3750
|
vital_configurations: VitalConfiguration_updatesDisabled;
|
|
@@ -3747,6 +3819,8 @@ export interface ModelForName_updatesDisabled {
|
|
|
3747
3819
|
}
|
|
3748
3820
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
|
|
3749
3821
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3822
|
+
flowchart_notes: FlowchartNote;
|
|
3823
|
+
enduser_problems: EnduserProblem;
|
|
3750
3824
|
prescription_routes: PrescriptionRoute;
|
|
3751
3825
|
blocked_phones: BlockedPhone;
|
|
3752
3826
|
vital_configurations: VitalConfiguration;
|
|
@@ -3855,6 +3929,7 @@ export type JourneyContext = {
|
|
|
3855
3929
|
orderId?: string;
|
|
3856
3930
|
observationId?: string;
|
|
3857
3931
|
phoneCallId?: string;
|
|
3932
|
+
smsId?: string;
|
|
3858
3933
|
};
|
|
3859
3934
|
export declare const TIMEZONE_MAP: {
|
|
3860
3935
|
readonly "Africa/Abidjan": "+00:00";
|