@zeniai/client-epic-state 4.7.69 → 4.7.70
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/entity/account/accountPayload.d.ts +1 -1
- package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +1 -0
- package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -1
- package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +2 -0
- package/lib/entity/paymentAccount/paymentAccountSelector.js +14 -1
- package/lib/entity/paymentAccount/paymentAccountState.d.ts +1 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
- package/lib/entity/tenant/clearAllEpic.js +2 -0
- package/lib/epic.d.ts +5 -1
- package/lib/epic.js +5 -1
- package/lib/index.d.ts +10 -2
- package/lib/index.js +26 -13
- package/lib/reducer.d.ts +3 -0
- package/lib/reducer.js +3 -0
- package/lib/view/accountList/accountListReducer.js +2 -1
- package/lib/view/accountList/accountListState.d.ts +1 -1
- package/lib/view/accountList/fetchAccountListEpic.js +16 -7
- package/lib/view/settingsView/epic/fetchBankAccountsListEpic.d.ts +22 -0
- package/lib/view/settingsView/epic/fetchBankAccountsListEpic.js +30 -0
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +6 -0
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +14 -0
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +43 -0
- package/lib/view/settingsView/epic/fetchMyProfileEpic.js +50 -0
- package/lib/view/settingsView/epic/fetchMyProfileViewEpic.d.ts +7 -0
- package/lib/view/settingsView/epic/fetchMyProfileViewEpic.js +17 -0
- package/lib/view/settingsView/settingsViewPayload.d.ts +8 -0
- package/lib/view/settingsView/settingsViewPayload.js +2 -0
- package/lib/view/settingsView/settingsViewReducer.d.ts +13 -0
- package/lib/view/settingsView/settingsViewReducer.js +71 -0
- package/lib/view/settingsView/settingsViewSelector.d.ts +14 -0
- package/lib/view/settingsView/settingsViewSelector.js +119 -0
- package/lib/view/settingsView/settingsViewState.d.ts +12 -0
- package/lib/view/settingsView/settingsViewState.js +2 -0
- package/lib/view/settingsView/types/settingsViewSelectorTypes.d.ts +29 -0
- package/lib/view/settingsView/types/settingsViewSelectorTypes.js +2 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +2 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +3 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +1 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ const fetchEditBillDetailPageEpic = (actions$, state$) => actions$.pipe((0, oper
|
|
|
16
16
|
const billDetailActions = [];
|
|
17
17
|
const state = state$.value;
|
|
18
18
|
if (cacheOverride == true) {
|
|
19
|
-
billDetailActions.push((0, accountListReducer_1.fetchAccountList)('
|
|
19
|
+
billDetailActions.push((0, accountListReducer_1.fetchAccountList)('billPayAccountList', true, true, true));
|
|
20
20
|
billDetailActions.push((0, classListReducer_1.fetchClassList)());
|
|
21
21
|
billDetailActions.push((0, vendorTypeListReducer_1.fetchVendorTypeList)());
|
|
22
22
|
billDetailActions.push((0, ownerListReducer_1.fetchOwnerList)());
|
|
@@ -35,10 +35,10 @@ const fetchEditBillDetailPageEpic = (actions$, state$) => actions$.pipe((0, oper
|
|
|
35
35
|
state.ownerListState.hasValidState() === false) {
|
|
36
36
|
billDetailActions.push((0, ownerListReducer_1.fetchOwnerList)());
|
|
37
37
|
}
|
|
38
|
-
const accountList = state.accountListState.byReportId
|
|
38
|
+
const accountList = state.accountListState.byReportId['billPayAccountList'];
|
|
39
39
|
if (accountList.hasValidState() === false &&
|
|
40
40
|
accountList.fetchState !== 'In-Progress') {
|
|
41
|
-
billDetailActions.push((0, accountListReducer_1.fetchAccountList)('
|
|
41
|
+
billDetailActions.push((0, accountListReducer_1.fetchAccountList)('billPayAccountList', true, true, true));
|
|
42
42
|
}
|
|
43
43
|
const classList = state.classListState;
|
|
44
44
|
if (classList.hasValidState() === false &&
|
package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js
CHANGED
|
@@ -95,7 +95,7 @@ const initializeBillToLocalStoreEpic = (actions$, state$) => actions$.pipe((0, o
|
|
|
95
95
|
const billDetail = (0, get_1.default)(state.billDetailViewState.billDetailById, detailKey, undefined);
|
|
96
96
|
const transaction = (0, get_1.default)(state.billTransactionState.transactionById, billId, undefined);
|
|
97
97
|
const { accountListState, accountState, classListState, classState, recurringBillState, } = state;
|
|
98
|
-
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, '
|
|
98
|
+
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'billPayAccountList');
|
|
99
99
|
const classList = (0, classListSelector_1.getClassList)(classState, classListState);
|
|
100
100
|
const recommendations = transaction === null || transaction === void 0 ? void 0 : transaction.recommendations;
|
|
101
101
|
/* check vendor info is present in local store or not.
|
|
@@ -147,7 +147,7 @@ const toBillDetailLocalData = (state, billPayload, vendor, recommendedVendorId)
|
|
|
147
147
|
const lineState = (0, transactionLinePayload_1.toTransactionWithAccountAndClassLine)(line, currency);
|
|
148
148
|
const { accountListState, accountState, classListState, classState } = state;
|
|
149
149
|
const classList = (0, classListSelector_1.getClassList)(classState, classListState);
|
|
150
|
-
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, '
|
|
150
|
+
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'billPayAccountList');
|
|
151
151
|
const lineWithRecommendations = (0, initializeBillToLocalStoreEpic_1.getLineRecommendationsLocalData)(line.line_id, lineState, recommendations, accountList, classList, vendor);
|
|
152
152
|
linesById[line.line_id] = Object.assign(Object.assign({}, lineWithRecommendations), { account: ((_b = lineWithRecommendations.account) === null || _b === void 0 ? void 0 : _b.accountId) === '' &&
|
|
153
153
|
vendorCategory != null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.70",
|
|
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",
|