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