@zeniai/client-epic-state 4.15.2 → 4.15.3
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.
|
@@ -17,6 +17,7 @@ const addressViewPayload_1 = require("../../../../addressView/addressViewPayload
|
|
|
17
17
|
const getCompanyView_1 = require("../../../../companyView/selectorHelpers/getCompanyView");
|
|
18
18
|
const updateBusinessVerificationDetailsEpic_1 = require("../../../../spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic");
|
|
19
19
|
const onboardingCustomerViewReducer_1 = require("../../onboardingCustomerViewReducer");
|
|
20
|
+
const onboardingCustomerViewSelector_1 = require("../../onboardingCustomerViewSelector");
|
|
20
21
|
const updateOnboardingCustomerViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(onboardingCustomerViewReducer_1.updateOnboardingCustomerView.match), (0, operators_1.mergeMap)((action) => {
|
|
21
22
|
var _a, _b, _c, _d;
|
|
22
23
|
const { companyId, officerType, sendForVerification, reCalculateCurrentStep = false, isBillingAddressUpdate, } = action.payload;
|
|
@@ -115,8 +116,10 @@ const updateOnboardingCustomerViewEpic = (actions$, state$, zeniAPI) => actions$
|
|
|
115
116
|
const currentTenant = (0, tenantSelector_1.getCurrentTenant)(state$.value);
|
|
116
117
|
const externalConnections = currentTenant.externalConnections;
|
|
117
118
|
const isQBOConnection = (_b = (_a = externalConnections === null || externalConnections === void 0 ? void 0 : externalConnections.accounting) === null || _a === void 0 ? void 0 : _a.some((connection) => connection.connectionName.match(/quickbooks/i))) !== null && _b !== void 0 ? _b : false;
|
|
119
|
+
const { allSteps } = (0, onboardingCustomerViewSelector_1.getOnboardingCustomerView)(state$.value, companyId);
|
|
118
120
|
if (currentStep === 'link_payment_account') {
|
|
119
|
-
if (isQBOConnection === true
|
|
121
|
+
if (isQBOConnection === true &&
|
|
122
|
+
allSteps.includes('qbo_connection')) {
|
|
120
123
|
actions.push((0, onboardingCustomerViewReducer_1.updateCurrentStep)({ step: 'qbo_connection' }));
|
|
121
124
|
}
|
|
122
125
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.3",
|
|
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",
|