@zeniai/client-epic-state 4.11.3 → 4.11.5
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/cardPayment/cardPaymentPayload.d.ts +26 -0
- package/lib/entity/cardPayment/cardPaymentPayload.js +28 -0
- package/lib/entity/cardPayment/cardPaymentReducer.d.ts +11 -0
- package/lib/entity/cardPayment/cardPaymentReducer.js +59 -0
- package/lib/entity/cardPayment/cardPaymentSelector.d.ts +6 -0
- package/lib/entity/cardPayment/cardPaymentSelector.js +27 -0
- package/lib/entity/cardPayment/cardPaymentState.d.ts +28 -0
- package/lib/entity/cardPayment/cardPaymentState.js +2 -0
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +4 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +4 -2
- package/lib/entity/tenant/clearAllEpic.js +4 -0
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/epic.d.ts +5 -1
- package/lib/epic.js +5 -1
- package/lib/index.d.ts +7 -2
- package/lib/index.js +18 -9
- package/lib/reducer.d.ts +6 -0
- package/lib/reducer.js +6 -0
- package/lib/view/cardPayment/cardPaymentViewPayload.d.ts +37 -0
- package/lib/view/cardPayment/cardPaymentViewPayload.js +2 -0
- package/lib/view/cardPayment/cardPaymentViewReducer.d.ts +32 -0
- package/lib/view/cardPayment/cardPaymentViewReducer.js +125 -0
- package/lib/view/cardPayment/cardPaymentViewSelector.d.ts +16 -0
- package/lib/view/cardPayment/cardPaymentViewSelector.js +24 -0
- package/lib/view/cardPayment/cardPaymentViewState.d.ts +19 -0
- package/lib/view/cardPayment/cardPaymentViewState.js +2 -0
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +34 -0
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.js +76 -0
- package/lib/view/cardPayment/epic/confirmCardSetupEpic.d.ts +25 -0
- package/lib/view/cardPayment/epic/confirmCardSetupEpic.js +50 -0
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +27 -0
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.js +62 -0
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +31 -0
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.js +69 -0
- package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +1 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewReducer.js +1 -0
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +1 -1
- package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +6 -14
- package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +1 -0
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
- package/lib/view/people/deletePersonEpic.d.ts +1 -1
- package/lib/view/people/invitePeopleEpic.d.ts +1 -1
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
- package/lib/view/people/resendInviteEpic.d.ts +1 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +3 -0
- package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailState.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.d.ts +2 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +5 -3
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.d.ts +4 -3
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.js +13 -6
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer.d.ts +2 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer.js +9 -2
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.d.ts +2 -0
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.js +1 -1
- package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewState.d.ts +4 -0
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/package.json +2 -1
|
@@ -13,8 +13,8 @@ const classSelector_1 = require("../../../../entity/class/classSelector");
|
|
|
13
13
|
const userSelector_1 = require("../../../../entity/user/userSelector");
|
|
14
14
|
const userRoleSelector_1 = require("../../../../entity/userRole/userRoleSelector");
|
|
15
15
|
const userListViewSelector_1 = require("../../../userListView/userListViewSelector");
|
|
16
|
-
const getChargeCardListView = (state,
|
|
17
|
-
const { addressState, chargeCardListState, chargeCardState, classState, userState, userRoleState, chargeCardConfigState, classListState, } = state;
|
|
16
|
+
const getChargeCardListView = (state, includeCreditAccountAndCashbackInfo) => {
|
|
17
|
+
const { addressState, chargeCardListState, chargeCardState, classState, userState, userRoleState, chargeCardConfigState, classListState, cashbackDetailState, } = state;
|
|
18
18
|
const searchText = chargeCardListState.searchText.toLowerCase();
|
|
19
19
|
const cards = (0, chargeCardSelector_1.getChargeCardsByIds)(chargeCardState, chargeCardListState.cardIds)
|
|
20
20
|
.map((chargeCard) => {
|
|
@@ -56,11 +56,12 @@ const getChargeCardListView = (state, includeCreditAccount) => {
|
|
|
56
56
|
}, sortOrder);
|
|
57
57
|
const userListSelectorView = (0, userListViewSelector_1.getUserList)(state, 'cardHolderCandidate');
|
|
58
58
|
const userList = userListSelectorView.users;
|
|
59
|
-
const fetchState =
|
|
59
|
+
const fetchState = includeCreditAccountAndCashbackInfo === true
|
|
60
60
|
? (0, reduceFetchState_1.reduceFetchState)([
|
|
61
61
|
chargeCardListState,
|
|
62
62
|
chargeCardListState.creditAccount,
|
|
63
63
|
chargeCardConfigState,
|
|
64
|
+
cashbackDetailState,
|
|
64
65
|
]).fetchState
|
|
65
66
|
: (0, reduceFetchState_1.reduceFetchState)([chargeCardListState, chargeCardConfigState])
|
|
66
67
|
.fetchState;
|
|
@@ -76,6 +77,7 @@ const getChargeCardListView = (state, includeCreditAccount) => {
|
|
|
76
77
|
return {
|
|
77
78
|
fetchState,
|
|
78
79
|
error: chargeCardListState.error,
|
|
80
|
+
totalCashback: cashbackDetailState.cashbackSummary.cashbackEarned,
|
|
79
81
|
cards: cardsInOrder,
|
|
80
82
|
unAssignedCredits: chargeCardListState.unAssignedCredits,
|
|
81
83
|
creditAccount: chargeCardListState.creditAccount,
|
package/lib/view/spendManagement/chargeCards/chargeCardList/fetchChargeCardListPageEpic.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { RootState } from '../../../../reducer';
|
|
4
|
-
import { fetchChargeCardConfig } from '../chargeCardConfig/chargeCardConfigReducer';
|
|
5
|
-
import { fetchChargeCardListPage, fetchCreditAccount, fetchChargeCardList } from './chargeCardListReducer';
|
|
6
4
|
import { fetchUserListByType } from '../../../userListView/userListViewReducer';
|
|
7
5
|
import { fetchClassList } from '../../../classList/classListReducer';
|
|
8
|
-
|
|
6
|
+
import { fetchChargeCardConfig } from '../chargeCardConfig/chargeCardConfigReducer';
|
|
7
|
+
import { fetchCashbackDetail } from '../cashbackDetail/cashbackDetailReducer';
|
|
8
|
+
import { fetchChargeCardListPage, fetchCreditAccount, fetchChargeCardList } from './chargeCardListReducer';
|
|
9
|
+
export declare type ActionType = ReturnType<typeof fetchChargeCardListPage> | ReturnType<typeof fetchCreditAccount> | ReturnType<typeof fetchChargeCardList> | ReturnType<typeof fetchChargeCardConfig> | ReturnType<typeof fetchUserListByType> | ReturnType<typeof fetchCashbackDetail> | ReturnType<typeof fetchClassList>;
|
|
9
10
|
export declare const fetchChargeCardListPageEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -3,17 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.fetchChargeCardListPageEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const chargeCardConfigReducer_1 = require("../chargeCardConfig/chargeCardConfigReducer");
|
|
7
|
-
const chargeCardListReducer_1 = require("./chargeCardListReducer");
|
|
8
6
|
const userListViewReducer_1 = require("../../../userListView/userListViewReducer");
|
|
9
7
|
const classListReducer_1 = require("../../../classList/classListReducer");
|
|
8
|
+
const chargeCardConfigReducer_1 = require("../chargeCardConfig/chargeCardConfigReducer");
|
|
9
|
+
const cashbackDetailReducer_1 = require("../cashbackDetail/cashbackDetailReducer");
|
|
10
|
+
const chargeCardListReducer_1 = require("./chargeCardListReducer");
|
|
10
11
|
const fetchChargeCardListPageEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(chargeCardListReducer_1.fetchChargeCardListPage.match), (0, operators_1.mergeMap)((action) => {
|
|
11
|
-
const {
|
|
12
|
+
const { doFetchCreditAccountsAndCashback, cacheOverride } = action.payload;
|
|
12
13
|
const chargeCardListPageAction = [];
|
|
13
14
|
const state = state$.value;
|
|
15
|
+
const cashbackDetailState = state.cashbackDetailState;
|
|
14
16
|
if (cacheOverride === true) {
|
|
15
|
-
if (
|
|
16
|
-
chargeCardListPageAction.push((0, chargeCardListReducer_1.fetchCreditAccount)());
|
|
17
|
+
if (doFetchCreditAccountsAndCashback === true) {
|
|
18
|
+
chargeCardListPageAction.push((0, chargeCardListReducer_1.fetchCreditAccount)(), (0, cashbackDetailReducer_1.fetchCashbackDetail)());
|
|
17
19
|
}
|
|
18
20
|
chargeCardListPageAction.push((0, chargeCardListReducer_1.fetchChargeCardList)());
|
|
19
21
|
chargeCardListPageAction.push((0, chargeCardConfigReducer_1.fetchChargeCardConfig)());
|
|
@@ -22,11 +24,16 @@ const fetchChargeCardListPageEpic = (actions$, state$) => actions$.pipe((0, oper
|
|
|
22
24
|
}
|
|
23
25
|
else {
|
|
24
26
|
const chargeCardList = state.chargeCardListState;
|
|
25
|
-
if (
|
|
27
|
+
if (doFetchCreditAccountsAndCashback === true &&
|
|
26
28
|
chargeCardList.creditAccount.fetchState !== 'Completed' &&
|
|
27
29
|
chargeCardList.creditAccount.fetchState !== 'In-Progress') {
|
|
28
30
|
chargeCardListPageAction.push((0, chargeCardListReducer_1.fetchCreditAccount)());
|
|
29
31
|
}
|
|
32
|
+
if (doFetchCreditAccountsAndCashback &&
|
|
33
|
+
cashbackDetailState.fetchState !== 'In-Progress' &&
|
|
34
|
+
cashbackDetailState.hasValidState() === false) {
|
|
35
|
+
chargeCardListPageAction.push((0, cashbackDetailReducer_1.fetchCashbackDetail)());
|
|
36
|
+
}
|
|
30
37
|
if (chargeCardList.fetchState !== 'In-Progress' &&
|
|
31
38
|
chargeCardList.hasValidState() === false) {
|
|
32
39
|
chargeCardListPageAction.push((0, chargeCardListReducer_1.fetchChargeCardList)());
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZeniAPIStatus } from '../../../../responsePayload';
|
|
2
|
-
import { ZeniAccountSetupViewState } from './zeniAccountSetupViewState';
|
|
2
|
+
import { ZeniAccountSetupViewState, ZeniAccountSetupViewUIState } from './zeniAccountSetupViewState';
|
|
3
3
|
export declare const initialState: ZeniAccountSetupViewState;
|
|
4
4
|
export declare const fetchZeniAccountSetupView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string, cacheOverride?: any, refreshViewInBackground?: any], {
|
|
5
5
|
companyId: string;
|
|
@@ -7,6 +7,6 @@ export declare const fetchZeniAccountSetupView: import("@reduxjs/toolkit").Actio
|
|
|
7
7
|
refreshViewInBackground: any;
|
|
8
8
|
}, string, never, never>, fetchZeniAccountSetupViewSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, fetchZeniAccountSetupViewFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, string, never, never>, acceptZeniAccountTerms: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
|
|
9
9
|
companyId: string;
|
|
10
|
-
}, string, never, never>, acceptZeniAccountTermsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, acceptZeniAccountTermsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, string, never, never>, clearZeniAccountSetupView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
10
|
+
}, string, never, never>, acceptZeniAccountTermsSuccess: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, acceptZeniAccountTermsFailure: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[error: ZeniAPIStatus<Record<string, unknown>>], ZeniAPIStatus<Record<string, unknown>>, string, never, never>, updateZeniAccountSetupViewUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<ZeniAccountSetupViewUIState>, string>, clearZeniAccountSetupView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
11
11
|
declare const _default: import("@reduxjs/toolkit").Reducer<ZeniAccountSetupViewState, import("@reduxjs/toolkit").AnyAction>;
|
|
12
12
|
export default _default;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewReducer.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearZeniAccountSetupView = exports.acceptZeniAccountTermsFailure = exports.acceptZeniAccountTermsSuccess = exports.acceptZeniAccountTerms = exports.fetchZeniAccountSetupViewFailure = exports.fetchZeniAccountSetupViewSuccess = exports.fetchZeniAccountSetupView = exports.initialState = void 0;
|
|
4
|
+
exports.clearZeniAccountSetupView = exports.updateZeniAccountSetupViewUIState = exports.acceptZeniAccountTermsFailure = exports.acceptZeniAccountTermsSuccess = exports.acceptZeniAccountTerms = exports.fetchZeniAccountSetupViewFailure = exports.fetchZeniAccountSetupViewSuccess = exports.fetchZeniAccountSetupView = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
exports.initialState = {
|
|
7
7
|
fetchState: 'Not-Started',
|
|
8
8
|
error: undefined,
|
|
9
9
|
isRefreshingViewInBackground: false,
|
|
10
10
|
zeniAccountTermsDetails: undefined,
|
|
11
|
+
uiState: {
|
|
12
|
+
isCardPaymentPopupOpen: false,
|
|
13
|
+
},
|
|
11
14
|
hasValidState() {
|
|
12
15
|
return this.fetchState === 'Completed';
|
|
13
16
|
},
|
|
@@ -84,10 +87,14 @@ const zeniAccountSetupView = (0, toolkit_1.createSlice)({
|
|
|
84
87
|
};
|
|
85
88
|
},
|
|
86
89
|
},
|
|
90
|
+
updateZeniAccountSetupViewUIState(draft, action) {
|
|
91
|
+
const updatedUiState = action.payload;
|
|
92
|
+
draft.uiState = Object.assign(Object.assign({}, draft.uiState), updatedUiState);
|
|
93
|
+
},
|
|
87
94
|
clearZeniAccountSetupView(draft) {
|
|
88
95
|
Object.assign(draft, exports.initialState);
|
|
89
96
|
},
|
|
90
97
|
},
|
|
91
98
|
});
|
|
92
|
-
_a = zeniAccountSetupView.actions, exports.fetchZeniAccountSetupView = _a.fetchZeniAccountSetupView, exports.fetchZeniAccountSetupViewSuccess = _a.fetchZeniAccountSetupViewSuccess, exports.fetchZeniAccountSetupViewFailure = _a.fetchZeniAccountSetupViewFailure, exports.acceptZeniAccountTerms = _a.acceptZeniAccountTerms, exports.acceptZeniAccountTermsSuccess = _a.acceptZeniAccountTermsSuccess, exports.acceptZeniAccountTermsFailure = _a.acceptZeniAccountTermsFailure, exports.clearZeniAccountSetupView = _a.clearZeniAccountSetupView;
|
|
99
|
+
_a = zeniAccountSetupView.actions, exports.fetchZeniAccountSetupView = _a.fetchZeniAccountSetupView, exports.fetchZeniAccountSetupViewSuccess = _a.fetchZeniAccountSetupViewSuccess, exports.fetchZeniAccountSetupViewFailure = _a.fetchZeniAccountSetupViewFailure, exports.acceptZeniAccountTerms = _a.acceptZeniAccountTerms, exports.acceptZeniAccountTermsSuccess = _a.acceptZeniAccountTermsSuccess, exports.acceptZeniAccountTermsFailure = _a.acceptZeniAccountTermsFailure, exports.updateZeniAccountSetupViewUIState = _a.updateZeniAccountSetupViewUIState, exports.clearZeniAccountSetupView = _a.clearZeniAccountSetupView;
|
|
93
100
|
exports.default = zeniAccountSetupView.reducer;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAnd
|
|
|
3
3
|
import { CompanyZeniAccountInfo } from '../../../../entity/company/companyStateTypes';
|
|
4
4
|
import { RootState } from '../../../../reducer';
|
|
5
5
|
import { BusinessVerificationDetails, CompanyOfficersDetails, SetupView } from '../../commonSetup/setupViewSelector';
|
|
6
|
+
import { ZeniAccountSetupViewUIState } from './zeniAccountSetupViewState';
|
|
6
7
|
export interface ZeniAccountSetupView extends SetupView, SelectorView {
|
|
7
8
|
companyZeniAccountInfo?: CompanyZeniAccountInfo;
|
|
8
9
|
zeniAccountTermsDetails?: {
|
|
@@ -10,6 +11,7 @@ export interface ZeniAccountSetupView extends SetupView, SelectorView {
|
|
|
10
11
|
};
|
|
11
12
|
selectedCompanyOfficer?: CompanyOfficersDetails;
|
|
12
13
|
isRefreshingViewInBackground: boolean;
|
|
14
|
+
uiState: ZeniAccountSetupViewUIState;
|
|
13
15
|
}
|
|
14
16
|
export interface ZeniAccountBusinessVerificationDetails extends BusinessVerificationDetails, SelectorView {
|
|
15
17
|
isRefreshingViewInBackground: boolean;
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewSelector.js
CHANGED
|
@@ -19,7 +19,7 @@ function getZeniAccountSetupViewDetails(state, companyId) {
|
|
|
19
19
|
error,
|
|
20
20
|
updateStatus,
|
|
21
21
|
selectedCompanyOfficer,
|
|
22
|
-
isRefreshingViewInBackground });
|
|
22
|
+
isRefreshingViewInBackground, uiState: zeniAccountSetupViewState.uiState });
|
|
23
23
|
}
|
|
24
24
|
exports.getZeniAccountSetupViewDetails = getZeniAccountSetupViewDetails;
|
|
25
25
|
function getZeniAccountBusinessVerificationDetails(state, companyId) {
|
package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewState.d.ts
CHANGED
|
@@ -6,4 +6,8 @@ export interface ZeniAccountSetupViewState extends FetchedState {
|
|
|
6
6
|
fetchStatus: FetchStateAndError;
|
|
7
7
|
};
|
|
8
8
|
isRefreshingViewInBackground: boolean;
|
|
9
|
+
uiState: ZeniAccountSetupViewUIState;
|
|
10
|
+
}
|
|
11
|
+
export interface ZeniAccountSetupViewUIState {
|
|
12
|
+
isCardPaymentPopupOpen: boolean;
|
|
9
13
|
}
|
|
@@ -8,7 +8,7 @@ import { updateCreatedTagToLocalStore } from '../../taskManager/taskDetailView/t
|
|
|
8
8
|
export declare type ActionType = ReturnType<typeof createTag> | ReturnType<typeof updateTagCreateStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateCreatedTagToLocalStore> | ReturnType<typeof updateTags>;
|
|
9
9
|
export declare const createTagEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
10
10
|
payload: {
|
|
11
|
-
messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification";
|
|
11
|
+
messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "create_setup_intent" | "confirm_card_setup_intent" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification";
|
|
12
12
|
messageText: "failed" | "success" | "notification";
|
|
13
13
|
type: import("../../..").SnackbarMessageType;
|
|
14
14
|
showStatusIcon?: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
9
9
|
type: string;
|
|
10
10
|
} | {
|
|
11
11
|
payload: {
|
|
12
|
-
messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification";
|
|
12
|
+
messageSection: "reimbursement_setup" | "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "charge_card_setup" | "charge_card_accept_term" | "create_schedule" | "save_schedule" | "delete_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "create_tag" | "delete_tag" | "update_charge_card" | "issue_charge_card" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "settings_accounting_accounts_updated" | "create_setup_intent" | "confirm_card_setup_intent" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification";
|
|
13
13
|
messageText: "failed" | "success" | "notification";
|
|
14
14
|
type: import("../../..").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean | undefined;
|
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.5",
|
|
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",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@reduxjs/toolkit": "^1.6.2",
|
|
51
|
+
"@stripe/stripe-js": "^4.1.0",
|
|
51
52
|
"cross-fetch": "^3.1.2",
|
|
52
53
|
"date-holidays": "^3.23.8",
|
|
53
54
|
"dayjs": "^1.10.7",
|