@zeniai/client-epic-state 4.10.13 → 4.10.15
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.
|
@@ -117,9 +117,7 @@ const getCompanyIdTenantIdMappingFromTenantsList = (tenants, companies) => {
|
|
|
117
117
|
};
|
|
118
118
|
exports.getCompanyIdTenantIdMappingFromTenantsList = getCompanyIdTenantIdMappingFromTenantsList;
|
|
119
119
|
const canSendMonthEndEmailReport = (companyView, companiesExcludedFromMonthEndReport) => {
|
|
120
|
-
if (companyView.company.company.
|
|
121
|
-
companyView.company.company.parentSubsidiaryInfo.subsidiaryInfo != null ||
|
|
122
|
-
companiesExcludedFromMonthEndReport.indexOf(companyView.company.company.companyInfo.companyId) > -1) {
|
|
120
|
+
if (companiesExcludedFromMonthEndReport.indexOf(companyView.company.company.companyInfo.companyId) > -1) {
|
|
123
121
|
return false;
|
|
124
122
|
}
|
|
125
123
|
const bookCloseDate = companyView.company.company.companyInfo.bookCloseDate;
|
|
@@ -7,7 +7,7 @@ export declare const isBankConnectionsTabVisible: (currentTenant: CurrentTenant
|
|
|
7
7
|
export declare const isBusinessVerificationTabVisible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
|
|
8
8
|
export declare const isCompanyDetailsTabVisible: (userRole: UserRoleType[], currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
|
|
9
9
|
export declare const isIntegrationsTabVisible: (userRole: UserRoleType[], currentTenant: CurrentTenant | undefined) => boolean;
|
|
10
|
-
export declare const isSettingsVisible: (currentTenant: CurrentTenant) => boolean;
|
|
10
|
+
export declare const isSettingsVisible: (currentTenant: CurrentTenant | undefined) => boolean;
|
|
11
11
|
export declare const isMyBankConnectionsTabVisible: (currentTenant: CurrentTenant | undefined, userRoleMap?: RoleMap | undefined) => boolean;
|
|
12
12
|
export declare const isRemindersSectionVisibleOnSettingsPage: (reminderNotificationSettings: ReminderNotificationSettingsData) => boolean;
|
|
13
13
|
export declare const isMonthEndNotificationsSectionVisibleOnSettingsPage: (monthEndInsightsNotificationSettings: MonthEndInsightsNotificationSettingsData, signedInUseEmail: string) => boolean;
|
|
@@ -96,6 +96,9 @@ const isIntegrationsTabVisible = (userRole, currentTenant) => {
|
|
|
96
96
|
exports.isIntegrationsTabVisible = isIntegrationsTabVisible;
|
|
97
97
|
const isSettingsVisible = (currentTenant) => {
|
|
98
98
|
var _a, _b;
|
|
99
|
+
if (currentTenant == null) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
99
102
|
return ((_b = (_a = currentTenant.company) === null || _a === void 0 ? void 0 : _a.companyOnboardingInfo.isOnboardingCompleted) !== null && _b !== void 0 ? _b : false);
|
|
100
103
|
};
|
|
101
104
|
exports.isSettingsVisible = isSettingsVisible;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.15",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|