@zeniai/client-epic-state 4.11.16 → 4.11.17
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/billPay/billTransaction/billTransactionPayload.d.ts +9 -0
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +15 -2
- package/lib/entity/billPay/billTransaction/billTransactionReducer.d.ts +2 -1
- package/lib/entity/billPay/billTransaction/billTransactionReducer.js +25 -2
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +11 -1
- package/lib/entity/billPay/billTransaction/billTransactionState.js +9 -1
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +6 -0
- package/lib/entity/task/taskPayload.d.ts +2 -2
- package/lib/entity/task/taskPayload.js +1 -0
- package/lib/entity/task/taskState.d.ts +3 -2
- package/lib/entity/taskGroup/taskGroupPayload.d.ts +9 -0
- package/lib/entity/taskGroup/taskGroupPayload.js +14 -0
- package/lib/entity/taskGroup/taskGroupReducer.d.ts +6 -0
- package/lib/entity/taskGroup/taskGroupReducer.js +33 -0
- package/lib/entity/taskGroup/taskGroupSelector.d.ts +4 -0
- package/lib/entity/taskGroup/taskGroupSelector.js +18 -0
- package/lib/entity/taskGroup/taskGroupState.d.ts +12 -0
- package/lib/entity/taskGroup/taskGroupState.js +2 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +5 -2
- package/lib/entity/tenant/clearAllEpic.js +8 -0
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/attachment.d.ts +6 -0
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +3 -0
- package/lib/entity/transaction/stateTypes/transactionType.js +7 -3
- package/lib/entity/vendor/vendorPayload.d.ts +2 -0
- package/lib/entity/vendor/vendorPayload.js +5 -1
- package/lib/entity/vendor/vendorState.d.ts +2 -0
- package/lib/epic.d.ts +12 -1
- package/lib/epic.js +12 -1
- package/lib/index.d.ts +18 -12
- package/lib/index.js +37 -10
- package/lib/reducer.d.ts +9 -0
- package/lib/reducer.js +9 -0
- package/lib/view/companyView/selector/companyManagementViewSelector.js +13 -7
- package/lib/view/companyView/selector/companyPortfolioViewSelector.js +1 -6
- package/lib/view/fileView/fileUploadHelpers.d.ts +5 -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/reviewCompanyView/reviewCompanyViewSelector.js +26 -9
- package/lib/view/scheduleView/scheduleListView/scheduleListSelector.js +1 -1
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +3 -2
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +9 -3
- package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +19 -2
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +150 -3
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +1 -0
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +2 -0
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +32 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.js +2 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +17 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.js +166 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +24 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.js +45 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +28 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +7 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.d.ts +9 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.js +73 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.d.ts +8 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.js +74 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.d.ts +7 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.js +29 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.d.ts +8 -0
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +62 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +9 -8
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +6 -4
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
- package/lib/view/spendManagement/helpers.d.ts +3 -0
- package/lib/view/spendManagement/helpers.js +17 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +3 -3
- package/lib/view/subscriptionView/subscriptionViewSelector.js +5 -1
- package/lib/view/tagView/epics/createTagEpic.d.ts +1 -1
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +1 -1
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.d.ts +2 -1
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +11 -4
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.d.ts +2 -1
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.js +2 -1
- package/lib/view/taskManager/taskGroupView/epics/createNewTaskGroupEpic.d.ts +10 -0
- package/lib/view/taskManager/taskGroupView/epics/createNewTaskGroupEpic.js +57 -0
- package/lib/view/taskManager/taskGroupView/epics/deleteTaskGroupEpic.d.ts +10 -0
- package/lib/view/taskManager/taskGroupView/epics/deleteTaskGroupEpic.js +41 -0
- package/lib/view/taskManager/taskGroupView/epics/fetchAllTaskGroupsEpic.d.ts +8 -0
- package/lib/view/taskManager/taskGroupView/epics/fetchAllTaskGroupsEpic.js +33 -0
- package/lib/view/taskManager/taskGroupView/epics/updateTaskGroupNameEpic.d.ts +10 -0
- package/lib/view/taskManager/taskGroupView/epics/updateTaskGroupNameEpic.js +51 -0
- package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.d.ts +6 -0
- package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.js +2 -0
- package/lib/view/taskManager/taskGroupView/taskGroupViewReducer.d.ts +34 -0
- package/lib/view/taskManager/taskGroupView/taskGroupViewReducer.js +123 -0
- package/lib/view/taskManager/taskGroupView/taskGroupViewState.d.ts +7 -0
- package/lib/view/taskManager/taskGroupView/taskGroupViewState.js +2 -0
- package/lib/view/taskManager/taskListView/bulkUpdateTaskListEpic.d.ts +8 -0
- package/lib/view/taskManager/taskListView/bulkUpdateTaskListEpic.js +88 -0
- package/lib/view/taskManager/taskListView/dragNDropTasksEpic.d.ts +6 -0
- package/lib/view/taskManager/taskListView/dragNDropTasksEpic.js +20 -0
- package/lib/view/taskManager/taskListView/fetchTaskListPageEpic.d.ts +3 -1
- package/lib/view/taskManager/taskListView/fetchTaskListPageEpic.js +12 -0
- package/lib/view/taskManager/taskListView/taskList.d.ts +14 -1
- package/lib/view/taskManager/taskListView/taskListReducer.d.ts +31 -2
- package/lib/view/taskManager/taskListView/taskListReducer.js +136 -9
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +12 -2
- package/lib/view/taskManager/taskListView/taskListSelector.js +59 -23
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +22 -5
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.d.ts +10 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.js +37 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewViewEpic.js +1 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +11 -5
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +15 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +13 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +45 -3
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +8 -0
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.js +17 -2
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +6 -2
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +2 -1
- 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>;
|
package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js
ADDED
|
@@ -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: (
|
|
318
|
-
error: (
|
|
319
|
-
uploadStatus: (
|
|
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) => "
|
|
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" | "
|
|
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" | "
|
|
37
|
-
export declare const toRemiSubTabTypeStrict: (v: string) => "all" | "failed" | "rejected" | "ach" | "wire" | "cancelled" | "
|
|
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" | "
|
|
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";
|
|
@@ -370,6 +370,7 @@ const getSubscriptionListOnSortAndFitler = (sortKey, sortOrder, filterText, filt
|
|
|
370
370
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
371
371
|
let primarySortValue;
|
|
372
372
|
let secondarySortValue;
|
|
373
|
+
let isSecondarySortApplicable;
|
|
373
374
|
const subscription = (_a = company.primarySubscription) === null || _a === void 0 ? void 0 : _a.subscription;
|
|
374
375
|
const summary = (_b = company.primarySubscription) === null || _b === void 0 ? void 0 : _b.summary;
|
|
375
376
|
switch (sortKey) {
|
|
@@ -418,11 +419,14 @@ const getSubscriptionListOnSortAndFitler = (sortKey, sortOrder, filterText, filt
|
|
|
418
419
|
break;
|
|
419
420
|
case 'status':
|
|
420
421
|
default:
|
|
422
|
+
isSecondarySortApplicable = true;
|
|
421
423
|
primarySortValue = subscriptionTypes_1.SUBSCRIPTION_STATUS_CODES.indexOf((_u = (_t = subscription === null || subscription === void 0 ? void 0 : subscription.subscription) === null || _t === void 0 ? void 0 : _t.subscription.status.code) === null || _u === void 0 ? void 0 : _u.toLowerCase());
|
|
422
424
|
secondarySortValue =
|
|
423
425
|
(_v = summary === null || summary === void 0 ? void 0 : summary.summary.recommendedActionCode.toLowerCase()) !== null && _v !== void 0 ? _v : '';
|
|
424
426
|
}
|
|
425
|
-
return
|
|
427
|
+
return isSecondarySortApplicable === true
|
|
428
|
+
? [primarySortValue, secondarySortValue]
|
|
429
|
+
: primarySortValue;
|
|
426
430
|
},
|
|
427
431
|
], subscriptionSortOrder === 'asc' ? ['asc', 'asc'] : ['desc', 'asc']);
|
|
428
432
|
return [...sortedCompaniesWithSortKeyValue, ...companiesWithNoSortKeyValue];
|
|
@@ -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" | "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" | "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" | "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;
|
|
@@ -3,6 +3,7 @@ import { ZeniAPI } from '../../../../zeniAPI';
|
|
|
3
3
|
import { RootState } from '../../../../reducer';
|
|
4
4
|
import { saveTaskDetail, saveTaskSuccessOrFailure } from '../taskDetailReducer';
|
|
5
5
|
import { updateTasks } from '../../../../entity/task/taskReducer';
|
|
6
|
+
import { updateTaskListOnNewTaskCreationSuccess } from '../../taskListView/taskListReducer';
|
|
6
7
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
7
|
-
export declare type ActionType = ReturnType<typeof saveTaskDetail> | ReturnType<typeof updateTasks> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveTaskSuccessOrFailure>;
|
|
8
|
+
export declare type ActionType = ReturnType<typeof saveTaskDetail> | ReturnType<typeof updateTasks> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateTaskListOnNewTaskCreationSuccess> | ReturnType<typeof saveTaskSuccessOrFailure>;
|
|
8
9
|
export declare const saveTaskDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
@@ -6,20 +6,22 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const responsePayload_1 = require("../../../../responsePayload");
|
|
7
7
|
const taskDetailReducer_1 = require("../taskDetailReducer");
|
|
8
8
|
const taskReducer_1 = require("../../../../entity/task/taskReducer");
|
|
9
|
+
const taskListReducer_1 = require("../../taskListView/taskListReducer");
|
|
9
10
|
const taskSelector_1 = require("../../../../entity/task/taskSelector");
|
|
10
11
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
11
12
|
const formatZeniDateFY_1 = require("../../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
12
13
|
const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(taskDetailReducer_1.saveTaskDetail.match), (0, operators_1.mergeMap)((action) => {
|
|
13
|
-
const { taskId } = action.payload;
|
|
14
|
+
const { taskId, taskGroupId } = action.payload;
|
|
14
15
|
const state = state$.value;
|
|
15
|
-
const payload = prepareTaskPayload(state, taskId);
|
|
16
|
+
const payload = prepareTaskPayload(state, taskId, taskGroupId);
|
|
16
17
|
const saveTaskApi = taskId != null
|
|
17
18
|
? zeniAPI.putAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks/${taskId}`, payload)
|
|
18
19
|
: zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks`, payload);
|
|
19
20
|
return saveTaskApi.pipe((0, operators_1.mergeMap)((response) => {
|
|
20
21
|
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
|
21
22
|
response.data != null &&
|
|
22
|
-
response.data.tasks.length > 0
|
|
23
|
+
response.data.tasks.length > 0 &&
|
|
24
|
+
taskGroupId != null) {
|
|
23
25
|
const newTaskId = response.data.tasks[0].task_id;
|
|
24
26
|
const fetchActions = [
|
|
25
27
|
(0, taskReducer_1.updateTasks)(response.data.tasks),
|
|
@@ -28,6 +30,10 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
28
30
|
newTaskId,
|
|
29
31
|
taskId,
|
|
30
32
|
}),
|
|
33
|
+
(0, taskListReducer_1.updateTaskListOnNewTaskCreationSuccess)({
|
|
34
|
+
taskGroupId,
|
|
35
|
+
taskId: newTaskId,
|
|
36
|
+
}),
|
|
31
37
|
];
|
|
32
38
|
return (0, rxjs_1.from)(fetchActions);
|
|
33
39
|
}
|
|
@@ -58,7 +64,7 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
58
64
|
}))));
|
|
59
65
|
}));
|
|
60
66
|
exports.saveTaskDetailEpic = saveTaskDetailEpic;
|
|
61
|
-
const prepareTaskPayload = (state, taskId) => {
|
|
67
|
+
const prepareTaskPayload = (state, taskId, taskGroupId) => {
|
|
62
68
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
63
69
|
const { taskDetailState, taskState } = state;
|
|
64
70
|
const syncToken = taskId != null ? (_b = (_a = (0, taskSelector_1.getTaskById)(taskState, taskId)) === null || _a === void 0 ? void 0 : _a.syncToken) !== null && _b !== void 0 ? _b : '' : '';
|
|
@@ -84,5 +90,6 @@ const prepareTaskPayload = (state, taskId) => {
|
|
|
84
90
|
? (_h = (_g = localData.recurringStartDate) === null || _g === void 0 ? void 0 : _g.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _h !== void 0 ? _h : null
|
|
85
91
|
: null,
|
|
86
92
|
sync_token: syncToken,
|
|
93
|
+
task_group_ids: taskGroupId != null ? [taskGroupId] : [],
|
|
87
94
|
};
|
|
88
95
|
};
|
|
@@ -20,8 +20,9 @@ export declare const fetchTaskDetailPage: import("@reduxjs/toolkit").ActionCreat
|
|
|
20
20
|
taskId?: string | undefined;
|
|
21
21
|
}, string>, discardTaskUpdatesInLocalStore: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
22
22
|
taskId?: string | undefined;
|
|
23
|
-
}, string>, saveTaskDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[taskId?: string | undefined], {
|
|
23
|
+
}, string>, saveTaskDetail: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[taskId?: string | undefined, taskGroupId?: string | undefined], {
|
|
24
24
|
taskId: string | undefined;
|
|
25
|
+
taskGroupId: string | undefined;
|
|
25
26
|
}, string, never, never>, archiveTask: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[taskId: string], {
|
|
26
27
|
taskId: string;
|
|
27
28
|
}, string, never, never>, archiveTaskSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|