@ocelescope/api-base 0.2.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +363 -226
- package/dist/index.js +258 -192
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const customFetch$1 = async (config, options) => customFetch(config, options);
|
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/api/base/index.ts
|
|
7
7
|
/**
|
|
8
|
-
* Generated by orval v8.
|
|
8
|
+
* Generated by orval v8.22.0 🍺
|
|
9
9
|
* Do not edit manually.
|
|
10
10
|
* Ocelescope Backend
|
|
11
11
|
* OpenAPI spec version: 0.1
|
|
@@ -25,11 +25,41 @@ const GraphNodeShape = {
|
|
|
25
25
|
diamond: "diamond",
|
|
26
26
|
hexagon: "hexagon"
|
|
27
27
|
};
|
|
28
|
+
const NodeStyleInnerSymbol = {
|
|
29
|
+
triangle: "triangle",
|
|
30
|
+
square: "square"
|
|
31
|
+
};
|
|
28
32
|
const GraphNodeLabelPos = {
|
|
29
33
|
top: "top",
|
|
30
34
|
center: "center",
|
|
31
35
|
bottom: "bottom"
|
|
32
36
|
};
|
|
37
|
+
const GraphEdgeStartArrow = {
|
|
38
|
+
triangle: "triangle",
|
|
39
|
+
"circle-triangle": "circle-triangle",
|
|
40
|
+
"triangle-backcurve": "triangle-backcurve",
|
|
41
|
+
tee: "tee",
|
|
42
|
+
circle: "circle",
|
|
43
|
+
chevron: "chevron",
|
|
44
|
+
"triangle-tee": "triangle-tee",
|
|
45
|
+
"triangle-cross": "triangle-cross",
|
|
46
|
+
vee: "vee",
|
|
47
|
+
square: "square",
|
|
48
|
+
diamond: "diamond"
|
|
49
|
+
};
|
|
50
|
+
const GraphEdgeEndArrow = {
|
|
51
|
+
triangle: "triangle",
|
|
52
|
+
"circle-triangle": "circle-triangle",
|
|
53
|
+
"triangle-backcurve": "triangle-backcurve",
|
|
54
|
+
tee: "tee",
|
|
55
|
+
circle: "circle",
|
|
56
|
+
chevron: "chevron",
|
|
57
|
+
"triangle-tee": "triangle-tee",
|
|
58
|
+
"triangle-cross": "triangle-cross",
|
|
59
|
+
vee: "vee",
|
|
60
|
+
square: "square",
|
|
61
|
+
diamond: "diamond"
|
|
62
|
+
};
|
|
33
63
|
const GraphvizLayoutConfigEngine = {
|
|
34
64
|
circo: "circo",
|
|
35
65
|
dot: "dot",
|
|
@@ -61,8 +91,20 @@ const DotVisLayoutEngine = {
|
|
|
61
91
|
nop: "nop",
|
|
62
92
|
nop2: "nop2"
|
|
63
93
|
};
|
|
94
|
+
const withQueryKey$1 = (query, queryKey) => {
|
|
95
|
+
const result = { queryKey };
|
|
96
|
+
for (const key of Object.keys(query)) {
|
|
97
|
+
if (key === "queryKey") continue;
|
|
98
|
+
Object.defineProperty(result, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
configurable: true,
|
|
101
|
+
get: () => query[key]
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
};
|
|
64
106
|
/**
|
|
65
|
-
* @summary Upload
|
|
107
|
+
* @summary Upload logs, plugins, or resources
|
|
66
108
|
*/
|
|
67
109
|
const upload = (bodyUpload, options, signal) => {
|
|
68
110
|
const formData = new FormData();
|
|
@@ -70,6 +112,7 @@ const upload = (bodyUpload, options, signal) => {
|
|
|
70
112
|
return customFetch$1({
|
|
71
113
|
url: `/api/external/session/upload`,
|
|
72
114
|
method: "POST",
|
|
115
|
+
headers: { "Content-Type": "multipart/form-data" },
|
|
73
116
|
data: formData,
|
|
74
117
|
...signal ? { signal } : {}
|
|
75
118
|
}, options);
|
|
@@ -96,7 +139,7 @@ const getUploadMutationOptions = (options) => {
|
|
|
96
139
|
};
|
|
97
140
|
};
|
|
98
141
|
/**
|
|
99
|
-
* @summary Upload
|
|
142
|
+
* @summary Upload logs, plugins, or resources
|
|
100
143
|
*/
|
|
101
144
|
const useUpload = (options, queryClient) => {
|
|
102
145
|
return useMutation(getUploadMutationOptions(options), queryClient);
|
|
@@ -196,7 +239,7 @@ const getDiscoveryTaskQueryOptions = (taskId, options) => {
|
|
|
196
239
|
return {
|
|
197
240
|
queryKey,
|
|
198
241
|
queryFn,
|
|
199
|
-
enabled:
|
|
242
|
+
enabled: taskId !== null && taskId !== void 0,
|
|
200
243
|
staleTime: 3e5,
|
|
201
244
|
...queryOptions
|
|
202
245
|
};
|
|
@@ -206,10 +249,8 @@ const getDiscoveryTaskQueryOptions = (taskId, options) => {
|
|
|
206
249
|
*/
|
|
207
250
|
function useDiscoveryTask(taskId, options, queryClient) {
|
|
208
251
|
const queryOptions = getDiscoveryTaskQueryOptions(taskId, options);
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
queryKey: queryOptions.queryKey
|
|
212
|
-
};
|
|
252
|
+
const query = useQuery(queryOptions, queryClient);
|
|
253
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
213
254
|
}
|
|
214
255
|
/**
|
|
215
256
|
* @summary Save Discovery
|
|
@@ -277,10 +318,8 @@ const getListDiscoveryFiltersQueryOptions = (options) => {
|
|
|
277
318
|
*/
|
|
278
319
|
function useListDiscoveryFilters(options, queryClient) {
|
|
279
320
|
const queryOptions = getListDiscoveryFiltersQueryOptions(options);
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
queryKey: queryOptions.queryKey
|
|
283
|
-
};
|
|
321
|
+
const query = useQuery(queryOptions, queryClient);
|
|
322
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
284
323
|
}
|
|
285
324
|
/**
|
|
286
325
|
* @summary List discovery methods
|
|
@@ -311,10 +350,8 @@ const getListDiscoveryMethodsQueryOptions = (options) => {
|
|
|
311
350
|
*/
|
|
312
351
|
function useListDiscoveryMethods(options, queryClient) {
|
|
313
352
|
const queryOptions = getListDiscoveryMethodsQueryOptions(options);
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
queryKey: queryOptions.queryKey
|
|
317
|
-
};
|
|
353
|
+
const query = useQuery(queryOptions, queryClient);
|
|
354
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
318
355
|
}
|
|
319
356
|
/**
|
|
320
357
|
* @summary Disable a discovery method
|
|
@@ -420,10 +457,8 @@ const getGetSystemTasksQueryOptions = (params, options) => {
|
|
|
420
457
|
*/
|
|
421
458
|
function useGetSystemTasks(params, options, queryClient) {
|
|
422
459
|
const queryOptions = getGetSystemTasksQueryOptions(params, options);
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
queryKey: queryOptions.queryKey
|
|
426
|
-
};
|
|
460
|
+
const query = useQuery(queryOptions, queryClient);
|
|
461
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
427
462
|
}
|
|
428
463
|
/**
|
|
429
464
|
* @summary returns the task of a given taskId
|
|
@@ -445,7 +480,7 @@ const getGetSystemTaskQueryOptions = (taskId, options) => {
|
|
|
445
480
|
return {
|
|
446
481
|
queryKey,
|
|
447
482
|
queryFn,
|
|
448
|
-
enabled:
|
|
483
|
+
enabled: taskId !== null && taskId !== void 0,
|
|
449
484
|
staleTime: 3e5,
|
|
450
485
|
...queryOptions
|
|
451
486
|
};
|
|
@@ -455,10 +490,8 @@ const getGetSystemTaskQueryOptions = (taskId, options) => {
|
|
|
455
490
|
*/
|
|
456
491
|
function useGetSystemTask(taskId, options, queryClient) {
|
|
457
492
|
const queryOptions = getGetSystemTaskQueryOptions(taskId, options);
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
queryKey: queryOptions.queryKey
|
|
461
|
-
};
|
|
493
|
+
const query = useQuery(queryOptions, queryClient);
|
|
494
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
462
495
|
}
|
|
463
496
|
/**
|
|
464
497
|
* @summary Get Plugins
|
|
@@ -489,10 +522,8 @@ const getPluginsQueryOptions = (options) => {
|
|
|
489
522
|
*/
|
|
490
523
|
function usePlugins(options, queryClient) {
|
|
491
524
|
const queryOptions = getPluginsQueryOptions(options);
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
queryKey: queryOptions.queryKey
|
|
495
|
-
};
|
|
525
|
+
const query = useQuery(queryOptions, queryClient);
|
|
526
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
496
527
|
}
|
|
497
528
|
/**
|
|
498
529
|
* @summary Get Plugin
|
|
@@ -514,7 +545,7 @@ const getGetPluginQueryOptions = (pluginId, options) => {
|
|
|
514
545
|
return {
|
|
515
546
|
queryKey,
|
|
516
547
|
queryFn,
|
|
517
|
-
enabled:
|
|
548
|
+
enabled: pluginId !== null && pluginId !== void 0,
|
|
518
549
|
staleTime: 3e5,
|
|
519
550
|
...queryOptions
|
|
520
551
|
};
|
|
@@ -524,10 +555,8 @@ const getGetPluginQueryOptions = (pluginId, options) => {
|
|
|
524
555
|
*/
|
|
525
556
|
function useGetPlugin(pluginId, options, queryClient) {
|
|
526
557
|
const queryOptions = getGetPluginQueryOptions(pluginId, options);
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
queryKey: queryOptions.queryKey
|
|
530
|
-
};
|
|
558
|
+
const query = useQuery(queryOptions, queryClient);
|
|
559
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
531
560
|
}
|
|
532
561
|
/**
|
|
533
562
|
* @summary Delete Plugin
|
|
@@ -586,7 +615,7 @@ const getGetPluginMethodQueryOptions = (pluginId, methodName, options) => {
|
|
|
586
615
|
return {
|
|
587
616
|
queryKey,
|
|
588
617
|
queryFn,
|
|
589
|
-
enabled:
|
|
618
|
+
enabled: pluginId !== null && pluginId !== void 0 && methodName !== null && methodName !== void 0,
|
|
590
619
|
staleTime: 3e5,
|
|
591
620
|
...queryOptions
|
|
592
621
|
};
|
|
@@ -596,10 +625,8 @@ const getGetPluginMethodQueryOptions = (pluginId, methodName, options) => {
|
|
|
596
625
|
*/
|
|
597
626
|
function useGetPluginMethod(pluginId, methodName, options, queryClient) {
|
|
598
627
|
const queryOptions = getGetPluginMethodQueryOptions(pluginId, methodName, options);
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
queryKey: queryOptions.queryKey
|
|
602
|
-
};
|
|
628
|
+
const query = useQuery(queryOptions, queryClient);
|
|
629
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
603
630
|
}
|
|
604
631
|
/**
|
|
605
632
|
* @summary Run Plugin
|
|
@@ -660,7 +687,7 @@ const getPluginResultQueryOptions = (pluginId, methodName, taskId, options) => {
|
|
|
660
687
|
return {
|
|
661
688
|
queryKey,
|
|
662
689
|
queryFn,
|
|
663
|
-
enabled:
|
|
690
|
+
enabled: pluginId !== null && pluginId !== void 0 && methodName !== null && methodName !== void 0 && taskId !== null && taskId !== void 0,
|
|
664
691
|
staleTime: 3e5,
|
|
665
692
|
...queryOptions
|
|
666
693
|
};
|
|
@@ -670,10 +697,8 @@ const getPluginResultQueryOptions = (pluginId, methodName, taskId, options) => {
|
|
|
670
697
|
*/
|
|
671
698
|
function usePluginResult(pluginId, methodName, taskId, options, queryClient) {
|
|
672
699
|
const queryOptions = getPluginResultQueryOptions(pluginId, methodName, taskId, options);
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
queryKey: queryOptions.queryKey
|
|
676
|
-
};
|
|
700
|
+
const query = useQuery(queryOptions, queryClient);
|
|
701
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
677
702
|
}
|
|
678
703
|
/**
|
|
679
704
|
* Save the selected results into the session as OCELs / resources.
|
|
@@ -768,7 +793,11 @@ const getComputedValues = (pluginId, methodName, provider, bodyGetComputedValues
|
|
|
768
793
|
}, options);
|
|
769
794
|
};
|
|
770
795
|
const getGetComputedValuesQueryKey = (pluginId, methodName, provider, bodyGetComputedValues) => {
|
|
771
|
-
return [
|
|
796
|
+
return [
|
|
797
|
+
"POST",
|
|
798
|
+
`/api/external/plugins/${pluginId}/${methodName}/computed/${provider}`,
|
|
799
|
+
bodyGetComputedValues
|
|
800
|
+
];
|
|
772
801
|
};
|
|
773
802
|
const getGetComputedValuesQueryOptions = (pluginId, methodName, provider, bodyGetComputedValues, options) => {
|
|
774
803
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
@@ -777,7 +806,7 @@ const getGetComputedValuesQueryOptions = (pluginId, methodName, provider, bodyGe
|
|
|
777
806
|
return {
|
|
778
807
|
queryKey,
|
|
779
808
|
queryFn,
|
|
780
|
-
enabled:
|
|
809
|
+
enabled: pluginId !== null && pluginId !== void 0 && methodName !== null && methodName !== void 0 && provider !== null && provider !== void 0,
|
|
781
810
|
staleTime: 3e5,
|
|
782
811
|
...queryOptions
|
|
783
812
|
};
|
|
@@ -787,10 +816,8 @@ const getGetComputedValuesQueryOptions = (pluginId, methodName, provider, bodyGe
|
|
|
787
816
|
*/
|
|
788
817
|
function useGetComputedValues(pluginId, methodName, provider, bodyGetComputedValues, options, queryClient) {
|
|
789
818
|
const queryOptions = getGetComputedValuesQueryOptions(pluginId, methodName, provider, bodyGetComputedValues, options);
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
queryKey: queryOptions.queryKey
|
|
793
|
-
};
|
|
819
|
+
const query = useQuery(queryOptions, queryClient);
|
|
820
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
794
821
|
}
|
|
795
822
|
/**
|
|
796
823
|
* @summary Get Resources
|
|
@@ -822,10 +849,8 @@ const getResourcesQueryOptions = (params, options) => {
|
|
|
822
849
|
*/
|
|
823
850
|
function useResources(params, options, queryClient) {
|
|
824
851
|
const queryOptions = getResourcesQueryOptions(params, options);
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
queryKey: queryOptions.queryKey
|
|
828
|
-
};
|
|
852
|
+
const query = useQuery(queryOptions, queryClient);
|
|
853
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
829
854
|
}
|
|
830
855
|
/**
|
|
831
856
|
* @summary Upload Resource
|
|
@@ -836,6 +861,7 @@ const uploadResource = (bodyUploadResource, options, signal) => {
|
|
|
836
861
|
return customFetch$1({
|
|
837
862
|
url: `/api/external/resources`,
|
|
838
863
|
method: "POST",
|
|
864
|
+
headers: { "Content-Type": "multipart/form-data" },
|
|
839
865
|
data: formData,
|
|
840
866
|
...signal ? { signal } : {}
|
|
841
867
|
}, options);
|
|
@@ -896,10 +922,8 @@ const getGetResourceMetaQueryOptions = (options) => {
|
|
|
896
922
|
*/
|
|
897
923
|
function useGetResourceMeta(options, queryClient) {
|
|
898
924
|
const queryOptions = getGetResourceMetaQueryOptions(options);
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
queryKey: queryOptions.queryKey
|
|
902
|
-
};
|
|
925
|
+
const query = useQuery(queryOptions, queryClient);
|
|
926
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
903
927
|
}
|
|
904
928
|
/**
|
|
905
929
|
* @summary Download Resource
|
|
@@ -921,7 +945,7 @@ const getDownloadResourceQueryOptions = (resourceId, options) => {
|
|
|
921
945
|
return {
|
|
922
946
|
queryKey,
|
|
923
947
|
queryFn,
|
|
924
|
-
enabled:
|
|
948
|
+
enabled: resourceId !== null && resourceId !== void 0,
|
|
925
949
|
staleTime: 3e5,
|
|
926
950
|
...queryOptions
|
|
927
951
|
};
|
|
@@ -931,10 +955,8 @@ const getDownloadResourceQueryOptions = (resourceId, options) => {
|
|
|
931
955
|
*/
|
|
932
956
|
function useDownloadResource(resourceId, options, queryClient) {
|
|
933
957
|
const queryOptions = getDownloadResourceQueryOptions(resourceId, options);
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
queryKey: queryOptions.queryKey
|
|
937
|
-
};
|
|
958
|
+
const query = useQuery(queryOptions, queryClient);
|
|
959
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
938
960
|
}
|
|
939
961
|
/**
|
|
940
962
|
* @summary Download Resource As Pnml
|
|
@@ -956,7 +978,7 @@ const getDownloadResourceAsPnmlQueryOptions = (resourceId, options) => {
|
|
|
956
978
|
return {
|
|
957
979
|
queryKey,
|
|
958
980
|
queryFn,
|
|
959
|
-
enabled:
|
|
981
|
+
enabled: resourceId !== null && resourceId !== void 0,
|
|
960
982
|
staleTime: 3e5,
|
|
961
983
|
...queryOptions
|
|
962
984
|
};
|
|
@@ -966,10 +988,8 @@ const getDownloadResourceAsPnmlQueryOptions = (resourceId, options) => {
|
|
|
966
988
|
*/
|
|
967
989
|
function useDownloadResourceAsPnml(resourceId, options, queryClient) {
|
|
968
990
|
const queryOptions = getDownloadResourceAsPnmlQueryOptions(resourceId, options);
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
queryKey: queryOptions.queryKey
|
|
972
|
-
};
|
|
991
|
+
const query = useQuery(queryOptions, queryClient);
|
|
992
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
973
993
|
}
|
|
974
994
|
/**
|
|
975
995
|
* @summary Get Resource
|
|
@@ -991,7 +1011,7 @@ const getResourceQueryOptions = (resourceId, options) => {
|
|
|
991
1011
|
return {
|
|
992
1012
|
queryKey,
|
|
993
1013
|
queryFn,
|
|
994
|
-
enabled:
|
|
1014
|
+
enabled: resourceId !== null && resourceId !== void 0,
|
|
995
1015
|
staleTime: 3e5,
|
|
996
1016
|
...queryOptions
|
|
997
1017
|
};
|
|
@@ -1001,10 +1021,8 @@ const getResourceQueryOptions = (resourceId, options) => {
|
|
|
1001
1021
|
*/
|
|
1002
1022
|
function useResource(resourceId, options, queryClient) {
|
|
1003
1023
|
const queryOptions = getResourceQueryOptions(resourceId, options);
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
queryKey: queryOptions.queryKey
|
|
1007
|
-
};
|
|
1024
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1025
|
+
return withQueryKey$1(query, queryOptions.queryKey);
|
|
1008
1026
|
}
|
|
1009
1027
|
/**
|
|
1010
1028
|
* @summary Delete Resource
|
|
@@ -1084,7 +1102,7 @@ const useRenameResource = (options, queryClient) => {
|
|
|
1084
1102
|
//#endregion
|
|
1085
1103
|
//#region src/api/ocel/index.ts
|
|
1086
1104
|
/**
|
|
1087
|
-
* Generated by orval v8.
|
|
1105
|
+
* Generated by orval v8.22.0 🍺
|
|
1088
1106
|
* Do not edit manually.
|
|
1089
1107
|
* OCEL
|
|
1090
1108
|
* OpenAPI spec version: 1.0
|
|
@@ -1101,27 +1119,123 @@ const AggregatedAttributesEntityType = {
|
|
|
1101
1119
|
events: "events",
|
|
1102
1120
|
objects: "objects"
|
|
1103
1121
|
};
|
|
1122
|
+
const AggregatedAttributesOcelVersion = {
|
|
1123
|
+
original: "original",
|
|
1124
|
+
filtered: "filtered"
|
|
1125
|
+
};
|
|
1126
|
+
const ObjectAttributesOcelVersion = {
|
|
1127
|
+
original: "original",
|
|
1128
|
+
filtered: "filtered"
|
|
1129
|
+
};
|
|
1130
|
+
const EventAttributesOcelVersion = {
|
|
1131
|
+
original: "original",
|
|
1132
|
+
filtered: "filtered"
|
|
1133
|
+
};
|
|
1134
|
+
const AttributeNamesEntityType = {
|
|
1135
|
+
events: "events",
|
|
1136
|
+
objects: "objects"
|
|
1137
|
+
};
|
|
1138
|
+
const AttributeNamesOcelVersion = {
|
|
1139
|
+
original: "original",
|
|
1140
|
+
filtered: "filtered"
|
|
1141
|
+
};
|
|
1142
|
+
const ObjectTypesOcelVersion = {
|
|
1143
|
+
original: "original",
|
|
1144
|
+
filtered: "filtered"
|
|
1145
|
+
};
|
|
1146
|
+
const ObjectCountsOcelVersion = {
|
|
1147
|
+
original: "original",
|
|
1148
|
+
filtered: "filtered"
|
|
1149
|
+
};
|
|
1150
|
+
const ObjectIdsOcelVersion = {
|
|
1151
|
+
original: "original",
|
|
1152
|
+
filtered: "filtered"
|
|
1153
|
+
};
|
|
1154
|
+
const ObjectVariantsOcelVersion = {
|
|
1155
|
+
original: "original",
|
|
1156
|
+
filtered: "filtered"
|
|
1157
|
+
};
|
|
1158
|
+
const ActivitiesOcelVersion = {
|
|
1159
|
+
original: "original",
|
|
1160
|
+
filtered: "filtered"
|
|
1161
|
+
};
|
|
1162
|
+
const EventCountsOcelVersion = {
|
|
1163
|
+
original: "original",
|
|
1164
|
+
filtered: "filtered"
|
|
1165
|
+
};
|
|
1166
|
+
const EventIdsOcelVersion = {
|
|
1167
|
+
original: "original",
|
|
1168
|
+
filtered: "filtered"
|
|
1169
|
+
};
|
|
1170
|
+
const TimeInfoOcelVersion = {
|
|
1171
|
+
original: "original",
|
|
1172
|
+
filtered: "filtered"
|
|
1173
|
+
};
|
|
1104
1174
|
const E2oDirection = {
|
|
1105
1175
|
source: "source",
|
|
1106
1176
|
target: "target"
|
|
1107
1177
|
};
|
|
1178
|
+
const E2oOcelVersion = {
|
|
1179
|
+
original: "original",
|
|
1180
|
+
filtered: "filtered"
|
|
1181
|
+
};
|
|
1108
1182
|
const O2oDirection = {
|
|
1109
1183
|
source: "source",
|
|
1110
1184
|
target: "target"
|
|
1111
1185
|
};
|
|
1186
|
+
const O2oOcelVersion = {
|
|
1187
|
+
original: "original",
|
|
1188
|
+
filtered: "filtered"
|
|
1189
|
+
};
|
|
1112
1190
|
const E2oCombinationsDirection = {
|
|
1113
1191
|
source: "source",
|
|
1114
1192
|
target: "target"
|
|
1115
1193
|
};
|
|
1194
|
+
const E2oCombinationsOcelVersion = {
|
|
1195
|
+
original: "original",
|
|
1196
|
+
filtered: "filtered"
|
|
1197
|
+
};
|
|
1116
1198
|
const O2oCombinationsDirection = {
|
|
1117
1199
|
source: "source",
|
|
1118
1200
|
target: "target"
|
|
1119
1201
|
};
|
|
1202
|
+
const O2oCombinationsOcelVersion = {
|
|
1203
|
+
original: "original",
|
|
1204
|
+
filtered: "filtered"
|
|
1205
|
+
};
|
|
1206
|
+
const QuantityInfoOcelVersion = {
|
|
1207
|
+
original: "original",
|
|
1208
|
+
filtered: "filtered"
|
|
1209
|
+
};
|
|
1120
1210
|
const DownloadOCELExt = {
|
|
1121
1211
|
xml: ".xml",
|
|
1122
1212
|
json: ".json",
|
|
1123
1213
|
sqlite: ".sqlite"
|
|
1124
1214
|
};
|
|
1215
|
+
const DownloadOCELOcelVersion = {
|
|
1216
|
+
original: "original",
|
|
1217
|
+
filtered: "filtered"
|
|
1218
|
+
};
|
|
1219
|
+
const DownloadFlatLogOcelVersion = {
|
|
1220
|
+
original: "original",
|
|
1221
|
+
filtered: "filtered"
|
|
1222
|
+
};
|
|
1223
|
+
const DownloadVariantFlatLogOcelVersion = {
|
|
1224
|
+
original: "original",
|
|
1225
|
+
filtered: "filtered"
|
|
1226
|
+
};
|
|
1227
|
+
const withQueryKey = (query, queryKey) => {
|
|
1228
|
+
const result = { queryKey };
|
|
1229
|
+
for (const key of Object.keys(query)) {
|
|
1230
|
+
if (key === "queryKey") continue;
|
|
1231
|
+
Object.defineProperty(result, key, {
|
|
1232
|
+
enumerable: true,
|
|
1233
|
+
configurable: true,
|
|
1234
|
+
get: () => query[key]
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
return result;
|
|
1238
|
+
};
|
|
1125
1239
|
/**
|
|
1126
1240
|
* Returns metadata for all uploaded OCELs along with any OCEL files currently being imported.
|
|
1127
1241
|
* @summary List uploaded and uploading OCELs
|
|
@@ -1153,10 +1267,8 @@ const getGetOcelsQueryOptions = (params, options) => {
|
|
|
1153
1267
|
*/
|
|
1154
1268
|
function useGetOcels(params, options, queryClient) {
|
|
1155
1269
|
const queryOptions = getGetOcelsQueryOptions(params, options);
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
queryKey: queryOptions.queryKey
|
|
1159
|
-
};
|
|
1270
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1271
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1160
1272
|
}
|
|
1161
1273
|
/**
|
|
1162
1274
|
* @summary Get default OCEL metadata
|
|
@@ -1188,10 +1300,8 @@ const getGetDefaultOcelQueryOptions = (params, options) => {
|
|
|
1188
1300
|
*/
|
|
1189
1301
|
function useGetDefaultOcel(params, options, queryClient) {
|
|
1190
1302
|
const queryOptions = getGetDefaultOcelQueryOptions(params, options);
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
queryKey: queryOptions.queryKey
|
|
1194
|
-
};
|
|
1303
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1304
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1195
1305
|
}
|
|
1196
1306
|
/**
|
|
1197
1307
|
* @summary Import default OCEL
|
|
@@ -1260,10 +1370,8 @@ const getGetExtensionMetaQueryOptions = (options) => {
|
|
|
1260
1370
|
*/
|
|
1261
1371
|
function useGetExtensionMeta(options, queryClient) {
|
|
1262
1372
|
const queryOptions = getGetExtensionMetaQueryOptions(options);
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
queryKey: queryOptions.queryKey
|
|
1266
|
-
};
|
|
1373
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1374
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1267
1375
|
}
|
|
1268
1376
|
/**
|
|
1269
1377
|
* @summary Get general information about a OCEL
|
|
@@ -1285,7 +1393,7 @@ const getGetOcelQueryOptions = (ocelId, options) => {
|
|
|
1285
1393
|
return {
|
|
1286
1394
|
queryKey,
|
|
1287
1395
|
queryFn,
|
|
1288
|
-
enabled:
|
|
1396
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1289
1397
|
staleTime: 3e5,
|
|
1290
1398
|
...queryOptions
|
|
1291
1399
|
};
|
|
@@ -1295,10 +1403,8 @@ const getGetOcelQueryOptions = (ocelId, options) => {
|
|
|
1295
1403
|
*/
|
|
1296
1404
|
function useGetOcel(ocelId, options, queryClient) {
|
|
1297
1405
|
const queryOptions = getGetOcelQueryOptions(ocelId, options);
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
queryKey: queryOptions.queryKey
|
|
1301
|
-
};
|
|
1406
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1407
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1302
1408
|
}
|
|
1303
1409
|
/**
|
|
1304
1410
|
* Deletes the uploaded OCEL with the given `ocel_id`.
|
|
@@ -1398,7 +1504,7 @@ const getAggregatedAttributesQueryOptions = (ocelId, params, options) => {
|
|
|
1398
1504
|
return {
|
|
1399
1505
|
queryKey,
|
|
1400
1506
|
queryFn,
|
|
1401
|
-
enabled:
|
|
1507
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1402
1508
|
staleTime: 3e5,
|
|
1403
1509
|
...queryOptions
|
|
1404
1510
|
};
|
|
@@ -1408,10 +1514,8 @@ const getAggregatedAttributesQueryOptions = (ocelId, params, options) => {
|
|
|
1408
1514
|
*/
|
|
1409
1515
|
function useAggregatedAttributes(ocelId, params, options, queryClient) {
|
|
1410
1516
|
const queryOptions = getAggregatedAttributesQueryOptions(ocelId, params, options);
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
queryKey: queryOptions.queryKey
|
|
1414
|
-
};
|
|
1517
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1518
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1415
1519
|
}
|
|
1416
1520
|
/**
|
|
1417
1521
|
* @summary Get Object Attributes
|
|
@@ -1434,7 +1538,7 @@ const getObjectAttributesQueryOptions = (ocelId, params, options) => {
|
|
|
1434
1538
|
return {
|
|
1435
1539
|
queryKey,
|
|
1436
1540
|
queryFn,
|
|
1437
|
-
enabled:
|
|
1541
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1438
1542
|
staleTime: 3e5,
|
|
1439
1543
|
...queryOptions
|
|
1440
1544
|
};
|
|
@@ -1444,10 +1548,8 @@ const getObjectAttributesQueryOptions = (ocelId, params, options) => {
|
|
|
1444
1548
|
*/
|
|
1445
1549
|
function useObjectAttributes(ocelId, params, options, queryClient) {
|
|
1446
1550
|
const queryOptions = getObjectAttributesQueryOptions(ocelId, params, options);
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
queryKey: queryOptions.queryKey
|
|
1450
|
-
};
|
|
1551
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1552
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1451
1553
|
}
|
|
1452
1554
|
/**
|
|
1453
1555
|
* @summary Get Event Attributes
|
|
@@ -1470,7 +1572,7 @@ const getEventAttributesQueryOptions = (ocelId, params, options) => {
|
|
|
1470
1572
|
return {
|
|
1471
1573
|
queryKey,
|
|
1472
1574
|
queryFn,
|
|
1473
|
-
enabled:
|
|
1575
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1474
1576
|
staleTime: 3e5,
|
|
1475
1577
|
...queryOptions
|
|
1476
1578
|
};
|
|
@@ -1480,10 +1582,8 @@ const getEventAttributesQueryOptions = (ocelId, params, options) => {
|
|
|
1480
1582
|
*/
|
|
1481
1583
|
function useEventAttributes(ocelId, params, options, queryClient) {
|
|
1482
1584
|
const queryOptions = getEventAttributesQueryOptions(ocelId, params, options);
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
queryKey: queryOptions.queryKey
|
|
1486
|
-
};
|
|
1585
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1586
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1487
1587
|
}
|
|
1488
1588
|
/**
|
|
1489
1589
|
* @summary Get Attribute Names
|
|
@@ -1506,7 +1606,7 @@ const getAttributeNamesQueryOptions = (ocelId, params, options) => {
|
|
|
1506
1606
|
return {
|
|
1507
1607
|
queryKey,
|
|
1508
1608
|
queryFn,
|
|
1509
|
-
enabled:
|
|
1609
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1510
1610
|
staleTime: 3e5,
|
|
1511
1611
|
...queryOptions
|
|
1512
1612
|
};
|
|
@@ -1516,10 +1616,8 @@ const getAttributeNamesQueryOptions = (ocelId, params, options) => {
|
|
|
1516
1616
|
*/
|
|
1517
1617
|
function useAttributeNames(ocelId, params, options, queryClient) {
|
|
1518
1618
|
const queryOptions = getAttributeNamesQueryOptions(ocelId, params, options);
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
queryKey: queryOptions.queryKey
|
|
1522
|
-
};
|
|
1619
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1620
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1523
1621
|
}
|
|
1524
1622
|
/**
|
|
1525
1623
|
* @summary Get Object Types
|
|
@@ -1542,7 +1640,7 @@ const getObjectTypesQueryOptions = (ocelId, params, options) => {
|
|
|
1542
1640
|
return {
|
|
1543
1641
|
queryKey,
|
|
1544
1642
|
queryFn,
|
|
1545
|
-
enabled:
|
|
1643
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1546
1644
|
staleTime: 3e5,
|
|
1547
1645
|
...queryOptions
|
|
1548
1646
|
};
|
|
@@ -1552,10 +1650,8 @@ const getObjectTypesQueryOptions = (ocelId, params, options) => {
|
|
|
1552
1650
|
*/
|
|
1553
1651
|
function useObjectTypes(ocelId, params, options, queryClient) {
|
|
1554
1652
|
const queryOptions = getObjectTypesQueryOptions(ocelId, params, options);
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
queryKey: queryOptions.queryKey
|
|
1558
|
-
};
|
|
1653
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1654
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1559
1655
|
}
|
|
1560
1656
|
/**
|
|
1561
1657
|
* @summary Get Object Counts
|
|
@@ -1578,7 +1674,7 @@ const getObjectCountsQueryOptions = (ocelId, params, options) => {
|
|
|
1578
1674
|
return {
|
|
1579
1675
|
queryKey,
|
|
1580
1676
|
queryFn,
|
|
1581
|
-
enabled:
|
|
1677
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1582
1678
|
staleTime: 3e5,
|
|
1583
1679
|
...queryOptions
|
|
1584
1680
|
};
|
|
@@ -1588,10 +1684,8 @@ const getObjectCountsQueryOptions = (ocelId, params, options) => {
|
|
|
1588
1684
|
*/
|
|
1589
1685
|
function useObjectCounts(ocelId, params, options, queryClient) {
|
|
1590
1686
|
const queryOptions = getObjectCountsQueryOptions(ocelId, params, options);
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
queryKey: queryOptions.queryKey
|
|
1594
|
-
};
|
|
1687
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1688
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1595
1689
|
}
|
|
1596
1690
|
/**
|
|
1597
1691
|
* @summary Get Object Ids
|
|
@@ -1614,7 +1708,7 @@ const getObjectIdsQueryOptions = (ocelId, params, options) => {
|
|
|
1614
1708
|
return {
|
|
1615
1709
|
queryKey,
|
|
1616
1710
|
queryFn,
|
|
1617
|
-
enabled:
|
|
1711
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1618
1712
|
staleTime: 3e5,
|
|
1619
1713
|
...queryOptions
|
|
1620
1714
|
};
|
|
@@ -1624,10 +1718,8 @@ const getObjectIdsQueryOptions = (ocelId, params, options) => {
|
|
|
1624
1718
|
*/
|
|
1625
1719
|
function useObjectIds(ocelId, params, options, queryClient) {
|
|
1626
1720
|
const queryOptions = getObjectIdsQueryOptions(ocelId, params, options);
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
queryKey: queryOptions.queryKey
|
|
1630
|
-
};
|
|
1721
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1722
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1631
1723
|
}
|
|
1632
1724
|
/**
|
|
1633
1725
|
* Returns the object variants for a single object type. Each variant is a distinct activity sequence, together with the number of events it contains and the number of cases (objects) that follow it.
|
|
@@ -1651,7 +1743,7 @@ const getObjectVariantsQueryOptions = (ocelId, params, options) => {
|
|
|
1651
1743
|
return {
|
|
1652
1744
|
queryKey,
|
|
1653
1745
|
queryFn,
|
|
1654
|
-
enabled:
|
|
1746
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1655
1747
|
staleTime: 3e5,
|
|
1656
1748
|
...queryOptions
|
|
1657
1749
|
};
|
|
@@ -1661,10 +1753,8 @@ const getObjectVariantsQueryOptions = (ocelId, params, options) => {
|
|
|
1661
1753
|
*/
|
|
1662
1754
|
function useObjectVariants(ocelId, params, options, queryClient) {
|
|
1663
1755
|
const queryOptions = getObjectVariantsQueryOptions(ocelId, params, options);
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
queryKey: queryOptions.queryKey
|
|
1667
|
-
};
|
|
1756
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1757
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1668
1758
|
}
|
|
1669
1759
|
/**
|
|
1670
1760
|
* @summary Get Activities
|
|
@@ -1687,7 +1777,7 @@ const getActivitiesQueryOptions = (ocelId, params, options) => {
|
|
|
1687
1777
|
return {
|
|
1688
1778
|
queryKey,
|
|
1689
1779
|
queryFn,
|
|
1690
|
-
enabled:
|
|
1780
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1691
1781
|
staleTime: 3e5,
|
|
1692
1782
|
...queryOptions
|
|
1693
1783
|
};
|
|
@@ -1697,10 +1787,8 @@ const getActivitiesQueryOptions = (ocelId, params, options) => {
|
|
|
1697
1787
|
*/
|
|
1698
1788
|
function useActivities(ocelId, params, options, queryClient) {
|
|
1699
1789
|
const queryOptions = getActivitiesQueryOptions(ocelId, params, options);
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
queryKey: queryOptions.queryKey
|
|
1703
|
-
};
|
|
1790
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1791
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1704
1792
|
}
|
|
1705
1793
|
/**
|
|
1706
1794
|
* @summary Get Event Counts
|
|
@@ -1723,7 +1811,7 @@ const getEventCountsQueryOptions = (ocelId, params, options) => {
|
|
|
1723
1811
|
return {
|
|
1724
1812
|
queryKey,
|
|
1725
1813
|
queryFn,
|
|
1726
|
-
enabled:
|
|
1814
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1727
1815
|
staleTime: 3e5,
|
|
1728
1816
|
...queryOptions
|
|
1729
1817
|
};
|
|
@@ -1733,10 +1821,8 @@ const getEventCountsQueryOptions = (ocelId, params, options) => {
|
|
|
1733
1821
|
*/
|
|
1734
1822
|
function useEventCounts(ocelId, params, options, queryClient) {
|
|
1735
1823
|
const queryOptions = getEventCountsQueryOptions(ocelId, params, options);
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
queryKey: queryOptions.queryKey
|
|
1739
|
-
};
|
|
1824
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1825
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1740
1826
|
}
|
|
1741
1827
|
/**
|
|
1742
1828
|
* @summary Get Event Ids
|
|
@@ -1759,7 +1845,7 @@ const getEventIdsQueryOptions = (ocelId, params, options) => {
|
|
|
1759
1845
|
return {
|
|
1760
1846
|
queryKey,
|
|
1761
1847
|
queryFn,
|
|
1762
|
-
enabled:
|
|
1848
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1763
1849
|
staleTime: 3e5,
|
|
1764
1850
|
...queryOptions
|
|
1765
1851
|
};
|
|
@@ -1769,10 +1855,8 @@ const getEventIdsQueryOptions = (ocelId, params, options) => {
|
|
|
1769
1855
|
*/
|
|
1770
1856
|
function useEventIds(ocelId, params, options, queryClient) {
|
|
1771
1857
|
const queryOptions = getEventIdsQueryOptions(ocelId, params, options);
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
queryKey: queryOptions.queryKey
|
|
1775
|
-
};
|
|
1858
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1859
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1776
1860
|
}
|
|
1777
1861
|
/**
|
|
1778
1862
|
* @summary Get Time Info
|
|
@@ -1795,7 +1879,7 @@ const getTimeInfoQueryOptions = (ocelId, params, options) => {
|
|
|
1795
1879
|
return {
|
|
1796
1880
|
queryKey,
|
|
1797
1881
|
queryFn,
|
|
1798
|
-
enabled:
|
|
1882
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1799
1883
|
staleTime: 3e5,
|
|
1800
1884
|
...queryOptions
|
|
1801
1885
|
};
|
|
@@ -1805,10 +1889,8 @@ const getTimeInfoQueryOptions = (ocelId, params, options) => {
|
|
|
1805
1889
|
*/
|
|
1806
1890
|
function useTimeInfo(ocelId, params, options, queryClient) {
|
|
1807
1891
|
const queryOptions = getTimeInfoQueryOptions(ocelId, params, options);
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
queryKey: queryOptions.queryKey
|
|
1811
|
-
};
|
|
1892
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1893
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1812
1894
|
}
|
|
1813
1895
|
/**
|
|
1814
1896
|
* @summary Get E2O
|
|
@@ -1831,7 +1913,7 @@ const getE2oQueryOptions = (ocelId, params, options) => {
|
|
|
1831
1913
|
return {
|
|
1832
1914
|
queryKey,
|
|
1833
1915
|
queryFn,
|
|
1834
|
-
enabled:
|
|
1916
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1835
1917
|
staleTime: 3e5,
|
|
1836
1918
|
...queryOptions
|
|
1837
1919
|
};
|
|
@@ -1841,10 +1923,8 @@ const getE2oQueryOptions = (ocelId, params, options) => {
|
|
|
1841
1923
|
*/
|
|
1842
1924
|
function useE2o(ocelId, params, options, queryClient) {
|
|
1843
1925
|
const queryOptions = getE2oQueryOptions(ocelId, params, options);
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
queryKey: queryOptions.queryKey
|
|
1847
|
-
};
|
|
1926
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1927
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1848
1928
|
}
|
|
1849
1929
|
/**
|
|
1850
1930
|
* @summary Get O2O
|
|
@@ -1867,7 +1947,7 @@ const getO2oQueryOptions = (ocelId, params, options) => {
|
|
|
1867
1947
|
return {
|
|
1868
1948
|
queryKey,
|
|
1869
1949
|
queryFn,
|
|
1870
|
-
enabled:
|
|
1950
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1871
1951
|
staleTime: 3e5,
|
|
1872
1952
|
...queryOptions
|
|
1873
1953
|
};
|
|
@@ -1877,10 +1957,8 @@ const getO2oQueryOptions = (ocelId, params, options) => {
|
|
|
1877
1957
|
*/
|
|
1878
1958
|
function useO2o(ocelId, params, options, queryClient) {
|
|
1879
1959
|
const queryOptions = getO2oQueryOptions(ocelId, params, options);
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
queryKey: queryOptions.queryKey
|
|
1883
|
-
};
|
|
1960
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1961
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1884
1962
|
}
|
|
1885
1963
|
/**
|
|
1886
1964
|
* @summary Get E2O Combinations
|
|
@@ -1903,7 +1981,7 @@ const getE2oCombinationsQueryOptions = (ocelId, params, options) => {
|
|
|
1903
1981
|
return {
|
|
1904
1982
|
queryKey,
|
|
1905
1983
|
queryFn,
|
|
1906
|
-
enabled:
|
|
1984
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1907
1985
|
staleTime: 3e5,
|
|
1908
1986
|
...queryOptions
|
|
1909
1987
|
};
|
|
@@ -1913,10 +1991,8 @@ const getE2oCombinationsQueryOptions = (ocelId, params, options) => {
|
|
|
1913
1991
|
*/
|
|
1914
1992
|
function useE2oCombinations(ocelId, params, options, queryClient) {
|
|
1915
1993
|
const queryOptions = getE2oCombinationsQueryOptions(ocelId, params, options);
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
queryKey: queryOptions.queryKey
|
|
1919
|
-
};
|
|
1994
|
+
const query = useQuery(queryOptions, queryClient);
|
|
1995
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1920
1996
|
}
|
|
1921
1997
|
/**
|
|
1922
1998
|
* @summary Get O2O Combinations
|
|
@@ -1939,7 +2015,7 @@ const getO2oCombinationsQueryOptions = (ocelId, params, options) => {
|
|
|
1939
2015
|
return {
|
|
1940
2016
|
queryKey,
|
|
1941
2017
|
queryFn,
|
|
1942
|
-
enabled:
|
|
2018
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1943
2019
|
staleTime: 3e5,
|
|
1944
2020
|
...queryOptions
|
|
1945
2021
|
};
|
|
@@ -1949,10 +2025,8 @@ const getO2oCombinationsQueryOptions = (ocelId, params, options) => {
|
|
|
1949
2025
|
*/
|
|
1950
2026
|
function useO2oCombinations(ocelId, params, options, queryClient) {
|
|
1951
2027
|
const queryOptions = getO2oCombinationsQueryOptions(ocelId, params, options);
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
queryKey: queryOptions.queryKey
|
|
1955
|
-
};
|
|
2028
|
+
const query = useQuery(queryOptions, queryClient);
|
|
2029
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1956
2030
|
}
|
|
1957
2031
|
/**
|
|
1958
2032
|
* @summary Get Quantity Info
|
|
@@ -1975,7 +2049,7 @@ const getQuantityInfoQueryOptions = (ocelId, params, options) => {
|
|
|
1975
2049
|
return {
|
|
1976
2050
|
queryKey,
|
|
1977
2051
|
queryFn,
|
|
1978
|
-
enabled:
|
|
2052
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
1979
2053
|
staleTime: 3e5,
|
|
1980
2054
|
...queryOptions
|
|
1981
2055
|
};
|
|
@@ -1985,10 +2059,8 @@ const getQuantityInfoQueryOptions = (ocelId, params, options) => {
|
|
|
1985
2059
|
*/
|
|
1986
2060
|
function useQuantityInfo(ocelId, params, options, queryClient) {
|
|
1987
2061
|
const queryOptions = getQuantityInfoQueryOptions(ocelId, params, options);
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
queryKey: queryOptions.queryKey
|
|
1991
|
-
};
|
|
2062
|
+
const query = useQuery(queryOptions, queryClient);
|
|
2063
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
1992
2064
|
}
|
|
1993
2065
|
/**
|
|
1994
2066
|
* @summary Download OCEL
|
|
@@ -2011,7 +2083,7 @@ const getDownloadOCELQueryOptions = (ocelId, params, options) => {
|
|
|
2011
2083
|
return {
|
|
2012
2084
|
queryKey,
|
|
2013
2085
|
queryFn,
|
|
2014
|
-
enabled:
|
|
2086
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
2015
2087
|
staleTime: 3e5,
|
|
2016
2088
|
...queryOptions
|
|
2017
2089
|
};
|
|
@@ -2021,10 +2093,8 @@ const getDownloadOCELQueryOptions = (ocelId, params, options) => {
|
|
|
2021
2093
|
*/
|
|
2022
2094
|
function useDownloadOCEL(ocelId, params, options, queryClient) {
|
|
2023
2095
|
const queryOptions = getDownloadOCELQueryOptions(ocelId, params, options);
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
queryKey: queryOptions.queryKey
|
|
2027
|
-
};
|
|
2096
|
+
const query = useQuery(queryOptions, queryClient);
|
|
2097
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
2028
2098
|
}
|
|
2029
2099
|
/**
|
|
2030
2100
|
* @summary Download OCEL as a xes
|
|
@@ -2047,7 +2117,7 @@ const getDownloadFlatLogQueryOptions = (ocelId, params, options) => {
|
|
|
2047
2117
|
return {
|
|
2048
2118
|
queryKey,
|
|
2049
2119
|
queryFn,
|
|
2050
|
-
enabled:
|
|
2120
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
2051
2121
|
staleTime: 3e5,
|
|
2052
2122
|
...queryOptions
|
|
2053
2123
|
};
|
|
@@ -2057,10 +2127,8 @@ const getDownloadFlatLogQueryOptions = (ocelId, params, options) => {
|
|
|
2057
2127
|
*/
|
|
2058
2128
|
function useDownloadFlatLog(ocelId, params, options, queryClient) {
|
|
2059
2129
|
const queryOptions = getDownloadFlatLogQueryOptions(ocelId, params, options);
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
queryKey: queryOptions.queryKey
|
|
2063
|
-
};
|
|
2130
|
+
const query = useQuery(queryOptions, queryClient);
|
|
2131
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
2064
2132
|
}
|
|
2065
2133
|
/**
|
|
2066
2134
|
* Filters the OCEL to the objects of `object_type` that follow any of the given `variant_ids`, then flattens that sub-log by `object_type` into a XES file (one trace per object).
|
|
@@ -2084,7 +2152,7 @@ const getDownloadVariantFlatLogQueryOptions = (ocelId, params, options) => {
|
|
|
2084
2152
|
return {
|
|
2085
2153
|
queryKey,
|
|
2086
2154
|
queryFn,
|
|
2087
|
-
enabled:
|
|
2155
|
+
enabled: ocelId !== null && ocelId !== void 0,
|
|
2088
2156
|
staleTime: 3e5,
|
|
2089
2157
|
...queryOptions
|
|
2090
2158
|
};
|
|
@@ -2094,10 +2162,8 @@ const getDownloadVariantFlatLogQueryOptions = (ocelId, params, options) => {
|
|
|
2094
2162
|
*/
|
|
2095
2163
|
function useDownloadVariantFlatLog(ocelId, params, options, queryClient) {
|
|
2096
2164
|
const queryOptions = getDownloadVariantFlatLogQueryOptions(ocelId, params, options);
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
queryKey: queryOptions.queryKey
|
|
2100
|
-
};
|
|
2165
|
+
const query = useQuery(queryOptions, queryClient);
|
|
2166
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
2101
2167
|
}
|
|
2102
2168
|
//#endregion
|
|
2103
|
-
export { AggregatedAttributesEntityType, DotVisLayoutEngine, DownloadOCELExt, E2oCombinationsDirection, E2oDirection, GraphNodeLabelPos, GraphNodeShape, GraphvizLayoutConfigEngine, O2oCombinationsDirection, O2oDirection, TableColumnDataType, TaskState, ValueType, activities, aggregatedAttributes, attributeNames, createDiscoveryTask, deleteOcel, deletePlugin, deleteResource, disableDiscoveryMethod, discoveryTask, downloadFlatLog, downloadOCEL, downloadPluginResults, downloadResource, downloadResourceAsPnml, downloadVariantFlatLog, e2o, e2oCombinations, enableDiscoveryMethod, eventAttributes, eventCounts, eventIds, getActivitiesQueryKey, getActivitiesQueryOptions, getAggregatedAttributesQueryKey, getAggregatedAttributesQueryOptions, getAttributeNamesQueryKey, getAttributeNamesQueryOptions, getComputedValues, getCreateDiscoveryTaskMutationOptions, getDefaultOcel, getDeleteOcelMutationOptions, getDeletePluginMutationOptions, getDeleteResourceMutationOptions, getDisableDiscoveryMethodMutationOptions, getDiscoveryTaskQueryKey, getDiscoveryTaskQueryOptions, getDownloadFlatLogQueryKey, getDownloadFlatLogQueryOptions, getDownloadOCELQueryKey, getDownloadOCELQueryOptions, getDownloadPluginResultsMutationOptions, getDownloadResourceAsPnmlQueryKey, getDownloadResourceAsPnmlQueryOptions, getDownloadResourceQueryKey, getDownloadResourceQueryOptions, getDownloadVariantFlatLogQueryKey, getDownloadVariantFlatLogQueryOptions, getE2oCombinationsQueryKey, getE2oCombinationsQueryOptions, getE2oQueryKey, getE2oQueryOptions, getEnableDiscoveryMethodMutationOptions, getEventAttributesQueryKey, getEventAttributesQueryOptions, getEventCountsQueryKey, getEventCountsQueryOptions, getEventIdsQueryKey, getEventIdsQueryOptions, getExtensionMeta, getGetComputedValuesQueryKey, getGetComputedValuesQueryOptions, getGetDefaultOcelQueryKey, getGetDefaultOcelQueryOptions, getGetExtensionMetaQueryKey, getGetExtensionMetaQueryOptions, getGetOcelQueryKey, getGetOcelQueryOptions, getGetOcelsQueryKey, getGetOcelsQueryOptions, getGetPluginMethodQueryKey, getGetPluginMethodQueryOptions, getGetPluginQueryKey, getGetPluginQueryOptions, getGetResourceMetaQueryKey, getGetResourceMetaQueryOptions, getGetSystemTaskQueryKey, getGetSystemTaskQueryOptions, getGetSystemTasksQueryKey, getGetSystemTasksQueryOptions, getImportDefaultOcelMutationOptions, getListDiscoveryFiltersQueryKey, getListDiscoveryFiltersQueryOptions, getListDiscoveryMethodsQueryKey, getListDiscoveryMethodsQueryOptions, getLogoutMutationOptions, getO2oCombinationsQueryKey, getO2oCombinationsQueryOptions, getO2oQueryKey, getO2oQueryOptions, getObjectAttributesQueryKey, getObjectAttributesQueryOptions, getObjectCountsQueryKey, getObjectCountsQueryOptions, getObjectIdsQueryKey, getObjectIdsQueryOptions, getObjectTypesQueryKey, getObjectTypesQueryOptions, getObjectVariantsQueryKey, getObjectVariantsQueryOptions, getOcel, getOcels, getPlugin, getPluginMethod, getPluginResultQueryKey, getPluginResultQueryOptions, getPluginsQueryKey, getPluginsQueryOptions, getQuantityInfoQueryKey, getQuantityInfoQueryOptions, getRenameOcelMutationOptions, getRenameResourceMutationOptions, getResourceMeta, getResourceQueryKey, getResourceQueryOptions, getResourcesQueryKey, getResourcesQueryOptions, getRunPluginMutationOptions, getSaveDiscoveryMutationOptions, getSavePluginResultsMutationOptions, getSystemTask, getSystemTasks, getTimeInfoQueryKey, getTimeInfoQueryOptions, getUploadMutationOptions, getUploadResourceMutationOptions, importDefaultOcel, listDiscoveryFilters, listDiscoveryMethods, logout, o2o, o2oCombinations, objectAttributes, objectCounts, objectIds, objectTypes, objectVariants, pluginResult, plugins, quantityInfo, renameOcel, renameResource, resource, resources, runPlugin, saveDiscovery, savePluginResults, timeInfo, upload, uploadResource, useActivities, useAggregatedAttributes, useAttributeNames, useCreateDiscoveryTask, useDeleteOcel, useDeletePlugin, useDeleteResource, useDisableDiscoveryMethod, useDiscoveryTask, useDownloadFlatLog, useDownloadOCEL, useDownloadPluginResults, useDownloadResource, useDownloadResourceAsPnml, useDownloadVariantFlatLog, useE2o, useE2oCombinations, useEnableDiscoveryMethod, useEventAttributes, useEventCounts, useEventIds, useGetComputedValues, useGetDefaultOcel, useGetExtensionMeta, useGetOcel, useGetOcels, useGetPlugin, useGetPluginMethod, useGetResourceMeta, useGetSystemTask, useGetSystemTasks, useImportDefaultOcel, useListDiscoveryFilters, useListDiscoveryMethods, useLogout, useO2o, useO2oCombinations, useObjectAttributes, useObjectCounts, useObjectIds, useObjectTypes, useObjectVariants, usePluginResult, usePlugins, useQuantityInfo, useRenameOcel, useRenameResource, useResource, useResources, useRunPlugin, useSaveDiscovery, useSavePluginResults, useTimeInfo, useUpload, useUploadResource };
|
|
2169
|
+
export { ActivitiesOcelVersion, AggregatedAttributesEntityType, AggregatedAttributesOcelVersion, AttributeNamesEntityType, AttributeNamesOcelVersion, DotVisLayoutEngine, DownloadFlatLogOcelVersion, DownloadOCELExt, DownloadOCELOcelVersion, DownloadVariantFlatLogOcelVersion, E2oCombinationsDirection, E2oCombinationsOcelVersion, E2oDirection, E2oOcelVersion, EventAttributesOcelVersion, EventCountsOcelVersion, EventIdsOcelVersion, GraphEdgeEndArrow, GraphEdgeStartArrow, GraphNodeLabelPos, GraphNodeShape, GraphvizLayoutConfigEngine, NodeStyleInnerSymbol, O2oCombinationsDirection, O2oCombinationsOcelVersion, O2oDirection, O2oOcelVersion, ObjectAttributesOcelVersion, ObjectCountsOcelVersion, ObjectIdsOcelVersion, ObjectTypesOcelVersion, ObjectVariantsOcelVersion, QuantityInfoOcelVersion, TableColumnDataType, TaskState, TimeInfoOcelVersion, ValueType, activities, aggregatedAttributes, attributeNames, createDiscoveryTask, deleteOcel, deletePlugin, deleteResource, disableDiscoveryMethod, discoveryTask, downloadFlatLog, downloadOCEL, downloadPluginResults, downloadResource, downloadResourceAsPnml, downloadVariantFlatLog, e2o, e2oCombinations, enableDiscoveryMethod, eventAttributes, eventCounts, eventIds, getActivitiesQueryKey, getActivitiesQueryOptions, getAggregatedAttributesQueryKey, getAggregatedAttributesQueryOptions, getAttributeNamesQueryKey, getAttributeNamesQueryOptions, getComputedValues, getCreateDiscoveryTaskMutationOptions, getDefaultOcel, getDeleteOcelMutationOptions, getDeletePluginMutationOptions, getDeleteResourceMutationOptions, getDisableDiscoveryMethodMutationOptions, getDiscoveryTaskQueryKey, getDiscoveryTaskQueryOptions, getDownloadFlatLogQueryKey, getDownloadFlatLogQueryOptions, getDownloadOCELQueryKey, getDownloadOCELQueryOptions, getDownloadPluginResultsMutationOptions, getDownloadResourceAsPnmlQueryKey, getDownloadResourceAsPnmlQueryOptions, getDownloadResourceQueryKey, getDownloadResourceQueryOptions, getDownloadVariantFlatLogQueryKey, getDownloadVariantFlatLogQueryOptions, getE2oCombinationsQueryKey, getE2oCombinationsQueryOptions, getE2oQueryKey, getE2oQueryOptions, getEnableDiscoveryMethodMutationOptions, getEventAttributesQueryKey, getEventAttributesQueryOptions, getEventCountsQueryKey, getEventCountsQueryOptions, getEventIdsQueryKey, getEventIdsQueryOptions, getExtensionMeta, getGetComputedValuesQueryKey, getGetComputedValuesQueryOptions, getGetDefaultOcelQueryKey, getGetDefaultOcelQueryOptions, getGetExtensionMetaQueryKey, getGetExtensionMetaQueryOptions, getGetOcelQueryKey, getGetOcelQueryOptions, getGetOcelsQueryKey, getGetOcelsQueryOptions, getGetPluginMethodQueryKey, getGetPluginMethodQueryOptions, getGetPluginQueryKey, getGetPluginQueryOptions, getGetResourceMetaQueryKey, getGetResourceMetaQueryOptions, getGetSystemTaskQueryKey, getGetSystemTaskQueryOptions, getGetSystemTasksQueryKey, getGetSystemTasksQueryOptions, getImportDefaultOcelMutationOptions, getListDiscoveryFiltersQueryKey, getListDiscoveryFiltersQueryOptions, getListDiscoveryMethodsQueryKey, getListDiscoveryMethodsQueryOptions, getLogoutMutationOptions, getO2oCombinationsQueryKey, getO2oCombinationsQueryOptions, getO2oQueryKey, getO2oQueryOptions, getObjectAttributesQueryKey, getObjectAttributesQueryOptions, getObjectCountsQueryKey, getObjectCountsQueryOptions, getObjectIdsQueryKey, getObjectIdsQueryOptions, getObjectTypesQueryKey, getObjectTypesQueryOptions, getObjectVariantsQueryKey, getObjectVariantsQueryOptions, getOcel, getOcels, getPlugin, getPluginMethod, getPluginResultQueryKey, getPluginResultQueryOptions, getPluginsQueryKey, getPluginsQueryOptions, getQuantityInfoQueryKey, getQuantityInfoQueryOptions, getRenameOcelMutationOptions, getRenameResourceMutationOptions, getResourceMeta, getResourceQueryKey, getResourceQueryOptions, getResourcesQueryKey, getResourcesQueryOptions, getRunPluginMutationOptions, getSaveDiscoveryMutationOptions, getSavePluginResultsMutationOptions, getSystemTask, getSystemTasks, getTimeInfoQueryKey, getTimeInfoQueryOptions, getUploadMutationOptions, getUploadResourceMutationOptions, importDefaultOcel, listDiscoveryFilters, listDiscoveryMethods, logout, o2o, o2oCombinations, objectAttributes, objectCounts, objectIds, objectTypes, objectVariants, pluginResult, plugins, quantityInfo, renameOcel, renameResource, resource, resources, runPlugin, saveDiscovery, savePluginResults, timeInfo, upload, uploadResource, useActivities, useAggregatedAttributes, useAttributeNames, useCreateDiscoveryTask, useDeleteOcel, useDeletePlugin, useDeleteResource, useDisableDiscoveryMethod, useDiscoveryTask, useDownloadFlatLog, useDownloadOCEL, useDownloadPluginResults, useDownloadResource, useDownloadResourceAsPnml, useDownloadVariantFlatLog, useE2o, useE2oCombinations, useEnableDiscoveryMethod, useEventAttributes, useEventCounts, useEventIds, useGetComputedValues, useGetDefaultOcel, useGetExtensionMeta, useGetOcel, useGetOcels, useGetPlugin, useGetPluginMethod, useGetResourceMeta, useGetSystemTask, useGetSystemTasks, useImportDefaultOcel, useListDiscoveryFilters, useListDiscoveryMethods, useLogout, useO2o, useO2oCombinations, useObjectAttributes, useObjectCounts, useObjectIds, useObjectTypes, useObjectVariants, usePluginResult, usePlugins, useQuantityInfo, useRenameOcel, useRenameResource, useResource, useResources, useRunPlugin, useSaveDiscovery, useSavePluginResults, useTimeInfo, useUpload, useUploadResource };
|