@tellescope/types-models 1.74.3 → 1.76.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 +117 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +14 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +117 -2
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +13 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +105 -4
package/src/index.ts
CHANGED
|
@@ -160,10 +160,12 @@ export type OrganizationSettings = {
|
|
|
160
160
|
recordCalls?: boolean,
|
|
161
161
|
transcribeCalls?: boolean,
|
|
162
162
|
transcribeCallInboundPlayback?: string,
|
|
163
|
+
defaultPhoneNumber?: string,
|
|
163
164
|
sendSMSOnZoomStart?: boolean,
|
|
164
165
|
enableGroupMMS?: boolean,
|
|
165
166
|
enableAccessTags?: boolean,
|
|
166
167
|
flaggedFileText?: string,
|
|
168
|
+
showBulkFormInput?: boolean,
|
|
167
169
|
},
|
|
168
170
|
tickets?: {
|
|
169
171
|
defaultJourneyDueDateOffsetInMS?: number | '',
|
|
@@ -253,6 +255,9 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
253
255
|
hasConnectedZendesk?: boolean,
|
|
254
256
|
hasConnectedZus?: boolean,
|
|
255
257
|
hasConnectedCanvas?: boolean,
|
|
258
|
+
hasConnectedCandid?: boolean,
|
|
259
|
+
hasConnectedGoGoMeds?: boolean,
|
|
260
|
+
hasConfiguredZoom?: boolean,
|
|
256
261
|
hasTicketQueues?: boolean,
|
|
257
262
|
vitalTeamId?: string,
|
|
258
263
|
altVitalTeamIds?: { teamId: string, label: string }[],
|
|
@@ -264,6 +269,10 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
264
269
|
_groupChatsEnabled?: boolean,
|
|
265
270
|
allowCreateSuborganizations?: boolean,
|
|
266
271
|
allowCallerId?: boolean, // should require manual enablement by Tellescope team after explicit carve-out in BAA with customer
|
|
272
|
+
billingOrganizationName?: string,
|
|
273
|
+
billingOrganizationNPI?: string,
|
|
274
|
+
billingOrganizationTaxId?: string,
|
|
275
|
+
billingOrganizationAddress?: Address,
|
|
267
276
|
// _AIEnabled?: boolean,
|
|
268
277
|
}
|
|
269
278
|
export type OrganizationTheme = {
|
|
@@ -347,6 +356,7 @@ export interface UserSession extends Session, OrganizationLimits { // User joine
|
|
|
347
356
|
dashboardView?: CustomDashboardView,
|
|
348
357
|
hasTicketQueues?: boolean,
|
|
349
358
|
eat?: boolean, // enableAccessTags
|
|
359
|
+
lockedOutUntil?: number,
|
|
350
360
|
}
|
|
351
361
|
|
|
352
362
|
export type StateCredentialInfo = {
|
|
@@ -436,6 +446,7 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
436
446
|
voicemailPlayback?: PhonePlayback | {},
|
|
437
447
|
mfa?: MFASettings,
|
|
438
448
|
skills?: string[];
|
|
449
|
+
lockedOutUntil?: number, // -1 => not locked out, 0 => locked out indefinitely, > 0 => locked out until unix time in MS
|
|
439
450
|
}
|
|
440
451
|
|
|
441
452
|
export type Preference = 'email' | 'sms' | 'call' | 'chat'
|
|
@@ -519,9 +530,12 @@ export type EnduserInsurance = {
|
|
|
519
530
|
payerName?: string,
|
|
520
531
|
cardFront?: string,
|
|
521
532
|
cardBack?: string,
|
|
522
|
-
eligible?: boolean,
|
|
533
|
+
// eligible?: boolean,
|
|
534
|
+
eligibility?: string,
|
|
535
|
+
status?: string,
|
|
523
536
|
eligibilityRanAt?: Date,
|
|
524
|
-
|
|
537
|
+
coverageId?: string,
|
|
538
|
+
requestId?: string,
|
|
525
539
|
relationship?: InsuranceRelationship,
|
|
526
540
|
relationshipDetails?: {
|
|
527
541
|
fname?: string,
|
|
@@ -732,7 +746,7 @@ export type ReportQuery = {
|
|
|
732
746
|
createdAtBuckets?: Date[],
|
|
733
747
|
}
|
|
734
748
|
export type ReportQueries = Record<string, ReportQuery>
|
|
735
|
-
export type Report = Record<string, { count: number, _id: null | string | string[] }[]>
|
|
749
|
+
export type Report = Record<string, { count: number, _id: null | string | string[], ids?: string[] }[]>
|
|
736
750
|
|
|
737
751
|
export type FormResponsesReportQuery = ReportQuery & {
|
|
738
752
|
submittedAtRange?: DateRange,
|
|
@@ -1715,6 +1729,9 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
|
|
|
1715
1729
|
internalNotes?: string,
|
|
1716
1730
|
hiddenFromPortal?: boolean,
|
|
1717
1731
|
nextReminderInMS?: number | null,
|
|
1732
|
+
enduserAttendeeLimit?: number,
|
|
1733
|
+
bufferStartMinutes?: number,
|
|
1734
|
+
bufferEndMinutes?: number,
|
|
1718
1735
|
// isAllDay?: boolean,
|
|
1719
1736
|
}
|
|
1720
1737
|
|
|
@@ -1812,7 +1829,11 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
1812
1829
|
carePlanContent?: string[],
|
|
1813
1830
|
carePlanFiles?: string[]
|
|
1814
1831
|
|
|
1832
|
+
enduserAttendeeLimit?: number,
|
|
1833
|
+
|
|
1815
1834
|
apiOnly?: boolean,
|
|
1835
|
+
bufferStartMinutes?: number,
|
|
1836
|
+
bufferEndMinutes?: number,
|
|
1816
1837
|
}
|
|
1817
1838
|
|
|
1818
1839
|
export interface AppointmentLocation_readonly extends ClientRecord {}
|
|
@@ -1847,6 +1868,7 @@ export interface AppointmentBookingPage extends AppointmentBookingPage_readonly,
|
|
|
1847
1868
|
secondaryColor?: string,
|
|
1848
1869
|
backgroundColor?: string,
|
|
1849
1870
|
terms?: AppointmentTerm[],
|
|
1871
|
+
topLogo?: string,
|
|
1850
1872
|
intakeTitle?: string,
|
|
1851
1873
|
intakeDescription?: string,
|
|
1852
1874
|
thankYouRedirectURL?: string,
|
|
@@ -2761,6 +2783,8 @@ export interface AnalyticsFrame extends
|
|
|
2761
2783
|
{
|
|
2762
2784
|
parentFrame?: string,
|
|
2763
2785
|
type?: AnalyticsFrameType,
|
|
2786
|
+
groupMin?: number | '',
|
|
2787
|
+
groupMax?: number | '',
|
|
2764
2788
|
}
|
|
2765
2789
|
|
|
2766
2790
|
|
|
@@ -3130,6 +3154,42 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
3130
3154
|
status: string,
|
|
3131
3155
|
enduserId: string,
|
|
3132
3156
|
userId?: string,
|
|
3157
|
+
error?: string,
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
export const DIAGNOSIS_TYPE_MAPPING = {
|
|
3161
|
+
"ABF": "ICD-10",
|
|
3162
|
+
"ABJ": "ICD-10 Admitting Diagnosis",
|
|
3163
|
+
"ABK": "ICD-10 Principal Diagnosis",
|
|
3164
|
+
"APR": "ICD-10 Patient Reason for Visit",
|
|
3165
|
+
"BF": "ICD-9 Diagnosis",
|
|
3166
|
+
"BJ": "ICD-9 Admitting Diagnosis",
|
|
3167
|
+
"BK": "ICD-9 Principal Diagnosis",
|
|
3168
|
+
"PR": "ICD-9 Patient Reason for Visit",
|
|
3169
|
+
"DR": "Diagnosis Related Group (DRG)",
|
|
3170
|
+
"LOI": "LOINC<190>",
|
|
3171
|
+
}
|
|
3172
|
+
export type DiagnosisTypes = typeof DIAGNOSIS_TYPE_MAPPING
|
|
3173
|
+
export type DiagnosisType = keyof DiagnosisTypes
|
|
3174
|
+
export type Diagnosis = {
|
|
3175
|
+
type: keyof DiagnosisTypes,
|
|
3176
|
+
code: string,
|
|
3177
|
+
}
|
|
3178
|
+
export interface EnduserEncounter_readonly extends ClientRecord {
|
|
3179
|
+
externalId?: string,
|
|
3180
|
+
integration?: 'Candid',
|
|
3181
|
+
}
|
|
3182
|
+
export interface EnduserEncounter_updatesDisabled {}
|
|
3183
|
+
export interface EnduserEncounter_required {}
|
|
3184
|
+
export interface EnduserEncounter extends EnduserEncounter_readonly, EnduserEncounter_required, EnduserEncounter_updatesDisabled {
|
|
3185
|
+
title: string,
|
|
3186
|
+
enduserId: string,
|
|
3187
|
+
providerUserId: string,
|
|
3188
|
+
dateOfService: string,
|
|
3189
|
+
diagnoses: Diagnosis[],
|
|
3190
|
+
authorizedRelease: boolean, // Whether this patient has authorized the release of medical information for billing purpose.
|
|
3191
|
+
placeOfServiceCode: string,
|
|
3192
|
+
error?: string, // e.g. for errors with push to Candid
|
|
3133
3193
|
}
|
|
3134
3194
|
|
|
3135
3195
|
export interface TicketQueue_readonly extends ClientRecord {
|
|
@@ -3166,6 +3226,7 @@ export interface GroupMMSConversation_readonly extends ClientRecord {
|
|
|
3166
3226
|
title: string,
|
|
3167
3227
|
userIds: string[],
|
|
3168
3228
|
enduserIds: string[],
|
|
3229
|
+
destinations: string[],
|
|
3169
3230
|
userStates: GroupMMSUserState[],
|
|
3170
3231
|
pinnedAt?: Date | '',
|
|
3171
3232
|
tags?: string[]
|
|
@@ -3179,6 +3240,7 @@ export interface GroupMMSConversation extends GroupMMSConversation_readonly, Gro
|
|
|
3179
3240
|
}
|
|
3180
3241
|
|
|
3181
3242
|
export type ModelForName_required = {
|
|
3243
|
+
enduser_encounters: EnduserEncounter_required,
|
|
3182
3244
|
enduser_orders: EnduserOrder_required,
|
|
3183
3245
|
group_mms_conversations: GroupMMSConversation_required,
|
|
3184
3246
|
ticket_queues: TicketQueue_required,
|
|
@@ -3251,6 +3313,7 @@ export type ModelForName_required = {
|
|
|
3251
3313
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
|
|
3252
3314
|
|
|
3253
3315
|
export interface ModelForName_readonly {
|
|
3316
|
+
enduser_encounters: EnduserEncounter_readonly,
|
|
3254
3317
|
enduser_orders: EnduserOrder_readonly,
|
|
3255
3318
|
group_mms_conversations: GroupMMSConversation_readonly,
|
|
3256
3319
|
ticket_queues: TicketQueue_readonly,
|
|
@@ -3323,6 +3386,7 @@ export interface ModelForName_readonly {
|
|
|
3323
3386
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
|
|
3324
3387
|
|
|
3325
3388
|
export interface ModelForName_updatesDisabled {
|
|
3389
|
+
enduser_encounters: EnduserEncounter_updatesDisabled,
|
|
3326
3390
|
enduser_orders: EnduserOrder_updatesDisabled,
|
|
3327
3391
|
group_mms_conversations: GroupMMSConversation_updatesDisabled,
|
|
3328
3392
|
ticket_queues: TicketQueue_updatesDisabled,
|
|
@@ -3395,6 +3459,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
3395
3459
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
|
|
3396
3460
|
|
|
3397
3461
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3462
|
+
enduser_encounters: EnduserEncounter,
|
|
3398
3463
|
enduser_orders: EnduserOrder,
|
|
3399
3464
|
group_mms_conversations: GroupMMSConversation,
|
|
3400
3465
|
ticket_queues: TicketQueue,
|
|
@@ -3477,6 +3542,7 @@ export interface UserActivityInfo {
|
|
|
3477
3542
|
export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
|
|
3478
3543
|
|
|
3479
3544
|
export const modelNameChecker: { [K in ModelName] : true } = {
|
|
3545
|
+
enduser_encounters: true,
|
|
3480
3546
|
enduser_orders: true,
|
|
3481
3547
|
group_mms_conversations: true,
|
|
3482
3548
|
ticket_queues: true,
|
|
@@ -4255,4 +4321,39 @@ export type ChatGPTMessage = ExternalChatGPTMessage | {
|
|
|
4255
4321
|
role: 'system',
|
|
4256
4322
|
content: string,
|
|
4257
4323
|
}
|
|
4258
|
-
export type ChatGPTModel ='gpt-3.5-turbo' | 'gpt4'
|
|
4324
|
+
export type ChatGPTModel ='gpt-3.5-turbo' | 'gpt4'
|
|
4325
|
+
|
|
4326
|
+
export type CanvasBenefit = {
|
|
4327
|
+
type: { text: string },
|
|
4328
|
+
allowedMoney?: { value: number }, // for Co-Payment type
|
|
4329
|
+
allowedString?: { value: `${string}%` }, // for Co-Insurance type
|
|
4330
|
+
usedMoney?: { value: number }, // for Out of Pocket (Stop Loss)
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
export type CanvasEligibility = {
|
|
4334
|
+
coverage: { reference: string, type: "Coverage" },
|
|
4335
|
+
item?: {
|
|
4336
|
+
name?: string,
|
|
4337
|
+
network?: {
|
|
4338
|
+
coding: { system: string, code: string, display: string }[],
|
|
4339
|
+
text: string,
|
|
4340
|
+
},
|
|
4341
|
+
unit?: {
|
|
4342
|
+
coding: { system: string, code: string, display: string }[],
|
|
4343
|
+
text: string,
|
|
4344
|
+
},
|
|
4345
|
+
benefit: CanvasBenefit[],
|
|
4346
|
+
}[]
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
// simplified, removes fields we can always provide or can infer
|
|
4350
|
+
export type GoGoMedsPet = {
|
|
4351
|
+
PetName: string,
|
|
4352
|
+
PetTypeId: number, // 1 dog, 2 cat, 3 other
|
|
4353
|
+
OtherPetType?: string,
|
|
4354
|
+
PetWeight: string, // numberic, string length 5 max, ounces?
|
|
4355
|
+
Gender: "M" | "F" | "U" | "P",
|
|
4356
|
+
AllergyText?: string,
|
|
4357
|
+
MedicalConditionText?: string,
|
|
4358
|
+
CurrentMedications?: string,
|
|
4359
|
+
}
|