@squonk/data-manager-client 4.2.0 → 5.0.0-5-0.2173777171
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/accounting/accounting.cjs +140 -94
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +104 -47
- package/accounting/accounting.d.ts +104 -47
- package/accounting/accounting.js +146 -100
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +120 -145
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +123 -121
- package/admin/admin.d.ts +123 -121
- package/admin/admin.js +127 -152
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +39 -43
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +25 -25
- package/application/application.d.ts +25 -25
- package/application/application.js +42 -46
- package/application/application.js.map +1 -1
- package/chunk-76ADQBHZ.js +25 -0
- package/chunk-76ADQBHZ.js.map +1 -0
- package/chunk-KHB5TJT7.cjs +25 -0
- package/chunk-KHB5TJT7.cjs.map +1 -0
- package/{chunk-TKLTUR4R.cjs → chunk-RB2KVIEK.cjs} +1 -1
- package/chunk-RB2KVIEK.cjs.map +1 -0
- package/{chunk-EBOQPVLG.js → chunk-XYDLYMQ2.js} +1 -1
- package/chunk-XYDLYMQ2.js.map +1 -0
- package/configuration/configuration.cjs +38 -45
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +26 -26
- package/configuration/configuration.d.ts +26 -26
- package/configuration/configuration.js +42 -49
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +126 -141
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +102 -102
- package/dataset/dataset.d.ts +102 -102
- package/dataset/dataset.js +132 -147
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +22 -24
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +14 -14
- package/digest/digest.d.ts +14 -14
- package/digest/digest.js +24 -26
- package/digest/digest.js.map +1 -1
- package/file-and-path/file-and-path.cjs +212 -135
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +263 -103
- package/file-and-path/file-and-path.d.ts +263 -103
- package/file-and-path/file-and-path.js +222 -145
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs +83 -103
- package/index.cjs.map +1 -1
- package/index.d.cts +2434 -2343
- package/index.d.ts +2434 -2343
- package/index.js +82 -102
- package/index.js.map +1 -1
- package/instance/instance.cjs +100 -107
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +76 -76
- package/instance/instance.d.ts +76 -76
- package/instance/instance.js +105 -112
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +22 -25
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +14 -14
- package/inventory/inventory.d.ts +14 -14
- package/inventory/inventory.js +24 -27
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +170 -66
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +193 -37
- package/job/job.d.ts +193 -37
- package/job/job.js +176 -72
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +61 -59
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +47 -47
- package/metadata/metadata.d.ts +47 -47
- package/metadata/metadata.js +65 -63
- package/metadata/metadata.js.map +1 -1
- package/package.json +13 -16
- package/project/project.cjs +113 -256
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +122 -282
- package/project/project.d.ts +122 -282
- package/project/project.js +118 -261
- package/project/project.js.map +1 -1
- package/src/{data-manager-api.schemas.ts → API_TARGET_NAME.schemas.ts} +2538 -2483
- package/src/accounting/accounting.ts +1003 -455
- package/src/admin/admin.ts +1190 -788
- package/src/application/application.ts +378 -232
- package/src/configuration/configuration.ts +350 -243
- package/src/custom-instance.ts +3 -3
- package/src/dataset/dataset.ts +1200 -793
- package/src/digest/digest.ts +199 -123
- package/src/file-and-path/file-and-path.ts +1456 -603
- package/src/index.ts +3 -3
- package/src/instance/instance.ts +805 -540
- package/src/inventory/inventory.ts +201 -123
- package/src/job/job.ts +1134 -330
- package/src/metadata/metadata.ts +588 -372
- package/src/options-mutator.ts +27 -0
- package/src/project/project.ts +1064 -1121
- package/src/task/task.ts +435 -296
- package/src/type/type.ts +181 -127
- package/src/user/user.ts +847 -399
- package/src/workflow/workflow.ts +1754 -1091
- package/task/task.cjs +45 -59
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +33 -33
- package/task/task.d.ts +33 -33
- package/task/task.js +51 -65
- package/task/task.js.map +1 -1
- package/type/type.cjs +21 -26
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +14 -14
- package/type/type.d.ts +14 -14
- package/type/type.js +24 -29
- package/type/type.js.map +1 -1
- package/user/user.cjs +114 -80
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +107 -48
- package/user/user.d.ts +107 -48
- package/user/user.js +120 -86
- package/user/user.js.map +1 -1
- package/workflow/workflow.cjs +179 -193
- package/workflow/workflow.cjs.map +1 -1
- package/workflow/workflow.d.cts +149 -147
- package/workflow/workflow.d.ts +149 -147
- package/workflow/workflow.js +187 -201
- package/workflow/workflow.js.map +1 -1
- package/chunk-EBOQPVLG.js.map +0 -1
- package/chunk-TKLTUR4R.cjs.map +0 -1
- package/exchange-rate/exchange-rate.cjs +0 -253
- package/exchange-rate/exchange-rate.cjs.map +0 -1
- package/exchange-rate/exchange-rate.d.cts +0 -319
- package/exchange-rate/exchange-rate.d.ts +0 -319
- package/exchange-rate/exchange-rate.js +0 -253
- package/exchange-rate/exchange-rate.js.map +0 -1
- package/exchange-rate/package.json +0 -7
- package/src/exchange-rate/exchange-rate.ts +0 -800
|
@@ -1,321 +1,428 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
1
|
/**
|
|
3
|
-
* Generated by orval v7.
|
|
2
|
+
* Generated by orval v7.10.0 🍺
|
|
4
3
|
* Do not edit manually.
|
|
5
4
|
* Dataset Manager API
|
|
6
5
|
* The Dataset Manager API service.
|
|
7
6
|
|
|
8
7
|
A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.
|
|
9
8
|
|
|
10
|
-
* OpenAPI spec version:
|
|
9
|
+
* OpenAPI spec version: 5.0
|
|
11
10
|
*/
|
|
12
|
-
import {
|
|
13
|
-
useQuery,
|
|
14
|
-
useSuspenseQuery
|
|
15
|
-
} from '@tanstack/react-query'
|
|
11
|
+
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
16
12
|
import type {
|
|
17
13
|
DataTag,
|
|
18
14
|
DefinedInitialDataOptions,
|
|
19
15
|
DefinedUseQueryResult,
|
|
16
|
+
QueryClient,
|
|
20
17
|
QueryFunction,
|
|
21
18
|
QueryKey,
|
|
22
19
|
UndefinedInitialDataOptions,
|
|
23
20
|
UseQueryOptions,
|
|
24
21
|
UseQueryResult,
|
|
25
22
|
UseSuspenseQueryOptions,
|
|
26
|
-
UseSuspenseQueryResult
|
|
27
|
-
} from
|
|
28
|
-
import type {
|
|
29
|
-
DmError,
|
|
30
|
-
InputHandlerGetResponse,
|
|
31
|
-
ModeGetResponse
|
|
32
|
-
} from '../data-manager-api.schemas'
|
|
33
|
-
import { customInstance } from '.././custom-instance';
|
|
34
|
-
import type { ErrorType } from '.././custom-instance';
|
|
23
|
+
UseSuspenseQueryResult,
|
|
24
|
+
} from "@tanstack/react-query";
|
|
35
25
|
|
|
26
|
+
import type { DmError, InputHandlerGetResponse, ModeGetResponse } from "../API_TARGET_NAME.schemas";
|
|
36
27
|
|
|
37
|
-
|
|
28
|
+
import { customInstance } from ".././custom-instance";
|
|
29
|
+
import type { ErrorType } from ".././custom-instance";
|
|
30
|
+
import { queryMutator } from ".././options-mutator";
|
|
38
31
|
|
|
32
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
39
33
|
|
|
40
34
|
/**
|
|
41
|
-
* @summary Gets the Data Manager mode
|
|
35
|
+
* @summary Gets the Data Manager API mode
|
|
42
36
|
*/
|
|
43
|
-
export const getMode = (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
return customInstance<ModeGetResponse>(
|
|
50
|
-
{url: `/mode`, method: 'GET', signal
|
|
51
|
-
},
|
|
52
|
-
options);
|
|
53
|
-
}
|
|
54
|
-
|
|
37
|
+
export const getMode = (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => {
|
|
38
|
+
return customInstance<ModeGetResponse>({ url: `/mode`, method: "GET", signal }, options);
|
|
39
|
+
};
|
|
55
40
|
|
|
56
41
|
export const getGetModeQueryKey = () => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
42
|
+
return [`/mode`] as const;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const useGetModeQueryOptions = <
|
|
46
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
47
|
+
TError = ErrorType<void | DmError>,
|
|
48
|
+
>(options?: {
|
|
49
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>>;
|
|
50
|
+
request?: SecondParameter<typeof customInstance>;
|
|
51
|
+
}) => {
|
|
52
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
53
|
+
|
|
54
|
+
const queryKey = queryOptions?.queryKey ?? getGetModeQueryKey();
|
|
55
|
+
|
|
56
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getMode>>> = ({ signal }) =>
|
|
57
|
+
getMode(requestOptions, signal);
|
|
58
|
+
|
|
59
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
60
|
+
|
|
61
|
+
return customOptions as UseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData> & {
|
|
62
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type GetModeQueryResult = NonNullable<Awaited<ReturnType<typeof getMode>>>;
|
|
67
|
+
export type GetModeQueryError = ErrorType<void | DmError>;
|
|
68
|
+
|
|
69
|
+
export function useGetMode<
|
|
70
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
71
|
+
TError = ErrorType<void | DmError>,
|
|
72
|
+
>(
|
|
73
|
+
options: {
|
|
74
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>> &
|
|
75
|
+
Pick<
|
|
85
76
|
DefinedInitialDataOptions<
|
|
86
77
|
Awaited<ReturnType<typeof getMode>>,
|
|
87
78
|
TError,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
79
|
+
Awaited<ReturnType<typeof getMode>>
|
|
80
|
+
>,
|
|
81
|
+
"initialData"
|
|
82
|
+
>;
|
|
83
|
+
request?: SecondParameter<typeof customInstance>;
|
|
84
|
+
},
|
|
85
|
+
queryClient?: QueryClient,
|
|
86
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
87
|
+
export function useGetMode<
|
|
88
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
89
|
+
TError = ErrorType<void | DmError>,
|
|
90
|
+
>(
|
|
91
|
+
options?: {
|
|
92
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>> &
|
|
93
|
+
Pick<
|
|
95
94
|
UndefinedInitialDataOptions<
|
|
96
95
|
Awaited<ReturnType<typeof getMode>>,
|
|
97
96
|
TError,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
97
|
+
Awaited<ReturnType<typeof getMode>>
|
|
98
|
+
>,
|
|
99
|
+
"initialData"
|
|
100
|
+
>;
|
|
101
|
+
request?: SecondParameter<typeof customInstance>;
|
|
102
|
+
},
|
|
103
|
+
queryClient?: QueryClient,
|
|
104
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
105
|
+
export function useGetMode<
|
|
106
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
107
|
+
TError = ErrorType<void | DmError>,
|
|
108
|
+
>(
|
|
109
|
+
options?: {
|
|
110
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>>;
|
|
111
|
+
request?: SecondParameter<typeof customInstance>;
|
|
112
|
+
},
|
|
113
|
+
queryClient?: QueryClient,
|
|
114
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
107
115
|
/**
|
|
108
|
-
* @summary Gets the Data Manager mode
|
|
116
|
+
* @summary Gets the Data Manager API mode
|
|
109
117
|
*/
|
|
110
118
|
|
|
111
|
-
export function useGetMode<
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
119
|
+
export function useGetMode<
|
|
120
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
121
|
+
TError = ErrorType<void | DmError>,
|
|
122
|
+
>(
|
|
123
|
+
options?: {
|
|
124
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>>;
|
|
125
|
+
request?: SecondParameter<typeof customInstance>;
|
|
126
|
+
},
|
|
127
|
+
queryClient?: QueryClient,
|
|
128
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
129
|
+
const queryOptions = useGetModeQueryOptions(options);
|
|
117
130
|
|
|
118
|
-
const query = useQuery(queryOptions) as
|
|
131
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
132
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
133
|
+
};
|
|
119
134
|
|
|
120
|
-
query.queryKey = queryOptions.queryKey
|
|
135
|
+
query.queryKey = queryOptions.queryKey;
|
|
121
136
|
|
|
122
137
|
return query;
|
|
123
138
|
}
|
|
124
139
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
export
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
140
|
+
export const useGetModeSuspenseQueryOptions = <
|
|
141
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
142
|
+
TError = ErrorType<void | DmError>,
|
|
143
|
+
>(options?: {
|
|
144
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>>;
|
|
145
|
+
request?: SecondParameter<typeof customInstance>;
|
|
146
|
+
}) => {
|
|
147
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
148
|
+
|
|
149
|
+
const queryKey = queryOptions?.queryKey ?? getGetModeQueryKey();
|
|
150
|
+
|
|
151
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getMode>>> = ({ signal }) =>
|
|
152
|
+
getMode(requestOptions, signal);
|
|
153
|
+
|
|
154
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
155
|
+
|
|
156
|
+
return customOptions as UseSuspenseQueryOptions<
|
|
157
|
+
Awaited<ReturnType<typeof getMode>>,
|
|
158
|
+
TError,
|
|
159
|
+
TData
|
|
160
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export type GetModeSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMode>>>;
|
|
164
|
+
export type GetModeSuspenseQueryError = ErrorType<void | DmError>;
|
|
165
|
+
|
|
166
|
+
export function useGetModeSuspense<
|
|
167
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
168
|
+
TError = ErrorType<void | DmError>,
|
|
169
|
+
>(
|
|
170
|
+
options: {
|
|
171
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>>;
|
|
172
|
+
request?: SecondParameter<typeof customInstance>;
|
|
173
|
+
},
|
|
174
|
+
queryClient?: QueryClient,
|
|
175
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
176
|
+
export function useGetModeSuspense<
|
|
177
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
178
|
+
TError = ErrorType<void | DmError>,
|
|
179
|
+
>(
|
|
180
|
+
options?: {
|
|
181
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>>;
|
|
182
|
+
request?: SecondParameter<typeof customInstance>;
|
|
183
|
+
},
|
|
184
|
+
queryClient?: QueryClient,
|
|
185
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
186
|
+
export function useGetModeSuspense<
|
|
187
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
188
|
+
TError = ErrorType<void | DmError>,
|
|
189
|
+
>(
|
|
190
|
+
options?: {
|
|
191
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>>;
|
|
192
|
+
request?: SecondParameter<typeof customInstance>;
|
|
193
|
+
},
|
|
194
|
+
queryClient?: QueryClient,
|
|
195
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
161
196
|
/**
|
|
162
|
-
* @summary Gets the Data Manager mode
|
|
197
|
+
* @summary Gets the Data Manager API mode
|
|
163
198
|
*/
|
|
164
199
|
|
|
165
|
-
export function useGetModeSuspense<
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
200
|
+
export function useGetModeSuspense<
|
|
201
|
+
TData = Awaited<ReturnType<typeof getMode>>,
|
|
202
|
+
TError = ErrorType<void | DmError>,
|
|
203
|
+
>(
|
|
204
|
+
options?: {
|
|
205
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMode>>, TError, TData>>;
|
|
206
|
+
request?: SecondParameter<typeof customInstance>;
|
|
207
|
+
},
|
|
208
|
+
queryClient?: QueryClient,
|
|
209
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
210
|
+
const queryOptions = useGetModeSuspenseQueryOptions(options);
|
|
211
|
+
|
|
212
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
213
|
+
TData,
|
|
214
|
+
TError
|
|
215
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
216
|
+
|
|
217
|
+
query.queryKey = queryOptions.queryKey;
|
|
175
218
|
|
|
176
219
|
return query;
|
|
177
220
|
}
|
|
178
221
|
|
|
179
|
-
|
|
180
|
-
|
|
181
222
|
/**
|
|
182
223
|
* @summary Get information about all Input Handlers that are available.
|
|
183
224
|
*/
|
|
184
225
|
export const getInputHandlers = (
|
|
185
|
-
|
|
186
|
-
|
|
226
|
+
options?: SecondParameter<typeof customInstance>,
|
|
227
|
+
signal?: AbortSignal,
|
|
187
228
|
) => {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
options);
|
|
194
|
-
}
|
|
195
|
-
|
|
229
|
+
return customInstance<InputHandlerGetResponse>(
|
|
230
|
+
{ url: `/input-handler`, method: "GET", signal },
|
|
231
|
+
options,
|
|
232
|
+
);
|
|
233
|
+
};
|
|
196
234
|
|
|
197
235
|
export const getGetInputHandlersQueryKey = () => {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
export
|
|
225
|
-
|
|
236
|
+
return [`/input-handler`] as const;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export const useGetInputHandlersQueryOptions = <
|
|
240
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
241
|
+
TError = ErrorType<void | DmError>,
|
|
242
|
+
>(options?: {
|
|
243
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>>;
|
|
244
|
+
request?: SecondParameter<typeof customInstance>;
|
|
245
|
+
}) => {
|
|
246
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
247
|
+
|
|
248
|
+
const queryKey = queryOptions?.queryKey ?? getGetInputHandlersQueryKey();
|
|
249
|
+
|
|
250
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getInputHandlers>>> = ({ signal }) =>
|
|
251
|
+
getInputHandlers(requestOptions, signal);
|
|
252
|
+
|
|
253
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
254
|
+
|
|
255
|
+
return customOptions as UseQueryOptions<
|
|
256
|
+
Awaited<ReturnType<typeof getInputHandlers>>,
|
|
257
|
+
TError,
|
|
258
|
+
TData
|
|
259
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export type GetInputHandlersQueryResult = NonNullable<Awaited<ReturnType<typeof getInputHandlers>>>;
|
|
263
|
+
export type GetInputHandlersQueryError = ErrorType<void | DmError>;
|
|
264
|
+
|
|
265
|
+
export function useGetInputHandlers<
|
|
266
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
267
|
+
TError = ErrorType<void | DmError>,
|
|
268
|
+
>(
|
|
269
|
+
options: {
|
|
270
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>> &
|
|
271
|
+
Pick<
|
|
226
272
|
DefinedInitialDataOptions<
|
|
227
273
|
Awaited<ReturnType<typeof getInputHandlers>>,
|
|
228
274
|
TError,
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
275
|
+
Awaited<ReturnType<typeof getInputHandlers>>
|
|
276
|
+
>,
|
|
277
|
+
"initialData"
|
|
278
|
+
>;
|
|
279
|
+
request?: SecondParameter<typeof customInstance>;
|
|
280
|
+
},
|
|
281
|
+
queryClient?: QueryClient,
|
|
282
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
283
|
+
export function useGetInputHandlers<
|
|
284
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
285
|
+
TError = ErrorType<void | DmError>,
|
|
286
|
+
>(
|
|
287
|
+
options?: {
|
|
288
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>> &
|
|
289
|
+
Pick<
|
|
236
290
|
UndefinedInitialDataOptions<
|
|
237
291
|
Awaited<ReturnType<typeof getInputHandlers>>,
|
|
238
292
|
TError,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
293
|
+
Awaited<ReturnType<typeof getInputHandlers>>
|
|
294
|
+
>,
|
|
295
|
+
"initialData"
|
|
296
|
+
>;
|
|
297
|
+
request?: SecondParameter<typeof customInstance>;
|
|
298
|
+
},
|
|
299
|
+
queryClient?: QueryClient,
|
|
300
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
301
|
+
export function useGetInputHandlers<
|
|
302
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
303
|
+
TError = ErrorType<void | DmError>,
|
|
304
|
+
>(
|
|
305
|
+
options?: {
|
|
306
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>>;
|
|
307
|
+
request?: SecondParameter<typeof customInstance>;
|
|
308
|
+
},
|
|
309
|
+
queryClient?: QueryClient,
|
|
310
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
248
311
|
/**
|
|
249
312
|
* @summary Get information about all Input Handlers that are available.
|
|
250
313
|
*/
|
|
251
314
|
|
|
252
|
-
export function useGetInputHandlers<
|
|
253
|
-
|
|
315
|
+
export function useGetInputHandlers<
|
|
316
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
317
|
+
TError = ErrorType<void | DmError>,
|
|
318
|
+
>(
|
|
319
|
+
options?: {
|
|
320
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>>;
|
|
321
|
+
request?: SecondParameter<typeof customInstance>;
|
|
322
|
+
},
|
|
323
|
+
queryClient?: QueryClient,
|
|
324
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
325
|
+
const queryOptions = useGetInputHandlersQueryOptions(options);
|
|
254
326
|
|
|
255
|
-
|
|
327
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
328
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
329
|
+
};
|
|
256
330
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
260
|
-
|
|
261
|
-
query.queryKey = queryOptions.queryKey ;
|
|
331
|
+
query.queryKey = queryOptions.queryKey;
|
|
262
332
|
|
|
263
333
|
return query;
|
|
264
334
|
}
|
|
265
335
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
export
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
336
|
+
export const useGetInputHandlersSuspenseQueryOptions = <
|
|
337
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
338
|
+
TError = ErrorType<void | DmError>,
|
|
339
|
+
>(options?: {
|
|
340
|
+
query?: Partial<
|
|
341
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>
|
|
342
|
+
>;
|
|
343
|
+
request?: SecondParameter<typeof customInstance>;
|
|
344
|
+
}) => {
|
|
345
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
346
|
+
|
|
347
|
+
const queryKey = queryOptions?.queryKey ?? getGetInputHandlersQueryKey();
|
|
348
|
+
|
|
349
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getInputHandlers>>> = ({ signal }) =>
|
|
350
|
+
getInputHandlers(requestOptions, signal);
|
|
351
|
+
|
|
352
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
353
|
+
|
|
354
|
+
return customOptions as UseSuspenseQueryOptions<
|
|
355
|
+
Awaited<ReturnType<typeof getInputHandlers>>,
|
|
356
|
+
TError,
|
|
357
|
+
TData
|
|
358
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export type GetInputHandlersSuspenseQueryResult = NonNullable<
|
|
362
|
+
Awaited<ReturnType<typeof getInputHandlers>>
|
|
363
|
+
>;
|
|
364
|
+
export type GetInputHandlersSuspenseQueryError = ErrorType<void | DmError>;
|
|
365
|
+
|
|
366
|
+
export function useGetInputHandlersSuspense<
|
|
367
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
368
|
+
TError = ErrorType<void | DmError>,
|
|
369
|
+
>(
|
|
370
|
+
options: {
|
|
371
|
+
query: Partial<
|
|
372
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>
|
|
373
|
+
>;
|
|
374
|
+
request?: SecondParameter<typeof customInstance>;
|
|
375
|
+
},
|
|
376
|
+
queryClient?: QueryClient,
|
|
377
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
378
|
+
export function useGetInputHandlersSuspense<
|
|
379
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
380
|
+
TError = ErrorType<void | DmError>,
|
|
381
|
+
>(
|
|
382
|
+
options?: {
|
|
383
|
+
query?: Partial<
|
|
384
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>
|
|
385
|
+
>;
|
|
386
|
+
request?: SecondParameter<typeof customInstance>;
|
|
387
|
+
},
|
|
388
|
+
queryClient?: QueryClient,
|
|
389
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
390
|
+
export function useGetInputHandlersSuspense<
|
|
391
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
392
|
+
TError = ErrorType<void | DmError>,
|
|
393
|
+
>(
|
|
394
|
+
options?: {
|
|
395
|
+
query?: Partial<
|
|
396
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>
|
|
397
|
+
>;
|
|
398
|
+
request?: SecondParameter<typeof customInstance>;
|
|
399
|
+
},
|
|
400
|
+
queryClient?: QueryClient,
|
|
401
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
302
402
|
/**
|
|
303
403
|
* @summary Get information about all Input Handlers that are available.
|
|
304
404
|
*/
|
|
305
405
|
|
|
306
|
-
export function useGetInputHandlersSuspense<
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
406
|
+
export function useGetInputHandlersSuspense<
|
|
407
|
+
TData = Awaited<ReturnType<typeof getInputHandlers>>,
|
|
408
|
+
TError = ErrorType<void | DmError>,
|
|
409
|
+
>(
|
|
410
|
+
options?: {
|
|
411
|
+
query?: Partial<
|
|
412
|
+
UseSuspenseQueryOptions<Awaited<ReturnType<typeof getInputHandlers>>, TError, TData>
|
|
413
|
+
>;
|
|
414
|
+
request?: SecondParameter<typeof customInstance>;
|
|
415
|
+
},
|
|
416
|
+
queryClient?: QueryClient,
|
|
417
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
418
|
+
const queryOptions = useGetInputHandlersSuspenseQueryOptions(options);
|
|
419
|
+
|
|
420
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
421
|
+
TData,
|
|
422
|
+
TError
|
|
423
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
424
|
+
|
|
425
|
+
query.queryKey = queryOptions.queryKey;
|
|
316
426
|
|
|
317
427
|
return query;
|
|
318
428
|
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|