@antscorp/antsomi-ui 1.3.5-beta.422 → 1.3.5-beta.423
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.
|
@@ -8,11 +8,11 @@ const { GET_COLUMN_METRICS, GET_MODIFY_COLUMN_LIST, GET_SAVED_FILTER_LIST, GET_F
|
|
|
8
8
|
/* Column */
|
|
9
9
|
export const useGetColumnMetrics = (params) => {
|
|
10
10
|
const { args, options } = params;
|
|
11
|
-
return useQuery(Object.assign({ queryKey: [GET_COLUMN_METRICS, args
|
|
11
|
+
return useQuery(Object.assign({ queryKey: [GET_COLUMN_METRICS, args], queryFn: () => dataTableServices.column.getColumnMetrics(args) }, options));
|
|
12
12
|
};
|
|
13
13
|
export const useGetModifyColumnList = (params) => {
|
|
14
14
|
const { args, options } = params;
|
|
15
|
-
return useQuery(Object.assign({ queryKey: [GET_MODIFY_COLUMN_LIST, args
|
|
15
|
+
return useQuery(Object.assign({ queryKey: [GET_MODIFY_COLUMN_LIST, args], queryFn: () => dataTableServices.column.getModifyColumnList(args) }, options));
|
|
16
16
|
};
|
|
17
17
|
export const useUpdateModifyColumn = (params) => {
|
|
18
18
|
const { options, auth } = params || {};
|
|
@@ -44,11 +44,11 @@ export const useDeleteModifyColumn = (params) => {
|
|
|
44
44
|
/* Filter */
|
|
45
45
|
export const useGetSavedFilterList = (params) => {
|
|
46
46
|
const { args, options } = params;
|
|
47
|
-
return useQuery(Object.assign({ queryKey: [GET_SAVED_FILTER_LIST, args
|
|
47
|
+
return useQuery(Object.assign({ queryKey: [GET_SAVED_FILTER_LIST, args], queryFn: () => dataTableServices.filter.getSavedFilterList(args) }, options));
|
|
48
48
|
};
|
|
49
49
|
export const useGetFilterMetricList = (params) => {
|
|
50
50
|
const { args, options } = params;
|
|
51
|
-
return useQuery(Object.assign({ queryKey: [GET_FILTER_METRIC_LIST, args
|
|
51
|
+
return useQuery(Object.assign({ queryKey: [GET_FILTER_METRIC_LIST, args], queryFn: () => dataTableServices.filter.getFilterMetricList(args) }, options));
|
|
52
52
|
};
|
|
53
53
|
export const useSaveFilter = (params) => {
|
|
54
54
|
const { options, auth } = params || {};
|
|
@@ -80,9 +80,9 @@ export const useDeleteSavedFilter = (params) => {
|
|
|
80
80
|
/* Table Listing */
|
|
81
81
|
export const useGetTableListing = (params) => {
|
|
82
82
|
const { options, args } = params || {};
|
|
83
|
-
return useQuery(Object.assign({ queryKey: [GET_DATA_TABLE_LISTING, args
|
|
83
|
+
return useQuery(Object.assign({ queryKey: [GET_DATA_TABLE_LISTING, args], queryFn: () => dataTableServices.listing.getTableListing(args) }, options));
|
|
84
84
|
};
|
|
85
85
|
export const useGetSearchListing = (params) => {
|
|
86
86
|
const { args, options } = params || {};
|
|
87
|
-
return useQuery(Object.assign({ queryKey: [GET_SEARCH_LIST, args
|
|
87
|
+
return useQuery(Object.assign({ queryKey: [GET_SEARCH_LIST, args], queryFn: () => dataTableServices.search.getSearchListing(args) }, options));
|
|
88
88
|
};
|