@tellescope/types-models 1.247.0 → 1.249.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 +60 -3
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +60 -3
- 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 +3 -3
- package/src/index.ts +71 -11
package/lib/cjs/index.d.ts
CHANGED
|
@@ -313,6 +313,8 @@ export type BasicWebhook = {
|
|
|
313
313
|
export type TimeTrackingBillingCode = {
|
|
314
314
|
billingCode: string;
|
|
315
315
|
timeInMinutes: number;
|
|
316
|
+
repeatable?: boolean;
|
|
317
|
+
feeCents?: number;
|
|
316
318
|
};
|
|
317
319
|
export type TimeTrackingProgramForm = {
|
|
318
320
|
id: string;
|
|
@@ -321,6 +323,7 @@ export type TimeTrackingProgram = {
|
|
|
321
323
|
title: string;
|
|
322
324
|
billingCodes: TimeTrackingBillingCode[];
|
|
323
325
|
forms?: TimeTrackingProgramForm[];
|
|
326
|
+
summaryFormId?: string;
|
|
324
327
|
};
|
|
325
328
|
export type SyncDirection = "Bidirectional" | "From Tellescope" | "To Tellescope";
|
|
326
329
|
export type AthenaFieldSync = {
|
|
@@ -439,6 +442,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
439
442
|
hasConnectedZus?: boolean;
|
|
440
443
|
hasConnectedCanvas?: boolean;
|
|
441
444
|
canvasURL?: string;
|
|
445
|
+
healthiePortalURL?: string;
|
|
442
446
|
hasConnectedCandid?: boolean;
|
|
443
447
|
hasConnectedGoGoMeds?: boolean;
|
|
444
448
|
hasScriptSure?: boolean;
|
|
@@ -497,6 +501,8 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
497
501
|
label: string;
|
|
498
502
|
number: string;
|
|
499
503
|
}[];
|
|
504
|
+
faxCoverPageEnabled?: boolean;
|
|
505
|
+
faxCoverPageId?: string;
|
|
500
506
|
mfaxAccountId?: string;
|
|
501
507
|
athenaFieldsSync?: AthenaFieldSync[];
|
|
502
508
|
athenaSubscriptions?: AthenaSubscription[];
|
|
@@ -644,6 +650,7 @@ export interface UserSession extends Session, OrganizationLimits {
|
|
|
644
650
|
wasAutomated: boolean;
|
|
645
651
|
limits?: OrganizationLimits;
|
|
646
652
|
uiRestrictions?: UserUIRestrictions;
|
|
653
|
+
fieldRedactions?: UserFieldRedactions;
|
|
647
654
|
dashboardView?: CustomDashboardView;
|
|
648
655
|
hasTicketQueues?: boolean;
|
|
649
656
|
eat?: boolean;
|
|
@@ -846,6 +853,15 @@ export type EnduserInsurance = {
|
|
|
846
853
|
groupNumber?: string;
|
|
847
854
|
planName?: string;
|
|
848
855
|
startDate?: string;
|
|
856
|
+
authorizationStartDate?: string;
|
|
857
|
+
authorizationEndDate?: string;
|
|
858
|
+
track?: string;
|
|
859
|
+
visitsAuthorized?: number;
|
|
860
|
+
visitsUsed?: number;
|
|
861
|
+
procedureCodes?: string[];
|
|
862
|
+
diagnosisCodes?: string[];
|
|
863
|
+
healthieAuthorizationId?: string;
|
|
864
|
+
healthiePolicyId?: string;
|
|
849
865
|
};
|
|
850
866
|
export type Pharmacy = {
|
|
851
867
|
npi?: string;
|
|
@@ -899,6 +915,7 @@ export interface Enduser_required {
|
|
|
899
915
|
export interface Enduser_updatesDisabled {
|
|
900
916
|
}
|
|
901
917
|
export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_updatesDisabled {
|
|
918
|
+
invalidateSessionsBefore?: Date;
|
|
902
919
|
references?: RelatedRecord[];
|
|
903
920
|
recentViewers?: RecentViewer[];
|
|
904
921
|
healthie_dietitian_id?: string;
|
|
@@ -1000,6 +1017,7 @@ export interface EnduserCustomType_updatesDisabled {
|
|
|
1000
1017
|
export interface EnduserCustomType extends EnduserCustomType_readonly, EnduserCustomType_required, EnduserCustomType_updatesDisabled {
|
|
1001
1018
|
builtinFields?: EnduserBuiltInField[];
|
|
1002
1019
|
customFields?: CustomEnduserField[];
|
|
1020
|
+
createEnduserForms?: string[];
|
|
1003
1021
|
}
|
|
1004
1022
|
export interface EnduserStatusUpdate_readonly extends ClientRecord {
|
|
1005
1023
|
}
|
|
@@ -1071,6 +1089,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
|
|
|
1071
1089
|
}
|
|
1072
1090
|
export interface APIKey_readonly extends ClientRecord {
|
|
1073
1091
|
hashedKey: string;
|
|
1092
|
+
approvedBusinessIds?: string[];
|
|
1074
1093
|
}
|
|
1075
1094
|
export interface APIKey_required {
|
|
1076
1095
|
}
|
|
@@ -2047,6 +2066,8 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
2047
2066
|
offering_id: string;
|
|
2048
2067
|
}[];
|
|
2049
2068
|
autoMergeOnSubmission?: boolean;
|
|
2069
|
+
procedureCodes?: FormResponseProcedureCode[];
|
|
2070
|
+
diagnosisCodes?: FormResponseDiagnosisCode[];
|
|
2050
2071
|
}
|
|
2051
2072
|
export interface FormGroup_readonly extends ClientRecord {
|
|
2052
2073
|
}
|
|
@@ -2089,6 +2110,12 @@ export interface Integration_required {
|
|
|
2089
2110
|
}
|
|
2090
2111
|
export interface Integration_updatesDisabled {
|
|
2091
2112
|
}
|
|
2113
|
+
/**
|
|
2114
|
+
* IMPORTANT: When adding new non-sensitive, user-configurable fields to this interface,
|
|
2115
|
+
* also add them to INTEGRATION_SETTINGS_ALLOWLIST in packages/private/api/api/v1/api.ts
|
|
2116
|
+
* so they can be updated via the update_settings endpoint.
|
|
2117
|
+
* Do NOT add sensitive fields (credentials, tokens, secrets) to the allowlist.
|
|
2118
|
+
*/
|
|
2092
2119
|
export interface Integration extends Integration_readonly, Integration_required, Integration_updatesDisabled {
|
|
2093
2120
|
title: string;
|
|
2094
2121
|
tenantId?: string;
|
|
@@ -2262,13 +2289,14 @@ export type BelugaPatientPreferenceResponse = {
|
|
|
2262
2289
|
medId: string;
|
|
2263
2290
|
};
|
|
2264
2291
|
export type BelugaPharmacyMapping = {
|
|
2292
|
+
title?: string;
|
|
2265
2293
|
pharmacyId: string;
|
|
2266
2294
|
patientPreference: string;
|
|
2267
2295
|
conditions: CompoundFilter<string>;
|
|
2268
2296
|
};
|
|
2269
2297
|
export type FormResponseAnswerTable = FormResponseValueAnswerBuilder<'Table Input', TableInputCell[][]>;
|
|
2270
2298
|
export type FormResponseAnswerGroup = FormResponseValueAnswerBuilder<'Question Group', FormSubField[]>;
|
|
2271
|
-
export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description',
|
|
2299
|
+
export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description', string>;
|
|
2272
2300
|
export type FormResponseAnswerEmail = FormResponseValueAnswerBuilder<'email', string>;
|
|
2273
2301
|
export type FormResponseAnswerNumber = FormResponseValueAnswerBuilder<'number', number>;
|
|
2274
2302
|
export type FormResponseAnswerPhone = FormResponseValueAnswerBuilder<'phone', string>;
|
|
@@ -2483,6 +2511,8 @@ export interface FormResponse extends FormResponse_readonly, FormResponse_requir
|
|
|
2483
2511
|
timestamp: Date;
|
|
2484
2512
|
}[];
|
|
2485
2513
|
startedViaPinnedForm?: boolean;
|
|
2514
|
+
procedureCodes?: FormResponseProcedureCode[];
|
|
2515
|
+
diagnosisCodes?: FormResponseDiagnosisCode[];
|
|
2486
2516
|
}
|
|
2487
2517
|
export interface WebHook_readonly extends ClientRecord {
|
|
2488
2518
|
}
|
|
@@ -3421,6 +3451,7 @@ export type ChargebeeChargeCardOnFileAutomationAction = AutomationActionBuilder<
|
|
|
3421
3451
|
chargeType: 'One-Time' | 'Subscription';
|
|
3422
3452
|
itemPriceId: string;
|
|
3423
3453
|
quantity?: number;
|
|
3454
|
+
couponIds?: string[];
|
|
3424
3455
|
}>;
|
|
3425
3456
|
export type AIContextSource = {
|
|
3426
3457
|
type: "Email" | "SMS" | "PhoneCall";
|
|
@@ -3914,6 +3945,9 @@ export type TypedField = {
|
|
|
3914
3945
|
type?: string;
|
|
3915
3946
|
field?: string;
|
|
3916
3947
|
};
|
|
3948
|
+
export type UserFieldRedactions = {
|
|
3949
|
+
[modelName: string]: string[];
|
|
3950
|
+
};
|
|
3917
3951
|
export type UserUIRestrictions = {
|
|
3918
3952
|
hideDashboard?: boolean;
|
|
3919
3953
|
hideInbox?: boolean;
|
|
@@ -3933,6 +3967,10 @@ export type UserUIRestrictions = {
|
|
|
3933
3967
|
visibleIntegrations?: string[];
|
|
3934
3968
|
hideViewPortalAsEnduser?: boolean;
|
|
3935
3969
|
hideEnduserNote?: boolean;
|
|
3970
|
+
disableTimeTrackApproval?: boolean;
|
|
3971
|
+
hideCalendarUserSelector?: boolean;
|
|
3972
|
+
hideCalendarSavedViews?: boolean;
|
|
3973
|
+
hideCalendarFilters?: boolean;
|
|
3936
3974
|
};
|
|
3937
3975
|
export interface RoleBasedAccessPermission_readonly extends ClientRecord {
|
|
3938
3976
|
}
|
|
@@ -3940,6 +3978,7 @@ export interface RoleBasedAccessPermission_required {
|
|
|
3940
3978
|
role: string;
|
|
3941
3979
|
permissions: Partial<AccessPermissions>;
|
|
3942
3980
|
uiRestrictions?: UserUIRestrictions;
|
|
3981
|
+
fieldRedactions?: UserFieldRedactions;
|
|
3943
3982
|
}
|
|
3944
3983
|
export interface RoleBasedAccessPermission_updatesDisabled {
|
|
3945
3984
|
}
|
|
@@ -4204,7 +4243,10 @@ export type AnalyticsQueryFilterForType = {
|
|
|
4204
4243
|
};
|
|
4205
4244
|
Orders: {};
|
|
4206
4245
|
"Chat Rooms": {};
|
|
4207
|
-
"Chats": {
|
|
4246
|
+
"Chats": {
|
|
4247
|
+
direction?: string;
|
|
4248
|
+
"Chat Tags"?: ListOfStringsWithQualifier;
|
|
4249
|
+
};
|
|
4208
4250
|
};
|
|
4209
4251
|
export type EnduserGrouping = {
|
|
4210
4252
|
Field?: string;
|
|
@@ -4282,7 +4324,9 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
4282
4324
|
"Chat Rooms": {} & EnduserGrouping & {
|
|
4283
4325
|
Enduser: string;
|
|
4284
4326
|
};
|
|
4285
|
-
"Chats": {
|
|
4327
|
+
"Chats": {
|
|
4328
|
+
"Chat Tags"?: boolean;
|
|
4329
|
+
} & EnduserGrouping & {
|
|
4286
4330
|
Enduser: string;
|
|
4287
4331
|
};
|
|
4288
4332
|
};
|
|
@@ -4594,6 +4638,7 @@ export type AutomationTriggerEvents = {
|
|
|
4594
4638
|
submitterType?: SessionType | 'Anyone';
|
|
4595
4639
|
publicIdentifier?: string;
|
|
4596
4640
|
hasExpiredEvent?: boolean;
|
|
4641
|
+
conditionsByFormId?: Record<string, any>;
|
|
4597
4642
|
}, {}>;
|
|
4598
4643
|
'Form Unsubmitted': AutomationTriggerEventBuilder<"Form Unsubmitted", {
|
|
4599
4644
|
formId: string;
|
|
@@ -4686,6 +4731,7 @@ export type AutomationTriggerEvents = {
|
|
|
4686
4731
|
skuPartials?: string[];
|
|
4687
4732
|
titlePartials?: string[];
|
|
4688
4733
|
titlePartialsAnd?: string[];
|
|
4734
|
+
protocols?: string[];
|
|
4689
4735
|
}, {}>;
|
|
4690
4736
|
'Missed Call': AutomationTriggerEventBuilder<"Missed Call", {
|
|
4691
4737
|
phoneNumbers?: string[];
|
|
@@ -4817,6 +4863,16 @@ export type SuperbillLineItem = {
|
|
|
4817
4863
|
discount?: number;
|
|
4818
4864
|
diagnosisCodes?: string[];
|
|
4819
4865
|
};
|
|
4866
|
+
export type FormResponseProcedureCode = {
|
|
4867
|
+
code: string;
|
|
4868
|
+
units: number;
|
|
4869
|
+
feeCents?: number;
|
|
4870
|
+
modifiers?: string[];
|
|
4871
|
+
};
|
|
4872
|
+
export type FormResponseDiagnosisCode = {
|
|
4873
|
+
code: string;
|
|
4874
|
+
description?: string;
|
|
4875
|
+
};
|
|
4820
4876
|
export type SuperbillPatientInfo = {
|
|
4821
4877
|
name: string;
|
|
4822
4878
|
dateOfBirth: string;
|
|
@@ -5160,6 +5216,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
5160
5216
|
cancellationReason?: string;
|
|
5161
5217
|
medication?: string;
|
|
5162
5218
|
medicationSku?: string;
|
|
5219
|
+
protocol?: string;
|
|
5163
5220
|
}
|
|
5164
5221
|
export interface EnduserProblem_readonly extends ClientRecord {
|
|
5165
5222
|
}
|