@antscorp/antsomi-ui 1.3.5-beta.437 → 1.3.5-beta.438
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.
|
@@ -44,9 +44,9 @@ export const dataTableServices = {
|
|
|
44
44
|
try {
|
|
45
45
|
const { url } = auth || {};
|
|
46
46
|
const { type = GET_LIST_MODIFY_COLUMN, objType, objId } = params || {};
|
|
47
|
-
const response = yield axios(Object.assign(Object.assign({}, request), { url, method: 'GET', params: Object.assign(Object.assign(
|
|
47
|
+
const response = yield axios(Object.assign(Object.assign({}, request), { url, method: 'GET', params: Object.assign(Object.assign({ type,
|
|
48
48
|
objType,
|
|
49
|
-
objId }) }));
|
|
49
|
+
objId }, mapAuth(auth)), request === null || request === void 0 ? void 0 : request.params) }));
|
|
50
50
|
return get(response, 'data.data.modifyColumns', []);
|
|
51
51
|
}
|
|
52
52
|
catch (error) {
|
|
@@ -103,9 +103,9 @@ export const dataTableServices = {
|
|
|
103
103
|
try {
|
|
104
104
|
const { url } = auth || {};
|
|
105
105
|
const { type = GET_SAVED_FILTER, objType: object, objId } = params || {};
|
|
106
|
-
const response = yield axios(Object.assign(Object.assign({}, request), { url, method: 'GET', params: Object.assign(Object.assign(
|
|
106
|
+
const response = yield axios(Object.assign(Object.assign({}, request), { url, method: 'GET', params: Object.assign(Object.assign({ type,
|
|
107
107
|
object,
|
|
108
|
-
objId }) }));
|
|
108
|
+
objId }, request === null || request === void 0 ? void 0 : request.params), mapAuth(auth)) }));
|
|
109
109
|
return get(response, 'data.data.filters', []);
|
|
110
110
|
}
|
|
111
111
|
catch (error) {
|
|
@@ -116,9 +116,9 @@ export const dataTableServices = {
|
|
|
116
116
|
try {
|
|
117
117
|
const { url } = auth || {};
|
|
118
118
|
const { type = GET_LIST_FILTER, objType: object, objId } = params || {};
|
|
119
|
-
const response = yield axios(Object.assign(Object.assign({}, request), { url, method: 'GET', params: Object.assign(Object.assign(
|
|
119
|
+
const response = yield axios(Object.assign(Object.assign({}, request), { url, method: 'GET', params: Object.assign(Object.assign({ type,
|
|
120
120
|
object,
|
|
121
|
-
objId }) }));
|
|
121
|
+
objId }, request === null || request === void 0 ? void 0 : request.params), mapAuth(auth)) }));
|
|
122
122
|
return get(response, 'data.data.filters', []);
|
|
123
123
|
}
|
|
124
124
|
catch (error) {
|
|
@@ -184,7 +184,7 @@ export const dataTableServices = {
|
|
|
184
184
|
getTableListing(_a) {
|
|
185
185
|
return __awaiter(this, arguments, void 0, function* ({ auth, params, request, }) {
|
|
186
186
|
try {
|
|
187
|
-
const response = yield axios(Object.assign(Object.assign({}, request), { url: `${auth === null || auth === void 0 ? void 0 : auth.url}`, method: 'GET', params: Object.assign(Object.assign(Object.assign({}, request === null || request === void 0 ? void 0 : request.params), mapAuth(auth))
|
|
187
|
+
const response = yield axios(Object.assign(Object.assign({}, request), { url: `${auth === null || auth === void 0 ? void 0 : auth.url}`, method: 'GET', params: Object.assign(Object.assign(Object.assign({}, params), request === null || request === void 0 ? void 0 : request.params), mapAuth(auth)) }));
|
|
188
188
|
return mapResponseListingToGeneral(get(response, 'data.data', {}));
|
|
189
189
|
}
|
|
190
190
|
catch (error) {
|
|
@@ -199,7 +199,7 @@ export const dataTableServices = {
|
|
|
199
199
|
const { search } = params || {};
|
|
200
200
|
const _b = request || {}, { method = 'GET' } = _b, restOfRequest = __rest(_b, ["method"]);
|
|
201
201
|
try {
|
|
202
|
-
const response = yield axios(Object.assign(Object.assign({}, restOfRequest), { method, url: `${auth === null || auth === void 0 ? void 0 : auth.url}`, params: Object.assign(Object.assign(
|
|
202
|
+
const response = yield axios(Object.assign(Object.assign({}, restOfRequest), { method, url: `${auth === null || auth === void 0 ? void 0 : auth.url}`, params: Object.assign(Object.assign({ search }, request === null || request === void 0 ? void 0 : request.params), mapAuth(auth)) }));
|
|
203
203
|
return mapResponseSearchToGeneral(get(response, 'data.data', {}));
|
|
204
204
|
}
|
|
205
205
|
catch (error) {
|