@ocelescope/api-base 0.1.0 → 0.2.0
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/dist/index.d.ts +1444 -1279
- package/dist/index.js +976 -829
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3,21 +3,13 @@ import { customFetch } from "@ocelescope/api-client";
|
|
|
3
3
|
//#region src/lib/fetcher.ts
|
|
4
4
|
const customFetch$1 = async (config, options) => customFetch(config, options);
|
|
5
5
|
//#endregion
|
|
6
|
-
//#region src/api/base.ts
|
|
6
|
+
//#region src/api/base/index.ts
|
|
7
7
|
/**
|
|
8
8
|
* Generated by orval v8.5.2 🍺
|
|
9
9
|
* Do not edit manually.
|
|
10
10
|
* Ocelescope Backend
|
|
11
11
|
* OpenAPI spec version: 0.1
|
|
12
12
|
*/
|
|
13
|
-
const ValueType = {
|
|
14
|
-
empty: "empty",
|
|
15
|
-
string: "string",
|
|
16
|
-
bool: "bool",
|
|
17
|
-
int: "int",
|
|
18
|
-
float: "float",
|
|
19
|
-
date: "date"
|
|
20
|
-
};
|
|
21
13
|
const TaskState = {
|
|
22
14
|
PENDING: "PENDING",
|
|
23
15
|
STARTED: "STARTED",
|
|
@@ -69,39 +61,6 @@ const DotVisLayoutEngine = {
|
|
|
69
61
|
nop: "nop",
|
|
70
62
|
nop2: "nop2"
|
|
71
63
|
};
|
|
72
|
-
const AggregatedAttributesEntityType = {
|
|
73
|
-
events: "events",
|
|
74
|
-
objects: "objects"
|
|
75
|
-
};
|
|
76
|
-
const E2oDirection = {
|
|
77
|
-
source: "source",
|
|
78
|
-
target: "target"
|
|
79
|
-
};
|
|
80
|
-
const E2oOrder = {
|
|
81
|
-
asc: "asc",
|
|
82
|
-
desc: "desc"
|
|
83
|
-
};
|
|
84
|
-
const O2oDirection = {
|
|
85
|
-
source: "source",
|
|
86
|
-
target: "target"
|
|
87
|
-
};
|
|
88
|
-
const O2oOrder = {
|
|
89
|
-
asc: "asc",
|
|
90
|
-
desc: "desc"
|
|
91
|
-
};
|
|
92
|
-
const E2oCombinationsDirection = {
|
|
93
|
-
source: "source",
|
|
94
|
-
target: "target"
|
|
95
|
-
};
|
|
96
|
-
const O2oCombinationsDirection = {
|
|
97
|
-
source: "source",
|
|
98
|
-
target: "target"
|
|
99
|
-
};
|
|
100
|
-
const DownloadOCELExt = {
|
|
101
|
-
xml: ".xml",
|
|
102
|
-
json: ".json",
|
|
103
|
-
sqlite: ".sqlite"
|
|
104
|
-
};
|
|
105
64
|
/**
|
|
106
65
|
* @summary Upload ocels, resources or tasks
|
|
107
66
|
*/
|
|
@@ -179,89 +138,91 @@ const useLogout = (options, queryClient) => {
|
|
|
179
138
|
return useMutation(getLogoutMutationOptions(options), queryClient);
|
|
180
139
|
};
|
|
181
140
|
/**
|
|
182
|
-
*
|
|
183
|
-
* @summary List uploaded and uploading OCELs
|
|
141
|
+
* @summary Create a discovery task
|
|
184
142
|
*/
|
|
185
|
-
const
|
|
143
|
+
const createDiscoveryTask = (ocelId, createDiscoveryTaskBody, options, signal) => {
|
|
186
144
|
return customFetch$1({
|
|
187
|
-
url: `/api/external/ocels`,
|
|
188
|
-
method: "
|
|
189
|
-
|
|
145
|
+
url: `/api/external/discovery/ocels/${ocelId}/tasks`,
|
|
146
|
+
method: "POST",
|
|
147
|
+
headers: { "Content-Type": "application/json" },
|
|
148
|
+
data: createDiscoveryTaskBody,
|
|
190
149
|
...signal ? { signal } : {}
|
|
191
150
|
}, options);
|
|
192
151
|
};
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
152
|
+
const getCreateDiscoveryTaskMutationOptions = (options) => {
|
|
153
|
+
const mutationKey = ["createDiscoveryTask"];
|
|
154
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
155
|
+
...options,
|
|
156
|
+
mutation: {
|
|
157
|
+
...options.mutation,
|
|
158
|
+
mutationKey
|
|
159
|
+
}
|
|
160
|
+
} : {
|
|
161
|
+
mutation: { mutationKey },
|
|
162
|
+
request: void 0
|
|
163
|
+
};
|
|
164
|
+
const mutationFn = (props) => {
|
|
165
|
+
const { ocelId, data } = props ?? {};
|
|
166
|
+
return createDiscoveryTask(ocelId, data, requestOptions);
|
|
167
|
+
};
|
|
200
168
|
return {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
staleTime: 3e5,
|
|
204
|
-
...queryOptions
|
|
169
|
+
mutationFn,
|
|
170
|
+
...mutationOptions
|
|
205
171
|
};
|
|
206
172
|
};
|
|
207
173
|
/**
|
|
208
|
-
* @summary
|
|
174
|
+
* @summary Create a discovery task
|
|
209
175
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
...useQuery(queryOptions, queryClient),
|
|
214
|
-
queryKey: queryOptions.queryKey
|
|
215
|
-
};
|
|
216
|
-
}
|
|
176
|
+
const useCreateDiscoveryTask = (options, queryClient) => {
|
|
177
|
+
return useMutation(getCreateDiscoveryTaskMutationOptions(options), queryClient);
|
|
178
|
+
};
|
|
217
179
|
/**
|
|
218
|
-
* @summary Get
|
|
180
|
+
* @summary Get Discovery Task
|
|
219
181
|
*/
|
|
220
|
-
const
|
|
182
|
+
const discoveryTask = (taskId, options, signal) => {
|
|
221
183
|
return customFetch$1({
|
|
222
|
-
url: `/api/external/
|
|
184
|
+
url: `/api/external/discovery/tasks/${taskId}`,
|
|
223
185
|
method: "GET",
|
|
224
|
-
params,
|
|
225
186
|
...signal ? { signal } : {}
|
|
226
187
|
}, options);
|
|
227
188
|
};
|
|
228
|
-
const
|
|
229
|
-
return [`/api/external/
|
|
189
|
+
const getDiscoveryTaskQueryKey = (taskId) => {
|
|
190
|
+
return [`/api/external/discovery/tasks/${taskId}`];
|
|
230
191
|
};
|
|
231
|
-
const
|
|
192
|
+
const getDiscoveryTaskQueryOptions = (taskId, options) => {
|
|
232
193
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
233
|
-
const queryKey = queryOptions?.queryKey ??
|
|
234
|
-
const queryFn = ({ signal }) =>
|
|
194
|
+
const queryKey = queryOptions?.queryKey ?? getDiscoveryTaskQueryKey(taskId);
|
|
195
|
+
const queryFn = ({ signal }) => discoveryTask(taskId, requestOptions, signal);
|
|
235
196
|
return {
|
|
236
197
|
queryKey,
|
|
237
198
|
queryFn,
|
|
199
|
+
enabled: !!taskId,
|
|
238
200
|
staleTime: 3e5,
|
|
239
201
|
...queryOptions
|
|
240
202
|
};
|
|
241
203
|
};
|
|
242
204
|
/**
|
|
243
|
-
* @summary Get
|
|
205
|
+
* @summary Get Discovery Task
|
|
244
206
|
*/
|
|
245
|
-
function
|
|
246
|
-
const queryOptions =
|
|
207
|
+
function useDiscoveryTask(taskId, options, queryClient) {
|
|
208
|
+
const queryOptions = getDiscoveryTaskQueryOptions(taskId, options);
|
|
247
209
|
return {
|
|
248
210
|
...useQuery(queryOptions, queryClient),
|
|
249
211
|
queryKey: queryOptions.queryKey
|
|
250
212
|
};
|
|
251
213
|
}
|
|
252
214
|
/**
|
|
253
|
-
* @summary
|
|
215
|
+
* @summary Save Discovery
|
|
254
216
|
*/
|
|
255
|
-
const
|
|
217
|
+
const saveDiscovery = (taskId, options, signal) => {
|
|
256
218
|
return customFetch$1({
|
|
257
|
-
url: `/api/external/
|
|
219
|
+
url: `/api/external/discovery/tasks/${taskId}`,
|
|
258
220
|
method: "POST",
|
|
259
|
-
params,
|
|
260
221
|
...signal ? { signal } : {}
|
|
261
222
|
}, options);
|
|
262
223
|
};
|
|
263
|
-
const
|
|
264
|
-
const mutationKey = ["
|
|
224
|
+
const getSaveDiscoveryMutationOptions = (options) => {
|
|
225
|
+
const mutationKey = ["saveDiscovery"];
|
|
265
226
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
266
227
|
...options,
|
|
267
228
|
mutation: {
|
|
@@ -273,8 +234,8 @@ const getImportDefaultOcelMutationOptions = (options) => {
|
|
|
273
234
|
request: void 0
|
|
274
235
|
};
|
|
275
236
|
const mutationFn = (props) => {
|
|
276
|
-
const {
|
|
277
|
-
return
|
|
237
|
+
const { taskId } = props ?? {};
|
|
238
|
+
return saveDiscovery(taskId, requestOptions);
|
|
278
239
|
};
|
|
279
240
|
return {
|
|
280
241
|
mutationFn,
|
|
@@ -282,28 +243,28 @@ const getImportDefaultOcelMutationOptions = (options) => {
|
|
|
282
243
|
};
|
|
283
244
|
};
|
|
284
245
|
/**
|
|
285
|
-
* @summary
|
|
246
|
+
* @summary Save Discovery
|
|
286
247
|
*/
|
|
287
|
-
const
|
|
288
|
-
return useMutation(
|
|
248
|
+
const useSaveDiscovery = (options, queryClient) => {
|
|
249
|
+
return useMutation(getSaveDiscoveryMutationOptions(options), queryClient);
|
|
289
250
|
};
|
|
290
251
|
/**
|
|
291
|
-
* @summary
|
|
252
|
+
* @summary List filters available to discovery tasks
|
|
292
253
|
*/
|
|
293
|
-
const
|
|
254
|
+
const listDiscoveryFilters = (options, signal) => {
|
|
294
255
|
return customFetch$1({
|
|
295
|
-
url: `/api/external/
|
|
256
|
+
url: `/api/external/discovery/filters`,
|
|
296
257
|
method: "GET",
|
|
297
258
|
...signal ? { signal } : {}
|
|
298
259
|
}, options);
|
|
299
260
|
};
|
|
300
|
-
const
|
|
301
|
-
return [`/api/external/
|
|
261
|
+
const getListDiscoveryFiltersQueryKey = () => {
|
|
262
|
+
return [`/api/external/discovery/filters`];
|
|
302
263
|
};
|
|
303
|
-
const
|
|
264
|
+
const getListDiscoveryFiltersQueryOptions = (options) => {
|
|
304
265
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
305
|
-
const queryKey = queryOptions?.queryKey ??
|
|
306
|
-
const queryFn = ({ signal }) =>
|
|
266
|
+
const queryKey = queryOptions?.queryKey ?? getListDiscoveryFiltersQueryKey();
|
|
267
|
+
const queryFn = ({ signal }) => listDiscoveryFilters(requestOptions, signal);
|
|
307
268
|
return {
|
|
308
269
|
queryKey,
|
|
309
270
|
queryFn,
|
|
@@ -312,64 +273,61 @@ const getGetExtensionMetaQueryOptions = (options) => {
|
|
|
312
273
|
};
|
|
313
274
|
};
|
|
314
275
|
/**
|
|
315
|
-
* @summary
|
|
276
|
+
* @summary List filters available to discovery tasks
|
|
316
277
|
*/
|
|
317
|
-
function
|
|
318
|
-
const queryOptions =
|
|
278
|
+
function useListDiscoveryFilters(options, queryClient) {
|
|
279
|
+
const queryOptions = getListDiscoveryFiltersQueryOptions(options);
|
|
319
280
|
return {
|
|
320
281
|
...useQuery(queryOptions, queryClient),
|
|
321
282
|
queryKey: queryOptions.queryKey
|
|
322
283
|
};
|
|
323
284
|
}
|
|
324
285
|
/**
|
|
325
|
-
* @summary
|
|
286
|
+
* @summary List discovery methods
|
|
326
287
|
*/
|
|
327
|
-
const
|
|
288
|
+
const listDiscoveryMethods = (options, signal) => {
|
|
328
289
|
return customFetch$1({
|
|
329
|
-
url: `/api/external/
|
|
290
|
+
url: `/api/external/discovery/methods`,
|
|
330
291
|
method: "GET",
|
|
331
|
-
params,
|
|
332
292
|
...signal ? { signal } : {}
|
|
333
293
|
}, options);
|
|
334
294
|
};
|
|
335
|
-
const
|
|
336
|
-
return [`/api/external/
|
|
295
|
+
const getListDiscoveryMethodsQueryKey = () => {
|
|
296
|
+
return [`/api/external/discovery/methods`];
|
|
337
297
|
};
|
|
338
|
-
const
|
|
298
|
+
const getListDiscoveryMethodsQueryOptions = (options) => {
|
|
339
299
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
340
|
-
const queryKey = queryOptions?.queryKey ??
|
|
341
|
-
const queryFn = ({ signal }) =>
|
|
300
|
+
const queryKey = queryOptions?.queryKey ?? getListDiscoveryMethodsQueryKey();
|
|
301
|
+
const queryFn = ({ signal }) => listDiscoveryMethods(requestOptions, signal);
|
|
342
302
|
return {
|
|
343
303
|
queryKey,
|
|
344
304
|
queryFn,
|
|
345
|
-
enabled: !!ocelId,
|
|
346
305
|
staleTime: 3e5,
|
|
347
306
|
...queryOptions
|
|
348
307
|
};
|
|
349
308
|
};
|
|
350
309
|
/**
|
|
351
|
-
* @summary
|
|
310
|
+
* @summary List discovery methods
|
|
352
311
|
*/
|
|
353
|
-
function
|
|
354
|
-
const queryOptions =
|
|
312
|
+
function useListDiscoveryMethods(options, queryClient) {
|
|
313
|
+
const queryOptions = getListDiscoveryMethodsQueryOptions(options);
|
|
355
314
|
return {
|
|
356
315
|
...useQuery(queryOptions, queryClient),
|
|
357
316
|
queryKey: queryOptions.queryKey
|
|
358
317
|
};
|
|
359
318
|
}
|
|
360
319
|
/**
|
|
361
|
-
*
|
|
362
|
-
* @summary Delete an uploaded OCEL
|
|
320
|
+
* @summary Disable a discovery method
|
|
363
321
|
*/
|
|
364
|
-
const
|
|
322
|
+
const disableDiscoveryMethod = (methodId, options, signal) => {
|
|
365
323
|
return customFetch$1({
|
|
366
|
-
url: `/api/external/
|
|
324
|
+
url: `/api/external/discovery/methods/${methodId}/disable`,
|
|
367
325
|
method: "POST",
|
|
368
326
|
...signal ? { signal } : {}
|
|
369
327
|
}, options);
|
|
370
328
|
};
|
|
371
|
-
const
|
|
372
|
-
const mutationKey = ["
|
|
329
|
+
const getDisableDiscoveryMethodMutationOptions = (options) => {
|
|
330
|
+
const mutationKey = ["disableDiscoveryMethod"];
|
|
373
331
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
374
332
|
...options,
|
|
375
333
|
mutation: {
|
|
@@ -381,8 +339,8 @@ const getDeleteOcelMutationOptions = (options) => {
|
|
|
381
339
|
request: void 0
|
|
382
340
|
};
|
|
383
341
|
const mutationFn = (props) => {
|
|
384
|
-
const {
|
|
385
|
-
return
|
|
342
|
+
const { methodId } = props ?? {};
|
|
343
|
+
return disableDiscoveryMethod(methodId, requestOptions);
|
|
386
344
|
};
|
|
387
345
|
return {
|
|
388
346
|
mutationFn,
|
|
@@ -390,25 +348,23 @@ const getDeleteOcelMutationOptions = (options) => {
|
|
|
390
348
|
};
|
|
391
349
|
};
|
|
392
350
|
/**
|
|
393
|
-
* @summary
|
|
351
|
+
* @summary Disable a discovery method
|
|
394
352
|
*/
|
|
395
|
-
const
|
|
396
|
-
return useMutation(
|
|
353
|
+
const useDisableDiscoveryMethod = (options, queryClient) => {
|
|
354
|
+
return useMutation(getDisableDiscoveryMethodMutationOptions(options), queryClient);
|
|
397
355
|
};
|
|
398
356
|
/**
|
|
399
|
-
*
|
|
400
|
-
* @summary Rename an uploaded OCEL
|
|
357
|
+
* @summary Enable a discovery method
|
|
401
358
|
*/
|
|
402
|
-
const
|
|
359
|
+
const enableDiscoveryMethod = (methodId, options, signal) => {
|
|
403
360
|
return customFetch$1({
|
|
404
|
-
url: `/api/external/
|
|
361
|
+
url: `/api/external/discovery/methods/${methodId}/enable`,
|
|
405
362
|
method: "POST",
|
|
406
|
-
params,
|
|
407
363
|
...signal ? { signal } : {}
|
|
408
364
|
}, options);
|
|
409
365
|
};
|
|
410
|
-
const
|
|
411
|
-
const mutationKey = ["
|
|
366
|
+
const getEnableDiscoveryMethodMutationOptions = (options) => {
|
|
367
|
+
const mutationKey = ["enableDiscoveryMethod"];
|
|
412
368
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
413
369
|
...options,
|
|
414
370
|
mutation: {
|
|
@@ -420,8 +376,8 @@ const getRenameOcelMutationOptions = (options) => {
|
|
|
420
376
|
request: void 0
|
|
421
377
|
};
|
|
422
378
|
const mutationFn = (props) => {
|
|
423
|
-
const {
|
|
424
|
-
return
|
|
379
|
+
const { methodId } = props ?? {};
|
|
380
|
+
return enableDiscoveryMethod(methodId, requestOptions);
|
|
425
381
|
};
|
|
426
382
|
return {
|
|
427
383
|
mutationFn,
|
|
@@ -429,641 +385,903 @@ const getRenameOcelMutationOptions = (options) => {
|
|
|
429
385
|
};
|
|
430
386
|
};
|
|
431
387
|
/**
|
|
432
|
-
* @summary
|
|
388
|
+
* @summary Enable a discovery method
|
|
433
389
|
*/
|
|
434
|
-
const
|
|
435
|
-
return useMutation(
|
|
390
|
+
const useEnableDiscoveryMethod = (options, queryClient) => {
|
|
391
|
+
return useMutation(getEnableDiscoveryMethodMutationOptions(options), queryClient);
|
|
436
392
|
};
|
|
437
393
|
/**
|
|
438
|
-
* @summary
|
|
394
|
+
* @summary returns all tasks of a session
|
|
439
395
|
*/
|
|
440
|
-
const
|
|
396
|
+
const getSystemTasks = (params, options, signal) => {
|
|
441
397
|
return customFetch$1({
|
|
442
|
-
url: `/api/external/
|
|
398
|
+
url: `/api/external/tasks/system`,
|
|
443
399
|
method: "GET",
|
|
444
400
|
params,
|
|
445
401
|
...signal ? { signal } : {}
|
|
446
402
|
}, options);
|
|
447
403
|
};
|
|
448
|
-
const
|
|
449
|
-
return [`/api/external/
|
|
404
|
+
const getGetSystemTasksQueryKey = (params) => {
|
|
405
|
+
return [`/api/external/tasks/system`, ...params ? [params] : []];
|
|
450
406
|
};
|
|
451
|
-
const
|
|
407
|
+
const getGetSystemTasksQueryOptions = (params, options) => {
|
|
452
408
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
453
|
-
const queryKey = queryOptions?.queryKey ??
|
|
454
|
-
const queryFn = ({ signal }) =>
|
|
409
|
+
const queryKey = queryOptions?.queryKey ?? getGetSystemTasksQueryKey(params);
|
|
410
|
+
const queryFn = ({ signal }) => getSystemTasks(params, requestOptions, signal);
|
|
455
411
|
return {
|
|
456
412
|
queryKey,
|
|
457
413
|
queryFn,
|
|
458
|
-
enabled: !!ocelId,
|
|
459
414
|
staleTime: 3e5,
|
|
460
415
|
...queryOptions
|
|
461
416
|
};
|
|
462
417
|
};
|
|
463
418
|
/**
|
|
464
|
-
* @summary
|
|
419
|
+
* @summary returns all tasks of a session
|
|
465
420
|
*/
|
|
466
|
-
function
|
|
467
|
-
const queryOptions =
|
|
421
|
+
function useGetSystemTasks(params, options, queryClient) {
|
|
422
|
+
const queryOptions = getGetSystemTasksQueryOptions(params, options);
|
|
468
423
|
return {
|
|
469
424
|
...useQuery(queryOptions, queryClient),
|
|
470
425
|
queryKey: queryOptions.queryKey
|
|
471
426
|
};
|
|
472
427
|
}
|
|
473
428
|
/**
|
|
474
|
-
* @summary
|
|
429
|
+
* @summary returns the task of a given taskId
|
|
475
430
|
*/
|
|
476
|
-
const
|
|
431
|
+
const getSystemTask = (taskId, options, signal) => {
|
|
477
432
|
return customFetch$1({
|
|
478
|
-
url: `/api/external/
|
|
433
|
+
url: `/api/external/tasks/system/${taskId}`,
|
|
479
434
|
method: "GET",
|
|
480
|
-
params,
|
|
481
435
|
...signal ? { signal } : {}
|
|
482
436
|
}, options);
|
|
483
437
|
};
|
|
484
|
-
const
|
|
485
|
-
return [`/api/external/
|
|
438
|
+
const getGetSystemTaskQueryKey = (taskId) => {
|
|
439
|
+
return [`/api/external/tasks/system/${taskId}`];
|
|
486
440
|
};
|
|
487
|
-
const
|
|
441
|
+
const getGetSystemTaskQueryOptions = (taskId, options) => {
|
|
488
442
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
489
|
-
const queryKey = queryOptions?.queryKey ??
|
|
490
|
-
const queryFn = ({ signal }) =>
|
|
443
|
+
const queryKey = queryOptions?.queryKey ?? getGetSystemTaskQueryKey(taskId);
|
|
444
|
+
const queryFn = ({ signal }) => getSystemTask(taskId, requestOptions, signal);
|
|
491
445
|
return {
|
|
492
446
|
queryKey,
|
|
493
447
|
queryFn,
|
|
494
|
-
enabled: !!
|
|
448
|
+
enabled: !!taskId,
|
|
495
449
|
staleTime: 3e5,
|
|
496
450
|
...queryOptions
|
|
497
451
|
};
|
|
498
452
|
};
|
|
499
453
|
/**
|
|
500
|
-
* @summary
|
|
454
|
+
* @summary returns the task of a given taskId
|
|
501
455
|
*/
|
|
502
|
-
function
|
|
503
|
-
const queryOptions =
|
|
456
|
+
function useGetSystemTask(taskId, options, queryClient) {
|
|
457
|
+
const queryOptions = getGetSystemTaskQueryOptions(taskId, options);
|
|
504
458
|
return {
|
|
505
459
|
...useQuery(queryOptions, queryClient),
|
|
506
460
|
queryKey: queryOptions.queryKey
|
|
507
461
|
};
|
|
508
462
|
}
|
|
509
463
|
/**
|
|
510
|
-
* @summary Get
|
|
464
|
+
* @summary Get Plugins
|
|
511
465
|
*/
|
|
512
|
-
const
|
|
466
|
+
const plugins = (options, signal) => {
|
|
513
467
|
return customFetch$1({
|
|
514
|
-
url: `/api/external/
|
|
468
|
+
url: `/api/external/plugins`,
|
|
515
469
|
method: "GET",
|
|
516
|
-
params,
|
|
517
470
|
...signal ? { signal } : {}
|
|
518
471
|
}, options);
|
|
519
472
|
};
|
|
520
|
-
const
|
|
521
|
-
return [`/api/external/
|
|
473
|
+
const getPluginsQueryKey = () => {
|
|
474
|
+
return [`/api/external/plugins`];
|
|
522
475
|
};
|
|
523
|
-
const
|
|
476
|
+
const getPluginsQueryOptions = (options) => {
|
|
524
477
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
525
|
-
const queryKey = queryOptions?.queryKey ??
|
|
526
|
-
const queryFn = ({ signal }) =>
|
|
478
|
+
const queryKey = queryOptions?.queryKey ?? getPluginsQueryKey();
|
|
479
|
+
const queryFn = ({ signal }) => plugins(requestOptions, signal);
|
|
527
480
|
return {
|
|
528
481
|
queryKey,
|
|
529
482
|
queryFn,
|
|
530
|
-
enabled: !!ocelId,
|
|
531
483
|
staleTime: 3e5,
|
|
532
484
|
...queryOptions
|
|
533
485
|
};
|
|
534
486
|
};
|
|
535
487
|
/**
|
|
536
|
-
* @summary Get
|
|
488
|
+
* @summary Get Plugins
|
|
537
489
|
*/
|
|
538
|
-
function
|
|
539
|
-
const queryOptions =
|
|
490
|
+
function usePlugins(options, queryClient) {
|
|
491
|
+
const queryOptions = getPluginsQueryOptions(options);
|
|
540
492
|
return {
|
|
541
493
|
...useQuery(queryOptions, queryClient),
|
|
542
494
|
queryKey: queryOptions.queryKey
|
|
543
495
|
};
|
|
544
496
|
}
|
|
545
497
|
/**
|
|
546
|
-
* @summary Get
|
|
498
|
+
* @summary Get Plugin
|
|
547
499
|
*/
|
|
548
|
-
const
|
|
500
|
+
const getPlugin = (pluginId, options, signal) => {
|
|
549
501
|
return customFetch$1({
|
|
550
|
-
url: `/api/external/
|
|
502
|
+
url: `/api/external/plugins/${pluginId}`,
|
|
551
503
|
method: "GET",
|
|
552
|
-
params,
|
|
553
504
|
...signal ? { signal } : {}
|
|
554
505
|
}, options);
|
|
555
506
|
};
|
|
556
|
-
const
|
|
557
|
-
return [`/api/external/
|
|
507
|
+
const getGetPluginQueryKey = (pluginId) => {
|
|
508
|
+
return [`/api/external/plugins/${pluginId}`];
|
|
558
509
|
};
|
|
559
|
-
const
|
|
510
|
+
const getGetPluginQueryOptions = (pluginId, options) => {
|
|
560
511
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
561
|
-
const queryKey = queryOptions?.queryKey ??
|
|
562
|
-
const queryFn = ({ signal }) =>
|
|
512
|
+
const queryKey = queryOptions?.queryKey ?? getGetPluginQueryKey(pluginId);
|
|
513
|
+
const queryFn = ({ signal }) => getPlugin(pluginId, requestOptions, signal);
|
|
563
514
|
return {
|
|
564
515
|
queryKey,
|
|
565
516
|
queryFn,
|
|
566
|
-
enabled: !!
|
|
517
|
+
enabled: !!pluginId,
|
|
567
518
|
staleTime: 3e5,
|
|
568
519
|
...queryOptions
|
|
569
520
|
};
|
|
570
521
|
};
|
|
571
522
|
/**
|
|
572
|
-
* @summary Get
|
|
523
|
+
* @summary Get Plugin
|
|
573
524
|
*/
|
|
574
|
-
function
|
|
575
|
-
const queryOptions =
|
|
525
|
+
function useGetPlugin(pluginId, options, queryClient) {
|
|
526
|
+
const queryOptions = getGetPluginQueryOptions(pluginId, options);
|
|
576
527
|
return {
|
|
577
528
|
...useQuery(queryOptions, queryClient),
|
|
578
529
|
queryKey: queryOptions.queryKey
|
|
579
530
|
};
|
|
580
531
|
}
|
|
581
532
|
/**
|
|
582
|
-
* @summary
|
|
533
|
+
* @summary Delete Plugin
|
|
583
534
|
*/
|
|
584
|
-
const
|
|
535
|
+
const deletePlugin = (pluginId, options, signal) => {
|
|
585
536
|
return customFetch$1({
|
|
586
|
-
url: `/api/external/
|
|
537
|
+
url: `/api/external/plugins/${pluginId}`,
|
|
538
|
+
method: "DELETE",
|
|
539
|
+
...signal ? { signal } : {}
|
|
540
|
+
}, options);
|
|
541
|
+
};
|
|
542
|
+
const getDeletePluginMutationOptions = (options) => {
|
|
543
|
+
const mutationKey = ["deletePlugin"];
|
|
544
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
545
|
+
...options,
|
|
546
|
+
mutation: {
|
|
547
|
+
...options.mutation,
|
|
548
|
+
mutationKey
|
|
549
|
+
}
|
|
550
|
+
} : {
|
|
551
|
+
mutation: { mutationKey },
|
|
552
|
+
request: void 0
|
|
553
|
+
};
|
|
554
|
+
const mutationFn = (props) => {
|
|
555
|
+
const { pluginId } = props ?? {};
|
|
556
|
+
return deletePlugin(pluginId, requestOptions);
|
|
557
|
+
};
|
|
558
|
+
return {
|
|
559
|
+
mutationFn,
|
|
560
|
+
...mutationOptions
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
/**
|
|
564
|
+
* @summary Delete Plugin
|
|
565
|
+
*/
|
|
566
|
+
const useDeletePlugin = (options, queryClient) => {
|
|
567
|
+
return useMutation(getDeletePluginMutationOptions(options), queryClient);
|
|
568
|
+
};
|
|
569
|
+
/**
|
|
570
|
+
* @summary Get Plugin Method
|
|
571
|
+
*/
|
|
572
|
+
const getPluginMethod = (pluginId, methodName, options, signal) => {
|
|
573
|
+
return customFetch$1({
|
|
574
|
+
url: `/api/external/plugins/${pluginId}/${methodName}`,
|
|
587
575
|
method: "GET",
|
|
588
|
-
params,
|
|
589
576
|
...signal ? { signal } : {}
|
|
590
577
|
}, options);
|
|
591
578
|
};
|
|
592
|
-
const
|
|
593
|
-
return [`/api/external/
|
|
579
|
+
const getGetPluginMethodQueryKey = (pluginId, methodName) => {
|
|
580
|
+
return [`/api/external/plugins/${pluginId}/${methodName}`];
|
|
594
581
|
};
|
|
595
|
-
const
|
|
582
|
+
const getGetPluginMethodQueryOptions = (pluginId, methodName, options) => {
|
|
596
583
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
597
|
-
const queryKey = queryOptions?.queryKey ??
|
|
598
|
-
const queryFn = ({ signal }) =>
|
|
584
|
+
const queryKey = queryOptions?.queryKey ?? getGetPluginMethodQueryKey(pluginId, methodName);
|
|
585
|
+
const queryFn = ({ signal }) => getPluginMethod(pluginId, methodName, requestOptions, signal);
|
|
599
586
|
return {
|
|
600
587
|
queryKey,
|
|
601
588
|
queryFn,
|
|
602
|
-
enabled: !!
|
|
589
|
+
enabled: !!(pluginId && methodName),
|
|
603
590
|
staleTime: 3e5,
|
|
604
591
|
...queryOptions
|
|
605
592
|
};
|
|
606
593
|
};
|
|
607
594
|
/**
|
|
608
|
-
* @summary Get
|
|
595
|
+
* @summary Get Plugin Method
|
|
609
596
|
*/
|
|
610
|
-
function
|
|
611
|
-
const queryOptions =
|
|
597
|
+
function useGetPluginMethod(pluginId, methodName, options, queryClient) {
|
|
598
|
+
const queryOptions = getGetPluginMethodQueryOptions(pluginId, methodName, options);
|
|
612
599
|
return {
|
|
613
600
|
...useQuery(queryOptions, queryClient),
|
|
614
601
|
queryKey: queryOptions.queryKey
|
|
615
602
|
};
|
|
616
603
|
}
|
|
617
604
|
/**
|
|
618
|
-
* @summary
|
|
605
|
+
* @summary Run Plugin
|
|
619
606
|
*/
|
|
620
|
-
const
|
|
607
|
+
const runPlugin = (pluginId, methodName, bodyRunPlugin, options, signal) => {
|
|
621
608
|
return customFetch$1({
|
|
622
|
-
url: `/api/external/
|
|
609
|
+
url: `/api/external/plugins/${pluginId}/${methodName}`,
|
|
610
|
+
method: "POST",
|
|
611
|
+
headers: { "Content-Type": "application/json" },
|
|
612
|
+
data: bodyRunPlugin,
|
|
613
|
+
...signal ? { signal } : {}
|
|
614
|
+
}, options);
|
|
615
|
+
};
|
|
616
|
+
const getRunPluginMutationOptions = (options) => {
|
|
617
|
+
const mutationKey = ["runPlugin"];
|
|
618
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
619
|
+
...options,
|
|
620
|
+
mutation: {
|
|
621
|
+
...options.mutation,
|
|
622
|
+
mutationKey
|
|
623
|
+
}
|
|
624
|
+
} : {
|
|
625
|
+
mutation: { mutationKey },
|
|
626
|
+
request: void 0
|
|
627
|
+
};
|
|
628
|
+
const mutationFn = (props) => {
|
|
629
|
+
const { pluginId, methodName, data } = props ?? {};
|
|
630
|
+
return runPlugin(pluginId, methodName, data, requestOptions);
|
|
631
|
+
};
|
|
632
|
+
return {
|
|
633
|
+
mutationFn,
|
|
634
|
+
...mutationOptions
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
/**
|
|
638
|
+
* @summary Run Plugin
|
|
639
|
+
*/
|
|
640
|
+
const useRunPlugin = (options, queryClient) => {
|
|
641
|
+
return useMutation(getRunPluginMutationOptions(options), queryClient);
|
|
642
|
+
};
|
|
643
|
+
/**
|
|
644
|
+
* @summary Get Plugin Result
|
|
645
|
+
*/
|
|
646
|
+
const pluginResult = (pluginId, methodName, taskId, options, signal) => {
|
|
647
|
+
return customFetch$1({
|
|
648
|
+
url: `/api/external/plugins/${pluginId}/${methodName}/result/${taskId}`,
|
|
623
649
|
method: "GET",
|
|
624
|
-
params,
|
|
625
650
|
...signal ? { signal } : {}
|
|
626
651
|
}, options);
|
|
627
652
|
};
|
|
628
|
-
const
|
|
629
|
-
return [`/api/external/
|
|
653
|
+
const getPluginResultQueryKey = (pluginId, methodName, taskId) => {
|
|
654
|
+
return [`/api/external/plugins/${pluginId}/${methodName}/result/${taskId}`];
|
|
630
655
|
};
|
|
631
|
-
const
|
|
656
|
+
const getPluginResultQueryOptions = (pluginId, methodName, taskId, options) => {
|
|
632
657
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
633
|
-
const queryKey = queryOptions?.queryKey ??
|
|
634
|
-
const queryFn = ({ signal }) =>
|
|
658
|
+
const queryKey = queryOptions?.queryKey ?? getPluginResultQueryKey(pluginId, methodName, taskId);
|
|
659
|
+
const queryFn = ({ signal }) => pluginResult(pluginId, methodName, taskId, requestOptions, signal);
|
|
635
660
|
return {
|
|
636
661
|
queryKey,
|
|
637
662
|
queryFn,
|
|
638
|
-
enabled: !!
|
|
663
|
+
enabled: !!(pluginId && methodName && taskId),
|
|
639
664
|
staleTime: 3e5,
|
|
640
665
|
...queryOptions
|
|
641
666
|
};
|
|
642
667
|
};
|
|
643
668
|
/**
|
|
644
|
-
* @summary Get
|
|
669
|
+
* @summary Get Plugin Result
|
|
645
670
|
*/
|
|
646
|
-
function
|
|
647
|
-
const queryOptions =
|
|
671
|
+
function usePluginResult(pluginId, methodName, taskId, options, queryClient) {
|
|
672
|
+
const queryOptions = getPluginResultQueryOptions(pluginId, methodName, taskId, options);
|
|
648
673
|
return {
|
|
649
674
|
...useQuery(queryOptions, queryClient),
|
|
650
675
|
queryKey: queryOptions.queryKey
|
|
651
676
|
};
|
|
652
677
|
}
|
|
653
678
|
/**
|
|
654
|
-
*
|
|
679
|
+
* Save the selected results into the session as OCELs / resources.
|
|
680
|
+
* @summary Save Plugin Results
|
|
655
681
|
*/
|
|
656
|
-
const
|
|
682
|
+
const savePluginResults = (pluginId, methodName, taskId, bodySavePluginResults, options, signal) => {
|
|
657
683
|
return customFetch$1({
|
|
658
|
-
url: `/api/external/
|
|
659
|
-
method: "
|
|
660
|
-
|
|
684
|
+
url: `/api/external/plugins/${pluginId}/${methodName}/result/${taskId}/save`,
|
|
685
|
+
method: "POST",
|
|
686
|
+
headers: { "Content-Type": "application/json" },
|
|
687
|
+
data: bodySavePluginResults,
|
|
661
688
|
...signal ? { signal } : {}
|
|
662
689
|
}, options);
|
|
663
690
|
};
|
|
664
|
-
const
|
|
665
|
-
|
|
691
|
+
const getSavePluginResultsMutationOptions = (options) => {
|
|
692
|
+
const mutationKey = ["savePluginResults"];
|
|
693
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
694
|
+
...options,
|
|
695
|
+
mutation: {
|
|
696
|
+
...options.mutation,
|
|
697
|
+
mutationKey
|
|
698
|
+
}
|
|
699
|
+
} : {
|
|
700
|
+
mutation: { mutationKey },
|
|
701
|
+
request: void 0
|
|
702
|
+
};
|
|
703
|
+
const mutationFn = (props) => {
|
|
704
|
+
const { pluginId, methodName, taskId, data } = props ?? {};
|
|
705
|
+
return savePluginResults(pluginId, methodName, taskId, data, requestOptions);
|
|
706
|
+
};
|
|
707
|
+
return {
|
|
708
|
+
mutationFn,
|
|
709
|
+
...mutationOptions
|
|
710
|
+
};
|
|
666
711
|
};
|
|
667
|
-
|
|
712
|
+
/**
|
|
713
|
+
* @summary Save Plugin Results
|
|
714
|
+
*/
|
|
715
|
+
const useSavePluginResults = (options, queryClient) => {
|
|
716
|
+
return useMutation(getSavePluginResultsMutationOptions(options), queryClient);
|
|
717
|
+
};
|
|
718
|
+
/**
|
|
719
|
+
* Bundle the selected results into a zip for download.
|
|
720
|
+
* @summary Download Plugin Results
|
|
721
|
+
*/
|
|
722
|
+
const downloadPluginResults = (pluginId, methodName, taskId, bodyDownloadPluginResults, options, signal) => {
|
|
723
|
+
return customFetch$1({
|
|
724
|
+
url: `/api/external/plugins/${pluginId}/${methodName}/result/${taskId}/download`,
|
|
725
|
+
method: "POST",
|
|
726
|
+
headers: { "Content-Type": "application/json" },
|
|
727
|
+
data: bodyDownloadPluginResults,
|
|
728
|
+
...signal ? { signal } : {}
|
|
729
|
+
}, options);
|
|
730
|
+
};
|
|
731
|
+
const getDownloadPluginResultsMutationOptions = (options) => {
|
|
732
|
+
const mutationKey = ["downloadPluginResults"];
|
|
733
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
734
|
+
...options,
|
|
735
|
+
mutation: {
|
|
736
|
+
...options.mutation,
|
|
737
|
+
mutationKey
|
|
738
|
+
}
|
|
739
|
+
} : {
|
|
740
|
+
mutation: { mutationKey },
|
|
741
|
+
request: void 0
|
|
742
|
+
};
|
|
743
|
+
const mutationFn = (props) => {
|
|
744
|
+
const { pluginId, methodName, taskId, data } = props ?? {};
|
|
745
|
+
return downloadPluginResults(pluginId, methodName, taskId, data, requestOptions);
|
|
746
|
+
};
|
|
747
|
+
return {
|
|
748
|
+
mutationFn,
|
|
749
|
+
...mutationOptions
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
/**
|
|
753
|
+
* @summary Download Plugin Results
|
|
754
|
+
*/
|
|
755
|
+
const useDownloadPluginResults = (options, queryClient) => {
|
|
756
|
+
return useMutation(getDownloadPluginResultsMutationOptions(options), queryClient);
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* @summary Get Computed
|
|
760
|
+
*/
|
|
761
|
+
const getComputedValues = (pluginId, methodName, provider, bodyGetComputedValues, options, signal) => {
|
|
762
|
+
return customFetch$1({
|
|
763
|
+
url: `/api/external/plugins/${pluginId}/${methodName}/computed/${provider}`,
|
|
764
|
+
method: "POST",
|
|
765
|
+
headers: { "Content-Type": "application/json" },
|
|
766
|
+
data: bodyGetComputedValues,
|
|
767
|
+
...signal ? { signal } : {}
|
|
768
|
+
}, options);
|
|
769
|
+
};
|
|
770
|
+
const getGetComputedValuesQueryKey = (pluginId, methodName, provider, bodyGetComputedValues) => {
|
|
771
|
+
return [`/api/external/plugins/${pluginId}/${methodName}/computed/${provider}`, bodyGetComputedValues];
|
|
772
|
+
};
|
|
773
|
+
const getGetComputedValuesQueryOptions = (pluginId, methodName, provider, bodyGetComputedValues, options) => {
|
|
668
774
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
669
|
-
const queryKey = queryOptions?.queryKey ??
|
|
670
|
-
const queryFn = ({ signal }) =>
|
|
775
|
+
const queryKey = queryOptions?.queryKey ?? getGetComputedValuesQueryKey(pluginId, methodName, provider, bodyGetComputedValues);
|
|
776
|
+
const queryFn = ({ signal }) => getComputedValues(pluginId, methodName, provider, bodyGetComputedValues, requestOptions, signal);
|
|
671
777
|
return {
|
|
672
778
|
queryKey,
|
|
673
779
|
queryFn,
|
|
674
|
-
enabled: !!
|
|
780
|
+
enabled: !!(pluginId && methodName && provider),
|
|
675
781
|
staleTime: 3e5,
|
|
676
782
|
...queryOptions
|
|
677
783
|
};
|
|
678
784
|
};
|
|
679
785
|
/**
|
|
680
|
-
* @summary Get
|
|
786
|
+
* @summary Get Computed
|
|
681
787
|
*/
|
|
682
|
-
function
|
|
683
|
-
const queryOptions =
|
|
788
|
+
function useGetComputedValues(pluginId, methodName, provider, bodyGetComputedValues, options, queryClient) {
|
|
789
|
+
const queryOptions = getGetComputedValuesQueryOptions(pluginId, methodName, provider, bodyGetComputedValues, options);
|
|
684
790
|
return {
|
|
685
791
|
...useQuery(queryOptions, queryClient),
|
|
686
792
|
queryKey: queryOptions.queryKey
|
|
687
793
|
};
|
|
688
794
|
}
|
|
689
795
|
/**
|
|
690
|
-
* @summary Get
|
|
796
|
+
* @summary Get Resources
|
|
691
797
|
*/
|
|
692
|
-
const
|
|
798
|
+
const resources = (params, options, signal) => {
|
|
693
799
|
return customFetch$1({
|
|
694
|
-
url: `/api/external/
|
|
800
|
+
url: `/api/external/resources`,
|
|
695
801
|
method: "GET",
|
|
696
802
|
params,
|
|
697
803
|
...signal ? { signal } : {}
|
|
698
804
|
}, options);
|
|
699
805
|
};
|
|
700
|
-
const
|
|
701
|
-
return [`/api/external/
|
|
806
|
+
const getResourcesQueryKey = (params) => {
|
|
807
|
+
return [`/api/external/resources`, ...params ? [params] : []];
|
|
702
808
|
};
|
|
703
|
-
const
|
|
809
|
+
const getResourcesQueryOptions = (params, options) => {
|
|
704
810
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
705
|
-
const queryKey = queryOptions?.queryKey ??
|
|
706
|
-
const queryFn = ({ signal }) =>
|
|
811
|
+
const queryKey = queryOptions?.queryKey ?? getResourcesQueryKey(params);
|
|
812
|
+
const queryFn = ({ signal }) => resources(params, requestOptions, signal);
|
|
707
813
|
return {
|
|
708
814
|
queryKey,
|
|
709
815
|
queryFn,
|
|
710
|
-
enabled: !!ocelId,
|
|
711
816
|
staleTime: 3e5,
|
|
712
817
|
...queryOptions
|
|
713
818
|
};
|
|
714
819
|
};
|
|
715
820
|
/**
|
|
716
|
-
* @summary Get
|
|
821
|
+
* @summary Get Resources
|
|
717
822
|
*/
|
|
718
|
-
function
|
|
719
|
-
const queryOptions =
|
|
823
|
+
function useResources(params, options, queryClient) {
|
|
824
|
+
const queryOptions = getResourcesQueryOptions(params, options);
|
|
720
825
|
return {
|
|
721
826
|
...useQuery(queryOptions, queryClient),
|
|
722
827
|
queryKey: queryOptions.queryKey
|
|
723
828
|
};
|
|
724
829
|
}
|
|
725
830
|
/**
|
|
726
|
-
* @summary
|
|
831
|
+
* @summary Upload Resource
|
|
727
832
|
*/
|
|
728
|
-
const
|
|
833
|
+
const uploadResource = (bodyUploadResource, options, signal) => {
|
|
834
|
+
const formData = new FormData();
|
|
835
|
+
formData.append(`file`, bodyUploadResource.file);
|
|
836
|
+
return customFetch$1({
|
|
837
|
+
url: `/api/external/resources`,
|
|
838
|
+
method: "POST",
|
|
839
|
+
data: formData,
|
|
840
|
+
...signal ? { signal } : {}
|
|
841
|
+
}, options);
|
|
842
|
+
};
|
|
843
|
+
const getUploadResourceMutationOptions = (options) => {
|
|
844
|
+
const mutationKey = ["uploadResource"];
|
|
845
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
846
|
+
...options,
|
|
847
|
+
mutation: {
|
|
848
|
+
...options.mutation,
|
|
849
|
+
mutationKey
|
|
850
|
+
}
|
|
851
|
+
} : {
|
|
852
|
+
mutation: { mutationKey },
|
|
853
|
+
request: void 0
|
|
854
|
+
};
|
|
855
|
+
const mutationFn = (props) => {
|
|
856
|
+
const { data } = props ?? {};
|
|
857
|
+
return uploadResource(data, requestOptions);
|
|
858
|
+
};
|
|
859
|
+
return {
|
|
860
|
+
mutationFn,
|
|
861
|
+
...mutationOptions
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
/**
|
|
865
|
+
* @summary Upload Resource
|
|
866
|
+
*/
|
|
867
|
+
const useUploadResource = (options, queryClient) => {
|
|
868
|
+
return useMutation(getUploadResourceMutationOptions(options), queryClient);
|
|
869
|
+
};
|
|
870
|
+
/**
|
|
871
|
+
* @summary Get Resource Meta
|
|
872
|
+
*/
|
|
873
|
+
const getResourceMeta = (options, signal) => {
|
|
729
874
|
return customFetch$1({
|
|
730
|
-
url: `/api/external/
|
|
875
|
+
url: `/api/external/resources/meta`,
|
|
731
876
|
method: "GET",
|
|
732
|
-
params,
|
|
733
877
|
...signal ? { signal } : {}
|
|
734
878
|
}, options);
|
|
735
879
|
};
|
|
736
|
-
const
|
|
737
|
-
return [`/api/external/
|
|
880
|
+
const getGetResourceMetaQueryKey = () => {
|
|
881
|
+
return [`/api/external/resources/meta`];
|
|
738
882
|
};
|
|
739
|
-
const
|
|
883
|
+
const getGetResourceMetaQueryOptions = (options) => {
|
|
740
884
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
741
|
-
const queryKey = queryOptions?.queryKey ??
|
|
742
|
-
const queryFn = ({ signal }) =>
|
|
885
|
+
const queryKey = queryOptions?.queryKey ?? getGetResourceMetaQueryKey();
|
|
886
|
+
const queryFn = ({ signal }) => getResourceMeta(requestOptions, signal);
|
|
743
887
|
return {
|
|
744
888
|
queryKey,
|
|
745
889
|
queryFn,
|
|
746
|
-
enabled: !!ocelId,
|
|
747
890
|
staleTime: 3e5,
|
|
748
891
|
...queryOptions
|
|
749
892
|
};
|
|
750
893
|
};
|
|
751
894
|
/**
|
|
752
|
-
* @summary Get
|
|
895
|
+
* @summary Get Resource Meta
|
|
753
896
|
*/
|
|
754
|
-
function
|
|
755
|
-
const queryOptions =
|
|
897
|
+
function useGetResourceMeta(options, queryClient) {
|
|
898
|
+
const queryOptions = getGetResourceMetaQueryOptions(options);
|
|
756
899
|
return {
|
|
757
900
|
...useQuery(queryOptions, queryClient),
|
|
758
901
|
queryKey: queryOptions.queryKey
|
|
759
902
|
};
|
|
760
903
|
}
|
|
761
904
|
/**
|
|
762
|
-
* @summary
|
|
905
|
+
* @summary Download Resource
|
|
763
906
|
*/
|
|
764
|
-
const
|
|
907
|
+
const downloadResource = (resourceId, options, signal) => {
|
|
765
908
|
return customFetch$1({
|
|
766
|
-
url: `/api/external/
|
|
909
|
+
url: `/api/external/resources/resource/${resourceId}/download`,
|
|
767
910
|
method: "GET",
|
|
768
|
-
params,
|
|
769
911
|
...signal ? { signal } : {}
|
|
770
912
|
}, options);
|
|
771
913
|
};
|
|
772
|
-
const
|
|
773
|
-
return [`/api/external/
|
|
914
|
+
const getDownloadResourceQueryKey = (resourceId) => {
|
|
915
|
+
return [`/api/external/resources/resource/${resourceId}/download`];
|
|
774
916
|
};
|
|
775
|
-
const
|
|
917
|
+
const getDownloadResourceQueryOptions = (resourceId, options) => {
|
|
776
918
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
777
|
-
const queryKey = queryOptions?.queryKey ??
|
|
778
|
-
const queryFn = ({ signal }) =>
|
|
919
|
+
const queryKey = queryOptions?.queryKey ?? getDownloadResourceQueryKey(resourceId);
|
|
920
|
+
const queryFn = ({ signal }) => downloadResource(resourceId, requestOptions, signal);
|
|
779
921
|
return {
|
|
780
922
|
queryKey,
|
|
781
923
|
queryFn,
|
|
782
|
-
enabled: !!
|
|
924
|
+
enabled: !!resourceId,
|
|
783
925
|
staleTime: 3e5,
|
|
784
926
|
...queryOptions
|
|
785
927
|
};
|
|
786
928
|
};
|
|
787
929
|
/**
|
|
788
|
-
* @summary
|
|
789
|
-
*/
|
|
790
|
-
function
|
|
791
|
-
const queryOptions =
|
|
930
|
+
* @summary Download Resource
|
|
931
|
+
*/
|
|
932
|
+
function useDownloadResource(resourceId, options, queryClient) {
|
|
933
|
+
const queryOptions = getDownloadResourceQueryOptions(resourceId, options);
|
|
792
934
|
return {
|
|
793
935
|
...useQuery(queryOptions, queryClient),
|
|
794
936
|
queryKey: queryOptions.queryKey
|
|
795
937
|
};
|
|
796
938
|
}
|
|
797
939
|
/**
|
|
798
|
-
* @summary
|
|
940
|
+
* @summary Download Resource As Pnml
|
|
799
941
|
*/
|
|
800
|
-
const
|
|
942
|
+
const downloadResourceAsPnml = (resourceId, options, signal) => {
|
|
801
943
|
return customFetch$1({
|
|
802
|
-
url: `/api/external/
|
|
944
|
+
url: `/api/external/resources/resource/${resourceId}/download/pnml`,
|
|
803
945
|
method: "GET",
|
|
804
|
-
params,
|
|
805
946
|
...signal ? { signal } : {}
|
|
806
947
|
}, options);
|
|
807
948
|
};
|
|
808
|
-
const
|
|
809
|
-
return [`/api/external/
|
|
949
|
+
const getDownloadResourceAsPnmlQueryKey = (resourceId) => {
|
|
950
|
+
return [`/api/external/resources/resource/${resourceId}/download/pnml`];
|
|
810
951
|
};
|
|
811
|
-
const
|
|
952
|
+
const getDownloadResourceAsPnmlQueryOptions = (resourceId, options) => {
|
|
812
953
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
813
|
-
const queryKey = queryOptions?.queryKey ??
|
|
814
|
-
const queryFn = ({ signal }) =>
|
|
954
|
+
const queryKey = queryOptions?.queryKey ?? getDownloadResourceAsPnmlQueryKey(resourceId);
|
|
955
|
+
const queryFn = ({ signal }) => downloadResourceAsPnml(resourceId, requestOptions, signal);
|
|
815
956
|
return {
|
|
816
957
|
queryKey,
|
|
817
958
|
queryFn,
|
|
818
|
-
enabled: !!
|
|
959
|
+
enabled: !!resourceId,
|
|
819
960
|
staleTime: 3e5,
|
|
820
961
|
...queryOptions
|
|
821
962
|
};
|
|
822
963
|
};
|
|
823
964
|
/**
|
|
824
|
-
* @summary
|
|
965
|
+
* @summary Download Resource As Pnml
|
|
825
966
|
*/
|
|
826
|
-
function
|
|
827
|
-
const queryOptions =
|
|
967
|
+
function useDownloadResourceAsPnml(resourceId, options, queryClient) {
|
|
968
|
+
const queryOptions = getDownloadResourceAsPnmlQueryOptions(resourceId, options);
|
|
828
969
|
return {
|
|
829
970
|
...useQuery(queryOptions, queryClient),
|
|
830
971
|
queryKey: queryOptions.queryKey
|
|
831
972
|
};
|
|
832
973
|
}
|
|
833
974
|
/**
|
|
834
|
-
* @summary Get
|
|
975
|
+
* @summary Get Resource
|
|
835
976
|
*/
|
|
836
|
-
const
|
|
977
|
+
const resource = (resourceId, options, signal) => {
|
|
837
978
|
return customFetch$1({
|
|
838
|
-
url: `/api/external/
|
|
979
|
+
url: `/api/external/resources/resource/${resourceId}`,
|
|
839
980
|
method: "GET",
|
|
840
|
-
params,
|
|
841
981
|
...signal ? { signal } : {}
|
|
842
982
|
}, options);
|
|
843
983
|
};
|
|
844
|
-
const
|
|
845
|
-
return [`/api/external/
|
|
984
|
+
const getResourceQueryKey = (resourceId) => {
|
|
985
|
+
return [`/api/external/resources/resource/${resourceId}`];
|
|
846
986
|
};
|
|
847
|
-
const
|
|
987
|
+
const getResourceQueryOptions = (resourceId, options) => {
|
|
848
988
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
849
|
-
const queryKey = queryOptions?.queryKey ??
|
|
850
|
-
const queryFn = ({ signal }) =>
|
|
989
|
+
const queryKey = queryOptions?.queryKey ?? getResourceQueryKey(resourceId);
|
|
990
|
+
const queryFn = ({ signal }) => resource(resourceId, requestOptions, signal);
|
|
851
991
|
return {
|
|
852
992
|
queryKey,
|
|
853
993
|
queryFn,
|
|
854
|
-
enabled: !!
|
|
994
|
+
enabled: !!resourceId,
|
|
855
995
|
staleTime: 3e5,
|
|
856
996
|
...queryOptions
|
|
857
997
|
};
|
|
858
998
|
};
|
|
859
999
|
/**
|
|
860
|
-
* @summary Get
|
|
1000
|
+
* @summary Get Resource
|
|
861
1001
|
*/
|
|
862
|
-
function
|
|
863
|
-
const queryOptions =
|
|
1002
|
+
function useResource(resourceId, options, queryClient) {
|
|
1003
|
+
const queryOptions = getResourceQueryOptions(resourceId, options);
|
|
864
1004
|
return {
|
|
865
1005
|
...useQuery(queryOptions, queryClient),
|
|
866
1006
|
queryKey: queryOptions.queryKey
|
|
867
1007
|
};
|
|
868
1008
|
}
|
|
869
1009
|
/**
|
|
870
|
-
* @summary
|
|
1010
|
+
* @summary Delete Resource
|
|
871
1011
|
*/
|
|
872
|
-
const
|
|
1012
|
+
const deleteResource = (resourceId, options, signal) => {
|
|
873
1013
|
return customFetch$1({
|
|
874
|
-
url: `/api/external/
|
|
875
|
-
method: "
|
|
876
|
-
params,
|
|
1014
|
+
url: `/api/external/resources/resource/${resourceId}`,
|
|
1015
|
+
method: "DELETE",
|
|
877
1016
|
...signal ? { signal } : {}
|
|
878
1017
|
}, options);
|
|
879
1018
|
};
|
|
880
|
-
const
|
|
881
|
-
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
1019
|
+
const getDeleteResourceMutationOptions = (options) => {
|
|
1020
|
+
const mutationKey = ["deleteResource"];
|
|
1021
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1022
|
+
...options,
|
|
1023
|
+
mutation: {
|
|
1024
|
+
...options.mutation,
|
|
1025
|
+
mutationKey
|
|
1026
|
+
}
|
|
1027
|
+
} : {
|
|
1028
|
+
mutation: { mutationKey },
|
|
1029
|
+
request: void 0
|
|
1030
|
+
};
|
|
1031
|
+
const mutationFn = (props) => {
|
|
1032
|
+
const { resourceId } = props ?? {};
|
|
1033
|
+
return deleteResource(resourceId, requestOptions);
|
|
1034
|
+
};
|
|
887
1035
|
return {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
enabled: !!ocelId,
|
|
891
|
-
staleTime: 3e5,
|
|
892
|
-
...queryOptions
|
|
1036
|
+
mutationFn,
|
|
1037
|
+
...mutationOptions
|
|
893
1038
|
};
|
|
894
1039
|
};
|
|
895
1040
|
/**
|
|
896
|
-
* @summary
|
|
1041
|
+
* @summary Delete Resource
|
|
897
1042
|
*/
|
|
898
|
-
|
|
899
|
-
|
|
1043
|
+
const useDeleteResource = (options, queryClient) => {
|
|
1044
|
+
return useMutation(getDeleteResourceMutationOptions(options), queryClient);
|
|
1045
|
+
};
|
|
1046
|
+
/**
|
|
1047
|
+
* @summary Rename Resource
|
|
1048
|
+
*/
|
|
1049
|
+
const renameResource = (resourceId, params, options, signal) => {
|
|
1050
|
+
return customFetch$1({
|
|
1051
|
+
url: `/api/external/resources/resource/${resourceId}`,
|
|
1052
|
+
method: "POST",
|
|
1053
|
+
params,
|
|
1054
|
+
...signal ? { signal } : {}
|
|
1055
|
+
}, options);
|
|
1056
|
+
};
|
|
1057
|
+
const getRenameResourceMutationOptions = (options) => {
|
|
1058
|
+
const mutationKey = ["renameResource"];
|
|
1059
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1060
|
+
...options,
|
|
1061
|
+
mutation: {
|
|
1062
|
+
...options.mutation,
|
|
1063
|
+
mutationKey
|
|
1064
|
+
}
|
|
1065
|
+
} : {
|
|
1066
|
+
mutation: { mutationKey },
|
|
1067
|
+
request: void 0
|
|
1068
|
+
};
|
|
1069
|
+
const mutationFn = (props) => {
|
|
1070
|
+
const { resourceId, params } = props ?? {};
|
|
1071
|
+
return renameResource(resourceId, params, requestOptions);
|
|
1072
|
+
};
|
|
900
1073
|
return {
|
|
901
|
-
|
|
902
|
-
|
|
1074
|
+
mutationFn,
|
|
1075
|
+
...mutationOptions
|
|
903
1076
|
};
|
|
904
|
-
}
|
|
1077
|
+
};
|
|
905
1078
|
/**
|
|
906
|
-
* @summary
|
|
1079
|
+
* @summary Rename Resource
|
|
907
1080
|
*/
|
|
908
|
-
const
|
|
1081
|
+
const useRenameResource = (options, queryClient) => {
|
|
1082
|
+
return useMutation(getRenameResourceMutationOptions(options), queryClient);
|
|
1083
|
+
};
|
|
1084
|
+
//#endregion
|
|
1085
|
+
//#region src/api/ocel/index.ts
|
|
1086
|
+
/**
|
|
1087
|
+
* Generated by orval v8.5.2 🍺
|
|
1088
|
+
* Do not edit manually.
|
|
1089
|
+
* OCEL
|
|
1090
|
+
* OpenAPI spec version: 1.0
|
|
1091
|
+
*/
|
|
1092
|
+
const ValueType = {
|
|
1093
|
+
empty: "empty",
|
|
1094
|
+
string: "string",
|
|
1095
|
+
bool: "bool",
|
|
1096
|
+
int: "int",
|
|
1097
|
+
float: "float",
|
|
1098
|
+
date: "date"
|
|
1099
|
+
};
|
|
1100
|
+
const AggregatedAttributesEntityType = {
|
|
1101
|
+
events: "events",
|
|
1102
|
+
objects: "objects"
|
|
1103
|
+
};
|
|
1104
|
+
const E2oDirection = {
|
|
1105
|
+
source: "source",
|
|
1106
|
+
target: "target"
|
|
1107
|
+
};
|
|
1108
|
+
const O2oDirection = {
|
|
1109
|
+
source: "source",
|
|
1110
|
+
target: "target"
|
|
1111
|
+
};
|
|
1112
|
+
const E2oCombinationsDirection = {
|
|
1113
|
+
source: "source",
|
|
1114
|
+
target: "target"
|
|
1115
|
+
};
|
|
1116
|
+
const O2oCombinationsDirection = {
|
|
1117
|
+
source: "source",
|
|
1118
|
+
target: "target"
|
|
1119
|
+
};
|
|
1120
|
+
const DownloadOCELExt = {
|
|
1121
|
+
xml: ".xml",
|
|
1122
|
+
json: ".json",
|
|
1123
|
+
sqlite: ".sqlite"
|
|
1124
|
+
};
|
|
1125
|
+
/**
|
|
1126
|
+
* Returns metadata for all uploaded OCELs along with any OCEL files currently being imported.
|
|
1127
|
+
* @summary List uploaded and uploading OCELs
|
|
1128
|
+
*/
|
|
1129
|
+
const getOcels = (params, options, signal) => {
|
|
909
1130
|
return customFetch$1({
|
|
910
|
-
url: `/api/external/
|
|
1131
|
+
url: `/api/external/modules/ocel/v1/ocels`,
|
|
911
1132
|
method: "GET",
|
|
912
1133
|
params,
|
|
913
1134
|
...signal ? { signal } : {}
|
|
914
1135
|
}, options);
|
|
915
1136
|
};
|
|
916
|
-
const
|
|
917
|
-
return [`/api/external/
|
|
1137
|
+
const getGetOcelsQueryKey = (params) => {
|
|
1138
|
+
return [`/api/external/modules/ocel/v1/ocels`, ...params ? [params] : []];
|
|
918
1139
|
};
|
|
919
|
-
const
|
|
1140
|
+
const getGetOcelsQueryOptions = (params, options) => {
|
|
920
1141
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
921
|
-
const queryKey = queryOptions?.queryKey ??
|
|
922
|
-
const queryFn = ({ signal }) =>
|
|
1142
|
+
const queryKey = queryOptions?.queryKey ?? getGetOcelsQueryKey(params);
|
|
1143
|
+
const queryFn = ({ signal }) => getOcels(params, requestOptions, signal);
|
|
923
1144
|
return {
|
|
924
1145
|
queryKey,
|
|
925
1146
|
queryFn,
|
|
926
|
-
enabled: !!ocelId,
|
|
927
1147
|
staleTime: 3e5,
|
|
928
1148
|
...queryOptions
|
|
929
1149
|
};
|
|
930
1150
|
};
|
|
931
1151
|
/**
|
|
932
|
-
* @summary
|
|
1152
|
+
* @summary List uploaded and uploading OCELs
|
|
933
1153
|
*/
|
|
934
|
-
function
|
|
935
|
-
const queryOptions =
|
|
1154
|
+
function useGetOcels(params, options, queryClient) {
|
|
1155
|
+
const queryOptions = getGetOcelsQueryOptions(params, options);
|
|
936
1156
|
return {
|
|
937
1157
|
...useQuery(queryOptions, queryClient),
|
|
938
1158
|
queryKey: queryOptions.queryKey
|
|
939
1159
|
};
|
|
940
1160
|
}
|
|
941
1161
|
/**
|
|
942
|
-
* @summary Get
|
|
1162
|
+
* @summary Get default OCEL metadata
|
|
943
1163
|
*/
|
|
944
|
-
const
|
|
1164
|
+
const getDefaultOcel = (params, options, signal) => {
|
|
945
1165
|
return customFetch$1({
|
|
946
|
-
url: `/api/external/
|
|
1166
|
+
url: `/api/external/modules/ocel/v1/default`,
|
|
947
1167
|
method: "GET",
|
|
948
1168
|
params,
|
|
949
1169
|
...signal ? { signal } : {}
|
|
950
1170
|
}, options);
|
|
951
1171
|
};
|
|
952
|
-
const
|
|
953
|
-
return [`/api/external/
|
|
1172
|
+
const getGetDefaultOcelQueryKey = (params) => {
|
|
1173
|
+
return [`/api/external/modules/ocel/v1/default`, ...params ? [params] : []];
|
|
954
1174
|
};
|
|
955
|
-
const
|
|
1175
|
+
const getGetDefaultOcelQueryOptions = (params, options) => {
|
|
956
1176
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
957
|
-
const queryKey = queryOptions?.queryKey ??
|
|
958
|
-
const queryFn = ({ signal }) =>
|
|
1177
|
+
const queryKey = queryOptions?.queryKey ?? getGetDefaultOcelQueryKey(params);
|
|
1178
|
+
const queryFn = ({ signal }) => getDefaultOcel(params, requestOptions, signal);
|
|
959
1179
|
return {
|
|
960
1180
|
queryKey,
|
|
961
1181
|
queryFn,
|
|
962
|
-
enabled: !!ocelId,
|
|
963
1182
|
staleTime: 3e5,
|
|
964
1183
|
...queryOptions
|
|
965
1184
|
};
|
|
966
1185
|
};
|
|
967
1186
|
/**
|
|
968
|
-
* @summary Get
|
|
1187
|
+
* @summary Get default OCEL metadata
|
|
969
1188
|
*/
|
|
970
|
-
function
|
|
971
|
-
const queryOptions =
|
|
1189
|
+
function useGetDefaultOcel(params, options, queryClient) {
|
|
1190
|
+
const queryOptions = getGetDefaultOcelQueryOptions(params, options);
|
|
972
1191
|
return {
|
|
973
1192
|
...useQuery(queryOptions, queryClient),
|
|
974
1193
|
queryKey: queryOptions.queryKey
|
|
975
1194
|
};
|
|
976
1195
|
}
|
|
977
1196
|
/**
|
|
978
|
-
* @summary
|
|
1197
|
+
* @summary Import default OCEL
|
|
979
1198
|
*/
|
|
980
|
-
const
|
|
1199
|
+
const importDefaultOcel = (params, options, signal) => {
|
|
981
1200
|
return customFetch$1({
|
|
982
|
-
url: `/api/external/
|
|
983
|
-
method: "
|
|
1201
|
+
url: `/api/external/modules/ocel/v1/default`,
|
|
1202
|
+
method: "POST",
|
|
984
1203
|
params,
|
|
985
1204
|
...signal ? { signal } : {}
|
|
986
1205
|
}, options);
|
|
987
1206
|
};
|
|
988
|
-
const
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1207
|
+
const getImportDefaultOcelMutationOptions = (options) => {
|
|
1208
|
+
const mutationKey = ["importDefaultOcel"];
|
|
1209
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1210
|
+
...options,
|
|
1211
|
+
mutation: {
|
|
1212
|
+
...options.mutation,
|
|
1213
|
+
mutationKey
|
|
1214
|
+
}
|
|
1215
|
+
} : {
|
|
1216
|
+
mutation: { mutationKey },
|
|
1217
|
+
request: void 0
|
|
1218
|
+
};
|
|
1219
|
+
const mutationFn = (props) => {
|
|
1220
|
+
const { params } = props ?? {};
|
|
1221
|
+
return importDefaultOcel(params, requestOptions);
|
|
1222
|
+
};
|
|
995
1223
|
return {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
enabled: !!ocelId,
|
|
999
|
-
staleTime: 3e5,
|
|
1000
|
-
...queryOptions
|
|
1224
|
+
mutationFn,
|
|
1225
|
+
...mutationOptions
|
|
1001
1226
|
};
|
|
1002
1227
|
};
|
|
1003
1228
|
/**
|
|
1004
|
-
* @summary
|
|
1229
|
+
* @summary Import default OCEL
|
|
1005
1230
|
*/
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
...useQuery(queryOptions, queryClient),
|
|
1010
|
-
queryKey: queryOptions.queryKey
|
|
1011
|
-
};
|
|
1012
|
-
}
|
|
1231
|
+
const useImportDefaultOcel = (options, queryClient) => {
|
|
1232
|
+
return useMutation(getImportDefaultOcelMutationOptions(options), queryClient);
|
|
1233
|
+
};
|
|
1013
1234
|
/**
|
|
1014
|
-
* @summary
|
|
1235
|
+
* @summary Get Extension Meta
|
|
1015
1236
|
*/
|
|
1016
|
-
const
|
|
1237
|
+
const getExtensionMeta = (options, signal) => {
|
|
1017
1238
|
return customFetch$1({
|
|
1018
|
-
url: `/api/external/
|
|
1239
|
+
url: `/api/external/modules/ocel/v1/extension/meta`,
|
|
1019
1240
|
method: "GET",
|
|
1020
|
-
params,
|
|
1021
1241
|
...signal ? { signal } : {}
|
|
1022
1242
|
}, options);
|
|
1023
1243
|
};
|
|
1024
|
-
const
|
|
1025
|
-
return [`/api/external/
|
|
1244
|
+
const getGetExtensionMetaQueryKey = () => {
|
|
1245
|
+
return [`/api/external/modules/ocel/v1/extension/meta`];
|
|
1026
1246
|
};
|
|
1027
|
-
const
|
|
1247
|
+
const getGetExtensionMetaQueryOptions = (options) => {
|
|
1028
1248
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1029
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1030
|
-
const queryFn = ({ signal }) =>
|
|
1249
|
+
const queryKey = queryOptions?.queryKey ?? getGetExtensionMetaQueryKey();
|
|
1250
|
+
const queryFn = ({ signal }) => getExtensionMeta(requestOptions, signal);
|
|
1031
1251
|
return {
|
|
1032
1252
|
queryKey,
|
|
1033
1253
|
queryFn,
|
|
1034
|
-
enabled: !!ocelId,
|
|
1035
1254
|
staleTime: 3e5,
|
|
1036
1255
|
...queryOptions
|
|
1037
1256
|
};
|
|
1038
1257
|
};
|
|
1039
1258
|
/**
|
|
1040
|
-
* @summary
|
|
1259
|
+
* @summary Get Extension Meta
|
|
1041
1260
|
*/
|
|
1042
|
-
function
|
|
1043
|
-
const queryOptions =
|
|
1261
|
+
function useGetExtensionMeta(options, queryClient) {
|
|
1262
|
+
const queryOptions = getGetExtensionMetaQueryOptions(options);
|
|
1044
1263
|
return {
|
|
1045
1264
|
...useQuery(queryOptions, queryClient),
|
|
1046
1265
|
queryKey: queryOptions.queryKey
|
|
1047
1266
|
};
|
|
1048
1267
|
}
|
|
1049
1268
|
/**
|
|
1050
|
-
* @summary
|
|
1269
|
+
* @summary Get general information about a OCEL
|
|
1051
1270
|
*/
|
|
1052
|
-
const
|
|
1271
|
+
const getOcel = (ocelId, options, signal) => {
|
|
1053
1272
|
return customFetch$1({
|
|
1054
|
-
url: `/api/external/
|
|
1273
|
+
url: `/api/external/modules/ocel/v1/${ocelId}`,
|
|
1055
1274
|
method: "GET",
|
|
1056
|
-
params,
|
|
1057
1275
|
...signal ? { signal } : {}
|
|
1058
1276
|
}, options);
|
|
1059
1277
|
};
|
|
1060
|
-
const
|
|
1061
|
-
return [`/api/external/
|
|
1278
|
+
const getGetOcelQueryKey = (ocelId) => {
|
|
1279
|
+
return [`/api/external/modules/ocel/v1/${ocelId}`];
|
|
1062
1280
|
};
|
|
1063
|
-
const
|
|
1281
|
+
const getGetOcelQueryOptions = (ocelId, options) => {
|
|
1064
1282
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1065
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1066
|
-
const queryFn = ({ signal }) =>
|
|
1283
|
+
const queryKey = queryOptions?.queryKey ?? getGetOcelQueryKey(ocelId);
|
|
1284
|
+
const queryFn = ({ signal }) => getOcel(ocelId, requestOptions, signal);
|
|
1067
1285
|
return {
|
|
1068
1286
|
queryKey,
|
|
1069
1287
|
queryFn,
|
|
@@ -1073,29 +1291,28 @@ const getDownloadFlatLogQueryOptions = (ocelId, params, options) => {
|
|
|
1073
1291
|
};
|
|
1074
1292
|
};
|
|
1075
1293
|
/**
|
|
1076
|
-
* @summary
|
|
1294
|
+
* @summary Get general information about a OCEL
|
|
1077
1295
|
*/
|
|
1078
|
-
function
|
|
1079
|
-
const queryOptions =
|
|
1296
|
+
function useGetOcel(ocelId, options, queryClient) {
|
|
1297
|
+
const queryOptions = getGetOcelQueryOptions(ocelId, options);
|
|
1080
1298
|
return {
|
|
1081
1299
|
...useQuery(queryOptions, queryClient),
|
|
1082
1300
|
queryKey: queryOptions.queryKey
|
|
1083
1301
|
};
|
|
1084
1302
|
}
|
|
1085
1303
|
/**
|
|
1086
|
-
*
|
|
1304
|
+
* Deletes the uploaded OCEL with the given `ocel_id`.
|
|
1305
|
+
* @summary Delete an uploaded OCEL
|
|
1087
1306
|
*/
|
|
1088
|
-
const
|
|
1307
|
+
const deleteOcel = (ocelId, options, signal) => {
|
|
1089
1308
|
return customFetch$1({
|
|
1090
|
-
url: `/api/external/
|
|
1309
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/delete`,
|
|
1091
1310
|
method: "POST",
|
|
1092
|
-
headers: { "Content-Type": "application/json" },
|
|
1093
|
-
data: createDiscoveryTaskBody,
|
|
1094
1311
|
...signal ? { signal } : {}
|
|
1095
1312
|
}, options);
|
|
1096
1313
|
};
|
|
1097
|
-
const
|
|
1098
|
-
const mutationKey = ["
|
|
1314
|
+
const getDeleteOcelMutationOptions = (options) => {
|
|
1315
|
+
const mutationKey = ["deleteOcel"];
|
|
1099
1316
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1100
1317
|
...options,
|
|
1101
1318
|
mutation: {
|
|
@@ -1107,8 +1324,8 @@ const getCreateDiscoveryTaskMutationOptions = (options) => {
|
|
|
1107
1324
|
request: void 0
|
|
1108
1325
|
};
|
|
1109
1326
|
const mutationFn = (props) => {
|
|
1110
|
-
const { ocelId
|
|
1111
|
-
return
|
|
1327
|
+
const { ocelId } = props ?? {};
|
|
1328
|
+
return deleteOcel(ocelId, requestOptions);
|
|
1112
1329
|
};
|
|
1113
1330
|
return {
|
|
1114
1331
|
mutationFn,
|
|
@@ -1116,841 +1333,771 @@ const getCreateDiscoveryTaskMutationOptions = (options) => {
|
|
|
1116
1333
|
};
|
|
1117
1334
|
};
|
|
1118
1335
|
/**
|
|
1119
|
-
* @summary
|
|
1336
|
+
* @summary Delete an uploaded OCEL
|
|
1120
1337
|
*/
|
|
1121
|
-
const
|
|
1122
|
-
return useMutation(
|
|
1338
|
+
const useDeleteOcel = (options, queryClient) => {
|
|
1339
|
+
return useMutation(getDeleteOcelMutationOptions(options), queryClient);
|
|
1123
1340
|
};
|
|
1124
1341
|
/**
|
|
1125
|
-
*
|
|
1342
|
+
* Renames the OCEL with the given `ocel_id` to `new_name`.
|
|
1343
|
+
* @summary Rename an uploaded OCEL
|
|
1126
1344
|
*/
|
|
1127
|
-
const
|
|
1345
|
+
const renameOcel = (ocelId, params, options, signal) => {
|
|
1128
1346
|
return customFetch$1({
|
|
1129
|
-
url: `/api/external/
|
|
1347
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/rename`,
|
|
1348
|
+
method: "POST",
|
|
1349
|
+
params,
|
|
1350
|
+
...signal ? { signal } : {}
|
|
1351
|
+
}, options);
|
|
1352
|
+
};
|
|
1353
|
+
const getRenameOcelMutationOptions = (options) => {
|
|
1354
|
+
const mutationKey = ["renameOcel"];
|
|
1355
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1356
|
+
...options,
|
|
1357
|
+
mutation: {
|
|
1358
|
+
...options.mutation,
|
|
1359
|
+
mutationKey
|
|
1360
|
+
}
|
|
1361
|
+
} : {
|
|
1362
|
+
mutation: { mutationKey },
|
|
1363
|
+
request: void 0
|
|
1364
|
+
};
|
|
1365
|
+
const mutationFn = (props) => {
|
|
1366
|
+
const { ocelId, params } = props ?? {};
|
|
1367
|
+
return renameOcel(ocelId, params, requestOptions);
|
|
1368
|
+
};
|
|
1369
|
+
return {
|
|
1370
|
+
mutationFn,
|
|
1371
|
+
...mutationOptions
|
|
1372
|
+
};
|
|
1373
|
+
};
|
|
1374
|
+
/**
|
|
1375
|
+
* @summary Rename an uploaded OCEL
|
|
1376
|
+
*/
|
|
1377
|
+
const useRenameOcel = (options, queryClient) => {
|
|
1378
|
+
return useMutation(getRenameOcelMutationOptions(options), queryClient);
|
|
1379
|
+
};
|
|
1380
|
+
/**
|
|
1381
|
+
* @summary Get Aggr Attributes
|
|
1382
|
+
*/
|
|
1383
|
+
const aggregatedAttributes = (ocelId, params, options, signal) => {
|
|
1384
|
+
return customFetch$1({
|
|
1385
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/attributes`,
|
|
1130
1386
|
method: "GET",
|
|
1387
|
+
params,
|
|
1131
1388
|
...signal ? { signal } : {}
|
|
1132
1389
|
}, options);
|
|
1133
1390
|
};
|
|
1134
|
-
const
|
|
1135
|
-
return [`/api/external/
|
|
1391
|
+
const getAggregatedAttributesQueryKey = (ocelId, params) => {
|
|
1392
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/attributes`, ...params ? [params] : []];
|
|
1136
1393
|
};
|
|
1137
|
-
const
|
|
1394
|
+
const getAggregatedAttributesQueryOptions = (ocelId, params, options) => {
|
|
1138
1395
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1139
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1140
|
-
const queryFn = ({ signal }) =>
|
|
1396
|
+
const queryKey = queryOptions?.queryKey ?? getAggregatedAttributesQueryKey(ocelId, params);
|
|
1397
|
+
const queryFn = ({ signal }) => aggregatedAttributes(ocelId, params, requestOptions, signal);
|
|
1141
1398
|
return {
|
|
1142
1399
|
queryKey,
|
|
1143
1400
|
queryFn,
|
|
1144
|
-
enabled: !!
|
|
1401
|
+
enabled: !!ocelId,
|
|
1145
1402
|
staleTime: 3e5,
|
|
1146
1403
|
...queryOptions
|
|
1147
1404
|
};
|
|
1148
1405
|
};
|
|
1149
1406
|
/**
|
|
1150
|
-
* @summary Get
|
|
1407
|
+
* @summary Get Aggr Attributes
|
|
1151
1408
|
*/
|
|
1152
|
-
function
|
|
1153
|
-
const queryOptions =
|
|
1409
|
+
function useAggregatedAttributes(ocelId, params, options, queryClient) {
|
|
1410
|
+
const queryOptions = getAggregatedAttributesQueryOptions(ocelId, params, options);
|
|
1154
1411
|
return {
|
|
1155
1412
|
...useQuery(queryOptions, queryClient),
|
|
1156
1413
|
queryKey: queryOptions.queryKey
|
|
1157
1414
|
};
|
|
1158
1415
|
}
|
|
1159
1416
|
/**
|
|
1160
|
-
* @summary
|
|
1417
|
+
* @summary Get Object Attributes
|
|
1161
1418
|
*/
|
|
1162
|
-
const
|
|
1419
|
+
const objectAttributes = (ocelId, params, options, signal) => {
|
|
1163
1420
|
return customFetch$1({
|
|
1164
|
-
url: `/api/external/
|
|
1165
|
-
method: "
|
|
1421
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/objects/attributes`,
|
|
1422
|
+
method: "GET",
|
|
1423
|
+
params,
|
|
1166
1424
|
...signal ? { signal } : {}
|
|
1167
1425
|
}, options);
|
|
1168
1426
|
};
|
|
1169
|
-
const
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
}
|
|
1177
|
-
} : {
|
|
1178
|
-
mutation: { mutationKey },
|
|
1179
|
-
request: void 0
|
|
1180
|
-
};
|
|
1181
|
-
const mutationFn = (props) => {
|
|
1182
|
-
const { taskId } = props ?? {};
|
|
1183
|
-
return saveDiscovery(taskId, requestOptions);
|
|
1184
|
-
};
|
|
1427
|
+
const getObjectAttributesQueryKey = (ocelId, params) => {
|
|
1428
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/objects/attributes`, ...params ? [params] : []];
|
|
1429
|
+
};
|
|
1430
|
+
const getObjectAttributesQueryOptions = (ocelId, params, options) => {
|
|
1431
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1432
|
+
const queryKey = queryOptions?.queryKey ?? getObjectAttributesQueryKey(ocelId, params);
|
|
1433
|
+
const queryFn = ({ signal }) => objectAttributes(ocelId, params, requestOptions, signal);
|
|
1185
1434
|
return {
|
|
1186
|
-
|
|
1187
|
-
|
|
1435
|
+
queryKey,
|
|
1436
|
+
queryFn,
|
|
1437
|
+
enabled: !!ocelId,
|
|
1438
|
+
staleTime: 3e5,
|
|
1439
|
+
...queryOptions
|
|
1188
1440
|
};
|
|
1189
1441
|
};
|
|
1190
1442
|
/**
|
|
1191
|
-
* @summary
|
|
1443
|
+
* @summary Get Object Attributes
|
|
1192
1444
|
*/
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1445
|
+
function useObjectAttributes(ocelId, params, options, queryClient) {
|
|
1446
|
+
const queryOptions = getObjectAttributesQueryOptions(ocelId, params, options);
|
|
1447
|
+
return {
|
|
1448
|
+
...useQuery(queryOptions, queryClient),
|
|
1449
|
+
queryKey: queryOptions.queryKey
|
|
1450
|
+
};
|
|
1451
|
+
}
|
|
1196
1452
|
/**
|
|
1197
|
-
* @summary
|
|
1453
|
+
* @summary Get Event Attributes
|
|
1198
1454
|
*/
|
|
1199
|
-
const
|
|
1455
|
+
const eventAttributes = (ocelId, params, options, signal) => {
|
|
1200
1456
|
return customFetch$1({
|
|
1201
|
-
url: `/api/external/
|
|
1457
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/events/attributes`,
|
|
1202
1458
|
method: "GET",
|
|
1459
|
+
params,
|
|
1203
1460
|
...signal ? { signal } : {}
|
|
1204
1461
|
}, options);
|
|
1205
1462
|
};
|
|
1206
|
-
const
|
|
1207
|
-
return [`/api/external/
|
|
1463
|
+
const getEventAttributesQueryKey = (ocelId, params) => {
|
|
1464
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/events/attributes`, ...params ? [params] : []];
|
|
1208
1465
|
};
|
|
1209
|
-
const
|
|
1466
|
+
const getEventAttributesQueryOptions = (ocelId, params, options) => {
|
|
1210
1467
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1211
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1212
|
-
const queryFn = ({ signal }) =>
|
|
1468
|
+
const queryKey = queryOptions?.queryKey ?? getEventAttributesQueryKey(ocelId, params);
|
|
1469
|
+
const queryFn = ({ signal }) => eventAttributes(ocelId, params, requestOptions, signal);
|
|
1213
1470
|
return {
|
|
1214
1471
|
queryKey,
|
|
1215
1472
|
queryFn,
|
|
1473
|
+
enabled: !!ocelId,
|
|
1216
1474
|
staleTime: 3e5,
|
|
1217
1475
|
...queryOptions
|
|
1218
1476
|
};
|
|
1219
1477
|
};
|
|
1220
1478
|
/**
|
|
1221
|
-
* @summary
|
|
1479
|
+
* @summary Get Event Attributes
|
|
1222
1480
|
*/
|
|
1223
|
-
function
|
|
1224
|
-
const queryOptions =
|
|
1481
|
+
function useEventAttributes(ocelId, params, options, queryClient) {
|
|
1482
|
+
const queryOptions = getEventAttributesQueryOptions(ocelId, params, options);
|
|
1225
1483
|
return {
|
|
1226
1484
|
...useQuery(queryOptions, queryClient),
|
|
1227
1485
|
queryKey: queryOptions.queryKey
|
|
1228
1486
|
};
|
|
1229
1487
|
}
|
|
1230
1488
|
/**
|
|
1231
|
-
* @summary
|
|
1489
|
+
* @summary Get Attribute Names
|
|
1232
1490
|
*/
|
|
1233
|
-
const
|
|
1491
|
+
const attributeNames = (ocelId, params, options, signal) => {
|
|
1234
1492
|
return customFetch$1({
|
|
1235
|
-
url: `/api/external/
|
|
1493
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/attribute/names`,
|
|
1236
1494
|
method: "GET",
|
|
1495
|
+
params,
|
|
1237
1496
|
...signal ? { signal } : {}
|
|
1238
1497
|
}, options);
|
|
1239
1498
|
};
|
|
1240
|
-
const
|
|
1241
|
-
return [`/api/external/
|
|
1499
|
+
const getAttributeNamesQueryKey = (ocelId, params) => {
|
|
1500
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/attribute/names`, ...params ? [params] : []];
|
|
1242
1501
|
};
|
|
1243
|
-
const
|
|
1502
|
+
const getAttributeNamesQueryOptions = (ocelId, params, options) => {
|
|
1244
1503
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1245
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1246
|
-
const queryFn = ({ signal }) =>
|
|
1504
|
+
const queryKey = queryOptions?.queryKey ?? getAttributeNamesQueryKey(ocelId, params);
|
|
1505
|
+
const queryFn = ({ signal }) => attributeNames(ocelId, params, requestOptions, signal);
|
|
1247
1506
|
return {
|
|
1248
1507
|
queryKey,
|
|
1249
1508
|
queryFn,
|
|
1509
|
+
enabled: !!ocelId,
|
|
1250
1510
|
staleTime: 3e5,
|
|
1251
1511
|
...queryOptions
|
|
1252
1512
|
};
|
|
1253
1513
|
};
|
|
1254
1514
|
/**
|
|
1255
|
-
* @summary
|
|
1515
|
+
* @summary Get Attribute Names
|
|
1256
1516
|
*/
|
|
1257
|
-
function
|
|
1258
|
-
const queryOptions =
|
|
1517
|
+
function useAttributeNames(ocelId, params, options, queryClient) {
|
|
1518
|
+
const queryOptions = getAttributeNamesQueryOptions(ocelId, params, options);
|
|
1259
1519
|
return {
|
|
1260
1520
|
...useQuery(queryOptions, queryClient),
|
|
1261
1521
|
queryKey: queryOptions.queryKey
|
|
1262
1522
|
};
|
|
1263
1523
|
}
|
|
1264
1524
|
/**
|
|
1265
|
-
* @summary
|
|
1525
|
+
* @summary Get Object Types
|
|
1266
1526
|
*/
|
|
1267
|
-
const
|
|
1527
|
+
const objectTypes = (ocelId, params, options, signal) => {
|
|
1268
1528
|
return customFetch$1({
|
|
1269
|
-
url: `/api/external/
|
|
1529
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/objects/types`,
|
|
1270
1530
|
method: "GET",
|
|
1271
1531
|
params,
|
|
1272
1532
|
...signal ? { signal } : {}
|
|
1273
1533
|
}, options);
|
|
1274
1534
|
};
|
|
1275
|
-
const
|
|
1276
|
-
return [`/api/external/
|
|
1535
|
+
const getObjectTypesQueryKey = (ocelId, params) => {
|
|
1536
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/objects/types`, ...params ? [params] : []];
|
|
1277
1537
|
};
|
|
1278
|
-
const
|
|
1538
|
+
const getObjectTypesQueryOptions = (ocelId, params, options) => {
|
|
1279
1539
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1280
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1281
|
-
const queryFn = ({ signal }) =>
|
|
1540
|
+
const queryKey = queryOptions?.queryKey ?? getObjectTypesQueryKey(ocelId, params);
|
|
1541
|
+
const queryFn = ({ signal }) => objectTypes(ocelId, params, requestOptions, signal);
|
|
1282
1542
|
return {
|
|
1283
1543
|
queryKey,
|
|
1284
1544
|
queryFn,
|
|
1545
|
+
enabled: !!ocelId,
|
|
1285
1546
|
staleTime: 3e5,
|
|
1286
1547
|
...queryOptions
|
|
1287
1548
|
};
|
|
1288
1549
|
};
|
|
1289
1550
|
/**
|
|
1290
|
-
* @summary
|
|
1551
|
+
* @summary Get Object Types
|
|
1291
1552
|
*/
|
|
1292
|
-
function
|
|
1293
|
-
const queryOptions =
|
|
1553
|
+
function useObjectTypes(ocelId, params, options, queryClient) {
|
|
1554
|
+
const queryOptions = getObjectTypesQueryOptions(ocelId, params, options);
|
|
1294
1555
|
return {
|
|
1295
1556
|
...useQuery(queryOptions, queryClient),
|
|
1296
1557
|
queryKey: queryOptions.queryKey
|
|
1297
1558
|
};
|
|
1298
1559
|
}
|
|
1299
1560
|
/**
|
|
1300
|
-
* @summary
|
|
1561
|
+
* @summary Get Object Counts
|
|
1301
1562
|
*/
|
|
1302
|
-
const
|
|
1563
|
+
const objectCounts = (ocelId, params, options, signal) => {
|
|
1303
1564
|
return customFetch$1({
|
|
1304
|
-
url: `/api/external/
|
|
1565
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/objects/counts`,
|
|
1305
1566
|
method: "GET",
|
|
1567
|
+
params,
|
|
1306
1568
|
...signal ? { signal } : {}
|
|
1307
1569
|
}, options);
|
|
1308
1570
|
};
|
|
1309
|
-
const
|
|
1310
|
-
return [`/api/external/
|
|
1571
|
+
const getObjectCountsQueryKey = (ocelId, params) => {
|
|
1572
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/objects/counts`, ...params ? [params] : []];
|
|
1311
1573
|
};
|
|
1312
|
-
const
|
|
1574
|
+
const getObjectCountsQueryOptions = (ocelId, params, options) => {
|
|
1313
1575
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1314
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1315
|
-
const queryFn = ({ signal }) =>
|
|
1576
|
+
const queryKey = queryOptions?.queryKey ?? getObjectCountsQueryKey(ocelId, params);
|
|
1577
|
+
const queryFn = ({ signal }) => objectCounts(ocelId, params, requestOptions, signal);
|
|
1316
1578
|
return {
|
|
1317
1579
|
queryKey,
|
|
1318
1580
|
queryFn,
|
|
1319
|
-
enabled: !!
|
|
1581
|
+
enabled: !!ocelId,
|
|
1320
1582
|
staleTime: 3e5,
|
|
1321
1583
|
...queryOptions
|
|
1322
1584
|
};
|
|
1323
1585
|
};
|
|
1324
1586
|
/**
|
|
1325
|
-
* @summary
|
|
1587
|
+
* @summary Get Object Counts
|
|
1326
1588
|
*/
|
|
1327
|
-
function
|
|
1328
|
-
const queryOptions =
|
|
1589
|
+
function useObjectCounts(ocelId, params, options, queryClient) {
|
|
1590
|
+
const queryOptions = getObjectCountsQueryOptions(ocelId, params, options);
|
|
1329
1591
|
return {
|
|
1330
1592
|
...useQuery(queryOptions, queryClient),
|
|
1331
1593
|
queryKey: queryOptions.queryKey
|
|
1332
1594
|
};
|
|
1333
1595
|
}
|
|
1334
1596
|
/**
|
|
1335
|
-
* @summary Get
|
|
1597
|
+
* @summary Get Object Ids
|
|
1336
1598
|
*/
|
|
1337
|
-
const
|
|
1599
|
+
const objectIds = (ocelId, params, options, signal) => {
|
|
1338
1600
|
return customFetch$1({
|
|
1339
|
-
url: `/api/external/
|
|
1601
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/objects/ids`,
|
|
1340
1602
|
method: "GET",
|
|
1603
|
+
params,
|
|
1341
1604
|
...signal ? { signal } : {}
|
|
1342
1605
|
}, options);
|
|
1343
1606
|
};
|
|
1344
|
-
const
|
|
1345
|
-
return [`/api/external/
|
|
1607
|
+
const getObjectIdsQueryKey = (ocelId, params) => {
|
|
1608
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/objects/ids`, ...params ? [params] : []];
|
|
1346
1609
|
};
|
|
1347
|
-
const
|
|
1610
|
+
const getObjectIdsQueryOptions = (ocelId, params, options) => {
|
|
1348
1611
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1349
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1350
|
-
const queryFn = ({ signal }) =>
|
|
1612
|
+
const queryKey = queryOptions?.queryKey ?? getObjectIdsQueryKey(ocelId, params);
|
|
1613
|
+
const queryFn = ({ signal }) => objectIds(ocelId, params, requestOptions, signal);
|
|
1351
1614
|
return {
|
|
1352
1615
|
queryKey,
|
|
1353
1616
|
queryFn,
|
|
1617
|
+
enabled: !!ocelId,
|
|
1354
1618
|
staleTime: 3e5,
|
|
1355
1619
|
...queryOptions
|
|
1356
1620
|
};
|
|
1357
1621
|
};
|
|
1358
1622
|
/**
|
|
1359
|
-
* @summary Get
|
|
1623
|
+
* @summary Get Object Ids
|
|
1360
1624
|
*/
|
|
1361
|
-
function
|
|
1362
|
-
const queryOptions =
|
|
1625
|
+
function useObjectIds(ocelId, params, options, queryClient) {
|
|
1626
|
+
const queryOptions = getObjectIdsQueryOptions(ocelId, params, options);
|
|
1363
1627
|
return {
|
|
1364
1628
|
...useQuery(queryOptions, queryClient),
|
|
1365
1629
|
queryKey: queryOptions.queryKey
|
|
1366
1630
|
};
|
|
1367
1631
|
}
|
|
1368
1632
|
/**
|
|
1369
|
-
*
|
|
1633
|
+
* Returns the object variants for a single object type. Each variant is a distinct activity sequence, together with the number of events it contains and the number of cases (objects) that follow it.
|
|
1634
|
+
* @summary Get the variants of an object type
|
|
1370
1635
|
*/
|
|
1371
|
-
const
|
|
1636
|
+
const objectVariants = (ocelId, params, options, signal) => {
|
|
1372
1637
|
return customFetch$1({
|
|
1373
|
-
url: `/api/external/
|
|
1638
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/objects/variants`,
|
|
1374
1639
|
method: "GET",
|
|
1640
|
+
params,
|
|
1375
1641
|
...signal ? { signal } : {}
|
|
1376
1642
|
}, options);
|
|
1377
1643
|
};
|
|
1378
|
-
const
|
|
1379
|
-
return [`/api/external/
|
|
1644
|
+
const getObjectVariantsQueryKey = (ocelId, params) => {
|
|
1645
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/objects/variants`, ...params ? [params] : []];
|
|
1380
1646
|
};
|
|
1381
|
-
const
|
|
1647
|
+
const getObjectVariantsQueryOptions = (ocelId, params, options) => {
|
|
1382
1648
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1383
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1384
|
-
const queryFn = ({ signal }) =>
|
|
1649
|
+
const queryKey = queryOptions?.queryKey ?? getObjectVariantsQueryKey(ocelId, params);
|
|
1650
|
+
const queryFn = ({ signal }) => objectVariants(ocelId, params, requestOptions, signal);
|
|
1385
1651
|
return {
|
|
1386
1652
|
queryKey,
|
|
1387
1653
|
queryFn,
|
|
1388
|
-
enabled: !!
|
|
1654
|
+
enabled: !!ocelId,
|
|
1389
1655
|
staleTime: 3e5,
|
|
1390
1656
|
...queryOptions
|
|
1391
1657
|
};
|
|
1392
1658
|
};
|
|
1393
1659
|
/**
|
|
1394
|
-
* @summary Get
|
|
1660
|
+
* @summary Get the variants of an object type
|
|
1395
1661
|
*/
|
|
1396
|
-
function
|
|
1397
|
-
const queryOptions =
|
|
1662
|
+
function useObjectVariants(ocelId, params, options, queryClient) {
|
|
1663
|
+
const queryOptions = getObjectVariantsQueryOptions(ocelId, params, options);
|
|
1398
1664
|
return {
|
|
1399
1665
|
...useQuery(queryOptions, queryClient),
|
|
1400
1666
|
queryKey: queryOptions.queryKey
|
|
1401
1667
|
};
|
|
1402
1668
|
}
|
|
1403
1669
|
/**
|
|
1404
|
-
* @summary
|
|
1405
|
-
*/
|
|
1406
|
-
const deletePlugin = (pluginId, options, signal) => {
|
|
1407
|
-
return customFetch$1({
|
|
1408
|
-
url: `/api/external/plugins/${pluginId}`,
|
|
1409
|
-
method: "DELETE",
|
|
1410
|
-
...signal ? { signal } : {}
|
|
1411
|
-
}, options);
|
|
1412
|
-
};
|
|
1413
|
-
const getDeletePluginMutationOptions = (options) => {
|
|
1414
|
-
const mutationKey = ["deletePlugin"];
|
|
1415
|
-
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1416
|
-
...options,
|
|
1417
|
-
mutation: {
|
|
1418
|
-
...options.mutation,
|
|
1419
|
-
mutationKey
|
|
1420
|
-
}
|
|
1421
|
-
} : {
|
|
1422
|
-
mutation: { mutationKey },
|
|
1423
|
-
request: void 0
|
|
1424
|
-
};
|
|
1425
|
-
const mutationFn = (props) => {
|
|
1426
|
-
const { pluginId } = props ?? {};
|
|
1427
|
-
return deletePlugin(pluginId, requestOptions);
|
|
1428
|
-
};
|
|
1429
|
-
return {
|
|
1430
|
-
mutationFn,
|
|
1431
|
-
...mutationOptions
|
|
1432
|
-
};
|
|
1433
|
-
};
|
|
1434
|
-
/**
|
|
1435
|
-
* @summary Delete Plugin
|
|
1436
|
-
*/
|
|
1437
|
-
const useDeletePlugin = (options, queryClient) => {
|
|
1438
|
-
return useMutation(getDeletePluginMutationOptions(options), queryClient);
|
|
1439
|
-
};
|
|
1440
|
-
/**
|
|
1441
|
-
* @summary Get Plugin Method
|
|
1670
|
+
* @summary Get Activities
|
|
1442
1671
|
*/
|
|
1443
|
-
const
|
|
1672
|
+
const activities = (ocelId, params, options, signal) => {
|
|
1444
1673
|
return customFetch$1({
|
|
1445
|
-
url: `/api/external/
|
|
1674
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/events/activityNames`,
|
|
1446
1675
|
method: "GET",
|
|
1676
|
+
params,
|
|
1447
1677
|
...signal ? { signal } : {}
|
|
1448
1678
|
}, options);
|
|
1449
1679
|
};
|
|
1450
|
-
const
|
|
1451
|
-
return [`/api/external/
|
|
1680
|
+
const getActivitiesQueryKey = (ocelId, params) => {
|
|
1681
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/events/activityNames`, ...params ? [params] : []];
|
|
1452
1682
|
};
|
|
1453
|
-
const
|
|
1683
|
+
const getActivitiesQueryOptions = (ocelId, params, options) => {
|
|
1454
1684
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1455
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1456
|
-
const queryFn = ({ signal }) =>
|
|
1685
|
+
const queryKey = queryOptions?.queryKey ?? getActivitiesQueryKey(ocelId, params);
|
|
1686
|
+
const queryFn = ({ signal }) => activities(ocelId, params, requestOptions, signal);
|
|
1457
1687
|
return {
|
|
1458
1688
|
queryKey,
|
|
1459
1689
|
queryFn,
|
|
1460
|
-
enabled: !!
|
|
1690
|
+
enabled: !!ocelId,
|
|
1461
1691
|
staleTime: 3e5,
|
|
1462
1692
|
...queryOptions
|
|
1463
1693
|
};
|
|
1464
1694
|
};
|
|
1465
1695
|
/**
|
|
1466
|
-
* @summary Get
|
|
1696
|
+
* @summary Get Activities
|
|
1467
1697
|
*/
|
|
1468
|
-
function
|
|
1469
|
-
const queryOptions =
|
|
1698
|
+
function useActivities(ocelId, params, options, queryClient) {
|
|
1699
|
+
const queryOptions = getActivitiesQueryOptions(ocelId, params, options);
|
|
1470
1700
|
return {
|
|
1471
1701
|
...useQuery(queryOptions, queryClient),
|
|
1472
1702
|
queryKey: queryOptions.queryKey
|
|
1473
1703
|
};
|
|
1474
1704
|
}
|
|
1475
1705
|
/**
|
|
1476
|
-
* @summary
|
|
1477
|
-
*/
|
|
1478
|
-
const runPlugin = (pluginId, methodName, bodyRunPlugin, options, signal) => {
|
|
1479
|
-
return customFetch$1({
|
|
1480
|
-
url: `/api/external/plugins/${pluginId}/${methodName}`,
|
|
1481
|
-
method: "POST",
|
|
1482
|
-
headers: { "Content-Type": "application/json" },
|
|
1483
|
-
data: bodyRunPlugin,
|
|
1484
|
-
...signal ? { signal } : {}
|
|
1485
|
-
}, options);
|
|
1486
|
-
};
|
|
1487
|
-
const getRunPluginMutationOptions = (options) => {
|
|
1488
|
-
const mutationKey = ["runPlugin"];
|
|
1489
|
-
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1490
|
-
...options,
|
|
1491
|
-
mutation: {
|
|
1492
|
-
...options.mutation,
|
|
1493
|
-
mutationKey
|
|
1494
|
-
}
|
|
1495
|
-
} : {
|
|
1496
|
-
mutation: { mutationKey },
|
|
1497
|
-
request: void 0
|
|
1498
|
-
};
|
|
1499
|
-
const mutationFn = (props) => {
|
|
1500
|
-
const { pluginId, methodName, data } = props ?? {};
|
|
1501
|
-
return runPlugin(pluginId, methodName, data, requestOptions);
|
|
1502
|
-
};
|
|
1503
|
-
return {
|
|
1504
|
-
mutationFn,
|
|
1505
|
-
...mutationOptions
|
|
1506
|
-
};
|
|
1507
|
-
};
|
|
1508
|
-
/**
|
|
1509
|
-
* @summary Run Plugin
|
|
1510
|
-
*/
|
|
1511
|
-
const useRunPlugin = (options, queryClient) => {
|
|
1512
|
-
return useMutation(getRunPluginMutationOptions(options), queryClient);
|
|
1513
|
-
};
|
|
1514
|
-
/**
|
|
1515
|
-
* @summary Get Plugin Result
|
|
1706
|
+
* @summary Get Event Counts
|
|
1516
1707
|
*/
|
|
1517
|
-
const
|
|
1708
|
+
const eventCounts = (ocelId, params, options, signal) => {
|
|
1518
1709
|
return customFetch$1({
|
|
1519
|
-
url: `/api/external/
|
|
1710
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/events/counts`,
|
|
1520
1711
|
method: "GET",
|
|
1712
|
+
params,
|
|
1521
1713
|
...signal ? { signal } : {}
|
|
1522
1714
|
}, options);
|
|
1523
1715
|
};
|
|
1524
|
-
const
|
|
1525
|
-
return [`/api/external/
|
|
1716
|
+
const getEventCountsQueryKey = (ocelId, params) => {
|
|
1717
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/events/counts`, ...params ? [params] : []];
|
|
1526
1718
|
};
|
|
1527
|
-
const
|
|
1719
|
+
const getEventCountsQueryOptions = (ocelId, params, options) => {
|
|
1528
1720
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1529
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1530
|
-
const queryFn = ({ signal }) =>
|
|
1721
|
+
const queryKey = queryOptions?.queryKey ?? getEventCountsQueryKey(ocelId, params);
|
|
1722
|
+
const queryFn = ({ signal }) => eventCounts(ocelId, params, requestOptions, signal);
|
|
1531
1723
|
return {
|
|
1532
1724
|
queryKey,
|
|
1533
1725
|
queryFn,
|
|
1534
|
-
enabled: !!
|
|
1726
|
+
enabled: !!ocelId,
|
|
1535
1727
|
staleTime: 3e5,
|
|
1536
1728
|
...queryOptions
|
|
1537
1729
|
};
|
|
1538
1730
|
};
|
|
1539
1731
|
/**
|
|
1540
|
-
* @summary Get
|
|
1732
|
+
* @summary Get Event Counts
|
|
1541
1733
|
*/
|
|
1542
|
-
function
|
|
1543
|
-
const queryOptions =
|
|
1734
|
+
function useEventCounts(ocelId, params, options, queryClient) {
|
|
1735
|
+
const queryOptions = getEventCountsQueryOptions(ocelId, params, options);
|
|
1544
1736
|
return {
|
|
1545
1737
|
...useQuery(queryOptions, queryClient),
|
|
1546
1738
|
queryKey: queryOptions.queryKey
|
|
1547
1739
|
};
|
|
1548
1740
|
}
|
|
1549
1741
|
/**
|
|
1550
|
-
*
|
|
1551
|
-
* @summary Save Plugin Results
|
|
1742
|
+
* @summary Get Event Ids
|
|
1552
1743
|
*/
|
|
1553
|
-
const
|
|
1744
|
+
const eventIds = (ocelId, params, options, signal) => {
|
|
1554
1745
|
return customFetch$1({
|
|
1555
|
-
url: `/api/external/
|
|
1556
|
-
method: "
|
|
1557
|
-
|
|
1558
|
-
data: bodySavePluginResults,
|
|
1746
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/events/ids`,
|
|
1747
|
+
method: "GET",
|
|
1748
|
+
params,
|
|
1559
1749
|
...signal ? { signal } : {}
|
|
1560
1750
|
}, options);
|
|
1561
1751
|
};
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
}
|
|
1570
|
-
} : {
|
|
1571
|
-
mutation: { mutationKey },
|
|
1572
|
-
request: void 0
|
|
1573
|
-
};
|
|
1574
|
-
const mutationFn = (props) => {
|
|
1575
|
-
const { pluginId, methodName, taskId, data } = props ?? {};
|
|
1576
|
-
return savePluginResults(pluginId, methodName, taskId, data, requestOptions);
|
|
1577
|
-
};
|
|
1752
|
+
const getEventIdsQueryKey = (ocelId, params) => {
|
|
1753
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/events/ids`, ...params ? [params] : []];
|
|
1754
|
+
};
|
|
1755
|
+
const getEventIdsQueryOptions = (ocelId, params, options) => {
|
|
1756
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1757
|
+
const queryKey = queryOptions?.queryKey ?? getEventIdsQueryKey(ocelId, params);
|
|
1758
|
+
const queryFn = ({ signal }) => eventIds(ocelId, params, requestOptions, signal);
|
|
1578
1759
|
return {
|
|
1579
|
-
|
|
1580
|
-
|
|
1760
|
+
queryKey,
|
|
1761
|
+
queryFn,
|
|
1762
|
+
enabled: !!ocelId,
|
|
1763
|
+
staleTime: 3e5,
|
|
1764
|
+
...queryOptions
|
|
1581
1765
|
};
|
|
1582
1766
|
};
|
|
1583
1767
|
/**
|
|
1584
|
-
* @summary
|
|
1585
|
-
*/
|
|
1586
|
-
const useSavePluginResults = (options, queryClient) => {
|
|
1587
|
-
return useMutation(getSavePluginResultsMutationOptions(options), queryClient);
|
|
1588
|
-
};
|
|
1589
|
-
/**
|
|
1590
|
-
* Bundle the selected results into a zip for download.
|
|
1591
|
-
* @summary Download Plugin Results
|
|
1768
|
+
* @summary Get Event Ids
|
|
1592
1769
|
*/
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
url: `/api/external/plugins/${pluginId}/${methodName}/result/${taskId}/download`,
|
|
1596
|
-
method: "POST",
|
|
1597
|
-
headers: { "Content-Type": "application/json" },
|
|
1598
|
-
data: bodyDownloadPluginResults,
|
|
1599
|
-
...signal ? { signal } : {}
|
|
1600
|
-
}, options);
|
|
1601
|
-
};
|
|
1602
|
-
const getDownloadPluginResultsMutationOptions = (options) => {
|
|
1603
|
-
const mutationKey = ["downloadPluginResults"];
|
|
1604
|
-
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
1605
|
-
...options,
|
|
1606
|
-
mutation: {
|
|
1607
|
-
...options.mutation,
|
|
1608
|
-
mutationKey
|
|
1609
|
-
}
|
|
1610
|
-
} : {
|
|
1611
|
-
mutation: { mutationKey },
|
|
1612
|
-
request: void 0
|
|
1613
|
-
};
|
|
1614
|
-
const mutationFn = (props) => {
|
|
1615
|
-
const { pluginId, methodName, taskId, data } = props ?? {};
|
|
1616
|
-
return downloadPluginResults(pluginId, methodName, taskId, data, requestOptions);
|
|
1617
|
-
};
|
|
1770
|
+
function useEventIds(ocelId, params, options, queryClient) {
|
|
1771
|
+
const queryOptions = getEventIdsQueryOptions(ocelId, params, options);
|
|
1618
1772
|
return {
|
|
1619
|
-
|
|
1620
|
-
|
|
1773
|
+
...useQuery(queryOptions, queryClient),
|
|
1774
|
+
queryKey: queryOptions.queryKey
|
|
1621
1775
|
};
|
|
1622
|
-
}
|
|
1623
|
-
/**
|
|
1624
|
-
* @summary Download Plugin Results
|
|
1625
|
-
*/
|
|
1626
|
-
const useDownloadPluginResults = (options, queryClient) => {
|
|
1627
|
-
return useMutation(getDownloadPluginResultsMutationOptions(options), queryClient);
|
|
1628
|
-
};
|
|
1776
|
+
}
|
|
1629
1777
|
/**
|
|
1630
|
-
* @summary Get
|
|
1778
|
+
* @summary Get Time Info
|
|
1631
1779
|
*/
|
|
1632
|
-
const
|
|
1780
|
+
const timeInfo = (ocelId, params, options, signal) => {
|
|
1633
1781
|
return customFetch$1({
|
|
1634
|
-
url: `/api/external/
|
|
1635
|
-
method: "
|
|
1636
|
-
|
|
1637
|
-
data: bodyGetComputedValues,
|
|
1782
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/events/time`,
|
|
1783
|
+
method: "GET",
|
|
1784
|
+
params,
|
|
1638
1785
|
...signal ? { signal } : {}
|
|
1639
1786
|
}, options);
|
|
1640
1787
|
};
|
|
1641
|
-
const
|
|
1642
|
-
return [`/api/external/
|
|
1788
|
+
const getTimeInfoQueryKey = (ocelId, params) => {
|
|
1789
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/events/time`, ...params ? [params] : []];
|
|
1643
1790
|
};
|
|
1644
|
-
const
|
|
1791
|
+
const getTimeInfoQueryOptions = (ocelId, params, options) => {
|
|
1645
1792
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1646
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1647
|
-
const queryFn = ({ signal }) =>
|
|
1793
|
+
const queryKey = queryOptions?.queryKey ?? getTimeInfoQueryKey(ocelId, params);
|
|
1794
|
+
const queryFn = ({ signal }) => timeInfo(ocelId, params, requestOptions, signal);
|
|
1648
1795
|
return {
|
|
1649
1796
|
queryKey,
|
|
1650
1797
|
queryFn,
|
|
1651
|
-
enabled: !!
|
|
1798
|
+
enabled: !!ocelId,
|
|
1652
1799
|
staleTime: 3e5,
|
|
1653
1800
|
...queryOptions
|
|
1654
1801
|
};
|
|
1655
1802
|
};
|
|
1656
1803
|
/**
|
|
1657
|
-
* @summary Get
|
|
1804
|
+
* @summary Get Time Info
|
|
1658
1805
|
*/
|
|
1659
|
-
function
|
|
1660
|
-
const queryOptions =
|
|
1806
|
+
function useTimeInfo(ocelId, params, options, queryClient) {
|
|
1807
|
+
const queryOptions = getTimeInfoQueryOptions(ocelId, params, options);
|
|
1661
1808
|
return {
|
|
1662
1809
|
...useQuery(queryOptions, queryClient),
|
|
1663
1810
|
queryKey: queryOptions.queryKey
|
|
1664
1811
|
};
|
|
1665
1812
|
}
|
|
1666
1813
|
/**
|
|
1667
|
-
* @summary Get
|
|
1814
|
+
* @summary Get E2O
|
|
1668
1815
|
*/
|
|
1669
|
-
const
|
|
1816
|
+
const e2o = (ocelId, params, options, signal) => {
|
|
1670
1817
|
return customFetch$1({
|
|
1671
|
-
url: `/api/external/
|
|
1818
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/relations/e2o`,
|
|
1672
1819
|
method: "GET",
|
|
1673
1820
|
params,
|
|
1674
1821
|
...signal ? { signal } : {}
|
|
1675
1822
|
}, options);
|
|
1676
1823
|
};
|
|
1677
|
-
const
|
|
1678
|
-
return [`/api/external/
|
|
1824
|
+
const getE2oQueryKey = (ocelId, params) => {
|
|
1825
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/relations/e2o`, ...params ? [params] : []];
|
|
1679
1826
|
};
|
|
1680
|
-
const
|
|
1827
|
+
const getE2oQueryOptions = (ocelId, params, options) => {
|
|
1681
1828
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1682
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1683
|
-
const queryFn = ({ signal }) =>
|
|
1829
|
+
const queryKey = queryOptions?.queryKey ?? getE2oQueryKey(ocelId, params);
|
|
1830
|
+
const queryFn = ({ signal }) => e2o(ocelId, params, requestOptions, signal);
|
|
1684
1831
|
return {
|
|
1685
1832
|
queryKey,
|
|
1686
1833
|
queryFn,
|
|
1834
|
+
enabled: !!ocelId,
|
|
1687
1835
|
staleTime: 3e5,
|
|
1688
1836
|
...queryOptions
|
|
1689
1837
|
};
|
|
1690
1838
|
};
|
|
1691
1839
|
/**
|
|
1692
|
-
* @summary Get
|
|
1840
|
+
* @summary Get E2O
|
|
1693
1841
|
*/
|
|
1694
|
-
function
|
|
1695
|
-
const queryOptions =
|
|
1842
|
+
function useE2o(ocelId, params, options, queryClient) {
|
|
1843
|
+
const queryOptions = getE2oQueryOptions(ocelId, params, options);
|
|
1696
1844
|
return {
|
|
1697
1845
|
...useQuery(queryOptions, queryClient),
|
|
1698
1846
|
queryKey: queryOptions.queryKey
|
|
1699
1847
|
};
|
|
1700
1848
|
}
|
|
1701
1849
|
/**
|
|
1702
|
-
* @summary
|
|
1850
|
+
* @summary Get O2O
|
|
1703
1851
|
*/
|
|
1704
|
-
const
|
|
1705
|
-
const formData = new FormData();
|
|
1706
|
-
formData.append(`file`, bodyUploadResource.file);
|
|
1852
|
+
const o2o = (ocelId, params, options, signal) => {
|
|
1707
1853
|
return customFetch$1({
|
|
1708
|
-
url: `/api/external/
|
|
1709
|
-
method: "
|
|
1710
|
-
|
|
1854
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/relations/o2o`,
|
|
1855
|
+
method: "GET",
|
|
1856
|
+
params,
|
|
1711
1857
|
...signal ? { signal } : {}
|
|
1712
1858
|
}, options);
|
|
1713
1859
|
};
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}
|
|
1722
|
-
} : {
|
|
1723
|
-
mutation: { mutationKey },
|
|
1724
|
-
request: void 0
|
|
1725
|
-
};
|
|
1726
|
-
const mutationFn = (props) => {
|
|
1727
|
-
const { data } = props ?? {};
|
|
1728
|
-
return uploadResource(data, requestOptions);
|
|
1729
|
-
};
|
|
1860
|
+
const getO2oQueryKey = (ocelId, params) => {
|
|
1861
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/relations/o2o`, ...params ? [params] : []];
|
|
1862
|
+
};
|
|
1863
|
+
const getO2oQueryOptions = (ocelId, params, options) => {
|
|
1864
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1865
|
+
const queryKey = queryOptions?.queryKey ?? getO2oQueryKey(ocelId, params);
|
|
1866
|
+
const queryFn = ({ signal }) => o2o(ocelId, params, requestOptions, signal);
|
|
1730
1867
|
return {
|
|
1731
|
-
|
|
1732
|
-
|
|
1868
|
+
queryKey,
|
|
1869
|
+
queryFn,
|
|
1870
|
+
enabled: !!ocelId,
|
|
1871
|
+
staleTime: 3e5,
|
|
1872
|
+
...queryOptions
|
|
1733
1873
|
};
|
|
1734
1874
|
};
|
|
1735
1875
|
/**
|
|
1736
|
-
* @summary
|
|
1876
|
+
* @summary Get O2O
|
|
1737
1877
|
*/
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1878
|
+
function useO2o(ocelId, params, options, queryClient) {
|
|
1879
|
+
const queryOptions = getO2oQueryOptions(ocelId, params, options);
|
|
1880
|
+
return {
|
|
1881
|
+
...useQuery(queryOptions, queryClient),
|
|
1882
|
+
queryKey: queryOptions.queryKey
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1741
1885
|
/**
|
|
1742
|
-
* @summary Get
|
|
1886
|
+
* @summary Get E2O Combinations
|
|
1743
1887
|
*/
|
|
1744
|
-
const
|
|
1888
|
+
const e2oCombinations = (ocelId, params, options, signal) => {
|
|
1745
1889
|
return customFetch$1({
|
|
1746
|
-
url: `/api/external/
|
|
1890
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/relations/e2o/combinations`,
|
|
1747
1891
|
method: "GET",
|
|
1892
|
+
params,
|
|
1748
1893
|
...signal ? { signal } : {}
|
|
1749
1894
|
}, options);
|
|
1750
1895
|
};
|
|
1751
|
-
const
|
|
1752
|
-
return [`/api/external/
|
|
1896
|
+
const getE2oCombinationsQueryKey = (ocelId, params) => {
|
|
1897
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/relations/e2o/combinations`, ...params ? [params] : []];
|
|
1753
1898
|
};
|
|
1754
|
-
const
|
|
1899
|
+
const getE2oCombinationsQueryOptions = (ocelId, params, options) => {
|
|
1755
1900
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1756
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1757
|
-
const queryFn = ({ signal }) =>
|
|
1901
|
+
const queryKey = queryOptions?.queryKey ?? getE2oCombinationsQueryKey(ocelId, params);
|
|
1902
|
+
const queryFn = ({ signal }) => e2oCombinations(ocelId, params, requestOptions, signal);
|
|
1758
1903
|
return {
|
|
1759
1904
|
queryKey,
|
|
1760
1905
|
queryFn,
|
|
1906
|
+
enabled: !!ocelId,
|
|
1761
1907
|
staleTime: 3e5,
|
|
1762
1908
|
...queryOptions
|
|
1763
1909
|
};
|
|
1764
1910
|
};
|
|
1765
1911
|
/**
|
|
1766
|
-
* @summary Get
|
|
1912
|
+
* @summary Get E2O Combinations
|
|
1767
1913
|
*/
|
|
1768
|
-
function
|
|
1769
|
-
const queryOptions =
|
|
1914
|
+
function useE2oCombinations(ocelId, params, options, queryClient) {
|
|
1915
|
+
const queryOptions = getE2oCombinationsQueryOptions(ocelId, params, options);
|
|
1770
1916
|
return {
|
|
1771
1917
|
...useQuery(queryOptions, queryClient),
|
|
1772
1918
|
queryKey: queryOptions.queryKey
|
|
1773
1919
|
};
|
|
1774
1920
|
}
|
|
1775
1921
|
/**
|
|
1776
|
-
* @summary
|
|
1922
|
+
* @summary Get O2O Combinations
|
|
1777
1923
|
*/
|
|
1778
|
-
const
|
|
1924
|
+
const o2oCombinations = (ocelId, params, options, signal) => {
|
|
1779
1925
|
return customFetch$1({
|
|
1780
|
-
url: `/api/external/
|
|
1926
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/relations/o2o/combinations`,
|
|
1781
1927
|
method: "GET",
|
|
1928
|
+
params,
|
|
1782
1929
|
...signal ? { signal } : {}
|
|
1783
1930
|
}, options);
|
|
1784
1931
|
};
|
|
1785
|
-
const
|
|
1786
|
-
return [`/api/external/
|
|
1932
|
+
const getO2oCombinationsQueryKey = (ocelId, params) => {
|
|
1933
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/relations/o2o/combinations`, ...params ? [params] : []];
|
|
1787
1934
|
};
|
|
1788
|
-
const
|
|
1935
|
+
const getO2oCombinationsQueryOptions = (ocelId, params, options) => {
|
|
1789
1936
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1790
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1791
|
-
const queryFn = ({ signal }) =>
|
|
1937
|
+
const queryKey = queryOptions?.queryKey ?? getO2oCombinationsQueryKey(ocelId, params);
|
|
1938
|
+
const queryFn = ({ signal }) => o2oCombinations(ocelId, params, requestOptions, signal);
|
|
1792
1939
|
return {
|
|
1793
1940
|
queryKey,
|
|
1794
1941
|
queryFn,
|
|
1795
|
-
enabled: !!
|
|
1942
|
+
enabled: !!ocelId,
|
|
1796
1943
|
staleTime: 3e5,
|
|
1797
1944
|
...queryOptions
|
|
1798
1945
|
};
|
|
1799
1946
|
};
|
|
1800
1947
|
/**
|
|
1801
|
-
* @summary
|
|
1948
|
+
* @summary Get O2O Combinations
|
|
1802
1949
|
*/
|
|
1803
|
-
function
|
|
1804
|
-
const queryOptions =
|
|
1950
|
+
function useO2oCombinations(ocelId, params, options, queryClient) {
|
|
1951
|
+
const queryOptions = getO2oCombinationsQueryOptions(ocelId, params, options);
|
|
1805
1952
|
return {
|
|
1806
1953
|
...useQuery(queryOptions, queryClient),
|
|
1807
1954
|
queryKey: queryOptions.queryKey
|
|
1808
1955
|
};
|
|
1809
1956
|
}
|
|
1810
1957
|
/**
|
|
1811
|
-
* @summary
|
|
1958
|
+
* @summary Get Quantity Info
|
|
1812
1959
|
*/
|
|
1813
|
-
const
|
|
1960
|
+
const quantityInfo = (ocelId, params, options, signal) => {
|
|
1814
1961
|
return customFetch$1({
|
|
1815
|
-
url: `/api/external/
|
|
1962
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/quantity/info`,
|
|
1816
1963
|
method: "GET",
|
|
1964
|
+
params,
|
|
1817
1965
|
...signal ? { signal } : {}
|
|
1818
1966
|
}, options);
|
|
1819
1967
|
};
|
|
1820
|
-
const
|
|
1821
|
-
return [`/api/external/
|
|
1968
|
+
const getQuantityInfoQueryKey = (ocelId, params) => {
|
|
1969
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/quantity/info`, ...params ? [params] : []];
|
|
1822
1970
|
};
|
|
1823
|
-
const
|
|
1971
|
+
const getQuantityInfoQueryOptions = (ocelId, params, options) => {
|
|
1824
1972
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1825
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1826
|
-
const queryFn = ({ signal }) =>
|
|
1973
|
+
const queryKey = queryOptions?.queryKey ?? getQuantityInfoQueryKey(ocelId, params);
|
|
1974
|
+
const queryFn = ({ signal }) => quantityInfo(ocelId, params, requestOptions, signal);
|
|
1827
1975
|
return {
|
|
1828
1976
|
queryKey,
|
|
1829
1977
|
queryFn,
|
|
1830
|
-
enabled: !!
|
|
1978
|
+
enabled: !!ocelId,
|
|
1831
1979
|
staleTime: 3e5,
|
|
1832
1980
|
...queryOptions
|
|
1833
1981
|
};
|
|
1834
1982
|
};
|
|
1835
1983
|
/**
|
|
1836
|
-
* @summary
|
|
1984
|
+
* @summary Get Quantity Info
|
|
1837
1985
|
*/
|
|
1838
|
-
function
|
|
1839
|
-
const queryOptions =
|
|
1986
|
+
function useQuantityInfo(ocelId, params, options, queryClient) {
|
|
1987
|
+
const queryOptions = getQuantityInfoQueryOptions(ocelId, params, options);
|
|
1840
1988
|
return {
|
|
1841
1989
|
...useQuery(queryOptions, queryClient),
|
|
1842
1990
|
queryKey: queryOptions.queryKey
|
|
1843
1991
|
};
|
|
1844
1992
|
}
|
|
1845
1993
|
/**
|
|
1846
|
-
* @summary
|
|
1994
|
+
* @summary Download OCEL
|
|
1847
1995
|
*/
|
|
1848
|
-
const
|
|
1996
|
+
const downloadOCEL = (ocelId, params, options, signal) => {
|
|
1849
1997
|
return customFetch$1({
|
|
1850
|
-
url: `/api/external/
|
|
1998
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/download`,
|
|
1851
1999
|
method: "GET",
|
|
2000
|
+
params,
|
|
1852
2001
|
...signal ? { signal } : {}
|
|
1853
2002
|
}, options);
|
|
1854
2003
|
};
|
|
1855
|
-
const
|
|
1856
|
-
return [`/api/external/
|
|
2004
|
+
const getDownloadOCELQueryKey = (ocelId, params) => {
|
|
2005
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/download`, ...params ? [params] : []];
|
|
1857
2006
|
};
|
|
1858
|
-
const
|
|
2007
|
+
const getDownloadOCELQueryOptions = (ocelId, params, options) => {
|
|
1859
2008
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1860
|
-
const queryKey = queryOptions?.queryKey ??
|
|
1861
|
-
const queryFn = ({ signal }) =>
|
|
2009
|
+
const queryKey = queryOptions?.queryKey ?? getDownloadOCELQueryKey(ocelId, params);
|
|
2010
|
+
const queryFn = ({ signal }) => downloadOCEL(ocelId, params, requestOptions, signal);
|
|
1862
2011
|
return {
|
|
1863
2012
|
queryKey,
|
|
1864
2013
|
queryFn,
|
|
1865
|
-
enabled: !!
|
|
2014
|
+
enabled: !!ocelId,
|
|
1866
2015
|
staleTime: 3e5,
|
|
1867
2016
|
...queryOptions
|
|
1868
2017
|
};
|
|
1869
2018
|
};
|
|
1870
2019
|
/**
|
|
1871
|
-
* @summary
|
|
2020
|
+
* @summary Download OCEL
|
|
1872
2021
|
*/
|
|
1873
|
-
function
|
|
1874
|
-
const queryOptions =
|
|
2022
|
+
function useDownloadOCEL(ocelId, params, options, queryClient) {
|
|
2023
|
+
const queryOptions = getDownloadOCELQueryOptions(ocelId, params, options);
|
|
1875
2024
|
return {
|
|
1876
2025
|
...useQuery(queryOptions, queryClient),
|
|
1877
2026
|
queryKey: queryOptions.queryKey
|
|
1878
2027
|
};
|
|
1879
2028
|
}
|
|
1880
2029
|
/**
|
|
1881
|
-
* @summary
|
|
2030
|
+
* @summary Download OCEL as a xes
|
|
1882
2031
|
*/
|
|
1883
|
-
const
|
|
2032
|
+
const downloadFlatLog = (ocelId, params, options, signal) => {
|
|
1884
2033
|
return customFetch$1({
|
|
1885
|
-
url: `/api/external/
|
|
1886
|
-
method: "
|
|
2034
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/download/xes`,
|
|
2035
|
+
method: "GET",
|
|
2036
|
+
params,
|
|
1887
2037
|
...signal ? { signal } : {}
|
|
1888
2038
|
}, options);
|
|
1889
2039
|
};
|
|
1890
|
-
const
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
}
|
|
1898
|
-
} : {
|
|
1899
|
-
mutation: { mutationKey },
|
|
1900
|
-
request: void 0
|
|
1901
|
-
};
|
|
1902
|
-
const mutationFn = (props) => {
|
|
1903
|
-
const { resourceId } = props ?? {};
|
|
1904
|
-
return deleteResource(resourceId, requestOptions);
|
|
1905
|
-
};
|
|
2040
|
+
const getDownloadFlatLogQueryKey = (ocelId, params) => {
|
|
2041
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/download/xes`, ...params ? [params] : []];
|
|
2042
|
+
};
|
|
2043
|
+
const getDownloadFlatLogQueryOptions = (ocelId, params, options) => {
|
|
2044
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
2045
|
+
const queryKey = queryOptions?.queryKey ?? getDownloadFlatLogQueryKey(ocelId, params);
|
|
2046
|
+
const queryFn = ({ signal }) => downloadFlatLog(ocelId, params, requestOptions, signal);
|
|
1906
2047
|
return {
|
|
1907
|
-
|
|
1908
|
-
|
|
2048
|
+
queryKey,
|
|
2049
|
+
queryFn,
|
|
2050
|
+
enabled: !!ocelId,
|
|
2051
|
+
staleTime: 3e5,
|
|
2052
|
+
...queryOptions
|
|
1909
2053
|
};
|
|
1910
2054
|
};
|
|
1911
2055
|
/**
|
|
1912
|
-
* @summary
|
|
2056
|
+
* @summary Download OCEL as a xes
|
|
1913
2057
|
*/
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
2058
|
+
function useDownloadFlatLog(ocelId, params, options, queryClient) {
|
|
2059
|
+
const queryOptions = getDownloadFlatLogQueryOptions(ocelId, params, options);
|
|
2060
|
+
return {
|
|
2061
|
+
...useQuery(queryOptions, queryClient),
|
|
2062
|
+
queryKey: queryOptions.queryKey
|
|
2063
|
+
};
|
|
2064
|
+
}
|
|
1917
2065
|
/**
|
|
1918
|
-
*
|
|
2066
|
+
* Filters the OCEL to the objects of `object_type` that follow any of the given `variant_ids`, then flattens that sub-log by `object_type` into a XES file (one trace per object).
|
|
2067
|
+
* @summary Download selected object variants as a flat XES log
|
|
1919
2068
|
*/
|
|
1920
|
-
const
|
|
2069
|
+
const downloadVariantFlatLog = (ocelId, params, options, signal) => {
|
|
1921
2070
|
return customFetch$1({
|
|
1922
|
-
url: `/api/external/
|
|
1923
|
-
method: "
|
|
2071
|
+
url: `/api/external/modules/ocel/v1/${ocelId}/objects/variants/download/xes`,
|
|
2072
|
+
method: "GET",
|
|
1924
2073
|
params,
|
|
1925
2074
|
...signal ? { signal } : {}
|
|
1926
2075
|
}, options);
|
|
1927
2076
|
};
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
}
|
|
1936
|
-
} : {
|
|
1937
|
-
mutation: { mutationKey },
|
|
1938
|
-
request: void 0
|
|
1939
|
-
};
|
|
1940
|
-
const mutationFn = (props) => {
|
|
1941
|
-
const { resourceId, params } = props ?? {};
|
|
1942
|
-
return renameResource(resourceId, params, requestOptions);
|
|
1943
|
-
};
|
|
2077
|
+
const getDownloadVariantFlatLogQueryKey = (ocelId, params) => {
|
|
2078
|
+
return [`/api/external/modules/ocel/v1/${ocelId}/objects/variants/download/xes`, ...params ? [params] : []];
|
|
2079
|
+
};
|
|
2080
|
+
const getDownloadVariantFlatLogQueryOptions = (ocelId, params, options) => {
|
|
2081
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
2082
|
+
const queryKey = queryOptions?.queryKey ?? getDownloadVariantFlatLogQueryKey(ocelId, params);
|
|
2083
|
+
const queryFn = ({ signal }) => downloadVariantFlatLog(ocelId, params, requestOptions, signal);
|
|
1944
2084
|
return {
|
|
1945
|
-
|
|
1946
|
-
|
|
2085
|
+
queryKey,
|
|
2086
|
+
queryFn,
|
|
2087
|
+
enabled: !!ocelId,
|
|
2088
|
+
staleTime: 3e5,
|
|
2089
|
+
...queryOptions
|
|
1947
2090
|
};
|
|
1948
2091
|
};
|
|
1949
2092
|
/**
|
|
1950
|
-
* @summary
|
|
2093
|
+
* @summary Download selected object variants as a flat XES log
|
|
1951
2094
|
*/
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
2095
|
+
function useDownloadVariantFlatLog(ocelId, params, options, queryClient) {
|
|
2096
|
+
const queryOptions = getDownloadVariantFlatLogQueryOptions(ocelId, params, options);
|
|
2097
|
+
return {
|
|
2098
|
+
...useQuery(queryOptions, queryClient),
|
|
2099
|
+
queryKey: queryOptions.queryKey
|
|
2100
|
+
};
|
|
2101
|
+
}
|
|
1955
2102
|
//#endregion
|
|
1956
|
-
export { AggregatedAttributesEntityType, DotVisLayoutEngine, DownloadOCELExt, E2oCombinationsDirection, E2oDirection,
|
|
2103
|
+
export { AggregatedAttributesEntityType, DotVisLayoutEngine, DownloadOCELExt, E2oCombinationsDirection, E2oDirection, GraphNodeLabelPos, GraphNodeShape, GraphvizLayoutConfigEngine, O2oCombinationsDirection, O2oDirection, TableColumnDataType, TaskState, ValueType, activities, aggregatedAttributes, attributeNames, createDiscoveryTask, deleteOcel, deletePlugin, deleteResource, disableDiscoveryMethod, discoveryTask, downloadFlatLog, downloadOCEL, downloadPluginResults, downloadResource, downloadResourceAsPnml, downloadVariantFlatLog, e2o, e2oCombinations, enableDiscoveryMethod, eventAttributes, eventCounts, eventIds, getActivitiesQueryKey, getActivitiesQueryOptions, getAggregatedAttributesQueryKey, getAggregatedAttributesQueryOptions, getAttributeNamesQueryKey, getAttributeNamesQueryOptions, getComputedValues, getCreateDiscoveryTaskMutationOptions, getDefaultOcel, getDeleteOcelMutationOptions, getDeletePluginMutationOptions, getDeleteResourceMutationOptions, getDisableDiscoveryMethodMutationOptions, getDiscoveryTaskQueryKey, getDiscoveryTaskQueryOptions, getDownloadFlatLogQueryKey, getDownloadFlatLogQueryOptions, getDownloadOCELQueryKey, getDownloadOCELQueryOptions, getDownloadPluginResultsMutationOptions, getDownloadResourceAsPnmlQueryKey, getDownloadResourceAsPnmlQueryOptions, getDownloadResourceQueryKey, getDownloadResourceQueryOptions, getDownloadVariantFlatLogQueryKey, getDownloadVariantFlatLogQueryOptions, getE2oCombinationsQueryKey, getE2oCombinationsQueryOptions, getE2oQueryKey, getE2oQueryOptions, getEnableDiscoveryMethodMutationOptions, getEventAttributesQueryKey, getEventAttributesQueryOptions, getEventCountsQueryKey, getEventCountsQueryOptions, getEventIdsQueryKey, getEventIdsQueryOptions, getExtensionMeta, getGetComputedValuesQueryKey, getGetComputedValuesQueryOptions, getGetDefaultOcelQueryKey, getGetDefaultOcelQueryOptions, getGetExtensionMetaQueryKey, getGetExtensionMetaQueryOptions, getGetOcelQueryKey, getGetOcelQueryOptions, getGetOcelsQueryKey, getGetOcelsQueryOptions, getGetPluginMethodQueryKey, getGetPluginMethodQueryOptions, getGetPluginQueryKey, getGetPluginQueryOptions, getGetResourceMetaQueryKey, getGetResourceMetaQueryOptions, getGetSystemTaskQueryKey, getGetSystemTaskQueryOptions, getGetSystemTasksQueryKey, getGetSystemTasksQueryOptions, getImportDefaultOcelMutationOptions, getListDiscoveryFiltersQueryKey, getListDiscoveryFiltersQueryOptions, getListDiscoveryMethodsQueryKey, getListDiscoveryMethodsQueryOptions, getLogoutMutationOptions, getO2oCombinationsQueryKey, getO2oCombinationsQueryOptions, getO2oQueryKey, getO2oQueryOptions, getObjectAttributesQueryKey, getObjectAttributesQueryOptions, getObjectCountsQueryKey, getObjectCountsQueryOptions, getObjectIdsQueryKey, getObjectIdsQueryOptions, getObjectTypesQueryKey, getObjectTypesQueryOptions, getObjectVariantsQueryKey, getObjectVariantsQueryOptions, getOcel, getOcels, getPlugin, getPluginMethod, getPluginResultQueryKey, getPluginResultQueryOptions, getPluginsQueryKey, getPluginsQueryOptions, getQuantityInfoQueryKey, getQuantityInfoQueryOptions, getRenameOcelMutationOptions, getRenameResourceMutationOptions, getResourceMeta, getResourceQueryKey, getResourceQueryOptions, getResourcesQueryKey, getResourcesQueryOptions, getRunPluginMutationOptions, getSaveDiscoveryMutationOptions, getSavePluginResultsMutationOptions, getSystemTask, getSystemTasks, getTimeInfoQueryKey, getTimeInfoQueryOptions, getUploadMutationOptions, getUploadResourceMutationOptions, importDefaultOcel, listDiscoveryFilters, listDiscoveryMethods, logout, o2o, o2oCombinations, objectAttributes, objectCounts, objectIds, objectTypes, objectVariants, pluginResult, plugins, quantityInfo, renameOcel, renameResource, resource, resources, runPlugin, saveDiscovery, savePluginResults, timeInfo, upload, uploadResource, useActivities, useAggregatedAttributes, useAttributeNames, useCreateDiscoveryTask, useDeleteOcel, useDeletePlugin, useDeleteResource, useDisableDiscoveryMethod, useDiscoveryTask, useDownloadFlatLog, useDownloadOCEL, useDownloadPluginResults, useDownloadResource, useDownloadResourceAsPnml, useDownloadVariantFlatLog, useE2o, useE2oCombinations, useEnableDiscoveryMethod, useEventAttributes, useEventCounts, useEventIds, useGetComputedValues, useGetDefaultOcel, useGetExtensionMeta, useGetOcel, useGetOcels, useGetPlugin, useGetPluginMethod, useGetResourceMeta, useGetSystemTask, useGetSystemTasks, useImportDefaultOcel, useListDiscoveryFilters, useListDiscoveryMethods, useLogout, useO2o, useO2oCombinations, useObjectAttributes, useObjectCounts, useObjectIds, useObjectTypes, useObjectVariants, usePluginResult, usePlugins, useQuantityInfo, useRenameOcel, useRenameResource, useResource, useResources, useRunPlugin, useSaveDiscovery, useSavePluginResults, useTimeInfo, useUpload, useUploadResource };
|