@tellescope/types-models 1.246.2 → 1.248.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 +28 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +28 -1
- 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 +34 -8
package/src/index.ts
CHANGED
|
@@ -514,6 +514,8 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
514
514
|
showCommunity?: boolean,
|
|
515
515
|
phoneLabels?: { number: string, label: string }[];
|
|
516
516
|
faxDestinations?: { label: string, number: string }[],
|
|
517
|
+
faxCoverPageEnabled?: boolean,
|
|
518
|
+
faxCoverPageId?: string,
|
|
517
519
|
mfaxAccountId?: string,
|
|
518
520
|
athenaFieldsSync?: AthenaFieldSync[]
|
|
519
521
|
athenaSubscriptions?: AthenaSubscription[],
|
|
@@ -651,7 +653,8 @@ export interface UserSession extends Session, OrganizationLimits { // User joine
|
|
|
651
653
|
verifiedEmail: boolean;
|
|
652
654
|
wasAutomated: boolean;
|
|
653
655
|
limits?: OrganizationLimits,
|
|
654
|
-
uiRestrictions?: UserUIRestrictions
|
|
656
|
+
uiRestrictions?: UserUIRestrictions,
|
|
657
|
+
fieldRedactions?: UserFieldRedactions,
|
|
655
658
|
dashboardView?: CustomDashboardView,
|
|
656
659
|
hasTicketQueues?: boolean,
|
|
657
660
|
eat?: boolean, // enableAccessTags
|
|
@@ -964,11 +967,12 @@ export interface Enduser_readonly extends UserActivityInfo, ClientRecord, Enduse
|
|
|
964
967
|
mergedIds?: string[],
|
|
965
968
|
_updateKey?: string,
|
|
966
969
|
passwordLastChangedAt?: Date,
|
|
967
|
-
}
|
|
970
|
+
}
|
|
968
971
|
export interface Enduser_required {}
|
|
969
972
|
export interface Enduser_updatesDisabled {
|
|
970
973
|
}
|
|
971
974
|
export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_updatesDisabled {
|
|
975
|
+
invalidateSessionsBefore?: Date,
|
|
972
976
|
references?: RelatedRecord[],
|
|
973
977
|
recentViewers?: RecentViewer[],
|
|
974
978
|
healthie_dietitian_id?: string,
|
|
@@ -1068,6 +1072,7 @@ export interface EnduserCustomType_updatesDisabled {}
|
|
|
1068
1072
|
export interface EnduserCustomType extends EnduserCustomType_readonly, EnduserCustomType_required, EnduserCustomType_updatesDisabled {
|
|
1069
1073
|
builtinFields?: EnduserBuiltInField[];
|
|
1070
1074
|
customFields?: CustomEnduserField[];
|
|
1075
|
+
createEnduserForms?: string[];
|
|
1071
1076
|
}
|
|
1072
1077
|
|
|
1073
1078
|
export interface EnduserStatusUpdate_readonly extends ClientRecord {}
|
|
@@ -1865,6 +1870,7 @@ export type FormFieldOptions = FormFieldValidation & {
|
|
|
1865
1870
|
signatureUrl?: string,
|
|
1866
1871
|
productIds?: string[],
|
|
1867
1872
|
chargeImmediately?: boolean,
|
|
1873
|
+
saveCardOnFile?: boolean,
|
|
1868
1874
|
databaseId?: string,
|
|
1869
1875
|
databaseLabel?: string,
|
|
1870
1876
|
databaseLabels?: string[],
|
|
@@ -2131,6 +2137,12 @@ export interface Integration_readonly extends ClientRecord {
|
|
|
2131
2137
|
}
|
|
2132
2138
|
export interface Integration_required {}
|
|
2133
2139
|
export interface Integration_updatesDisabled {}
|
|
2140
|
+
/**
|
|
2141
|
+
* IMPORTANT: When adding new non-sensitive, user-configurable fields to this interface,
|
|
2142
|
+
* also add them to INTEGRATION_SETTINGS_ALLOWLIST in packages/private/api/api/v1/api.ts
|
|
2143
|
+
* so they can be updated via the update_settings endpoint.
|
|
2144
|
+
* Do NOT add sensitive fields (credentials, tokens, secrets) to the allowlist.
|
|
2145
|
+
*/
|
|
2134
2146
|
export interface Integration extends Integration_readonly, Integration_required, Integration_updatesDisabled {
|
|
2135
2147
|
title: string,
|
|
2136
2148
|
tenantId?: string, // e.g. for athena health practice id which doesn't fit in authentication
|
|
@@ -2305,6 +2317,7 @@ export type BelugaPatientPreferenceResponse = {
|
|
|
2305
2317
|
}
|
|
2306
2318
|
|
|
2307
2319
|
export type BelugaPharmacyMapping = {
|
|
2320
|
+
title?: string,
|
|
2308
2321
|
pharmacyId: string,
|
|
2309
2322
|
patientPreference: string, // stringified JSON — resilient to field changes
|
|
2310
2323
|
conditions: CompoundFilter<string>,
|
|
@@ -2312,7 +2325,7 @@ export type BelugaPharmacyMapping = {
|
|
|
2312
2325
|
|
|
2313
2326
|
export type FormResponseAnswerTable = FormResponseValueAnswerBuilder<'Table Input', TableInputCell[][]>
|
|
2314
2327
|
export type FormResponseAnswerGroup = FormResponseValueAnswerBuilder<'Question Group', FormSubField[]>
|
|
2315
|
-
export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description',
|
|
2328
|
+
export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description', string>
|
|
2316
2329
|
export type FormResponseAnswerEmail = FormResponseValueAnswerBuilder<'email', string>
|
|
2317
2330
|
export type FormResponseAnswerNumber = FormResponseValueAnswerBuilder<'number', number>
|
|
2318
2331
|
export type FormResponseAnswerPhone = FormResponseValueAnswerBuilder<'phone', string>
|
|
@@ -2953,6 +2966,7 @@ export interface AppointmentBookingPage extends AppointmentBookingPage_readonly,
|
|
|
2953
2966
|
topLogo?: string,
|
|
2954
2967
|
intakeTitle?: string,
|
|
2955
2968
|
intakeDescription?: string,
|
|
2969
|
+
portalDescription?: string,
|
|
2956
2970
|
thankYouRedirectURL?: string,
|
|
2957
2971
|
thankYouTitle?: string,
|
|
2958
2972
|
thankYouDescription?: string,
|
|
@@ -3335,6 +3349,7 @@ export type CanvasCreateNoteAutomationAction = AutomationActionBuilder<'canvasCr
|
|
|
3335
3349
|
formIds: string[],
|
|
3336
3350
|
matchCareTeamTagsForCanvasPractitionerResolution: ListOfStringsWithQualifier,
|
|
3337
3351
|
noteCoding: CanvasCoding,
|
|
3352
|
+
syncAllFormResponses?: boolean,
|
|
3338
3353
|
}>
|
|
3339
3354
|
export type CanvasAddToGroupAutomationAction = AutomationActionBuilder<'canvasAddToGroup', {
|
|
3340
3355
|
groupId: string,
|
|
@@ -3924,6 +3939,8 @@ export interface CarePlan extends CarePlan_readonly, CarePlan_required, CarePlan
|
|
|
3924
3939
|
}
|
|
3925
3940
|
|
|
3926
3941
|
export type TypedField = { type?: string, field?: string, }
|
|
3942
|
+
export type UserFieldRedactions = { [modelName: string]: string[] }
|
|
3943
|
+
|
|
3927
3944
|
export type UserUIRestrictions = {
|
|
3928
3945
|
hideDashboard?: boolean,
|
|
3929
3946
|
hideInbox?: boolean,
|
|
@@ -3942,6 +3959,11 @@ export type UserUIRestrictions = {
|
|
|
3942
3959
|
hideBulkEnduserActions?: boolean,
|
|
3943
3960
|
visibleIntegrations?: string[],
|
|
3944
3961
|
hideViewPortalAsEnduser?: boolean,
|
|
3962
|
+
hideEnduserNote?: boolean,
|
|
3963
|
+
disableTimeTrackApproval?: boolean,
|
|
3964
|
+
hideCalendarUserSelector?: boolean,
|
|
3965
|
+
hideCalendarSavedViews?: boolean,
|
|
3966
|
+
hideCalendarFilters?: boolean,
|
|
3945
3967
|
}
|
|
3946
3968
|
|
|
3947
3969
|
export interface RoleBasedAccessPermission_readonly extends ClientRecord {}
|
|
@@ -3949,6 +3971,7 @@ export interface RoleBasedAccessPermission_required {
|
|
|
3949
3971
|
role: string,
|
|
3950
3972
|
permissions: Partial<AccessPermissions>,
|
|
3951
3973
|
uiRestrictions?: UserUIRestrictions,
|
|
3974
|
+
fieldRedactions?: UserFieldRedactions,
|
|
3952
3975
|
}
|
|
3953
3976
|
export interface RoleBasedAccessPermission_updatesDisabled {}
|
|
3954
3977
|
export interface RoleBasedAccessPermission extends RoleBasedAccessPermission_readonly, RoleBasedAccessPermission_required, RoleBasedAccessPermission_updatesDisabled {}
|
|
@@ -4615,12 +4638,13 @@ export type AutomationTriggerAction = AutomationTriggerActions[AutomationTrigger
|
|
|
4615
4638
|
export type AutomationTriggerEventBuilder <T, I, C> = { type: T, info: I, conditions?: C }
|
|
4616
4639
|
|
|
4617
4640
|
export type AutomationTriggerEvents = {
|
|
4618
|
-
'Form Submitted': AutomationTriggerEventBuilder<"Form Submitted", {
|
|
4619
|
-
formId: string,
|
|
4641
|
+
'Form Submitted': AutomationTriggerEventBuilder<"Form Submitted", {
|
|
4642
|
+
formId: string,
|
|
4620
4643
|
otherFormIds?: string[],
|
|
4621
|
-
submitterType?: SessionType | 'Anyone',
|
|
4644
|
+
submitterType?: SessionType | 'Anyone',
|
|
4622
4645
|
publicIdentifier?: string,
|
|
4623
4646
|
hasExpiredEvent?: boolean,
|
|
4647
|
+
conditionsByFormId?: Record<string, any>,
|
|
4624
4648
|
}, {}>,
|
|
4625
4649
|
'Form Unsubmitted': AutomationTriggerEventBuilder<"Form Unsubmitted", { formId: string, intervalInMS: number }, {}>,
|
|
4626
4650
|
'Purchase Made': AutomationTriggerEventBuilder<"Purchase Made", { titles?: string[], productIds?: string[], titlePartialMatches?: string[] }, {}>,
|
|
@@ -4663,14 +4687,15 @@ export type AutomationTriggerEvents = {
|
|
|
4663
4687
|
ignoreDelayedReadings?: boolean,
|
|
4664
4688
|
}, {}>,
|
|
4665
4689
|
'SMS Reply': AutomationTriggerEventBuilder<"SMS Reply", { templateIds: string[], replyKeywords?: string[] }, {}>,
|
|
4666
|
-
'Order Status Equals': AutomationTriggerEventBuilder<"Order Status Equals", {
|
|
4667
|
-
source: string,
|
|
4690
|
+
'Order Status Equals': AutomationTriggerEventBuilder<"Order Status Equals", {
|
|
4691
|
+
source: string,
|
|
4668
4692
|
status: string,
|
|
4669
4693
|
fills?: string[],
|
|
4670
4694
|
skus?: string[],
|
|
4671
4695
|
skuPartials?: string[],
|
|
4672
4696
|
titlePartials?: string[],
|
|
4673
4697
|
titlePartialsAnd?: string[],
|
|
4698
|
+
protocols?: string[],
|
|
4674
4699
|
}, { }>,
|
|
4675
4700
|
'Missed Call': AutomationTriggerEventBuilder<"Missed Call", {
|
|
4676
4701
|
phoneNumbers?: string[],
|
|
@@ -5067,6 +5092,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
5067
5092
|
cancellationReason?: string,
|
|
5068
5093
|
medication?: string,
|
|
5069
5094
|
medicationSku?: string,
|
|
5095
|
+
protocol?: string,
|
|
5070
5096
|
}
|
|
5071
5097
|
|
|
5072
5098
|
export interface EnduserProblem_readonly extends ClientRecord {}
|