@zeniai/client-epic-state 4.11.24 → 4.11.25
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/view/cardPayment/epic/addCardPaymentSourceEpic.js +1 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +4 -3
- package/lib/view/people/peopleSelector.js +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +1 -1
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +2 -0
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ const userRoleSelector_1 = require("../../../entity/userRole/userRoleSelector");
|
|
|
13
13
|
const fileSelector_1 = require("../../../entity/file/fileSelector");
|
|
14
14
|
function getOnboardingCustomerView(state, companyId) {
|
|
15
15
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
16
|
-
const { fileState, paymentAccountState, onboardingCustomerViewState, userState, userRoleState, companyConfigState, } = state;
|
|
16
|
+
const { fileState, paymentAccountState, onboardingCustomerViewState, userState, userRoleState, companyConfigState, cardPaymentViewState, } = state;
|
|
17
17
|
const { companyDetails, companyOfficerUpdateStatus, primaryContactDetails, paymentAccountDetails, plaidConnectionDetails, updateStatus, saveStatus, currentStep, uiState, fetchState, error, } = onboardingCustomerViewState;
|
|
18
18
|
const { paymentAccountIds } = paymentAccountDetails;
|
|
19
19
|
let paymentAccount;
|
|
@@ -52,9 +52,10 @@ function getOnboardingCustomerView(state, companyId) {
|
|
|
52
52
|
primaryContactDetails,
|
|
53
53
|
});
|
|
54
54
|
const completedSteps = [];
|
|
55
|
-
if (((_j = (_h = paymentAccount === null || paymentAccount === void 0 ? void 0 : paymentAccount.providerVerificationStatus) === null || _h === void 0 ? void 0 : _h.code) === null || _j === void 0 ? void 0 : _j.includes('verified')) ===
|
|
55
|
+
if ((((_j = (_h = paymentAccount === null || paymentAccount === void 0 ? void 0 : paymentAccount.providerVerificationStatus) === null || _h === void 0 ? void 0 : _h.code) === null || _j === void 0 ? void 0 : _j.includes('verified')) ===
|
|
56
56
|
true &&
|
|
57
|
-
(paymentAccount === null || paymentAccount === void 0 ? void 0 : paymentAccount.isLoginRequired) === false)
|
|
57
|
+
(paymentAccount === null || paymentAccount === void 0 ? void 0 : paymentAccount.isLoginRequired) === false) ||
|
|
58
|
+
cardPaymentViewState.cardPaymentsIds.length > 0) {
|
|
58
59
|
completedSteps.push('link_payment_account');
|
|
59
60
|
}
|
|
60
61
|
const isValidConnection = (_l = (_k = externalConnections === null || externalConnections === void 0 ? void 0 : externalConnections.accounting[0]) === null || _k === void 0 ? void 0 : _k.isValid) !== null && _l !== void 0 ? _l : false;
|
|
@@ -142,8 +142,8 @@ const sortPeopleBySortKey = (person, sortKey, userState, classState) => {
|
|
|
142
142
|
default:
|
|
143
143
|
return person.user != null
|
|
144
144
|
? person.user.firstName
|
|
145
|
-
? (_b = person.user) === null || _b === void 0 ? void 0 : _b.firstName.toLowerCase()
|
|
146
|
-
: (_c = person.user) === null || _c === void 0 ? void 0 : _c.email.toLowerCase()
|
|
145
|
+
? (_b = person.user) === null || _b === void 0 ? void 0 : _b.firstName.toLowerCase().trim()
|
|
146
|
+
: (_c = person.user) === null || _c === void 0 ? void 0 : _c.email.toLowerCase().trim()
|
|
147
147
|
: undefined;
|
|
148
148
|
}
|
|
149
149
|
};
|
|
@@ -43,7 +43,7 @@ const getChargeCardListView = (state, includeCreditAccountAndCashbackInfo) => {
|
|
|
43
43
|
var _a, _b, _c, _d, _e;
|
|
44
44
|
switch (sortKey) {
|
|
45
45
|
case 'owner':
|
|
46
|
-
return ((_c = `${(_a = card.cardHolderUser) === null || _a === void 0 ? void 0 : _a.firstName.toLowerCase()} ${(_b = card.cardHolderUser) === null || _b === void 0 ? void 0 : _b.lastName.toLowerCase()}`) !== null && _c !== void 0 ? _c : '');
|
|
46
|
+
return ((_c = `${(_a = card.cardHolderUser) === null || _a === void 0 ? void 0 : _a.firstName.toLowerCase().trim()} ${(_b = card.cardHolderUser) === null || _b === void 0 ? void 0 : _b.lastName.toLowerCase().trim()}`) !== null && _c !== void 0 ? _c : '');
|
|
47
47
|
case 'cardName':
|
|
48
48
|
return card.cardName.toLowerCase();
|
|
49
49
|
case 'department':
|
package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js
CHANGED
|
@@ -28,6 +28,8 @@ const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe
|
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
30
|
requestPayload.is_primary_for_bill_pay = true;
|
|
31
|
+
requestPayload.is_primary_for_onboarding = true;
|
|
32
|
+
requestPayload.is_primary_for_reimbursements = true;
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
return zeniAPI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.25",
|
|
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",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@reduxjs/toolkit": "^1.6.2",
|
|
51
|
-
"@stripe/stripe-js": "4.
|
|
51
|
+
"@stripe/stripe-js": "^4.1.0",
|
|
52
52
|
"cross-fetch": "^3.1.2",
|
|
53
53
|
"date-holidays": "^3.23.8",
|
|
54
54
|
"dayjs": "^1.10.7",
|