@tellescope/types-models 1.91.1 → 1.93.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 +64 -2
- 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 +64 -2
- 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 +49 -4
package/lib/cjs/index.d.ts
CHANGED
|
@@ -170,6 +170,7 @@ export type OrganizationSettings = {
|
|
|
170
170
|
disableSnooze?: boolean;
|
|
171
171
|
showCommunications?: boolean;
|
|
172
172
|
showJourneys?: boolean;
|
|
173
|
+
requireDueDate?: boolean;
|
|
173
174
|
};
|
|
174
175
|
calendar?: {
|
|
175
176
|
dayStart?: {
|
|
@@ -219,7 +220,7 @@ export type AthenaFieldSync = {
|
|
|
219
220
|
dateFormat?: string;
|
|
220
221
|
};
|
|
221
222
|
export type AthenaSubscription = {
|
|
222
|
-
type: 'patients';
|
|
223
|
+
type: 'patients' | 'appointments' | 'orders' | 'chart/healthhistory/problems';
|
|
223
224
|
frequencyInMinutes: number;
|
|
224
225
|
lastSyncedAt: Date;
|
|
225
226
|
};
|
|
@@ -317,12 +318,19 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
317
318
|
mfaxAccountId?: string;
|
|
318
319
|
athenaFieldsSync?: AthenaFieldSync[];
|
|
319
320
|
athenaSubscriptions?: AthenaSubscription[];
|
|
320
|
-
|
|
321
|
+
athenaDepartments?: {
|
|
322
|
+
id: string;
|
|
323
|
+
timezone: Timezone;
|
|
324
|
+
}[];
|
|
321
325
|
fieldsToAdminNote?: string[];
|
|
322
326
|
canvasMessageSync?: {
|
|
323
327
|
id: string;
|
|
324
328
|
questionId: string;
|
|
325
329
|
};
|
|
330
|
+
dosespotClinics?: {
|
|
331
|
+
id: string;
|
|
332
|
+
name: string;
|
|
333
|
+
}[];
|
|
326
334
|
}
|
|
327
335
|
export type OrganizationTheme = {
|
|
328
336
|
name: string;
|
|
@@ -401,6 +409,7 @@ export interface UserSession extends Session, OrganizationLimits {
|
|
|
401
409
|
eat?: boolean;
|
|
402
410
|
lockedOutUntil?: number;
|
|
403
411
|
duration?: number;
|
|
412
|
+
doseSpotUserId?: string;
|
|
404
413
|
availablePhoneNumbers: string[];
|
|
405
414
|
}
|
|
406
415
|
export type StateCredentialInfo = {
|
|
@@ -489,6 +498,8 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
489
498
|
lockedOutUntil?: number;
|
|
490
499
|
elationUserId?: number;
|
|
491
500
|
iOSBadgeCount?: number;
|
|
501
|
+
doseSpotUserId?: string;
|
|
502
|
+
url?: string;
|
|
492
503
|
}
|
|
493
504
|
export type Preference = 'email' | 'sms' | 'call' | 'chat';
|
|
494
505
|
export type CustomField = string | number | object | {
|
|
@@ -549,6 +560,8 @@ export type EnduserInsurance = {
|
|
|
549
560
|
gender?: TellescopeGender;
|
|
550
561
|
dateOfBirth?: string;
|
|
551
562
|
};
|
|
563
|
+
payerType?: string;
|
|
564
|
+
groupNumber?: string;
|
|
552
565
|
};
|
|
553
566
|
export type TellescopeGender = "Male" | "Female" | "Other" | "Unknown";
|
|
554
567
|
export interface Enduser_readonly extends UserActivityInfo, ClientRecord, EnduserEngagementTimestamps {
|
|
@@ -1029,6 +1042,9 @@ export interface MessageTemplate extends MessageTemplate_readonly, MessageTempla
|
|
|
1029
1042
|
mode?: MessageTemplateMode;
|
|
1030
1043
|
embeddingHash?: string;
|
|
1031
1044
|
isMarketing?: boolean;
|
|
1045
|
+
forChannels?: string[];
|
|
1046
|
+
forRoles?: string[];
|
|
1047
|
+
hideFromCompose?: boolean;
|
|
1032
1048
|
}
|
|
1033
1049
|
export interface File_readonly extends ClientRecord {
|
|
1034
1050
|
secureName: string;
|
|
@@ -1250,6 +1266,7 @@ export interface CanvasConsentCategory extends CanvasCoding {
|
|
|
1250
1266
|
export type FormFieldOptions = FormFieldValidation & {
|
|
1251
1267
|
tableChoices?: TableInputChoice[];
|
|
1252
1268
|
choices?: string[];
|
|
1269
|
+
canvasCodings?: CanvasCoding[];
|
|
1253
1270
|
from?: number;
|
|
1254
1271
|
to?: number;
|
|
1255
1272
|
radio?: boolean;
|
|
@@ -1270,6 +1287,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1270
1287
|
};
|
|
1271
1288
|
useDatePicker?: boolean;
|
|
1272
1289
|
sharedIntakeFields?: string[];
|
|
1290
|
+
hiddenDefaultFields?: string[];
|
|
1273
1291
|
copyResponse?: boolean;
|
|
1274
1292
|
disableGoBack?: boolean;
|
|
1275
1293
|
disableNext?: boolean;
|
|
@@ -1283,6 +1301,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1283
1301
|
validStates?: string[];
|
|
1284
1302
|
autoAdvance?: boolean;
|
|
1285
1303
|
prefillSignature?: boolean;
|
|
1304
|
+
includeGroupNumber?: boolean;
|
|
1286
1305
|
};
|
|
1287
1306
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>;
|
|
1288
1307
|
export type FormFieldCalloutConditionComparison = 'Equals';
|
|
@@ -1416,6 +1435,7 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1416
1435
|
authentication: IntegrationAuthentication;
|
|
1417
1436
|
emailDisabled?: boolean;
|
|
1418
1437
|
syncUnrecognizedSenders?: boolean;
|
|
1438
|
+
createEndusersForUnrecognizedSenders?: boolean;
|
|
1419
1439
|
calendars?: string[];
|
|
1420
1440
|
environment?: string;
|
|
1421
1441
|
webhooksSecret?: string;
|
|
@@ -1778,6 +1798,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
1778
1798
|
bufferEndMinutes?: number;
|
|
1779
1799
|
canvasCoding?: CanvasCoding;
|
|
1780
1800
|
canvasLocationId?: string;
|
|
1801
|
+
completedAt?: Date | '';
|
|
1781
1802
|
}
|
|
1782
1803
|
export type PaymentProcessor = 'Square' | 'Stripe';
|
|
1783
1804
|
export interface Product_readonly extends ClientRecord {
|
|
@@ -2077,6 +2098,9 @@ export type AfterActionAutomationEvent = AutomationEventBuilder<'afterAction', A
|
|
|
2077
2098
|
field: string;
|
|
2078
2099
|
before?: boolean;
|
|
2079
2100
|
};
|
|
2101
|
+
eventCondition?: {
|
|
2102
|
+
before?: boolean;
|
|
2103
|
+
};
|
|
2080
2104
|
}>;
|
|
2081
2105
|
export type FormUnsubmittedEvent = AutomationEventBuilder<'formUnsubmitted', FormUnsubmittedEventInfo>;
|
|
2082
2106
|
export type FormsUnsubmittedEvent = AutomationEventBuilder<'formsUnsubmitted', FormUnsubmittedEventInfo>;
|
|
@@ -2535,6 +2559,7 @@ export interface AutomatedAction_readonly extends ClientRecord {
|
|
|
2535
2559
|
lockedAt?: number;
|
|
2536
2560
|
lockId?: string;
|
|
2537
2561
|
lockCount?: number;
|
|
2562
|
+
processedAt?: Date;
|
|
2538
2563
|
}
|
|
2539
2564
|
export interface AutomatedAction_required {
|
|
2540
2565
|
enduserId: string;
|
|
@@ -3017,6 +3042,15 @@ export type AutomationTriggerEvents = {
|
|
|
3017
3042
|
'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", {
|
|
3018
3043
|
titles?: string[];
|
|
3019
3044
|
}, {}>;
|
|
3045
|
+
'Appointment Completed': AutomationTriggerEventBuilder<"Appointment Completed", {
|
|
3046
|
+
titles?: string[];
|
|
3047
|
+
}, {}>;
|
|
3048
|
+
'Appointment Cancelled': AutomationTriggerEventBuilder<"Appointment Cancelled", {
|
|
3049
|
+
titles?: string[];
|
|
3050
|
+
}, {}>;
|
|
3051
|
+
'Appointment Rescheduled': AutomationTriggerEventBuilder<"Appointment Rescheduled", {
|
|
3052
|
+
titles?: string[];
|
|
3053
|
+
}, {}>;
|
|
3020
3054
|
'Medication Added': AutomationTriggerEventBuilder<"Medication Added", {
|
|
3021
3055
|
titles: string[];
|
|
3022
3056
|
}, {}>;
|
|
@@ -3053,6 +3087,12 @@ export type AutomationTriggerEvents = {
|
|
|
3053
3087
|
phoneNumbers?: string[];
|
|
3054
3088
|
inputs?: string[];
|
|
3055
3089
|
}, {}>;
|
|
3090
|
+
'Order Created': AutomationTriggerEventBuilder<"Order Created", {
|
|
3091
|
+
titles?: string[];
|
|
3092
|
+
}, {}>;
|
|
3093
|
+
'Problem Created': AutomationTriggerEventBuilder<"Problem Created", {
|
|
3094
|
+
titles?: string[];
|
|
3095
|
+
}, {}>;
|
|
3056
3096
|
};
|
|
3057
3097
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents;
|
|
3058
3098
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType];
|
|
@@ -3342,6 +3382,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3342
3382
|
externalId: string;
|
|
3343
3383
|
source: string;
|
|
3344
3384
|
title: string;
|
|
3385
|
+
description?: string;
|
|
3345
3386
|
status: string;
|
|
3346
3387
|
enduserId: string;
|
|
3347
3388
|
userId?: string;
|
|
@@ -3352,6 +3393,21 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3352
3393
|
}[];
|
|
3353
3394
|
tracking?: string;
|
|
3354
3395
|
}
|
|
3396
|
+
export interface EnduserProblem_readonly extends ClientRecord {
|
|
3397
|
+
}
|
|
3398
|
+
export interface EnduserProblem_updatesDisabled {
|
|
3399
|
+
}
|
|
3400
|
+
export interface EnduserProblem_required {
|
|
3401
|
+
}
|
|
3402
|
+
export interface EnduserProblem extends EnduserProblem_readonly, EnduserProblem_required, EnduserProblem_updatesDisabled {
|
|
3403
|
+
externalId?: string;
|
|
3404
|
+
source?: string;
|
|
3405
|
+
title: string;
|
|
3406
|
+
enduserId: string;
|
|
3407
|
+
code?: string;
|
|
3408
|
+
codeset?: string;
|
|
3409
|
+
references?: RelatedRecord[];
|
|
3410
|
+
}
|
|
3355
3411
|
export type CandidProcedureCode = {
|
|
3356
3412
|
code: string;
|
|
3357
3413
|
quantity: number;
|
|
@@ -3501,8 +3557,11 @@ export interface PrescriptionRoute extends PrescriptionRoute_readonly, Prescript
|
|
|
3501
3557
|
state: string;
|
|
3502
3558
|
templateIds: string[];
|
|
3503
3559
|
pharmacyId?: string;
|
|
3560
|
+
pharmacyLabel?: string;
|
|
3561
|
+
tags?: string[];
|
|
3504
3562
|
}
|
|
3505
3563
|
export type ModelForName_required = {
|
|
3564
|
+
enduser_problems: EnduserProblem_required;
|
|
3506
3565
|
prescription_routes: PrescriptionRoute_required;
|
|
3507
3566
|
vital_configurations: VitalConfiguration_required;
|
|
3508
3567
|
blocked_phones: BlockedPhone_required;
|
|
@@ -3577,6 +3636,7 @@ export type ModelForName_required = {
|
|
|
3577
3636
|
};
|
|
3578
3637
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
|
|
3579
3638
|
export interface ModelForName_readonly {
|
|
3639
|
+
enduser_problems: EnduserProblem_readonly;
|
|
3580
3640
|
prescription_routes: PrescriptionRoute_readonly;
|
|
3581
3641
|
blocked_phones: BlockedPhone_readonly;
|
|
3582
3642
|
vital_configurations: VitalConfiguration_readonly;
|
|
@@ -3651,6 +3711,7 @@ export interface ModelForName_readonly {
|
|
|
3651
3711
|
}
|
|
3652
3712
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
|
|
3653
3713
|
export interface ModelForName_updatesDisabled {
|
|
3714
|
+
enduser_problems: EnduserProblem_updatesDisabled;
|
|
3654
3715
|
prescription_routes: PrescriptionRoute_updatesDisabled;
|
|
3655
3716
|
blocked_phones: BlockedPhone_updatesDisabled;
|
|
3656
3717
|
vital_configurations: VitalConfiguration_updatesDisabled;
|
|
@@ -3725,6 +3786,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
3725
3786
|
}
|
|
3726
3787
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
|
|
3727
3788
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3789
|
+
enduser_problems: EnduserProblem;
|
|
3728
3790
|
prescription_routes: PrescriptionRoute;
|
|
3729
3791
|
blocked_phones: BlockedPhone;
|
|
3730
3792
|
vital_configurations: VitalConfiguration;
|