@zeniai/client-epic-state 4.11.14 → 4.11.15

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.
Files changed (58) hide show
  1. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +9 -0
  2. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +15 -2
  3. package/lib/entity/billPay/billTransaction/billTransactionReducer.d.ts +2 -1
  4. package/lib/entity/billPay/billTransaction/billTransactionReducer.js +25 -2
  5. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +11 -1
  6. package/lib/entity/billPay/billTransaction/billTransactionState.js +9 -1
  7. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  8. package/lib/entity/snackbar/snackbarTypes.js +2 -0
  9. package/lib/entity/task/taskState.d.ts +2 -2
  10. package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
  11. package/lib/entity/tenant/clearAllEpic.js +2 -0
  12. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
  13. package/lib/epic.d.ts +5 -1
  14. package/lib/epic.js +5 -1
  15. package/lib/index.d.ts +6 -3
  16. package/lib/index.js +27 -10
  17. package/lib/reducer.d.ts +3 -0
  18. package/lib/reducer.js +3 -0
  19. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +1 -1
  20. package/lib/view/people/deletePersonEpic.d.ts +1 -1
  21. package/lib/view/people/invitePeopleEpic.d.ts +1 -1
  22. package/lib/view/people/inviteZeniPeopleEpic.d.ts +1 -1
  23. package/lib/view/people/resendInviteEpic.d.ts +1 -1
  24. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
  25. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +3 -2
  26. package/lib/view/spendManagement/billPay/billList/billListReducer.js +9 -3
  27. package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +19 -2
  28. package/lib/view/spendManagement/billPay/billList/billListSelector.js +150 -3
  29. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  30. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -0
  31. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +2 -0
  32. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -0
  33. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +32 -0
  34. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.js +2 -0
  35. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +17 -0
  36. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.js +166 -0
  37. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +24 -0
  38. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.js +45 -0
  39. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +28 -0
  40. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +7 -0
  41. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.d.ts +9 -0
  42. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.js +73 -0
  43. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.d.ts +8 -0
  44. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.js +74 -0
  45. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.d.ts +7 -0
  46. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.js +29 -0
  47. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.d.ts +8 -0
  48. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +62 -0
  49. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +9 -8
  50. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +6 -4
  51. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
  52. package/lib/view/spendManagement/helpers.d.ts +3 -0
  53. package/lib/view/spendManagement/helpers.js +17 -1
  54. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
  55. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +3 -3
  56. package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
  57. package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
  58. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.approveOrRejectBillsBulkActionEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../../../responsePayload");
