@zeniai/client-epic-state 4.19.91-betaJK6 → 4.19.91
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/task/taskPayload.d.ts +0 -1
- package/lib/entity/task/taskPayload.js +0 -1
- package/lib/entity/task/taskState.d.ts +0 -1
- package/lib/esm/entity/task/taskPayload.js +0 -1
- package/lib/esm/reducer.js +0 -6
- package/lib/esm/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.js +0 -1
- package/lib/esm/view/taskManager/taskListView/taskListSelector.js +1 -3
- package/lib/esm/view/userListView/fetchUserListByTypeEpic.js +0 -11
- package/lib/index.d.ts +0 -1
- package/lib/reducer.d.ts +0 -6
- package/lib/reducer.js +0 -6
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -0
- package/lib/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.d.ts +0 -1
- package/lib/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.js +0 -1
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +0 -2
- package/lib/view/taskManager/taskListView/taskListSelector.js +1 -3
- package/lib/view/userListView/fetchUserListByTypeEpic.d.ts +1 -3
- package/lib/view/userListView/fetchUserListByTypeEpic.js +0 -11
- package/lib/view/userListView/userListViewPayload.d.ts +0 -2
- package/package.json +1 -1
- package/lib/entity/userGroups/userGroupsPayload.d.ts +0 -7
- package/lib/entity/userGroups/userGroupsPayload.js +0 -10
- package/lib/entity/userGroups/userGroupsReducer.d.ts +0 -8
- package/lib/entity/userGroups/userGroupsReducer.js +0 -29
- package/lib/entity/userGroups/userGroupsSelector.d.ts +0 -4
- package/lib/entity/userGroups/userGroupsSelector.js +0 -12
- package/lib/entity/userGroups/userGroupsState.d.ts +0 -9
- package/lib/entity/userGroups/userGroupsState.js +0 -2
- package/lib/esm/entity/userGroups/userGroupsPayload.js +0 -7
- package/lib/esm/entity/userGroups/userGroupsReducer.js +0 -25
- package/lib/esm/entity/userGroups/userGroupsSelector.js +0 -8
- package/lib/esm/entity/userGroups/userGroupsState.js +0 -1
- package/lib/esm/view/userGroupListView/userGroupListViewReducer.js +0 -69
- package/lib/esm/view/userGroupListView/userGroupListViewSelector.js +0 -16
- package/lib/esm/view/userGroupListView/userGroupListViewState.js +0 -1
- package/lib/view/userGroupListView/userGroupListViewReducer.d.ts +0 -23
- package/lib/view/userGroupListView/userGroupListViewReducer.js +0 -73
- package/lib/view/userGroupListView/userGroupListViewSelector.d.ts +0 -7
- package/lib/view/userGroupListView/userGroupListViewSelector.js +0 -20
- package/lib/view/userGroupListView/userGroupListViewState.d.ts +0 -8
- package/lib/view/userGroupListView/userGroupListViewState.js +0 -2
|
@@ -42,6 +42,5 @@ const mapTaskPayloadToTask = (payload) => ({
|
|
|
42
42
|
timeSpent: payload.time_spent != null
|
|
43
43
|
? (0, formatMinutesToFromHHMM_1.convertMinutesToHHMM)(payload.time_spent)
|
|
44
44
|
: (0, formatMinutesToFromHHMM_1.convertMinutesToHHMM)(0),
|
|
45
|
-
groupAssignees: payload.group_assignees != null ? payload.group_assignees : [],
|
|
46
45
|
});
|
|
47
46
|
exports.mapTaskPayloadToTask = mapTaskPayloadToTask;
|
package/lib/esm/reducer.js
CHANGED
|
@@ -58,7 +58,6 @@ import toastNotification, { initialState as initialToastNotificationState, } fro
|
|
|
58
58
|
import transaction, { initialState as initialTransactionState, } from './entity/transaction/transactionReducer';
|
|
59
59
|
import transactionActivityLog, { initialState as initialTransactionActivityLogState, } from './entity/transactionActivityLog/transactionActivityLogReducer';
|
|
60
60
|
import user, { initialState as initialUserState, } from './entity/user/userReducer';
|
|
61
|
-
import userGroups, { initialState as initialUserGroupsState, } from './entity/userGroups/userGroupsReducer';
|
|
62
61
|
import userRole, { initialState as initialUserRoleState, } from './entity/userRole/userRoleReducer';
|
|
63
62
|
import vendor, { initialState as initialVendorState, } from './entity/vendor/vendorReducer';
|
|
64
63
|
import vendorExpense, { initialState as initialVendorExpenseState, } from './entity/vendorExpense/vendorExpenseReducer';
|
|
@@ -199,7 +198,6 @@ import trend, { initialTrendState } from './view/trend/trendReducer';
|
|
|
199
198
|
import trendWithTransactions, { initialTrendWithTransactionsState, } from './view/trendWithTransactions/trendWithTransactionsReducer';
|
|
200
199
|
import twoFactorAuthentication, { initialState as initialTwoFactorAuthenticationState, } from './view/twoFactorAuthentication/twoFactorAuthenticationReducer';
|
|
201
200
|
import userFinancialAccountState, { initialState as initialUserFinancialAccountState, } from './view/userFinancialAccount/userFinancialAccountReducer';
|
|
202
|
-
import userGroupListView, { initialState as initialUserGroupListViewState, } from './view/userGroupListView/userGroupListViewReducer';
|
|
203
201
|
import userListView, { initialState as initialUserListViewState, } from './view/userListView/userListViewReducer';
|
|
204
202
|
import userRoleConfig, { initialState as initialUserRoleConfigState, } from './view/userRoleConfigView/userRoleConfigReducer';
|
|
205
203
|
import vendor1099TypeList, { initialState as initialVendor1099TypeListState, } from './view/vendor1099TypeList/vendor1099TypeListReducer';
|
|
@@ -272,7 +270,6 @@ const initialEntitiesState = {
|
|
|
272
270
|
toastNotificationState: initialToastNotificationState,
|
|
273
271
|
transactionActivityLogState: initialTransactionActivityLogState,
|
|
274
272
|
transactionState: initialTransactionState,
|
|
275
|
-
userGroupsState: initialUserGroupsState,
|
|
276
273
|
userRoleState: initialUserRoleState,
|
|
277
274
|
userState: initialUserState,
|
|
278
275
|
vendorExpenseState: initialVendorExpenseState,
|
|
@@ -411,7 +408,6 @@ const initialViewsState = {
|
|
|
411
408
|
trendWithTransactionsState: initialTrendWithTransactionsState,
|
|
412
409
|
twoFactorAuthenticationState: initialTwoFactorAuthenticationState,
|
|
413
410
|
userFinancialAccountState: initialUserFinancialAccountState,
|
|
414
|
-
userGroupListViewState: initialUserGroupListViewState,
|
|
415
411
|
userListViewState: initialUserListViewState,
|
|
416
412
|
userRoleConfigState: initialUserRoleConfigState,
|
|
417
413
|
vendorFirstReviewViewState: initialVendorFirstReviewViewState,
|
|
@@ -496,7 +492,6 @@ const entityReducers = {
|
|
|
496
492
|
toastNotificationState: toastNotification,
|
|
497
493
|
transactionActivityLogState: transactionActivityLog,
|
|
498
494
|
transactionState: transaction,
|
|
499
|
-
userGroupsState: userGroups,
|
|
500
495
|
userRoleState: userRole,
|
|
501
496
|
userState: user,
|
|
502
497
|
vendorExpenseState: vendorExpense,
|
|
@@ -635,7 +630,6 @@ const viewReducers = {
|
|
|
635
630
|
trendWithTransactionsState: trendWithTransactions,
|
|
636
631
|
twoFactorAuthenticationState: twoFactorAuthentication,
|
|
637
632
|
userFinancialAccountState: userFinancialAccountState,
|
|
638
|
-
userGroupListViewState: userGroupListView,
|
|
639
633
|
userListViewState: userListView,
|
|
640
634
|
userRoleConfigState: userRoleConfig,
|
|
641
635
|
vendorFirstReviewViewState: vendorFirstReviewView,
|
|
@@ -70,7 +70,6 @@ const toTaskPayload = (state, task) => {
|
|
|
70
70
|
name: task.name,
|
|
71
71
|
assignees: task.assignees,
|
|
72
72
|
description: task.description,
|
|
73
|
-
group_assignees: task.groupAssignees,
|
|
74
73
|
due_date: task.dueDate != null ? task.dueDate.format(DEFAULT_DATE_FORMAT) : null,
|
|
75
74
|
priority: task.priority.code,
|
|
76
75
|
status: task.status.code,
|
|
@@ -11,7 +11,6 @@ import { getTaskGroupTemplateByIds } from '../../../entity/taskGroupTemplate/tas
|
|
|
11
11
|
import { getUserName, getUsersByUserIds, } from '../../../entity/user/userSelector';
|
|
12
12
|
import { getUserAndUserRole, } from '../../companyView/types/userAndRole';
|
|
13
13
|
import { applyAdvancedFiltersOnList } from '../../spendManagement/spendManagementFilterHelpers';
|
|
14
|
-
import { getUserGroupList } from '../../userGroupListView/userGroupListViewSelector';
|
|
15
14
|
import { getUserList, } from '../../userListView/userListViewSelector';
|
|
16
15
|
import { allTaskPriority, allTaskStatus, } from '../taskDetailView/taskDetailSelector';
|
|
17
16
|
import { DUE_DATE_GROUP_KEYS, } from './taskList';
|
|
@@ -309,7 +308,7 @@ const getTaskGroupsWithTaskList = ({ taskListState, taskState, userState, userRo
|
|
|
309
308
|
tagState,
|
|
310
309
|
});
|
|
311
310
|
};
|
|
312
|
-
export const getAllTasks = createSelector((state) => state.taskListState, (state) => state.taskState, (state) => state.userState, (state) => state.userRoleState, (state) => state.userListViewState, (state) => state.addressState, (state) => state.taskGroupState, (state) => state.taskGroupViewState, (state) => state.tagViewState, (state) => state.tagState, (state) => state.taskGroupTemplateState, (state) => state.taskGroupTemplateViewState, (
|
|
311
|
+
export const getAllTasks = createSelector((state) => state.taskListState, (state) => state.taskState, (state) => state.userState, (state) => state.userRoleState, (state) => state.userListViewState, (state) => state.addressState, (state) => state.taskGroupState, (state) => state.taskGroupViewState, (state) => state.tagViewState, (state) => state.tagState, (state) => state.taskGroupTemplateState, (state) => state.taskGroupTemplateViewState, (_state, isTaskTemplatesEnabled) => isTaskTemplatesEnabled, (taskListState, taskState, userState, userRoleState, userListViewState, addressState, taskGroupState, taskGroupViewState, tagViewState, tagState, taskGroupTemplateState, taskGroupTemplateViewState, isTaskTemplatesEnabled) => {
|
|
313
312
|
const { localData } = taskListState;
|
|
314
313
|
const taskGroupsWithTasksList = getTaskGroupsWithTaskList({
|
|
315
314
|
taskListState,
|
|
@@ -337,7 +336,6 @@ export const getAllTasks = createSelector((state) => state.taskListState, (state
|
|
|
337
336
|
taskGroupTemplates,
|
|
338
337
|
fetchState: fetchState,
|
|
339
338
|
userList: getUserList(userState, userRoleState, userListViewState, 'taskManagerCandidate'),
|
|
340
|
-
userGroupList: getUserGroupList(userGroupsState, userGroupListViewState, 'taskManagerCandidate'),
|
|
341
339
|
error: error,
|
|
342
340
|
version: 0,
|
|
343
341
|
taskGroupsWithTasksList,
|
|
@@ -3,11 +3,9 @@ import { catchError, filter, mergeMap } from 'rxjs/operators';
|
|
|
3
3
|
import { updateAddresses } from '../../entity/address/addressReducer';
|
|
4
4
|
import { getCurrentTenant, isZeniDomainTenant, } from '../../entity/tenant/tenantSelector';
|
|
5
5
|
import { updateAllUsers } from '../../entity/user/userReducer';
|
|
6
|
-
import { updateAllUserGroups } from '../../entity/userGroups/userGroupsReducer';
|
|
7
6
|
import { updateUserRoles } from '../../entity/userRole/userRoleReducer';
|
|
8
7
|
import { createZeniAPIStatus, isSuccessResponse } from '../../responsePayload';
|
|
9
8
|
import { updateChargeCardCount, updateDebitCardCount, } from '../spendManagement/chargeCards/issueChargeCard/issueChargeCardReducer';
|
|
10
|
-
import { updateUserGroupIds } from '../userGroupListView/userGroupListViewReducer';
|
|
11
9
|
import { fetchUserListByType, updateUserIds, updateUserListFetchFailure, } from './userListViewReducer';
|
|
12
10
|
export const fetchUserListByTypeEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchUserListByType.match), mergeMap((action) => {
|
|
13
11
|
const { userType, cacheOverride } = action.payload;
|
|
@@ -31,15 +29,6 @@ export const fetchUserListByTypeEpic = (actions$, state$, zeniAPI) => actions$.p
|
|
|
31
29
|
usersPayload: response.data?.users ?? [],
|
|
32
30
|
}),
|
|
33
31
|
];
|
|
34
|
-
if (response.data?.user_groups != null) {
|
|
35
|
-
userListAction.push(updateAllUserGroups({ userGroups: response.data.user_groups }));
|
|
36
|
-
if (userType === 'taskManagerCandidate') {
|
|
37
|
-
userListAction.push(updateUserGroupIds({
|
|
38
|
-
userGroupType: userType,
|
|
39
|
-
userGroupsPayload: response.data.user_groups,
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
32
|
if (userType === 'cardHolderCandidate') {
|
|
44
33
|
userListAction.push(updateChargeCardCount(response.data?.cards_count_by_user_id ?? []));
|
|
45
34
|
userListAction.push(updateDebitCardCount(response.data?.debit_cards_count_by_deposit_account_id ?? {}));
|
package/lib/index.d.ts
CHANGED
|
@@ -873,4 +873,3 @@ export type { TransactionActivityLog } from './entity/transactionActivityLog/tra
|
|
|
873
873
|
export { BULK_UPLOAD_AUTOMATCHING_TIMEOUT_MS, BULK_UPLOAD_BAR_COMPLETE_HOLD_MS, } from './view/expenseAutomationView/bulkUploadTiming';
|
|
874
874
|
export { fetchTransactionActivityLog } from './view/transactionActivityLogView/transactionActivityLogViewReducer';
|
|
875
875
|
export { TransactionActivityLogViewSelectorView, getTransactionActivityLogView, } from './view/transactionActivityLogView/transactionActivityLogViewSelector';
|
|
876
|
-
export { UserGroup } from './entity/userGroups/userGroupsState';
|
package/lib/reducer.d.ts
CHANGED
|
@@ -57,7 +57,6 @@ import { ToastNotificationState } from './entity/toastNotification/toastNotifica
|
|
|
57
57
|
import { TransactionState } from './entity/transaction/transactionState';
|
|
58
58
|
import { TransactionActivityLogState } from './entity/transactionActivityLog/transactionActivityLogState';
|
|
59
59
|
import { UserState } from './entity/user/userState';
|
|
60
|
-
import { UserGroupsState } from './entity/userGroups/userGroupsState';
|
|
61
60
|
import { UserRoleState } from './entity/userRole/userRoleState';
|
|
62
61
|
import { VendorState } from './entity/vendor/vendorState';
|
|
63
62
|
import { VendorExpenseState } from './entity/vendorExpense/vendorExpenseState';
|
|
@@ -197,7 +196,6 @@ import { TrendState } from './view/trend/trendState';
|
|
|
197
196
|
import { TrendWithTransactionsState } from './view/trendWithTransactions/trendWithTransactionsState';
|
|
198
197
|
import { TwoFactorAuthenticationState } from './view/twoFactorAuthentication/twoFactorAuthentication';
|
|
199
198
|
import { UserFinancialAccountState } from './view/userFinancialAccount/userFinancialAccountState';
|
|
200
|
-
import { UserGroupListViewState } from './view/userGroupListView/userGroupListViewState';
|
|
201
199
|
import { UserListViewState } from './view/userListView/userListViewState';
|
|
202
200
|
import { UserRoleConfigState } from './view/userRoleConfigView/userRoleConfigState';
|
|
203
201
|
import { Vendor1099TypeListState } from './view/vendor1099TypeList/vendor1099TypeListState';
|
|
@@ -269,7 +267,6 @@ type EntitiesState = {
|
|
|
269
267
|
toastNotificationState: ToastNotificationState;
|
|
270
268
|
transactionActivityLogState: TransactionActivityLogState;
|
|
271
269
|
transactionState: TransactionState;
|
|
272
|
-
userGroupsState: UserGroupsState;
|
|
273
270
|
userRoleState: UserRoleState;
|
|
274
271
|
userState: UserState;
|
|
275
272
|
vendorExpenseState: VendorExpenseState;
|
|
@@ -407,7 +404,6 @@ type ViewsState = {
|
|
|
407
404
|
trendWithTransactionsState: TrendWithTransactionsState;
|
|
408
405
|
twoFactorAuthenticationState: TwoFactorAuthenticationState;
|
|
409
406
|
userFinancialAccountState: UserFinancialAccountState;
|
|
410
|
-
userGroupListViewState: UserGroupListViewState;
|
|
411
407
|
userListViewState: UserListViewState;
|
|
412
408
|
userRoleConfigState: UserRoleConfigState;
|
|
413
409
|
vendor1099TypeListState: Vendor1099TypeListState;
|
|
@@ -560,7 +556,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
560
556
|
trendWithTransactionsState: TrendWithTransactionsState;
|
|
561
557
|
twoFactorAuthenticationState: TwoFactorAuthenticationState;
|
|
562
558
|
userFinancialAccountState: UserFinancialAccountState;
|
|
563
|
-
userGroupListViewState: UserGroupListViewState;
|
|
564
559
|
userListViewState: UserListViewState;
|
|
565
560
|
userRoleConfigState: UserRoleConfigState;
|
|
566
561
|
vendorFirstReviewViewState: VendorFirstReviewViewState;
|
|
@@ -636,7 +631,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
|
|
|
636
631
|
toastNotificationState: ToastNotificationState;
|
|
637
632
|
transactionActivityLogState: TransactionActivityLogState;
|
|
638
633
|
transactionState: TransactionState;
|
|
639
|
-
userGroupsState: UserGroupsState;
|
|
640
634
|
userRoleState: UserRoleState;
|
|
641
635
|
userState: UserState;
|
|
642
636
|
vendorExpenseState: VendorExpenseState;
|
package/lib/reducer.js
CHANGED
|
@@ -97,7 +97,6 @@ const toastNotificationReducer_1 = __importStar(require("./entity/toastNotificat
|
|
|
97
97
|
const transactionReducer_1 = __importStar(require("./entity/transaction/transactionReducer"));
|
|
98
98
|
const transactionActivityLogReducer_1 = __importStar(require("./entity/transactionActivityLog/transactionActivityLogReducer"));
|
|
99
99
|
const userReducer_1 = __importStar(require("./entity/user/userReducer"));
|
|
100
|
-
const userGroupsReducer_1 = __importStar(require("./entity/userGroups/userGroupsReducer"));
|
|
101
100
|
const userRoleReducer_1 = __importStar(require("./entity/userRole/userRoleReducer"));
|
|
102
101
|
const vendorReducer_1 = __importStar(require("./entity/vendor/vendorReducer"));
|
|
103
102
|
const vendorExpenseReducer_1 = __importStar(require("./entity/vendorExpense/vendorExpenseReducer"));
|
|
@@ -238,7 +237,6 @@ const trendReducer_1 = __importStar(require("./view/trend/trendReducer"));
|
|
|
238
237
|
const trendWithTransactionsReducer_1 = __importStar(require("./view/trendWithTransactions/trendWithTransactionsReducer"));
|
|
239
238
|
const twoFactorAuthenticationReducer_1 = __importStar(require("./view/twoFactorAuthentication/twoFactorAuthenticationReducer"));
|
|
240
239
|
const userFinancialAccountReducer_1 = __importStar(require("./view/userFinancialAccount/userFinancialAccountReducer"));
|
|
241
|
-
const userGroupListViewReducer_1 = __importStar(require("./view/userGroupListView/userGroupListViewReducer"));
|
|
242
240
|
const userListViewReducer_1 = __importStar(require("./view/userListView/userListViewReducer"));
|
|
243
241
|
const userRoleConfigReducer_1 = __importStar(require("./view/userRoleConfigView/userRoleConfigReducer"));
|
|
244
242
|
const vendor1099TypeListReducer_1 = __importStar(require("./view/vendor1099TypeList/vendor1099TypeListReducer"));
|
|
@@ -311,7 +309,6 @@ const initialEntitiesState = {
|
|
|
311
309
|
toastNotificationState: toastNotificationReducer_1.initialState,
|
|
312
310
|
transactionActivityLogState: transactionActivityLogReducer_1.initialState,
|
|
313
311
|
transactionState: transactionReducer_1.initialState,
|
|
314
|
-
userGroupsState: userGroupsReducer_1.initialState,
|
|
315
312
|
userRoleState: userRoleReducer_1.initialState,
|
|
316
313
|
userState: userReducer_1.initialState,
|
|
317
314
|
vendorExpenseState: vendorExpenseReducer_1.initialState,
|
|
@@ -450,7 +447,6 @@ const initialViewsState = {
|
|
|
450
447
|
trendWithTransactionsState: trendWithTransactionsReducer_1.initialTrendWithTransactionsState,
|
|
451
448
|
twoFactorAuthenticationState: twoFactorAuthenticationReducer_1.initialState,
|
|
452
449
|
userFinancialAccountState: userFinancialAccountReducer_1.initialState,
|
|
453
|
-
userGroupListViewState: userGroupListViewReducer_1.initialState,
|
|
454
450
|
userListViewState: userListViewReducer_1.initialState,
|
|
455
451
|
userRoleConfigState: userRoleConfigReducer_1.initialState,
|
|
456
452
|
vendorFirstReviewViewState: vendorFirstReviewViewReducer_1.initialState,
|
|
@@ -535,7 +531,6 @@ const entityReducers = {
|
|
|
535
531
|
toastNotificationState: toastNotificationReducer_1.default,
|
|
536
532
|
transactionActivityLogState: transactionActivityLogReducer_1.default,
|
|
537
533
|
transactionState: transactionReducer_1.default,
|
|
538
|
-
userGroupsState: userGroupsReducer_1.default,
|
|
539
534
|
userRoleState: userRoleReducer_1.default,
|
|
540
535
|
userState: userReducer_1.default,
|
|
541
536
|
vendorExpenseState: vendorExpenseReducer_1.default,
|
|
@@ -674,7 +669,6 @@ const viewReducers = {
|
|
|
674
669
|
trendWithTransactionsState: trendWithTransactionsReducer_1.default,
|
|
675
670
|
twoFactorAuthenticationState: twoFactorAuthenticationReducer_1.default,
|
|
676
671
|
userFinancialAccountState: userFinancialAccountReducer_1.default,
|
|
677
|
-
userGroupListViewState: userGroupListViewReducer_1.default,
|
|
678
672
|
userListViewState: userListViewReducer_1.default,
|
|
679
673
|
userRoleConfigState: userRoleConfigReducer_1.default,
|
|
680
674
|
vendorFirstReviewViewState: vendorFirstReviewViewReducer_1.default,
|