@zeniai/client-epic-state 4.19.2-betaAS5 → 4.19.2-betaAS7
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.
|
@@ -11,7 +11,7 @@ const responsePayload_1 = require("../../../../responsePayload");
|
|
|
11
11
|
const remiListReducer_1 = require("./remiListReducer");
|
|
12
12
|
const fetchRemiListPerTabEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(remiListReducer_1.fetchRemiListPerTab.match), (0, operators_1.mergeMap)((action) => {
|
|
13
13
|
const { period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems, isRefreshAccountAndAccountingClass, } = action.payload;
|
|
14
|
-
console.log('*************** isRefreshAccountAndAccountingClass *****************', isRefreshAccountAndAccountingClass);
|
|
14
|
+
console.log('*************** from epic isRefreshAccountAndAccountingClass *****************', isRefreshAccountAndAccountingClass);
|
|
15
15
|
const queryParam = Object.assign({ start_date: (0, timePeriod_1.toString)(period.start), end_date: (0, timePeriod_1.toString)(period.end), sort_by: 'reimbursement_date', sort_order: 'desc', reimbursement_provider: 'zeni', reimbursement_stage_code: tab, is_include_reimbursee_users_info: true, is_include_approval_info: tab === 'pending_approval', is_include_pending_approval_transaction_ids_for_user: tab === 'pending_approval', transaction_type: 'reimbursement', is_include_deleted: isShowDeletedReimbursementEnabled
|
|
16
16
|
? tab !== 'draft'
|
|
17
17
|
: false, is_include_line_items: isIncludeLineItems ? tab !== 'draft' : false }, (isRefreshAccountAndAccountingClass === false && {
|
|
@@ -5,18 +5,18 @@ import { RemiListPayload } from './remiListPayload';
|
|
|
5
5
|
import { ReimbursementFilters, RemiListDownloadUIState, RemiListState, RemiListUIState, RemiTabType, SaveRemiStageCode } from './remiListState';
|
|
6
6
|
export declare const initialState: RemiListState;
|
|
7
7
|
export declare const fetchRemiList: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, cacheOverride: any, isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean, isBulkActionCompleteRefresh?: any, isRefreshAccountAndAccountingClass?: boolean | undefined], {
|
|
8
|
-
isRefreshAccountAndAccountingClass?: boolean | undefined;
|
|
9
8
|
period: TimePeriod;
|
|
10
9
|
cacheOverride: any;
|
|
11
10
|
isShowDeletedReimbursementEnabled: boolean;
|
|
12
11
|
isIncludeLineItems: boolean;
|
|
13
12
|
isBulkActionCompleteRefresh: any;
|
|
13
|
+
isRefreshAccountAndAccountingClass: boolean | undefined;
|
|
14
14
|
}, "remiList/fetchRemiList", never, never>, fetchRemiListPerTab: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[period: TimePeriod, tab: "paid" | "pending_approval" | "scheduled" | "draft", isShowDeletedReimbursementEnabled: boolean, isIncludeLineItems: boolean, isRefreshAccountAndAccountingClass?: boolean | undefined], {
|
|
15
|
-
isRefreshAccountAndAccountingClass?: boolean | undefined;
|
|
16
15
|
period: TimePeriod;
|
|
17
16
|
tab: "paid" | "pending_approval" | "scheduled" | "draft";
|
|
18
17
|
isShowDeletedReimbursementEnabled: boolean;
|
|
19
18
|
isIncludeLineItems: boolean;
|
|
19
|
+
isRefreshAccountAndAccountingClass: boolean | undefined;
|
|
20
20
|
}, "remiList/fetchRemiListPerTab", never, never>, updateRemiListByStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
21
21
|
remiList: RemiListPayload;
|
|
22
22
|
tab: RemiTabType;
|
|
@@ -35,13 +35,15 @@ const remiList = (0, toolkit_1.createSlice)({
|
|
|
35
35
|
//do nothing
|
|
36
36
|
},
|
|
37
37
|
prepare(period, tab, isShowDeletedReimbursementEnabled, isIncludeLineItems, isRefreshAccountAndAccountingClass) {
|
|
38
|
+
console.log('*************** called fetchRemiListPerTab prepare isRefreshAccountAndAccountingClass *****************', isRefreshAccountAndAccountingClass);
|
|
38
39
|
return {
|
|
39
|
-
payload:
|
|
40
|
+
payload: {
|
|
41
|
+
period,
|
|
40
42
|
tab,
|
|
41
43
|
isShowDeletedReimbursementEnabled,
|
|
42
|
-
isIncludeLineItems
|
|
44
|
+
isIncludeLineItems,
|
|
43
45
|
isRefreshAccountAndAccountingClass,
|
|
44
|
-
}
|
|
46
|
+
},
|
|
45
47
|
};
|
|
46
48
|
},
|
|
47
49
|
},
|
|
@@ -72,13 +74,14 @@ const remiList = (0, toolkit_1.createSlice)({
|
|
|
72
74
|
prepare(period, cacheOverride = false, isShowDeletedReimbursementEnabled, isIncludeLineItems, isBulkActionCompleteRefresh = false, isRefreshAccountAndAccountingClass) {
|
|
73
75
|
console.log('*************** called fetchRemiList prepare isRefreshAccountAndAccountingClass *****************', isRefreshAccountAndAccountingClass);
|
|
74
76
|
return {
|
|
75
|
-
payload:
|
|
77
|
+
payload: {
|
|
78
|
+
period,
|
|
76
79
|
cacheOverride,
|
|
77
80
|
isShowDeletedReimbursementEnabled,
|
|
78
81
|
isIncludeLineItems,
|
|
79
|
-
isBulkActionCompleteRefresh
|
|
82
|
+
isBulkActionCompleteRefresh,
|
|
80
83
|
isRefreshAccountAndAccountingClass,
|
|
81
|
-
}
|
|
84
|
+
},
|
|
82
85
|
};
|
|
83
86
|
},
|
|
84
87
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.19.2-
|
|
3
|
+
"version": "4.19.2-betaAS7",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|