@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/src/index.ts
CHANGED
|
@@ -186,6 +186,7 @@ export type OrganizationSettings = {
|
|
|
186
186
|
disableSnooze?: boolean,
|
|
187
187
|
showCommunications?: boolean,
|
|
188
188
|
showJourneys?: boolean,
|
|
189
|
+
requireDueDate?: boolean,
|
|
189
190
|
},
|
|
190
191
|
calendar?: {
|
|
191
192
|
dayStart?: {
|
|
@@ -239,7 +240,7 @@ export type AthenaFieldSync = {
|
|
|
239
240
|
|
|
240
241
|
export type AthenaSubscription = {
|
|
241
242
|
// make sure to update validator if adding new types here
|
|
242
|
-
type: 'patients',
|
|
243
|
+
type: 'patients' | 'appointments' | 'orders' | 'chart/healthhistory/problems',
|
|
243
244
|
frequencyInMinutes: number,
|
|
244
245
|
lastSyncedAt: Date,
|
|
245
246
|
}
|
|
@@ -327,12 +328,13 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
327
328
|
mfaxAccountId?: string,
|
|
328
329
|
athenaFieldsSync?: AthenaFieldSync[]
|
|
329
330
|
athenaSubscriptions?: AthenaSubscription[],
|
|
330
|
-
|
|
331
|
+
athenaDepartments?: { id: string, timezone: Timezone }[],
|
|
331
332
|
fieldsToAdminNote?: string[],
|
|
332
333
|
canvasMessageSync?: {
|
|
333
334
|
id: string,
|
|
334
335
|
questionId: string,
|
|
335
|
-
}
|
|
336
|
+
},
|
|
337
|
+
dosespotClinics?: { id: string, name: string }[],
|
|
336
338
|
// _AIEnabled?: boolean,
|
|
337
339
|
}
|
|
338
340
|
export type OrganizationTheme = {
|
|
@@ -419,6 +421,7 @@ export interface UserSession extends Session, OrganizationLimits { // User joine
|
|
|
419
421
|
eat?: boolean, // enableAccessTags
|
|
420
422
|
lockedOutUntil?: number,
|
|
421
423
|
duration?: number,
|
|
424
|
+
doseSpotUserId?: string,
|
|
422
425
|
availablePhoneNumbers: string[],
|
|
423
426
|
}
|
|
424
427
|
|
|
@@ -515,6 +518,8 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
515
518
|
lockedOutUntil?: number, // -1 => not locked out, 0 => locked out indefinitely, > 0 => locked out until unix time in MS
|
|
516
519
|
elationUserId?: number,
|
|
517
520
|
iOSBadgeCount?: number,
|
|
521
|
+
doseSpotUserId?: string,
|
|
522
|
+
url?: string,
|
|
518
523
|
}
|
|
519
524
|
|
|
520
525
|
export type Preference = 'email' | 'sms' | 'call' | 'chat'
|
|
@@ -613,7 +618,9 @@ export type EnduserInsurance = {
|
|
|
613
618
|
// address?: Partial<Address>, // optional for candid
|
|
614
619
|
// phone?: string, // not needed yet
|
|
615
620
|
// email?: string, // not needed yet
|
|
616
|
-
}
|
|
621
|
+
},
|
|
622
|
+
payerType?: string, // for Healthie
|
|
623
|
+
groupNumber?: string,
|
|
617
624
|
}
|
|
618
625
|
|
|
619
626
|
export type TellescopeGender = "Male" | "Female" | "Other" | "Unknown"
|
|
@@ -1098,6 +1105,9 @@ export interface MessageTemplate extends MessageTemplate_readonly, MessageTempla
|
|
|
1098
1105
|
mode?: MessageTemplateMode,
|
|
1099
1106
|
embeddingHash?: string,
|
|
1100
1107
|
isMarketing?: boolean,
|
|
1108
|
+
forChannels?: string[],
|
|
1109
|
+
forRoles?: string[],
|
|
1110
|
+
hideFromCompose?: boolean,
|
|
1101
1111
|
}
|
|
1102
1112
|
|
|
1103
1113
|
export interface File_readonly extends ClientRecord {
|
|
@@ -1302,6 +1312,7 @@ export interface CanvasConsentCategory extends CanvasCoding {}
|
|
|
1302
1312
|
export type FormFieldOptions = FormFieldValidation & {
|
|
1303
1313
|
tableChoices?: TableInputChoice[],
|
|
1304
1314
|
choices?: string[];
|
|
1315
|
+
canvasCodings?: CanvasCoding[],
|
|
1305
1316
|
from?: number,
|
|
1306
1317
|
to?: number,
|
|
1307
1318
|
radio?: boolean; // absent indicates not radio
|
|
@@ -1322,6 +1333,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1322
1333
|
},
|
|
1323
1334
|
useDatePicker?: boolean,
|
|
1324
1335
|
sharedIntakeFields?: string[],
|
|
1336
|
+
hiddenDefaultFields?: string[],
|
|
1325
1337
|
copyResponse?: boolean, // copy to related contacts when created
|
|
1326
1338
|
disableGoBack?: boolean,
|
|
1327
1339
|
disableNext?: boolean,
|
|
@@ -1336,6 +1348,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1336
1348
|
validStates?: string[],
|
|
1337
1349
|
autoAdvance?: boolean,
|
|
1338
1350
|
prefillSignature?: boolean,
|
|
1351
|
+
includeGroupNumber?: boolean,
|
|
1339
1352
|
}
|
|
1340
1353
|
export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
|
|
1341
1354
|
|
|
@@ -1478,6 +1491,7 @@ export interface Integration extends Integration_readonly, Integration_required,
|
|
|
1478
1491
|
authentication: IntegrationAuthentication,
|
|
1479
1492
|
emailDisabled?: boolean,
|
|
1480
1493
|
syncUnrecognizedSenders?: boolean,
|
|
1494
|
+
createEndusersForUnrecognizedSenders?: boolean,
|
|
1481
1495
|
calendars?: string[],
|
|
1482
1496
|
environment?: string,
|
|
1483
1497
|
webhooksSecret?: string,
|
|
@@ -1869,6 +1883,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
1869
1883
|
bufferEndMinutes?: number,
|
|
1870
1884
|
canvasCoding?: CanvasCoding,
|
|
1871
1885
|
canvasLocationId?: string,
|
|
1886
|
+
completedAt?: Date | '',
|
|
1872
1887
|
// isAllDay?: boolean,
|
|
1873
1888
|
}
|
|
1874
1889
|
|
|
@@ -2149,6 +2164,9 @@ export type AfterActionAutomationEvent = AutomationEventBuilder<'afterAction', A
|
|
|
2149
2164
|
field: string,
|
|
2150
2165
|
before?: boolean,
|
|
2151
2166
|
}
|
|
2167
|
+
eventCondition?: {
|
|
2168
|
+
before?: boolean,
|
|
2169
|
+
}
|
|
2152
2170
|
}>
|
|
2153
2171
|
export type FormUnsubmittedEvent = AutomationEventBuilder<'formUnsubmitted', FormUnsubmittedEventInfo>
|
|
2154
2172
|
export type FormsUnsubmittedEvent = AutomationEventBuilder<'formsUnsubmitted', FormUnsubmittedEventInfo>
|
|
@@ -2610,6 +2628,7 @@ export interface AutomatedAction_readonly extends ClientRecord {
|
|
|
2610
2628
|
lockedAt?: number,
|
|
2611
2629
|
lockId?: string,
|
|
2612
2630
|
lockCount?: number,
|
|
2631
|
+
processedAt?: Date,
|
|
2613
2632
|
}
|
|
2614
2633
|
export interface AutomatedAction_required {
|
|
2615
2634
|
enduserId: string,
|
|
@@ -3082,6 +3101,9 @@ export type AutomationTriggerEvents = {
|
|
|
3082
3101
|
'Appointment No-Showed': AutomationTriggerEventBuilder<"Appointment No-Showed", { }, {}>,
|
|
3083
3102
|
'Field Equals': AutomationTriggerEventBuilder<"Field Equals", { field: string, value: string }, { }>,
|
|
3084
3103
|
'Appointment Created': AutomationTriggerEventBuilder<"Appointment Created", { titles?: string[] }, {}>,
|
|
3104
|
+
'Appointment Completed': AutomationTriggerEventBuilder<"Appointment Completed", { titles?: string[] }, {}>,
|
|
3105
|
+
'Appointment Cancelled': AutomationTriggerEventBuilder<"Appointment Cancelled", { titles?: string[] }, {}>,
|
|
3106
|
+
'Appointment Rescheduled': AutomationTriggerEventBuilder<"Appointment Rescheduled", { titles?: string[] }, {}>,
|
|
3085
3107
|
'Medication Added': AutomationTriggerEventBuilder<"Medication Added", { titles: string[] }, {}>,
|
|
3086
3108
|
'No Recent Appointment': AutomationTriggerEventBuilder<"No Recent Appointment", {
|
|
3087
3109
|
intervalInMS: number,
|
|
@@ -3108,6 +3130,8 @@ export type AutomationTriggerEvents = {
|
|
|
3108
3130
|
phoneNumbers?: string[],
|
|
3109
3131
|
inputs?: string[],
|
|
3110
3132
|
}, {}>,
|
|
3133
|
+
'Order Created': AutomationTriggerEventBuilder<"Order Created", { titles?: string[] }, {}>,
|
|
3134
|
+
'Problem Created': AutomationTriggerEventBuilder<"Problem Created", { titles?: string[] }, {}>,
|
|
3111
3135
|
}
|
|
3112
3136
|
export type AutomationTriggerEventType = keyof AutomationTriggerEvents
|
|
3113
3137
|
export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType]
|
|
@@ -3359,6 +3383,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3359
3383
|
externalId: string,
|
|
3360
3384
|
source: string,
|
|
3361
3385
|
title: string,
|
|
3386
|
+
description?: string,
|
|
3362
3387
|
status: string,
|
|
3363
3388
|
enduserId: string,
|
|
3364
3389
|
userId?: string,
|
|
@@ -3370,6 +3395,19 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3370
3395
|
tracking?: string,
|
|
3371
3396
|
}
|
|
3372
3397
|
|
|
3398
|
+
export interface EnduserProblem_readonly extends ClientRecord {}
|
|
3399
|
+
export interface EnduserProblem_updatesDisabled {}
|
|
3400
|
+
export interface EnduserProblem_required {}
|
|
3401
|
+
export interface EnduserProblem extends EnduserProblem_readonly, EnduserProblem_required, EnduserProblem_updatesDisabled {
|
|
3402
|
+
externalId?: string,
|
|
3403
|
+
source?: string,
|
|
3404
|
+
title: string,
|
|
3405
|
+
enduserId: string,
|
|
3406
|
+
code?: string,
|
|
3407
|
+
codeset?: string,
|
|
3408
|
+
references?: RelatedRecord[],
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3373
3411
|
export type CandidProcedureCode = {
|
|
3374
3412
|
code: string,
|
|
3375
3413
|
quantity: number,
|
|
@@ -3502,9 +3540,12 @@ export interface PrescriptionRoute extends PrescriptionRoute_readonly, Prescript
|
|
|
3502
3540
|
state: string,
|
|
3503
3541
|
templateIds: string[],
|
|
3504
3542
|
pharmacyId?: string,
|
|
3543
|
+
pharmacyLabel?: string,
|
|
3544
|
+
tags?: string[],
|
|
3505
3545
|
}
|
|
3506
3546
|
|
|
3507
3547
|
export type ModelForName_required = {
|
|
3548
|
+
enduser_problems: EnduserProblem_required,
|
|
3508
3549
|
prescription_routes: PrescriptionRoute_required,
|
|
3509
3550
|
vital_configurations: VitalConfiguration_required,
|
|
3510
3551
|
blocked_phones: BlockedPhone_required,
|
|
@@ -3580,6 +3621,7 @@ export type ModelForName_required = {
|
|
|
3580
3621
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
|
|
3581
3622
|
|
|
3582
3623
|
export interface ModelForName_readonly {
|
|
3624
|
+
enduser_problems: EnduserProblem_readonly,
|
|
3583
3625
|
prescription_routes: PrescriptionRoute_readonly,
|
|
3584
3626
|
blocked_phones: BlockedPhone_readonly,
|
|
3585
3627
|
vital_configurations: VitalConfiguration_readonly,
|
|
@@ -3655,6 +3697,7 @@ export interface ModelForName_readonly {
|
|
|
3655
3697
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
|
|
3656
3698
|
|
|
3657
3699
|
export interface ModelForName_updatesDisabled {
|
|
3700
|
+
enduser_problems: EnduserProblem_updatesDisabled,
|
|
3658
3701
|
prescription_routes: PrescriptionRoute_updatesDisabled,
|
|
3659
3702
|
blocked_phones: BlockedPhone_updatesDisabled,
|
|
3660
3703
|
vital_configurations: VitalConfiguration_updatesDisabled,
|
|
@@ -3730,6 +3773,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
3730
3773
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
|
|
3731
3774
|
|
|
3732
3775
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3776
|
+
enduser_problems: EnduserProblem,
|
|
3733
3777
|
prescription_routes: PrescriptionRoute,
|
|
3734
3778
|
blocked_phones: BlockedPhone,
|
|
3735
3779
|
vital_configurations: VitalConfiguration,
|
|
@@ -3815,6 +3859,7 @@ export interface UserActivityInfo {
|
|
|
3815
3859
|
export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
|
|
3816
3860
|
|
|
3817
3861
|
export const modelNameChecker: { [K in ModelName] : true } = {
|
|
3862
|
+
enduser_problems: true,
|
|
3818
3863
|
prescription_routes: true,
|
|
3819
3864
|
blocked_phones: true,
|
|
3820
3865
|
vital_configurations: true,
|