@zeniai/client-epic-state 4.12.93 → 4.12.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonStateTypes/fileType.d.ts +2 -2
- package/lib/commonStateTypes/fileType.js +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +70 -0
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorFiling1099DownloadEpic.d.ts +7 -0
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorFiling1099DownloadEpic.js +35 -0
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListPayload.d.ts +22 -0
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.d.ts +5 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.js +29 -2
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.d.ts +2 -0
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +5 -1
- package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ALL_FILE_TYPES: readonly ["pdf", "excel"];
|
|
2
|
-
export declare const toFileTypeStrict: (v?: string | undefined) => "excel" | "pdf" | undefined;
|
|
1
|
+
export declare const ALL_FILE_TYPES: readonly ["pdf", "excel", "csv"];
|
|
2
|
+
export declare const toFileTypeStrict: (v?: string | undefined) => "excel" | "pdf" | "csv" | undefined;
|
|
3
3
|
export declare type FileType = NonNullable<ReturnType<typeof toFileTypeStrict>>;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toFileTypeStrict = exports.ALL_FILE_TYPES = void 0;
|
|
4
4
|
const stringToUnion_1 = require("./stringToUnion");
|
|
5
|
-
exports.ALL_FILE_TYPES = ['pdf', 'excel'];
|
|
5
|
+
exports.ALL_FILE_TYPES = ['pdf', 'excel', "csv"];
|
|
6
6
|
const toFileTypeStrict = (v) => { var _a; return (0, stringToUnion_1.stringToUnionStrict)((_a = v === null || v === void 0 ? void 0 : v.toLocaleLowerCase()) !== null && _a !== void 0 ? _a : '', exports.ALL_FILE_TYPES); };
|
|
7
7
|
exports.toFileTypeStrict = toFileTypeStrict;
|
package/lib/index.d.ts
CHANGED
|
@@ -511,6 +511,7 @@ import { BillPayCardReport } from './view/billPayCard/billPayCardSelector';
|
|
|
511
511
|
import { ReimbursementCardReport } from './view/reimbursementCard/reimbursementCardSelector';
|
|
512
512
|
import { Recommendation } from './commonStateTypes/recommendationBase';
|
|
513
513
|
import { fetchVendorsList, updateScrollYOffset, updateSortUiState, updatePageToken, updateYTDSelectionUIState } from './view/vendorList/vendorListReducer';
|
|
514
|
+
import { VendorFiling1099DownloadData } from './view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListPayload';
|
|
514
515
|
import { fetchVendorsFiling1099All, fetchVendorsFiling1099List, updateFiling1099ScrollYOffset, updateFiling1099SortUIState, updateFiling1099SearchUIState } from './view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer';
|
|
515
516
|
import { VendorListViewSortKey, VendorViewUIState, VendorListQuery, VendorListViewYTDSpendSortKey, VendorViewType } from './view/vendorList/vendorListState';
|
|
516
517
|
import { VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState } from './view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState';
|
|
@@ -520,7 +521,7 @@ import { Filing1099TinType } from './entity/vendor/vendorType';
|
|
|
520
521
|
export { Filing1099TinType };
|
|
521
522
|
export { BillPayCardReport };
|
|
522
523
|
export { ReimbursementCardReport };
|
|
523
|
-
export { VendorListViewSortKey, VendorViewUIState, VendorListSelectorView, VendorListQuery, getVendorList, VendorListView, updateSortUiState, updatePageToken, updateYTDSelectionUIState, VendorListViewYTDSpendSortKey, isColumnYTDSpend, isVendorsTabVisible, VendorViewType, VendorReportIDType, toVendorReportIDType, VendorFiling1099ListSelectorView, getVendorFiling1099List, VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState, };
|
|
524
|
+
export { VendorListViewSortKey, VendorViewUIState, VendorListSelectorView, VendorListQuery, getVendorList, VendorListView, updateSortUiState, updatePageToken, updateYTDSelectionUIState, VendorListViewYTDSpendSortKey, isColumnYTDSpend, isVendorsTabVisible, VendorViewType, VendorReportIDType, toVendorReportIDType, VendorFiling1099ListSelectorView, getVendorFiling1099List, VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState, VendorFiling1099DownloadData, };
|
|
524
525
|
import { fetchEntityRecommendationsByTransactionId, fetchRecommendationByEntityId, fetchRecommendationByEntityName } from './view/recommendation/recommendationReducer';
|
|
525
526
|
import { fetchOwnerList } from './view/ownerList/ownerListReducer';
|
|
526
527
|
export { fetchEntityRecommendationsByTransactionId, fetchRecommendationByEntityId, fetchRecommendationByEntityName, };
|
|
@@ -28,6 +28,20 @@ exports.vendorFiling1099ListInProgressState = {
|
|
|
28
28
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
29
29
|
lastRefreshSuccessTime: undefined,
|
|
30
30
|
isVendor1099Populated: true,
|
|
31
|
+
vendorFiling1099DownloadData: {
|
|
32
|
+
nec: {
|
|
33
|
+
data: [],
|
|
34
|
+
customHeaders: [],
|
|
35
|
+
},
|
|
36
|
+
misc: {
|
|
37
|
+
data: [],
|
|
38
|
+
customHeaders: [],
|
|
39
|
+
},
|
|
40
|
+
int: {
|
|
41
|
+
data: [],
|
|
42
|
+
customHeaders: [],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
31
45
|
};
|
|
32
46
|
exports.vendorFiling1099ListInProgressInitialState = {
|
|
33
47
|
vendorIds: [],
|
|
@@ -43,6 +57,20 @@ exports.vendorFiling1099ListInProgressInitialState = {
|
|
|
43
57
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
44
58
|
lastRefreshSuccessTime: undefined,
|
|
45
59
|
isVendor1099Populated: false,
|
|
60
|
+
vendorFiling1099DownloadData: {
|
|
61
|
+
nec: {
|
|
62
|
+
data: [],
|
|
63
|
+
customHeaders: [],
|
|
64
|
+
},
|
|
65
|
+
misc: {
|
|
66
|
+
data: [],
|
|
67
|
+
customHeaders: [],
|
|
68
|
+
},
|
|
69
|
+
int: {
|
|
70
|
+
data: [],
|
|
71
|
+
customHeaders: [],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
46
74
|
};
|
|
47
75
|
exports.vendorFiling1099ListSuccessState = {
|
|
48
76
|
vendorIds: ['vendor_j12jh1g2g12jg3jh12:12'],
|
|
@@ -58,6 +86,20 @@ exports.vendorFiling1099ListSuccessState = {
|
|
|
58
86
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
59
87
|
lastRefreshSuccessTime: (0, zeniDayJS_1.date)('2024-09-26T07:44:02.150Z'),
|
|
60
88
|
isVendor1099Populated: true,
|
|
89
|
+
vendorFiling1099DownloadData: {
|
|
90
|
+
nec: {
|
|
91
|
+
data: [],
|
|
92
|
+
customHeaders: [],
|
|
93
|
+
},
|
|
94
|
+
misc: {
|
|
95
|
+
data: [],
|
|
96
|
+
customHeaders: [],
|
|
97
|
+
},
|
|
98
|
+
int: {
|
|
99
|
+
data: [],
|
|
100
|
+
customHeaders: [],
|
|
101
|
+
},
|
|
102
|
+
},
|
|
61
103
|
};
|
|
62
104
|
exports.vendorFiling1099ListFailureState = {
|
|
63
105
|
vendorIds: [],
|
|
@@ -76,6 +118,20 @@ exports.vendorFiling1099ListFailureState = {
|
|
|
76
118
|
},
|
|
77
119
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
78
120
|
isVendor1099Populated: false,
|
|
121
|
+
vendorFiling1099DownloadData: {
|
|
122
|
+
nec: {
|
|
123
|
+
data: [],
|
|
124
|
+
customHeaders: [],
|
|
125
|
+
},
|
|
126
|
+
misc: {
|
|
127
|
+
data: [],
|
|
128
|
+
customHeaders: [],
|
|
129
|
+
},
|
|
130
|
+
int: {
|
|
131
|
+
data: [],
|
|
132
|
+
customHeaders: [],
|
|
133
|
+
},
|
|
134
|
+
},
|
|
79
135
|
};
|
|
80
136
|
exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialRootState, {
|
|
81
137
|
vendorState: {
|
|
@@ -97,6 +153,20 @@ exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialR
|
|
|
97
153
|
lastRefreshSuccessTime: undefined,
|
|
98
154
|
hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
|
|
99
155
|
isVendor1099Populated: true,
|
|
156
|
+
vendorFiling1099DownloadData: {
|
|
157
|
+
nec: {
|
|
158
|
+
data: [],
|
|
159
|
+
customHeaders: [],
|
|
160
|
+
},
|
|
161
|
+
misc: {
|
|
162
|
+
data: [],
|
|
163
|
+
customHeaders: [],
|
|
164
|
+
},
|
|
165
|
+
int: {
|
|
166
|
+
data: [],
|
|
167
|
+
customHeaders: [],
|
|
168
|
+
},
|
|
169
|
+
},
|
|
100
170
|
},
|
|
101
171
|
vendorTypeListState: {
|
|
102
172
|
fetchState: 'Completed',
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ZeniAPI } from '../../../zeniAPI';
|
|
4
|
+
import { RootState } from '../../../reducer';
|
|
5
|
+
import { fetchVendorFiling1099Download, updateVendorFiling1099DownloadData } from './vendorFiling1099ListReducer';
|
|
6
|
+
export declare type ActionType = ReturnType<typeof fetchVendorFiling1099Download> | ReturnType<typeof updateVendorFiling1099DownloadData>;
|
|
7
|
+
export declare const fetchVendorFiling1099DownloadEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchVendorFiling1099DownloadEpic = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const responsePayload_1 = require("../../../responsePayload");
|
|
7
|
+
const vendorFiling1099ListReducer_1 = require("./vendorFiling1099ListReducer");
|
|
8
|
+
const fetchVendorFiling1099DownloadEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(vendorFiling1099ListReducer_1.fetchVendorFiling1099Download.match), (0, operators_1.switchMap)(() => {
|
|
9
|
+
const apiUrl = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/vendor_1099`;
|
|
10
|
+
return zeniAPI.getJSON(apiUrl).pipe((0, operators_1.switchMap)((response) => {
|
|
11
|
+
if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
|
|
12
|
+
const actions = [];
|
|
13
|
+
actions.push((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
|
|
14
|
+
response: response,
|
|
15
|
+
downloadState: 'Completed',
|
|
16
|
+
}));
|
|
17
|
+
return actions;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
return (0, rxjs_1.of)((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
|
|
21
|
+
response: response,
|
|
22
|
+
downloadState: 'Error',
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
}), (0, operators_1.catchError)((error) => {
|
|
26
|
+
return (0, rxjs_1.of)((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
|
|
27
|
+
response: {
|
|
28
|
+
status: (0, responsePayload_1.createZeniAPIStatus)('Error', 'Fetch vendors 1099 list REST API call failed' +
|
|
29
|
+
JSON.stringify(error)),
|
|
30
|
+
},
|
|
31
|
+
downloadState: 'Error',
|
|
32
|
+
}));
|
|
33
|
+
}));
|
|
34
|
+
}));
|
|
35
|
+
exports.fetchVendorFiling1099DownloadEpic = fetchVendorFiling1099DownloadEpic;
|
|
@@ -11,3 +11,25 @@ export interface ReportVendorFiling1099Payload extends ReportPayload {
|
|
|
11
11
|
is_vendor_1099_populated: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare type VendorFiling1099ListResponse = ZeniAPIResponse<FetchVendorFiling1099Payload>;
|
|
14
|
+
export interface VendorFiling1099DownloadData {
|
|
15
|
+
nec?: {
|
|
16
|
+
data: DownloadData[];
|
|
17
|
+
customHeaders: CustomHeader[];
|
|
18
|
+
};
|
|
19
|
+
misc?: {
|
|
20
|
+
data: DownloadData[];
|
|
21
|
+
customHeaders: CustomHeader[];
|
|
22
|
+
};
|
|
23
|
+
int?: {
|
|
24
|
+
data: DownloadData[];
|
|
25
|
+
customHeaders: CustomHeader[];
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export interface CustomHeader {
|
|
29
|
+
label: string;
|
|
30
|
+
key: string;
|
|
31
|
+
}
|
|
32
|
+
export interface DownloadData {
|
|
33
|
+
[key: string]: string | number;
|
|
34
|
+
}
|
|
35
|
+
export declare type VendorFiling1099DownloadResponse = ZeniAPIResponse<VendorFiling1099DownloadData>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
2
2
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
3
|
-
import { VendorFiling1099ListResponse } from './vendorFiling1099ListPayload';
|
|
3
|
+
import { VendorFiling1099DownloadResponse, VendorFiling1099ListResponse } from './vendorFiling1099ListPayload';
|
|
4
4
|
import { VendorFiling1099ListState, VendorFiling1099ListViewSortKey } from './vendorFiling1099ListState';
|
|
5
|
+
import { FetchState } from '../../../commonStateTypes/common';
|
|
5
6
|
export declare const initialState: VendorFiling1099ListState;
|
|
6
7
|
export declare const fetchVendorsFiling1099All: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean], {
|
|
7
8
|
cacheOverride: boolean;
|
|
@@ -18,6 +19,9 @@ export declare const fetchVendorsFiling1099All: import("@reduxjs/toolkit").Actio
|
|
|
18
19
|
sortKey: VendorFiling1099ListViewSortKey;
|
|
19
20
|
}, string>, updateFiling1099SearchUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
20
21
|
searchString: string;
|
|
22
|
+
}, string>, fetchVendorFiling1099Download: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateVendorFiling1099DownloadData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
23
|
+
response: VendorFiling1099DownloadResponse;
|
|
24
|
+
downloadState: FetchState;
|
|
21
25
|
}, string>;
|
|
22
26
|
declare const _default: import("@reduxjs/toolkit").Reducer<VendorFiling1099ListState, import("@reduxjs/toolkit").AnyAction>;
|
|
23
27
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.updateFiling1099SearchUIState = exports.updateFiling1099SortUIState = exports.updateFiling1099ScrollYOffset = exports.clearVendorsFiling1099List = exports.updateVendorFiling1099ListFailure = exports.updateVendorsFiling1099List = exports.fetchVendorsFiling1099List = exports.fetchVendorsFiling1099All = exports.initialState = void 0;
|
|
4
|
+
exports.updateVendorFiling1099DownloadData = exports.fetchVendorFiling1099Download = exports.updateFiling1099SearchUIState = exports.updateFiling1099SortUIState = exports.updateFiling1099ScrollYOffset = exports.clearVendorsFiling1099List = exports.updateVendorFiling1099ListFailure = exports.updateVendorsFiling1099List = exports.fetchVendorsFiling1099List = exports.fetchVendorsFiling1099All = exports.initialState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
7
7
|
exports.initialState = {
|
|
@@ -20,6 +20,20 @@ exports.initialState = {
|
|
|
20
20
|
downloadState: 'Not-Started',
|
|
21
21
|
searchString: '',
|
|
22
22
|
},
|
|
23
|
+
vendorFiling1099DownloadData: {
|
|
24
|
+
nec: {
|
|
25
|
+
data: [],
|
|
26
|
+
customHeaders: [],
|
|
27
|
+
},
|
|
28
|
+
misc: {
|
|
29
|
+
data: [],
|
|
30
|
+
customHeaders: [],
|
|
31
|
+
},
|
|
32
|
+
int: {
|
|
33
|
+
data: [],
|
|
34
|
+
customHeaders: [],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
23
37
|
};
|
|
24
38
|
const vendorFiling1099List = (0, toolkit_1.createSlice)({
|
|
25
39
|
name: 'vendorFiling1099List',
|
|
@@ -74,10 +88,23 @@ const vendorFiling1099List = (0, toolkit_1.createSlice)({
|
|
|
74
88
|
draft.fetchState = 'Error';
|
|
75
89
|
draft.error = action.payload.status;
|
|
76
90
|
},
|
|
91
|
+
//Reducers for VendorFiling1099Download
|
|
92
|
+
fetchVendorFiling1099Download(draft) {
|
|
93
|
+
draft.uiState.downloadState = 'In-Progress';
|
|
94
|
+
},
|
|
95
|
+
updateVendorFiling1099DownloadData(draft, action) {
|
|
96
|
+
var _a, _b, _c;
|
|
97
|
+
draft.vendorFiling1099DownloadData.nec =
|
|
98
|
+
(_a = action.payload.response.data) === null || _a === void 0 ? void 0 : _a.nec;
|
|
99
|
+
draft.vendorFiling1099DownloadData.misc =
|
|
100
|
+
(_b = action.payload.response.data) === null || _b === void 0 ? void 0 : _b.misc;
|
|
101
|
+
draft.vendorFiling1099DownloadData.int =
|
|
102
|
+
(_c = action.payload.response.data) === null || _c === void 0 ? void 0 : _c.int;
|
|
103
|
+
},
|
|
77
104
|
clearVendorsFiling1099List(draft) {
|
|
78
105
|
Object.assign(draft, exports.initialState);
|
|
79
106
|
},
|
|
80
107
|
},
|
|
81
108
|
});
|
|
82
|
-
_a = vendorFiling1099List.actions, exports.fetchVendorsFiling1099All = _a.fetchVendorsFiling1099All, exports.fetchVendorsFiling1099List = _a.fetchVendorsFiling1099List, exports.updateVendorsFiling1099List = _a.updateVendorsFiling1099List, exports.updateVendorFiling1099ListFailure = _a.updateVendorFiling1099ListFailure, exports.clearVendorsFiling1099List = _a.clearVendorsFiling1099List, exports.updateFiling1099ScrollYOffset = _a.updateFiling1099ScrollYOffset, exports.updateFiling1099SortUIState = _a.updateFiling1099SortUIState, exports.updateFiling1099SearchUIState = _a.updateFiling1099SearchUIState;
|
|
109
|
+
_a = vendorFiling1099List.actions, exports.fetchVendorsFiling1099All = _a.fetchVendorsFiling1099All, exports.fetchVendorsFiling1099List = _a.fetchVendorsFiling1099List, exports.updateVendorsFiling1099List = _a.updateVendorsFiling1099List, exports.updateVendorFiling1099ListFailure = _a.updateVendorFiling1099ListFailure, exports.clearVendorsFiling1099List = _a.clearVendorsFiling1099List, exports.updateFiling1099ScrollYOffset = _a.updateFiling1099ScrollYOffset, exports.updateFiling1099SortUIState = _a.updateFiling1099SortUIState, exports.updateFiling1099SearchUIState = _a.updateFiling1099SearchUIState, exports.fetchVendorFiling1099Download = _a.fetchVendorFiling1099Download, exports.updateVendorFiling1099DownloadData = _a.updateVendorFiling1099DownloadData;
|
|
83
110
|
exports.default = vendorFiling1099List.reducer;
|
|
@@ -5,6 +5,7 @@ import { ZeniDate } from '../../../zeniDayJS';
|
|
|
5
5
|
import { VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState } from './vendorFiling1099ListState';
|
|
6
6
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
7
7
|
import { VendorType } from '../../vendorTypeList/vendorTypeListPayload';
|
|
8
|
+
import { VendorFiling1099DownloadData } from './vendorFiling1099ListPayload';
|
|
8
9
|
export interface VendorFiling1099ListSelectorView extends SelectorView {
|
|
9
10
|
vendors: Vendor[];
|
|
10
11
|
vendorTypeList: VendorType[];
|
|
@@ -15,3 +16,4 @@ export interface VendorFiling1099ListSelectorView extends SelectorView {
|
|
|
15
16
|
}
|
|
16
17
|
export declare const getVendorFiling1099List: (state: RootState) => VendorFiling1099ListSelectorView;
|
|
17
18
|
export declare const sortedVendorFiling1099View: (vendorFiling1099List: Vendor[], sortKey: VendorFiling1099ListViewSortKey, sortOrder: SortOrder) => Vendor[];
|
|
19
|
+
export declare const getVendorFiling1099DownloadData: (state: RootState) => VendorFiling1099DownloadData;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.sortedVendorFiling1099View = exports.getVendorFiling1099List = void 0;
|
|
6
|
+
exports.getVendorFiling1099DownloadData = exports.sortedVendorFiling1099View = exports.getVendorFiling1099List = void 0;
|
|
7
7
|
const vendorSelector_1 = require("../../../entity/vendor/vendorSelector");
|
|
8
8
|
const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
9
9
|
const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
|
|
@@ -63,3 +63,7 @@ const sortedVendorFiling1099View = (vendorFiling1099List, sortKey, sortOrder) =>
|
|
|
63
63
|
}, sortOrder === 'ascending' ? 'asc' : 'desc');
|
|
64
64
|
};
|
|
65
65
|
exports.sortedVendorFiling1099View = sortedVendorFiling1099View;
|
|
66
|
+
const getVendorFiling1099DownloadData = (state) => {
|
|
67
|
+
return state.vendorFiling1099ListState.vendorFiling1099DownloadData;
|
|
68
|
+
};
|
|
69
|
+
exports.getVendorFiling1099DownloadData = getVendorFiling1099DownloadData;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetchedState, FetchState, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
3
3
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
4
|
+
import { VendorFiling1099DownloadData } from './vendorFiling1099ListPayload';
|
|
4
5
|
export interface VendorFiling1099ViewUIState {
|
|
5
6
|
sortKey: VendorFiling1099ListViewSortKey;
|
|
6
7
|
sortOrder: SortOrder;
|
|
@@ -12,6 +13,7 @@ export interface VendorFiling1099ListState extends FetchedState {
|
|
|
12
13
|
vendorIds: ID[];
|
|
13
14
|
uiState: VendorFiling1099ViewUIState;
|
|
14
15
|
isVendor1099Populated: boolean;
|
|
16
|
+
vendorFiling1099DownloadData: VendorFiling1099DownloadData;
|
|
15
17
|
lastRefreshSuccessTime?: ZeniDate;
|
|
16
18
|
}
|
|
17
19
|
export interface VendorFiling1099ListQuery {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.94",
|
|
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",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"build": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\" \"jest --config jest.config.json\"",
|
|
89
89
|
"onlybuild": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\"",
|
|
90
90
|
"format": "prettier --write --ignore-unknown \"src/**/*\"",
|
|
91
|
-
"format-watch": "git diff --name-only --
|
|
91
|
+
"format-watch": "(git diff --name-only --diff-filter=ACM && git ls-files --others --exclude-standard) | grep -E '\\.(ts|tsx)$' | xargs prettier --write",
|
|
92
92
|
"check-version": "ts-node ./scripts/check-version.ts",
|
|
93
93
|
"version": "git add -A src",
|
|
94
94
|
"postversion": "git push && git push --tags",
|