@zeniai/client-epic-state 4.11.15 → 4.11.16
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 +0 -9
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +2 -15
- package/lib/entity/billPay/billTransaction/billTransactionReducer.d.ts +1 -2
- package/lib/entity/billPay/billTransaction/billTransactionReducer.js +2 -25
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +1 -11
- package/lib/entity/billPay/billTransaction/billTransactionState.js +1 -9
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -6
- package/lib/entity/task/taskPayload.d.ts +2 -2
- package/lib/entity/task/taskPayload.js +0 -1
- package/lib/entity/task/taskState.d.ts +2 -3
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -5
- package/lib/entity/tenant/clearAllEpic.js +0 -8
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/transaction/stateTypes/attachment.d.ts +0 -6
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +0 -3
- package/lib/entity/transaction/stateTypes/transactionType.js +3 -7
- package/lib/entity/vendor/vendorPayload.d.ts +0 -2
- package/lib/entity/vendor/vendorPayload.js +1 -5
- package/lib/entity/vendor/vendorState.d.ts +0 -2
- package/lib/epic.d.ts +1 -12
- package/lib/epic.js +1 -12
- package/lib/index.d.ts +12 -18
- package/lib/index.js +10 -37
- package/lib/reducer.d.ts +0 -9
- package/lib/reducer.js +0 -9
- package/lib/view/companyView/selector/companyManagementViewSelector.js +7 -13
- package/lib/view/companyView/selector/companyPortfolioViewSelector.js +6 -1
- package/lib/view/fileView/fileUploadHelpers.d.ts +0 -5
- 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 +9 -26
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +2 -3
- package/lib/view/spendManagement/billPay/billList/billListReducer.js +3 -9
- package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +2 -19
- package/lib/view/spendManagement/billPay/billList/billListSelector.js +3 -150
- package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +0 -1
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigReducer.js +0 -2
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +0 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +8 -9
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -6
- package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +1 -1
- package/lib/view/spendManagement/helpers.d.ts +0 -3
- package/lib/view/spendManagement/helpers.js +1 -17
- 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 +1 -5
- 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 +1 -2
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +4 -11
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.d.ts +1 -2
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.js +1 -2
- package/lib/view/taskManager/taskListView/fetchTaskListPageEpic.d.ts +1 -3
- package/lib/view/taskManager/taskListView/fetchTaskListPageEpic.js +0 -12
- package/lib/view/taskManager/taskListView/taskList.d.ts +1 -14
- package/lib/view/taskManager/taskListView/taskListReducer.d.ts +2 -31
- package/lib/view/taskManager/taskListView/taskListReducer.js +9 -136
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +2 -12
- package/lib/view/taskManager/taskListView/taskListSelector.js +23 -59
- package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +5 -22
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewViewEpic.js +0 -1
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/saveVendorFirstReviewViewEpic.js +5 -11
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +0 -15
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.d.ts +3 -13
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewReducer.js +3 -45
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +0 -8
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.js +2 -17
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +2 -6
- package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +1 -2
- package/package.json +1 -1
- package/lib/entity/taskGroup/taskGroupPayload.d.ts +0 -9
- package/lib/entity/taskGroup/taskGroupPayload.js +0 -14
- package/lib/entity/taskGroup/taskGroupReducer.d.ts +0 -6
- package/lib/entity/taskGroup/taskGroupReducer.js +0 -33
- package/lib/entity/taskGroup/taskGroupSelector.d.ts +0 -4
- package/lib/entity/taskGroup/taskGroupSelector.js +0 -18
- package/lib/entity/taskGroup/taskGroupState.d.ts +0 -12
- package/lib/entity/taskGroup/taskGroupState.js +0 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +0 -32
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.js +0 -2
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.d.ts +0 -17
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewReducer.js +0 -166
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +0 -24
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.js +0 -45
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +0 -28
- package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +0 -7
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.d.ts +0 -9
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.js +0 -73
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.d.ts +0 -8
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.js +0 -74
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.d.ts +0 -7
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.js +0 -29
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.d.ts +0 -8
- package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +0 -62
- package/lib/view/taskManager/taskGroupView/epics/createNewTaskGroupEpic.d.ts +0 -10
- package/lib/view/taskManager/taskGroupView/epics/createNewTaskGroupEpic.js +0 -57
- package/lib/view/taskManager/taskGroupView/epics/deleteTaskGroupEpic.d.ts +0 -10
- package/lib/view/taskManager/taskGroupView/epics/deleteTaskGroupEpic.js +0 -41
- package/lib/view/taskManager/taskGroupView/epics/fetchAllTaskGroupsEpic.d.ts +0 -8
- package/lib/view/taskManager/taskGroupView/epics/fetchAllTaskGroupsEpic.js +0 -33
- package/lib/view/taskManager/taskGroupView/epics/updateTaskGroupNameEpic.d.ts +0 -10
- package/lib/view/taskManager/taskGroupView/epics/updateTaskGroupNameEpic.js +0 -51
- package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.d.ts +0 -6
- package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.js +0 -2
- package/lib/view/taskManager/taskGroupView/taskGroupViewReducer.d.ts +0 -34
- package/lib/view/taskManager/taskGroupView/taskGroupViewReducer.js +0 -123
- package/lib/view/taskManager/taskGroupView/taskGroupViewState.d.ts +0 -7
- package/lib/view/taskManager/taskGroupView/taskGroupViewState.js +0 -2
- package/lib/view/taskManager/taskListView/bulkUpdateTaskListEpic.d.ts +0 -8
- package/lib/view/taskManager/taskListView/bulkUpdateTaskListEpic.js +0 -88
- package/lib/view/taskManager/taskListView/dragNDropTasksEpic.d.ts +0 -6
- package/lib/view/taskManager/taskListView/dragNDropTasksEpic.js +0 -20
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.d.ts +0 -10
- package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.js +0 -37
|
@@ -19,7 +19,6 @@ exports.initialState = {
|
|
|
19
19
|
hasValidState() {
|
|
20
20
|
return this.fetchState == 'Completed';
|
|
21
21
|
},
|
|
22
|
-
billBulkSubmissionLimit: 10,
|
|
23
22
|
};
|
|
24
23
|
const billPayConfig = (0, toolkit_1.createSlice)({
|
|
25
24
|
name: 'billPayConfig',
|
|
@@ -78,7 +77,6 @@ const billPayConfig = (0, toolkit_1.createSlice)({
|
|
|
78
77
|
draft.fetchState = 'Completed';
|
|
79
78
|
draft.error = undefined;
|
|
80
79
|
draft.billPayBotEmail = payload.bill_pay_bot_email;
|
|
81
|
-
draft.billBulkSubmissionLimit = payload.bill_bulk_operation_max_count;
|
|
82
80
|
draft.vendor.supportedCountries = vendor.supported_countries.map((country) => {
|
|
83
81
|
return {
|
|
84
82
|
countryCode: country.country_code,
|
|
@@ -18,7 +18,6 @@ export interface BillPayConfigState extends FetchedState {
|
|
|
18
18
|
currencyListByCountryId: Record<ID, VendorCurrency[]>;
|
|
19
19
|
};
|
|
20
20
|
billPayBotEmail: string;
|
|
21
|
-
billBulkSubmissionLimit: number;
|
|
22
21
|
}
|
|
23
22
|
export interface VendorCurrency extends Currency {
|
|
24
23
|
currencyName: string;
|
|
@@ -84,30 +84,29 @@ 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;
|
|
96
87
|
editBillInitialDetails?: EditBillInitialDetails;
|
|
97
88
|
bookCloseDate?: ZeniDate;
|
|
98
89
|
qboId?: ID;
|
|
99
90
|
payNowCutOffTime?: ZeniDate;
|
|
91
|
+
approvalRules: BillPaySetupApproverView;
|
|
92
|
+
createdBy: User | undefined;
|
|
93
|
+
billHistory: ActivityHistorySelectorView;
|
|
100
94
|
createTime?: ZeniDate;
|
|
101
95
|
billPayInfo?: BillPayInfo;
|
|
102
96
|
toAccountVendorEmail?: string;
|
|
97
|
+
isCollectToAccountInfoFromVendorContact: boolean;
|
|
103
98
|
vendorContactSaveStatus?: FetchStateAndError;
|
|
99
|
+
accountsHierarchyList: NestedAccountHierarchyForReport[];
|
|
100
|
+
classHierarchyList: NestedClassHierarchyForReport[];
|
|
104
101
|
latestApprovedDate?: ZeniDate;
|
|
105
102
|
recommendationByLineID?: RecommendationByLineId;
|
|
106
103
|
vendorDetailLocalData?: VendorDetailLocalData;
|
|
107
104
|
recommendedVendor?: Vendor;
|
|
108
105
|
lastRecommendedVendorName?: string;
|
|
106
|
+
isRecurring: boolean;
|
|
109
107
|
recurringConfig?: RecurringBillConfigLocalData;
|
|
110
108
|
recurringBillInstances?: RecurringBillInstance[];
|
|
109
|
+
withdrawFromList: FundingAccount[];
|
|
111
110
|
}
|
|
112
111
|
export interface EditBillInitialDetails {
|
|
113
112
|
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;
|
|
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,16 +308,15 @@ 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);
|
|
312
311
|
return {
|
|
313
312
|
showVendorGptRecommendationText,
|
|
314
313
|
recommendedVendor,
|
|
315
314
|
lastRecommendedVendorName,
|
|
316
315
|
duplicateBills,
|
|
317
316
|
fetchState: fetchState,
|
|
318
|
-
saveStatus: (
|
|
319
|
-
error: (
|
|
320
|
-
uploadStatus: (
|
|
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,
|
|
321
320
|
version: 0,
|
|
322
321
|
createdBy,
|
|
323
322
|
createTime,
|
|
@@ -356,7 +355,6 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, isZeniAc
|
|
|
356
355
|
isRecurring,
|
|
357
356
|
recurringBillInstances,
|
|
358
357
|
recurringConfig,
|
|
359
|
-
isProcessing,
|
|
360
358
|
};
|
|
361
359
|
};
|
|
362
360
|
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) => "deleted" | "created" | "updated";
|
|
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,7 +8,6 @@ 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';
|
|
12
11
|
export declare const getLatestApprovalDate: (allActivities: BillActivity[] | RemiActivity[]) => ZeniDate | undefined;
|
|
13
12
|
export declare function getSpendManagementEffectiveListPeriod(): import("../..").TimePeriod;
|
|
14
13
|
export declare const getSelectedCompanyOfficer: (verificationDetails: BusinessVerificationDetails) => CompanyOfficersDetails | undefined;
|
|
@@ -25,5 +24,3 @@ export declare function showReimbursementPromoPage(currentTenant: CurrentTenant,
|
|
|
25
24
|
export declare function showBillPayPromoPage(currentTenant: CurrentTenant, userRoleMap: RoleMap): boolean;
|
|
26
25
|
export declare const getActualPaymentDate: (billPayInfo: BillPayInfo) => ZeniDate | undefined;
|
|
27
26
|
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,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
const uniq_1 = __importDefault(require("lodash/uniq"));
|
|
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;
|
|
8
4
|
const timeframeTick_1 = require("../../commonStateTypes/timeframeTick");
|
|
9
5
|
const workingDayHelper_1 = require("../../commonStateTypes/workingDayHelper");
|
|
10
6
|
const zeniDayJS_1 = require("../../zeniDayJS");
|
|
@@ -276,15 +272,3 @@ function isVerifiedStatusCode(statusCode) {
|
|
|
276
272
|
].includes(statusCode);
|
|
277
273
|
}
|
|
278
274
|
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" | "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<{
|
|
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" | "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;
|
|
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" | "overdue" | "awaiting_approval" | "awaiting_my_approval" | "deleted" | "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,7 +370,6 @@ 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;
|
|
374
373
|
const subscription = (_a = company.primarySubscription) === null || _a === void 0 ? void 0 : _a.subscription;
|
|
375
374
|
const summary = (_b = company.primarySubscription) === null || _b === void 0 ? void 0 : _b.summary;
|
|
376
375
|
switch (sortKey) {
|
|
@@ -419,14 +418,11 @@ const getSubscriptionListOnSortAndFitler = (sortKey, sortOrder, filterText, filt
|
|
|
419
418
|
break;
|
|
420
419
|
case 'status':
|
|
421
420
|
default:
|
|
422
|
-
isSecondarySortApplicable = true;
|
|
423
421
|
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());
|
|
424
422
|
secondarySortValue =
|
|
425
423
|
(_v = summary === null || summary === void 0 ? void 0 : summary.summary.recommendedActionCode.toLowerCase()) !== null && _v !== void 0 ? _v : '';
|
|
426
424
|
}
|
|
427
|
-
return
|
|
428
|
-
? [primarySortValue, secondarySortValue]
|
|
429
|
-
: primarySortValue;
|
|
425
|
+
return [primarySortValue, secondarySortValue];
|
|
430
426
|
},
|
|
431
427
|
], subscriptionSortOrder === 'asc' ? ['asc', 'asc'] : ['desc', 'asc']);
|
|
432
428
|
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" | "
|
|
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";
|
|
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" | "
|
|
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";
|
|
13
13
|
messageText: "failed" | "success" | "notification";
|
|
14
14
|
type: import("../../..").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean | undefined;
|
|
@@ -3,7 +3,6 @@ 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';
|
|
7
6
|
import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
8
|
-
export declare type ActionType = ReturnType<typeof saveTaskDetail> | ReturnType<typeof updateTasks> | ReturnType<typeof openSnackbar> | ReturnType<typeof
|
|
7
|
+
export declare type ActionType = ReturnType<typeof saveTaskDetail> | ReturnType<typeof updateTasks> | ReturnType<typeof openSnackbar> | ReturnType<typeof saveTaskSuccessOrFailure>;
|
|
9
8
|
export declare const saveTaskDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
@@ -6,22 +6,20 @@ 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");
|
|
10
9
|
const taskSelector_1 = require("../../../../entity/task/taskSelector");
|
|
11
10
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
12
11
|
const formatZeniDateFY_1 = require("../../../../commonStateTypes/fiscalYearHelpers/formatZeniDateFY");
|
|
13
12
|
const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(taskDetailReducer_1.saveTaskDetail.match), (0, operators_1.mergeMap)((action) => {
|
|
14
|
-
const { taskId
|
|
13
|
+
const { taskId } = action.payload;
|
|
15
14
|
const state = state$.value;
|
|
16
|
-
const payload = prepareTaskPayload(state, taskId
|
|
15
|
+
const payload = prepareTaskPayload(state, taskId);
|
|
17
16
|
const saveTaskApi = taskId != null
|
|
18
17
|
? zeniAPI.putAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks/${taskId}`, payload)
|
|
19
18
|
: zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks`, payload);
|
|
20
19
|
return saveTaskApi.pipe((0, operators_1.mergeMap)((response) => {
|
|
21
20
|
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
|
22
21
|
response.data != null &&
|
|
23
|
-
response.data.tasks.length > 0
|
|
24
|
-
taskGroupId != null) {
|
|
22
|
+
response.data.tasks.length > 0) {
|
|
25
23
|
const newTaskId = response.data.tasks[0].task_id;
|
|
26
24
|
const fetchActions = [
|
|
27
25
|
(0, taskReducer_1.updateTasks)(response.data.tasks),
|
|
@@ -30,10 +28,6 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
30
28
|
newTaskId,
|
|
31
29
|
taskId,
|
|
32
30
|
}),
|
|
33
|
-
(0, taskListReducer_1.updateTaskListOnNewTaskCreationSuccess)({
|
|
34
|
-
taskGroupId,
|
|
35
|
-
taskId: newTaskId,
|
|
36
|
-
}),
|
|
37
31
|
];
|
|
38
32
|
return (0, rxjs_1.from)(fetchActions);
|
|
39
33
|
}
|
|
@@ -64,7 +58,7 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
64
58
|
}))));
|
|
65
59
|
}));
|
|
66
60
|
exports.saveTaskDetailEpic = saveTaskDetailEpic;
|
|
67
|
-
const prepareTaskPayload = (state, taskId
|
|
61
|
+
const prepareTaskPayload = (state, taskId) => {
|
|
68
62
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
69
63
|
const { taskDetailState, taskState } = state;
|
|
70
64
|
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 : '' : '';
|
|
@@ -90,6 +84,5 @@ const prepareTaskPayload = (state, taskId, taskGroupId) => {
|
|
|
90
84
|
? (_h = (_g = localData.recurringStartDate) === null || _g === void 0 ? void 0 : _g.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)) !== null && _h !== void 0 ? _h : null
|
|
91
85
|
: null,
|
|
92
86
|
sync_token: syncToken,
|
|
93
|
-
task_group_ids: taskGroupId != null ? [taskGroupId] : [],
|
|
94
87
|
};
|
|
95
88
|
};
|
|
@@ -20,9 +20,8 @@ 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], {
|
|
24
24
|
taskId: string | undefined;
|
|
25
|
-
taskGroupId: string | undefined;
|
|
26
25
|
}, string, never, never>, archiveTask: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[taskId: string], {
|
|
27
26
|
taskId: string;
|
|
28
27
|
}, string, never, never>, archiveTaskSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -4,7 +4,5 @@ import { fetchTaskListPage, fetchTaskList } from './taskListReducer';
|
|
|
4
4
|
import { RootState } from '../../../reducer';
|
|
5
5
|
import { fetchUserListByType } from '../../userListView/userListViewReducer';
|
|
6
6
|
import { fetchClassList } from '../../classList/classListReducer';
|
|
7
|
-
|
|
8
|
-
import { fetchAllTaskGroups } from '../taskGroupView/taskGroupViewReducer';
|
|
9
|
-
export declare type ActionType = ReturnType<typeof fetchTaskListPage> | ReturnType<typeof fetchTaskList> | ReturnType<typeof fetchUserListByType> | ReturnType<typeof fetchTagList> | ReturnType<typeof fetchAllTaskGroups> | ReturnType<typeof fetchClassList>;
|
|
7
|
+
export declare type ActionType = ReturnType<typeof fetchTaskListPage> | ReturnType<typeof fetchTaskList> | ReturnType<typeof fetchUserListByType> | ReturnType<typeof fetchClassList>;
|
|
10
8
|
export declare const fetchTaskListPageEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -6,8 +6,6 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const taskListReducer_1 = require("./taskListReducer");
|
|
7
7
|
const userListViewReducer_1 = require("../../userListView/userListViewReducer");
|
|
8
8
|
const classListReducer_1 = require("../../classList/classListReducer");
|
|
9
|
-
const tagViewReducer_1 = require("../../tagView/tagViewReducer");
|
|
10
|
-
const taskGroupViewReducer_1 = require("../taskGroupView/taskGroupViewReducer");
|
|
11
9
|
const fetchTaskListPageEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(taskListReducer_1.fetchTaskListPage.match), (0, operators_1.mergeMap)((action) => {
|
|
12
10
|
const { cacheOverride } = action.payload;
|
|
13
11
|
const taskListPageActions = [];
|
|
@@ -16,8 +14,6 @@ const fetchTaskListPageEpic = (actions$, state$) => actions$.pipe((0, operators_
|
|
|
16
14
|
taskListPageActions.push((0, taskListReducer_1.fetchTaskList)());
|
|
17
15
|
taskListPageActions.push((0, classListReducer_1.fetchClassList)());
|
|
18
16
|
taskListPageActions.push((0, userListViewReducer_1.fetchUserListByType)('taskManagerCandidate', true));
|
|
19
|
-
taskListPageActions.push((0, tagViewReducer_1.fetchTagList)());
|
|
20
|
-
taskListPageActions.push((0, taskGroupViewReducer_1.fetchAllTaskGroups)());
|
|
21
17
|
}
|
|
22
18
|
else {
|
|
23
19
|
taskListPageActions.push((0, taskListReducer_1.fetchTaskList)());
|
|
@@ -30,14 +26,6 @@ const fetchTaskListPageEpic = (actions$, state$) => actions$.pipe((0, operators_
|
|
|
30
26
|
taskManageUsers.fetchState !== 'In-Progress') {
|
|
31
27
|
taskListPageActions.push((0, userListViewReducer_1.fetchUserListByType)('taskManagerCandidate', false));
|
|
32
28
|
}
|
|
33
|
-
if (state.tagViewState.hasValidState() === false &&
|
|
34
|
-
state.tagViewState.fetchState !== 'In-Progress') {
|
|
35
|
-
taskListPageActions.push((0, tagViewReducer_1.fetchTagList)());
|
|
36
|
-
}
|
|
37
|
-
if (state.taskGroupViewState.hasValidState() === false &&
|
|
38
|
-
state.taskGroupViewState.fetchState !== 'In-Progress') {
|
|
39
|
-
taskListPageActions.push((0, taskGroupViewReducer_1.fetchAllTaskGroups)());
|
|
40
|
-
}
|
|
41
29
|
}
|
|
42
30
|
return (0, rxjs_1.concat)((0, rxjs_1.from)(taskListPageActions));
|
|
43
31
|
}));
|
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
import { FetchedState,
|
|
1
|
+
import { FetchedState, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
3
3
|
import { SpendManagementUIState } from '../../spendManagement/billPay/billList/billListState';
|
|
4
4
|
import { CategoryCombinationOperator, FilterCategoryType } from '../../spendManagement/spendManagementFilterHelpers';
|
|
5
|
-
export interface NewTaskGroupLocalData {
|
|
6
|
-
taskIds: ID[];
|
|
7
|
-
groupName: string;
|
|
8
|
-
}
|
|
9
|
-
export interface TaskListLocalData {
|
|
10
|
-
newTaskGroupName: string;
|
|
11
|
-
selectedTaskIds: ID[];
|
|
12
|
-
existingTaskGroupNamesByGroupId: Record<ID, string>;
|
|
13
|
-
defaultTaskGroupId: ID | null;
|
|
14
|
-
}
|
|
15
5
|
export interface TaskListState extends FetchedState {
|
|
16
6
|
taskIds: ID[];
|
|
17
|
-
taskIdsByGroupsIds: Record<ID, ID[]>;
|
|
18
7
|
uiState: TaskListUIState;
|
|
19
8
|
searchText: string;
|
|
20
9
|
filters: TaskListFilters;
|
|
21
|
-
localData: TaskListLocalData;
|
|
22
|
-
updateTasksFetchState: FetchStateAndError;
|
|
23
10
|
}
|
|
24
11
|
export interface TaskListFilters {
|
|
25
12
|
categoryCombinationOperator: CategoryCombinationOperator;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { FetchState,
|
|
1
|
+
import { FetchState, UpdateType } from '../../../commonStateTypes/common';
|
|
2
2
|
import { TaskPayload } from '../../../entity/task/taskPayload';
|
|
3
3
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
4
|
-
import { TaskListFilters,
|
|
5
|
-
import { TaskGroup } from '../../../entity/taskGroup/taskGroupState';
|
|
6
|
-
import { Task } from '../../../entity/task/taskState';
|
|
7
|
-
import { TaskGroupPayload } from '../../../entity/taskGroup/taskGroupPayload';
|
|
8
|
-
export declare const initialLocalData: TaskListLocalData;
|
|
4
|
+
import { TaskListFilters, TaskListState, TaskListUIState } from './taskList';
|
|
9
5
|
export declare const initialState: TaskListState;
|
|
10
6
|
export declare const fetchTaskListPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean], {
|
|
11
7
|
cacheOverride: boolean;
|
|
@@ -21,31 +17,6 @@ export declare const fetchTaskListPage: import("@reduxjs/toolkit").ActionCreator
|
|
|
21
17
|
uiState: Partial<TaskListUIState>;
|
|
22
18
|
}, string>, updateTaskFilters: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
23
19
|
filters: TaskListFilters;
|
|
24
|
-
}, string>, updateTaskListOnNewGroupCreationSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
25
|
-
newTaskGroup: TaskGroupPayload;
|
|
26
|
-
}, string>, bulkUpdateTaskList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[taskIds: string[], updates: Partial<Task>], {
|
|
27
|
-
taskIds: string[];
|
|
28
|
-
updates: Partial<Task>;
|
|
29
|
-
}, string, never, never>, updateTasksListOnBulkUpdateTasksSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
30
|
-
taskIds: ID[];
|
|
31
|
-
groupId: ID | null;
|
|
32
|
-
}, string>, updateTasksListOnBulkUpdateTasksFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
33
|
-
error: ZeniAPIStatus;
|
|
34
|
-
}, string>, initiateTaskListLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
35
|
-
taskGroupById: Record<ID, TaskGroup>;
|
|
36
|
-
}, string>, updateTaskListLocalData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
37
|
-
localData: TaskListLocalData;
|
|
38
|
-
}, string>, updateTaskListOnTaskGroupDeletion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
39
|
-
taskGroupId: ID;
|
|
40
|
-
}, string>, dragNDropTasks: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[taskIds: string[], groupId: any], {
|
|
41
|
-
taskIds: string[];
|
|
42
|
-
groupId: any;
|
|
43
|
-
}, string, never, never>, updateTaskListOnNewTaskCreationSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
44
|
-
taskId: ID;
|
|
45
|
-
taskGroupId: ID;
|
|
46
|
-
}, string>, updateTaskListOnTaskGroupNameUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
47
|
-
taskGroupName: ID;
|
|
48
|
-
taskGroupId: ID;
|
|
49
20
|
}, string>, clearTaskList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
50
21
|
declare const _default: import("@reduxjs/toolkit").Reducer<TaskListState, import("@reduxjs/toolkit").AnyAction>;
|
|
51
22
|
export default _default;
|