@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
|
@@ -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,
|
|
@@ -87,13 +92,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
87
92
|
export type GetAllApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>
|
|
88
93
|
export type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>
|
|
89
94
|
|
|
95
|
+
|
|
96
|
+
export function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
97
|
+
params: undefined | GetAllApplicationExchangeRatesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>> & Pick<
|
|
98
|
+
DefinedInitialDataOptions<
|
|
99
|
+
Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,
|
|
100
|
+
TError,
|
|
101
|
+
TData
|
|
102
|
+
> , 'initialData'
|
|
103
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
104
|
+
|
|
105
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
106
|
+
export function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
107
|
+
params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>> & Pick<
|
|
108
|
+
UndefinedInitialDataOptions<
|
|
109
|
+
Awaited<ReturnType<typeof getAllApplicationExchangeRates>>,
|
|
110
|
+
TError,
|
|
111
|
+
TData
|
|
112
|
+
> , 'initialData'
|
|
113
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
114
|
+
|
|
115
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
116
|
+
export function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
117
|
+
params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
118
|
+
|
|
119
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
90
120
|
/**
|
|
91
121
|
* @summary Gets Exchange Rates for all Applications
|
|
92
122
|
*/
|
|
93
|
-
|
|
123
|
+
|
|
124
|
+
export function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
94
125
|
params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
95
126
|
|
|
96
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
127
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
97
128
|
|
|
98
129
|
const queryOptions = getGetAllApplicationExchangeRatesQueryOptions(params,options)
|
|
99
130
|
|
|
@@ -127,13 +158,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
127
158
|
export type GetAllApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>
|
|
128
159
|
export type GetAllApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>
|
|
129
160
|
|
|
161
|
+
|
|
162
|
+
export function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
163
|
+
params: undefined | GetAllApplicationExchangeRatesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
164
|
+
|
|
165
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
166
|
+
export function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
167
|
+
params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
168
|
+
|
|
169
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
170
|
+
export function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
171
|
+
params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
172
|
+
|
|
173
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
130
174
|
/**
|
|
131
175
|
* @summary Gets Exchange Rates for all Applications
|
|
132
176
|
*/
|
|
133
|
-
|
|
177
|
+
|
|
178
|
+
export function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
134
179
|
params?: GetAllApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
135
180
|
|
|
136
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
181
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
137
182
|
|
|
138
183
|
const queryOptions = getGetAllApplicationExchangeRatesSuspenseQueryOptions(params,options)
|
|
139
184
|
|
|
@@ -176,10 +221,10 @@ if(exchangeRatePutBodyBody.comment !== undefined) {
|
|
|
176
221
|
|
|
177
222
|
|
|
178
223
|
|
|
179
|
-
export const getSetApplicationExchangeRateMutationOptions = <TError = ErrorType<DmError>,
|
|
224
|
+
export const getSetApplicationExchangeRateMutationOptions = <TError = ErrorType<void | DmError>,
|
|
180
225
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
181
226
|
): UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext> => {
|
|
182
|
-
|
|
227
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
183
228
|
|
|
184
229
|
|
|
185
230
|
|
|
@@ -193,18 +238,23 @@ export const getSetApplicationExchangeRateMutationOptions = <TError = ErrorType<
|
|
|
193
238
|
|
|
194
239
|
|
|
195
240
|
|
|
196
|
-
|
|
241
|
+
return { mutationFn, ...mutationOptions }}
|
|
197
242
|
|
|
198
243
|
export type SetApplicationExchangeRateMutationResult = NonNullable<Awaited<ReturnType<typeof setApplicationExchangeRate>>>
|
|
199
244
|
export type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody
|
|
200
|
-
export type SetApplicationExchangeRateMutationError = ErrorType<DmError>
|
|
245
|
+
export type SetApplicationExchangeRateMutationError = ErrorType<void | DmError>
|
|
201
246
|
|
|
202
247
|
/**
|
|
203
248
|
* @summary Sets the Exchange Rate for a specific Application
|
|
204
249
|
*/
|
|
205
|
-
export const useSetApplicationExchangeRate = <TError = ErrorType<DmError>,
|
|
250
|
+
export const useSetApplicationExchangeRate = <TError = ErrorType<void | DmError>,
|
|
206
251
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError,{applicationId: string;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
207
|
-
)
|
|
252
|
+
): UseMutationResult<
|
|
253
|
+
Awaited<ReturnType<typeof setApplicationExchangeRate>>,
|
|
254
|
+
TError,
|
|
255
|
+
{applicationId: string;data: ExchangeRatePutBodyBody},
|
|
256
|
+
TContext
|
|
257
|
+
> => {
|
|
208
258
|
|
|
209
259
|
const mutationOptions = getSetApplicationExchangeRateMutationOptions(options);
|
|
210
260
|
|
|
@@ -258,14 +308,43 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
258
308
|
export type GetApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>
|
|
259
309
|
export type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>
|
|
260
310
|
|
|
311
|
+
|
|
312
|
+
export function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
313
|
+
applicationId: string,
|
|
314
|
+
params: undefined | GetApplicationExchangeRatesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>> & Pick<
|
|
315
|
+
DefinedInitialDataOptions<
|
|
316
|
+
Awaited<ReturnType<typeof getApplicationExchangeRates>>,
|
|
317
|
+
TError,
|
|
318
|
+
TData
|
|
319
|
+
> , 'initialData'
|
|
320
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
321
|
+
|
|
322
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
323
|
+
export function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
324
|
+
applicationId: string,
|
|
325
|
+
params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>> & Pick<
|
|
326
|
+
UndefinedInitialDataOptions<
|
|
327
|
+
Awaited<ReturnType<typeof getApplicationExchangeRates>>,
|
|
328
|
+
TError,
|
|
329
|
+
TData
|
|
330
|
+
> , 'initialData'
|
|
331
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
332
|
+
|
|
333
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
334
|
+
export function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
335
|
+
applicationId: string,
|
|
336
|
+
params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
337
|
+
|
|
338
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
261
339
|
/**
|
|
262
340
|
* @summary Gets the Application's Exchange Rate history
|
|
263
341
|
*/
|
|
264
|
-
|
|
342
|
+
|
|
343
|
+
export function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
265
344
|
applicationId: string,
|
|
266
345
|
params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
267
346
|
|
|
268
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
347
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
269
348
|
|
|
270
349
|
const queryOptions = getGetApplicationExchangeRatesQueryOptions(applicationId,params,options)
|
|
271
350
|
|
|
@@ -300,14 +379,31 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
300
379
|
export type GetApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>
|
|
301
380
|
export type GetApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>
|
|
302
381
|
|
|
382
|
+
|
|
383
|
+
export function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
384
|
+
applicationId: string,
|
|
385
|
+
params: undefined | GetApplicationExchangeRatesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
386
|
+
|
|
387
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
388
|
+
export function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
389
|
+
applicationId: string,
|
|
390
|
+
params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
391
|
+
|
|
392
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
393
|
+
export function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
394
|
+
applicationId: string,
|
|
395
|
+
params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
396
|
+
|
|
397
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
303
398
|
/**
|
|
304
399
|
* @summary Gets the Application's Exchange Rate history
|
|
305
400
|
*/
|
|
306
|
-
|
|
401
|
+
|
|
402
|
+
export function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
307
403
|
applicationId: string,
|
|
308
404
|
params?: GetApplicationExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
309
405
|
|
|
310
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
406
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
311
407
|
|
|
312
408
|
const queryOptions = getGetApplicationExchangeRatesSuspenseQueryOptions(applicationId,params,options)
|
|
313
409
|
|
|
@@ -365,13 +461,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
365
461
|
export type GetAllJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>
|
|
366
462
|
export type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>
|
|
367
463
|
|
|
464
|
+
|
|
465
|
+
export function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
466
|
+
params: undefined | GetAllJobExchangeRatesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>> & Pick<
|
|
467
|
+
DefinedInitialDataOptions<
|
|
468
|
+
Awaited<ReturnType<typeof getAllJobExchangeRates>>,
|
|
469
|
+
TError,
|
|
470
|
+
TData
|
|
471
|
+
> , 'initialData'
|
|
472
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
473
|
+
|
|
474
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
475
|
+
export function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
476
|
+
params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>> & Pick<
|
|
477
|
+
UndefinedInitialDataOptions<
|
|
478
|
+
Awaited<ReturnType<typeof getAllJobExchangeRates>>,
|
|
479
|
+
TError,
|
|
480
|
+
TData
|
|
481
|
+
> , 'initialData'
|
|
482
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
483
|
+
|
|
484
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
485
|
+
export function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
486
|
+
params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
487
|
+
|
|
488
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
368
489
|
/**
|
|
369
490
|
* @summary Gets Exchange Rates for all Jobs
|
|
370
491
|
*/
|
|
371
|
-
|
|
492
|
+
|
|
493
|
+
export function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
372
494
|
params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
373
495
|
|
|
374
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
496
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
375
497
|
|
|
376
498
|
const queryOptions = getGetAllJobExchangeRatesQueryOptions(params,options)
|
|
377
499
|
|
|
@@ -405,13 +527,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
405
527
|
export type GetAllJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>
|
|
406
528
|
export type GetAllJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>
|
|
407
529
|
|
|
530
|
+
|
|
531
|
+
export function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
532
|
+
params: undefined | GetAllJobExchangeRatesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
533
|
+
|
|
534
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
535
|
+
export function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
536
|
+
params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
537
|
+
|
|
538
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
539
|
+
export function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
540
|
+
params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
541
|
+
|
|
542
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
408
543
|
/**
|
|
409
544
|
* @summary Gets Exchange Rates for all Jobs
|
|
410
545
|
*/
|
|
411
|
-
|
|
546
|
+
|
|
547
|
+
export function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
412
548
|
params?: GetAllJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
413
549
|
|
|
414
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
550
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
415
551
|
|
|
416
552
|
const queryOptions = getGetAllJobExchangeRatesSuspenseQueryOptions(params,options)
|
|
417
553
|
|
|
@@ -456,10 +592,10 @@ if(exchangeRatePutBodyBody.comment !== undefined) {
|
|
|
456
592
|
|
|
457
593
|
|
|
458
594
|
|
|
459
|
-
export const getSetJobPricingMutationOptions = <TError = ErrorType<DmError>,
|
|
595
|
+
export const getSetJobPricingMutationOptions = <TError = ErrorType<void | DmError>,
|
|
460
596
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
461
597
|
): UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext> => {
|
|
462
|
-
|
|
598
|
+
const {mutation: mutationOptions, request: requestOptions} = options ?? {};
|
|
463
599
|
|
|
464
600
|
|
|
465
601
|
|
|
@@ -473,18 +609,23 @@ export const getSetJobPricingMutationOptions = <TError = ErrorType<DmError>,
|
|
|
473
609
|
|
|
474
610
|
|
|
475
611
|
|
|
476
|
-
|
|
612
|
+
return { mutationFn, ...mutationOptions }}
|
|
477
613
|
|
|
478
614
|
export type SetJobPricingMutationResult = NonNullable<Awaited<ReturnType<typeof setJobPricing>>>
|
|
479
615
|
export type SetJobPricingMutationBody = ExchangeRatePutBodyBody
|
|
480
|
-
export type SetJobPricingMutationError = ErrorType<DmError>
|
|
616
|
+
export type SetJobPricingMutationError = ErrorType<void | DmError>
|
|
481
617
|
|
|
482
618
|
/**
|
|
483
619
|
* @summary Sets the Exchange Rate for a specific Job
|
|
484
620
|
*/
|
|
485
|
-
export const useSetJobPricing = <TError = ErrorType<DmError>,
|
|
621
|
+
export const useSetJobPricing = <TError = ErrorType<void | DmError>,
|
|
486
622
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError,{jobId: number;data: ExchangeRatePutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
|
|
487
|
-
)
|
|
623
|
+
): UseMutationResult<
|
|
624
|
+
Awaited<ReturnType<typeof setJobPricing>>,
|
|
625
|
+
TError,
|
|
626
|
+
{jobId: number;data: ExchangeRatePutBodyBody},
|
|
627
|
+
TContext
|
|
628
|
+
> => {
|
|
488
629
|
|
|
489
630
|
const mutationOptions = getSetJobPricingMutationOptions(options);
|
|
490
631
|
|
|
@@ -538,14 +679,43 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
538
679
|
export type GetJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>
|
|
539
680
|
export type GetJobExchangeRatesQueryError = ErrorType<void | DmError>
|
|
540
681
|
|
|
682
|
+
|
|
683
|
+
export function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
684
|
+
jobId: number,
|
|
685
|
+
params: undefined | GetJobExchangeRatesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>> & Pick<
|
|
686
|
+
DefinedInitialDataOptions<
|
|
687
|
+
Awaited<ReturnType<typeof getJobExchangeRates>>,
|
|
688
|
+
TError,
|
|
689
|
+
TData
|
|
690
|
+
> , 'initialData'
|
|
691
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
692
|
+
|
|
693
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
694
|
+
export function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
695
|
+
jobId: number,
|
|
696
|
+
params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>> & Pick<
|
|
697
|
+
UndefinedInitialDataOptions<
|
|
698
|
+
Awaited<ReturnType<typeof getJobExchangeRates>>,
|
|
699
|
+
TError,
|
|
700
|
+
TData
|
|
701
|
+
> , 'initialData'
|
|
702
|
+
>, request?: SecondParameter<typeof customInstance>}
|
|
703
|
+
|
|
704
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
705
|
+
export function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
706
|
+
jobId: number,
|
|
707
|
+
params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
708
|
+
|
|
709
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
541
710
|
/**
|
|
542
711
|
* @summary Gets Job Exchange Rates
|
|
543
712
|
*/
|
|
544
|
-
|
|
713
|
+
|
|
714
|
+
export function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
545
715
|
jobId: number,
|
|
546
716
|
params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
547
717
|
|
|
548
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
718
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
549
719
|
|
|
550
720
|
const queryOptions = getGetJobExchangeRatesQueryOptions(jobId,params,options)
|
|
551
721
|
|
|
@@ -580,14 +750,31 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
|
580
750
|
export type GetJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>
|
|
581
751
|
export type GetJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>
|
|
582
752
|
|
|
753
|
+
|
|
754
|
+
export function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
755
|
+
jobId: number,
|
|
756
|
+
params: undefined | GetJobExchangeRatesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
757
|
+
|
|
758
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
759
|
+
export function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
760
|
+
jobId: number,
|
|
761
|
+
params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
762
|
+
|
|
763
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
764
|
+
export function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
765
|
+
jobId: number,
|
|
766
|
+
params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
767
|
+
|
|
768
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
583
769
|
/**
|
|
584
770
|
* @summary Gets Job Exchange Rates
|
|
585
771
|
*/
|
|
586
|
-
|
|
772
|
+
|
|
773
|
+
export function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(
|
|
587
774
|
jobId: number,
|
|
588
775
|
params?: GetJobExchangeRatesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
|
|
589
776
|
|
|
590
|
-
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
|
|
777
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
591
778
|
|
|
592
779
|
const queryOptions = getGetJobExchangeRatesSuspenseQueryOptions(jobId,params,options)
|
|
593
780
|
|