@zeniai/client-epic-state 4.7.69 → 4.7.70
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/account/accountPayload.d.ts +1 -1
- package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +1 -0
- package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -1
- package/lib/entity/paymentAccount/paymentAccountSelector.d.ts +2 -0
- package/lib/entity/paymentAccount/paymentAccountSelector.js +14 -1
- package/lib/entity/paymentAccount/paymentAccountState.d.ts +1 -0
- package/lib/entity/tenant/clearAllEpic.d.ts +2 -1
- package/lib/entity/tenant/clearAllEpic.js +2 -0
- package/lib/epic.d.ts +5 -1
- package/lib/epic.js +5 -1
- package/lib/index.d.ts +10 -2
- package/lib/index.js +26 -13
- package/lib/reducer.d.ts +3 -0
- package/lib/reducer.js +3 -0
- package/lib/view/accountList/accountListReducer.js +2 -1
- package/lib/view/accountList/accountListState.d.ts +1 -1
- package/lib/view/accountList/fetchAccountListEpic.js +16 -7
- package/lib/view/settingsView/epic/fetchBankAccountsListEpic.d.ts +22 -0
- package/lib/view/settingsView/epic/fetchBankAccountsListEpic.js +30 -0
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.d.ts +6 -0
- package/lib/view/settingsView/epic/fetchBankConnectionsViewEpic.js +14 -0
- package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +43 -0
- package/lib/view/settingsView/epic/fetchMyProfileEpic.js +50 -0
- package/lib/view/settingsView/epic/fetchMyProfileViewEpic.d.ts +7 -0
- package/lib/view/settingsView/epic/fetchMyProfileViewEpic.js +17 -0
- package/lib/view/settingsView/settingsViewPayload.d.ts +8 -0
- package/lib/view/settingsView/settingsViewPayload.js +2 -0
- package/lib/view/settingsView/settingsViewReducer.d.ts +13 -0
- package/lib/view/settingsView/settingsViewReducer.js +71 -0
- package/lib/view/settingsView/settingsViewSelector.d.ts +14 -0
- package/lib/view/settingsView/settingsViewSelector.js +119 -0
- package/lib/view/settingsView/settingsViewState.d.ts +12 -0
- package/lib/view/settingsView/settingsViewState.js +2 -0
- package/lib/view/settingsView/types/settingsViewSelectorTypes.d.ts +29 -0
- package/lib/view/settingsView/types/settingsViewSelectorTypes.js +2 -0
- package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +2 -2
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +4 -4
- package/lib/view/spendManagement/billPay/editBillView/epics/fetchEditBillDetailPageEpic.js +3 -3
- package/lib/view/spendManagement/billPay/editBillView/epics/initializeBillToLocalStoreEpic.js +1 -1
- package/lib/view/spendManagement/billPay/editBillView/epics/parseInvoiceToBillEpic.js +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ exports.initialState = {
|
|
|
27
27
|
byReportId: {
|
|
28
28
|
accountList: exports.initialAccountList,
|
|
29
29
|
reimbursementAccountList: exports.initialAccountList,
|
|
30
|
+
billPayAccountList: exports.initialAccountList,
|
|
30
31
|
},
|
|
31
32
|
};
|
|
32
33
|
const accountList = (0, toolkit_1.createSlice)({
|
|
@@ -40,7 +41,7 @@ const accountList = (0, toolkit_1.createSlice)({
|
|
|
40
41
|
const existingData = draft.byReportId[action.payload.accountListKey];
|
|
41
42
|
draft.byReportId[action.payload.accountListKey] = Object.assign(Object.assign({}, existingData), { fetchState: 'In-Progress', error: undefined });
|
|
42
43
|
},
|
|
43
|
-
prepare(accountListKey, fetchFullResponse = false, excludeAccountPayableAccounts =
|
|
44
|
+
prepare(accountListKey, fetchFullResponse = false, excludeAccountPayableAccounts = false, excludeAccountReceivableAccounts = false, isLimitedCategoryEnabled = false) {
|
|
44
45
|
return {
|
|
45
46
|
payload: {
|
|
46
47
|
accountListKey,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NestedAccountHeirarchyForReport } from '../../commonStateTypes/accountView/nestedAccountID';
|
|
2
2
|
import { FetchedState, ID } from '../../commonStateTypes/common';
|
|
3
3
|
import { AccountLabel } from '../../entity/account/accountState';
|
|
4
|
-
export declare type AccountListKeyType = 'accountList' | 'reimbursementAccountList';
|
|
4
|
+
export declare type AccountListKeyType = 'accountList' | 'reimbursementAccountList' | 'billPayAccountList';
|
|
5
5
|
export interface AccountList extends FetchedState {
|
|
6
6
|
accountIds: ID[];
|
|
7
7
|
accountIdsByLabel: Record<AccountLabel, ID[]>;
|
|
@@ -6,25 +6,34 @@ const operators_1 = require("rxjs/operators");
|
|
|
6
6
|
const responsePayload_1 = require("../../responsePayload");
|
|
7
7
|
const accountReducer_1 = require("../../entity/account/accountReducer");
|
|
8
8
|
const accountListReducer_1 = require("./accountListReducer");
|
|
9
|
+
const getAccountTypes = (isLimitedCategoryEnabled) => {
|
|
10
|
+
if (isLimitedCategoryEnabled === true) {
|
|
11
|
+
return ['cogs', 'expenses', 'other_expense'];
|
|
12
|
+
}
|
|
13
|
+
return [];
|
|
14
|
+
};
|
|
9
15
|
const fetchAccountListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(accountListReducer_1.fetchAccountList.match), (0, operators_1.switchMap)((action) => {
|
|
10
16
|
const { accountListKey, fetchFullResponse, excludeAccountPayableAccounts, excludeAccountReceivableAccounts, isLimitedCategoryEnabled, } = action.payload;
|
|
17
|
+
const accountTypes = getAccountTypes(isLimitedCategoryEnabled);
|
|
11
18
|
const queryValue = {
|
|
12
19
|
is_full: fetchFullResponse,
|
|
13
20
|
is_exclude_account_payable_accounts: excludeAccountPayableAccounts,
|
|
14
21
|
is_exclude_account_receivable_accounts: excludeAccountReceivableAccounts,
|
|
15
|
-
account_types:
|
|
16
|
-
? ['cogs', 'expenses', 'other_expense']
|
|
17
|
-
: [],
|
|
22
|
+
account_types: accountTypes,
|
|
18
23
|
};
|
|
19
24
|
return zeniAPI
|
|
20
25
|
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accounts?query=${encodeURIComponent(JSON.stringify(queryValue))}`)
|
|
21
26
|
.pipe((0, operators_1.mergeMap)((response) => {
|
|
22
27
|
var _a, _b;
|
|
23
28
|
if ((0, responsePayload_1.isSuccessResponse)(response)) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
const actions = [
|
|
30
|
+
(0, accountReducer_1.updateAccounts)((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.accounts) !== null && _b !== void 0 ? _b : [], 'account_list'),
|
|
31
|
+
(0, accountListReducer_1.updateAccountList)({
|
|
32
|
+
accountListKey,
|
|
33
|
+
accountListResponse: response,
|
|
34
|
+
}),
|
|
35
|
+
];
|
|
36
|
+
return (0, rxjs_1.from)(actions);
|
|
28
37
|
}
|
|
29
38
|
else {
|
|
30
39
|
return (0, rxjs_1.of)((0, accountListReducer_1.updateAccountListFailure)({
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { fetchBankAccountsList, updateBankConnectionOnSuccess, updateBankConnectionOnFailure } from '../settingsViewReducer';
|
|
3
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
4
|
+
import { RootState } from '../../../reducer';
|
|
5
|
+
import { updateAccounts } from '../../../entity/account/accountReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof fetchBankAccountsList> | ReturnType<typeof updateBankConnectionOnSuccess> | ReturnType<typeof updateBankConnectionOnFailure> | ReturnType<typeof updateAccounts>;
|
|
7
|
+
export declare const fetchBankAccountsListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
8
|
+
payload: undefined;
|
|
9
|
+
type: string;
|
|
10
|
+
} | {
|
|
11
|
+
payload: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
12
|
+
type: string;
|
|
13
|
+
} | {
|
|
14
|
+
payload: {
|
|
15
|
+
bankAccountIds: string[];
|
|
16
|
+
};
|
|
17
|
+
type: string;
|
|
18
|
+
} | import("@reduxjs/toolkit").PayloadAction<import("../../../entity/account/accountPayload").AccountPayload[], string, {
|
|
19
|
+
reportId: import("../../..").ReportIDPlusForecastID;
|
|
20
|
+
classesViewParentId: import("../../../commonStateTypes/classesView/nestedClassID").ClassesViewParentID | undefined;
|
|
21
|
+
updateType: import("../../..").UpdateType;
|
|
22
|
+
}, never>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchBankAccountsListEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const settingsViewReducer_1 = require("../settingsViewReducer");
|
|
7
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
8
|
+
const accountReducer_1 = require("../../../entity/account/accountReducer");
|
|
9
|
+
const fetchBankAccountsListEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.fetchBankAccountsList.match), (0, operators_1.switchMap)(() => {
|
|
10
|
+
const queryValue = {
|
|
11
|
+
is_full: true,
|
|
12
|
+
is_exclude_account_payable_accounts: true,
|
|
13
|
+
is_exclude_account_receivable_accounts: true,
|
|
14
|
+
account_types: ['bank'],
|
|
15
|
+
};
|
|
16
|
+
const URL = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/accounts?query=${encodeURIComponent(JSON.stringify(queryValue))}`;
|
|
17
|
+
return zeniAPI.getJSON(URL).pipe((0, operators_1.mergeMap)((response) => {
|
|
18
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
19
|
+
const bankAccountIds = response.data.accounts.map((account) => account.account_id);
|
|
20
|
+
const updateActions = [];
|
|
21
|
+
updateActions.push((0, settingsViewReducer_1.updateBankConnectionOnSuccess)({ bankAccountIds }), (0, accountReducer_1.updateAccounts)(response.data.accounts, 'bill_pay'));
|
|
22
|
+
return (0, rxjs_1.of)(...updateActions);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
return (0, rxjs_1.of)((0, settingsViewReducer_1.updateBankConnectionOnFailure)(response.status));
|
|
26
|
+
}
|
|
27
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, settingsViewReducer_1.updateBankConnectionOnFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Fetch Bank Accounts REST API call errored out' +
|
|
28
|
+
JSON.stringify(error))))));
|
|
29
|
+
}));
|
|
30
|
+
exports.fetchBankAccountsListEpic = fetchBankAccountsListEpic;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ActionsObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { fetchBankConnectionsView, fetchBankAccountsList } from '../settingsViewReducer';
|
|
4
|
+
import { getPaymentAccounts } from '../../spendManagement/commonSetup/setupViewReducer';
|
|
5
|
+
export declare type ActionType = ReturnType<typeof fetchBankConnectionsView> | ReturnType<typeof fetchBankAccountsList> | ReturnType<typeof getPaymentAccounts>;
|
|
6
|
+
export declare const fetchBankConnectionsViewEpic: (actions$: ActionsObservable<ActionType>) => Observable<ActionType>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchBankConnectionsViewEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const settingsViewReducer_1 = require("../settingsViewReducer");
|
|
7
|
+
const setupViewReducer_1 = require("../../spendManagement/commonSetup/setupViewReducer");
|
|
8
|
+
const fetchBankConnectionsViewEpic = (actions$) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.fetchBankConnectionsView.match), (0, operators_1.switchMap)(() => {
|
|
9
|
+
return (0, rxjs_1.from)([
|
|
10
|
+
(0, settingsViewReducer_1.fetchBankAccountsList)(),
|
|
11
|
+
(0, setupViewReducer_1.getPaymentAccounts)('bill_pay', false),
|
|
12
|
+
]);
|
|
13
|
+
}));
|
|
14
|
+
exports.fetchBankConnectionsViewEpic = fetchBankConnectionsViewEpic;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { fetchMyProfile, updateMyProfileOnSuccess, updateMyProfileOnFailure } from '../settingsViewReducer';
|
|
3
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
4
|
+
import { UserPayload } from '../../../entity/user/userPayload';
|
|
5
|
+
import { RootState } from '../../../reducer';
|
|
6
|
+
import { updateUserRoles } from '../../../entity/userRole/userRoleReducer';
|
|
7
|
+
import { updateAllUsers } from '../../../entity/user/userReducer';
|
|
8
|
+
import { updateUserIds } from '../../userListView/userListViewReducer';
|
|
9
|
+
import { UserRolePayload } from '../../../entity/userRole/userRolePayload';
|
|
10
|
+
import { ID } from '../../../commonStateTypes/common';
|
|
11
|
+
export declare type ActionType = ReturnType<typeof fetchMyProfile> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateMyProfileOnSuccess> | ReturnType<typeof updateUserIds> | ReturnType<typeof updateMyProfileOnFailure>;
|
|
12
|
+
export declare const fetchMyProfileEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
13
|
+
payload: undefined;
|
|
14
|
+
type: string;
|
|
15
|
+
} | {
|
|
16
|
+
payload: import("../../../responsePayload").ZeniAPIStatus<Record<string, unknown>>;
|
|
17
|
+
type: string;
|
|
18
|
+
} | {
|
|
19
|
+
payload: {
|
|
20
|
+
users: UserPayload[];
|
|
21
|
+
updateType?: import("../../../commonStateTypes/common").UpdateType | undefined;
|
|
22
|
+
};
|
|
23
|
+
type: string;
|
|
24
|
+
} | {
|
|
25
|
+
payload: UserRolePayload[];
|
|
26
|
+
type: string;
|
|
27
|
+
} | {
|
|
28
|
+
payload: {
|
|
29
|
+
userType: import("../../userListView/userListViewState").UserListType;
|
|
30
|
+
usersPayload: UserPayload[];
|
|
31
|
+
};
|
|
32
|
+
type: string;
|
|
33
|
+
} | {
|
|
34
|
+
payload: {
|
|
35
|
+
userId: string;
|
|
36
|
+
};
|
|
37
|
+
type: string;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Helpers
|
|
41
|
+
*/
|
|
42
|
+
export declare function getUserPayloadByUserId(userId: ID | undefined, usersPayload: UserPayload[]): UserPayload[] | undefined;
|
|
43
|
+
export declare function getManagerUserIdFromUserRolesPayloadByUserId(userId: ID | undefined, userRolesPayload: UserRolePayload[]): ID | undefined;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getManagerUserIdFromUserRolesPayloadByUserId = exports.getUserPayloadByUserId = exports.fetchMyProfileEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const settingsViewReducer_1 = require("../settingsViewReducer");
|
|
7
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
8
|
+
const userRoleReducer_1 = require("../../../entity/userRole/userRoleReducer");
|
|
9
|
+
const userReducer_1 = require("../../../entity/user/userReducer");
|
|
10
|
+
const userListViewReducer_1 = require("../../userListView/userListViewReducer");
|
|
11
|
+
const fetchMyProfileEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.fetchMyProfile.match), (0, operators_1.switchMap)(() => {
|
|
12
|
+
const URL = `${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/settings/user-profile`;
|
|
13
|
+
const loggedInUser = state$.value.tenantState.loggedInUser;
|
|
14
|
+
return zeniAPI.getJSON(URL).pipe((0, operators_1.mergeMap)((response) => {
|
|
15
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
|
16
|
+
response.data != null &&
|
|
17
|
+
(loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.userId) != null) {
|
|
18
|
+
const loggedInUserPayload = getUserPayloadByUserId(loggedInUser.userId, response.data.users);
|
|
19
|
+
const managerUserPayload = getUserPayloadByUserId(getManagerUserIdFromUserRolesPayloadByUserId(loggedInUser.userId, response.data.user_roles), response.data.users);
|
|
20
|
+
const updateActions = [];
|
|
21
|
+
updateActions.push((0, userRoleReducer_1.updateUserRoles)(response.data.user_roles), (0, userReducer_1.updateAllUsers)({ users: response.data.users }), (0, settingsViewReducer_1.updateMyProfileOnSuccess)(loggedInUser.userId));
|
|
22
|
+
if (managerUserPayload && loggedInUserPayload != null) {
|
|
23
|
+
updateActions.push((0, userListViewReducer_1.updateUserIds)({
|
|
24
|
+
userType: 'manager',
|
|
25
|
+
usersPayload: managerUserPayload,
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
return (0, rxjs_1.of)(...updateActions);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return (0, rxjs_1.of)((0, settingsViewReducer_1.updateMyProfileOnFailure)(response.status));
|
|
32
|
+
}
|
|
33
|
+
}), (0, operators_1.catchError)((error) => (0, rxjs_1.of)((0, settingsViewReducer_1.updateMyProfileOnFailure)((0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Fetch My Profile REST API call errored out' +
|
|
34
|
+
JSON.stringify(error))))));
|
|
35
|
+
}));
|
|
36
|
+
exports.fetchMyProfileEpic = fetchMyProfileEpic;
|
|
37
|
+
/**
|
|
38
|
+
* Helpers
|
|
39
|
+
*/
|
|
40
|
+
function getUserPayloadByUserId(userId, usersPayload) {
|
|
41
|
+
const user = usersPayload.find((user) => user.user_id === userId);
|
|
42
|
+
return user ? [user] : undefined;
|
|
43
|
+
}
|
|
44
|
+
exports.getUserPayloadByUserId = getUserPayloadByUserId;
|
|
45
|
+
function getManagerUserIdFromUserRolesPayloadByUserId(userId, userRolesPayload) {
|
|
46
|
+
const userRoles = userRolesPayload.find((user) => user.user_id === userId);
|
|
47
|
+
const manager_user_id = userRoles === null || userRoles === void 0 ? void 0 : userRoles.manager_user_id;
|
|
48
|
+
return manager_user_id !== null && manager_user_id !== void 0 ? manager_user_id : undefined;
|
|
49
|
+
}
|
|
50
|
+
exports.getManagerUserIdFromUserRolesPayloadByUserId = getManagerUserIdFromUserRolesPayloadByUserId;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { fetchMyProfile } from '../settingsViewReducer';
|
|
4
|
+
import { fetchCompanyPassportView } from '../../companyView/companyViewReducer';
|
|
5
|
+
import { fetchClassList } from '../../classList/classListReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof fetchCompanyPassportView> | ReturnType<typeof fetchMyProfile> | ReturnType<typeof fetchClassList>;
|
|
7
|
+
export declare const fetchMyProfileViewEpic: (actions$: ActionsObservable<ActionType>) => Observable<ActionType>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchMyProfileViewEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const settingsViewReducer_1 = require("../settingsViewReducer");
|
|
7
|
+
const companyViewReducer_1 = require("../../companyView/companyViewReducer");
|
|
8
|
+
const classListReducer_1 = require("../../classList/classListReducer");
|
|
9
|
+
const fetchMyProfileViewEpic = (actions$) => actions$.pipe((0, operators_1.filter)(settingsViewReducer_1.fetchMyProfileView.match), (0, operators_1.switchMap)((action) => {
|
|
10
|
+
const { companyId } = action.payload;
|
|
11
|
+
return (0, rxjs_1.from)([
|
|
12
|
+
(0, companyViewReducer_1.fetchCompanyPassportView)(companyId),
|
|
13
|
+
(0, classListReducer_1.fetchClassList)(),
|
|
14
|
+
(0, settingsViewReducer_1.fetchMyProfile)(),
|
|
15
|
+
]);
|
|
16
|
+
}));
|
|
17
|
+
exports.fetchMyProfileViewEpic = fetchMyProfileViewEpic;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UserPayload } from '../../entity/user/userPayload';
|
|
2
|
+
import { UserRolePayload } from '../../entity/userRole/userRolePayload';
|
|
3
|
+
import { ZeniAPIResponse } from '../../responsePayload';
|
|
4
|
+
export interface MyProfilePeoplePayload {
|
|
5
|
+
user_roles: UserRolePayload[];
|
|
6
|
+
users: UserPayload[];
|
|
7
|
+
}
|
|
8
|
+
export declare type MyProfilePeopleResponse = ZeniAPIResponse<MyProfilePeoplePayload>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ZeniAPIStatus } from '../../responsePayload';
|
|
2
|
+
import { SettingsViewState } from './settingsViewState';
|
|
3
|
+
import { ID } from '../../commonStateTypes/common';
|
|
4
|
+
export declare const initialState: SettingsViewState;
|
|
5
|
+
export declare const fetchMyProfileView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[companyId: string], {
|
|
6
|
+
companyId: string;
|
|
7
|
+
}, string, never, never>, fetchMyProfile: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateMyProfileOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userId: string], {
|
|
8
|
+
userId: string;
|
|
9
|
+
}, string, never, never>, updateMyProfileOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, fetchBankConnectionsView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateBankConnectionOnSuccess: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
|
+
bankAccountIds: ID[];
|
|
11
|
+
}, string>, updateBankConnectionOnFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<ZeniAPIStatus<Record<string, unknown>>, string>, fetchBankAccountsList: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, clearSettingsView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
12
|
+
declare const _default: import("@reduxjs/toolkit").Reducer<SettingsViewState, import("@reduxjs/toolkit").AnyAction>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.clearSettingsView = exports.fetchBankAccountsList = exports.updateBankConnectionOnFailure = exports.updateBankConnectionOnSuccess = exports.fetchBankConnectionsView = exports.updateMyProfileOnFailure = exports.updateMyProfileOnSuccess = exports.fetchMyProfile = exports.fetchMyProfileView = exports.initialState = void 0;
|
|
5
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
+
exports.initialState = {
|
|
7
|
+
profile: {
|
|
8
|
+
fetchState: 'Not-Started',
|
|
9
|
+
error: undefined,
|
|
10
|
+
userId: null,
|
|
11
|
+
},
|
|
12
|
+
bankConnection: {
|
|
13
|
+
fetchState: 'Not-Started',
|
|
14
|
+
error: undefined,
|
|
15
|
+
bankAccountIds: [],
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
const settings = (0, toolkit_1.createSlice)({
|
|
19
|
+
name: 'settings',
|
|
20
|
+
initialState: exports.initialState,
|
|
21
|
+
reducers: {
|
|
22
|
+
fetchMyProfileView: {
|
|
23
|
+
reducer() {
|
|
24
|
+
// Do nothing.
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
27
|
+
prepare(companyId) {
|
|
28
|
+
return { payload: { companyId } };
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
fetchMyProfile(draft) {
|
|
32
|
+
draft.profile.fetchState = 'In-Progress';
|
|
33
|
+
draft.profile.error = undefined;
|
|
34
|
+
},
|
|
35
|
+
updateMyProfileOnSuccess: {
|
|
36
|
+
prepare(userId) {
|
|
37
|
+
return { payload: { userId } };
|
|
38
|
+
},
|
|
39
|
+
reducer(draft, action) {
|
|
40
|
+
draft.profile.fetchState = 'Completed';
|
|
41
|
+
draft.profile.error = undefined;
|
|
42
|
+
draft.profile.userId = action.payload.userId;
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
updateMyProfileOnFailure(draft, action) {
|
|
46
|
+
draft.profile.fetchState = 'Error';
|
|
47
|
+
draft.profile.error = action.payload;
|
|
48
|
+
},
|
|
49
|
+
fetchBankConnectionsView() {
|
|
50
|
+
// Do nothing.
|
|
51
|
+
},
|
|
52
|
+
fetchBankAccountsList(draft) {
|
|
53
|
+
draft.bankConnection.fetchState = 'In-Progress';
|
|
54
|
+
draft.bankConnection.error = undefined;
|
|
55
|
+
},
|
|
56
|
+
updateBankConnectionOnSuccess(draft, action) {
|
|
57
|
+
draft.bankConnection.fetchState = 'Completed';
|
|
58
|
+
draft.bankConnection.error = undefined;
|
|
59
|
+
draft.bankConnection.bankAccountIds = action.payload.bankAccountIds;
|
|
60
|
+
},
|
|
61
|
+
updateBankConnectionOnFailure(draft, action) {
|
|
62
|
+
draft.bankConnection.fetchState = 'Error';
|
|
63
|
+
draft.bankConnection.error = action.payload;
|
|
64
|
+
},
|
|
65
|
+
clearSettingsView(draft) {
|
|
66
|
+
Object.assign(draft, exports.initialState);
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
_a = settings.actions, exports.fetchMyProfileView = _a.fetchMyProfileView, exports.fetchMyProfile = _a.fetchMyProfile, exports.updateMyProfileOnSuccess = _a.updateMyProfileOnSuccess, exports.updateMyProfileOnFailure = _a.updateMyProfileOnFailure, exports.fetchBankConnectionsView = _a.fetchBankConnectionsView, exports.updateBankConnectionOnSuccess = _a.updateBankConnectionOnSuccess, exports.updateBankConnectionOnFailure = _a.updateBankConnectionOnFailure, exports.fetchBankAccountsList = _a.fetchBankAccountsList, exports.clearSettingsView = _a.clearSettingsView;
|
|
71
|
+
exports.default = settings.reducer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RootState } from '../../reducer';
|
|
2
|
+
import { FetchStateAndError, ID } from '../../commonStateTypes/common';
|
|
3
|
+
import { TenantExternalConnections } from '../../entity/tenant/tenantState';
|
|
4
|
+
import { Company } from '../../entity/company/companyStateTypes';
|
|
5
|
+
import { MyBankConnectionsView, BankConnectionsSetupView, MyProfileSelectorView } from './types/settingsViewSelectorTypes';
|
|
6
|
+
export declare function getApprovalRuleViewDetails(state: RootState): FetchStateAndError;
|
|
7
|
+
export declare function getBankConnectionsSetupViewDetails(state: RootState, companyId: ID): BankConnectionsSetupView;
|
|
8
|
+
export declare function getMyBankConnectionsDetails(state: RootState, userId: ID): MyBankConnectionsView;
|
|
9
|
+
export interface IntegrationsView {
|
|
10
|
+
externalConnections: TenantExternalConnections | undefined;
|
|
11
|
+
companyView: Company | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare function getIntegrationsView(state: RootState, companyId: ID): IntegrationsView;
|
|
14
|
+
export declare const getMyProfileView: (state: RootState) => MyProfileSelectorView;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMyProfileView = exports.getIntegrationsView = exports.getMyBankConnectionsDetails = exports.getBankConnectionsSetupViewDetails = exports.getApprovalRuleViewDetails = void 0;
|
|
4
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
5
|
+
const tenantSelector_1 = require("../../entity/tenant/tenantSelector");
|
|
6
|
+
const companySelector_1 = require("../../entity/company/companySelector");
|
|
7
|
+
const userRoleSelector_1 = require("../../entity/userRole/userRoleSelector");
|
|
8
|
+
const userSelector_1 = require("../../entity/user/userSelector");
|
|
9
|
+
const accountSelector_1 = require("../../entity/account/accountSelector");
|
|
10
|
+
const paymentAccountSelector_1 = require("../../entity/paymentAccount/paymentAccountSelector");
|
|
11
|
+
const classSelector_1 = require("../../entity/class/classSelector");
|
|
12
|
+
const classSelectorV2_1 = require("../../entity/class/classSelectorV2");
|
|
13
|
+
const userListViewSelector_1 = require("../userListView/userListViewSelector");
|
|
14
|
+
const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
|
|
15
|
+
const companyPassportViewSelector_1 = require("../companyView/selector/companyPassportViewSelector");
|
|
16
|
+
const userFinancialAccountSelector_1 = require("../userFinancialAccount/userFinancialAccountSelector");
|
|
17
|
+
const setupViewSelector_1 = require("../../view/spendManagement/commonSetup/setupViewSelector");
|
|
18
|
+
function getApprovalRuleViewDetails(state) {
|
|
19
|
+
const { billPaySetupApproverViewState, remiSetupApproverViewState } = state;
|
|
20
|
+
const fetchState = (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
21
|
+
billPaySetupApproverViewState,
|
|
22
|
+
remiSetupApproverViewState,
|
|
23
|
+
]);
|
|
24
|
+
return {
|
|
25
|
+
fetchState: fetchState.fetchState,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.getApprovalRuleViewDetails = getApprovalRuleViewDetails;
|
|
29
|
+
function getBankConnectionsSetupViewDetails(state, companyId) {
|
|
30
|
+
const { accountState, setupViewState, settingsViewState } = state;
|
|
31
|
+
const { bankConnection } = settingsViewState;
|
|
32
|
+
const allBankAccounts = bankConnection.bankAccountIds
|
|
33
|
+
.map((accountId) => (0, accountSelector_1.getAccountBase)(accountState, accountId, 'bill_pay'))
|
|
34
|
+
.filter((account) => account != null);
|
|
35
|
+
const fetchState = (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
36
|
+
settingsViewState.bankConnection,
|
|
37
|
+
setupViewState.accountDetails.fetchStatus,
|
|
38
|
+
]);
|
|
39
|
+
return {
|
|
40
|
+
setupView: Object.assign(Object.assign({}, (0, setupViewSelector_1.getCommonSetupViewDetails)(state, companyId, 'bill_pay')), { allBankAccounts }),
|
|
41
|
+
fetchState: fetchState.fetchState,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.getBankConnectionsSetupViewDetails = getBankConnectionsSetupViewDetails;
|
|
45
|
+
function getMyBankConnectionsDetails(state, userId) {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
const userFinancialAccount = (0, userFinancialAccountSelector_1.getUserFinancialAccount)(state, userId);
|
|
48
|
+
const paymentAccounts = (0, paymentAccountSelector_1.getPaymentAccountsByBankAccountIds)(state.paymentAccountState, (_b = (_a = state.userFinancialAccountState.financialAccountByUserId[userId]) === null || _a === void 0 ? void 0 : _a.bankAccountIds) !== null && _b !== void 0 ? _b : []);
|
|
49
|
+
return Object.assign(Object.assign({}, userFinancialAccount), { paymentAccounts });
|
|
50
|
+
}
|
|
51
|
+
exports.getMyBankConnectionsDetails = getMyBankConnectionsDetails;
|
|
52
|
+
function getIntegrationsView(state, companyId) {
|
|
53
|
+
var _a;
|
|
54
|
+
const externalConnections = (0, tenantSelector_1.getCurrentTenantExternalConnections)(state.tenantState, state.companyState);
|
|
55
|
+
const companyView = (_a = (0, companySelector_1.getCompanyByCompanyId)(state.companyState, companyId)) === null || _a === void 0 ? void 0 : _a.company;
|
|
56
|
+
return {
|
|
57
|
+
externalConnections,
|
|
58
|
+
companyView,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.getIntegrationsView = getIntegrationsView;
|
|
62
|
+
exports.getMyProfileView = (0, toolkit_1.createSelector)((state) => state.tenantState, (state) => state.userState, (state) => state.userRoleState, (state) => state.settingsViewState, (state) => state.classState, (state) => state.classListState, (state) => (0, companyPassportViewSelector_1.getCompanyPassportView)(state), (state) => (0, userListViewSelector_1.getUserList)(state, 'manager'), (tenantState, userState, userRoleState, settingsViewState, classState, classListState, companyPassportView, managersListView) => {
|
|
63
|
+
var _a, _b, _c, _d;
|
|
64
|
+
const userId = (_a = tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId;
|
|
65
|
+
if (userId == null) {
|
|
66
|
+
throw new Error(`User not logged in`);
|
|
67
|
+
}
|
|
68
|
+
const user = (0, userSelector_1.getUserByUserId)(userState, userId);
|
|
69
|
+
const userRole = (0, userRoleSelector_1.getUserRoleByUserId)(userRoleState, userId);
|
|
70
|
+
const person = {
|
|
71
|
+
userId,
|
|
72
|
+
user,
|
|
73
|
+
userRole,
|
|
74
|
+
};
|
|
75
|
+
const isZeniUser = (_b = userRole === null || userRole === void 0 ? void 0 : userRole.isZeni) !== null && _b !== void 0 ? _b : true;
|
|
76
|
+
const departmentIds = (_c = userRole === null || userRole === void 0 ? void 0 : userRole.accountingClassIDs) !== null && _c !== void 0 ? _c : [];
|
|
77
|
+
const classList = (0, classSelectorV2_1.getClassesByIds)(classState, {
|
|
78
|
+
classIds: classListState.classIds,
|
|
79
|
+
reportId: 'class_list',
|
|
80
|
+
});
|
|
81
|
+
const department = departmentIds.length > 0
|
|
82
|
+
? (0, classSelector_1.getClassById)(classState, {
|
|
83
|
+
classId: departmentIds[0],
|
|
84
|
+
reportId: 'class_list',
|
|
85
|
+
})
|
|
86
|
+
: undefined;
|
|
87
|
+
const fetchState = (0, reduceFetchState_1.reduceAnyFetchState)([
|
|
88
|
+
settingsViewState.profile,
|
|
89
|
+
companyPassportView,
|
|
90
|
+
classListState,
|
|
91
|
+
]);
|
|
92
|
+
const controllersList = ((_d = companyPassportView.companyView) === null || _d === void 0 ? void 0 : _d.controllers) != null
|
|
93
|
+
? companyPassportView.companyView.controllers.map((controller) => controller.user)
|
|
94
|
+
: [];
|
|
95
|
+
const myProfilePeopleView = {
|
|
96
|
+
fetchState: fetchState.fetchState,
|
|
97
|
+
error: fetchState.error,
|
|
98
|
+
isZeniUser,
|
|
99
|
+
person,
|
|
100
|
+
department,
|
|
101
|
+
classList,
|
|
102
|
+
controllersList,
|
|
103
|
+
managersList: managersListView.users,
|
|
104
|
+
};
|
|
105
|
+
const managerId = userRole === null || userRole === void 0 ? void 0 : userRole.managerUserId;
|
|
106
|
+
if (managerId != null) {
|
|
107
|
+
const managerUser = (0, userSelector_1.getUserByUserId)(userState, managerId);
|
|
108
|
+
const managerUserRole = (0, userRoleSelector_1.getUserRoleByUserId)(userRoleState, managerId);
|
|
109
|
+
if (managerUser != null) {
|
|
110
|
+
const manager = {
|
|
111
|
+
userId: managerId,
|
|
112
|
+
user: managerUser,
|
|
113
|
+
userRole: managerUserRole,
|
|
114
|
+
};
|
|
115
|
+
return Object.assign(Object.assign({}, myProfilePeopleView), { manager });
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return myProfilePeopleView;
|
|
119
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ID, FetchStateAndError } from '../../commonStateTypes/common';
|
|
2
|
+
interface MyProfile extends FetchStateAndError {
|
|
3
|
+
userId: ID | null;
|
|
4
|
+
}
|
|
5
|
+
interface BankConnection extends FetchStateAndError {
|
|
6
|
+
bankAccountIds: ID[];
|
|
7
|
+
}
|
|
8
|
+
export interface SettingsViewState {
|
|
9
|
+
profile: MyProfile;
|
|
10
|
+
bankConnection: BankConnection;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ID, FetchStateAndError } from '../../../commonStateTypes/common';
|
|
2
|
+
import { SelectorView } from '../../../commonStateTypes/viewAndReport/viewAndReport';
|
|
3
|
+
import { Class } from '../../../entity/class/classState';
|
|
4
|
+
import { PaymentAccount } from '../../../entity/paymentAccount/paymentAccountState';
|
|
5
|
+
import { User } from '../../../entity/user/userState';
|
|
6
|
+
import { UserRole } from '../../../entity/userRole/userRoleState';
|
|
7
|
+
import { Person } from '../../people/peopleSelectorTypes';
|
|
8
|
+
import { SetupView } from '../../spendManagement/commonSetup/setupViewSelector';
|
|
9
|
+
import { UserFinancialAccountSelectorView } from '../../userFinancialAccount/userFinancialAccountSelector';
|
|
10
|
+
export interface MyProfileSelectorView extends SelectorView {
|
|
11
|
+
isZeniUser: boolean;
|
|
12
|
+
person: MyProfile;
|
|
13
|
+
classList: Class[];
|
|
14
|
+
managersList: Person[];
|
|
15
|
+
controllersList: User[];
|
|
16
|
+
manager?: MyProfile;
|
|
17
|
+
department?: Class;
|
|
18
|
+
}
|
|
19
|
+
export interface MyProfile {
|
|
20
|
+
userId: ID;
|
|
21
|
+
user: User | undefined;
|
|
22
|
+
userRole: UserRole | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface MyBankConnectionsView extends UserFinancialAccountSelectorView {
|
|
25
|
+
paymentAccounts: PaymentAccount[];
|
|
26
|
+
}
|
|
27
|
+
export interface BankConnectionsSetupView extends FetchStateAndError {
|
|
28
|
+
setupView: SetupView;
|
|
29
|
+
}
|
|
@@ -49,7 +49,7 @@ const getReviewPageBillDetail = (state, billId) => {
|
|
|
49
49
|
const withdrawFromList = (0, paymentAccountSelector_1.getPaymentAccountsByPaymentAccountIds)(paymentAccountState, setupViewState.accountDetails.paymentAccountIds);
|
|
50
50
|
let fetchState = 'Not-Started';
|
|
51
51
|
let sourceBillDetailFetchState = 'Not-Started';
|
|
52
|
-
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, '
|
|
52
|
+
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'billPayAccountList');
|
|
53
53
|
let toAccountVendorEmail = undefined;
|
|
54
54
|
let isCollectToAccountInfoFromVendorContact = false;
|
|
55
55
|
let isRecurring = false;
|
|
@@ -73,7 +73,7 @@ const getReviewPageBillDetail = (state, billId) => {
|
|
|
73
73
|
if (sourceBillDetail != null) {
|
|
74
74
|
sourceBillDetailFetchState = (0, reduceFetchState_1.reduceFetchState)([
|
|
75
75
|
sourceBillDetail.fetchStatus,
|
|
76
|
-
accountListState.byReportId['
|
|
76
|
+
accountListState.byReportId['billPayAccountList'],
|
|
77
77
|
classListState,
|
|
78
78
|
]).fetchState;
|
|
79
79
|
}
|
|
@@ -85,7 +85,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId)
|
|
|
85
85
|
paymentDetailsSection: getPaymentSection(state, withdrawFromList, {}),
|
|
86
86
|
totalAmount: sourceBillDetail === null || sourceBillDetail === void 0 ? void 0 : sourceBillDetail.billDetailLocalData.totalAmount,
|
|
87
87
|
};
|
|
88
|
-
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, '
|
|
88
|
+
const accountList = (0, accountListSelector_1.getAccountList)(accountState, accountListState, 'billPayAccountList');
|
|
89
89
|
let billPayInfo = undefined;
|
|
90
90
|
let toAccountVendorEmail = undefined;
|
|
91
91
|
let isCollectToAccountInfoFromVendorContact = false;
|
|
@@ -150,7 +150,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId)
|
|
|
150
150
|
if (billViewState != null) {
|
|
151
151
|
fetchState = (0, reduceFetchState_1.reduceFetchState)([
|
|
152
152
|
billViewState,
|
|
153
|
-
accountListState.byReportId.
|
|
153
|
+
accountListState.byReportId.billPayAccountList,
|
|
154
154
|
classListState,
|
|
155
155
|
]).fetchState;
|
|
156
156
|
deleteStatus = billViewState.deleteStatus;
|
|
@@ -167,7 +167,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId)
|
|
|
167
167
|
}
|
|
168
168
|
else {
|
|
169
169
|
fetchState = (0, reduceFetchState_1.reduceFetchState)([
|
|
170
|
-
accountListState.byReportId
|
|
170
|
+
accountListState.byReportId.billPayAccountList,
|
|
171
171
|
classListState,
|
|
172
172
|
]).fetchState;
|
|
173
173
|
}
|
|
@@ -277,7 +277,7 @@ const getEditBillDetail = (state, isVendorRecommendationFeatureEnabled, billId)
|
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
const billHistory = (0, commonHistorySelector_1.getActivityHistory)(commonHistoryState, billId !== null && billId !== void 0 ? billId : '', 'bill_pay');
|
|
280
|
-
const accountsHeirarchyList = (0, accountListSelector_1.getNestedAccountListHeirarchy)(accountListState, '
|
|
280
|
+
const accountsHeirarchyList = (0, accountListSelector_1.getNestedAccountListHeirarchy)(accountListState, 'billPayAccountList');
|
|
281
281
|
const classHeirarchyList = (0, classListSelector_1.getNestedClassListHeirarchy)(classListState);
|
|
282
282
|
const duplicateBills = (0, billPayReviewSelector_1.getDuplicateBills)(state, billId);
|
|
283
283
|
return {
|