@squonk/data-manager-client 3.1.0-beta.2 → 3.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.
- package/accounting/accounting.cjs +12 -12
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +103 -49
- package/accounting/accounting.d.ts +103 -49
- package/accounting/accounting.js +12 -12
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +12 -12
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +168 -115
- package/admin/admin.d.ts +168 -115
- package/admin/admin.js +12 -12
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +8 -8
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +69 -33
- package/application/application.d.ts +69 -33
- package/application/application.js +8 -8
- package/application/application.js.map +1 -1
- package/chunk-TKLTUR4R.cjs.map +1 -1
- package/configuration/configuration.cjs +4 -4
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +35 -17
- package/configuration/configuration.d.ts +35 -17
- package/configuration/configuration.js +4 -4
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +16 -16
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +181 -110
- package/dataset/dataset.d.ts +181 -110
- package/dataset/dataset.js +16 -16
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +4 -4
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +35 -17
- package/digest/digest.d.ts +35 -17
- package/digest/digest.js +4 -4
- package/digest/digest.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +16 -16
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +155 -84
- package/exchange-rate/exchange-rate.d.ts +155 -84
- package/exchange-rate/exchange-rate.js +16 -16
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file-and-path/file-and-path.cjs +8 -8
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +133 -98
- package/file-and-path/file-and-path.d.ts +133 -98
- package/file-and-path/file-and-path.js +8 -8
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.cts +156 -68
- package/index.d.ts +156 -68
- package/index.js.map +1 -1
- package/instance/instance.cjs +8 -8
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +106 -71
- package/instance/instance.d.ts +106 -71
- package/instance/instance.js +8 -8
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +4 -4
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +35 -17
- package/inventory/inventory.d.ts +35 -17
- package/inventory/inventory.js +4 -4
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +12 -12
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +103 -49
- package/job/job.d.ts +103 -49
- package/job/job.js +12 -12
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +8 -8
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +81 -46
- package/metadata/metadata.d.ts +81 -46
- package/metadata/metadata.js +8 -8
- package/metadata/metadata.js.map +1 -1
- package/package.json +7 -7
- package/project/project.cjs +16 -16
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +225 -154
- package/project/project.d.ts +225 -154
- package/project/project.js +16 -16
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +137 -13
- package/src/admin/admin.ts +217 -52
- package/src/application/application.ts +93 -9
- package/src/configuration/configuration.ts +49 -5
- package/src/data-manager-api.schemas.ts +156 -70
- package/src/dataset/dataset.ts +250 -42
- package/src/digest/digest.ts +49 -5
- package/src/exchange-rate/exchange-rate.ts +216 -29
- package/src/file-and-path/file-and-path.ts +172 -52
- package/src/instance/instance.ts +137 -27
- package/src/inventory/inventory.ts +49 -5
- package/src/job/job.ts +143 -13
- package/src/metadata/metadata.ts +116 -15
- package/src/project/project.ts +302 -75
- package/src/task/task.ts +111 -15
- package/src/type/type.ts +49 -5
- package/src/user/user.ts +149 -19
- package/task/task.cjs +8 -8
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +78 -43
- package/task/task.d.ts +78 -43
- package/task/task.js +8 -8
- package/task/task.js.map +1 -1
- package/type/type.cjs +4 -4
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +35 -17
- package/type/type.d.ts +35 -17
- package/type/type.js +4 -4
- package/type/type.js.map +1 -1
- package/user/user.cjs +12 -12
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +112 -59
- package/user/user.d.ts +112 -59
- package/user/user.js +12 -12
- package/user/user.js.map +1 -1
package/src/admin/admin.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
1
2
|
/**
|
|
2
|
-
* Generated by orval
|
|
3
|
+
* Generated by orval v7.2.0 🍺
|
|
3
4
|
* Do not edit manually.
|
|
4
5
|
* Dataset Manager API
|
|
5
6
|
* The Dataset Manager API service.
|
|
@@ -14,10 +15,14 @@ import {
|
|
|
14
15
|
useSuspenseQuery
|
|
15
16
|
} from '@tanstack/react-query'
|
|
16
17
|
import type {
|
|
18
|
+
DefinedInitialDataOptions,
|
|
19
|
+
DefinedUseQueryResult,
|
|
17
20
|
MutationFunction,
|
|
18
21
|
QueryFunction,
|
|
19
22
|
QueryKey,
|
|
23
|
+
UndefinedInitialDataOptions,
|
|
20
24
|
UseMutationOptions,
|
|
25
|
+
UseMutationResult,
|
|
21
26
|
UseQueryOptions,
|
|
22
27
|
UseQueryResult,
|
|
23
28
|
UseSuspenseQueryOptions,
|
|
@@ -90,13 +95,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
90
95
|
export type AdminGetServiceErrorsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetServiceErrors>>>
|
|
91
96
|
export type AdminGetServiceErrorsQueryError = ErrorType<void | DmError>
|
|
92
97
|
|
|
98
|
+
|
|
99
|
+
export function useAdminGetServiceErrors<TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(
|
|
100
|
+
params: undefined | AdminGetServiceErrorsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>> & Pick<
|
|
101
|
+
DefinedInitialDataOptions<
|
|
102
|
+
Awaited<ReturnType<typeof adminGetServiceErrors>>,
|
|
103
|
+
TError,
|
|
104
|
+
TData
|
|
105
|
+
> , 'initialData'
|
|
106
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
107
|
+
|
|
108
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
109
|
+
export function useAdminGetServiceErrors<TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(
|
|
110
|
+
params?: AdminGetServiceErrorsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>> & Pick<
|
|
111
|
+
UndefinedInitialDataOptions<
|
|
112
|
+
Awaited<ReturnType<typeof adminGetServiceErrors>>,
|
|
113
|
+
TError,
|
|
114
|
+
TData
|
|
115
|
+
> , 'initialData'
|
|
116
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
117
|
+
|
|
118
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
119
|
+
export function useAdminGetServiceErrors<TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(
|
|
120
|
+
params?: AdminGetServiceErrorsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
121
|
+
|
|
122
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
93
123
|
/**
|
|
94
124
|
* @summary Gets Service Errors
|
|
95
125
|
*/
|
|
96
|
-
|
|
126
|
+
|
|
127
|
+
export function useAdminGetServiceErrors<TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(
|
|
97
128
|
params?: AdminGetServiceErrorsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
98
129
|
|
|
99
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
130
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
100
131
|
|
|
101
132
|
const queryOptions = getAdminGetServiceErrorsQueryOptions(params,options)
|
|
102
133
|
|
|
@@ -130,13 +161,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
130
161
|
export type AdminGetServiceErrorsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetServiceErrors>>>
|
|
131
162
|
export type AdminGetServiceErrorsSuspenseQueryError = ErrorType<void | DmError>
|
|
132
163
|
|
|
164
|
+
|
|
165
|
+
export function useAdminGetServiceErrorsSuspense<TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(
|
|
166
|
+
params: undefined | AdminGetServiceErrorsParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
167
|
+
|
|
168
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
169
|
+
export function useAdminGetServiceErrorsSuspense<TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(
|
|
170
|
+
params?: AdminGetServiceErrorsParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
171
|
+
|
|
172
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
173
|
+
export function useAdminGetServiceErrorsSuspense<TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(
|
|
174
|
+
params?: AdminGetServiceErrorsParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
175
|
+
|
|
176
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
133
177
|
/**
|
|
134
178
|
* @summary Gets Service Errors
|
|
135
179
|
*/
|
|
136
|
-
|
|
180
|
+
|
|
181
|
+
export function useAdminGetServiceErrorsSuspense<TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(
|
|
137
182
|
params?: AdminGetServiceErrorsParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
138
183
|
|
|
139
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
184
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
140
185
|
|
|
141
186
|
const queryOptions = getAdminGetServiceErrorsSuspenseQueryOptions(params,options)
|
|
142
187
|
|
|
@@ -169,10 +214,10 @@ export const adminPatchServiceError = (
|
|
|
169
214
|
|
|
170
215
|
|
|
171
216
|
|
|
172
|
-
export const getAdminPatchServiceErrorMutationOptions = <TError = ErrorType<DmError>,
|
|
217
|
+
export const getAdminPatchServiceErrorMutationOptions = <TError = ErrorType<void | DmError>,
|
|
173
218
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPatchServiceError>>, TError,{errorId: number}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
174
219
|
): UseMutationOptions<Awaited<ReturnType<typeof adminPatchServiceError>>, TError,{errorId: number}, TContext> => {
|
|
175
|
-
|
|
220
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
176
221
|
|
|
177
222
|
|
|
178
223
|
|
|
@@ -186,18 +231,23 @@ export const getAdminPatchServiceErrorMutationOptions = <TError = ErrorType<DmEr
|
|
|
186
231
|
|
|
187
232
|
|
|
188
233
|
|
|
189
|
-
|
|
234
|
+
return { mutationFn, ...mutationOptions }}
|
|
190
235
|
|
|
191
236
|
export type AdminPatchServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchServiceError>>>
|
|
192
237
|
|
|
193
|
-
export type AdminPatchServiceErrorMutationError = ErrorType<DmError>
|
|
238
|
+
export type AdminPatchServiceErrorMutationError = ErrorType<void | DmError>
|
|
194
239
|
|
|
195
240
|
/**
|
|
196
241
|
* @summary Patches a Service Error
|
|
197
242
|
*/
|
|
198
|
-
export const useAdminPatchServiceError = <TError = ErrorType<DmError>,
|
|
243
|
+
export const useAdminPatchServiceError = <TError = ErrorType<void | DmError>,
|
|
199
244
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPatchServiceError>>, TError,{errorId: number}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
200
|
-
)
|
|
245
|
+
): UseMutationResult<
|
|
246
|
+
Awaited<ReturnType<typeof adminPatchServiceError>>,
|
|
247
|
+
TError,
|
|
248
|
+
{errorId: number},
|
|
249
|
+
TContext
|
|
250
|
+
> => {
|
|
201
251
|
|
|
202
252
|
const mutationOptions = getAdminPatchServiceErrorMutationOptions(options);
|
|
203
253
|
|
|
@@ -223,10 +273,10 @@ export const adminDeleteServiceError = (
|
|
|
223
273
|
|
|
224
274
|
|
|
225
275
|
|
|
226
|
-
export const getAdminDeleteServiceErrorMutationOptions = <TError = ErrorType<DmError>,
|
|
276
|
+
export const getAdminDeleteServiceErrorMutationOptions = <TError = ErrorType<void | DmError>,
|
|
227
277
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteServiceError>>, TError,{errorId: number}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
228
278
|
): UseMutationOptions<Awaited<ReturnType<typeof adminDeleteServiceError>>, TError,{errorId: number}, TContext> => {
|
|
229
|
-
|
|
279
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
230
280
|
|
|
231
281
|
|
|
232
282
|
|
|
@@ -240,18 +290,23 @@ export const getAdminDeleteServiceErrorMutationOptions = <TError = ErrorType<DmE
|
|
|
240
290
|
|
|
241
291
|
|
|
242
292
|
|
|
243
|
-
|
|
293
|
+
return { mutationFn, ...mutationOptions }}
|
|
244
294
|
|
|
245
295
|
export type AdminDeleteServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteServiceError>>>
|
|
246
296
|
|
|
247
|
-
export type AdminDeleteServiceErrorMutationError = ErrorType<DmError>
|
|
297
|
+
export type AdminDeleteServiceErrorMutationError = ErrorType<void | DmError>
|
|
248
298
|
|
|
249
299
|
/**
|
|
250
300
|
* @summary Deletes a Service Error
|
|
251
301
|
*/
|
|
252
|
-
export const useAdminDeleteServiceError = <TError = ErrorType<DmError>,
|
|
302
|
+
export const useAdminDeleteServiceError = <TError = ErrorType<void | DmError>,
|
|
253
303
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteServiceError>>, TError,{errorId: number}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
254
|
-
)
|
|
304
|
+
): UseMutationResult<
|
|
305
|
+
Awaited<ReturnType<typeof adminDeleteServiceError>>,
|
|
306
|
+
TError,
|
|
307
|
+
{errorId: number},
|
|
308
|
+
TContext
|
|
309
|
+
> => {
|
|
255
310
|
|
|
256
311
|
const mutationOptions = getAdminDeleteServiceErrorMutationOptions(options);
|
|
257
312
|
|
|
@@ -302,13 +357,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
302
357
|
export type AdminGetUsersQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetUsers>>>
|
|
303
358
|
export type AdminGetUsersQueryError = ErrorType<void | DmError>
|
|
304
359
|
|
|
360
|
+
|
|
361
|
+
export function useAdminGetUsers<TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(
|
|
362
|
+
params: undefined | AdminGetUsersParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>> & Pick<
|
|
363
|
+
DefinedInitialDataOptions<
|
|
364
|
+
Awaited<ReturnType<typeof adminGetUsers>>,
|
|
365
|
+
TError,
|
|
366
|
+
TData
|
|
367
|
+
> , 'initialData'
|
|
368
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
369
|
+
|
|
370
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
371
|
+
export function useAdminGetUsers<TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(
|
|
372
|
+
params?: AdminGetUsersParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>> & Pick<
|
|
373
|
+
UndefinedInitialDataOptions<
|
|
374
|
+
Awaited<ReturnType<typeof adminGetUsers>>,
|
|
375
|
+
TError,
|
|
376
|
+
TData
|
|
377
|
+
> , 'initialData'
|
|
378
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
379
|
+
|
|
380
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
381
|
+
export function useAdminGetUsers<TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(
|
|
382
|
+
params?: AdminGetUsersParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
383
|
+
|
|
384
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
305
385
|
/**
|
|
306
386
|
* @summary Get detailed information about all known Users
|
|
307
387
|
*/
|
|
308
|
-
|
|
388
|
+
|
|
389
|
+
export function useAdminGetUsers<TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(
|
|
309
390
|
params?: AdminGetUsersParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
310
391
|
|
|
311
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
392
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
312
393
|
|
|
313
394
|
const queryOptions = getAdminGetUsersQueryOptions(params,options)
|
|
314
395
|
|
|
@@ -342,13 +423,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
342
423
|
export type AdminGetUsersSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetUsers>>>
|
|
343
424
|
export type AdminGetUsersSuspenseQueryError = ErrorType<void | DmError>
|
|
344
425
|
|
|
426
|
+
|
|
427
|
+
export function useAdminGetUsersSuspense<TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(
|
|
428
|
+
params: undefined | AdminGetUsersParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
429
|
+
|
|
430
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
431
|
+
export function useAdminGetUsersSuspense<TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(
|
|
432
|
+
params?: AdminGetUsersParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
433
|
+
|
|
434
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
435
|
+
export function useAdminGetUsersSuspense<TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(
|
|
436
|
+
params?: AdminGetUsersParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
437
|
+
|
|
438
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
345
439
|
/**
|
|
346
440
|
* @summary Get detailed information about all known Users
|
|
347
441
|
*/
|
|
348
|
-
|
|
442
|
+
|
|
443
|
+
export function useAdminGetUsersSuspense<TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(
|
|
349
444
|
params?: AdminGetUsersParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
350
445
|
|
|
351
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
446
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
352
447
|
|
|
353
448
|
const queryOptions = getAdminGetUsersSuspenseQueryOptions(params,options)
|
|
354
449
|
|
|
@@ -384,7 +479,7 @@ export const adminPutUser = (
|
|
|
384
479
|
export const getAdminPutUserMutationOptions = <TError = ErrorType<void | DmError>,
|
|
385
480
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPutUser>>, TError,{userId: string}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
386
481
|
): UseMutationOptions<Awaited<ReturnType<typeof adminPutUser>>, TError,{userId: string}, TContext> => {
|
|
387
|
-
|
|
482
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
388
483
|
|
|
389
484
|
|
|
390
485
|
|
|
@@ -398,7 +493,7 @@ export const getAdminPutUserMutationOptions = <TError = ErrorType<void | DmError
|
|
|
398
493
|
|
|
399
494
|
|
|
400
495
|
|
|
401
|
-
|
|
496
|
+
return { mutationFn, ...mutationOptions }}
|
|
402
497
|
|
|
403
498
|
export type AdminPutUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPutUser>>>
|
|
404
499
|
|
|
@@ -409,7 +504,12 @@ export const getAdminPutUserMutationOptions = <TError = ErrorType<void | DmError
|
|
|
409
504
|
*/
|
|
410
505
|
export const useAdminPutUser = <TError = ErrorType<void | DmError>,
|
|
411
506
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPutUser>>, TError,{userId: string}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
412
|
-
)
|
|
507
|
+
): UseMutationResult<
|
|
508
|
+
Awaited<ReturnType<typeof adminPutUser>>,
|
|
509
|
+
TError,
|
|
510
|
+
{userId: string},
|
|
511
|
+
TContext
|
|
512
|
+
> => {
|
|
413
513
|
|
|
414
514
|
const mutationOptions = getAdminPutUserMutationOptions(options);
|
|
415
515
|
|
|
@@ -435,10 +535,10 @@ export const adminDeleteUser = (
|
|
|
435
535
|
|
|
436
536
|
|
|
437
537
|
|
|
438
|
-
export const getAdminDeleteUserMutationOptions = <TError = ErrorType<DmError>,
|
|
538
|
+
export const getAdminDeleteUserMutationOptions = <TError = ErrorType<void | DmError>,
|
|
439
539
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteUser>>, TError,{userId: string}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
440
540
|
): UseMutationOptions<Awaited<ReturnType<typeof adminDeleteUser>>, TError,{userId: string}, TContext> => {
|
|
441
|
-
|
|
541
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
442
542
|
|
|
443
543
|
|
|
444
544
|
|
|
@@ -452,18 +552,23 @@ export const getAdminDeleteUserMutationOptions = <TError = ErrorType<DmError>,
|
|
|
452
552
|
|
|
453
553
|
|
|
454
554
|
|
|
455
|
-
|
|
555
|
+
return { mutationFn, ...mutationOptions }}
|
|
456
556
|
|
|
457
557
|
export type AdminDeleteUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteUser>>>
|
|
458
558
|
|
|
459
|
-
export type AdminDeleteUserMutationError = ErrorType<DmError>
|
|
559
|
+
export type AdminDeleteUserMutationError = ErrorType<void | DmError>
|
|
460
560
|
|
|
461
561
|
/**
|
|
462
562
|
* @summary Deletes a user account
|
|
463
563
|
*/
|
|
464
|
-
export const useAdminDeleteUser = <TError = ErrorType<DmError>,
|
|
564
|
+
export const useAdminDeleteUser = <TError = ErrorType<void | DmError>,
|
|
465
565
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteUser>>, TError,{userId: string}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
466
|
-
)
|
|
566
|
+
): UseMutationResult<
|
|
567
|
+
Awaited<ReturnType<typeof adminDeleteUser>>,
|
|
568
|
+
TError,
|
|
569
|
+
{userId: string},
|
|
570
|
+
TContext
|
|
571
|
+
> => {
|
|
467
572
|
|
|
468
573
|
const mutationOptions = getAdminDeleteUserMutationOptions(options);
|
|
469
574
|
|
|
@@ -496,10 +601,10 @@ if(userPatchBodyBody.suspend_message !== undefined) {
|
|
|
496
601
|
|
|
497
602
|
|
|
498
603
|
|
|
499
|
-
export const getAdminPatchUserMutationOptions = <TError = ErrorType<DmError>,
|
|
604
|
+
export const getAdminPatchUserMutationOptions = <TError = ErrorType<void | DmError>,
|
|
500
605
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPatchUser>>, TError,{userId: string;data: UserPatchBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
501
606
|
): UseMutationOptions<Awaited<ReturnType<typeof adminPatchUser>>, TError,{userId: string;data: UserPatchBodyBody}, TContext> => {
|
|
502
|
-
|
|
607
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
503
608
|
|
|
504
609
|
|
|
505
610
|
|
|
@@ -513,18 +618,23 @@ export const getAdminPatchUserMutationOptions = <TError = ErrorType<DmError>,
|
|
|
513
618
|
|
|
514
619
|
|
|
515
620
|
|
|
516
|
-
|
|
621
|
+
return { mutationFn, ...mutationOptions }}
|
|
517
622
|
|
|
518
623
|
export type AdminPatchUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchUser>>>
|
|
519
624
|
export type AdminPatchUserMutationBody = UserPatchBodyBody
|
|
520
|
-
export type AdminPatchUserMutationError = ErrorType<DmError>
|
|
625
|
+
export type AdminPatchUserMutationError = ErrorType<void | DmError>
|
|
521
626
|
|
|
522
627
|
/**
|
|
523
628
|
* @summary Patch a given user
|
|
524
629
|
*/
|
|
525
|
-
export const useAdminPatchUser = <TError = ErrorType<DmError>,
|
|
630
|
+
export const useAdminPatchUser = <TError = ErrorType<void | DmError>,
|
|
526
631
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPatchUser>>, TError,{userId: string;data: UserPatchBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
527
|
-
)
|
|
632
|
+
): UseMutationResult<
|
|
633
|
+
Awaited<ReturnType<typeof adminPatchUser>>,
|
|
634
|
+
TError,
|
|
635
|
+
{userId: string;data: UserPatchBodyBody},
|
|
636
|
+
TContext
|
|
637
|
+
> => {
|
|
528
638
|
|
|
529
639
|
const mutationOptions = getAdminPatchUserMutationOptions(options);
|
|
530
640
|
|
|
@@ -576,13 +686,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
576
686
|
export type AdminGetJobManifestsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetJobManifests>>>
|
|
577
687
|
export type AdminGetJobManifestsQueryError = ErrorType<void | DmError>
|
|
578
688
|
|
|
689
|
+
|
|
690
|
+
export function useAdminGetJobManifests<TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(
|
|
691
|
+
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>> & Pick<
|
|
692
|
+
DefinedInitialDataOptions<
|
|
693
|
+
Awaited<ReturnType<typeof adminGetJobManifests>>,
|
|
694
|
+
TError,
|
|
695
|
+
TData
|
|
696
|
+
> , 'initialData'
|
|
697
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
698
|
+
|
|
699
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
700
|
+
export function useAdminGetJobManifests<TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(
|
|
701
|
+
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>> & Pick<
|
|
702
|
+
UndefinedInitialDataOptions<
|
|
703
|
+
Awaited<ReturnType<typeof adminGetJobManifests>>,
|
|
704
|
+
TError,
|
|
705
|
+
TData
|
|
706
|
+
> , 'initialData'
|
|
707
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
708
|
+
|
|
709
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
710
|
+
export function useAdminGetJobManifests<TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(
|
|
711
|
+
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
712
|
+
|
|
713
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
579
714
|
/**
|
|
580
715
|
* @summary Get Job Manifests
|
|
581
716
|
*/
|
|
582
|
-
|
|
717
|
+
|
|
718
|
+
export function useAdminGetJobManifests<TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(
|
|
583
719
|
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
584
720
|
|
|
585
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
721
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
586
722
|
|
|
587
723
|
const queryOptions = getAdminGetJobManifestsQueryOptions(options)
|
|
588
724
|
|
|
@@ -616,13 +752,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
616
752
|
export type AdminGetJobManifestsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetJobManifests>>>
|
|
617
753
|
export type AdminGetJobManifestsSuspenseQueryError = ErrorType<void | DmError>
|
|
618
754
|
|
|
755
|
+
|
|
756
|
+
export function useAdminGetJobManifestsSuspense<TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(
|
|
757
|
+
options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
758
|
+
|
|
759
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
760
|
+
export function useAdminGetJobManifestsSuspense<TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(
|
|
761
|
+
options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
762
|
+
|
|
763
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
764
|
+
export function useAdminGetJobManifestsSuspense<TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(
|
|
765
|
+
options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
766
|
+
|
|
767
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
619
768
|
/**
|
|
620
769
|
* @summary Get Job Manifests
|
|
621
770
|
*/
|
|
622
|
-
|
|
771
|
+
|
|
772
|
+
export function useAdminGetJobManifestsSuspense<TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(
|
|
623
773
|
options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
624
774
|
|
|
625
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
775
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
626
776
|
|
|
627
777
|
const queryOptions = getAdminGetJobManifestsSuspenseQueryOptions(options)
|
|
628
778
|
|
|
@@ -670,7 +820,7 @@ if(jobManifestPutBodyBody.params !== undefined) {
|
|
|
670
820
|
export const getAdminJobManifestPutMutationOptions = <TError = ErrorType<void | DmError>,
|
|
671
821
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestPut>>, TError,{data: JobManifestPutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
672
822
|
): UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestPut>>, TError,{data: JobManifestPutBodyBody}, TContext> => {
|
|
673
|
-
|
|
823
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
674
824
|
|
|
675
825
|
|
|
676
826
|
|
|
@@ -684,7 +834,7 @@ export const getAdminJobManifestPutMutationOptions = <TError = ErrorType<void |
|
|
|
684
834
|
|
|
685
835
|
|
|
686
836
|
|
|
687
|
-
|
|
837
|
+
return { mutationFn, ...mutationOptions }}
|
|
688
838
|
|
|
689
839
|
export type AdminJobManifestPutMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestPut>>>
|
|
690
840
|
export type AdminJobManifestPutMutationBody = JobManifestPutBodyBody
|
|
@@ -695,7 +845,12 @@ export const getAdminJobManifestPutMutationOptions = <TError = ErrorType<void |
|
|
|
695
845
|
*/
|
|
696
846
|
export const useAdminJobManifestPut = <TError = ErrorType<void | DmError>,
|
|
697
847
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestPut>>, TError,{data: JobManifestPutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
698
|
-
)
|
|
848
|
+
): UseMutationResult<
|
|
849
|
+
Awaited<ReturnType<typeof adminJobManifestPut>>,
|
|
850
|
+
TError,
|
|
851
|
+
{data: JobManifestPutBodyBody},
|
|
852
|
+
TContext
|
|
853
|
+
> => {
|
|
699
854
|
|
|
700
855
|
const mutationOptions = getAdminJobManifestPutMutationOptions(options);
|
|
701
856
|
|
|
@@ -725,10 +880,10 @@ export const adminDeleteJobManifest = (
|
|
|
725
880
|
|
|
726
881
|
|
|
727
882
|
|
|
728
|
-
export const getAdminDeleteJobManifestMutationOptions = <TError = ErrorType<DmError>,
|
|
883
|
+
export const getAdminDeleteJobManifestMutationOptions = <TError = ErrorType<void | DmError>,
|
|
729
884
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteJobManifest>>, TError,{jobManifestId: number;params?: AdminDeleteJobManifestParams}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
730
885
|
): UseMutationOptions<Awaited<ReturnType<typeof adminDeleteJobManifest>>, TError,{jobManifestId: number;params?: AdminDeleteJobManifestParams}, TContext> => {
|
|
731
|
-
|
|
886
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
732
887
|
|
|
733
888
|
|
|
734
889
|
|
|
@@ -742,18 +897,23 @@ export const getAdminDeleteJobManifestMutationOptions = <TError = ErrorType<DmEr
|
|
|
742
897
|
|
|
743
898
|
|
|
744
899
|
|
|
745
|
-
|
|
900
|
+
return { mutationFn, ...mutationOptions }}
|
|
746
901
|
|
|
747
902
|
export type AdminDeleteJobManifestMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteJobManifest>>>
|
|
748
903
|
|
|
749
|
-
export type AdminDeleteJobManifestMutationError = ErrorType<DmError>
|
|
904
|
+
export type AdminDeleteJobManifestMutationError = ErrorType<void | DmError>
|
|
750
905
|
|
|
751
906
|
/**
|
|
752
907
|
* @summary Deletes a Job Manifest
|
|
753
908
|
*/
|
|
754
|
-
export const useAdminDeleteJobManifest = <TError = ErrorType<DmError>,
|
|
909
|
+
export const useAdminDeleteJobManifest = <TError = ErrorType<void | DmError>,
|
|
755
910
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteJobManifest>>, TError,{jobManifestId: number;params?: AdminDeleteJobManifestParams}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
756
|
-
)
|
|
911
|
+
): UseMutationResult<
|
|
912
|
+
Awaited<ReturnType<typeof adminDeleteJobManifest>>,
|
|
913
|
+
TError,
|
|
914
|
+
{jobManifestId: number;params?: AdminDeleteJobManifestParams},
|
|
915
|
+
TContext
|
|
916
|
+
> => {
|
|
757
917
|
|
|
758
918
|
const mutationOptions = getAdminDeleteJobManifestMutationOptions(options);
|
|
759
919
|
|
|
@@ -784,7 +944,7 @@ export const adminJobManifestLoad = (
|
|
|
784
944
|
export const getAdminJobManifestLoadMutationOptions = <TError = ErrorType<void | DmError>,
|
|
785
945
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestLoad>>, TError,void, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
786
946
|
): UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestLoad>>, TError,void, TContext> => {
|
|
787
|
-
|
|
947
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
788
948
|
|
|
789
949
|
|
|
790
950
|
|
|
@@ -798,7 +958,7 @@ export const getAdminJobManifestLoadMutationOptions = <TError = ErrorType<void |
|
|
|
798
958
|
|
|
799
959
|
|
|
800
960
|
|
|
801
|
-
|
|
961
|
+
return { mutationFn, ...mutationOptions }}
|
|
802
962
|
|
|
803
963
|
export type AdminJobManifestLoadMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestLoad>>>
|
|
804
964
|
|
|
@@ -809,7 +969,12 @@ export const getAdminJobManifestLoadMutationOptions = <TError = ErrorType<void |
|
|
|
809
969
|
*/
|
|
810
970
|
export const useAdminJobManifestLoad = <TError = ErrorType<void | DmError>,
|
|
811
971
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestLoad>>, TError,void, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
812
|
-
)
|
|
972
|
+
): UseMutationResult<
|
|
973
|
+
Awaited<ReturnType<typeof adminJobManifestLoad>>,
|
|
974
|
+
TError,
|
|
975
|
+
void,
|
|
976
|
+
TContext
|
|
977
|
+
> => {
|
|
813
978
|
|
|
814
979
|
const mutationOptions = getAdminJobManifestLoadMutationOptions(options);
|
|
815
980
|
|