@zeniai/client-epic-state 4.11.91 → 4.11.93
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 +2 -0
- package/lib/commonStateTypes/animations.js +32 -0
- package/lib/entity/company/companyPayload.d.ts +0 -8
- package/lib/entity/company/companyPayload.js +0 -2
- package/lib/entity/company/companyStateTypes.d.ts +0 -2
- package/lib/index.d.ts +2 -0
- 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/zeniAccountList/zeniAccountListSelector.d.ts +1 -4
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +1 -5
- 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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const toAnimationsFileName: (v: string) => "AIPoweredInvoiceDark" | "AIPoweredInvoiceLight" | "Angry" | "Confetti" | "ConfettiExplosion" | "FastestWayDark" | "FastestWayLight" | "FinanceTeamDark" | "FinanceTeamLight" | "Happy" | "MoneyTransferSuccess" | "MultiLevelApprovalDark" | "MultiLevelApprovalLight" | "NotHappy" | "ReceiptDark" | "ReceiptLight" | "ReimburseDark" | "ReimburseLight" | "RewardsDark" | "RewardsDarkHover" | "RewardsLight" | "RewardsLightHover" | "Success" | "VeryHappy";
|
|
2
|
+
export declare type AnimationFileName = ReturnType<typeof toAnimationsFileName>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toAnimationsFileName = void 0;
|
|
4
|
+
const stringToUnion_1 = require("./stringToUnion");
|
|
5
|
+
const ALL_ANIMATIONS_FILE_NAMES = [
|
|
6
|
+
'AIPoweredInvoiceDark',
|
|
7
|
+
'AIPoweredInvoiceLight',
|
|
8
|
+
'Angry',
|
|
9
|
+
'Confetti',
|
|
10
|
+
'ConfettiExplosion',
|
|
11
|
+
'FastestWayDark',
|
|
12
|
+
'FastestWayLight',
|
|
13
|
+
'FinanceTeamDark',
|
|
14
|
+
'FinanceTeamLight',
|
|
15
|
+
'Happy',
|
|
16
|
+
'MoneyTransferSuccess',
|
|
17
|
+
'MultiLevelApprovalDark',
|
|
18
|
+
'MultiLevelApprovalLight',
|
|
19
|
+
'NotHappy',
|
|
20
|
+
'ReceiptDark',
|
|
21
|
+
'ReceiptLight',
|
|
22
|
+
'ReimburseDark',
|
|
23
|
+
'ReimburseLight',
|
|
24
|
+
'RewardsDark',
|
|
25
|
+
'RewardsDarkHover',
|
|
26
|
+
'RewardsLight',
|
|
27
|
+
'RewardsLightHover',
|
|
28
|
+
'Success',
|
|
29
|
+
'VeryHappy',
|
|
30
|
+
];
|
|
31
|
+
const toAnimationsFileName = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ANIMATIONS_FILE_NAMES);
|
|
32
|
+
exports.toAnimationsFileName = toAnimationsFileName;
|
|
@@ -89,14 +89,6 @@ export interface CompanyBillPayInfoDataPayload {
|
|
|
89
89
|
code: string | null;
|
|
90
90
|
name: string | null;
|
|
91
91
|
};
|
|
92
|
-
bill_payment_account_setup_status: {
|
|
93
|
-
code: string | null;
|
|
94
|
-
name: string | null;
|
|
95
|
-
};
|
|
96
|
-
bill_payment_method_type: {
|
|
97
|
-
code: string | null;
|
|
98
|
-
name: string | null;
|
|
99
|
-
};
|
|
100
92
|
schedule_pay_now_cutoff_time_by_payment_method: BillPayNowCutOffByMethodPayload;
|
|
101
93
|
primary_funding_account: {
|
|
102
94
|
account_id: string | null;
|
|
@@ -143,8 +143,6 @@ const toCompanyBillPayInfo = (payload) => {
|
|
|
143
143
|
usersSelectedForVerification: payload.users_for_verification,
|
|
144
144
|
businessVerificationStatus: (0, exports.toAllowedValueWithCode)(payload.business_verification_status),
|
|
145
145
|
companyVerificationStatus: (0, exports.toAllowedValueWithCode)(payload.company_verification_status),
|
|
146
|
-
billPaymentAccountSetupStatus: (0, exports.toAllowedValueWithCode)(payload.bill_payment_account_setup_status),
|
|
147
|
-
billPaymentMethodType: (0, exports.toAllowedValueWithCode)(payload.bill_payment_method_type),
|
|
148
146
|
payNowCutOffTimeByMethod: (0, exports.toPayNowCutOffByMethod)(payload.schedule_pay_now_cutoff_time_by_payment_method),
|
|
149
147
|
primaryFundingAccount: payload.primary_funding_account.account_id != null &&
|
|
150
148
|
payload.primary_funding_account.account_type != null
|
|
@@ -164,8 +164,6 @@ export interface CompanyBillPayInfo {
|
|
|
164
164
|
isInternationalWireEnabled: boolean;
|
|
165
165
|
businessVerificationStatus?: AllowedValueWithCode;
|
|
166
166
|
companyVerificationStatus?: AllowedValueWithCode;
|
|
167
|
-
billPaymentAccountSetupStatus?: AllowedValueWithCode;
|
|
168
|
-
billPaymentMethodType?: AllowedValueWithCode;
|
|
169
167
|
payNowCutOffTimeByMethod: BillPayNowCutOffByMethod;
|
|
170
168
|
primaryFundingAccount?: {
|
|
171
169
|
accountId: ID;
|
package/lib/index.d.ts
CHANGED
|
@@ -471,6 +471,8 @@ import { OnboardingCustomerListUIState } from './view/onboardingView/cockpitView
|
|
|
471
471
|
import { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, reduceAnyCompletedFetchState, isAnyFetchInProgress, isAllFetchCompleted } from './commonStateTypes/reduceFetchState';
|
|
472
472
|
import { SortOrder } from './commonStateTypes/selectorTypes/sortOrderTypes';
|
|
473
473
|
import { ALL_FILE_TYPES, FileType, toFileTypeStrict } from './commonStateTypes/fileType';
|
|
474
|
+
import { AnimationFileName } from './commonStateTypes/animations';
|
|
475
|
+
export { AnimationFileName };
|
|
474
476
|
import { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, holidaysFormatted, isHoliday, PAYMENT_BUSINESS_DAYS } from './commonStateTypes/workingDayHelper';
|
|
475
477
|
export { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, reduceAnyCompletedFetchState, isAnyFetchInProgress, isAllFetchCompleted, SortOrder, ALL_FILE_TYPES, FileType, toFileTypeStrict, };
|
|
476
478
|
export { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, isHoliday, holidaysFormatted, PAYMENT_BUSINESS_DAYS, };
|
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)) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { AllowedValueWithCode } from '../../../../commonStateTypes/allowedValue';
|
|
2
|
-
import { ID } from '../../../../commonStateTypes/common';
|
|
3
1
|
import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
4
2
|
import { PaymentAccount } from '../../../../entity/paymentAccount/paymentAccountState';
|
|
5
3
|
import { RootState } from '../../../../reducer';
|
|
@@ -15,8 +13,7 @@ export interface ZeniAccountListSelectorView extends SelectorView {
|
|
|
15
13
|
plaidConnectionDetails: PlaidConnectionDetails;
|
|
16
14
|
newCheckingAccount: NewCheckingAccount;
|
|
17
15
|
zeniAccountsConfig: ZeniAccountsConfigSelectorView;
|
|
18
|
-
companyBillPayAccountSetupStatus?: AllowedValueWithCode;
|
|
19
16
|
paymentAccount?: PaymentAccount;
|
|
20
17
|
summary?: ZeniAccountSummaryWithBalance;
|
|
21
18
|
}
|
|
22
|
-
export declare const getZeniAccountList: (state: RootState
|
|
19
|
+
export declare const getZeniAccountList: (state: RootState) => ZeniAccountListSelectorView;
|
|
@@ -3,17 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getZeniAccountList = void 0;
|
|
4
4
|
const depositAccountPayload_1 = require("../../../../entity/depositAccount/depositAccountPayload");
|
|
5
5
|
const paymentAccountSelector_1 = require("../../../../entity/paymentAccount/paymentAccountSelector");
|
|
6
|
-
const getCompanyView_1 = require("../../../companyView/selectorHelpers/getCompanyView");
|
|
7
6
|
const depositAccountListSelector_1 = require("../depositAccountList/depositAccountListSelector");
|
|
8
7
|
const paymentAccountListSelector_1 = require("../paymentAccountList/paymentAccountListSelector");
|
|
9
8
|
const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccountsConfigSelector");
|
|
10
|
-
const getZeniAccountList = (state
|
|
9
|
+
const getZeniAccountList = (state) => {
|
|
11
10
|
const { zeniAccountListState, depositAccountState, paymentAccountState, plaidAccountViewState, depositAccountListState, paymentAccountListState, } = state;
|
|
12
11
|
const { plaidConnectionDetails } = plaidAccountViewState['external_account'];
|
|
13
12
|
const depositAccountsSelectorView = (0, depositAccountListSelector_1.getAllDepostAccounts)(depositAccountState, depositAccountListState);
|
|
14
13
|
const zeniAccountsConfig = (0, zeniAccountsConfigSelector_1.getZeniAccountsConfigDetail)(state);
|
|
15
|
-
const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
|
|
16
|
-
const companyBillPayInfo = companyView === null || companyView === void 0 ? void 0 : companyView.company.company.companyBillPayInfo;
|
|
17
14
|
const { paymentAccountIds } = paymentAccountListState;
|
|
18
15
|
const externalAccountsSelectorView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
|
|
19
16
|
let summary = undefined;
|
|
@@ -49,7 +46,6 @@ const getZeniAccountList = (state, companyId) => {
|
|
|
49
46
|
zeniAccountsConfig,
|
|
50
47
|
plaidConnectionDetails,
|
|
51
48
|
externalAccountsSelectorView,
|
|
52
|
-
companyBillPayAccountSetupStatus: companyBillPayInfo === null || companyBillPayInfo === void 0 ? void 0 : companyBillPayInfo.billPaymentAccountSetupStatus,
|
|
53
49
|
newCheckingAccount: zeniAccountListState.newCheckingAccount,
|
|
54
50
|
fetchState: zeniAccountListState.currentTab.id === 'zeniAccounts'
|
|
55
51
|
? depositAccountsSelectorView.fetchState
|
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.93",
|
|
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",
|