@zeniai/client-epic-state 4.15.84 → 4.15.85
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/commonStateTypes/animations.d.ts +1 -1
- package/lib/commonStateTypes/animations.js +1 -1
- package/lib/entity/chargeCard/chargeCard.d.ts +26 -8
- package/lib/entity/chargeCard/chargeCard.js +25 -6
- package/lib/entity/chargeCard/chargeCardPayload.d.ts +41 -5
- package/lib/entity/chargeCard/chargeCardPayload.js +20 -8
- package/lib/entity/company/companyPayload.d.ts +12 -1
- package/lib/entity/company/companyPayload.js +14 -0
- package/lib/entity/company/companyStateTypes.d.ts +11 -0
- package/lib/entity/connectedAccount/connectedAccount.d.ts +19 -0
- package/lib/entity/connectedAccount/connectedAccount.js +10 -0
- package/lib/entity/connectedAccount/connectedAccountPayload.d.ts +11 -0
- package/lib/entity/connectedAccount/connectedAccountPayload.js +15 -0
- package/lib/entity/connectedAccount/connectedAccountReducer.d.ts +6 -0
- package/lib/entity/connectedAccount/connectedAccountReducer.js +27 -0
- package/lib/entity/connectedAccount/connectedAccountSelector.d.ts +4 -0
- package/lib/entity/connectedAccount/connectedAccountSelector.js +17 -0
- package/lib/entity/depositAccount/depositAccount.d.ts +20 -2
- package/lib/entity/depositAccount/depositAccountPayload.d.ts +22 -1
- package/lib/entity/depositAccount/depositAccountPayload.js +39 -1
- package/lib/entity/depositAccount/depositAccountReducer.d.ts +2 -2
- package/lib/entity/depositAccount/depositAccountReducer.js +8 -2
- package/lib/entity/depositAccount/depositAccountSelector.d.ts +3 -1
- package/lib/entity/depositAccount/depositAccountSelector.js +10 -0
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +2 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
- package/lib/entity/tenant/clearAllEpic.js +2 -0
- package/lib/entity/tenant/tenantSelector.d.ts +5 -1
- package/lib/entity/tenant/tenantSelector.js +6 -0
- package/lib/epic.d.ts +5 -1
- package/lib/epic.js +5 -1
- package/lib/index.d.ts +11 -11
- package/lib/index.js +21 -13
- package/lib/reducer.d.ts +3 -0
- package/lib/reducer.js +3 -0
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +8 -0
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +16 -0
- package/lib/view/addressView/addressViewState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +1 -1
- package/lib/view/spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingSelector.js +4 -3
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +5 -3
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.js +4 -2
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigReducer.js +8 -3
- package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigState.d.ts +4 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +12 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.js +26 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +2 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +43 -4
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.js +104 -9
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.d.ts +15 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailSelector.js +70 -16
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardDetailEpic.js +12 -3
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchChargeCardTransactionListEpic.js +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchDepositAccountLimitEpic.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/fetchDepositAccountLimitEpic.js +41 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateChargeCardLimitEpic.js +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateDebitCardPinAttemptEpic.d.ts +11 -0
- package/lib/view/spendManagement/chargeCards/chargeCardDetail/updateDebitCardPinAttemptEpic.js +42 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +11 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +20 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +16 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +5 -3
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +30 -4
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +5 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +24 -13
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +16 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchDebitCardSummaryEpic.d.ts +7 -0
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchDebitCardSummaryEpic.js +23 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewReducer.js +4 -2
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewSelector.js +2 -0
- package/lib/view/spendManagement/chargeCards/chargeCardSetUp/epic/acceptChargeCardTermsEpic.js +19 -2
- package/lib/view/spendManagement/chargeCards/issueChargeCard/depositAccountWithLimitPayload.d.ts +6 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/depositAccountWithLimitPayload.js +2 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchDepositAccountListForCardsEpic.d.ts +8 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchDepositAccountListForCardsEpic.js +31 -0
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/issueChargeCard/fetchIssueCardPageEpic.js +15 -3
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardEpic.js +65 -25
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.d.ts +11 -3
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer.js +45 -11
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.d.ts +6 -3
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardSelector.js +33 -18
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.d.ts +41 -8
- package/lib/view/spendManagement/chargeCards/issueChargeCard/issueChargeCardState.js +0 -21
- package/lib/view/spendManagement/commonSetup/epic/setup/enableSetupEpic.js +9 -0
- package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +8 -3
- package/lib/view/spendManagement/commonSetup/setupViewReducer.d.ts +4 -4
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -1
- package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +3 -1
- package/lib/view/spendManagement/commonSetup/setupViewState.js +13 -1
- package/lib/view/spendManagement/helpers.d.ts +3 -0
- package/lib/view/spendManagement/helpers.js +13 -1
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/getPaymentAccountsEpic.js +2 -1
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountEpic.js +2 -1
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountLoginStatusEpic.js +2 -1
- package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountStatusEpic.js +2 -1
- package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js +2 -1
- package/lib/view/spendManagement/plaidAccount/plaidAccountViewReducer.d.ts +10 -10
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositSelector.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/depositAccountListSelector.d.ts +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/depositAccountListSelector.js +3 -3
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailSelector.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +1 -1
- package/lib/view/twoFactorAuthentication/resendOtpEpic.d.ts +3 -2
- package/lib/view/twoFactorAuthentication/resendOtpEpic.js +44 -19
- package/lib/view/twoFactorAuthentication/sendOtpEpic.d.ts +2 -1
- package/lib/view/twoFactorAuthentication/sendOtpEpic.js +45 -18
- package/lib/view/twoFactorAuthentication/twoFactorAuthentication.d.ts +17 -5
- package/lib/view/twoFactorAuthentication/twoFactorAuthentication.js +33 -0
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +7 -7
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.js +6 -6
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.d.ts +22 -6
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationReducer.js +176 -60
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationSelector.d.ts +5 -3
- package/lib/view/twoFactorAuthentication/twoFactorAuthenticationSelector.js +13 -2
- package/lib/view/twoFactorAuthentication/verifyOtpEpic.d.ts +5 -2
- package/lib/view/twoFactorAuthentication/verifyOtpEpic.js +46 -5
- package/lib/view/userListView/fetchUserListByTypeEpic.d.ts +2 -2
- package/lib/view/userListView/fetchUserListByTypeEpic.js +4 -3
- package/lib/view/userListView/userListViewPayload.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,23 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initialIssueChargeCardLocalData = void 0;
|
|
4
|
-
exports.initialIssueChargeCardLocalData = [
|
|
5
|
-
{
|
|
6
|
-
lineId: '1',
|
|
7
|
-
cardType: 'business_virtual_credit_card',
|
|
8
|
-
physicalCard: {
|
|
9
|
-
userId: undefined,
|
|
10
|
-
cardName: '',
|
|
11
|
-
frequency: 'monthly',
|
|
12
|
-
addressType: undefined,
|
|
13
|
-
addressId: undefined,
|
|
14
|
-
amount: undefined,
|
|
15
|
-
},
|
|
16
|
-
virtualCard: {
|
|
17
|
-
userIds: [],
|
|
18
|
-
cardName: '',
|
|
19
|
-
frequency: 'monthly',
|
|
20
|
-
amount: undefined,
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
];
|
|
@@ -18,6 +18,15 @@ const enableSetupEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operat
|
|
|
18
18
|
case 'charge_cards':
|
|
19
19
|
payload = { is_charge_cards_enabled: true };
|
|
20
20
|
break;
|
|
21
|
+
case 'debit_cards':
|
|
22
|
+
payload = { is_debit_cards_enabled: true };
|
|
23
|
+
break;
|
|
24
|
+
case 'charge_cards__debit_cards':
|
|
25
|
+
payload = {
|
|
26
|
+
is_charge_cards_enabled: true,
|
|
27
|
+
is_debit_cards_enabled: true,
|
|
28
|
+
};
|
|
29
|
+
break;
|
|
21
30
|
case 'zeni_accounts':
|
|
22
31
|
payload = { is_deposit_accounts_enabled: true };
|
|
23
32
|
break;
|
package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js
CHANGED
|
@@ -19,6 +19,7 @@ const responsePayload_1 = require("../../../../../responsePayload");
|
|
|
19
19
|
const addressViewPayload_1 = require("../../../../addressView/addressViewPayload");
|
|
20
20
|
const addressViewSelector_1 = require("../../../../addressView/addressViewSelector");
|
|
21
21
|
const getCompanyView_1 = require("../../../../companyView/selectorHelpers/getCompanyView");
|
|
22
|
+
const helpers_1 = require("../../../helpers");
|
|
22
23
|
const setupViewReducer_1 = require("../../setupViewReducer");
|
|
23
24
|
const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(setupViewReducer_1.updateBusinessVerificationDetails.match), (0, operators_1.mergeMap)((action) => {
|
|
24
25
|
var _a, _b, _c, _d;
|
|
@@ -48,7 +49,7 @@ const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => act
|
|
|
48
49
|
Boolean(companyOfficerLocalData.email) === true // Don't save Empty Company Officer details
|
|
49
50
|
? (0, exports.toBusinessVerificationOfficerDataPayload)(companyOfficerLocalData, isSubmittingAdditionalDocuments, companyOfficerAddressToCreate)
|
|
50
51
|
: {};
|
|
51
|
-
const business_verification_submitted_for_feature =
|
|
52
|
+
const business_verification_submitted_for_feature = getBusinessVerificationForFeature(setupViewType);
|
|
52
53
|
let payload = {
|
|
53
54
|
company,
|
|
54
55
|
company_officer,
|
|
@@ -71,7 +72,7 @@ const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => act
|
|
|
71
72
|
}),
|
|
72
73
|
(0, addressReducer_1.updateAddresses)(response.data.addresses),
|
|
73
74
|
(0, fileReducer_1.updateFiles)({ files: response.data.files }),
|
|
74
|
-
(0, accountReducer_1.updateAccounts)(response.data.accounts, setupViewType),
|
|
75
|
+
(0, accountReducer_1.updateAccounts)(response.data.accounts, (0, helpers_1.getReportIDPlusForecastIDFromSetupViewType)(setupViewType)),
|
|
75
76
|
(0, paymentAccountReducer_1.updatePaymentAccounts)(response.data.payment_accounts),
|
|
76
77
|
(0, setupViewReducer_1.updateSetupViewLocalStoreData)({
|
|
77
78
|
companyId: response.data.companies[0].company_id,
|
|
@@ -238,10 +239,14 @@ const toBusinessVerificationOfficerDataPayload = (companyOfficer, isSubmittingAd
|
|
|
238
239
|
return company_officer;
|
|
239
240
|
};
|
|
240
241
|
exports.toBusinessVerificationOfficerDataPayload = toBusinessVerificationOfficerDataPayload;
|
|
241
|
-
const
|
|
242
|
+
const getBusinessVerificationForFeature = (setupViewType) => {
|
|
242
243
|
switch (setupViewType) {
|
|
243
244
|
case 'charge_cards':
|
|
244
245
|
return 'charge_cards';
|
|
246
|
+
case 'debit_cards':
|
|
247
|
+
return 'debit_cards';
|
|
248
|
+
case 'charge_cards__debit_cards':
|
|
249
|
+
return 'charge_cards__debit_cards';
|
|
245
250
|
case 'reimbursement':
|
|
246
251
|
return 'reimbursements';
|
|
247
252
|
case 'zeni_accounts':
|
|
@@ -4,13 +4,13 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
4
4
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
5
5
|
import { SetupViewLocalData, SetupViewState } from './setupViewState';
|
|
6
6
|
export declare const initialState: SetupViewState;
|
|
7
|
-
export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing"], {
|
|
7
|
+
export declare const enableSetup: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards"], {
|
|
8
8
|
companyId: string;
|
|
9
|
-
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
10
|
-
}, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10", setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", sendForVerification?: any, fromBillListScreen?: any, isSubmittingAdditionalDocuments?: any], {
|
|
9
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
|
|
10
|
+
}, "setupView/enableSetup", never, never>, enableSetupSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"setupView/enableSetupSuccess">, enableSetupFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, "setupView/enableSetupFailure", never, never>, updateBusinessVerificationDetails: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10", setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards", sendForVerification?: any, fromBillListScreen?: any, isSubmittingAdditionalDocuments?: any], {
|
|
11
11
|
companyId: string;
|
|
12
12
|
officerType: "Officer_1" | "Officer_3" | "Officer_2" | "Officer_4" | "Officer_5" | "Officer_6" | "Officer_7" | "Officer_8" | "Officer_9" | "Officer_10";
|
|
13
|
-
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
13
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
|
|
14
14
|
sendForVerification: any;
|
|
15
15
|
fromBillListScreen: any;
|
|
16
16
|
isSubmittingAdditionalDocuments: any;
|
|
@@ -10,6 +10,7 @@ const fileSelector_1 = require("../../../entity/file/fileSelector");
|
|
|
10
10
|
const paymentAccountSelector_1 = require("../../../entity/paymentAccount/paymentAccountSelector");
|
|
11
11
|
const getCompanyView_1 = require("../../companyView/selectorHelpers/getCompanyView");
|
|
12
12
|
const fileViewSelector_1 = require("../../fileView/fileViewSelector");
|
|
13
|
+
const helpers_1 = require("../helpers");
|
|
13
14
|
const plaidAccountViewSelector_1 = require("../plaidAccount/plaidAccountViewSelector");
|
|
14
15
|
function getCommonSetupViewDetails(state, companyId, setupViewType, plaidAccountKeyType) {
|
|
15
16
|
var _a, _b, _c, _d;
|
|
@@ -19,7 +20,7 @@ function getCommonSetupViewDetails(state, companyId, setupViewType, plaidAccount
|
|
|
19
20
|
const { allBankAccountIds } = accountDetails;
|
|
20
21
|
const { paymentAccountIds, paymentAccountBalanceFetchStatus } = paymentAccountListState;
|
|
21
22
|
const { accountIds: depositAccountIds } = depositAccountListState;
|
|
22
|
-
const allBankAccounts = (_a = allBankAccountIds === null || allBankAccountIds === void 0 ? void 0 : allBankAccountIds.map((accountId) => (0, accountSelector_1.getAccountBase)(accountState, accountId, setupViewType)).filter((account) => account != null)) !== null && _a !== void 0 ? _a : [];
|
|
23
|
+
const allBankAccounts = (_a = allBankAccountIds === null || allBankAccountIds === void 0 ? void 0 : allBankAccountIds.map((accountId) => (0, accountSelector_1.getAccountBase)(accountState, accountId, (0, helpers_1.getReportIDPlusForecastIDFromSetupViewType)(setupViewType))).filter((account) => account != null)) !== null && _a !== void 0 ? _a : [];
|
|
23
24
|
const paymentAccounts = (_b = (0, paymentAccountSelector_1.getPaymentAccountsByPaymentAccountIds)(paymentAccountState, paymentAccountIds).filter((account) => account != null)) !== null && _b !== void 0 ? _b : [];
|
|
24
25
|
const depositAccounts = (_c = (0, depositAccountSelector_1.getDepositAccountsByDepositAccountIds)(depositAccountState, depositAccountIds).filter((account) => account != null)) !== null && _c !== void 0 ? _c : [];
|
|
25
26
|
const allFundingAccounts = (0, exports.getAllFundingAccounts)(setupViewType === 'zeni_accounts' ? [] : depositAccounts, // only external acct can be made primary for accounts setup
|
|
@@ -4,8 +4,10 @@ import { AllowedDocumentType } from '../../../entity/file/fileState';
|
|
|
4
4
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
5
5
|
import ZeniUrl from '../../../zeniUrl';
|
|
6
6
|
import { CompanyOfficerType } from '../../companyView/types/companyPassport/companyUsersLocalData';
|
|
7
|
-
declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
7
|
+
declare const toSetupViewType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
|
|
8
8
|
export type SetupViewType = ReturnType<typeof toSetupViewType>;
|
|
9
|
+
export declare const toChargeCardSetupViewType: (v: string) => "charge_cards" | "debit_cards" | "charge_cards__debit_cards";
|
|
10
|
+
export type ChargeCardSetupViewType = ReturnType<typeof toChargeCardSetupViewType>;
|
|
9
11
|
/**
|
|
10
12
|
* Setup View Local Data - Interfaces
|
|
11
13
|
*/
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toChargeCardSetupViewType = void 0;
|
|
3
4
|
const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
|
|
4
5
|
const entityApprovalStatusState_1 = require("../../../entity/entityApprovalStatus/entityApprovalStatusState");
|
|
5
6
|
const SETUP_VIEW_TYPES = ['billing'];
|
|
6
7
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
|
-
const toSetupViewType = (v) => (0, stringToUnion_1.stringToUnion)(v, [
|
|
8
|
+
const toSetupViewType = (v) => (0, stringToUnion_1.stringToUnion)(v, [
|
|
9
|
+
...entityApprovalStatusState_1.ALL_ENTITY_TYPES,
|
|
10
|
+
...SETUP_VIEW_TYPES,
|
|
11
|
+
...CHARGE_CARD_SETUP_VIEW_TYPES,
|
|
12
|
+
]);
|
|
13
|
+
const CHARGE_CARD_SETUP_VIEW_TYPES = [
|
|
14
|
+
'charge_cards',
|
|
15
|
+
'debit_cards',
|
|
16
|
+
'charge_cards__debit_cards',
|
|
17
|
+
];
|
|
18
|
+
const toChargeCardSetupViewType = (v) => (0, stringToUnion_1.stringToUnion)(v, CHARGE_CARD_SETUP_VIEW_TYPES);
|
|
19
|
+
exports.toChargeCardSetupViewType = toChargeCardSetupViewType;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Amount } from '../../commonStateTypes/amount';
|
|
2
|
+
import { ReportIDPlusForecastID } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
3
|
import { BillPayInfo, BulkProcessingStateType } from '../../entity/billPay/billTransaction/billTransactionState';
|
|
3
4
|
import { RecurringBillConfig } from '../../entity/billPay/recurringBills/recurringBillsState';
|
|
4
5
|
import { ReimbursementTypeCode } from '../../entity/reimbursement/reimbursementState';
|
|
@@ -10,6 +11,7 @@ import { BillTransactionView } from './billPay/billList/billListSelector';
|
|
|
10
11
|
import { AccType, AccountTypeSubConfigCodeKeyType } from './billPay/billPayConfig/billPayConfigState';
|
|
11
12
|
import { RecurringBillConfigLocalData, RecurringBillInstance } from './billPay/editBillView/editBillViewState';
|
|
12
13
|
import { BusinessVerificationDetails, CompanyOfficersDetails } from './commonSetup/setupViewSelector';
|
|
14
|
+
import { SetupViewType } from './commonSetup/setupViewState';
|
|
13
15
|
import { RemiActivity } from './reimbursement/remiDetailView/remiDetailViewSelector';
|
|
14
16
|
export declare const getLatestApprovalDate: (allActivities: BillActivity[] | RemiActivity[]) => ZeniDate | undefined;
|
|
15
17
|
export declare function getSpendManagementEffectiveListPeriod(): import("../..").TimePeriod;
|
|
@@ -38,4 +40,5 @@ export interface ZeniAccountsPromoConfig {
|
|
|
38
40
|
export declare const toAccountsPromoConfig: (dynamicConfigValue: Record<string, unknown>) => ZeniAccountsPromoConfig;
|
|
39
41
|
export declare const isPaymentMethodOutsideZeni: (code?: string) => boolean;
|
|
40
42
|
export declare const isAwaitingMarkAsPaid: (code?: string) => boolean;
|
|
43
|
+
export declare const getReportIDPlusForecastIDFromSetupViewType: (setupViewType: SetupViewType) => ReportIDPlusForecastID;
|
|
41
44
|
export declare const checkIfLowBalance: (totalAmount: Amount, bankBalance: Amount) => boolean;
|
|
@@ -3,13 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.checkIfLowBalance = exports.isAwaitingMarkAsPaid = exports.isPaymentMethodOutsideZeni = exports.toAccountsPromoConfig = exports.getBulkOperationSuffix = exports.getRemiListUniqueType = exports.getBillListUniqueType = exports.isBulkProcessing = exports.getActualPaymentDate = exports.accountTypeSubConfigCodeToAccType = exports.isRecurringConfigChanged = exports.updateRecurringBillDetails = exports.getPaymentDateFromVendorReceiveDate = exports.getSelectedCompanyOfficer = exports.getLatestApprovalDate = void 0;
|
|
6
|
+
exports.checkIfLowBalance = exports.getReportIDPlusForecastIDFromSetupViewType = exports.isAwaitingMarkAsPaid = exports.isPaymentMethodOutsideZeni = exports.toAccountsPromoConfig = exports.getBulkOperationSuffix = exports.getRemiListUniqueType = exports.getBillListUniqueType = exports.isBulkProcessing = exports.getActualPaymentDate = exports.accountTypeSubConfigCodeToAccType = exports.isRecurringConfigChanged = exports.updateRecurringBillDetails = exports.getPaymentDateFromVendorReceiveDate = exports.getSelectedCompanyOfficer = exports.getLatestApprovalDate = void 0;
|
|
7
7
|
exports.getSpendManagementEffectiveListPeriod = getSpendManagementEffectiveListPeriod;
|
|
8
8
|
exports.showReimbursementPromoPage = showReimbursementPromoPage;
|
|
9
9
|
exports.showBillPayPromoPage = showBillPayPromoPage;
|
|
10
10
|
exports.isVerifiedStatusCode = isVerifiedStatusCode;
|
|
11
11
|
const uniq_1 = __importDefault(require("lodash/uniq"));
|
|
12
12
|
const timeframeTick_1 = require("../../commonStateTypes/timeframeTick");
|
|
13
|
+
const viewAndReport_1 = require("../../commonStateTypes/viewAndReport/viewAndReport");
|
|
13
14
|
const workingDayHelper_1 = require("../../commonStateTypes/workingDayHelper");
|
|
14
15
|
const userRoleType_1 = require("../../entity/userRole/userRoleType");
|
|
15
16
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
@@ -339,6 +340,17 @@ const isAwaitingMarkAsPaid = (code) => {
|
|
|
339
340
|
return code != null ? code === 'awaiting_to_be_marked_as_paid' : false;
|
|
340
341
|
};
|
|
341
342
|
exports.isAwaitingMarkAsPaid = isAwaitingMarkAsPaid;
|
|
343
|
+
const getReportIDPlusForecastIDFromSetupViewType = (setupViewType) => {
|
|
344
|
+
if (setupViewType === 'charge_cards__debit_cards' ||
|
|
345
|
+
setupViewType === 'charge_cards' ||
|
|
346
|
+
setupViewType === 'debit_cards') {
|
|
347
|
+
return 'charge_cards';
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
return (0, viewAndReport_1.toReportID)(setupViewType);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
exports.getReportIDPlusForecastIDFromSetupViewType = getReportIDPlusForecastIDFromSetupViewType;
|
|
342
354
|
const checkIfLowBalance = (totalAmount, bankBalance) => {
|
|
343
355
|
let isLowBalance = false;
|
|
344
356
|
if (totalAmount.currencyCode === bankBalance.currencyCode) {
|
package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/getPaymentAccountsEpic.js
CHANGED
|
@@ -6,6 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const accountReducer_1 = require("../../../../../entity/account/accountReducer");
|
|
7
7
|
const paymentAccountReducer_1 = require("../../../../../entity/paymentAccount/paymentAccountReducer");
|
|
8
8
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
9
|
+
const helpers_1 = require("../../../helpers");
|
|
9
10
|
const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
|
|
10
11
|
const getPaymentAccountsEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.getPaymentAccounts.match), (0, operators_1.switchMap)((action) => {
|
|
11
12
|
const { setupViewType, includeBalances, plaidAccountKeyType } = action.payload;
|
|
@@ -26,7 +27,7 @@ const getPaymentAccountsEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0,
|
|
|
26
27
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
27
28
|
const paymentAccountIds = response.data.payment_accounts.map((paymentAccount) => paymentAccount.payment_account_id);
|
|
28
29
|
const actions = [
|
|
29
|
-
(0, accountReducer_1.updateAccounts)(response.data.accounts, setupViewType),
|
|
30
|
+
(0, accountReducer_1.updateAccounts)(response.data.accounts, (0, helpers_1.getReportIDPlusForecastIDFromSetupViewType)(setupViewType)),
|
|
30
31
|
(0, paymentAccountReducer_1.updatePaymentAccounts)(response.data.payment_accounts),
|
|
31
32
|
(0, plaidAccountViewReducer_1.getPaymentAccountsSuccess)(paymentAccountIds, plaidAccountKeyType),
|
|
32
33
|
];
|
package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountEpic.js
CHANGED
|
@@ -6,6 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const accountReducer_1 = require("../../../../../entity/account/accountReducer");
|
|
7
7
|
const paymentAccountReducer_1 = require("../../../../../entity/paymentAccount/paymentAccountReducer");
|
|
8
8
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
9
|
+
const helpers_1 = require("../../../helpers");
|
|
9
10
|
const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
|
|
10
11
|
const updatePaymentAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.updatePaymentAccount.match), (0, operators_1.mergeMap)((action) => {
|
|
11
12
|
const { accountId, paymentAccountId, setupViewType, plaidAccountKeyType } = action.payload;
|
|
@@ -16,7 +17,7 @@ const updatePaymentAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe((
|
|
|
16
17
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
17
18
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
18
19
|
const actions = [
|
|
19
|
-
(0, accountReducer_1.updateAccounts)(response.data.accounts, setupViewType),
|
|
20
|
+
(0, accountReducer_1.updateAccounts)(response.data.accounts, (0, helpers_1.getReportIDPlusForecastIDFromSetupViewType)(setupViewType)),
|
|
20
21
|
(0, paymentAccountReducer_1.updatePaymentAccounts)(response.data.payment_accounts),
|
|
21
22
|
(0, plaidAccountViewReducer_1.updatePaymentAccountSuccess)(plaidAccountKeyType),
|
|
22
23
|
];
|
|
@@ -7,6 +7,7 @@ const accountReducer_1 = require("../../../../../entity/account/accountReducer")
|
|
|
7
7
|
const paymentAccountReducer_1 = require("../../../../../entity/paymentAccount/paymentAccountReducer");
|
|
8
8
|
const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
|
|
9
9
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
10
|
+
const helpers_1 = require("../../../helpers");
|
|
10
11
|
const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
|
|
11
12
|
const updatePaymentAccountLoginStatusEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.updatePaymentAccountLoginStatus.match), (0, operators_1.mergeMap)((action) => {
|
|
12
13
|
const { isLoginRequired, paymentAccountId, setupViewType, linkTokenType, plaidAccountKeyType, } = action.payload;
|
|
@@ -18,7 +19,7 @@ const updatePaymentAccountLoginStatusEpic = (actions$, _state$, zeniAPI) => acti
|
|
|
18
19
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
19
20
|
const paymentAccountIds = response.data.payment_accounts.map((paymentAccount) => paymentAccount.payment_account_id);
|
|
20
21
|
const actions = [
|
|
21
|
-
(0, accountReducer_1.updateAccounts)(response.data.accounts, setupViewType),
|
|
22
|
+
(0, accountReducer_1.updateAccounts)(response.data.accounts, (0, helpers_1.getReportIDPlusForecastIDFromSetupViewType)(setupViewType)),
|
|
22
23
|
(0, paymentAccountReducer_1.updatePaymentAccounts)(response.data.payment_accounts),
|
|
23
24
|
(0, plaidAccountViewReducer_1.updatePaymentAccountLoginStatusSuccess)(paymentAccountIds, linkTokenType, plaidAccountKeyType),
|
|
24
25
|
];
|
package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updatePaymentAccountStatusEpic.js
CHANGED
|
@@ -7,6 +7,7 @@ const accountReducer_1 = require("../../../../../entity/account/accountReducer")
|
|
|
7
7
|
const paymentAccountReducer_1 = require("../../../../../entity/paymentAccount/paymentAccountReducer");
|
|
8
8
|
const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
|
|
9
9
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
10
|
+
const helpers_1 = require("../../../helpers");
|
|
10
11
|
const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
|
|
11
12
|
const updatePaymentAccountStatusEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.updatePaymentAccountStatus.match), (0, operators_1.mergeMap)((action) => {
|
|
12
13
|
const { verificationStatusCode, paymentAccountId, setupViewType, linkTokenType, plaidAccountKeyType, } = action.payload;
|
|
@@ -17,7 +18,7 @@ const updatePaymentAccountStatusEpic = (actions$, _state$, zeniAPI) => actions$.
|
|
|
17
18
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
18
19
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
19
20
|
const actions = [
|
|
20
|
-
(0, accountReducer_1.updateAccounts)(response.data.accounts, setupViewType),
|
|
21
|
+
(0, accountReducer_1.updateAccounts)(response.data.accounts, (0, helpers_1.getReportIDPlusForecastIDFromSetupViewType)(setupViewType)),
|
|
21
22
|
(0, paymentAccountReducer_1.updatePaymentAccounts)(response.data.payment_accounts),
|
|
22
23
|
(0, plaidAccountViewReducer_1.updatePaymentAccountStatusSuccess)(linkTokenType, plaidAccountKeyType),
|
|
23
24
|
];
|
package/lib/view/spendManagement/plaidAccount/epic/plaidConnection/establishPlaidConnectionEpic.js
CHANGED
|
@@ -10,6 +10,7 @@ const paymentAccountReducer_1 = require("../../../../../entity/paymentAccount/pa
|
|
|
10
10
|
const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
|
|
11
11
|
const responsePayload_1 = require("../../../../../responsePayload");
|
|
12
12
|
const userFinancialAccountReducer_1 = require("../../../../userFinancialAccount/userFinancialAccountReducer");
|
|
13
|
+
const helpers_1 = require("../../../helpers");
|
|
13
14
|
const paymentAccountListReducer_1 = require("../../../zeniAccounts/paymentAccountList/paymentAccountListReducer");
|
|
14
15
|
const plaidAccountViewReducer_1 = require("../../plaidAccountViewReducer");
|
|
15
16
|
const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.establishPlaidConnection.match), (0, operators_1.mergeMap)((action) => {
|
|
@@ -109,7 +110,7 @@ const establishPlaidConnectionEpic = (actions$, state, zeniAPI) => actions$.pipe
|
|
|
109
110
|
actions.push((0, bankAccountReducer_1.updateBankAccounts)(response.data.bank_accounts), (0, userFinancialAccountReducer_1.updateUserBankAccount)({ bankAccountIds, userId }));
|
|
110
111
|
}
|
|
111
112
|
if (setupViewType != null) {
|
|
112
|
-
actions.push((0, accountReducer_1.updateAccounts)(response.data.accounts, setupViewType));
|
|
113
|
+
actions.push((0, accountReducer_1.updateAccounts)(response.data.accounts, (0, helpers_1.getReportIDPlusForecastIDFromSetupViewType)(setupViewType)));
|
|
113
114
|
}
|
|
114
115
|
//show notification in case user account is added
|
|
115
116
|
else {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
2
2
|
import { PlaidAccountKeyType, PlaidAccountViewState, PlaidLinkTokenType } from './plaidAccountViewState';
|
|
3
3
|
export declare const initialState: PlaidAccountViewState;
|
|
4
|
-
export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, includeBalances?: boolean | undefined], {
|
|
5
|
-
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
4
|
+
export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards", plaidAccountKeyType: PlaidAccountKeyType, includeBalances?: boolean | undefined], {
|
|
5
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
|
|
6
6
|
includeBalances: boolean;
|
|
7
7
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
8
8
|
}, "plaidAccountView/getPaymentAccounts", never, never>, getPaymentAccountsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentAccountIds: string[], plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -11,20 +11,20 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
11
11
|
}, "plaidAccountView/getPaymentAccountsSuccess", never, never>, getPaymentAccountsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
12
12
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
13
13
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
14
|
-
}, "plaidAccountView/getPaymentAccountsFailure", never, never>, updatePaymentAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType], {
|
|
14
|
+
}, "plaidAccountView/getPaymentAccountsFailure", never, never>, updatePaymentAccount: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[accountId: string, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards", plaidAccountKeyType: PlaidAccountKeyType], {
|
|
15
15
|
accountId: string;
|
|
16
16
|
paymentAccountId: string;
|
|
17
|
-
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
17
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
|
|
18
18
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
19
19
|
}, "plaidAccountView/updatePaymentAccount", never, never>, updatePaymentAccountSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[plaidAccountKeyType: PlaidAccountKeyType], {
|
|
20
20
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
21
21
|
}, "plaidAccountView/updatePaymentAccountSuccess", never, never>, updatePaymentAccountFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
22
22
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
23
23
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
24
|
-
}, "plaidAccountView/updatePaymentAccountFailure", never, never>, updatePaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
24
|
+
}, "plaidAccountView/updatePaymentAccountFailure", never, never>, updatePaymentAccountStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[verificationStatusCode: string, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
25
25
|
verificationStatusCode: string;
|
|
26
26
|
paymentAccountId: string;
|
|
27
|
-
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
27
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
|
|
28
28
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
29
29
|
linkTokenType: PlaidLinkTokenType;
|
|
30
30
|
}, "plaidAccountView/updatePaymentAccountStatus", never, never>, updatePaymentAccountStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -34,10 +34,10 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
34
34
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
35
35
|
linkTokenType: PlaidLinkTokenType;
|
|
36
36
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
37
|
-
}, "plaidAccountView/updatePaymentAccountStatusFailure", never, never>, updatePaymentAccountLoginStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoginRequired: boolean, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
37
|
+
}, "plaidAccountView/updatePaymentAccountStatusFailure", never, never>, updatePaymentAccountLoginStatus: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[isLoginRequired: boolean, paymentAccountId: string, setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards", plaidAccountKeyType: PlaidAccountKeyType, linkTokenType?: PlaidLinkTokenType | undefined], {
|
|
38
38
|
isLoginRequired: boolean;
|
|
39
39
|
paymentAccountId: string;
|
|
40
|
-
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing";
|
|
40
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards";
|
|
41
41
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
42
42
|
linkTokenType: PlaidLinkTokenType;
|
|
43
43
|
}, "plaidAccountView/updatePaymentAccountLoginStatus", never, never>, updatePaymentAccountLoginStatusSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[paymentAccountIds: string[], linkTokenType: PlaidLinkTokenType, plaidAccountKeyType: PlaidAccountKeyType], {
|
|
@@ -61,10 +61,10 @@ export declare const getPaymentAccounts: import("@reduxjs/toolkit").ActionCreato
|
|
|
61
61
|
error: ZeniAPIStatus<Record<string, unknown>>;
|
|
62
62
|
linkTokenType: PlaidLinkTokenType;
|
|
63
63
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
64
|
-
}, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | undefined, linkTokenType?: PlaidLinkTokenType | undefined, zeniMappedAccountId?: string | undefined], {
|
|
64
|
+
}, "plaidAccountView/getPlaidLinkTokenFailure", never, never>, establishPlaidConnection: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[publicToken: string, companyId: string, plaidAccountKeyType: PlaidAccountKeyType, setupViewType?: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards" | undefined, linkTokenType?: PlaidLinkTokenType | undefined, zeniMappedAccountId?: string | undefined], {
|
|
65
65
|
publicToken: string;
|
|
66
66
|
companyId: string;
|
|
67
|
-
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | undefined;
|
|
67
|
+
setupViewType: "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards" | "billing" | "debit_cards" | "charge_cards__debit_cards" | undefined;
|
|
68
68
|
linkTokenType: PlaidLinkTokenType;
|
|
69
69
|
plaidAccountKeyType: PlaidAccountKeyType;
|
|
70
70
|
zeniMappedAccountId: string | undefined;
|
|
@@ -9,7 +9,7 @@ const getCheckDepositDetail = (state) => {
|
|
|
9
9
|
const updateFileStatusById = {};
|
|
10
10
|
const { depositAccountState, depositAccountListState, checkDepositState, fileState, } = state;
|
|
11
11
|
const { localData, fetchState, error } = checkDepositState;
|
|
12
|
-
const depositAccountsView = (0, depositAccountListSelector_1.
|
|
12
|
+
const depositAccountsView = (0, depositAccountListSelector_1.getAllDepositAccounts)(depositAccountState, depositAccountListState);
|
|
13
13
|
localData.fileIds.forEach((fileId) => {
|
|
14
14
|
deleteFileStatusById[fileId] = (0, fileViewSelector_1.getFileDeleteStatusById)(state, fileId);
|
|
15
15
|
updateFileStatusById[fileId] = (0, fileViewSelector_1.getFileUpdateNameStatusById)(state, fileId);
|
package/lib/view/spendManagement/zeniAccounts/depositAccountList/depositAccountListSelector.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { DepositAccountListState } from './depositAccountList';
|
|
|
4
4
|
export interface DepositAccountListSelectorView extends SelectorView {
|
|
5
5
|
depositAccounts: DepositAccount[];
|
|
6
6
|
}
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const getAllDepositAccounts: (depositAccountState: DepositAccountState, depositAccountListState: DepositAccountListState) => DepositAccountListSelectorView;
|
package/lib/view/spendManagement/zeniAccounts/depositAccountList/depositAccountListSelector.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getAllDepositAccounts = void 0;
|
|
4
4
|
const depositAccountSelector_1 = require("../../../../entity/depositAccount/depositAccountSelector");
|
|
5
|
-
const
|
|
5
|
+
const getAllDepositAccounts = (depositAccountState, depositAccountListState) => {
|
|
6
6
|
return {
|
|
7
7
|
depositAccounts: (0, depositAccountSelector_1.getDepositAccountsByDepositAccountIds)(depositAccountState, depositAccountListState.accountIds),
|
|
8
8
|
fetchState: depositAccountListState.fetchState,
|
|
@@ -10,4 +10,4 @@ const getAllDepostAccounts = (depositAccountState, depositAccountListState) => {
|
|
|
10
10
|
version: 0,
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
exports.
|
|
13
|
+
exports.getAllDepositAccounts = getAllDepositAccounts;
|
|
@@ -38,7 +38,7 @@ const getExpressPayView = (state) => {
|
|
|
38
38
|
...vendorBankAccounts.map((acc) => (0, editBillViewSelector_1.toPaymentToOption)(acc)),
|
|
39
39
|
...vendorPaymentInstruments.map((pi) => (0, editBillViewSelector_1.toPaymentToOption)(pi)),
|
|
40
40
|
].sort((a, b) => { var _a; return (((_a = b.createTime) === null || _a === void 0 ? void 0 : _a.isAfter(a.createTime)) === true ? 1 : -1); });
|
|
41
|
-
const allDepositAccounts = (0, depositAccountListSelector_1.
|
|
41
|
+
const allDepositAccounts = (0, depositAccountListSelector_1.getAllDepositAccounts)(depositAccountState, depositAccountListState).depositAccounts;
|
|
42
42
|
const withdrawFromList = (0, setupViewSelector_1.getAllFundingAccounts)(allDepositAccounts, [], paymentAccountListState.paymentAccountBalanceFetchStatus).sort((a, b) => { var _a; return (((_a = a.createTime) === null || _a === void 0 ? void 0 : _a.isAfter(b.createTime)) === true ? 1 : -1); });
|
|
43
43
|
const internationalWireOnboardingStatus = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo.internationalWireOnboardingStatus;
|
|
44
44
|
const fileId = (_k = expressPayState.formLocalData) === null || _k === void 0 ? void 0 : _k.receiptFileId;
|
|
@@ -8,7 +8,7 @@ const paymentAccountListSelector_1 = require("../paymentAccountList/paymentAccou
|
|
|
8
8
|
const getTransferDetail = (state) => {
|
|
9
9
|
const { transferDetailState, depositAccountState, paymentAccountState, depositAccountListState, paymentAccountListState, } = state;
|
|
10
10
|
const { localData, fetchState, error, reviewTransferDetail } = transferDetailState;
|
|
11
|
-
const depositAccountsView = (0, depositAccountListSelector_1.
|
|
11
|
+
const depositAccountsView = (0, depositAccountListSelector_1.getAllDepositAccounts)(depositAccountState, depositAccountListState);
|
|
12
12
|
const paymentAccountsView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
|
|
13
13
|
let transferParties = [];
|
|
14
14
|
const transferMoneyPartiesFetchState = (0, reduceFetchState_1.reduceAllFetchState)([
|
|
@@ -9,7 +9,7 @@ const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccounts
|
|
|
9
9
|
const getZeniAccountList = (state) => {
|
|
10
10
|
const { zeniAccountListState, depositAccountState, paymentAccountState, plaidAccountViewState, depositAccountListState, paymentAccountListState, } = state;
|
|
11
11
|
const { plaidConnectionDetails } = plaidAccountViewState['external_account'];
|
|
12
|
-
const depositAccountsSelectorView = (0, depositAccountListSelector_1.
|
|
12
|
+
const depositAccountsSelectorView = (0, depositAccountListSelector_1.getAllDepositAccounts)(depositAccountState, depositAccountListState);
|
|
13
13
|
const zeniAccountsConfig = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state);
|
|
14
14
|
const { paymentAccountIds } = paymentAccountListState;
|
|
15
15
|
const externalAccountsSelectorView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
|
|
@@ -6,7 +6,8 @@ import { resendOtpVendorView, sendOtpVendorViewFailure, sendOtpVendorViewSuccess
|
|
|
6
6
|
import { resendOnboardingOfficerOtp, sendOnboardingOfficerOtpFailure, sendOnboardingOfficerOtpSuccess } from '../onboardingView/customerView/onboardingCustomerViewReducer';
|
|
7
7
|
import { resendOtpMyProfile, sendOtpMyProfileFailure, sendOtpMyProfileSuccess } from '../settingsView/settingsViewReducer';
|
|
8
8
|
import { resendOtpCardUserOnboarding, sendOtpCardUserOnboardingFailure, sendOtpCardUserOnboardingSuccess } from '../spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer';
|
|
9
|
+
import { resendOtpCardHolder, sendOtpCardHolderFailure, sendOtpCardHolderSuccess } from '../spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer';
|
|
9
10
|
import { resendOtpSpendManagementSetUp, sendOtpFailureSpendManagementSetUp, sendOtpSuccessSpendManagementSetUp } from '../spendManagement/commonSetup/setupViewReducer';
|
|
10
11
|
import { resendOtp, sendOtpFailure, sendOtpSuccess } from './twoFactorAuthenticationReducer';
|
|
11
|
-
export type ActionType = ReturnType<typeof resendOtp> | ReturnType<typeof sendOtpSuccess> | ReturnType<typeof sendOtpFailure> | ReturnType<typeof resendOtpSpendManagementSetUp> | ReturnType<typeof sendOtpSuccessSpendManagementSetUp> | ReturnType<typeof sendOtpFailureSpendManagementSetUp> | ReturnType<typeof resendOtpVendorView> | ReturnType<typeof sendOtpVendorViewSuccess> | ReturnType<typeof sendOtpVendorViewFailure> | ReturnType<typeof resendOnboardingOfficerOtp> | ReturnType<typeof sendOnboardingOfficerOtpSuccess> | ReturnType<typeof sendOnboardingOfficerOtpFailure> | ReturnType<typeof resendOtpCardUserOnboarding> | ReturnType<typeof sendOtpCardUserOnboardingSuccess> | ReturnType<typeof sendOtpCardUserOnboardingFailure> | ReturnType<typeof resendOtpMyProfile> | ReturnType<typeof sendOtpMyProfileFailure> | ReturnType<typeof sendOtpMyProfileSuccess>;
|
|
12
|
-
export declare const resendOtpEpic: (actions$: ActionsObservable<ActionType>,
|
|
12
|
+
export type ActionType = ReturnType<typeof resendOtp> | ReturnType<typeof sendOtpSuccess> | ReturnType<typeof sendOtpFailure> | ReturnType<typeof resendOtpSpendManagementSetUp> | ReturnType<typeof sendOtpSuccessSpendManagementSetUp> | ReturnType<typeof sendOtpFailureSpendManagementSetUp> | ReturnType<typeof resendOtpVendorView> | ReturnType<typeof sendOtpVendorViewSuccess> | ReturnType<typeof sendOtpVendorViewFailure> | ReturnType<typeof resendOnboardingOfficerOtp> | ReturnType<typeof sendOnboardingOfficerOtpSuccess> | ReturnType<typeof sendOnboardingOfficerOtpFailure> | ReturnType<typeof resendOtpCardUserOnboarding> | ReturnType<typeof sendOtpCardUserOnboardingSuccess> | ReturnType<typeof sendOtpCardUserOnboardingFailure> | ReturnType<typeof resendOtpMyProfile> | ReturnType<typeof resendOtpCardHolder> | ReturnType<typeof sendOtpCardHolderSuccess> | ReturnType<typeof sendOtpCardHolderFailure> | ReturnType<typeof sendOtpMyProfileFailure> | ReturnType<typeof sendOtpMyProfileSuccess>;
|
|
13
|
+
export declare const resendOtpEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -8,27 +8,14 @@ const vendorViewReducer_1 = require("../commonVendorView/vendorView/vendorViewRe
|
|
|
8
8
|
const onboardingCustomerViewReducer_1 = require("../onboardingView/customerView/onboardingCustomerViewReducer");
|
|
9
9
|
const settingsViewReducer_1 = require("../settingsView/settingsViewReducer");
|
|
10
10
|
const cardUserOnboardingReducer_1 = require("../spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer");
|
|
11
|
+
const chargeCardDetailReducer_1 = require("../spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer");
|
|
11
12
|
const setupViewReducer_1 = require("../spendManagement/commonSetup/setupViewReducer");
|
|
12
13
|
const twoFactorAuthenticationReducer_1 = require("./twoFactorAuthenticationReducer");
|
|
13
|
-
const resendOtpEpic = (actions$,
|
|
14
|
-
var _a;
|
|
14
|
+
const resendOtpEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(twoFactorAuthenticationReducer_1.resendOtp.match), (0, operators_1.mergeMap)((action) => {
|
|
15
15
|
const resendOtpActions = [];
|
|
16
|
-
const { otpChallenge, twoFASource } = action.payload;
|
|
17
|
-
const tenantState = state$.value.tenantState;
|
|
18
|
-
const companyState = state$.value.companyState;
|
|
19
|
-
const { currentTenantId } = tenantState;
|
|
20
|
-
const companyId = currentTenantId != null
|
|
21
|
-
? (_a = tenantState.tenantsById[currentTenantId]) === null || _a === void 0 ? void 0 : _a.companyId
|
|
22
|
-
: undefined;
|
|
23
|
-
const isCardsEnabled = companyId != null
|
|
24
|
-
? companyState.companiesById[companyId].companyChargeCardInfo
|
|
25
|
-
.isChargeCardEnabled
|
|
26
|
-
: false;
|
|
16
|
+
const { otpChallenge, twoFASource, entityId } = action.payload;
|
|
27
17
|
const payload = {
|
|
28
18
|
otp_challenge: otpChallenge,
|
|
29
|
-
is_for_charge_cards: twoFASource === 'ChargeCard' ||
|
|
30
|
-
twoFASource === 'CardUserOnboarding' ||
|
|
31
|
-
(twoFASource === 'MyProfile' && isCardsEnabled),
|
|
32
19
|
};
|
|
33
20
|
switch (twoFASource) {
|
|
34
21
|
case 'SpendManagementSetup':
|
|
@@ -52,7 +39,11 @@ const resendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators
|
|
|
52
39
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
53
40
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
54
41
|
const updateActions = [
|
|
55
|
-
(0, twoFactorAuthenticationReducer_1.sendOtpSuccess)({
|
|
42
|
+
(0, twoFactorAuthenticationReducer_1.sendOtpSuccess)({
|
|
43
|
+
otpChallenge: response.data.otp_challenge,
|
|
44
|
+
twoFASource,
|
|
45
|
+
entityId,
|
|
46
|
+
}),
|
|
56
47
|
];
|
|
57
48
|
switch (twoFASource) {
|
|
58
49
|
case 'SpendManagementSetup':
|
|
@@ -80,12 +71,24 @@ const resendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators
|
|
|
80
71
|
otpChallenge: response.data.otp_challenge,
|
|
81
72
|
}));
|
|
82
73
|
break;
|
|
74
|
+
case 'ChargeCardHolder':
|
|
75
|
+
if (entityId != null) {
|
|
76
|
+
updateActions.push((0, chargeCardDetailReducer_1.sendOtpCardHolderSuccess)({
|
|
77
|
+
otpChallenge: response.data.otp_challenge,
|
|
78
|
+
chargeCardId: entityId,
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
83
82
|
}
|
|
84
83
|
return (0, rxjs_1.from)(updateActions);
|
|
85
84
|
}
|
|
86
85
|
else {
|
|
87
86
|
const updateActions = [
|
|
88
|
-
(0, twoFactorAuthenticationReducer_1.sendOtpFailure)(
|
|
87
|
+
(0, twoFactorAuthenticationReducer_1.sendOtpFailure)({
|
|
88
|
+
error: response.status,
|
|
89
|
+
twoFASource,
|
|
90
|
+
entityId,
|
|
91
|
+
}),
|
|
89
92
|
];
|
|
90
93
|
switch (twoFASource) {
|
|
91
94
|
case 'SpendManagementSetup':
|
|
@@ -103,12 +106,26 @@ const resendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators
|
|
|
103
106
|
case 'CardUserOnboarding':
|
|
104
107
|
updateActions.push((0, cardUserOnboardingReducer_1.sendOtpCardUserOnboardingFailure)(response.status));
|
|
105
108
|
break;
|
|
109
|
+
case 'ChargeCardHolder':
|
|
110
|
+
if (entityId != null) {
|
|
111
|
+
updateActions.push((0, chargeCardDetailReducer_1.sendOtpCardHolderFailure)({
|
|
112
|
+
error: response.status,
|
|
113
|
+
chargeCardId: entityId,
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
break;
|
|
106
117
|
}
|
|
107
118
|
return (0, rxjs_1.from)(updateActions);
|
|
108
119
|
}
|
|
109
120
|
}), (0, operators_1.catchError)((error) => {
|
|
110
121
|
const zeniAPIStatus = (0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Resend otp api errored out' + JSON.stringify(error));
|
|
111
|
-
const updateActions = [
|
|
122
|
+
const updateActions = [
|
|
123
|
+
(0, twoFactorAuthenticationReducer_1.sendOtpFailure)({
|
|
124
|
+
error: zeniAPIStatus,
|
|
125
|
+
twoFASource,
|
|
126
|
+
entityId,
|
|
127
|
+
}),
|
|
128
|
+
];
|
|
112
129
|
switch (twoFASource) {
|
|
113
130
|
case 'SpendManagementSetup':
|
|
114
131
|
updateActions.push((0, setupViewReducer_1.sendOtpFailureSpendManagementSetUp)(zeniAPIStatus));
|
|
@@ -125,6 +142,14 @@ const resendOtpEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators
|
|
|
125
142
|
case 'CardUserOnboarding':
|
|
126
143
|
updateActions.push((0, cardUserOnboardingReducer_1.sendOtpCardUserOnboardingFailure)(zeniAPIStatus));
|
|
127
144
|
break;
|
|
145
|
+
case 'ChargeCardHolder':
|
|
146
|
+
if (entityId != null) {
|
|
147
|
+
updateActions.push((0, chargeCardDetailReducer_1.sendOtpCardHolderFailure)({
|
|
148
|
+
error: zeniAPIStatus,
|
|
149
|
+
chargeCardId: entityId,
|
|
150
|
+
}));
|
|
151
|
+
}
|
|
152
|
+
break;
|
|
128
153
|
}
|
|
129
154
|
return (0, rxjs_1.from)(updateActions);
|
|
130
155
|
}));
|
|
@@ -6,7 +6,8 @@ import { sendOtpVendorView, sendOtpVendorViewFailure, sendOtpVendorViewSuccess }
|
|
|
6
6
|
import { sendOnboardingOfficerOtp, sendOnboardingOfficerOtpFailure, sendOnboardingOfficerOtpSuccess } from '../onboardingView/customerView/onboardingCustomerViewReducer';
|
|
7
7
|
import { sendOtpMyProfile, sendOtpMyProfileFailure, sendOtpMyProfileSuccess } from '../settingsView/settingsViewReducer';
|
|
8
8
|
import { sendOtpCardUserOnboarding, sendOtpCardUserOnboardingFailure, sendOtpCardUserOnboardingSuccess } from '../spendManagement/chargeCards/cardUserOnboarding/cardUserOnboardingReducer';
|
|
9
|
+
import { sendOtpCardHolder, sendOtpCardHolderFailure, sendOtpCardHolderSuccess } from '../spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer';
|
|
9
10
|
import { sendOtpFailureSpendManagementSetUp, sendOtpSpendManagementSetUp, sendOtpSuccessSpendManagementSetUp } from '../spendManagement/commonSetup/setupViewReducer';
|
|
10
11
|
import { sendOtp, sendOtpFailure, sendOtpSuccess } from './twoFactorAuthenticationReducer';
|
|
11
|
-
export type ActionType = ReturnType<typeof sendOtp> | ReturnType<typeof sendOtpSuccess> | ReturnType<typeof sendOtpFailure> | ReturnType<typeof sendOtpSpendManagementSetUp> | ReturnType<typeof sendOtpSuccessSpendManagementSetUp> | ReturnType<typeof sendOtpFailureSpendManagementSetUp> | ReturnType<typeof sendOtpVendorView> | ReturnType<typeof sendOtpVendorViewSuccess> | ReturnType<typeof sendOtpVendorViewFailure> | ReturnType<typeof sendOnboardingOfficerOtp> | ReturnType<typeof sendOnboardingOfficerOtpSuccess> | ReturnType<typeof sendOnboardingOfficerOtpFailure> | ReturnType<typeof sendOtpCardUserOnboarding> | ReturnType<typeof sendOtpCardUserOnboardingSuccess> | ReturnType<typeof sendOtpCardUserOnboardingFailure> | ReturnType<typeof sendOtpMyProfile> | ReturnType<typeof sendOtpMyProfileFailure> | ReturnType<typeof sendOtpMyProfileSuccess>;
|
|
12
|
+
export type ActionType = ReturnType<typeof sendOtp> | ReturnType<typeof sendOtpSuccess> | ReturnType<typeof sendOtpFailure> | ReturnType<typeof sendOtpSpendManagementSetUp> | ReturnType<typeof sendOtpSuccessSpendManagementSetUp> | ReturnType<typeof sendOtpFailureSpendManagementSetUp> | ReturnType<typeof sendOtpVendorView> | ReturnType<typeof sendOtpVendorViewSuccess> | ReturnType<typeof sendOtpVendorViewFailure> | ReturnType<typeof sendOnboardingOfficerOtp> | ReturnType<typeof sendOnboardingOfficerOtpSuccess> | ReturnType<typeof sendOnboardingOfficerOtpFailure> | ReturnType<typeof sendOtpCardUserOnboarding> | ReturnType<typeof sendOtpCardUserOnboardingSuccess> | ReturnType<typeof sendOtpCardUserOnboardingFailure> | ReturnType<typeof sendOtpMyProfile> | ReturnType<typeof sendOtpCardHolder> | ReturnType<typeof sendOtpCardHolderSuccess> | ReturnType<typeof sendOtpCardHolderFailure> | ReturnType<typeof sendOtpMyProfileFailure> | ReturnType<typeof sendOtpMyProfileSuccess>;
|
|
12
13
|
export declare const sendOtpEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|