@squonk/data-manager-client 1.2.3 → 1.2.4-rc.2
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 +31 -13
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +77 -0
- package/accounting/accounting.d.ts +10 -1
- package/accounting/accounting.js +29 -11
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +67 -27
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +324 -0
- package/admin/admin.d.ts +55 -22
- package/admin/admin.js +57 -17
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +23 -13
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +57 -0
- package/application/application.d.ts +7 -1
- package/application/application.js +22 -12
- package/application/application.js.map +1 -1
- package/{chunk-UZTHSGDT.cjs → chunk-J22A7LHX.cjs} +1 -1
- package/chunk-J22A7LHX.cjs.map +1 -0
- package/{chunk-3RNIDX7T.js → chunk-UKA7G3OB.js} +1 -1
- package/{chunk-3RNIDX7T.js.map → chunk-UKA7G3OB.js.map} +1 -1
- package/configuration/configuration.cjs +13 -7
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +29 -0
- package/configuration/configuration.d.ts +4 -1
- package/configuration/configuration.js +13 -7
- package/configuration/configuration.js.map +1 -1
- package/{custom-instance-50c9dd5d.d.ts → custom-instance-3d66fe97.d.ts} +826 -826
- package/dataset/dataset.cjs +71 -72
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +315 -0
- package/dataset/dataset.d.ts +46 -16
- package/dataset/dataset.js +62 -63
- package/dataset/dataset.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +43 -32
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +180 -0
- package/exchange-rate/exchange-rate.d.ts +25 -7
- package/exchange-rate/exchange-rate.js +38 -27
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file/file.cjs +38 -22
- package/file/file.cjs.map +1 -1
- package/file/file.d.cts +154 -0
- package/file/file.d.ts +25 -10
- package/file/file.js +34 -18
- package/file/file.js.map +1 -1
- package/index.cjs +10 -10
- package/index.cjs.map +1 -1
- package/index.d.cts +2 -0
- package/index.d.ts +1 -1
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/instance/instance.cjs +47 -37
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +215 -0
- package/instance/instance.d.ts +33 -12
- package/instance/instance.js +41 -31
- package/instance/instance.js.map +1 -1
- package/job/job.cjs +36 -19
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +85 -0
- package/job/job.d.ts +10 -1
- package/job/job.js +34 -17
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +23 -26
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +132 -0
- package/metadata/metadata.d.ts +19 -7
- package/metadata/metadata.js +20 -23
- package/metadata/metadata.js.map +1 -1
- package/package.json +12 -12
- package/project/project.cjs +70 -48
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +377 -0
- package/project/project.d.ts +61 -25
- package/project/project.js +59 -37
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +179 -194
- package/src/admin/admin.ts +590 -735
- package/src/application/application.ts +125 -141
- package/src/configuration/configuration.ts +72 -60
- package/src/data-manager-api.schemas.ts +941 -942
- package/src/dataset/dataset.ts +591 -770
- package/src/exchange-rate/exchange-rate.ts +362 -478
- package/src/file/file.ts +292 -357
- package/src/instance/instance.ts +427 -533
- package/src/job/job.ts +187 -198
- package/src/metadata/metadata.ts +247 -339
- package/src/project/project.ts +669 -860
- package/src/task/task.ts +181 -202
- package/src/type/type.ts +72 -68
- package/src/user/user.ts +248 -286
- package/task/task.cjs +31 -15
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +103 -0
- package/task/task.d.ts +10 -1
- package/task/task.js +29 -13
- package/task/task.js.map +1 -1
- package/type/type.cjs +13 -7
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +31 -0
- package/type/type.d.ts +4 -1
- package/type/type.js +13 -7
- package/type/type.js.map +1 -1
- package/user/user.cjs +39 -28
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +104 -0
- package/user/user.d.ts +16 -4
- package/user/user.js +36 -25
- package/user/user.js.map +1 -1
- package/chunk-UZTHSGDT.cjs.map +0 -1
package/src/job/job.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval v6.
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Dataset Manager API
|
|
5
5
|
* The Dataset Manager API service.
|
|
@@ -8,32 +8,36 @@ A service that allows *registered* users to make **Datasets** and associated **M
|
|
|
8
8
|
|
|
9
9
|
* OpenAPI spec version: 1.2
|
|
10
10
|
*/
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
useQuery
|
|
13
|
+
} from '@tanstack/react-query'
|
|
12
14
|
import type {
|
|
13
|
-
UseQueryOptions,
|
|
14
15
|
QueryFunction,
|
|
15
|
-
UseQueryResult,
|
|
16
16
|
QueryKey,
|
|
17
|
-
|
|
17
|
+
UseQueryOptions,
|
|
18
|
+
UseQueryResult
|
|
19
|
+
} from '@tanstack/react-query'
|
|
18
20
|
import type {
|
|
19
|
-
JobsGetResponse,
|
|
20
21
|
DmError,
|
|
21
|
-
GetJobsParams,
|
|
22
|
-
JobGetResponse,
|
|
23
22
|
GetJobByVersionParams,
|
|
24
23
|
GetJobParams,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
GetJobsParams,
|
|
25
|
+
JobGetResponse,
|
|
26
|
+
JobsGetResponse
|
|
27
|
+
} from '../data-manager-api.schemas'
|
|
28
|
+
import { customInstance } from '.././custom-instance';
|
|
29
|
+
import type { ErrorType } from '.././custom-instance';
|
|
30
|
+
|
|
28
31
|
|
|
29
32
|
// eslint-disable-next-line
|
|
30
|
-
type SecondParameter<T extends (...args: any) => any> = T extends (
|
|
33
|
+
type SecondParameter<T extends (...args: any) => any> = T extends (
|
|
31
34
|
config: any,
|
|
32
|
-
args: infer P
|
|
35
|
+
args: infer P,
|
|
33
36
|
) => any
|
|
34
37
|
? P
|
|
35
38
|
: never;
|
|
36
39
|
|
|
40
|
+
|
|
37
41
|
/**
|
|
38
42
|
* Get a list of all Jobs available to you that can be instantiated via the `/instance` endpoint.
|
|
39
43
|
|
|
@@ -42,67 +46,64 @@ Job availability will vary as Jobs are added to the service.
|
|
|
42
46
|
* @summary Get all Jobs available to you
|
|
43
47
|
*/
|
|
44
48
|
export const getJobs = (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
params?: GetJobsParams,
|
|
50
|
+
options?: SecondParameter<typeof customInstance>,signal?: AbortSignal
|
|
51
|
+
) => {
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
return customInstance<JobsGetResponse>(
|
|
55
|
+
{url: `/job`, method: 'get',
|
|
56
|
+
params, signal
|
|
57
|
+
},
|
|
58
|
+
options);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export const getGetJobsQueryKey = (params?: GetJobsParams,) => {
|
|
63
|
+
|
|
64
|
+
return ["data-manager-api", `/job`, ...(params ? [params]: [])] as const;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
export const getGetJobsQueryOptions = <TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>, request?: SecondParameter<typeof customInstance>}
|
|
48
69
|
) => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
export type GetJobsQueryResult = NonNullable<
|
|
82
|
-
Awaited<ReturnType<typeof getJobs>>
|
|
83
|
-
>;
|
|
84
|
-
export type GetJobsQueryError = ErrorType<DmError>;
|
|
85
|
-
|
|
86
|
-
export const useGetJobs = <
|
|
87
|
-
TData = Awaited<ReturnType<typeof getJobs>>,
|
|
88
|
-
TError = ErrorType<DmError>
|
|
89
|
-
>(
|
|
90
|
-
params?: GetJobsParams,
|
|
91
|
-
options?: {
|
|
92
|
-
query?: UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>;
|
|
93
|
-
request?: SecondParameter<typeof customInstance>;
|
|
94
|
-
}
|
|
95
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
|
|
96
|
-
const queryOptions = getGetJobsQueryOptions(params, options);
|
|
97
|
-
|
|
98
|
-
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {
|
|
99
|
-
queryKey: QueryKey;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
query.queryKey = queryOptions.queryKey;
|
|
70
|
+
|
|
71
|
+
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
72
|
+
|
|
73
|
+
const queryKey = queryOptions?.queryKey ?? getGetJobsQueryKey(params);
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobs>>> = ({ signal }) => getJobs(params, requestOptions, signal);
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData> & { queryKey: QueryKey }
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type GetJobsQueryResult = NonNullable<Awaited<ReturnType<typeof getJobs>>>
|
|
87
|
+
export type GetJobsQueryError = ErrorType<DmError>
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @summary Get all Jobs available to you
|
|
91
|
+
*/
|
|
92
|
+
export const useGetJobs = <TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(
|
|
93
|
+
params?: GetJobsParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>, request?: SecondParameter<typeof customInstance>}
|
|
94
|
+
|
|
95
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
|
|
96
|
+
|
|
97
|
+
const queryOptions = getGetJobsQueryOptions(params,options)
|
|
98
|
+
|
|
99
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
100
|
+
|
|
101
|
+
query.queryKey = queryOptions.queryKey ;
|
|
103
102
|
|
|
104
103
|
return query;
|
|
105
|
-
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
106
107
|
|
|
107
108
|
/**
|
|
108
109
|
* Gets a Job based on its **collection**, **job** and **version**.
|
|
@@ -112,77 +113,64 @@ Job availability will vary as Jobs are added to the service. Jobs that have been
|
|
|
112
113
|
* @summary Get a Job by its version
|
|
113
114
|
*/
|
|
114
115
|
export const getJobByVersion = (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
signal?: AbortSignal
|
|
116
|
+
params: GetJobByVersionParams,
|
|
117
|
+
options?: SecondParameter<typeof customInstance>,signal?: AbortSignal
|
|
118
118
|
) => {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Awaited<ReturnType<typeof getJobByVersion>>,
|
|
170
|
-
TError,
|
|
171
|
-
TData
|
|
172
|
-
>;
|
|
173
|
-
request?: SecondParameter<typeof customInstance>;
|
|
174
|
-
}
|
|
175
|
-
): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
|
|
176
|
-
const queryOptions = getGetJobByVersionQueryOptions(params, options);
|
|
177
|
-
|
|
178
|
-
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {
|
|
179
|
-
queryKey: QueryKey;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
query.queryKey = queryOptions.queryKey;
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
return customInstance<JobGetResponse>(
|
|
122
|
+
{url: `/job/get-by-version`, method: 'get',
|
|
123
|
+
params, signal
|
|
124
|
+
},
|
|
125
|
+
options);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
export const getGetJobByVersionQueryKey = (params: GetJobByVersionParams,) => {
|
|
130
|
+
|
|
131
|
+
return ["data-manager-api", `/job/get-by-version`, ...(params ? [params]: [])] as const;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
export const getGetJobByVersionQueryOptions = <TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>, request?: SecondParameter<typeof customInstance>}
|
|
136
|
+
) => {
|
|
137
|
+
|
|
138
|
+
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
139
|
+
|
|
140
|
+
const queryKey = queryOptions?.queryKey ?? getGetJobByVersionQueryKey(params);
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobByVersion>>> = ({ signal }) => getJobByVersion(params, requestOptions, signal);
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData> & { queryKey: QueryKey }
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type GetJobByVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getJobByVersion>>>
|
|
154
|
+
export type GetJobByVersionQueryError = ErrorType<DmError>
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @summary Get a Job by its version
|
|
158
|
+
*/
|
|
159
|
+
export const useGetJobByVersion = <TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(
|
|
160
|
+
params: GetJobByVersionParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>, request?: SecondParameter<typeof customInstance>}
|
|
161
|
+
|
|
162
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
|
|
163
|
+
|
|
164
|
+
const queryOptions = getGetJobByVersionQueryOptions(params,options)
|
|
165
|
+
|
|
166
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
167
|
+
|
|
168
|
+
query.queryKey = queryOptions.queryKey ;
|
|
183
169
|
|
|
184
170
|
return query;
|
|
185
|
-
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
186
174
|
|
|
187
175
|
/**
|
|
188
176
|
* Get details of a specific Job available to you that can be instantiated.
|
|
@@ -192,65 +180,66 @@ To run a job you need to use the `/instance` endpoint. The Job is controlled thr
|
|
|
192
180
|
* @summary Get details of a specific Job
|
|
193
181
|
*/
|
|
194
182
|
export const getJob = (
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
signal?: AbortSignal
|
|
183
|
+
jobId: number,
|
|
184
|
+
params?: GetJobParams,
|
|
185
|
+
options?: SecondParameter<typeof customInstance>,signal?: AbortSignal
|
|
199
186
|
) => {
|
|
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
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
signal,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
export
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
request?: SecondParameter<typeof customInstance
|
|
245
|
-
|
|
246
|
-
):
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
query.queryKey = queryOptions.queryKey;
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
return customInstance<JobGetResponse>(
|
|
190
|
+
{url: `/job/${jobId}`, method: 'get',
|
|
191
|
+
params, signal
|
|
192
|
+
},
|
|
193
|
+
options);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
export const getGetJobQueryKey = (jobId: number,
|
|
198
|
+
params?: GetJobParams,) => {
|
|
199
|
+
|
|
200
|
+
return ["data-manager-api", `/job/${jobId}`, ...(params ? [params]: [])] as const;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
export const getGetJobQueryOptions = <TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number,
|
|
205
|
+
params?: GetJobParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>, request?: SecondParameter<typeof customInstance>}
|
|
206
|
+
) => {
|
|
207
|
+
|
|
208
|
+
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
209
|
+
|
|
210
|
+
const queryKey = queryOptions?.queryKey ?? getGetJobQueryKey(jobId,params);
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getJob>>> = ({ signal }) => getJob(jobId,params, requestOptions, signal);
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
return { queryKey, queryFn, enabled: !!(jobId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData> & { queryKey: QueryKey }
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type GetJobQueryResult = NonNullable<Awaited<ReturnType<typeof getJob>>>
|
|
224
|
+
export type GetJobQueryError = ErrorType<void | DmError>
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @summary Get details of a specific Job
|
|
228
|
+
*/
|
|
229
|
+
export const useGetJob = <TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(
|
|
230
|
+
jobId: number,
|
|
231
|
+
params?: GetJobParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>, request?: SecondParameter<typeof customInstance>}
|
|
232
|
+
|
|
233
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
|
|
234
|
+
|
|
235
|
+
const queryOptions = getGetJobQueryOptions(jobId,params,options)
|
|
236
|
+
|
|
237
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
238
|
+
|
|
239
|
+
query.queryKey = queryOptions.queryKey ;
|
|
254
240
|
|
|
255
241
|
return query;
|
|
256
|
-
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|