@zeniai/client-epic-state 4.11.33 → 4.11.35

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.
@@ -114,23 +114,27 @@ const getSelectedProducts = (tenant) => {
114
114
  const isBookkeepingEnabled = (0, tenantSelector_1.isTenantBookkeepingEnabled)(tenant);
115
115
  const isOtherProductsEnabled = (0, tenantSelector_1.isOtherProductsEnabledForTenant)(tenant);
116
116
  const isCardsEnabled = (0, tenantSelector_1.isTenantCardsOnly)(tenant);
117
- if (isBankingOnly) {
117
+ if (isCardsEnabled && isBankingOnly) {
118
+ return ['zeni_cards', 'zeni_checking'];
119
+ }
120
+ else if (isBankingOnly) {
118
121
  return ['zeni_checking'];
119
122
  }
123
+ else if (isCardsEnabled) {
124
+ return ['zeni_cards'];
125
+ }
120
126
  else if (isBookkeepingEnabled) {
121
127
  return [
122
128
  'bookkeeping',
123
129
  'zeni_bill_pay',
124
130
  'zeni_checking',
131
+ 'zeni_bill_pay',
125
132
  'zeni_reimbursements',
126
133
  ];
127
134
  }
128
135
  else if (isOtherProductsEnabled) {
129
136
  return ['other'];
130
137
  }
131
- else if (isCardsEnabled) {
132
- return ['zeni_cards'];
133
- }
134
138
  else {
135
139
  return [];
136
140
  }
@@ -194,7 +194,7 @@ const getSortedOnboardingCustomers = (onboardingCustomers, sortKey, sortOrder, u
194
194
  const allProductsList = [
195
195
  {
196
196
  code: 'bookkeeping',
197
- name: 'Bookkeeping',
197
+ name: 'Zeni Bookkeeping',
198
198
  group: 'bookkeeping',
199
199
  },
200
200
  {
@@ -172,11 +172,13 @@ function isOfficerDetailsCompleted(companyOfficers, companyOfficerRoles, officer
172
172
  exports.isOfficerDetailsCompleted = isOfficerDetailsCompleted;
173
173
  const onboardingStepsData = (isValidConnection, productSettings, accountingConnectionCreationMode) => {
174
174
  const allStepsData = accountingConnectionCreationMode === 'zeni_user' ||
175
- (productSettings.isBankingEnabled && !productSettings.isBookkeepingEnabled)
175
+ ((productSettings.isBankingEnabled || productSettings.isCardsEnabled) &&
176
+ !productSettings.isBookkeepingEnabled)
176
177
  ? onboardingCustomerViewState_1.ALL_ZENI_USER_ONBOARDING_STEPS
177
178
  : onboardingCustomerViewState_1.ALL_ONBOARDING_STEPS;
178
179
  const requiredStepsData = (accountingConnectionCreationMode === 'zeni_user' && isValidConnection) ||
179
- (productSettings.isBankingEnabled && !productSettings.isBookkeepingEnabled)
180
+ ((productSettings.isBankingEnabled || productSettings.isCardsEnabled) &&
181
+ !productSettings.isBookkeepingEnabled)
180
182
  ? onboardingCustomerViewState_1.ZENI_USER_REQUIRED_ONBOARDING_STEPS
181
183
  : onboardingCustomerViewState_1.REQUIRED_ONBOARDING_STEPS;
182
184
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.11.33",
3
+ "version": "4.11.35",
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",