@zeniai/client-epic-state 4.11.94 → 4.11.96
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/company/companyPayload.d.ts +8 -0
- package/lib/entity/company/companyPayload.js +2 -0
- package/lib/entity/company/companyStateTypes.d.ts +2 -0
- package/lib/index.d.ts +0 -2
- 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 +4 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +5 -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 +0 -1
- package/package.json +1 -1
- package/lib/commonStateTypes/animations.d.ts +0 -2
- package/lib/commonStateTypes/animations.js +0 -32
|
@@ -89,6 +89,14 @@ 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
|
+
};
|
|
92
100
|
schedule_pay_now_cutoff_time_by_payment_method: BillPayNowCutOffByMethodPayload;
|
|
93
101
|
primary_funding_account: {
|
|
94
102
|
account_id: string | null;
|
|
@@ -143,6 +143,8 @@ 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),
|
|
146
148
|
payNowCutOffTimeByMethod: (0, exports.toPayNowCutOffByMethod)(payload.schedule_pay_now_cutoff_time_by_payment_method),
|
|
147
149
|
primaryFundingAccount: payload.primary_funding_account.account_id != null &&
|
|
148
150
|
payload.primary_funding_account.account_type != null
|
|
@@ -164,6 +164,8 @@ export interface CompanyBillPayInfo {
|
|
|
164
164
|
isInternationalWireEnabled: boolean;
|
|
165
165
|
businessVerificationStatus?: AllowedValueWithCode;
|
|
166
166
|
companyVerificationStatus?: AllowedValueWithCode;
|
|
167
|
+
billPaymentAccountSetupStatus?: AllowedValueWithCode;
|
|
168
|
+
billPaymentMethodType?: AllowedValueWithCode;
|
|
167
169
|
payNowCutOffTimeByMethod: BillPayNowCutOffByMethod;
|
|
168
170
|
primaryFundingAccount?: {
|
|
169
171
|
accountId: ID;
|
package/lib/index.d.ts
CHANGED
|
@@ -471,8 +471,6 @@ 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 };
|
|
476
474
|
import { getNextNthWorkingDay, getPreviousNthWorkingDay, isHolidayToday, filterDays, getYearsList, holidaysFormatted, isHoliday, PAYMENT_BUSINESS_DAYS } from './commonStateTypes/workingDayHelper';
|
|
477
475
|
export { reduceFetchState, reduceAnyFetchState, reduceAllFetchState, reduceAnyCompletedFetchState, isAnyFetchInProgress, isAllFetchCompleted, SortOrder, ALL_FILE_TYPES, FileType, toFileTypeStrict, };
|
|
478
476
|
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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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,3 +1,5 @@
|
|
|
1
|
+
import { AllowedValueWithCode } from '../../../../commonStateTypes/allowedValue';
|
|
2
|
+
import { ID } from '../../../../commonStateTypes/common';
|
|
1
3
|
import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
4
|
import { PaymentAccount } from '../../../../entity/paymentAccount/paymentAccountState';
|
|
3
5
|
import { RootState } from '../../../../reducer';
|
|
@@ -13,7 +15,8 @@ export interface ZeniAccountListSelectorView extends SelectorView {
|
|
|
13
15
|
plaidConnectionDetails: PlaidConnectionDetails;
|
|
14
16
|
newCheckingAccount: NewCheckingAccount;
|
|
15
17
|
zeniAccountsConfig: ZeniAccountsConfigSelectorView;
|
|
18
|
+
companyBillPayAccountSetupStatus?: AllowedValueWithCode;
|
|
16
19
|
paymentAccount?: PaymentAccount;
|
|
17
20
|
summary?: ZeniAccountSummaryWithBalance;
|
|
18
21
|
}
|
|
19
|
-
export declare const getZeniAccountList: (state: RootState) => ZeniAccountListSelectorView;
|
|
22
|
+
export declare const getZeniAccountList: (state: RootState, companyId: ID) => ZeniAccountListSelectorView;
|
|
@@ -3,14 +3,17 @@ 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");
|
|
6
7
|
const depositAccountListSelector_1 = require("../depositAccountList/depositAccountListSelector");
|
|
7
8
|
const paymentAccountListSelector_1 = require("../paymentAccountList/paymentAccountListSelector");
|
|
8
9
|
const zeniAccountsConfigSelector_1 = require("../zeniAccountsConfig/zeniAccountsConfigSelector");
|
|
9
|
-
const getZeniAccountList = (state) => {
|
|
10
|
+
const getZeniAccountList = (state, companyId) => {
|
|
10
11
|
const { zeniAccountListState, depositAccountState, paymentAccountState, plaidAccountViewState, depositAccountListState, paymentAccountListState, } = state;
|
|
11
12
|
const { plaidConnectionDetails } = plaidAccountViewState['external_account'];
|
|
12
13
|
const depositAccountsSelectorView = (0, depositAccountListSelector_1.getAllDepostAccounts)(depositAccountState, depositAccountListState);
|
|
13
14
|
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;
|
|
14
17
|
const { paymentAccountIds } = paymentAccountListState;
|
|
15
18
|
const externalAccountsSelectorView = (0, paymentAccountListSelector_1.getAllPaymentAccounts)(paymentAccountState, paymentAccountListState);
|
|
16
19
|
let summary = undefined;
|
|
@@ -46,6 +49,7 @@ const getZeniAccountList = (state) => {
|
|
|
46
49
|
zeniAccountsConfig,
|
|
47
50
|
plaidConnectionDetails,
|
|
48
51
|
externalAccountsSelectorView,
|
|
52
|
+
companyBillPayAccountSetupStatus: companyBillPayInfo === null || companyBillPayInfo === void 0 ? void 0 : companyBillPayInfo.billPaymentAccountSetupStatus,
|
|
49
53
|
newCheckingAccount: zeniAccountListState.newCheckingAccount,
|
|
50
54
|
fetchState: zeniAccountListState.currentTab.id === 'zeniAccounts'
|
|
51
55
|
? 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.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/1.0/zeni-clearing-account/statements`
|
|
12
|
+
: `${zeniAPI.apiEndPoints.payMicroServiceBaseUrl}/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.payMicroServiceBaseUrl}/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,7 +10,6 @@ export interface RESTAPIEndpoints {
|
|
|
10
10
|
readonly insightsMicroServiceBaseUrl: string;
|
|
11
11
|
readonly searchMicroServiceBaseUrl: string;
|
|
12
12
|
readonly payMicroServiceBaseUrl: string;
|
|
13
|
-
readonly bankingMicroServiceBaseUrl: string;
|
|
14
13
|
readonly fileMicroServiceBaseUrl: string;
|
|
15
14
|
readonly documentAIMicroServiceBaseUrl: string;
|
|
16
15
|
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.96",
|
|
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",
|
|
@@ -1,2 +0,0 @@
|
|
|
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>;
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|