@tellescope/types-models 1.247.0 → 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 +24 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +24 -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 +30 -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 {}
|
|
@@ -2132,6 +2137,12 @@ export interface Integration_readonly extends ClientRecord {
|
|
|
2132
2137
|
}
|
|
2133
2138
|
export interface Integration_required {}
|
|
2134
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
|
+
*/
|
|
2135
2146
|
export interface Integration extends Integration_readonly, Integration_required, Integration_updatesDisabled {
|
|
2136
2147
|
title: string,
|
|
2137
2148
|
tenantId?: string, // e.g. for athena health practice id which doesn't fit in authentication
|
|
@@ -2306,6 +2317,7 @@ export type BelugaPatientPreferenceResponse = {
|
|
|
2306
2317
|
}
|
|
2307
2318
|
|
|
2308
2319
|
export type BelugaPharmacyMapping = {
|
|
2320
|
+
title?: string,
|
|
2309
2321
|
pharmacyId: string,
|
|
2310
2322
|
patientPreference: string, // stringified JSON — resilient to field changes
|
|
2311
2323
|
conditions: CompoundFilter<string>,
|
|
@@ -2313,7 +2325,7 @@ export type BelugaPharmacyMapping = {
|
|
|
2313
2325
|
|
|
2314
2326
|
export type FormResponseAnswerTable = FormResponseValueAnswerBuilder<'Table Input', TableInputCell[][]>
|
|
2315
2327
|
export type FormResponseAnswerGroup = FormResponseValueAnswerBuilder<'Question Group', FormSubField[]>
|
|
2316
|
-
export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description',
|
|
2328
|
+
export type FormResponseAnswerDescription = FormResponseValueAnswerBuilder<'description', string>
|
|
2317
2329
|
export type FormResponseAnswerEmail = FormResponseValueAnswerBuilder<'email', string>
|
|
2318
2330
|
export type FormResponseAnswerNumber = FormResponseValueAnswerBuilder<'number', number>
|
|
2319
2331
|
export type FormResponseAnswerPhone = FormResponseValueAnswerBuilder<'phone', string>
|
|
@@ -3927,6 +3939,8 @@ export interface CarePlan extends CarePlan_readonly, CarePlan_required, CarePlan
|
|
|
3927
3939
|
}
|
|
3928
3940
|
|
|
3929
3941
|
export type TypedField = { type?: string, field?: string, }
|
|
3942
|
+
export type UserFieldRedactions = { [modelName: string]: string[] }
|
|
3943
|
+
|
|
3930
3944
|
export type UserUIRestrictions = {
|
|
3931
3945
|
hideDashboard?: boolean,
|
|
3932
3946
|
hideInbox?: boolean,
|
|
@@ -3946,6 +3960,10 @@ export type UserUIRestrictions = {
|
|
|
3946
3960
|
visibleIntegrations?: string[],
|
|
3947
3961
|
hideViewPortalAsEnduser?: boolean,
|
|
3948
3962
|
hideEnduserNote?: boolean,
|
|
3963
|
+
disableTimeTrackApproval?: boolean,
|
|
3964
|
+
hideCalendarUserSelector?: boolean,
|
|
3965
|
+
hideCalendarSavedViews?: boolean,
|
|
3966
|
+
hideCalendarFilters?: boolean,
|
|
3949
3967
|
}
|
|
3950
3968
|
|
|
3951
3969
|
export interface RoleBasedAccessPermission_readonly extends ClientRecord {}
|
|
@@ -3953,6 +3971,7 @@ export interface RoleBasedAccessPermission_required {
|
|
|
3953
3971
|
role: string,
|
|
3954
3972
|
permissions: Partial<AccessPermissions>,
|
|
3955
3973
|
uiRestrictions?: UserUIRestrictions,
|
|
3974
|
+
fieldRedactions?: UserFieldRedactions,
|
|
3956
3975
|
}
|
|
3957
3976
|
export interface RoleBasedAccessPermission_updatesDisabled {}
|
|
3958
3977
|
export interface RoleBasedAccessPermission extends RoleBasedAccessPermission_readonly, RoleBasedAccessPermission_required, RoleBasedAccessPermission_updatesDisabled {}
|
|
@@ -4619,12 +4638,13 @@ export type AutomationTriggerAction = AutomationTriggerActions[AutomationTrigger
|
|
|
4619
4638
|
export type AutomationTriggerEventBuilder <T, I, C> = { type: T, info: I, conditions?: C }
|
|
4620
4639
|
|
|
4621
4640
|
export type AutomationTriggerEvents = {
|
|
4622
|
-
'Form Submitted': AutomationTriggerEventBuilder<"Form Submitted", {
|
|
4623
|
-
formId: string,
|
|
4641
|
+
'Form Submitted': AutomationTriggerEventBuilder<"Form Submitted", {
|
|
4642
|
+
formId: string,
|
|
4624
4643
|
otherFormIds?: string[],
|
|
4625
|
-
submitterType?: SessionType | 'Anyone',
|
|
4644
|
+
submitterType?: SessionType | 'Anyone',
|
|
4626
4645
|
publicIdentifier?: string,
|
|
4627
4646
|
hasExpiredEvent?: boolean,
|
|
4647
|
+
conditionsByFormId?: Record<string, any>,
|
|
4628
4648
|
}, {}>,
|
|
4629
4649
|
'Form Unsubmitted': AutomationTriggerEventBuilder<"Form Unsubmitted", { formId: string, intervalInMS: number }, {}>,
|
|
4630
4650
|
'Purchase Made': AutomationTriggerEventBuilder<"Purchase Made", { titles?: string[], productIds?: string[], titlePartialMatches?: string[] }, {}>,
|
|
@@ -4667,14 +4687,15 @@ export type AutomationTriggerEvents = {
|
|
|
4667
4687
|
ignoreDelayedReadings?: boolean,
|
|
4668
4688
|
}, {}>,
|
|
4669
4689
|
'SMS Reply': AutomationTriggerEventBuilder<"SMS Reply", { templateIds: string[], replyKeywords?: string[] }, {}>,
|
|
4670
|
-
'Order Status Equals': AutomationTriggerEventBuilder<"Order Status Equals", {
|
|
4671
|
-
source: string,
|
|
4690
|
+
'Order Status Equals': AutomationTriggerEventBuilder<"Order Status Equals", {
|
|
4691
|
+
source: string,
|
|
4672
4692
|
status: string,
|
|
4673
4693
|
fills?: string[],
|
|
4674
4694
|
skus?: string[],
|
|
4675
4695
|
skuPartials?: string[],
|
|
4676
4696
|
titlePartials?: string[],
|
|
4677
4697
|
titlePartialsAnd?: string[],
|
|
4698
|
+
protocols?: string[],
|
|
4678
4699
|
}, { }>,
|
|
4679
4700
|
'Missed Call': AutomationTriggerEventBuilder<"Missed Call", {
|
|
4680
4701
|
phoneNumbers?: string[],
|
|
@@ -5071,6 +5092,7 @@ export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_requir
|
|
|
5071
5092
|
cancellationReason?: string,
|
|
5072
5093
|
medication?: string,
|
|
5073
5094
|
medicationSku?: string,
|
|
5095
|
+
protocol?: string,
|
|
5074
5096
|
}
|
|
5075
5097
|
|
|
5076
5098
|
export interface EnduserProblem_readonly extends ClientRecord {}
|