@geowiki/evoland-orval-api-proxy 0.15.0-dev.1
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/LICENSE +201 -0
- package/README.md +39 -0
- package/dist/index.d.mts +948 -0
- package/dist/index.d.ts +948 -0
- package/dist/index.js +656 -0
- package/dist/index.mjs +554 -0
- package/package.json +41 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,656 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var src_exports = {};
|
|
32
|
+
__export(src_exports, {
|
|
33
|
+
LocationStatus: () => LocationStatus,
|
|
34
|
+
UserRank: () => UserRank,
|
|
35
|
+
createLocationCreatelocationPost: () => createLocationCreatelocationPost,
|
|
36
|
+
createProjectCreateprojectPost: () => createProjectCreateprojectPost,
|
|
37
|
+
evolandAxiosInstance: () => evolandAxiosInstance,
|
|
38
|
+
getAvailableBandsAvailablebandsGet: () => getAvailableBandsAvailablebandsGet,
|
|
39
|
+
getAvailableLayersAvailablelayersGet: () => getAvailableLayersAvailablelayersGet,
|
|
40
|
+
getClustersClusterPost: () => getClustersClusterPost,
|
|
41
|
+
getCreateLocationCreatelocationPostMutationOptions: () => getCreateLocationCreatelocationPostMutationOptions,
|
|
42
|
+
getCreateProjectCreateprojectPostMutationOptions: () => getCreateProjectCreateprojectPostMutationOptions,
|
|
43
|
+
getGetAvailableBandsAvailablebandsGetQueryKey: () => getGetAvailableBandsAvailablebandsGetQueryKey,
|
|
44
|
+
getGetAvailableBandsAvailablebandsGetQueryOptions: () => getGetAvailableBandsAvailablebandsGetQueryOptions,
|
|
45
|
+
getGetAvailableLayersAvailablelayersGetQueryKey: () => getGetAvailableLayersAvailablelayersGetQueryKey,
|
|
46
|
+
getGetAvailableLayersAvailablelayersGetQueryOptions: () => getGetAvailableLayersAvailablelayersGetQueryOptions,
|
|
47
|
+
getGetClustersClusterPostMutationOptions: () => getGetClustersClusterPostMutationOptions,
|
|
48
|
+
getGetLabelsLabelsGetQueryKey: () => getGetLabelsLabelsGetQueryKey,
|
|
49
|
+
getGetLabelsLabelsGetQueryOptions: () => getGetLabelsLabelsGetQueryOptions,
|
|
50
|
+
getGetLocationGetlocationPostMutationOptions: () => getGetLocationGetlocationPostMutationOptions,
|
|
51
|
+
getGetNextLocationNextlocationPostMutationOptions: () => getGetNextLocationNextlocationPostMutationOptions,
|
|
52
|
+
getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryKey: () => getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryKey,
|
|
53
|
+
getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryOptions: () => getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryOptions,
|
|
54
|
+
getGetUserMeGetQueryKey: () => getGetUserMeGetQueryKey,
|
|
55
|
+
getGetUserMeGetQueryOptions: () => getGetUserMeGetQueryOptions,
|
|
56
|
+
getLabelsLabelsGet: () => getLabelsLabelsGet,
|
|
57
|
+
getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryKey: () => getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryKey,
|
|
58
|
+
getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryOptions: () => getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryOptions,
|
|
59
|
+
getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryKey: () => getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryKey,
|
|
60
|
+
getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryOptions: () => getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryOptions,
|
|
61
|
+
getLocationGetlocationPost: () => getLocationGetlocationPost,
|
|
62
|
+
getNextLocationNextlocationPost: () => getNextLocationNextlocationPost,
|
|
63
|
+
getPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet: () => getPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet,
|
|
64
|
+
getReadRootGetQueryKey: () => getReadRootGetQueryKey,
|
|
65
|
+
getReadRootGetQueryOptions: () => getReadRootGetQueryOptions,
|
|
66
|
+
getRemoveUserRemoveuserPostMutationOptions: () => getRemoveUserRemoveuserPostMutationOptions,
|
|
67
|
+
getSearchLocationsLocationsPostMutationOptions: () => getSearchLocationsLocationsPostMutationOptions,
|
|
68
|
+
getSetUserRoleSetuserrolePostMutationOptions: () => getSetUserRoleSetuserrolePostMutationOptions,
|
|
69
|
+
getSubmitCommentCommentPostMutationOptions: () => getSubmitCommentCommentPostMutationOptions,
|
|
70
|
+
getSubmitLabelingSubmitPostMutationOptions: () => getSubmitLabelingSubmitPostMutationOptions,
|
|
71
|
+
getUserMeGet: () => getUserMeGet,
|
|
72
|
+
http: () => http,
|
|
73
|
+
listProjectsListprojectsStartidxStartidxAmountAmountGet: () => listProjectsListprojectsStartidxStartidxAmountAmountGet,
|
|
74
|
+
locationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet: () => locationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet,
|
|
75
|
+
readRootGet: () => readRootGet,
|
|
76
|
+
removeUserRemoveuserPost: () => removeUserRemoveuserPost,
|
|
77
|
+
searchLocationsLocationsPost: () => searchLocationsLocationsPost,
|
|
78
|
+
setUserRoleSetuserrolePost: () => setUserRoleSetuserrolePost,
|
|
79
|
+
submitCommentCommentPost: () => submitCommentCommentPost,
|
|
80
|
+
submitLabelingSubmitPost: () => submitLabelingSubmitPost,
|
|
81
|
+
useCreateLocationCreatelocationPost: () => useCreateLocationCreatelocationPost,
|
|
82
|
+
useCreateProjectCreateprojectPost: () => useCreateProjectCreateprojectPost,
|
|
83
|
+
useGetAvailableBandsAvailablebandsGet: () => useGetAvailableBandsAvailablebandsGet,
|
|
84
|
+
useGetAvailableLayersAvailablelayersGet: () => useGetAvailableLayersAvailablelayersGet,
|
|
85
|
+
useGetClustersClusterPost: () => useGetClustersClusterPost,
|
|
86
|
+
useGetLabelsLabelsGet: () => useGetLabelsLabelsGet,
|
|
87
|
+
useGetLocationGetlocationPost: () => useGetLocationGetlocationPost,
|
|
88
|
+
useGetNextLocationNextlocationPost: () => useGetNextLocationNextlocationPost,
|
|
89
|
+
useGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet: () => useGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet,
|
|
90
|
+
useGetUserMeGet: () => useGetUserMeGet,
|
|
91
|
+
useListProjectsListprojectsStartidxStartidxAmountAmountGet: () => useListProjectsListprojectsStartidxStartidxAmountAmountGet,
|
|
92
|
+
useLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet: () => useLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet,
|
|
93
|
+
useReadRootGet: () => useReadRootGet,
|
|
94
|
+
useRemoveUserRemoveuserPost: () => useRemoveUserRemoveuserPost,
|
|
95
|
+
useSearchLocationsLocationsPost: () => useSearchLocationsLocationsPost,
|
|
96
|
+
useSetUserRoleSetuserrolePost: () => useSetUserRoleSetuserrolePost,
|
|
97
|
+
useSubmitCommentCommentPost: () => useSubmitCommentCommentPost,
|
|
98
|
+
useSubmitLabelingSubmitPost: () => useSubmitLabelingSubmitPost
|
|
99
|
+
});
|
|
100
|
+
module.exports = __toCommonJS(src_exports);
|
|
101
|
+
|
|
102
|
+
// src/schemas/locationStatus.ts
|
|
103
|
+
var LocationStatus = {
|
|
104
|
+
NOT_STARTED: "NOT_STARTED",
|
|
105
|
+
INCOMPLETED: "INCOMPLETED",
|
|
106
|
+
COMPLETED: "COMPLETED"
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// src/schemas/userRank.ts
|
|
110
|
+
var UserRank = {
|
|
111
|
+
MEMBER: "MEMBER",
|
|
112
|
+
ADMIN: "ADMIN",
|
|
113
|
+
OWNER: "OWNER"
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// src/api/evoland.ts
|
|
117
|
+
var import_react_query = require("@tanstack/react-query");
|
|
118
|
+
|
|
119
|
+
// src/apiClient.ts
|
|
120
|
+
var import_axios = __toESM(require("axios"));
|
|
121
|
+
var evolandAxiosInstance = import_axios.default.create({
|
|
122
|
+
baseURL: ""
|
|
123
|
+
});
|
|
124
|
+
var http = (config, options) => {
|
|
125
|
+
const source = import_axios.default.CancelToken.source();
|
|
126
|
+
return evolandAxiosInstance(
|
|
127
|
+
{
|
|
128
|
+
...config,
|
|
129
|
+
...options,
|
|
130
|
+
cancelToken: source.token,
|
|
131
|
+
withCredentials: true
|
|
132
|
+
}
|
|
133
|
+
// @ts-ignore
|
|
134
|
+
).then(({ data }) => data);
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// src/api/evoland.ts
|
|
138
|
+
var readRootGet = (options, signal) => {
|
|
139
|
+
return http({ url: `/`, method: "get", signal }, options);
|
|
140
|
+
};
|
|
141
|
+
var getReadRootGetQueryKey = () => [`/`];
|
|
142
|
+
var getReadRootGetQueryOptions = (options) => {
|
|
143
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
144
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getReadRootGetQueryKey();
|
|
145
|
+
const queryFn = ({
|
|
146
|
+
signal
|
|
147
|
+
}) => readRootGet(requestOptions, signal);
|
|
148
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
149
|
+
};
|
|
150
|
+
var useReadRootGet = (options) => {
|
|
151
|
+
const queryOptions = getReadRootGetQueryOptions(options);
|
|
152
|
+
const query = (0, import_react_query.useQuery)(queryOptions);
|
|
153
|
+
query.queryKey = queryOptions.queryKey;
|
|
154
|
+
return query;
|
|
155
|
+
};
|
|
156
|
+
var getUserMeGet = (options, signal) => {
|
|
157
|
+
return http({ url: `/me/`, method: "get", signal }, options);
|
|
158
|
+
};
|
|
159
|
+
var getGetUserMeGetQueryKey = () => [`/me/`];
|
|
160
|
+
var getGetUserMeGetQueryOptions = (options) => {
|
|
161
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
162
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetUserMeGetQueryKey();
|
|
163
|
+
const queryFn = ({
|
|
164
|
+
signal
|
|
165
|
+
}) => getUserMeGet(requestOptions, signal);
|
|
166
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
167
|
+
};
|
|
168
|
+
var useGetUserMeGet = (options) => {
|
|
169
|
+
const queryOptions = getGetUserMeGetQueryOptions(options);
|
|
170
|
+
const query = (0, import_react_query.useQuery)(queryOptions);
|
|
171
|
+
query.queryKey = queryOptions.queryKey;
|
|
172
|
+
return query;
|
|
173
|
+
};
|
|
174
|
+
var getAvailableBandsAvailablebandsGet = (options, signal) => {
|
|
175
|
+
return http(
|
|
176
|
+
{ url: `/availablebands/`, method: "get", signal },
|
|
177
|
+
options
|
|
178
|
+
);
|
|
179
|
+
};
|
|
180
|
+
var getGetAvailableBandsAvailablebandsGetQueryKey = () => [`/availablebands/`];
|
|
181
|
+
var getGetAvailableBandsAvailablebandsGetQueryOptions = (options) => {
|
|
182
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
183
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAvailableBandsAvailablebandsGetQueryKey();
|
|
184
|
+
const queryFn = ({ signal }) => getAvailableBandsAvailablebandsGet(requestOptions, signal);
|
|
185
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
186
|
+
};
|
|
187
|
+
var useGetAvailableBandsAvailablebandsGet = (options) => {
|
|
188
|
+
const queryOptions = getGetAvailableBandsAvailablebandsGetQueryOptions(options);
|
|
189
|
+
const query = (0, import_react_query.useQuery)(queryOptions);
|
|
190
|
+
query.queryKey = queryOptions.queryKey;
|
|
191
|
+
return query;
|
|
192
|
+
};
|
|
193
|
+
var getAvailableLayersAvailablelayersGet = (options, signal) => {
|
|
194
|
+
return http(
|
|
195
|
+
{ url: `/availablelayers/`, method: "get", signal },
|
|
196
|
+
options
|
|
197
|
+
);
|
|
198
|
+
};
|
|
199
|
+
var getGetAvailableLayersAvailablelayersGetQueryKey = () => [`/availablelayers/`];
|
|
200
|
+
var getGetAvailableLayersAvailablelayersGetQueryOptions = (options) => {
|
|
201
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
202
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAvailableLayersAvailablelayersGetQueryKey();
|
|
203
|
+
const queryFn = ({ signal }) => getAvailableLayersAvailablelayersGet(requestOptions, signal);
|
|
204
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
205
|
+
};
|
|
206
|
+
var useGetAvailableLayersAvailablelayersGet = (options) => {
|
|
207
|
+
const queryOptions = getGetAvailableLayersAvailablelayersGetQueryOptions(options);
|
|
208
|
+
const query = (0, import_react_query.useQuery)(queryOptions);
|
|
209
|
+
query.queryKey = queryOptions.queryKey;
|
|
210
|
+
return query;
|
|
211
|
+
};
|
|
212
|
+
var getLabelsLabelsGet = (options, signal) => {
|
|
213
|
+
return http({ url: `/labels/`, method: "get", signal }, options);
|
|
214
|
+
};
|
|
215
|
+
var getGetLabelsLabelsGetQueryKey = () => [`/labels/`];
|
|
216
|
+
var getGetLabelsLabelsGetQueryOptions = (options) => {
|
|
217
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
218
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetLabelsLabelsGetQueryKey();
|
|
219
|
+
const queryFn = ({ signal }) => getLabelsLabelsGet(requestOptions, signal);
|
|
220
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
221
|
+
};
|
|
222
|
+
var useGetLabelsLabelsGet = (options) => {
|
|
223
|
+
const queryOptions = getGetLabelsLabelsGetQueryOptions(options);
|
|
224
|
+
const query = (0, import_react_query.useQuery)(queryOptions);
|
|
225
|
+
query.queryKey = queryOptions.queryKey;
|
|
226
|
+
return query;
|
|
227
|
+
};
|
|
228
|
+
var listProjectsListprojectsStartidxStartidxAmountAmountGet = (startidx, amount, options, signal) => {
|
|
229
|
+
return http(
|
|
230
|
+
{
|
|
231
|
+
url: `/listprojects/startidx=${startidx}&amount=${amount}`,
|
|
232
|
+
method: "get",
|
|
233
|
+
signal
|
|
234
|
+
},
|
|
235
|
+
options
|
|
236
|
+
);
|
|
237
|
+
};
|
|
238
|
+
var getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryKey = (startidx, amount) => [`/listprojects/startidx=${startidx}&amount=${amount}`];
|
|
239
|
+
var getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryOptions = (startidx, amount, options) => {
|
|
240
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
241
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryKey(
|
|
242
|
+
startidx,
|
|
243
|
+
amount
|
|
244
|
+
);
|
|
245
|
+
const queryFn = ({ signal }) => listProjectsListprojectsStartidxStartidxAmountAmountGet(
|
|
246
|
+
startidx,
|
|
247
|
+
amount,
|
|
248
|
+
requestOptions,
|
|
249
|
+
signal
|
|
250
|
+
);
|
|
251
|
+
return {
|
|
252
|
+
queryKey,
|
|
253
|
+
queryFn,
|
|
254
|
+
enabled: !!(startidx && amount),
|
|
255
|
+
...queryOptions
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
var useListProjectsListprojectsStartidxStartidxAmountAmountGet = (startidx, amount, options) => {
|
|
259
|
+
const queryOptions = getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryOptions(
|
|
260
|
+
startidx,
|
|
261
|
+
amount,
|
|
262
|
+
options
|
|
263
|
+
);
|
|
264
|
+
const query = (0, import_react_query.useQuery)(queryOptions);
|
|
265
|
+
query.queryKey = queryOptions.queryKey;
|
|
266
|
+
return query;
|
|
267
|
+
};
|
|
268
|
+
var createProjectCreateprojectPost = (createProjectRequest, options) => {
|
|
269
|
+
return http(
|
|
270
|
+
{
|
|
271
|
+
url: `/createproject/`,
|
|
272
|
+
method: "post",
|
|
273
|
+
headers: { "Content-Type": "application/json" },
|
|
274
|
+
data: createProjectRequest
|
|
275
|
+
},
|
|
276
|
+
options
|
|
277
|
+
);
|
|
278
|
+
};
|
|
279
|
+
var getCreateProjectCreateprojectPostMutationOptions = (options) => {
|
|
280
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
281
|
+
const mutationFn = (props) => {
|
|
282
|
+
const { data } = props ?? {};
|
|
283
|
+
return createProjectCreateprojectPost(data, requestOptions);
|
|
284
|
+
};
|
|
285
|
+
return { mutationFn, ...mutationOptions };
|
|
286
|
+
};
|
|
287
|
+
var useCreateProjectCreateprojectPost = (options) => {
|
|
288
|
+
const mutationOptions = getCreateProjectCreateprojectPostMutationOptions(options);
|
|
289
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
290
|
+
};
|
|
291
|
+
var setUserRoleSetuserrolePost = (setUserRoleRequest, options) => {
|
|
292
|
+
return http(
|
|
293
|
+
{
|
|
294
|
+
url: `/setuserrole/`,
|
|
295
|
+
method: "post",
|
|
296
|
+
headers: { "Content-Type": "application/json" },
|
|
297
|
+
data: setUserRoleRequest
|
|
298
|
+
},
|
|
299
|
+
options
|
|
300
|
+
);
|
|
301
|
+
};
|
|
302
|
+
var getSetUserRoleSetuserrolePostMutationOptions = (options) => {
|
|
303
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
304
|
+
const mutationFn = (props) => {
|
|
305
|
+
const { data } = props ?? {};
|
|
306
|
+
return setUserRoleSetuserrolePost(data, requestOptions);
|
|
307
|
+
};
|
|
308
|
+
return { mutationFn, ...mutationOptions };
|
|
309
|
+
};
|
|
310
|
+
var useSetUserRoleSetuserrolePost = (options) => {
|
|
311
|
+
const mutationOptions = getSetUserRoleSetuserrolePostMutationOptions(options);
|
|
312
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
313
|
+
};
|
|
314
|
+
var removeUserRemoveuserPost = (removeUserRequest, options) => {
|
|
315
|
+
return http(
|
|
316
|
+
{
|
|
317
|
+
url: `/removeuser/`,
|
|
318
|
+
method: "post",
|
|
319
|
+
headers: { "Content-Type": "application/json" },
|
|
320
|
+
data: removeUserRequest
|
|
321
|
+
},
|
|
322
|
+
options
|
|
323
|
+
);
|
|
324
|
+
};
|
|
325
|
+
var getRemoveUserRemoveuserPostMutationOptions = (options) => {
|
|
326
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
327
|
+
const mutationFn = (props) => {
|
|
328
|
+
const { data } = props ?? {};
|
|
329
|
+
return removeUserRemoveuserPost(data, requestOptions);
|
|
330
|
+
};
|
|
331
|
+
return { mutationFn, ...mutationOptions };
|
|
332
|
+
};
|
|
333
|
+
var useRemoveUserRemoveuserPost = (options) => {
|
|
334
|
+
const mutationOptions = getRemoveUserRemoveuserPostMutationOptions(options);
|
|
335
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
336
|
+
};
|
|
337
|
+
var getPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet = (lon, lat, width, height, options, signal) => {
|
|
338
|
+
return http(
|
|
339
|
+
{
|
|
340
|
+
url: `/utmlocation/lon=${lon}&lat=${lat}&width=${width}&height=${height}`,
|
|
341
|
+
method: "get",
|
|
342
|
+
signal
|
|
343
|
+
},
|
|
344
|
+
options
|
|
345
|
+
);
|
|
346
|
+
};
|
|
347
|
+
var getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryKey = (lon, lat, width, height) => [
|
|
348
|
+
`/utmlocation/lon=${lon}&lat=${lat}&width=${width}&height=${height}`
|
|
349
|
+
];
|
|
350
|
+
var getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryOptions = (lon, lat, width, height, options) => {
|
|
351
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
352
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryKey(
|
|
353
|
+
lon,
|
|
354
|
+
lat,
|
|
355
|
+
width,
|
|
356
|
+
height
|
|
357
|
+
);
|
|
358
|
+
const queryFn = ({ signal }) => getPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet(
|
|
359
|
+
lon,
|
|
360
|
+
lat,
|
|
361
|
+
width,
|
|
362
|
+
height,
|
|
363
|
+
requestOptions,
|
|
364
|
+
signal
|
|
365
|
+
);
|
|
366
|
+
return {
|
|
367
|
+
queryKey,
|
|
368
|
+
queryFn,
|
|
369
|
+
enabled: !!(lon && lat && width && height),
|
|
370
|
+
...queryOptions
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
var useGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet = (lon, lat, width, height, options) => {
|
|
374
|
+
const queryOptions = getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryOptions(
|
|
375
|
+
lon,
|
|
376
|
+
lat,
|
|
377
|
+
width,
|
|
378
|
+
height,
|
|
379
|
+
options
|
|
380
|
+
);
|
|
381
|
+
const query = (0, import_react_query.useQuery)(queryOptions);
|
|
382
|
+
query.queryKey = queryOptions.queryKey;
|
|
383
|
+
return query;
|
|
384
|
+
};
|
|
385
|
+
var getLocationGetlocationPost = (getLocationRequest, options) => {
|
|
386
|
+
return http(
|
|
387
|
+
{
|
|
388
|
+
url: `/getlocation/`,
|
|
389
|
+
method: "post",
|
|
390
|
+
headers: { "Content-Type": "application/json" },
|
|
391
|
+
data: getLocationRequest
|
|
392
|
+
},
|
|
393
|
+
options
|
|
394
|
+
);
|
|
395
|
+
};
|
|
396
|
+
var getGetLocationGetlocationPostMutationOptions = (options) => {
|
|
397
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
398
|
+
const mutationFn = (props) => {
|
|
399
|
+
const { data } = props ?? {};
|
|
400
|
+
return getLocationGetlocationPost(data, requestOptions);
|
|
401
|
+
};
|
|
402
|
+
return { mutationFn, ...mutationOptions };
|
|
403
|
+
};
|
|
404
|
+
var useGetLocationGetlocationPost = (options) => {
|
|
405
|
+
const mutationOptions = getGetLocationGetlocationPostMutationOptions(options);
|
|
406
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
407
|
+
};
|
|
408
|
+
var getNextLocationNextlocationPost = (nextLocationRequest, options) => {
|
|
409
|
+
return http(
|
|
410
|
+
{
|
|
411
|
+
url: `/nextlocation/`,
|
|
412
|
+
method: "post",
|
|
413
|
+
headers: { "Content-Type": "application/json" },
|
|
414
|
+
data: nextLocationRequest
|
|
415
|
+
},
|
|
416
|
+
options
|
|
417
|
+
);
|
|
418
|
+
};
|
|
419
|
+
var getGetNextLocationNextlocationPostMutationOptions = (options) => {
|
|
420
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
421
|
+
const mutationFn = (props) => {
|
|
422
|
+
const { data } = props ?? {};
|
|
423
|
+
return getNextLocationNextlocationPost(data, requestOptions);
|
|
424
|
+
};
|
|
425
|
+
return { mutationFn, ...mutationOptions };
|
|
426
|
+
};
|
|
427
|
+
var useGetNextLocationNextlocationPost = (options) => {
|
|
428
|
+
const mutationOptions = getGetNextLocationNextlocationPostMutationOptions(options);
|
|
429
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
430
|
+
};
|
|
431
|
+
var createLocationCreatelocationPost = (createLocationRequest, options) => {
|
|
432
|
+
return http(
|
|
433
|
+
{
|
|
434
|
+
url: `/createlocation/`,
|
|
435
|
+
method: "post",
|
|
436
|
+
headers: { "Content-Type": "application/json" },
|
|
437
|
+
data: createLocationRequest
|
|
438
|
+
},
|
|
439
|
+
options
|
|
440
|
+
);
|
|
441
|
+
};
|
|
442
|
+
var getCreateLocationCreatelocationPostMutationOptions = (options) => {
|
|
443
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
444
|
+
const mutationFn = (props) => {
|
|
445
|
+
const { data } = props ?? {};
|
|
446
|
+
return createLocationCreatelocationPost(data, requestOptions);
|
|
447
|
+
};
|
|
448
|
+
return { mutationFn, ...mutationOptions };
|
|
449
|
+
};
|
|
450
|
+
var useCreateLocationCreatelocationPost = (options) => {
|
|
451
|
+
const mutationOptions = getCreateLocationCreatelocationPostMutationOptions(options);
|
|
452
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
453
|
+
};
|
|
454
|
+
var submitLabelingSubmitPost = (submitRequest, options) => {
|
|
455
|
+
return http(
|
|
456
|
+
{
|
|
457
|
+
url: `/submit/`,
|
|
458
|
+
method: "post",
|
|
459
|
+
headers: { "Content-Type": "application/json" },
|
|
460
|
+
data: submitRequest
|
|
461
|
+
},
|
|
462
|
+
options
|
|
463
|
+
);
|
|
464
|
+
};
|
|
465
|
+
var getSubmitLabelingSubmitPostMutationOptions = (options) => {
|
|
466
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
467
|
+
const mutationFn = (props) => {
|
|
468
|
+
const { data } = props ?? {};
|
|
469
|
+
return submitLabelingSubmitPost(data, requestOptions);
|
|
470
|
+
};
|
|
471
|
+
return { mutationFn, ...mutationOptions };
|
|
472
|
+
};
|
|
473
|
+
var useSubmitLabelingSubmitPost = (options) => {
|
|
474
|
+
const mutationOptions = getSubmitLabelingSubmitPostMutationOptions(options);
|
|
475
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
476
|
+
};
|
|
477
|
+
var searchLocationsLocationsPost = (listLocationsRequest, options) => {
|
|
478
|
+
return http(
|
|
479
|
+
{
|
|
480
|
+
url: `/locations/`,
|
|
481
|
+
method: "post",
|
|
482
|
+
headers: { "Content-Type": "application/json" },
|
|
483
|
+
data: listLocationsRequest
|
|
484
|
+
},
|
|
485
|
+
options
|
|
486
|
+
);
|
|
487
|
+
};
|
|
488
|
+
var getSearchLocationsLocationsPostMutationOptions = (options) => {
|
|
489
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
490
|
+
const mutationFn = (props) => {
|
|
491
|
+
const { data } = props ?? {};
|
|
492
|
+
return searchLocationsLocationsPost(data, requestOptions);
|
|
493
|
+
};
|
|
494
|
+
return { mutationFn, ...mutationOptions };
|
|
495
|
+
};
|
|
496
|
+
var useSearchLocationsLocationsPost = (options) => {
|
|
497
|
+
const mutationOptions = getSearchLocationsLocationsPostMutationOptions(options);
|
|
498
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
499
|
+
};
|
|
500
|
+
var submitCommentCommentPost = (submitCommentRequest, options) => {
|
|
501
|
+
return http(
|
|
502
|
+
{
|
|
503
|
+
url: `/comment/`,
|
|
504
|
+
method: "post",
|
|
505
|
+
headers: { "Content-Type": "application/json" },
|
|
506
|
+
data: submitCommentRequest
|
|
507
|
+
},
|
|
508
|
+
options
|
|
509
|
+
);
|
|
510
|
+
};
|
|
511
|
+
var getSubmitCommentCommentPostMutationOptions = (options) => {
|
|
512
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
513
|
+
const mutationFn = (props) => {
|
|
514
|
+
const { data } = props ?? {};
|
|
515
|
+
return submitCommentCommentPost(data, requestOptions);
|
|
516
|
+
};
|
|
517
|
+
return { mutationFn, ...mutationOptions };
|
|
518
|
+
};
|
|
519
|
+
var useSubmitCommentCommentPost = (options) => {
|
|
520
|
+
const mutationOptions = getSubmitCommentCommentPostMutationOptions(options);
|
|
521
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
522
|
+
};
|
|
523
|
+
var locationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet = (locationId, projectId, options, signal) => {
|
|
524
|
+
return http(
|
|
525
|
+
{
|
|
526
|
+
url: `/locationcontent/location_id=${locationId}&project_id=${projectId}`,
|
|
527
|
+
method: "get",
|
|
528
|
+
signal
|
|
529
|
+
},
|
|
530
|
+
options
|
|
531
|
+
);
|
|
532
|
+
};
|
|
533
|
+
var getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryKey = (locationId, projectId) => [
|
|
534
|
+
`/locationcontent/location_id=${locationId}&project_id=${projectId}`
|
|
535
|
+
];
|
|
536
|
+
var getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryOptions = (locationId, projectId, options) => {
|
|
537
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
538
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryKey(
|
|
539
|
+
locationId,
|
|
540
|
+
projectId
|
|
541
|
+
);
|
|
542
|
+
const queryFn = ({ signal }) => locationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet(
|
|
543
|
+
locationId,
|
|
544
|
+
projectId,
|
|
545
|
+
requestOptions,
|
|
546
|
+
signal
|
|
547
|
+
);
|
|
548
|
+
return {
|
|
549
|
+
queryKey,
|
|
550
|
+
queryFn,
|
|
551
|
+
enabled: !!(locationId && projectId),
|
|
552
|
+
...queryOptions
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
var useLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet = (locationId, projectId, options) => {
|
|
556
|
+
const queryOptions = getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryOptions(
|
|
557
|
+
locationId,
|
|
558
|
+
projectId,
|
|
559
|
+
options
|
|
560
|
+
);
|
|
561
|
+
const query = (0, import_react_query.useQuery)(queryOptions);
|
|
562
|
+
query.queryKey = queryOptions.queryKey;
|
|
563
|
+
return query;
|
|
564
|
+
};
|
|
565
|
+
var getClustersClusterPost = (clusterRequest, options) => {
|
|
566
|
+
return http(
|
|
567
|
+
{
|
|
568
|
+
url: `/cluster/`,
|
|
569
|
+
method: "post",
|
|
570
|
+
headers: { "Content-Type": "application/json" },
|
|
571
|
+
data: clusterRequest
|
|
572
|
+
},
|
|
573
|
+
options
|
|
574
|
+
);
|
|
575
|
+
};
|
|
576
|
+
var getGetClustersClusterPostMutationOptions = (options) => {
|
|
577
|
+
const { mutation: mutationOptions, request: requestOptions } = options ?? {};
|
|
578
|
+
const mutationFn = (props) => {
|
|
579
|
+
const { data } = props ?? {};
|
|
580
|
+
return getClustersClusterPost(data, requestOptions);
|
|
581
|
+
};
|
|
582
|
+
return { mutationFn, ...mutationOptions };
|
|
583
|
+
};
|
|
584
|
+
var useGetClustersClusterPost = (options) => {
|
|
585
|
+
const mutationOptions = getGetClustersClusterPostMutationOptions(options);
|
|
586
|
+
return (0, import_react_query.useMutation)(mutationOptions);
|
|
587
|
+
};
|
|
588
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
589
|
+
0 && (module.exports = {
|
|
590
|
+
LocationStatus,
|
|
591
|
+
UserRank,
|
|
592
|
+
createLocationCreatelocationPost,
|
|
593
|
+
createProjectCreateprojectPost,
|
|
594
|
+
evolandAxiosInstance,
|
|
595
|
+
getAvailableBandsAvailablebandsGet,
|
|
596
|
+
getAvailableLayersAvailablelayersGet,
|
|
597
|
+
getClustersClusterPost,
|
|
598
|
+
getCreateLocationCreatelocationPostMutationOptions,
|
|
599
|
+
getCreateProjectCreateprojectPostMutationOptions,
|
|
600
|
+
getGetAvailableBandsAvailablebandsGetQueryKey,
|
|
601
|
+
getGetAvailableBandsAvailablebandsGetQueryOptions,
|
|
602
|
+
getGetAvailableLayersAvailablelayersGetQueryKey,
|
|
603
|
+
getGetAvailableLayersAvailablelayersGetQueryOptions,
|
|
604
|
+
getGetClustersClusterPostMutationOptions,
|
|
605
|
+
getGetLabelsLabelsGetQueryKey,
|
|
606
|
+
getGetLabelsLabelsGetQueryOptions,
|
|
607
|
+
getGetLocationGetlocationPostMutationOptions,
|
|
608
|
+
getGetNextLocationNextlocationPostMutationOptions,
|
|
609
|
+
getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryKey,
|
|
610
|
+
getGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGetQueryOptions,
|
|
611
|
+
getGetUserMeGetQueryKey,
|
|
612
|
+
getGetUserMeGetQueryOptions,
|
|
613
|
+
getLabelsLabelsGet,
|
|
614
|
+
getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryKey,
|
|
615
|
+
getListProjectsListprojectsStartidxStartidxAmountAmountGetQueryOptions,
|
|
616
|
+
getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryKey,
|
|
617
|
+
getLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGetQueryOptions,
|
|
618
|
+
getLocationGetlocationPost,
|
|
619
|
+
getNextLocationNextlocationPost,
|
|
620
|
+
getPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet,
|
|
621
|
+
getReadRootGetQueryKey,
|
|
622
|
+
getReadRootGetQueryOptions,
|
|
623
|
+
getRemoveUserRemoveuserPostMutationOptions,
|
|
624
|
+
getSearchLocationsLocationsPostMutationOptions,
|
|
625
|
+
getSetUserRoleSetuserrolePostMutationOptions,
|
|
626
|
+
getSubmitCommentCommentPostMutationOptions,
|
|
627
|
+
getSubmitLabelingSubmitPostMutationOptions,
|
|
628
|
+
getUserMeGet,
|
|
629
|
+
http,
|
|
630
|
+
listProjectsListprojectsStartidxStartidxAmountAmountGet,
|
|
631
|
+
locationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet,
|
|
632
|
+
readRootGet,
|
|
633
|
+
removeUserRemoveuserPost,
|
|
634
|
+
searchLocationsLocationsPost,
|
|
635
|
+
setUserRoleSetuserrolePost,
|
|
636
|
+
submitCommentCommentPost,
|
|
637
|
+
submitLabelingSubmitPost,
|
|
638
|
+
useCreateLocationCreatelocationPost,
|
|
639
|
+
useCreateProjectCreateprojectPost,
|
|
640
|
+
useGetAvailableBandsAvailablebandsGet,
|
|
641
|
+
useGetAvailableLayersAvailablelayersGet,
|
|
642
|
+
useGetClustersClusterPost,
|
|
643
|
+
useGetLabelsLabelsGet,
|
|
644
|
+
useGetLocationGetlocationPost,
|
|
645
|
+
useGetNextLocationNextlocationPost,
|
|
646
|
+
useGetPolygonUtmlocationLonLonLatLatWidthWidthHeightHeightGet,
|
|
647
|
+
useGetUserMeGet,
|
|
648
|
+
useListProjectsListprojectsStartidxStartidxAmountAmountGet,
|
|
649
|
+
useLocationContentLocationcontentLocationIdLocationIdProjectIdProjectIdGet,
|
|
650
|
+
useReadRootGet,
|
|
651
|
+
useRemoveUserRemoveuserPost,
|
|
652
|
+
useSearchLocationsLocationsPost,
|
|
653
|
+
useSetUserRoleSetuserrolePost,
|
|
654
|
+
useSubmitCommentCommentPost,
|
|
655
|
+
useSubmitLabelingSubmitPost
|
|
656
|
+
});
|