7
+ const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
8
+ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
9
+ const billTransactionReducer_1 = require("../../../../../entity/billPay/billTransaction/billTransactionReducer");
10
+ const approveOrRejectBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.approveOrRejectBillsBulkAction.match), (0, operators_1.mergeMap)((action) => {
11
+ const { approvalType, description } = action.payload;
12
+ const { billsBulkActionViewState } = state$.value;
13
+ const transactionIds = billsBulkActionViewState.billsSelectedForBulkAction;
14
+ const payload = prepareBulkApproveOrRejectPayload(transactionIds, approvalType, description);
15
+ return zeniAPI
16
+ .putAndGetJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/bulk/bills/transactions`, payload)
17
+ .pipe((0, operators_1.mergeMap)((response) => {
18
+ var _a, _b, _c, _d, _e, _f, _g, _h;
19
+ if ((0, responsePayload_1.isSuccessStatus)(response)) {
20
+ const actions = [];
21
+ actions.push((0, billsBulkActionViewReducer_1.billsBulkActionSuccess)({
22
+ billsProcessing: (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.total_operations_processing) !== null && _b !== void 0 ? _b : 0,
23
+ refreshTime: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.hard_refresh_after_sec) !== null && _d !== void 0 ? _d : 0,
24
+ }));
25
+ actions.push((0, billTransactionReducer_1.updateBillTransactionsWithBulkActionStatus)((_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.operations) !== null && _f !== void 0 ? _f : []));
26
+ actions.push((0, snackbarReducer_1.openSnackbar)({
27
+ messageSection: 'bill_pay_bulk_submit',
28
+ messageText: 'success',
29
+ type: 'success',
30
+ variables: [
31
+ {
32
+ variableName: '_count_',
33
+ variableValue: (_h = (_g = response.data) === null || _g === void 0 ? void 0 : _g.total_operations_processing.toString()) !== null && _h !== void 0 ? _h : '',
34
+ },
35
+ {
36
+ variableName: '_action_',
37
+ variableValue: approvalType,
38
+ },
39
+ ],
40
+ }));
41
+ return (0, rxjs_1.from)(actions);
42
+ }
43
+ else {
44
+ return (0, rxjs_1.of)((0, billsBulkActionViewReducer_1.billsBulkActionFailure)(response.status), (0, snackbarReducer_1.openSnackbar)({
45
+ messageSection: 'bill_pay_bulk_submit',
46
+ messageText: 'failed',
47
+ type: 'error',
48
+ variables: [
49
+ {
50
+ variableName: '_api-error_',
51
+ variableValue: response.status.message,
52
+ },
53
+ ],
54
+ }));
55
+ }
56
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, billsBulkActionViewReducer_1.billsBulkActionFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Bill bulk action REST API call errored out ' +
57
+ JSON.stringify(error))))));
58
+ }));
59
+ exports.approveOrRejectBillsBulkActionEpic = approveOrRejectBillsBulkActionEpic;
60
+ function prepareBulkApproveOrRejectPayload(transactionIds, approvalType, description) {
61
+ const bulkApproveOrRejectItems = transactionIds.map((id) => ({
62
+ entity_id: id,
63
+ request_data: {
64
+ approval_status: approvalType,
65
+ is_include_entity_approval: true,
66
+ description: description !== null && description !== void 0 ? description : '',
67
+ },
68
+ }));
69
+ return {
70
+ operation_type: approvalType === 'approved' ? 'approve' : 'reject',
71
+ operations: bulkApproveOrRejectItems,
72
+ };
73
+ }
@@ -0,0 +1,8 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { ZeniAPI } from '../../../../../zeniAPI';
3
+ import { RootState } from '../../../../../reducer';
4
+ import { updateBillTransactionsWithBulkActionStatus } from '../../../../../entity/billPay/billTransaction/billTransactionReducer';
5
+ import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
6
+ import { cancelOrDeleteBillsBulkAction, billsBulkActionFailure, billsBulkActionSuccess } from '../billsBulkActionViewReducer';
7
+ export declare type ActionType = ReturnType<typeof cancelOrDeleteBillsBulkAction> | ReturnType<typeof updateBillTransactionsWithBulkActionStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof billsBulkActionFailure> | ReturnType<typeof billsBulkActionSuccess>;
8
+ export declare const cancelOrDeleteBillsBulkActionEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cancelOrDeleteBillsBulkActionEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../../../responsePayload");
7
+ const billTransactionReducer_1 = require("../../../../../entity/billPay/billTransaction/billTransactionReducer");
8
+ const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
9
+ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
10
+ const cancelOrDeleteBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.cancelOrDeleteBillsBulkAction.match), (0, operators_1.mergeMap)((action) => {
11
+ const { operationType, description } = action.payload;
12
+ const { billsBulkActionViewState } = state$.value;
13
+ const transactionIds = billsBulkActionViewState.billsSelectedForBulkAction;
14
+ const payload = prepareBulkCancelOrDeletePayload(transactionIds, operationType, description);
15
+ const bulkApiUrl = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/bulk/bills/transactions`;
16
+ const api = operationType === 'cancel'
17
+ ? zeniAPI.putAndGetJSON(bulkApiUrl, payload)
18
+ : zeniAPI.deleteAndGetJSON(bulkApiUrl, payload);
19
+ return api.pipe((0, operators_1.mergeMap)((response) => {
20
+ var _a, _b, _c, _d, _e, _f, _g, _h;
21
+ if ((0, responsePayload_1.isSuccessStatus)(response)) {
22
+ const actions = [];
23
+ actions.push((0, billsBulkActionViewReducer_1.billsBulkActionSuccess)({
24
+ billsProcessing: (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.total_operations_processing) !== null && _b !== void 0 ? _b : 0,
25
+ refreshTime: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.hard_refresh_after_sec) !== null && _d !== void 0 ? _d : 0,
26
+ }));
27
+ actions.push((0, billTransactionReducer_1.updateBillTransactionsWithBulkActionStatus)((_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.operations) !== null && _f !== void 0 ? _f : []));
28
+ actions.push((0, snackbarReducer_1.openSnackbar)({
29
+ messageSection: 'bill_pay_bulk_submit',
30
+ messageText: 'success',
31
+ type: 'success',
32
+ variables: [
33
+ {
34
+ variableName: '_count_',
35
+ variableValue: (_h = (_g = response.data) === null || _g === void 0 ? void 0 : _g.total_operations_processing.toString()) !== null && _h !== void 0 ? _h : '',
36
+ },
37
+ {
38
+ variableName: '_action_',
39
+ variableValue: operationType === 'cancel' ? 'canceled' : 'deleted',
40
+ },
41
+ ],
42
+ }));
43
+ return (0, rxjs_1.from)(actions);
44
+ }
45
+ else {
46
+ return (0, rxjs_1.of)((0, billsBulkActionViewReducer_1.billsBulkActionFailure)(response.status), (0, snackbarReducer_1.openSnackbar)({
47
+ messageSection: 'bill_pay_bulk_submit',
48
+ messageText: 'failed',
49
+ type: 'error',
50
+ variables: [
51
+ {
52
+ variableName: '_api-error_',
53
+ variableValue: response.status.message,
54
+ },
55
+ ],
56
+ }));
57
+ }
58
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, billsBulkActionViewReducer_1.billsBulkActionFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Bill bulk action REST API call errored out ' +
59
+ JSON.stringify(error))))));
60
+ }));
61
+ exports.cancelOrDeleteBillsBulkActionEpic = cancelOrDeleteBillsBulkActionEpic;
62
+ function prepareBulkCancelOrDeletePayload(transactionIds, operationType, description) {
63
+ const bulkCancelOrDeleteItems = transactionIds.map((id) => ({
64
+ entity_id: id,
65
+ request_data: {
66
+ bill_pay_provider: 'zeni',
67
+ description,
68
+ },
69
+ }));
70
+ return {
71
+ operation_type: operationType,
72
+ operations: bulkCancelOrDeleteItems,
73
+ };
74
+ }
@@ -0,0 +1,7 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { ZeniAPI } from '../../../../../zeniAPI';
4
+ import { RootState } from '../../../../../reducer';
5
+ import { reviewDraftBillsBulkAction, reviewDraftBillsBulkActionFailure, reviewDraftBillsBulkActionSuccess } from '../billsBulkActionViewReducer';
6
+ export declare type ActionType = ReturnType<typeof reviewDraftBillsBulkAction> | ReturnType<typeof reviewDraftBillsBulkActionSuccess> | ReturnType<typeof reviewDraftBillsBulkActionFailure>;
7
+ export declare const reviewDraftBillsBulkActionEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.reviewDraftBillsBulkActionEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../../../responsePayload");
7
+ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
8
+ const reviewDraftBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.reviewDraftBillsBulkAction.match), (0, operators_1.mergeMap)(() => {
9
+ const { billsBulkActionViewState } = state$.value;
10
+ const transactionIds = billsBulkActionViewState.billsSelectedForBulkAction;
11
+ const queryParam = {
12
+ entity_ids: transactionIds,
13
+ };
14
+ return zeniAPI
15
+ .getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/bulk/bills//transactions/validate?query=${encodeURIComponent(JSON.stringify(queryParam))}`)
16
+ .pipe((0, operators_1.mergeMap)((response) => {
17
+ var _a, _b;
18
+ if ((0, responsePayload_1.isSuccessStatus)(response)) {
19
+ const actions = [];
20
+ actions.push((0, billsBulkActionViewReducer_1.reviewDraftBillsBulkActionSuccess)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.validation_results) !== null && _b !== void 0 ? _b : []));
21
+ return (0, rxjs_1.from)(actions);
22
+ }
23
+ else {
24
+ return (0, rxjs_1.of)((0, billsBulkActionViewReducer_1.reviewDraftBillsBulkActionFailure)(response.status));
25
+ }
26
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, billsBulkActionViewReducer_1.reviewDraftBillsBulkActionFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Bill bulk review action REST API call errored out ' +
27
+ JSON.stringify(error))))));
28
+ }));
29
+ exports.reviewDraftBillsBulkActionEpic = reviewDraftBillsBulkActionEpic;
@@ -0,0 +1,8 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { ZeniAPI } from '../../../../../zeniAPI';
3
+ import { RootState } from '../../../../../reducer';
4
+ import { updateBillTransactionsWithBulkActionStatus } from '../../../../../entity/billPay/billTransaction/billTransactionReducer';
5
+ import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
6
+ import { billsBulkActionFailure, submitDraftBillsBulkAction, billsBulkActionSuccess } from '../billsBulkActionViewReducer';
7
+ export declare type ActionType = ReturnType<typeof submitDraftBillsBulkAction> | ReturnType<typeof updateBillTransactionsWithBulkActionStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof billsBulkActionFailure> | ReturnType<typeof billsBulkActionSuccess>;
8
+ export declare const submitDraftBillsBulkActionEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.submitDraftBillsBulkActionEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../../../responsePayload");
7
+ const billTransactionReducer_1 = require("../../../../../entity/billPay/billTransaction/billTransactionReducer");
8
+ const snackbarReducer_1 = require("../../../../../entity/snackbar/snackbarReducer");
9
+ const billsBulkActionViewReducer_1 = require("../billsBulkActionViewReducer");
10
+ const submitDraftBillsBulkActionEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(billsBulkActionViewReducer_1.submitDraftBillsBulkAction.match), (0, operators_1.mergeMap)(() => {
11
+ const { billsBulkActionViewState } = state$.value;
12
+ const transactionIds = billsBulkActionViewState.billsSelectedForBulkAction;
13
+ const payload = {
14
+ operation_type: 'send_for_approval',
15
+ operations: transactionIds.map((id) => ({ entity_id: id })),
16
+ };
17
+ const bulkApiUrl = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/bulk/bills/transactions`;
18
+ return zeniAPI
19
+ .putAndGetJSON(bulkApiUrl, payload)
20
+ .pipe((0, operators_1.mergeMap)((response) => {
21
+ var _a, _b, _c, _d, _e, _f, _g, _h;
22
+ if ((0, responsePayload_1.isSuccessStatus)(response)) {
23
+ const actions = [];
24
+ actions.push((0, billsBulkActionViewReducer_1.billsBulkActionSuccess)({
25
+ billsProcessing: (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.total_operations_processing) !== null && _b !== void 0 ? _b : 0,
26
+ refreshTime: (_d = (_c = response.data) === null || _c === void 0 ? void 0 : _c.hard_refresh_after_sec) !== null && _d !== void 0 ? _d : 0,
27
+ }));
28
+ actions.push((0, billTransactionReducer_1.updateBillTransactionsWithBulkActionStatus)((_f = (_e = response.data) === null || _e === void 0 ? void 0 : _e.operations) !== null && _f !== void 0 ? _f : []));
29
+ actions.push((0, snackbarReducer_1.openSnackbar)({
30
+ messageSection: 'bill_pay_bulk_submit',
31
+ messageText: 'success',
32
+ type: 'success',
33
+ variables: [
34
+ {
35
+ variableName: '_count_',
36
+ variableValue: (_h = (_g = response.data) === null || _g === void 0 ? void 0 : _g.total_operations_processing.toString()) !== null && _h !== void 0 ? _h : '',
37
+ },
38
+ {
39
+ variableName: '_action_',
40
+ variableValue: 'sent for approval',
41
+ },
42
+ ],
43
+ }));
44
+ return (0, rxjs_1.from)(actions);
45
+ }
46
+ else {
47
+ return (0, rxjs_1.of)((0, billsBulkActionViewReducer_1.billsBulkActionFailure)(response.status), (0, snackbarReducer_1.openSnackbar)({
48
+ messageSection: 'bill_pay_bulk_submit',
49
+ messageText: 'failed',
50
+ type: 'error',
51
+ variables: [
52
+ {
53
+ variableName: '_api-error_',
54
+ variableValue: response.status.message,
55
+ },
56
+ ],
57
+ }));
58
+ }
59
+ }), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, billsBulkActionViewReducer_1.billsBulkActionFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected Error', 'Bulk Send For Approval bill REST API call errored out ' +
60
+ JSON.stringify(error))))));
61
+ }));
62
+ exports.submitDraftBillsBulkActionEpic = submitDraftBillsBulkActionEpic;
@@ -84,29 +84,30 @@ export interface EditBillDetailSelectorView extends SelectorView {
84
84
  billActivities: BillActivity[];
85
85
  saveStatus: FetchStateAndError | undefined;
86
86
  uploadStatus: FetchStateAndError | undefined;
87
+ approvalRules: BillPaySetupApproverView;
88
+ createdBy: User | undefined;
89
+ billHistory: ActivityHistorySelectorView;
90
+ isCollectToAccountInfoFromVendorContact: boolean;
91
+ accountsHierarchyList: NestedAccountHierarchyForReport[];
92
+ classHierarchyList: NestedClassHierarchyForReport[];
93
+ isRecurring: boolean;
94
+ withdrawFromList: FundingAccount[];
95
+ isProcessing: boolean;
87
96
  editBillInitialDetails?: EditBillInitialDetails;
88
97
  bookCloseDate?: ZeniDate;
89
98
  qboId?: ID;
90
99
  payNowCutOffTime?: ZeniDate;
91
- approvalRules: BillPaySetupApproverView;
92
- createdBy: User | undefined;
93
- billHistory: ActivityHistorySelectorView;
94
100
  createTime?: ZeniDate;
95
101
  billPayInfo?: BillPayInfo;
96
102
  toAccountVendorEmail?: string;
97
- isCollectToAccountInfoFromVendorContact: boolean;
98
103
  vendorContactSaveStatus?: FetchStateAndError;
99
- accountsHierarchyList: NestedAccountHierarchyForReport[];
100
- classHierarchyList: NestedClassHierarchyForReport[];
101
104
  latestApprovedDate?: ZeniDate;
102
105
  recommendationByLineID?: RecommendationByLineId;
103
106
  vendorDetailLocalData?: VendorDetailLocalData;
104
107
  recommendedVendor?: Vendor;
105
108
  lastRecommendedVendorName?: string;
106
- isRecurring: boolean;
107
109
  recurringConfig?: RecurringBillConfigLocalData;
108
110
  recurringBillInstances?: RecurringBillInstance[];
109
- withdrawFromList: FundingAccount[];
110
111
  }
111
112
  export interface EditBillInitialDetails {
112
113
  vendor?: Vendor;
@@ -31,7 +31,7 @@ const depositAccountListSelector_1 = require("../../zeniAccounts/depositAccountL
31
31
  const depositAccountSelector_1 = require("../../../../entity/depositAccount/depositAccountSelector");
32
32
  const setupViewSelector_1 = require("../../commonSetup/setupViewSelector");
33
33
  const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAccountsEnabled, billId) => {
34
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6;
34
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
35
35
  const { accountListState, accountState, bankAccountState, billDetailViewState, plaidAccountViewState, billTransactionState, billPayConfigState, classListState, classState, editBillDetailViewState, paymentAccountState, vendorState, tenantState, companyState, userState, commonHistoryState, contactState, paymentInstrumentState, recurringBillState, depositAccountListState, depositAccountState, } = state;
36
36
  const transaction = (0, get_1.default)(billTransactionState.transactionById, billId !== null && billId !== void 0 ? billId : '', undefined);
37
37
  let recommendations = {};
@@ -308,15 +308,16 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
308
308
  const accountsHierarchyList = (0, accountListSelector_1.getNestedAccountListHierarchy)(accountListState, 'billPayAccountList');
309
309
  const classHierarchyList = (0, classListSelector_1.getNestedClassListHierarchy)(classListState);
310
310
  const duplicateBills = (0, billPayReviewSelector_1.getDuplicateBills)(state, billId);
311
+ const isProcessing = (0, helpers_1.isBillProcessing)((_3 = transaction === null || transaction === void 0 ? void 0 : transaction.bulkProcessingDetail) === null || _3 === void 0 ? void 0 : _3.type);
311
312
  return {
312
313
  showVendorGptRecommendationText,
313
314
  recommendedVendor,
314
315
  lastRecommendedVendorName,
315
316
  duplicateBills,
316
317
  fetchState: fetchState,
317
- saveStatus: (_3 = sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.saveStatus) !== null && _3 !== void 0 ? _3 : undefined,
318
- error: (_5 = (_4 = sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.fetchStatus) === null || _4 === void 0 ? void 0 : _4.error) !== null && _5 !== void 0 ? _5 : undefined,
319
- uploadStatus: (_6 = sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.uploadFetchState) !== null && _6 !== void 0 ? _6 : undefined,
318
+ saveStatus: (_4 = sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.saveStatus) !== null && _4 !== void 0 ? _4 : undefined,
319
+ error: (_6 = (_5 = sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.fetchStatus) === null || _5 === void 0 ? void 0 : _5.error) !== null && _6 !== void 0 ? _6 : undefined,
320
+ uploadStatus: (_7 = sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.uploadFetchState) !== null && _7 !== void 0 ? _7 : undefined,
320
321
  version: 0,
321
322
  createdBy,
322
323
  createTime,
@@ -355,6 +356,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
355
356
  isRecurring,
356
357
  recurringBillInstances,
357
358
  recurringConfig,
359
+ isProcessing,
358
360
  };
359
361
  };
360
362
  exports.getEditBillDetail = getEditBillDetail;
@@ -22,7 +22,7 @@ export interface HistoricEventUpdate {
22
22
  export interface CommonHistoryState {
23
23
  historyById: Record<EntityHistoryDetailKey, CommonHistoryView>;
24
24
  }
25
- export declare const toHistoricEventUpdateType: (v: string) => "deleted" | "created" | "updated";
25
+ export declare const toHistoricEventUpdateType: (v: string) => "created" | "updated" | "deleted";
26
26
  export declare type HistoricEventUpdateType = ReturnType<typeof toHistoricEventUpdateType>;
27
27
  export declare const toHistoricEventUpdateDisplayType: (v: string) => "inline" | "list" | "sentence";
28
28
  export declare type HistoricEventUpdateDisplayType = ReturnType<typeof toHistoricEventUpdateDisplayType>;
@@ -8,6 +8,7 @@ import { AccType } from './billPay/billPayConfig/billPayConfigState';
8
8
  import { CurrentTenant } from '../../entity/tenant/tenantSelector';
9
9
  import { RoleMap } from '../../entity/userRole/userRoleType';
10
10
  import { BillPayInfo } from '../../entity/billPay/billTransaction/billTransactionState';
11
+ import { BillTransactionView } from './billPay/billList/billListSelector';
11
12
  export declare const getLatestApprovalDate: (allActivities: BillActivity[] | RemiActivity[]) => ZeniDate | undefined;
12
13
  export declare function getSpendManagementEffectiveListPeriod(): import("../..").TimePeriod;
13
14
  export declare const getSelectedCompanyOfficer: (verificationDetails: BusinessVerificationDetails) => CompanyOfficersDetails | undefined;
@@ -24,3 +25,5 @@ export declare function showReimbursementPromoPage(currentTenant: CurrentTenant,
24
25
  export declare function showBillPayPromoPage(currentTenant: CurrentTenant, userRoleMap: RoleMap): boolean;
25
26
  export declare const getActualPaymentDate: (billPayInfo: BillPayInfo) => ZeniDate | undefined;
26
27
  export declare function isVerifiedStatusCode(statusCode: string): boolean;
28
+ export declare const isBillProcessing: (processingState?: "error" | "processing_queued" | "processing" | "processed" | undefined) => boolean;
29
+ export declare const getBillListUniqueType: (selectedBills: BillTransactionView[]) => ('one-time' | 'recurring')[];
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showBillPayPromoPage = exports.showReimbursementPromoPage = exports.accountTypeSubConfigCodeToAccType = exports.getEndDate = exports.getTotalPayments = exports.isRecurringConfigChanged = exports.updateRecurringBillDetails = exports.getPaymentDateFromVendorReceiveDate = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getLatestApprovalDate = void 0;
6
+ exports.getBillListUniqueType = exports.isBillProcessing = exports.isVerifiedStatusCode = exports.getActualPaymentDate = exports.showBillPayPromoPage = exports.showReimbursementPromoPage = exports.accountTypeSubConfigCodeToAccType = exports.getEndDate = exports.getTotalPayments = exports.isRecurringConfigChanged = exports.updateRecurringBillDetails = exports.getPaymentDateFromVendorReceiveDate = exports.getSelectedCompanyOfficer = exports.getSpendManagementEffectiveListPeriod = exports.getLatestApprovalDate = void 0;
7
+ const uniq_1 = __importDefault(require("lodash/uniq"));
4
8
  const timeframeTick_1 = require("../../commonStateTypes/timeframeTick");
5
9
  const workingDayHelper_1 = require("../../commonStateTypes/workingDayHelper");
6
10
  const zeniDayJS_1 = require("../../zeniDayJS");
@@ -272,3 +276,15 @@ function isVerifiedStatusCode(statusCode) {
272
276
  ].includes(statusCode);
273
277
  }
274
278
  exports.isVerifiedStatusCode = isVerifiedStatusCode;
279
+ const isBillProcessing = (processingState) => {
280
+ return (processingState === 'processing' || processingState === 'processing_queued');
281
+ };
282
+ exports.isBillProcessing = isBillProcessing;
283
+ const getBillListUniqueType = (selectedBills) => {
284
+ let billType = [];
285
+ selectedBills.forEach((tran) => {
286
+ billType = (0, uniq_1.default)([...billType, tran.isRecurring ? 'recurring' : 'one-time']);
287
+ });
288
+ return billType;
289
+ };
290
+ exports.getBillListUniqueType = getBillListUniqueType;
@@ -24,7 +24,7 @@ export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWith
24
24
  }, string, never, never>, updateRemiListUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
25
25
  uiState: Partial<RemiListUIState>;
26
26
  period: TimePeriod;
27
- }, string>, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", string>, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", string>, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearRemiList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, string>, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
27
+ }, string>, updateTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"paid" | "pending_approval" | "scheduled" | "draft", string>, updateSubTab: import("@reduxjs/toolkit").ActionCreatorWithPayload<"all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval", string>, updateSelectedRemiId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, clearRemiList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateRemiDetailSaveRemiCode: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SaveRemiStageCode, string>, updateSearchResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, updateFilterResult: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
28
28
  filters: ReimbursementFilters;
29
29
  }, string>, updateRemiListDownloadUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
30
30
  uiState: Partial<RemiListDownloadUIState>;
@@ -33,10 +33,10 @@ export declare const ALL_REMI_TABS: readonly ["paid", "pending_approval", "sched
33
33
  export declare const toRemiTabType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
34
34
  export declare const toRemiTabTypeStrict: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft" | undefined;
35
35
  export declare type RemiTabType = ReturnType<typeof toRemiTabType>;
36
- export declare const toRemiSubTabType: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
37
- export declare const toRemiSubTabTypeStrict: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "overdue" | "deleted" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
36
+ export declare const toRemiSubTabType: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval";
37
+ export declare const toRemiSubTabTypeStrict: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "myDrafts" | "awaitingApproval" | "awaitingMyApproval" | "awaitingAllApproval" | undefined;
38
38
  export declare type RemiSubTabType = ReturnType<typeof toRemiSubTabType>;
39
- export declare const toRemiSubTabUnderScoreType: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "my_drafts" | "awaiting_all_approval";
39
+ export declare const toRemiSubTabUnderScoreType: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "deleted" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "my_drafts" | "awaiting_all_approval";
40
40
  export declare type RemiSubTabUnderScoreType = ReturnType<typeof toRemiSubTabUnderScoreType>;
41
41
  export declare const ALL_REIMBURSEMENT_SORT_KEYS: readonly ["reportName", "submittedOn", "type", "status", "amount"];
42
42
  export declare const toReimbursementSortKeyType: (v: string) => "type" | "status" | "amount" | "submittedOn" | "reportName";
@@ -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" | "save_vendor_marked_as_local_contractor" | "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" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
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" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "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" | "save_vendor_marked_as_local_contractor" | "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" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
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" | "save_vendor_marked_as_local_contractor" | "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" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
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" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "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" | "save_vendor_marked_as_local_contractor" | "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" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success";
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.14",
3
+ "version": "4.11.15",
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",