@zeniai/client-epic-state 4.19.17-betaRR0 → 4.19.17
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/entity/tenant/tenantSelector.d.ts +1 -1
- package/lib/entity/tenant/tenantSelector.js +4 -6
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
- package/lib/view/onboardingView/cockpitView/epic/initializeOnboardingCustomerViewUpdateDataEpic.js +4 -4
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.d.ts +1 -2
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewReducer.js +2 -2
- package/lib/view/settingsView/settingsViewHelpers.d.ts +4 -4
- package/lib/view/settingsView/settingsViewHelpers.js +8 -9
- package/package.json +1 -1
|
@@ -83,7 +83,7 @@ export declare const isZeniDomainTenant: (currentTenant: TenantView) => boolean;
|
|
|
83
83
|
export declare const isTenantUsingZeniCOA: (currentTenant: TenantView) => boolean;
|
|
84
84
|
export declare const getCurrentTenantExternalConnections: (tenantState: TenantState, companyState: CompanyState) => TenantExternalConnections | undefined;
|
|
85
85
|
export declare const toTenantCoreDetailsView: (tenantsBaseView: TenantBaseView[]) => TenantCoreDetailsView[];
|
|
86
|
-
export declare const isTenantBankingOnly: (
|
|
86
|
+
export declare const isTenantBankingOnly: (tenant: Tenant | undefined) => boolean;
|
|
87
87
|
export declare const isTenantCardsOnly: (tenant: Tenant | undefined) => boolean;
|
|
88
88
|
export declare const isTenantBookkeepingEnabled: (tenant: Tenant | undefined) => boolean;
|
|
89
89
|
export declare const isOtherProductsEnabledForTenant: (tenant: Tenant | undefined) => boolean;
|
|
@@ -259,14 +259,12 @@ const toTenantCoreDetailsView = (tenantsBaseView) => {
|
|
|
259
259
|
});
|
|
260
260
|
};
|
|
261
261
|
exports.toTenantCoreDetailsView = toTenantCoreDetailsView;
|
|
262
|
-
const isTenantBankingOnly = (
|
|
262
|
+
const isTenantBankingOnly = (tenant) => {
|
|
263
263
|
// if the tenants API takes time, tenant can be non null with productSettings as null
|
|
264
264
|
return tenant != null && tenant.productSettings != null
|
|
265
|
-
?
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
tenant.productSettings.isBookkeepingEnabled === false &&
|
|
269
|
-
tenant.productSettings.isSpendManagementEnabled === false
|
|
265
|
+
? tenant.productSettings.isBankingEnabled === true &&
|
|
266
|
+
tenant.productSettings.isBookkeepingEnabled === false &&
|
|
267
|
+
tenant.productSettings.isSpendManagementEnabled === false
|
|
270
268
|
: false;
|
|
271
269
|
};
|
|
272
270
|
exports.isTenantBankingOnly = isTenantBankingOnly;
|