@zeniai/client-epic-state 4.14.97 → 4.14.99
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/externalAPI.d.ts
CHANGED
package/lib/reducer.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ import { CheckDepositState } from './view/spendManagement/zeniAccounts/checkDepo
|
|
|
158
158
|
import { DepositAccountDetailState } from './view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailState';
|
|
159
159
|
import { DepositAccountListState } from './view/spendManagement/zeniAccounts/depositAccountList/depositAccountList';
|
|
160
160
|
import { DepositAccountTransactionListState } from './view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListState';
|
|
161
|
+
import { ExpressPayState } from './view/spendManagement/zeniAccounts/expressPay/expressPayState';
|
|
161
162
|
import { PaymentAccountListState } from './view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountList';
|
|
162
163
|
import { TransferDetailState } from './view/spendManagement/zeniAccounts/transferDetail/transferDetailState';
|
|
163
164
|
import { ZeniAccountListState } from './view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState';
|
|
@@ -189,7 +190,6 @@ import { VendorTabViewState } from './view/vendorTabView/vendorTabViewState';
|
|
|
189
190
|
import { VendorTypeListState } from './view/vendorTypeList/vendorTypeListState';
|
|
190
191
|
import { ZeniAccStatementListState } from './view/zeniAccStatementList/zeniAccStatementList';
|
|
191
192
|
import { ZeniAccountsPromoCardState } from './view/zeniAccountsPromoCard/zeniAccountsPromoCardState';
|
|
192
|
-
import { ExpressPayState } from './view/spendManagement/zeniAccounts/expressPay/expressPayState';
|
|
193
193
|
type EntitiesState = {
|
|
194
194
|
accountGroupState: AccountGroupState;
|
|
195
195
|
accountingSummaryState: AccountingSummaryState;
|
package/lib/reducer.js
CHANGED
|
@@ -199,6 +199,7 @@ const checkDepositReducer_1 = __importStar(require("./view/spendManagement/zeniA
|
|
|
199
199
|
const depositAccountDetailReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailReducer"));
|
|
200
200
|
const depositAccountListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/depositAccountList/depositAccountListReducer"));
|
|
201
201
|
const depositAccountTransactionListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListReducer"));
|
|
202
|
+
const expressPayReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/expressPay/expressPayReducer"));
|
|
202
203
|
const paymentAccountListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer"));
|
|
203
204
|
const transferDetailReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer"));
|
|
204
205
|
const zeniAccountListReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListReducer"));
|
|
@@ -230,7 +231,6 @@ const vendorTabViewReducer_1 = __importStar(require("./view/vendorTabView/vendor
|
|
|
230
231
|
const vendorTypeListReducer_1 = __importStar(require("./view/vendorTypeList/vendorTypeListReducer"));
|
|
231
232
|
const zeniAccStatementListReducer_1 = __importStar(require("./view/zeniAccStatementList/zeniAccStatementListReducer"));
|
|
232
233
|
const zeniAccountsPromoCardReducer_1 = __importStar(require("./view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer"));
|
|
233
|
-
const expressPayReducer_1 = __importStar(require("./view/spendManagement/zeniAccounts/expressPay/expressPayReducer"));
|
|
234
234
|
// Note: Please maintain strict alphabetical order
|
|
235
235
|
const initialEntitiesState = {
|
|
236
236
|
accountGroupState: accountGroupReducer_1.initialState,
|
|
@@ -69,11 +69,12 @@ function getOnboardingCustomerView(state, companyId) {
|
|
|
69
69
|
companyDetailsLocalData.addressStatus = subscriptionBillingAddress;
|
|
70
70
|
}
|
|
71
71
|
const completedSteps = [];
|
|
72
|
-
if ((((_l = (_k = paymentAccount === null || paymentAccount === void 0 ? void 0 : paymentAccount.providerVerificationStatus) === null || _k === void 0 ? void 0 : _k.code) === null || _l === void 0 ? void 0 : _l.includes('verified')) ===
|
|
72
|
+
if (((((_l = (_k = paymentAccount === null || paymentAccount === void 0 ? void 0 : paymentAccount.providerVerificationStatus) === null || _k === void 0 ? void 0 : _k.code) === null || _l === void 0 ? void 0 : _l.includes('verified')) ===
|
|
73
73
|
true &&
|
|
74
74
|
(paymentAccount === null || paymentAccount === void 0 ? void 0 : paymentAccount.isLoginRequired) === false) ||
|
|
75
75
|
((_o = (_m = subscriptionPaymentAccount === null || subscriptionPaymentAccount === void 0 ? void 0 : subscriptionPaymentAccount.providerVerificationStatus) === null || _m === void 0 ? void 0 : _m.code) === null || _o === void 0 ? void 0 : _o.includes('verified')) === true ||
|
|
76
|
-
cardPaymentViewState.cardPaymentsIds.length > 0)
|
|
76
|
+
cardPaymentViewState.cardPaymentsIds.length > 0) &&
|
|
77
|
+
(companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyOnboardingInfo.subscriptionBillingAddressId) != null) {
|
|
77
78
|
completedSteps.push('link_payment_account');
|
|
78
79
|
}
|
|
79
80
|
const isValidConnection = (_q = (_p = externalConnections === null || externalConnections === void 0 ? void 0 : externalConnections.accounting[0]) === null || _p === void 0 ? void 0 : _p.isValid) !== null && _q !== void 0 ? _q : false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.99",
|
|
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",
|