@zeniai/client-epic-state 4.11.86 → 4.11.88
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/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/fetchDepositAccountTransactionListEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/fetchReviewTransferDetailEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/transferDetail/transferMoneyEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/createCheckingAccountEpic.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/fetchZeniAccountsConfigEpic.js +1 -1
- package/lib/view/zeniAccStatementList/fetchZeniAccStatementListEpic.js +2 -2
- package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +1 -1
- package/lib/zeniAPI.d.ts +1 -0
- package/package.json +1 -1
package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js
CHANGED
|
@@ -9,7 +9,7 @@ const depositAccountReducer_1 = require("../../../../../entity/depositAccount/de
|
|
|
9
9
|
const updateMappedCashAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(plaidAccountViewReducer_1.updateMappedCashAccount.match), (0, operators_1.mergeMap)((action) => {
|
|
10
10
|
const { plaidAccountKeyType, accountId, depositAccountId } = action.payload;
|
|
11
11
|
return zeniAPI
|
|
12
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
12
|
+
.putAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}`, {
|
|
13
13
|
zeni_mapped_account_id: accountId,
|
|
14
14
|
})
|
|
15
15
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
@@ -23,7 +23,7 @@ const checkDepositEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operat
|
|
|
23
23
|
check_back_file_id: checkBack === null || checkBack === void 0 ? void 0 : checkBack.fileId,
|
|
24
24
|
};
|
|
25
25
|
return zeniAPI
|
|
26
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
26
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${(_a = localData.depositTo) === null || _a === void 0 ? void 0 : _a.id}/check-deposits`, payload)
|
|
27
27
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
28
28
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
29
29
|
return (0, rxjs_1.of)((0, snackbarReducer_1.openSnackbar)({
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.js
CHANGED
|
@@ -9,7 +9,7 @@ const depositAccountReducer_1 = require("../../../../entity/depositAccount/depos
|
|
|
9
9
|
const fetchDepositAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(depositAccountDetailReducer_1.fetchDepositAccount.match), (0, operators_1.switchMap)((action) => {
|
|
10
10
|
const { depositAccountId } = action.payload;
|
|
11
11
|
return zeniAPI
|
|
12
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
12
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}?query=${encodeURIComponent(`{"is_include_deposit_accounts_summary":true}`)}`)
|
|
13
13
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
14
14
|
var _a, _b;
|
|
15
15
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.js
CHANGED
|
@@ -11,7 +11,7 @@ const fetchDepositAccountHistoryEpic = (actions$, _state$, zeniAPI) => actions$.
|
|
|
11
11
|
const today = (0, zeniDayJS_1.dateNow)().format('YYYY-MM-DD');
|
|
12
12
|
const payload = { start_date: '2022-01-01', end_date: today };
|
|
13
13
|
return zeniAPI
|
|
14
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
14
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}/balances/time-series?query=${encodeURIComponent(JSON.stringify(payload))}`)
|
|
15
15
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
16
16
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
17
17
|
return (0, rxjs_1.of)((0, depositAccountDetailReducer_1.fetchDepositAccountHistorySuccess)({
|
package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.js
CHANGED
|
@@ -13,7 +13,7 @@ const updateDepositAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe((
|
|
|
13
13
|
? { is_close_account: true }
|
|
14
14
|
: { account_name: nickname };
|
|
15
15
|
return zeniAPI
|
|
16
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
16
|
+
.putAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}`, payload)
|
|
17
17
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js
CHANGED
|
@@ -9,7 +9,7 @@ const depositAccountReducer_1 = require("../../../../entity/depositAccount/depos
|
|
|
9
9
|
const zeniAccountListReducer_1 = require("../zeniAccountList/zeniAccountListReducer");
|
|
10
10
|
const fetchDepositAccountListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(depositAccountListReducer_1.fetchDepositAccountList.match), (0, operators_1.switchMap)(() => {
|
|
11
11
|
return zeniAPI
|
|
12
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
12
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts?query=${encodeURIComponent(`{"is_include_deposit_accounts_summary":true}`)}`)
|
|
13
13
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
14
14
|
var _a, _b, _c, _d, _e;
|
|
15
15
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
@@ -27,7 +27,7 @@ const fetchDepositAccountTransactionListEpic = (actions$, state$, zeniAPI) => ac
|
|
|
27
27
|
queryParam = Object.assign(Object.assign({}, queryParam), { limit: count });
|
|
28
28
|
}
|
|
29
29
|
return zeniAPI
|
|
30
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
30
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}/transactions?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
|
|
31
31
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
32
32
|
var _a, _b, _c, _d, _e, _f;
|
|
33
33
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
package/lib/view/spendManagement/zeniAccounts/transferDetail/fetchReviewTransferDetailEpic.js
CHANGED
|
@@ -24,7 +24,7 @@ const fetchReviewTransferDetailEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
24
24
|
currency_symbol: localData.amount.currencySymbol,
|
|
25
25
|
};
|
|
26
26
|
return zeniAPI
|
|
27
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
27
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/transfers/review`, payload)
|
|
28
28
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
29
29
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
30
30
|
return (0, rxjs_1.of)((0, transferDetailReducer_1.updateReviewTransferDetail)(response.data));
|
|
@@ -31,7 +31,7 @@ const transferMoneyEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, opera
|
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
33
|
return zeniAPI
|
|
34
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
34
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts-transfers`, payload)
|
|
35
35
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
36
36
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
37
37
|
const actions = [];
|
|
@@ -14,7 +14,7 @@ const createCheckingAccountEpic = (actions$, _state$, zeniAPI) => actions$.pipe(
|
|
|
14
14
|
account_name: action.payload.nickname,
|
|
15
15
|
};
|
|
16
16
|
return zeniAPI
|
|
17
|
-
.postAndGetJSON(`${zeniAPI.apiEndPoints.
|
|
17
|
+
.postAndGetJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts`, payload)
|
|
18
18
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
19
19
|
var _a, _b, _c, _d, _e;
|
|
20
20
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/fetchZeniAccountsConfigEpic.js
CHANGED
|
@@ -7,7 +7,7 @@ const zeniAccountsConfigReducer_1 = require("./zeniAccountsConfigReducer");
|
|
|
7
7
|
const addressReducer_1 = require("../../../../entity/address/addressReducer");
|
|
8
8
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
9
9
|
const fetchZeniAccountsConfigEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(zeniAccountsConfigReducer_1.fetchZeniAccountsConfig.match), (0, operators_1.switchMap)(() => zeniAPI
|
|
10
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
10
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/baas/config`)
|
|
11
11
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
12
12
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
13
13
|
const actions = [
|
|
@@ -8,8 +8,8 @@ const zeniAccStatementListReducer_1 = require("./zeniAccStatementListReducer");
|
|
|
8
8
|
const fetchZeniAccStatementListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(zeniAccStatementListReducer_1.fetchZeniAccStatementList.match), (0, operators_1.mergeMap)((action) => {
|
|
9
9
|
const { depositAccountId } = action.payload;
|
|
10
10
|
const apiEndpoint = depositAccountId === 'zeni-clearing-account'
|
|
11
|
-
? `${zeniAPI.apiEndPoints.
|
|
12
|
-
: `${zeniAPI.apiEndPoints.
|
|
11
|
+
? `${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/zeni-clearing-account/statements`
|
|
12
|
+
: `${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/${depositAccountId}/statements`;
|
|
13
13
|
return zeniAPI.getJSON(apiEndpoint).pipe((0, operators_1.mergeMap)((response) => {
|
|
14
14
|
var _a, _b;
|
|
15
15
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
@@ -6,7 +6,7 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const zeniAccountsPromoCardReducer_1 = require("./zeniAccountsPromoCardReducer");
|
|
7
7
|
const responsePayload_1 = require("../../responsePayload");
|
|
8
8
|
const fetchZeniAccountsPromoCardEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(zeniAccountsPromoCardReducer_1.fetchZeniAccountsPromoCard.match), (0, operators_1.switchMap)(() => zeniAPI
|
|
9
|
-
.getJSON(`${zeniAPI.apiEndPoints.
|
|
9
|
+
.getJSON(`${zeniAPI.apiEndPoints.bankingMicroServiceBaseUrl}/1.0/deposit-accounts/promo-card`)
|
|
10
10
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
11
11
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
12
12
|
return (0, rxjs_1.of)((0, zeniAccountsPromoCardReducer_1.updateZeniAccountsPromoCard)(response.data) // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
package/lib/zeniAPI.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface RESTAPIEndpoints {
|
|
|
10
10
|
readonly insightsMicroServiceBaseUrl: string;
|
|
11
11
|
readonly searchMicroServiceBaseUrl: string;
|
|
12
12
|
readonly payMicroServiceBaseUrl: string;
|
|
13
|
+
readonly bankingMicroServiceBaseUrl: string;
|
|
13
14
|
readonly fileMicroServiceBaseUrl: string;
|
|
14
15
|
readonly documentAIMicroServiceBaseUrl: string;
|
|
15
16
|
readonly approvalMicroServiceBaseUrl: string;
|
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.88",
|
|
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",
|