@zeniai/client-epic-state 4.15.9 → 4.15.11
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/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.d.ts +1 -2
- package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js +0 -7
- package/lib/view/spendManagement/zeniAccounts/expressPay/expressPaySelector.js +0 -4
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@ import { RootState } from '../../../../../reducer';
|
|
|
4
4
|
import { fetchVendorTypeList } from '../../../../vendorTypeList/vendorTypeListReducer';
|
|
5
5
|
import { fetchBillPayConfig } from '../../../billPay/billPayConfig/billPayConfigReducer';
|
|
6
6
|
import { fetchDepositAccountList } from '../../depositAccountList/depositAccountListReducer';
|
|
7
|
-
import { fetchPaymentAccountList } from '../../paymentAccountList/paymentAccountListReducer';
|
|
8
7
|
import { fetchExpressPayInitialDetails, updateExpressPayFetchState } from '../expressPayReducer';
|
|
9
|
-
export type ActionType = ReturnType<typeof fetchExpressPayInitialDetails> | ReturnType<typeof fetchBillPayConfig> | ReturnType<typeof fetchVendorTypeList> | ReturnType<typeof fetchDepositAccountList> | ReturnType<typeof
|
|
8
|
+
export type ActionType = ReturnType<typeof fetchExpressPayInitialDetails> | ReturnType<typeof fetchBillPayConfig> | ReturnType<typeof fetchVendorTypeList> | ReturnType<typeof fetchDepositAccountList> | ReturnType<typeof updateExpressPayFetchState>;
|
|
10
9
|
export declare const fetchExpressPayInitialDetailsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
package/lib/view/spendManagement/zeniAccounts/expressPay/epics/fetchExpressPayInitialDetailsEpic.js
CHANGED
|
@@ -6,7 +6,6 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const vendorTypeListReducer_1 = require("../../../../vendorTypeList/vendorTypeListReducer");
|
|
7
7
|
const billPayConfigReducer_1 = require("../../../billPay/billPayConfig/billPayConfigReducer");
|
|
8
8
|
const depositAccountListReducer_1 = require("../../depositAccountList/depositAccountListReducer");
|
|
9
|
-
const paymentAccountListReducer_1 = require("../../paymentAccountList/paymentAccountListReducer");
|
|
10
9
|
const expressPayReducer_1 = require("../expressPayReducer");
|
|
11
10
|
const fetchExpressPayInitialDetailsEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(expressPayReducer_1.fetchExpressPayInitialDetails.match), (0, operators_1.mergeMap)((action) => {
|
|
12
11
|
const { cacheOverride, isInternationalWireEnabled } = action.payload;
|
|
@@ -16,7 +15,6 @@ const fetchExpressPayInitialDetailsEpic = (actions$, state$) => actions$.pipe((0
|
|
|
16
15
|
fetchActions.push((0, vendorTypeListReducer_1.fetchVendorTypeList)());
|
|
17
16
|
fetchActions.push((0, billPayConfigReducer_1.fetchBillPayConfig)(isInternationalWireEnabled));
|
|
18
17
|
fetchActions.push((0, depositAccountListReducer_1.fetchDepositAccountList)());
|
|
19
|
-
fetchActions.push((0, paymentAccountListReducer_1.fetchPaymentAccountList)());
|
|
20
18
|
fetchActions.push((0, expressPayReducer_1.updateExpressPayFetchState)());
|
|
21
19
|
}
|
|
22
20
|
else {
|
|
@@ -34,11 +32,6 @@ const fetchExpressPayInitialDetailsEpic = (actions$, state$) => actions$.pipe((0
|
|
|
34
32
|
depositAccounts.fetchState !== 'Completed') {
|
|
35
33
|
fetchActions.push((0, depositAccountListReducer_1.fetchDepositAccountList)());
|
|
36
34
|
}
|
|
37
|
-
const paymentAccounts = state.paymentAccountListState;
|
|
38
|
-
if (paymentAccounts.fetchState !== 'In-Progress' &&
|
|
39
|
-
paymentAccounts.fetchState !== 'Completed') {
|
|
40
|
-
fetchActions.push((0, paymentAccountListReducer_1.fetchPaymentAccountList)());
|
|
41
|
-
}
|
|
42
35
|
fetchActions.push((0, expressPayReducer_1.updateExpressPayFetchState)());
|
|
43
36
|
}
|
|
44
37
|
return (0, rxjs_1.concat)((0, rxjs_1.from)(fetchActions));
|
|
@@ -60,10 +60,6 @@ const getExpressPayView = (state) => {
|
|
|
60
60
|
fetchState: depositAccountListState.fetchState,
|
|
61
61
|
error: depositAccountListState.error,
|
|
62
62
|
},
|
|
63
|
-
{
|
|
64
|
-
fetchState: paymentAccountListState.fetchState,
|
|
65
|
-
error: paymentAccountListState.error,
|
|
66
|
-
},
|
|
67
63
|
]);
|
|
68
64
|
return {
|
|
69
65
|
vendorViewDetails,
|
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.11",
|
|
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",
|