@zeniai/client-epic-state 4.12.45 → 4.12.47
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/commonStateTypes/fiscalYearHelpers/formatMinutesToFromHHMM.d.ts +2 -0
- package/lib/commonStateTypes/fiscalYearHelpers/formatMinutesToFromHHMM.js +26 -0
- package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +12 -1
- package/lib/entity/billPay/billTransaction/billTransactionPayload.js +23 -1
- package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +12 -0
- package/lib/entity/billPay/billTransaction/billTransactionState.js +8 -0
- package/lib/entity/jeSchedules/jeSchedulesReducer.d.ts +2 -2
- package/lib/entity/snackbar/snackbarState.d.ts +6 -0
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -5
- package/lib/entity/snackbar/snackbarTypes.js +3 -0
- package/lib/entity/task/taskPayload.d.ts +1 -0
- package/lib/entity/task/taskPayload.js +5 -1
- package/lib/entity/task/taskState.d.ts +1 -0
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +1 -1
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.js +12 -5
- package/lib/entity/toastNotification/toastNotificationConstants.d.ts +4 -0
- package/lib/entity/toastNotification/toastNotificationConstants.js +7 -0
- package/lib/entity/toastNotification/toastNotificationPayload.js +28 -15
- package/lib/entity/toastNotification/toastNotificationState.d.ts +8 -8
- package/lib/entity/toastNotification/toastNotificationState.js +9 -8
- package/lib/entity/transaction/stateTypes/transactionType.d.ts +2 -2
- package/lib/entity/vendor/vendorReducer.js +1 -1
- package/lib/epic.d.ts +8 -6
- package/lib/epic.js +8 -6
- package/lib/index.d.ts +8 -6
- package/lib/index.js +16 -12
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +1 -1
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +1 -1
- 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/scheduleView/scheduleDetailView/scheduleDetailReducer.d.ts +4 -4
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +5 -0
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.d.ts +22 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewReducer.js +133 -2
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.d.ts +2 -1
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +2 -0
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.d.ts +9 -0
- package/lib/view/spendManagement/billPay/billDetailView/billDetailViewState.js +14 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.d.ts +2 -2
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +10 -1
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic.d.ts +7 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/fetchEligibleActionsForBillEpic.js +42 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.d.ts +9 -0
- package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.js +76 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +1 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +3 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.d.ts +3 -1
- package/lib/view/spendManagement/billPay/editBillView/editBillViewReducer.js +6 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +1 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -0
- package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +1 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +68 -0
- package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +2 -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/initializeTaskToLocalStoreEpic.js +1 -0
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +2 -0
- package/lib/view/taskManager/taskDetailView/taskDetail.d.ts +1 -0
- package/lib/view/taskManager/taskDetailView/taskDetail.js +1 -0
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +2 -1
- package/lib/view/taskManager/taskListView/{bulkUpdateTaskListEpic.d.ts → epics/bulkUpdateTaskListEpic.d.ts} +8 -6
- package/lib/view/taskManager/taskListView/{bulkUpdateTaskListEpic.js → epics/bulkUpdateTaskListEpic.js} +13 -5
- package/lib/view/taskManager/taskListView/{dragNDropTasksEpic.d.ts → epics/dragNDropTasksEpic.d.ts} +2 -2
- package/lib/view/taskManager/taskListView/{dragNDropTasksEpic.js → epics/dragNDropTasksEpic.js} +2 -2
- package/lib/view/taskManager/taskListView/{fetchTaskListEpic.d.ts → epics/fetchTaskListEpic.d.ts} +5 -5
- package/lib/view/taskManager/taskListView/{fetchTaskListEpic.js → epics/fetchTaskListEpic.js} +4 -4
- package/lib/view/taskManager/taskListView/{fetchTaskListPageEpic.d.ts → epics/fetchTaskListPageEpic.d.ts} +6 -6
- package/lib/view/taskManager/taskListView/{fetchTaskListPageEpic.js → epics/fetchTaskListPageEpic.js} +5 -5
- package/lib/view/taskManager/taskListView/{updateTaskFromListViewEpic.d.ts → epics/updateTaskFromListViewEpic.d.ts} +4 -4
- package/lib/view/taskManager/taskListView/{updateTaskFromListViewEpic.js → epics/updateTaskFromListViewEpic.js} +5 -7
- package/lib/view/taskManager/taskListView/taskList.d.ts +1 -1
- package/lib/view/taskManager/taskListView/taskList.js +1 -0
- package/lib/view/taskManager/taskListView/taskListSelector.js +2 -0
- package/lib/view/transactionDetail/transactionDetailState.d.ts +2 -2
- package/package.json +1 -1
package/lib/view/taskManager/taskListView/{fetchTaskListEpic.js → epics/fetchTaskListEpic.js}
RENAMED
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.fetchTaskListEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const responsePayload_1 = require("
|
|
7
|
-
const taskListReducer_1 = require("
|
|
8
|
-
const taskReducer_1 = require("
|
|
9
|
-
const tagReducer_1 = require("
|
|
6
|
+
const responsePayload_1 = require("../../../../responsePayload");
|
|
7
|
+
const taskListReducer_1 = require("../taskListReducer");
|
|
8
|
+
const taskReducer_1 = require("../../../../entity/task/taskReducer");
|
|
9
|
+
const tagReducer_1 = require("../../../../entity/tag/tagReducer");
|
|
10
10
|
const fetchTaskListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(taskListReducer_1.fetchTaskList.match), (0, operators_1.switchMap)(() => {
|
|
11
11
|
return zeniAPI
|
|
12
12
|
.getJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks?query=${encodeURIComponent(`{"task_type": "all"}`)}`)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { fetchTaskListPage, fetchTaskList } from '
|
|
4
|
-
import { RootState } from '
|
|
5
|
-
import { fetchUserListByType } from '
|
|
6
|
-
import { fetchClassList } from '
|
|
7
|
-
import { fetchTagList } from '
|
|
8
|
-
import { fetchAllTaskGroups } from '
|
|
3
|
+
import { fetchTaskListPage, fetchTaskList } from '../taskListReducer';
|
|
4
|
+
import { RootState } from '../../../../reducer';
|
|
5
|
+
import { fetchUserListByType } from '../../../userListView/userListViewReducer';
|
|
6
|
+
import { fetchClassList } from '../../../classList/classListReducer';
|
|
7
|
+
import { fetchTagList } from '../../../tagView/tagViewReducer';
|
|
8
|
+
import { fetchAllTaskGroups } from '../../taskGroupView/taskGroupViewReducer';
|
|
9
9
|
export declare type ActionType = ReturnType<typeof fetchTaskListPage> | ReturnType<typeof fetchTaskList> | ReturnType<typeof fetchUserListByType> | ReturnType<typeof fetchTagList> | ReturnType<typeof fetchAllTaskGroups> | ReturnType<typeof fetchClassList>;
|
|
10
10
|
export declare const fetchTaskListPageEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.fetchTaskListPageEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const taskListReducer_1 = require("
|
|
7
|
-
const userListViewReducer_1 = require("
|
|
8
|
-
const classListReducer_1 = require("
|
|
9
|
-
const tagViewReducer_1 = require("
|
|
10
|
-
const taskGroupViewReducer_1 = require("
|
|
6
|
+
const taskListReducer_1 = require("../taskListReducer");
|
|
7
|
+
const userListViewReducer_1 = require("../../../userListView/userListViewReducer");
|
|
8
|
+
const classListReducer_1 = require("../../../classList/classListReducer");
|
|
9
|
+
const tagViewReducer_1 = require("../../../tagView/tagViewReducer");
|
|
10
|
+
const taskGroupViewReducer_1 = require("../../taskGroupView/taskGroupViewReducer");
|
|
11
11
|
const fetchTaskListPageEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(taskListReducer_1.fetchTaskListPage.match), (0, operators_1.mergeMap)((action) => {
|
|
12
12
|
const { cacheOverride } = action.payload;
|
|
13
13
|
const taskListPageActions = [];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { RootState } from '
|
|
4
|
-
import { ZeniAPI } from '
|
|
5
|
-
import { updateTaskFromListView, updateTasksListOnUpdateTaskSuccess, updateTasksListOnUpdateTaskFailure } from '
|
|
6
|
-
import { updateTasks } from '
|
|
3
|
+
import { RootState } from '../../../../reducer';
|
|
4
|
+
import { ZeniAPI } from '../../../../zeniAPI';
|
|
5
|
+
import { updateTaskFromListView, updateTasksListOnUpdateTaskSuccess, updateTasksListOnUpdateTaskFailure } from '../taskListReducer';
|
|
6
|
+
import { updateTasks } from '../../../../entity/task/taskReducer';
|
|
7
7
|
export declare type ActionType = ReturnType<typeof updateTaskFromListView> | ReturnType<typeof updateTasks> | ReturnType<typeof updateTasksListOnUpdateTaskFailure> | ReturnType<typeof updateTasksListOnUpdateTaskSuccess>;
|
|
8
8
|
export declare const updateTaskFromListViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -3,19 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.updateTaskFromListViewEpic = void 0;
|
|
4
4
|
const rxjs_1 = require("rxjs");
|
|
5
5
|
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const responsePayload_1 = require("
|
|
7
|
-
const taskListReducer_1 = require("
|
|
8
|
-
const taskReducer_1 = require("
|
|
6
|
+
const responsePayload_1 = require("../../../../responsePayload");
|
|
7
|
+
const taskListReducer_1 = require("../taskListReducer");
|
|
8
|
+
const taskReducer_1 = require("../../../../entity/task/taskReducer");
|
|
9
9
|
const bulkUpdateTaskListEpic_1 = require("./bulkUpdateTaskListEpic");
|
|
10
10
|
const updateTaskFromListViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(taskListReducer_1.updateTaskFromListView.match), (0, operators_1.switchMap)((action) => {
|
|
11
11
|
const state = state$.value;
|
|
12
12
|
const { task, updates } = action.payload;
|
|
13
13
|
const taskId = task.id;
|
|
14
|
-
const
|
|
15
|
-
tasks: (0, bulkUpdateTaskListEpic_1.getTasksListPayload)(state, [taskId], updates),
|
|
16
|
-
};
|
|
14
|
+
const taskData = (0, bulkUpdateTaskListEpic_1.getTaskPayload)(state, taskId, updates);
|
|
17
15
|
return zeniAPI
|
|
18
|
-
.putAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks`,
|
|
16
|
+
.putAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks/${taskId}`, Object.assign({}, taskData))
|
|
19
17
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
20
18
|
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
21
19
|
return (0, rxjs_1.from)([
|
|
@@ -45,7 +45,7 @@ export interface TaskListUIState extends SpendManagementUIState {
|
|
|
45
45
|
searchText: string;
|
|
46
46
|
groupByKey: TaskGroupKey;
|
|
47
47
|
}
|
|
48
|
-
declare const toTaskListSortKeyType: (v: string) => "priority" | "name" | "status" | "dueDate" | "assignee" | "creationDate" | "tag";
|
|
48
|
+
declare const toTaskListSortKeyType: (v: string) => "priority" | "name" | "status" | "dueDate" | "assignee" | "creationDate" | "tag" | "timeSpent";
|
|
49
49
|
export declare type TaskListViewSortKey = ReturnType<typeof toTaskListSortKeyType>;
|
|
50
50
|
export declare const TASK_LIST_FILTER_CATEGORIES: TaskListFilterCategoryOption[];
|
|
51
51
|
interface TaskListFilterCategoryOption {
|
|
@@ -39,6 +39,8 @@ const sortTasksList = (tagState, tasksList, sortKey, sortOrder) => {
|
|
|
39
39
|
return task.status.name;
|
|
40
40
|
case 'priority':
|
|
41
41
|
return taskState_1.ALL_PRIORITY_CODE.indexOf(task.priority.code);
|
|
42
|
+
case 'timeSpent':
|
|
43
|
+
return task.timeSpent;
|
|
42
44
|
case 'name':
|
|
43
45
|
default:
|
|
44
46
|
return task.name.toLowerCase();
|
|
@@ -8,9 +8,9 @@ import { Transaction, TransactionID } from '../../entity/transaction/stateTypes/
|
|
|
8
8
|
import { VendorBase } from '../../entity/vendor/vendorState';
|
|
9
9
|
import { EntityRecommendationKey } from '../recommendation/recommendationState';
|
|
10
10
|
import { TransactionDetailLocalData } from './transactionDetailTypes';
|
|
11
|
-
export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}
|
|
11
|
+
export declare const getTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
12
12
|
export declare type TransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
|
|
13
|
-
export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}
|
|
13
|
+
export declare const getZeniTransactionDetailKey: (transactionId: TransactionID) => `${string}_expense` | `${string}_refund` | `${string}_invoice` | `${string}_payment` | `${string}_credit_memo` | `${string}_sales_receipt` | `${string}_delayed_credit` | `${string}_delayed_charge` | `${string}_check` | `${string}_bill` | `${string}_bill_payment` | `${string}_bill_payment_check` | `${string}_bill_payment_credit_card` | `${string}_vendor_credit` | `${string}_credit_card_credit` | `${string}_transfer` | `${string}_credit_card_payment` | `${string}_deposit` | `${string}_journal_entry`;
|
|
14
14
|
export declare type ZeniTransactionDetailKey = ReturnType<typeof getTransactionDetailKey>;
|
|
15
15
|
export declare const getThirdPartyIdFromTransactionId: (transactionId: TransactionID) => string;
|
|
16
16
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.47",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|