@zeniai/client-epic-state 5.0.82-betaAN1 → 5.0.82-betaAR2
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/aiCfo/aiCfoPayload.d.ts +0 -1
- package/lib/entity/aiCfo/aiCfoReducer.js +1 -3
- package/lib/entity/aiCfo/aiCfoState.d.ts +0 -1
- package/lib/entity/approvalRule/approvalRulePayload.d.ts +34 -5
- package/lib/entity/approvalRule/approvalRulePayload.js +130 -10
- package/lib/entity/approvalRule/approvalRuleSelector.d.ts +25 -1
- package/lib/entity/approvalRule/approvalRuleSelector.js +40 -0
- package/lib/entity/approvalRule/approvalRuleState.d.ts +59 -7
- package/lib/esm/entity/aiCfo/aiCfoReducer.js +1 -3
- package/lib/esm/entity/approvalRule/approvalRulePayload.js +130 -10
- package/lib/esm/entity/approvalRule/approvalRuleSelector.js +35 -0
- package/lib/esm/index.js +2 -1
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +29 -11
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +11 -2
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +9 -4
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +11 -7
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +14 -4
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +122 -16
- package/lib/esm/view/spendManagement/billPay/editBillView/editBillViewSelector.js +7 -2
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +11 -2
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +9 -2
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +11 -7
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +14 -4
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +28 -10
- package/lib/index.d.ts +3 -2
- package/lib/index.js +22 -16
- package/lib/view/companyTaskManagerView/companyTaskManagerViewReducer.d.ts +2 -2
- package/lib/view/companyView/types/cockpitTypes.d.ts +1 -1
- package/lib/view/people/peopleTypes.d.ts +1 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.d.ts +7 -3
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +29 -11
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/deleteBillPayApprovalRuleEpic.js +11 -2
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/fetchBillPaySetupApproverViewEpic.js +9 -4
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/initializeBillPaySetupApproverViewUpdateDataEpic.js +10 -6
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/epic/saveBillPaySetupApproverViewUpdatesEpic.js +13 -3
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +50 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +124 -17
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonState.d.ts +31 -5
- package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +7 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/deleteRemiApprovalRuleEpic.js +11 -2
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/fetchRemiSetupApproverViewEpic.js +9 -2
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/initializeRemiSetupApproverViewUpdateDataEpic.js +10 -6
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/epic/saveRemiSetupApproverViewUpdatesEpic.js +13 -3
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.d.ts +7 -3
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +28 -10
- package/lib/view/taskManager/taskListView/taskList.d.ts +3 -3
- package/package.json +1 -1
|
@@ -26,8 +26,11 @@ const billPaySetupApproverView = createSlice({
|
|
|
26
26
|
draft.fetchState = 'In-Progress';
|
|
27
27
|
draft.error = undefined;
|
|
28
28
|
},
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// Approval Rules 3.0 — `useV3` arrives from the screen connector
|
|
30
|
+
// (`approval_rule_v3_config` dynamic config) and picks the v1 vs
|
|
31
|
+
// v2 endpoint in the fetch epic.
|
|
32
|
+
prepare(cacheOverride = false, includeUserRoles = true, useV3 = false) {
|
|
33
|
+
return { payload: { cacheOverride, includeUserRoles, useV3 } };
|
|
31
34
|
},
|
|
32
35
|
},
|
|
33
36
|
fetchBillPaySetupApproverViewSuccess: {
|
|
@@ -112,8 +115,11 @@ const billPaySetupApproverView = createSlice({
|
|
|
112
115
|
error: undefined,
|
|
113
116
|
};
|
|
114
117
|
},
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
// Approval Rules 3.0 — `useV3` flows from the screen connector
|
|
119
|
+
// (`approval_rule_v3_config` dynamic config) so the delete epic
|
|
120
|
+
// can pick the v1 vs v2 endpoint.
|
|
121
|
+
prepare(approvalRuleId, useV3 = false) {
|
|
122
|
+
return { payload: { approvalRuleId, useV3 } };
|
|
117
123
|
},
|
|
118
124
|
},
|
|
119
125
|
deleteBillPayApprovalRuleSuccess: {
|
|
@@ -145,13 +151,25 @@ const billPaySetupApproverView = createSlice({
|
|
|
145
151
|
};
|
|
146
152
|
},
|
|
147
153
|
},
|
|
148
|
-
saveBillPaySetupApproverViewUpdates
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
saveBillPaySetupApproverViewUpdates: {
|
|
155
|
+
// Approval Rules 3.0 — `useV3` is sourced from the
|
|
156
|
+
// `approval_rule_v3_config` dynamic config in the screen
|
|
157
|
+
// connector. The reducer doesn't read it (the field only
|
|
158
|
+
// matters in the save epic), but it must be declared so the
|
|
159
|
+
// action's payload type is correctly inferred for downstream
|
|
160
|
+
// consumers.
|
|
161
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
162
|
+
reducer(draft, _action) {
|
|
163
|
+
if (draft.billPaySetupApproverViewUpdateData != null) {
|
|
164
|
+
draft.billPaySetupApproverViewUpdateData.updateStatus = {
|
|
165
|
+
fetchState: 'In-Progress',
|
|
166
|
+
error: undefined,
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
prepare(useV3) {
|
|
171
|
+
return { payload: { useV3 } };
|
|
172
|
+
},
|
|
155
173
|
},
|
|
156
174
|
saveBillPaySetupApproverViewUpdatesSuccess: {
|
|
157
175
|
reducer(draft, action) {
|
|
@@ -6,9 +6,18 @@ import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { deleteBillPayApprovalRule, deleteBillPayApprovalRuleFailure, deleteBillPayApprovalRuleSuccess, } from '../billPaySetupApproverViewReducer';
|
|
8
8
|
export const deleteBillPayApprovalRuleEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteBillPayApprovalRule.match), switchMap((action) => {
|
|
9
|
-
const { approvalRuleId } = action.payload;
|
|
9
|
+
const { approvalRuleId, useV3 } = action.payload;
|
|
10
|
+
// Approval Rules 3.0 — flag-gated endpoint selection.
|
|
11
|
+
// Explicit `=== true` keeps `strict-boolean-expressions` happy
|
|
12
|
+
// when RTK's payload type widens to `any` in some configs.
|
|
13
|
+
const endpoint = useV3 === true
|
|
14
|
+
? // ? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules-v2`
|
|
15
|
+
`https://dev.api.zeni.ai/version/approval/tarun/1.0/bill-pay/approval-rules-v2`
|
|
16
|
+
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`;
|
|
10
17
|
return zeniAPI
|
|
11
|
-
.deleteAndGetJSON(
|
|
18
|
+
.deleteAndGetJSON(endpoint, {
|
|
19
|
+
approval_rule_id: approvalRuleId,
|
|
20
|
+
})
|
|
12
21
|
.pipe(mergeMap((response) => {
|
|
13
22
|
if (isSuccessResponse(response) && response.data != null) {
|
|
14
23
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|
|
@@ -6,7 +6,7 @@ import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { fetchBillPaySetupApproverView, fetchBillPaySetupApproverViewFailure, fetchBillPaySetupApproverViewSuccess, } from '../billPaySetupApproverViewReducer';
|
|
8
8
|
export const fetchBillPaySetupApproverViewEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchBillPaySetupApproverView.match), switchMap((action) => {
|
|
9
|
-
const { cacheOverride } = action.payload;
|
|
9
|
+
const { cacheOverride, useV3 } = action.payload;
|
|
10
10
|
const { billPaySetupApproverViewState, approvalRuleState } = state$.value;
|
|
11
11
|
const approvalRules = getApprovalRulesByIds(approvalRuleState, billPaySetupApproverViewState.approvalRuleIds);
|
|
12
12
|
if (cacheOverride === true ||
|
|
@@ -14,9 +14,14 @@ export const fetchBillPaySetupApproverViewEpic = (actions$, state$, zeniAPI) =>
|
|
|
14
14
|
billPaySetupApproverViewState.approvalRuleIds.length ||
|
|
15
15
|
(billPaySetupApproverViewState.hasValidState() === false &&
|
|
16
16
|
billPaySetupApproverViewState.fetchState !== 'In-Progress')) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
// Approval Rules 3.0 — flag-gated endpoint selection.
|
|
18
|
+
// Explicit `=== true` keeps `strict-boolean-expressions` happy
|
|
19
|
+
// when RTK's payload type widens to `any` in some configs.
|
|
20
|
+
const endpoint = useV3 === true
|
|
21
|
+
? // ? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules-v2`
|
|
22
|
+
`https://dev.api.zeni.ai/version/approval/tarun/1.0/bill-pay/approval-rules-v2`
|
|
23
|
+
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`;
|
|
24
|
+
return zeniAPI.getJSON(endpoint).pipe(mergeMap((response) => {
|
|
20
25
|
if (isSuccessResponse(response) && response.data != null) {
|
|
21
26
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|
|
22
27
|
const actions = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { from } from 'rxjs';
|
|
2
2
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
|
-
import { getApprovalRuleById } from '../../../../../entity/approvalRule/approvalRuleSelector';
|
|
3
|
+
import { getAmountCriteria, getApprovalRuleById, getDepartmentCriteria, getVendorCriteria, } from '../../../../../entity/approvalRule/approvalRuleSelector';
|
|
4
4
|
import { clearBillPaySetupApproverViewUpdateData, initializeBillPaySetupApproverViewUpdateData, saveBillPaySetupApproverViewUpdateData, } from '../billPaySetupApproverViewReducer';
|
|
5
5
|
export const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state$) => actions$.pipe(filter(initializeBillPaySetupApproverViewUpdateData.match), mergeMap((action) => {
|
|
6
6
|
const { approvalRuleId } = action.payload;
|
|
@@ -8,16 +8,20 @@ export const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state
|
|
|
8
8
|
if (approvalRuleId != null) {
|
|
9
9
|
const approvalRule = getApprovalRuleById(state$.value.approvalRuleState, approvalRuleId);
|
|
10
10
|
if (approvalRule != null) {
|
|
11
|
-
const criteria = approvalRule.criteria[0];
|
|
12
|
-
const range = criteria?.range;
|
|
13
11
|
const billPaySetupApproverViewUpdateData = {
|
|
14
12
|
approvalRuleId,
|
|
15
13
|
steps: approvalRule.steps,
|
|
16
14
|
criteria: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
amount: getAmountCriteria(approvalRule.criteria),
|
|
16
|
+
vendor: getVendorCriteria(approvalRule.criteria),
|
|
17
|
+
department: getDepartmentCriteria(approvalRule.criteria),
|
|
20
18
|
},
|
|
19
|
+
// Approval Rules 3.0 — seed rule-level fields so the form can
|
|
20
|
+
// round-trip them on edit. Each may be undefined on legacy rules.
|
|
21
|
+
name: approvalRule.name,
|
|
22
|
+
description: approvalRule.description,
|
|
23
|
+
separationOfDuties: approvalRule.separationOfDuties,
|
|
24
|
+
isFallback: approvalRule.isFallback,
|
|
21
25
|
};
|
|
22
26
|
fetchActions.push(clearBillPaySetupApproverViewUpdateData(), saveBillPaySetupApproverViewUpdateData(billPaySetupApproverViewUpdateData));
|
|
23
27
|
}
|
|
@@ -25,7 +29,7 @@ export const initializeBillPaySetupApproverViewUpdateDataEpic = (actions$, state
|
|
|
25
29
|
else {
|
|
26
30
|
const billPaySetupApproverViewCreateData = {
|
|
27
31
|
steps: [],
|
|
28
|
-
criteria:
|
|
32
|
+
criteria: {},
|
|
29
33
|
};
|
|
30
34
|
fetchActions.push(clearBillPaySetupApproverViewUpdateData(), saveBillPaySetupApproverViewUpdateData(billPaySetupApproverViewCreateData));
|
|
31
35
|
}
|
|
@@ -5,15 +5,25 @@ import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
|
5
5
|
import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { saveBillPaySetupApproverViewUpdates, saveBillPaySetupApproverViewUpdatesFailure, saveBillPaySetupApproverViewUpdatesSuccess, } from '../billPaySetupApproverViewReducer';
|
|
8
|
-
import { toApprovalChangableInfoPayload } from '../types/commonPayload';
|
|
9
|
-
export const saveBillPaySetupApproverViewUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(saveBillPaySetupApproverViewUpdates.match), switchMap(() => {
|
|
8
|
+
import { toApprovalChangableInfoPayload, toApprovalChangableInfoPayloadV1, } from '../types/commonPayload';
|
|
9
|
+
export const saveBillPaySetupApproverViewUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(saveBillPaySetupApproverViewUpdates.match), switchMap((action) => {
|
|
10
10
|
const { billPaySetupApproverViewState } = state$.value;
|
|
11
11
|
const billPaySetupApproverViewUpdateData = billPaySetupApproverViewState.billPaySetupApproverViewUpdateData;
|
|
12
12
|
if (billPaySetupApproverViewUpdateData != null &&
|
|
13
13
|
billPaySetupApproverViewUpdateData.data != null) {
|
|
14
|
-
|
|
14
|
+
// Approval Rules 3.0 — gate URL + write-side payload mapper on
|
|
15
|
+
// the `approval_rule_v3_config` dynamic config. `useV3` arrives
|
|
16
|
+
// on the action payload from the screen connector.
|
|
17
|
+
const { useV3 } = action.payload;
|
|
18
|
+
const payload = useV3
|
|
19
|
+
? toApprovalChangableInfoPayload(billPaySetupApproverViewUpdateData.data)
|
|
20
|
+
: toApprovalChangableInfoPayloadV1(billPaySetupApproverViewUpdateData.data);
|
|
21
|
+
const endpoint = useV3
|
|
22
|
+
? // ? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules-v2`
|
|
23
|
+
`https://dev.api.zeni.ai/version/approval/tarun/1.0/bill-pay/approval-rules-v2`
|
|
24
|
+
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/bill-pay/approval-rules`;
|
|
15
25
|
return zeniAPI
|
|
16
|
-
.postAndGetJSON(
|
|
26
|
+
.postAndGetJSON(endpoint, payload)
|
|
17
27
|
.pipe(mergeMap((response) => {
|
|
18
28
|
if (isSuccessResponse(response) && response.data != null) {
|
|
19
29
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|
package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js
CHANGED
|
@@ -1,20 +1,48 @@
|
|
|
1
1
|
export const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
|
|
2
|
-
|
|
2
|
+
// Form-side criteria is a structured object with optional slots for
|
|
3
|
+
// amount / vendor / department; flatten it into the wire format's
|
|
4
|
+
// `conditions[]` array.
|
|
5
|
+
let criteriaPayload;
|
|
3
6
|
if (approverViewUpdateData.criteria != null) {
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
const { amount, vendor, department } = approverViewUpdateData.criteria;
|
|
8
|
+
const conditions = [];
|
|
9
|
+
if (amount?.min != null) {
|
|
10
|
+
conditions.push({
|
|
11
|
+
field: 'amount',
|
|
12
|
+
type: 'gte',
|
|
13
|
+
value: amount.min.amount,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
if (amount?.max != null) {
|
|
17
|
+
conditions.push({
|
|
18
|
+
field: 'amount',
|
|
19
|
+
type: 'lte',
|
|
20
|
+
value: amount.max.amount,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
if (vendor != null && vendor.vendorIds.length > 0) {
|
|
24
|
+
conditions.push({
|
|
25
|
+
field: 'vendor_id',
|
|
26
|
+
type: vendor.operator === 'is_not' ? 'not_in' : 'in',
|
|
27
|
+
value: vendor.vendorIds,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (department != null && department.departmentIds.length > 0) {
|
|
31
|
+
conditions.push({
|
|
32
|
+
field: 'department_id',
|
|
33
|
+
type: department.operator === 'is_not' ? 'not_in' : 'in',
|
|
34
|
+
value: department.departmentIds,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
if (conditions.length > 0) {
|
|
38
|
+
const currency = amount?.min ?? amount?.max ?? null;
|
|
39
|
+
criteriaPayload = {
|
|
40
|
+
conditions,
|
|
41
|
+
criteria_operator: 'and',
|
|
42
|
+
currency_code: currency?.currencyCode ?? 'USD',
|
|
43
|
+
currency_symbol: currency?.currencySymbol ?? '$',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
18
46
|
}
|
|
19
47
|
const steps = approverViewUpdateData.steps.map((step) => {
|
|
20
48
|
return {
|
|
@@ -35,10 +63,88 @@ export const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
|
|
|
35
63
|
});
|
|
36
64
|
const isUpdate = approverViewUpdateData.approvalRuleId != null;
|
|
37
65
|
const payload = {
|
|
38
|
-
criteria: criteriaPayload,
|
|
39
66
|
steps,
|
|
40
67
|
is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
|
|
41
68
|
};
|
|
69
|
+
if (criteriaPayload != null) {
|
|
70
|
+
payload.criteria = criteriaPayload;
|
|
71
|
+
}
|
|
72
|
+
// Approval Rules 3.0 — surface rule-level fields when the form set them.
|
|
73
|
+
// Send only what the user actually entered: an undefined value means
|
|
74
|
+
// "no opinion" and stays off the wire.
|
|
75
|
+
if (approverViewUpdateData.name != null) {
|
|
76
|
+
payload.name = approverViewUpdateData.name;
|
|
77
|
+
}
|
|
78
|
+
if (approverViewUpdateData.description != null) {
|
|
79
|
+
payload.description = approverViewUpdateData.description;
|
|
80
|
+
}
|
|
81
|
+
if (approverViewUpdateData.separationOfDuties != null) {
|
|
82
|
+
payload.is_separation_of_duty_enabled =
|
|
83
|
+
approverViewUpdateData.separationOfDuties;
|
|
84
|
+
}
|
|
85
|
+
if (approverViewUpdateData.isFallback != null) {
|
|
86
|
+
payload.is_fallback = approverViewUpdateData.isFallback;
|
|
87
|
+
}
|
|
88
|
+
if (isUpdate) {
|
|
89
|
+
payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
|
|
90
|
+
}
|
|
91
|
+
return payload;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* V1 wire mapper — used when `approval_rule_v3_config` resolves to OFF
|
|
95
|
+
* for the current tenant. Translates the form-side amount criteria into
|
|
96
|
+
* the legacy `{rangeType, rangeEntity, range: {min, max}}` shape. The
|
|
97
|
+
* V1 backend does not understand vendor / department criteria or the
|
|
98
|
+
* rule-level 3.0 fields, so those are dropped on the wire.
|
|
99
|
+
*
|
|
100
|
+
* The form-side amount slot is always read as a `range`-style criteria
|
|
101
|
+
* here: V1 schemas only supported ranges, so an absent `min` or `max`
|
|
102
|
+
* falls back to `0` / `Number.MAX_SAFE_INTEGER`.
|
|
103
|
+
*/
|
|
104
|
+
export const toApprovalChangableInfoPayloadV1 = (approverViewUpdateData) => {
|
|
105
|
+
const amount = approverViewUpdateData.criteria?.amount;
|
|
106
|
+
const minAmount = amount?.min;
|
|
107
|
+
const maxAmount = amount?.max;
|
|
108
|
+
const currencyCode = minAmount?.currencyCode ?? maxAmount?.currencyCode ?? 'USD';
|
|
109
|
+
const currencySymbol = minAmount?.currencySymbol ?? maxAmount?.currencySymbol ?? '$';
|
|
110
|
+
const steps = approverViewUpdateData.steps.map((step) => {
|
|
111
|
+
return {
|
|
112
|
+
action: step.action,
|
|
113
|
+
operator: step.operator,
|
|
114
|
+
actors: step.actors
|
|
115
|
+
.filter((actor) => actor.subType !== 'admin')
|
|
116
|
+
.map((actor) => {
|
|
117
|
+
return {
|
|
118
|
+
type: actor.type,
|
|
119
|
+
id: actor.userId ?? null,
|
|
120
|
+
sub_type: actor.subType ?? null,
|
|
121
|
+
id_type: actor.idType ?? null,
|
|
122
|
+
is_implicit_actor: actor.isImplicitActor ?? false,
|
|
123
|
+
};
|
|
124
|
+
}),
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
const isUpdate = approverViewUpdateData.approvalRuleId != null;
|
|
128
|
+
const payload = {
|
|
129
|
+
steps,
|
|
130
|
+
is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
|
|
131
|
+
criteria: {
|
|
132
|
+
rangeType: 'range',
|
|
133
|
+
rangeEntity: 'currency',
|
|
134
|
+
range: {
|
|
135
|
+
min: {
|
|
136
|
+
amount: minAmount?.amount ?? 0,
|
|
137
|
+
currencyCode,
|
|
138
|
+
currencySymbol,
|
|
139
|
+
},
|
|
140
|
+
max: {
|
|
141
|
+
amount: maxAmount?.amount ?? Number.MAX_SAFE_INTEGER,
|
|
142
|
+
currencyCode,
|
|
143
|
+
currencySymbol,
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
};
|
|
42
148
|
if (isUpdate) {
|
|
43
149
|
payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
|
|
44
150
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import recordGet from 'lodash/get';
|
|
2
2
|
import has from 'lodash/has';
|
|
3
|
+
import { getAmountCriteria } from '../../../../entity/approvalRule/approvalRuleSelector';
|
|
3
4
|
import { reduceFetchState } from '../../../../commonStateTypes/reduceFetchState';
|
|
4
5
|
import { getBankAccountByBankAccountId, getBankAccountsByBankAccountIds, } from '../../../../entity/bankAccount/bankAccountSelector';
|
|
5
6
|
import { getContactById, getContactsByIds, } from '../../../../entity/billPay/contact/contactSelector';
|
|
@@ -681,9 +682,13 @@ export const getDefaultWithdrawFromAccount = (state, depositAccounts, companyId,
|
|
|
681
682
|
export const checkIfCreatorIsApprover = (billAmount, approvalRules, signedInUser) => {
|
|
682
683
|
let isCreatorAlsoApprover = false;
|
|
683
684
|
const approvalRule = approvalRules.find((rule) => {
|
|
684
|
-
const
|
|
685
|
+
const amountCriteria = getAmountCriteria(rule.criteria);
|
|
686
|
+
if (amountCriteria?.min == null) {
|
|
687
|
+
return false;
|
|
688
|
+
}
|
|
689
|
+
const { min, max } = amountCriteria;
|
|
685
690
|
return (billAmount > min.amount &&
|
|
686
|
-
(max?.amount != null ? billAmount <= max
|
|
691
|
+
(max?.amount != null ? billAmount <= max.amount : true));
|
|
687
692
|
});
|
|
688
693
|
if (approvalRule != null) {
|
|
689
694
|
const requireApprovalSteps = approvalRule.steps.filter((step) => step.action === 'require_approval');
|
|
@@ -6,9 +6,18 @@ import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { deleteRemiApprovalRule, deleteRemiApprovalRuleFailure, deleteRemiApprovalRuleSuccess, } from '../remiSetupApproverViewReducer';
|
|
8
8
|
export const deleteRemiApprovalRuleEpic = (actions$, _state$, zeniAPI) => actions$.pipe(filter(deleteRemiApprovalRule.match), switchMap((action) => {
|
|
9
|
-
const { approvalRuleId } = action.payload;
|
|
9
|
+
const { approvalRuleId, useV3 } = action.payload;
|
|
10
|
+
// Approval Rules 3.0 — flag-gated endpoint selection.
|
|
11
|
+
// Explicit `=== true` keeps `strict-boolean-expressions` happy
|
|
12
|
+
// when RTK's payload type widens to `any` in some configs.
|
|
13
|
+
const endpoint = useV3 === true
|
|
14
|
+
? // ? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/reimbursements/approval-rules-v2`
|
|
15
|
+
`https://dev.api.zeni.ai/version/approval/tarun/1.0/reimbursements/approval-rules-v2`
|
|
16
|
+
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/reimbursements/approval-rules`;
|
|
10
17
|
return zeniAPI
|
|
11
|
-
.deleteAndGetJSON(
|
|
18
|
+
.deleteAndGetJSON(endpoint, {
|
|
19
|
+
approval_rule_id: approvalRuleId,
|
|
20
|
+
})
|
|
12
21
|
.pipe(mergeMap((response) => {
|
|
13
22
|
if (isSuccessResponse(response) && response.data != null) {
|
|
14
23
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|
|
@@ -6,7 +6,7 @@ import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
7
|
import { fetchRemiSetupApproverView, fetchRemiSetupApproverViewFailure, fetchRemiSetupApproverViewSuccess, } from '../remiSetupApproverViewReducer';
|
|
8
8
|
export const fetchRemiSetupApproverViewEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(fetchRemiSetupApproverView.match), switchMap((action) => {
|
|
9
|
-
const { cacheOverride, resolveAttributeToUser, includeImplicitActors } = action.payload;
|
|
9
|
+
const { cacheOverride, resolveAttributeToUser, includeImplicitActors, useV3, } = action.payload;
|
|
10
10
|
const { remiSetupApproverViewState, approvalRuleState } = state$.value;
|
|
11
11
|
const approvalRules = getApprovalRulesByIds(approvalRuleState, remiSetupApproverViewState.approvalRuleIds);
|
|
12
12
|
if (cacheOverride === true ||
|
|
@@ -14,8 +14,15 @@ export const fetchRemiSetupApproverViewEpic = (actions$, state$, zeniAPI) => act
|
|
|
14
14
|
remiSetupApproverViewState.approvalRuleIds.length ||
|
|
15
15
|
(remiSetupApproverViewState.hasValidState() === false &&
|
|
16
16
|
remiSetupApproverViewState.fetchState !== 'In-Progress')) {
|
|
17
|
+
// Approval Rules 3.0 — flag-gated endpoint selection.
|
|
18
|
+
// Explicit `=== true` keeps `strict-boolean-expressions` happy
|
|
19
|
+
// when RTK's payload type widens to `any` in some configs.
|
|
20
|
+
const basePath = useV3 === true
|
|
21
|
+
? // ? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/reimbursements/approval-rules-v2`
|
|
22
|
+
`https://dev.api.zeni.ai/version/approval/tarun/1.0/reimbursements/approval-rules-v2`
|
|
23
|
+
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/reimbursements/approval-rules`;
|
|
17
24
|
return zeniAPI
|
|
18
|
-
.getJSON(`${
|
|
25
|
+
.getJSON(`${basePath}?query={"is_include_implicit_actors": ${includeImplicitActors}, "is_resolve_attribute_to_user":${resolveAttributeToUser}}`)
|
|
19
26
|
.pipe(mergeMap((response) => {
|
|
20
27
|
if (isSuccessResponse(response) && response.data != null) {
|
|
21
28
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { from } from 'rxjs';
|
|
2
2
|
import { filter, mergeMap } from 'rxjs/operators';
|
|
3
|
-
import { getApprovalRuleById } from '../../../../../entity/approvalRule/approvalRuleSelector';
|
|
3
|
+
import { getAmountCriteria, getApprovalRuleById, getDepartmentCriteria, getVendorCriteria, } from '../../../../../entity/approvalRule/approvalRuleSelector';
|
|
4
4
|
import { clearRemiSetupApproverViewUpdateData, initializeRemiSetupApproverViewUpdateData, saveRemiSetupApproverViewUpdateData, } from '../remiSetupApproverViewReducer';
|
|
5
5
|
export const initializeRemiSetupApproverViewUpdateDataEpic = (actions$, state$) => actions$.pipe(filter(initializeRemiSetupApproverViewUpdateData.match), mergeMap((action) => {
|
|
6
6
|
const { approvalRuleId } = action.payload;
|
|
@@ -8,16 +8,20 @@ export const initializeRemiSetupApproverViewUpdateDataEpic = (actions$, state$)
|
|
|
8
8
|
if (approvalRuleId != null) {
|
|
9
9
|
const approvalRule = getApprovalRuleById(state$.value.approvalRuleState, approvalRuleId);
|
|
10
10
|
if (approvalRule != null) {
|
|
11
|
-
const criteria = approvalRule.criteria[0];
|
|
12
|
-
const range = criteria?.range;
|
|
13
11
|
const remiSetupApproverViewUpdateData = {
|
|
14
12
|
approvalRuleId,
|
|
15
13
|
steps: approvalRule.steps,
|
|
16
14
|
criteria: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
amount: getAmountCriteria(approvalRule.criteria),
|
|
16
|
+
vendor: getVendorCriteria(approvalRule.criteria),
|
|
17
|
+
department: getDepartmentCriteria(approvalRule.criteria),
|
|
20
18
|
},
|
|
19
|
+
// Approval Rules 3.0 — seed rule-level fields so the form can
|
|
20
|
+
// round-trip them on edit. Each may be undefined on legacy rules.
|
|
21
|
+
name: approvalRule.name,
|
|
22
|
+
description: approvalRule.description,
|
|
23
|
+
separationOfDuties: approvalRule.separationOfDuties,
|
|
24
|
+
isFallback: approvalRule.isFallback,
|
|
21
25
|
};
|
|
22
26
|
fetchActions.push(clearRemiSetupApproverViewUpdateData(), saveRemiSetupApproverViewUpdateData(remiSetupApproverViewUpdateData));
|
|
23
27
|
}
|
|
@@ -25,7 +29,7 @@ export const initializeRemiSetupApproverViewUpdateDataEpic = (actions$, state$)
|
|
|
25
29
|
else {
|
|
26
30
|
const remiSetupApproverViewCreateData = {
|
|
27
31
|
steps: [],
|
|
28
|
-
criteria:
|
|
32
|
+
criteria: {},
|
|
29
33
|
};
|
|
30
34
|
fetchActions.push(clearRemiSetupApproverViewUpdateData(), saveRemiSetupApproverViewUpdateData(remiSetupApproverViewCreateData));
|
|
31
35
|
}
|
|
@@ -4,16 +4,26 @@ import { updateApprovalRules } from '../../../../../entity/approvalRule/approval
|
|
|
4
4
|
import { openSnackbar } from '../../../../../entity/snackbar/snackbarReducer';
|
|
5
5
|
import { updateAllUsers } from '../../../../../entity/user/userReducer';
|
|
6
6
|
import { createZeniAPIStatus, isSuccessResponse, } from '../../../../../responsePayload';
|
|
7
|
-
import { toApprovalChangableInfoPayload } from '../../../billPay/billPaySetupApproverView/types/commonPayload';
|
|
7
|
+
import { toApprovalChangableInfoPayload, toApprovalChangableInfoPayloadV1, } from '../../../billPay/billPaySetupApproverView/types/commonPayload';
|
|
8
8
|
import { saveRemiSetupApproverViewUpdates, saveRemiSetupApproverViewUpdatesFailure, saveRemiSetupApproverViewUpdatesSuccess, } from '../remiSetupApproverViewReducer';
|
|
9
|
-
export const saveRemiSetupApproverViewUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(saveRemiSetupApproverViewUpdates.match), switchMap(() => {
|
|
9
|
+
export const saveRemiSetupApproverViewUpdatesEpic = (actions$, state$, zeniAPI) => actions$.pipe(filter(saveRemiSetupApproverViewUpdates.match), switchMap((action) => {
|
|
10
10
|
const { remiSetupApproverViewState } = state$.value;
|
|
11
11
|
const remiSetupApproverViewUpdateData = remiSetupApproverViewState.remiSetupApproverViewUpdateData;
|
|
12
12
|
if (remiSetupApproverViewUpdateData != null &&
|
|
13
13
|
remiSetupApproverViewUpdateData.data != null) {
|
|
14
|
-
|
|
14
|
+
// Approval Rules 3.0 — gate URL + write-side payload mapper on
|
|
15
|
+
// the `approval_rule_v3_config` dynamic config. `useV3` arrives
|
|
16
|
+
// on the action payload from the screen connector.
|
|
17
|
+
const { useV3 } = action.payload;
|
|
18
|
+
const payload = useV3
|
|
19
|
+
? toApprovalChangableInfoPayload(remiSetupApproverViewUpdateData.data)
|
|
20
|
+
: toApprovalChangableInfoPayloadV1(remiSetupApproverViewUpdateData.data);
|
|
21
|
+
const endpoint = useV3
|
|
22
|
+
? // ? `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/reimbursements/approval-rules-v2`
|
|
23
|
+
`https://dev.api.zeni.ai/version/approval/tarun/1.0/reimbursements/approval-rules-v2`
|
|
24
|
+
: `${zeniAPI.apiEndPoints.approvalMicroServiceBaseUrl}/1.0/reimbursements/approval-rules`;
|
|
15
25
|
return zeniAPI
|
|
16
|
-
.postAndGetJSON(
|
|
26
|
+
.postAndGetJSON(endpoint, payload)
|
|
17
27
|
.pipe(mergeMap((response) => {
|
|
18
28
|
if (isSuccessResponse(response) && response.data != null) {
|
|
19
29
|
const approvalRuleIds = response.data.approval_rules.map((approvalRule) => approvalRule.approval_rule_id);
|
|
@@ -26,12 +26,16 @@ const remiSetupApproverView = createSlice({
|
|
|
26
26
|
draft.fetchState = 'In-Progress';
|
|
27
27
|
draft.error = undefined;
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
// Approval Rules 3.0 — `useV3` arrives from the screen connector
|
|
30
|
+
// (`approval_rule_v3_config` dynamic config) and picks v1 vs v2
|
|
31
|
+
// endpoint in the fetch epic.
|
|
32
|
+
prepare(cacheOverride = false, resolveAttributeToUser = false, includeImplicitActors = false, useV3 = false) {
|
|
30
33
|
return {
|
|
31
34
|
payload: {
|
|
32
35
|
cacheOverride,
|
|
33
36
|
resolveAttributeToUser,
|
|
34
37
|
includeImplicitActors,
|
|
38
|
+
useV3,
|
|
35
39
|
},
|
|
36
40
|
};
|
|
37
41
|
},
|
|
@@ -134,8 +138,11 @@ const remiSetupApproverView = createSlice({
|
|
|
134
138
|
error: undefined,
|
|
135
139
|
};
|
|
136
140
|
},
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
// Approval Rules 3.0 — `useV3` flows from the screen connector
|
|
142
|
+
// (`approval_rule_v3_config` dynamic config) so the delete epic
|
|
143
|
+
// can pick the v1 vs v2 endpoint.
|
|
144
|
+
prepare(approvalRuleId, useV3 = false) {
|
|
145
|
+
return { payload: { approvalRuleId, useV3 } };
|
|
139
146
|
},
|
|
140
147
|
},
|
|
141
148
|
deleteRemiApprovalRuleSuccess: {
|
|
@@ -167,13 +174,24 @@ const remiSetupApproverView = createSlice({
|
|
|
167
174
|
};
|
|
168
175
|
},
|
|
169
176
|
},
|
|
170
|
-
saveRemiSetupApproverViewUpdates
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
saveRemiSetupApproverViewUpdates: {
|
|
178
|
+
// Approval Rules 3.0 — `useV3` sourced from
|
|
179
|
+
// `approval_rule_v3_config` dynamic config in the screen
|
|
180
|
+
// connector; epic uses it to pick v1 vs v2 URL + mapper. The
|
|
181
|
+
// reducer doesn't read the action but the parameter must be
|
|
182
|
+
// declared so the action payload type carries downstream.
|
|
183
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
184
|
+
reducer(draft, _action) {
|
|
185
|
+
if (draft.remiSetupApproverViewUpdateData != null) {
|
|
186
|
+
draft.remiSetupApproverViewUpdateData.updateStatus = {
|
|
187
|
+
fetchState: 'In-Progress',
|
|
188
|
+
error: undefined,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
prepare(useV3) {
|
|
193
|
+
return { payload: { useV3 } };
|
|
194
|
+
},
|
|
177
195
|
},
|
|
178
196
|
saveRemiSetupApproverViewUpdatesSuccess: {
|
|
179
197
|
reducer(draft, action) {
|
package/lib/index.d.ts
CHANGED
|
@@ -52,7 +52,8 @@ import { AccountReconciliationEntity, getAccountReconByAccountIdAndSelectedPerio
|
|
|
52
52
|
import { BalanceDataStatusCodeType, BankStatusCodeType, RecommendedActionCodeType, ReconciliationStatusCodeType, StatementDataStatusCodeType, StatementStatusCodeType, TransactionsToReview } from './entity/accountRecon/accountReconState';
|
|
53
53
|
import { getAddressByAddressId } from './entity/address/addressSelector';
|
|
54
54
|
import { Address } from './entity/address/addressState';
|
|
55
|
-
import { Actor, ActorType, ApprovalActionType, ApprovalRule, ApprovalRuleState, Approvers, AttributeType, RoleType, Step, StepOperatorType, toAttributeOrRoleTypeStrict, toAttributeTypeStrict, toRoleTypeStrict } from './entity/approvalRule/approvalRuleState';
|
|
55
|
+
import { Actor, ActorType, AmountComparator, AmountCriteria, ApprovalActionType, ApprovalRule, ApprovalRuleState, Approvers, AttributeType, ConditionType, Criteria, DepartmentCriteria, RoleType, Step, StepOperatorType, VendorCriteria, toAttributeOrRoleTypeStrict, toAttributeTypeStrict, toRoleTypeStrict } from './entity/approvalRule/approvalRuleState';
|
|
56
|
+
import { getAmountCriteria, getApprovalRulesByEntityType, getDepartmentCriteria, getFallbackApprovalRule, getVendorCriteria } from './entity/approvalRule/approvalRuleSelector';
|
|
56
57
|
import { BankAccount } from './entity/bankAccount/bankAccount';
|
|
57
58
|
import { BillPayInfo, BillPaymentRefundStatus, BillPaymentRefundStatusCodeType, BillPaymentStatus, BillPaymentStatusCodeType, BillStage, BillStageCodeType, BillStatus, BillStatusCodeType, BillTransaction, DeletionSourceType, InternationalTransferFeeBearerPaymentMethod, toOutsideZeniPaymentModeType } from './entity/billPay/billTransaction/billTransactionState';
|
|
58
59
|
import { Contact } from './entity/billPay/contact/contact';
|
|
@@ -809,7 +810,7 @@ export { RemiSetupViewState, RemiSetupViewLocalData, MileageDetailsLocalData, Mi
|
|
|
809
810
|
export { PaymentAccount, Logo, VERIFIED_PAYMENT_ACCOUNT_PROVIDER_VERIFICATION_STATUS, };
|
|
810
811
|
export { SubscriptionPaymentAccount };
|
|
811
812
|
export { PreviousBillsSelectorView, InvoiceProcessingPayload, InvoiceProcessingResponse, isSuccessResponse, isInvalidSessionError, isAccessDeniedError, };
|
|
812
|
-
export { Step, Actor as ApprovalRuleActor, ActorType, ApprovalActionType, StepOperatorType, ApprovalRuleState, ApprovalRule, AttributeType, Approvers, RoleType, EntityApprovalStatusState, EntityApprovalStatus, SpendManagementEntityType, SpendManagementEntityTypeWithOtherConnection, toAttributeTypeStrict, toAttributeOrRoleTypeStrict, toRoleTypeStrict, };
|
|
813
|
+
export { Step, Actor as ApprovalRuleActor, ActorType, ApprovalActionType, StepOperatorType, ApprovalRuleState, ApprovalRule, AmountComparator, AmountCriteria, ConditionType, Criteria, DepartmentCriteria, VendorCriteria, AttributeType, Approvers, RoleType, EntityApprovalStatusState, EntityApprovalStatus, SpendManagementEntityType, SpendManagementEntityTypeWithOtherConnection, getAmountCriteria, getApprovalRulesByEntityType, getDepartmentCriteria, getFallbackApprovalRule, getVendorCriteria, toAttributeTypeStrict, toAttributeOrRoleTypeStrict, toRoleTypeStrict, };
|
|
813
814
|
export { ApprovalRuleUpdateData, ApprovalRuleCreateData, BillPayApprovalRuleWithUser, ApprovalUpdateActionType, ApproverViewUpdateData, BillPaySetupApproverViewState, BillPaySetupApproverView, BillPaySetupApproverUpdateDataView, getBillPaySetupApproverView, getBillPaySetupApproverUpdateDataView, fetchBillPaySetupApproverView, fetchBillPayApproversDetails, fetchBillPayApproversList, deleteBillPayApprovalRule, saveBillPaySetupApproverViewUpdateData, saveBillPaySetupApproverViewUpdates, setBillsSetupApproverViewListeningToPusherEvent, initializeBillPaySetupApproverViewUpdateData, clearBillPaySetupApproverViewUpdateData, clearBillPaySetupApproverView, };
|
|
814
815
|
export { RemiApprovalRuleWithUser, RemiSetupApproverViewState, RemiSetupApproverView, RemiSetupApproverUpdateDataView, getRemiSetupApproverView, getRemiSetupApproverUpdateDataView, fetchRemiSetupApproverView, fetchRemiApproversList, fetchRemiApproversDetails, deleteRemiApprovalRule, saveRemiSetupApproverViewUpdateData, saveRemiSetupApproverViewUpdates, initializeRemiSetupApproverViewUpdateData, setRemiSetupApproverViewListeningToPusherEvent, clearRemiSetupApproverViewUpdateData, clearRemiSetupApproverView, };
|
|
815
816
|
export { RemiDetailViewSelector, getRemiDetailView, RemiActivity, RemiDetails, checkApproveRejectBtnShowForRemi, };
|