@squonk/data-manager-client 1.2.3-rc.2 → 1.2.4-rc.1
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-a2110e78.d.ts} +825 -825
- 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 +940 -941
- 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/admin/admin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as AdminGetServiceErrorsParams, bX as customInstance, bf as ServiceErrorsGetResponse, bY as ErrorType, bT as DmError, a as AdminGetUsersParams, bN as AdminUsersGetResponse, al as UserAccountDetail, a5 as UserPatchBodyBody, bQ as AdminJobManifestGetResponse, ab as JobManifestPutBodyBody, bP as AdminJobManifestLoadPutResponse, A as AdminDeleteJobManifestParams } from '../custom-instance-50c9dd5d.js';
|
|
2
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
2
|
import { UseQueryOptions, QueryKey, UseQueryResult, UseMutationOptions } from '@tanstack/react-query';
|
|
3
|
+
import { b as AdminGetServiceErrorsParams, bX as customInstance, bf as ServiceErrorsGetResponse, bY as ErrorType, bT as DmError, a as AdminGetUsersParams, bN as AdminUsersGetResponse, al as UserAccountDetail, a5 as UserPatchBodyBody, bQ as AdminJobManifestGetResponse, ab as JobManifestPutBodyBody, bP as AdminJobManifestLoadPutResponse, A as AdminDeleteJobManifestParams } from '../custom-instance-a2110e78.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
|
|
6
6
|
type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
|
@@ -21,6 +21,9 @@ declare const getAdminGetServiceErrorsQueryOptions: <TData = ServiceErrorsGetRes
|
|
|
21
21
|
};
|
|
22
22
|
type AdminGetServiceErrorsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetServiceErrors>>>;
|
|
23
23
|
type AdminGetServiceErrorsQueryError = ErrorType<void | DmError>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Gets Service Errors
|
|
26
|
+
*/
|
|
24
27
|
declare const useAdminGetServiceErrors: <TData = ServiceErrorsGetResponse, TError = ErrorType<void | DmError>>(params?: AdminGetServiceErrorsParams, options?: {
|
|
25
28
|
query?: UseQueryOptions<ServiceErrorsGetResponse, TError, TData, QueryKey> | undefined;
|
|
26
29
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -45,6 +48,9 @@ declare const getAdminPatchServiceErrorMutationOptions: <TError = ErrorType<DmEr
|
|
|
45
48
|
}, TContext>;
|
|
46
49
|
type AdminPatchServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchServiceError>>>;
|
|
47
50
|
type AdminPatchServiceErrorMutationError = ErrorType<DmError>;
|
|
51
|
+
/**
|
|
52
|
+
* @summary Patches a Service Error
|
|
53
|
+
*/
|
|
48
54
|
declare const useAdminPatchServiceError: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
49
55
|
mutation?: UseMutationOptions<void, TError, {
|
|
50
56
|
errorId: number;
|
|
@@ -54,12 +60,12 @@ declare const useAdminPatchServiceError: <TError = ErrorType<DmError>, TContext
|
|
|
54
60
|
errorId: number;
|
|
55
61
|
}, TContext>;
|
|
56
62
|
/**
|
|
57
|
-
|
|
63
|
+
* Deletes an existing Service Error.
|
|
58
64
|
|
|
59
65
|
You will need `admin` rights to use this endpoint
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
67
|
+
* @summary Deletes a Service Error
|
|
68
|
+
*/
|
|
63
69
|
declare const adminDeleteServiceError: (errorId: number, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
64
70
|
declare const getAdminDeleteServiceErrorMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
65
71
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -71,6 +77,9 @@ declare const getAdminDeleteServiceErrorMutationOptions: <TError = ErrorType<DmE
|
|
|
71
77
|
}, TContext>;
|
|
72
78
|
type AdminDeleteServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteServiceError>>>;
|
|
73
79
|
type AdminDeleteServiceErrorMutationError = ErrorType<DmError>;
|
|
80
|
+
/**
|
|
81
|
+
* @summary Deletes a Service Error
|
|
82
|
+
*/
|
|
74
83
|
declare const useAdminDeleteServiceError: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
75
84
|
mutation?: UseMutationOptions<void, TError, {
|
|
76
85
|
errorId: number;
|
|
@@ -80,10 +89,10 @@ declare const useAdminDeleteServiceError: <TError = ErrorType<DmError>, TContext
|
|
|
80
89
|
errorId: number;
|
|
81
90
|
}, TContext>;
|
|
82
91
|
/**
|
|
83
|
-
|
|
92
|
+
* You need admin privileges to use this endpoint and you are excluded from the returned list of users
|
|
84
93
|
|
|
85
|
-
|
|
86
|
-
|
|
94
|
+
* @summary Get detailed information about all known Users
|
|
95
|
+
*/
|
|
87
96
|
declare const adminGetUsers: (params?: AdminGetUsersParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<AdminUsersGetResponse>;
|
|
88
97
|
declare const getAdminGetUsersQueryKey: (params?: AdminGetUsersParams) => readonly ["data-manager-api", "/admin/user", ...AdminGetUsersParams[]];
|
|
89
98
|
declare const getAdminGetUsersQueryOptions: <TData = AdminUsersGetResponse, TError = ErrorType<void | DmError>>(params?: AdminGetUsersParams, options?: {
|
|
@@ -94,6 +103,9 @@ declare const getAdminGetUsersQueryOptions: <TData = AdminUsersGetResponse, TErr
|
|
|
94
103
|
};
|
|
95
104
|
type AdminGetUsersQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetUsers>>>;
|
|
96
105
|
type AdminGetUsersQueryError = ErrorType<void | DmError>;
|
|
106
|
+
/**
|
|
107
|
+
* @summary Get detailed information about all known Users
|
|
108
|
+
*/
|
|
97
109
|
declare const useAdminGetUsers: <TData = AdminUsersGetResponse, TError = ErrorType<void | DmError>>(params?: AdminGetUsersParams, options?: {
|
|
98
110
|
query?: UseQueryOptions<AdminUsersGetResponse, TError, TData, QueryKey> | undefined;
|
|
99
111
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -118,6 +130,9 @@ declare const getAdminPutUserMutationOptions: <TError = ErrorType<void | DmError
|
|
|
118
130
|
}, TContext>;
|
|
119
131
|
type AdminPutUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPutUser>>>;
|
|
120
132
|
type AdminPutUserMutationError = ErrorType<void | DmError>;
|
|
133
|
+
/**
|
|
134
|
+
* @summary Prepares a user account in the Data Manager service
|
|
135
|
+
*/
|
|
121
136
|
declare const useAdminPutUser: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
122
137
|
mutation?: UseMutationOptions<UserAccountDetail, TError, {
|
|
123
138
|
userId: string;
|
|
@@ -127,12 +142,12 @@ declare const useAdminPutUser: <TError = ErrorType<void | DmError>, TContext = u
|
|
|
127
142
|
userId: string;
|
|
128
143
|
}, TContext>;
|
|
129
144
|
/**
|
|
130
|
-
|
|
145
|
+
* Deletes a user account, along with all the user's Datasets
|
|
131
146
|
|
|
132
147
|
You will need `admin` rights to use this endpoint
|
|
133
148
|
|
|
134
|
-
|
|
135
|
-
|
|
149
|
+
* @summary Deletes a user account
|
|
150
|
+
*/
|
|
136
151
|
declare const adminDeleteUser: (userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
137
152
|
declare const getAdminDeleteUserMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
138
153
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -144,6 +159,9 @@ declare const getAdminDeleteUserMutationOptions: <TError = ErrorType<DmError>, T
|
|
|
144
159
|
}, TContext>;
|
|
145
160
|
type AdminDeleteUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteUser>>>;
|
|
146
161
|
type AdminDeleteUserMutationError = ErrorType<DmError>;
|
|
162
|
+
/**
|
|
163
|
+
* @summary Deletes a user account
|
|
164
|
+
*/
|
|
147
165
|
declare const useAdminDeleteUser: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
148
166
|
mutation?: UseMutationOptions<void, TError, {
|
|
149
167
|
userId: string;
|
|
@@ -153,12 +171,12 @@ declare const useAdminDeleteUser: <TError = ErrorType<DmError>, TContext = unkno
|
|
|
153
171
|
userId: string;
|
|
154
172
|
}, TContext>;
|
|
155
173
|
/**
|
|
156
|
-
|
|
174
|
+
* Patches a user record, typically to suspend or re-enable a user account
|
|
157
175
|
|
|
158
176
|
You will need `admin` rights to use this endpoint
|
|
159
177
|
|
|
160
|
-
|
|
161
|
-
|
|
178
|
+
* @summary Patch a given user
|
|
179
|
+
*/
|
|
162
180
|
declare const adminPatchUser: (userId: string, userPatchBodyBody: UserPatchBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
163
181
|
declare const getAdminPatchUserMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
164
182
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -173,6 +191,9 @@ declare const getAdminPatchUserMutationOptions: <TError = ErrorType<DmError>, TC
|
|
|
173
191
|
type AdminPatchUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchUser>>>;
|
|
174
192
|
type AdminPatchUserMutationBody = UserPatchBodyBody;
|
|
175
193
|
type AdminPatchUserMutationError = ErrorType<DmError>;
|
|
194
|
+
/**
|
|
195
|
+
* @summary Patch a given user
|
|
196
|
+
*/
|
|
176
197
|
declare const useAdminPatchUser: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
177
198
|
mutation?: UseMutationOptions<void, TError, {
|
|
178
199
|
userId: string;
|
|
@@ -184,12 +205,12 @@ declare const useAdminPatchUser: <TError = ErrorType<DmError>, TContext = unknow
|
|
|
184
205
|
data: UserPatchBodyBody;
|
|
185
206
|
}, TContext>;
|
|
186
207
|
/**
|
|
187
|
-
|
|
208
|
+
* Returns the list of known **Job Manifests** including the time the manifest was last loaded and its load status, a message indicating success or failure.
|
|
188
209
|
|
|
189
210
|
You will need `admin` rights to use this endpoint
|
|
190
211
|
|
|
191
|
-
|
|
192
|
-
|
|
212
|
+
* @summary Get Job Manifests
|
|
213
|
+
*/
|
|
193
214
|
declare const adminGetJobManifests: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<AdminJobManifestGetResponse>;
|
|
194
215
|
declare const getAdminGetJobManifestsQueryKey: () => readonly ["data-manager-api", "/admin/job-manifest"];
|
|
195
216
|
declare const getAdminGetJobManifestsQueryOptions: <TData = AdminJobManifestGetResponse, TError = ErrorType<void | DmError>>(options?: {
|
|
@@ -200,6 +221,9 @@ declare const getAdminGetJobManifestsQueryOptions: <TData = AdminJobManifestGetR
|
|
|
200
221
|
};
|
|
201
222
|
type AdminGetJobManifestsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetJobManifests>>>;
|
|
202
223
|
type AdminGetJobManifestsQueryError = ErrorType<void | DmError>;
|
|
224
|
+
/**
|
|
225
|
+
* @summary Get Job Manifests
|
|
226
|
+
*/
|
|
203
227
|
declare const useAdminGetJobManifests: <TData = AdminJobManifestGetResponse, TError = ErrorType<void | DmError>>(options?: {
|
|
204
228
|
query?: UseQueryOptions<AdminJobManifestGetResponse, TError, TData, QueryKey> | undefined;
|
|
205
229
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -227,6 +251,9 @@ declare const getAdminJobManifestPutMutationOptions: <TError = ErrorType<void |
|
|
|
227
251
|
type AdminJobManifestPutMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestPut>>>;
|
|
228
252
|
type AdminJobManifestPutMutationBody = JobManifestPutBodyBody;
|
|
229
253
|
type AdminJobManifestPutMutationError = ErrorType<void | DmError>;
|
|
254
|
+
/**
|
|
255
|
+
* @summary Adds a Job Manifest and triggers the download of its Job Definitions
|
|
256
|
+
*/
|
|
230
257
|
declare const useAdminJobManifestPut: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
231
258
|
mutation?: UseMutationOptions<AdminJobManifestLoadPutResponse, TError, {
|
|
232
259
|
data: JobManifestPutBodyBody;
|
|
@@ -236,14 +263,14 @@ declare const useAdminJobManifestPut: <TError = ErrorType<void | DmError>, TCont
|
|
|
236
263
|
data: JobManifestPutBodyBody;
|
|
237
264
|
}, TContext>;
|
|
238
265
|
/**
|
|
239
|
-
|
|
266
|
+
* Deletes a Job Manifest record
|
|
240
267
|
|
|
241
268
|
You need to exercise caution using this endpoint. You can disrupt the Data Manager **Instance** execution if you delete and purge Jobs while instances of any affected job may be running.
|
|
242
269
|
|
|
243
270
|
You will need `admin` rights to use this endpoint and the Data Manager needs to be running in `DEVELOPMENT` **Mode**
|
|
244
271
|
|
|
245
|
-
|
|
246
|
-
|
|
272
|
+
* @summary Deletes a Job Manifest
|
|
273
|
+
*/
|
|
247
274
|
declare const adminDeleteJobManifest: (jobManifestId: number, params?: AdminDeleteJobManifestParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
248
275
|
declare const getAdminDeleteJobManifestMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
249
276
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -257,6 +284,9 @@ declare const getAdminDeleteJobManifestMutationOptions: <TError = ErrorType<DmEr
|
|
|
257
284
|
}, TContext>;
|
|
258
285
|
type AdminDeleteJobManifestMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteJobManifest>>>;
|
|
259
286
|
type AdminDeleteJobManifestMutationError = ErrorType<DmError>;
|
|
287
|
+
/**
|
|
288
|
+
* @summary Deletes a Job Manifest
|
|
289
|
+
*/
|
|
260
290
|
declare const useAdminDeleteJobManifest: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
261
291
|
mutation?: UseMutationOptions<void, TError, {
|
|
262
292
|
jobManifestId: number;
|
|
@@ -268,14 +298,14 @@ declare const useAdminDeleteJobManifest: <TError = ErrorType<DmError>, TContext
|
|
|
268
298
|
params?: AdminDeleteJobManifestParams | undefined;
|
|
269
299
|
}, TContext>;
|
|
270
300
|
/**
|
|
271
|
-
|
|
301
|
+
* This endpoint is used to trigger the Data Manager to re-inspect the internal **Job Manifest** table and download the manifests and reprocess the related job definitions. This is normally done by an administrator when the Manifest table has been modified or if external job definitions are known to have changed in the referenced repositories.
|
|
272
302
|
|
|
273
303
|
You need to exercise caution using this endpoint. You can disrupt the Data Manager **Instance** execution if you re-load Jobs while instances of any affected job may be running.
|
|
274
304
|
|
|
275
305
|
You will need `admin` rights to use this endpoint and the Data Manager needs to be running in `DEVELOPMENT` **Mode**
|
|
276
306
|
|
|
277
|
-
|
|
278
|
-
|
|
307
|
+
* @summary Trigger a download of Job Definitions using existing Job Manifests
|
|
308
|
+
*/
|
|
279
309
|
declare const adminJobManifestLoad: (options?: SecondParameter<typeof customInstance>) => Promise<AdminJobManifestLoadPutResponse>;
|
|
280
310
|
declare const getAdminJobManifestLoadMutationOptions: <TError = ErrorType<void | DmError>, TVariables = void, TContext = unknown>(options?: {
|
|
281
311
|
mutation?: UseMutationOptions<AdminJobManifestLoadPutResponse, TError, TVariables, TContext> | undefined;
|
|
@@ -283,6 +313,9 @@ declare const getAdminJobManifestLoadMutationOptions: <TError = ErrorType<void |
|
|
|
283
313
|
} | undefined) => UseMutationOptions<AdminJobManifestLoadPutResponse, TError, TVariables, TContext>;
|
|
284
314
|
type AdminJobManifestLoadMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestLoad>>>;
|
|
285
315
|
type AdminJobManifestLoadMutationError = ErrorType<void | DmError>;
|
|
316
|
+
/**
|
|
317
|
+
* @summary Trigger a download of Job Definitions using existing Job Manifests
|
|
318
|
+
*/
|
|
286
319
|
declare const useAdminJobManifestLoad: <TError = ErrorType<void | DmError>, TVariables = void, TContext = unknown>(options?: {
|
|
287
320
|
mutation?: UseMutationOptions<AdminJobManifestLoadPutResponse, TError, TVariables, TContext> | undefined;
|
|
288
321
|
request?: SecondParameter<typeof customInstance>;
|
package/admin/admin.js
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
customInstance
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-UKA7G3OB.js";
|
|
4
4
|
|
|
5
5
|
// src/admin/admin.ts
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
useMutation,
|
|
8
|
+
useQuery
|
|
9
|
+
} from "@tanstack/react-query";
|
|
7
10
|
var adminGetServiceErrors = (params, options, signal) => {
|
|
8
11
|
return customInstance(
|
|
9
|
-
{
|
|
12
|
+
{
|
|
13
|
+
url: `/admin/service-error`,
|
|
14
|
+
method: "get",
|
|
15
|
+
params,
|
|
16
|
+
signal
|
|
17
|
+
},
|
|
10
18
|
options
|
|
11
19
|
);
|
|
12
20
|
};
|
|
13
|
-
var getAdminGetServiceErrorsQueryKey = (params) =>
|
|
21
|
+
var getAdminGetServiceErrorsQueryKey = (params) => {
|
|
22
|
+
return ["data-manager-api", `/admin/service-error`, ...params ? [params] : []];
|
|
23
|
+
};
|
|
14
24
|
var getAdminGetServiceErrorsQueryOptions = (params, options) => {
|
|
15
25
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
16
26
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getAdminGetServiceErrorsQueryKey(params);
|
|
@@ -25,7 +35,10 @@ var useAdminGetServiceErrors = (params, options) => {
|
|
|
25
35
|
};
|
|
26
36
|
var adminPatchServiceError = (errorId, options) => {
|
|
27
37
|
return customInstance(
|
|
28
|
-
{
|
|
38
|
+
{
|
|
39
|
+
url: `/admin/service-error/${errorId}`,
|
|
40
|
+
method: "patch"
|
|
41
|
+
},
|
|
29
42
|
options
|
|
30
43
|
);
|
|
31
44
|
};
|
|
@@ -43,7 +56,10 @@ var useAdminPatchServiceError = (options) => {
|
|
|
43
56
|
};
|
|
44
57
|
var adminDeleteServiceError = (errorId, options) => {
|
|
45
58
|
return customInstance(
|
|
46
|
-
{
|
|
59
|
+
{
|
|
60
|
+
url: `/admin/service-error/${errorId}`,
|
|
61
|
+
method: "delete"
|
|
62
|
+
},
|
|
47
63
|
options
|
|
48
64
|
);
|
|
49
65
|
};
|
|
@@ -61,17 +77,22 @@ var useAdminDeleteServiceError = (options) => {
|
|
|
61
77
|
};
|
|
62
78
|
var adminGetUsers = (params, options, signal) => {
|
|
63
79
|
return customInstance(
|
|
64
|
-
{
|
|
80
|
+
{
|
|
81
|
+
url: `/admin/user`,
|
|
82
|
+
method: "get",
|
|
83
|
+
params,
|
|
84
|
+
signal
|
|
85
|
+
},
|
|
65
86
|
options
|
|
66
87
|
);
|
|
67
88
|
};
|
|
68
|
-
var getAdminGetUsersQueryKey = (params) =>
|
|
89
|
+
var getAdminGetUsersQueryKey = (params) => {
|
|
90
|
+
return ["data-manager-api", `/admin/user`, ...params ? [params] : []];
|
|
91
|
+
};
|
|
69
92
|
var getAdminGetUsersQueryOptions = (params, options) => {
|
|
70
93
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
71
94
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getAdminGetUsersQueryKey(params);
|
|
72
|
-
const queryFn = ({
|
|
73
|
-
signal
|
|
74
|
-
}) => adminGetUsers(params, requestOptions, signal);
|
|
95
|
+
const queryFn = ({ signal }) => adminGetUsers(params, requestOptions, signal);
|
|
75
96
|
return { queryKey, queryFn, ...queryOptions };
|
|
76
97
|
};
|
|
77
98
|
var useAdminGetUsers = (params, options) => {
|
|
@@ -82,7 +103,10 @@ var useAdminGetUsers = (params, options) => {
|
|
|
82
103
|
};
|
|
83
104
|
var adminPutUser = (userId, options) => {
|
|
84
105
|
return customInstance(
|
|
85
|
-
{
|
|
106
|
+
{
|
|
107
|
+
url: `/admin/user/${userId}`,
|
|
108
|
+
method: "put"
|
|
109
|
+
},
|
|
86
110
|
options
|
|
87
111
|
);
|
|
88
112
|
};
|
|
@@ -100,7 +124,10 @@ var useAdminPutUser = (options) => {
|
|
|
100
124
|
};
|
|
101
125
|
var adminDeleteUser = (userId, options) => {
|
|
102
126
|
return customInstance(
|
|
103
|
-
{
|
|
127
|
+
{
|
|
128
|
+
url: `/admin/user/${userId}`,
|
|
129
|
+
method: "delete"
|
|
130
|
+
},
|
|
104
131
|
options
|
|
105
132
|
);
|
|
106
133
|
};
|
|
@@ -145,11 +172,17 @@ var useAdminPatchUser = (options) => {
|
|
|
145
172
|
};
|
|
146
173
|
var adminGetJobManifests = (options, signal) => {
|
|
147
174
|
return customInstance(
|
|
148
|
-
{
|
|
175
|
+
{
|
|
176
|
+
url: `/admin/job-manifest`,
|
|
177
|
+
method: "get",
|
|
178
|
+
signal
|
|
179
|
+
},
|
|
149
180
|
options
|
|
150
181
|
);
|
|
151
182
|
};
|
|
152
|
-
var getAdminGetJobManifestsQueryKey = () =>
|
|
183
|
+
var getAdminGetJobManifestsQueryKey = () => {
|
|
184
|
+
return ["data-manager-api", `/admin/job-manifest`];
|
|
185
|
+
};
|
|
153
186
|
var getAdminGetJobManifestsQueryOptions = (options) => {
|
|
154
187
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
155
188
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getAdminGetJobManifestsQueryKey();
|
|
@@ -195,7 +228,11 @@ var useAdminJobManifestPut = (options) => {
|
|
|
195
228
|
};
|
|
196
229
|
var adminDeleteJobManifest = (jobManifestId, params, options) => {
|
|
197
230
|
return customInstance(
|
|
198
|
-
{
|
|
231
|
+
{
|
|
232
|
+
url: `/admin/job-manifest/${jobManifestId}`,
|
|
233
|
+
method: "delete",
|
|
234
|
+
params
|
|
235
|
+
},
|
|
199
236
|
options
|
|
200
237
|
);
|
|
201
238
|
};
|
|
@@ -213,7 +250,10 @@ var useAdminDeleteJobManifest = (options) => {
|
|
|
213
250
|
};
|
|
214
251
|
var adminJobManifestLoad = (options) => {
|
|
215
252
|
return customInstance(
|
|
216
|
-
{
|
|
253
|
+
{
|
|
254
|
+
url: `/admin/job-manifest/load`,
|
|
255
|
+
method: "put"
|
|
256
|
+
},
|
|
217
257
|
options
|
|
218
258
|
);
|
|
219
259
|
};
|
package/admin/admin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/admin/admin.ts"],"sourcesContent":["/**\n * Generated by orval v6.15.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 1.2\n */\nimport { useQuery, useMutation } from \"@tanstack/react-query\";\nimport type {\n UseQueryOptions,\n UseMutationOptions,\n QueryFunction,\n MutationFunction,\n UseQueryResult,\n QueryKey,\n} from \"@tanstack/react-query\";\nimport type {\n ServiceErrorsGetResponse,\n DmError,\n AdminGetServiceErrorsParams,\n AdminUsersGetResponse,\n AdminGetUsersParams,\n AdminUserPutResponse,\n UserPatchBodyBody,\n AdminJobManifestGetResponse,\n AdminJobManifestLoadPutResponse,\n JobManifestPutBodyBody,\n AdminDeleteJobManifestParams,\n} from \"../data-manager-api.schemas\";\nimport { customInstance } from \".././custom-instance\";\nimport type { ErrorType } from \".././custom-instance\";\n\n// eslint-disable-next-line\ntype SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P\n) => any\n ? P\n : never;\n\n/**\n * Displays the existing Service Errors, which can also include acknowledged errors, normally excluded from the list.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Gets Service Errors\n */\nexport const adminGetServiceErrors = (\n params?: AdminGetServiceErrorsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal\n) => {\n return customInstance<ServiceErrorsGetResponse>(\n { url: `/admin/service-error`, method: \"get\", params, signal },\n options\n );\n};\n\nexport const getAdminGetServiceErrorsQueryKey = (\n params?: AdminGetServiceErrorsParams\n) => [\"data-manager-api\", `/admin/service-error`, ...(params ? [params] : [])] as const;\n\nexport const getAdminGetServiceErrorsQueryOptions = <\n TData = Awaited<ReturnType<typeof adminGetServiceErrors>>,\n TError = ErrorType<void | DmError>\n>(\n params?: AdminGetServiceErrorsParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof adminGetServiceErrors>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<\n Awaited<ReturnType<typeof adminGetServiceErrors>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey =\n queryOptions?.queryKey ?? getAdminGetServiceErrorsQueryKey(params);\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof adminGetServiceErrors>>\n > = ({ signal }) => adminGetServiceErrors(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions };\n};\n\nexport type AdminGetServiceErrorsQueryResult = NonNullable<\n Awaited<ReturnType<typeof adminGetServiceErrors>>\n>;\nexport type AdminGetServiceErrorsQueryError = ErrorType<void | DmError>;\n\nexport const useAdminGetServiceErrors = <\n TData = Awaited<ReturnType<typeof adminGetServiceErrors>>,\n TError = ErrorType<void | DmError>\n>(\n params?: AdminGetServiceErrorsParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof adminGetServiceErrors>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getAdminGetServiceErrorsQueryOptions(params, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n};\n\n/**\n * Used primarily to 'Acknowledge' but not delete a Service Error.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Patches a Service Error\n */\nexport const adminPatchServiceError = (\n errorId: number,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<void>(\n { url: `/admin/service-error/${errorId}`, method: \"patch\" },\n options\n );\n};\n\nexport const getAdminPatchServiceErrorMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminPatchServiceError>>,\n TError,\n { errorId: number },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof adminPatchServiceError>>,\n TError,\n { errorId: number },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminPatchServiceError>>,\n { errorId: number }\n > = (props) => {\n const { errorId } = props ?? {};\n\n return adminPatchServiceError(errorId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AdminPatchServiceErrorMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminPatchServiceError>>\n>;\n\nexport type AdminPatchServiceErrorMutationError = ErrorType<DmError>;\n\nexport const useAdminPatchServiceError = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminPatchServiceError>>,\n TError,\n { errorId: number },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const mutationOptions = getAdminPatchServiceErrorMutationOptions(options);\n\n return useMutation(mutationOptions);\n};\n/**\n * Deletes an existing Service Error.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Deletes a Service Error\n */\nexport const adminDeleteServiceError = (\n errorId: number,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<void>(\n { url: `/admin/service-error/${errorId}`, method: \"delete\" },\n options\n );\n};\n\nexport const getAdminDeleteServiceErrorMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteServiceError>>,\n TError,\n { errorId: number },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteServiceError>>,\n TError,\n { errorId: number },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminDeleteServiceError>>,\n { errorId: number }\n > = (props) => {\n const { errorId } = props ?? {};\n\n return adminDeleteServiceError(errorId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AdminDeleteServiceErrorMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminDeleteServiceError>>\n>;\n\nexport type AdminDeleteServiceErrorMutationError = ErrorType<DmError>;\n\nexport const useAdminDeleteServiceError = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteServiceError>>,\n TError,\n { errorId: number },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const mutationOptions = getAdminDeleteServiceErrorMutationOptions(options);\n\n return useMutation(mutationOptions);\n};\n/**\n * You need admin privileges to use this endpoint and you are excluded from the returned list of users\n\n * @summary Get detailed information about all known Users\n */\nexport const adminGetUsers = (\n params?: AdminGetUsersParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal\n) => {\n return customInstance<AdminUsersGetResponse>(\n { url: `/admin/user`, method: \"get\", params, signal },\n options\n );\n};\n\nexport const getAdminGetUsersQueryKey = (params?: AdminGetUsersParams) =>\n [\"data-manager-api\", `/admin/user`, ...(params ? [params] : [])] as const;\n\nexport const getAdminGetUsersQueryOptions = <\n TData = Awaited<ReturnType<typeof adminGetUsers>>,\n TError = ErrorType<void | DmError>\n>(\n params?: AdminGetUsersParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof adminGetUsers>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData> & {\n queryKey: QueryKey;\n} => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getAdminGetUsersQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof adminGetUsers>>> = ({\n signal,\n }) => adminGetUsers(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions };\n};\n\nexport type AdminGetUsersQueryResult = NonNullable<\n Awaited<ReturnType<typeof adminGetUsers>>\n>;\nexport type AdminGetUsersQueryError = ErrorType<void | DmError>;\n\nexport const useAdminGetUsers = <\n TData = Awaited<ReturnType<typeof adminGetUsers>>,\n TError = ErrorType<void | DmError>\n>(\n params?: AdminGetUsersParams,\n options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof adminGetUsers>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getAdminGetUsersQueryOptions(params, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n};\n\n/**\n * This method adds a user to the Data Manager service. The user is authenticated via a keycloak server but will need an initialised account before they can create Datasets or Projects.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Prepares a user account in the Data Manager service\n */\nexport const adminPutUser = (\n userId: string,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<AdminUserPutResponse>(\n { url: `/admin/user/${userId}`, method: \"put\" },\n options\n );\n};\n\nexport const getAdminPutUserMutationOptions = <\n TError = ErrorType<void | DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminPutUser>>,\n TError,\n { userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof adminPutUser>>,\n TError,\n { userId: string },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminPutUser>>,\n { userId: string }\n > = (props) => {\n const { userId } = props ?? {};\n\n return adminPutUser(userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AdminPutUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminPutUser>>\n>;\n\nexport type AdminPutUserMutationError = ErrorType<void | DmError>;\n\nexport const useAdminPutUser = <\n TError = ErrorType<void | DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminPutUser>>,\n TError,\n { userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const mutationOptions = getAdminPutUserMutationOptions(options);\n\n return useMutation(mutationOptions);\n};\n/**\n * Deletes a user account, along with all the user's Datasets\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Deletes a user account\n */\nexport const adminDeleteUser = (\n userId: string,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<void>(\n { url: `/admin/user/${userId}`, method: \"delete\" },\n options\n );\n};\n\nexport const getAdminDeleteUserMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteUser>>,\n TError,\n { userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteUser>>,\n TError,\n { userId: string },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminDeleteUser>>,\n { userId: string }\n > = (props) => {\n const { userId } = props ?? {};\n\n return adminDeleteUser(userId, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AdminDeleteUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminDeleteUser>>\n>;\n\nexport type AdminDeleteUserMutationError = ErrorType<DmError>;\n\nexport const useAdminDeleteUser = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteUser>>,\n TError,\n { userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const mutationOptions = getAdminDeleteUserMutationOptions(options);\n\n return useMutation(mutationOptions);\n};\n/**\n * Patches a user record, typically to suspend or re-enable a user account\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Patch a given user\n */\nexport const adminPatchUser = (\n userId: string,\n userPatchBodyBody: UserPatchBodyBody,\n options?: SecondParameter<typeof customInstance>\n) => {\n const formData = new FormData();\n if (userPatchBodyBody.suspend_message !== undefined) {\n formData.append(\"suspend_message\", userPatchBodyBody.suspend_message);\n }\n\n return customInstance<void>(\n {\n url: `/admin/user/${userId}`,\n method: \"patch\",\n headers: { \"Content-Type\": \"multipart/form-data\" },\n data: formData,\n },\n options\n );\n};\n\nexport const getAdminPatchUserMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminPatchUser>>,\n TError,\n { userId: string; data: UserPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof adminPatchUser>>,\n TError,\n { userId: string; data: UserPatchBodyBody },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminPatchUser>>,\n { userId: string; data: UserPatchBodyBody }\n > = (props) => {\n const { userId, data } = props ?? {};\n\n return adminPatchUser(userId, data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AdminPatchUserMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminPatchUser>>\n>;\nexport type AdminPatchUserMutationBody = UserPatchBodyBody;\nexport type AdminPatchUserMutationError = ErrorType<DmError>;\n\nexport const useAdminPatchUser = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminPatchUser>>,\n TError,\n { userId: string; data: UserPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const mutationOptions = getAdminPatchUserMutationOptions(options);\n\n return useMutation(mutationOptions);\n};\n/**\n * Returns the list of known **Job Manifests** including the time the manifest was last loaded and its load status, a message indicating success or failure.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Get Job Manifests\n */\nexport const adminGetJobManifests = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal\n) => {\n return customInstance<AdminJobManifestGetResponse>(\n { url: `/admin/job-manifest`, method: \"get\", signal },\n options\n );\n};\n\nexport const getAdminGetJobManifestsQueryKey = () =>\n [\"data-manager-api\", `/admin/job-manifest`] as const;\n\nexport const getAdminGetJobManifestsQueryOptions = <\n TData = Awaited<ReturnType<typeof adminGetJobManifests>>,\n TError = ErrorType<void | DmError>\n>(options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof adminGetJobManifests>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseQueryOptions<\n Awaited<ReturnType<typeof adminGetJobManifests>>,\n TError,\n TData\n> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getAdminGetJobManifestsQueryKey();\n\n const queryFn: QueryFunction<\n Awaited<ReturnType<typeof adminGetJobManifests>>\n > = ({ signal }) => adminGetJobManifests(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions };\n};\n\nexport type AdminGetJobManifestsQueryResult = NonNullable<\n Awaited<ReturnType<typeof adminGetJobManifests>>\n>;\nexport type AdminGetJobManifestsQueryError = ErrorType<void | DmError>;\n\nexport const useAdminGetJobManifests = <\n TData = Awaited<ReturnType<typeof adminGetJobManifests>>,\n TError = ErrorType<void | DmError>\n>(options?: {\n query?: UseQueryOptions<\n Awaited<ReturnType<typeof adminGetJobManifests>>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const queryOptions = getAdminGetJobManifestsQueryOptions(options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n};\n\n/**\n * This endpoint is used to add (or update an existing **Job Manifest**). Manifests are the source of Job definitions. Once added the manifest is inspected and any Jobs it refers to are loaded.\n\nA limited number of manifest origins (URLs) are supported. At the moment we support basic GitHib and GitLab URLs, i.e. those that begin `https://raw.githubusercontent.com/` and `https://gitlab.com/api/v4/projects/`.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Adds a Job Manifest and triggers the download of its Job Definitions\n */\nexport const adminJobManifestPut = (\n jobManifestPutBodyBody: JobManifestPutBodyBody,\n options?: SecondParameter<typeof customInstance>\n) => {\n const formData = new FormData();\n formData.append(\"url\", jobManifestPutBodyBody.url);\n if (jobManifestPutBodyBody.header !== undefined) {\n formData.append(\"header\", jobManifestPutBodyBody.header);\n }\n if (jobManifestPutBodyBody.params !== undefined) {\n formData.append(\"params\", jobManifestPutBodyBody.params);\n }\n\n return customInstance<AdminJobManifestLoadPutResponse>(\n {\n url: `/admin/job-manifest`,\n method: \"put\",\n headers: { \"Content-Type\": \"multipart/form-data\" },\n data: formData,\n },\n options\n );\n};\n\nexport const getAdminJobManifestPutMutationOptions = <\n TError = ErrorType<void | DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminJobManifestPut>>,\n TError,\n { data: JobManifestPutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof adminJobManifestPut>>,\n TError,\n { data: JobManifestPutBodyBody },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminJobManifestPut>>,\n { data: JobManifestPutBodyBody }\n > = (props) => {\n const { data } = props ?? {};\n\n return adminJobManifestPut(data, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AdminJobManifestPutMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminJobManifestPut>>\n>;\nexport type AdminJobManifestPutMutationBody = JobManifestPutBodyBody;\nexport type AdminJobManifestPutMutationError = ErrorType<void | DmError>;\n\nexport const useAdminJobManifestPut = <\n TError = ErrorType<void | DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminJobManifestPut>>,\n TError,\n { data: JobManifestPutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const mutationOptions = getAdminJobManifestPutMutationOptions(options);\n\n return useMutation(mutationOptions);\n};\n/**\n * Deletes a Job Manifest record\n\nYou need to exercise caution using this endpoint. You can disrupt the Data Manager **Instance** execution if you delete and purge Jobs while instances of any affected job may be running.\n\nYou will need `admin` rights to use this endpoint and the Data Manager needs to be running in `DEVELOPMENT` **Mode**\n\n * @summary Deletes a Job Manifest\n */\nexport const adminDeleteJobManifest = (\n jobManifestId: number,\n params?: AdminDeleteJobManifestParams,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<void>(\n { url: `/admin/job-manifest/${jobManifestId}`, method: \"delete\", params },\n options\n );\n};\n\nexport const getAdminDeleteJobManifestMutationOptions = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteJobManifest>>,\n TError,\n { jobManifestId: number; params?: AdminDeleteJobManifestParams },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteJobManifest>>,\n TError,\n { jobManifestId: number; params?: AdminDeleteJobManifestParams },\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminDeleteJobManifest>>,\n { jobManifestId: number; params?: AdminDeleteJobManifestParams }\n > = (props) => {\n const { jobManifestId, params } = props ?? {};\n\n return adminDeleteJobManifest(jobManifestId, params, requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AdminDeleteJobManifestMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminDeleteJobManifest>>\n>;\n\nexport type AdminDeleteJobManifestMutationError = ErrorType<DmError>;\n\nexport const useAdminDeleteJobManifest = <\n TError = ErrorType<DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminDeleteJobManifest>>,\n TError,\n { jobManifestId: number; params?: AdminDeleteJobManifestParams },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const mutationOptions = getAdminDeleteJobManifestMutationOptions(options);\n\n return useMutation(mutationOptions);\n};\n/**\n * This endpoint is used to trigger the Data Manager to re-inspect the internal **Job Manifest** table and download the manifests and reprocess the related job definitions. This is normally done by an administrator when the Manifest table has been modified or if external job definitions are known to have changed in the referenced repositories.\n\nYou need to exercise caution using this endpoint. You can disrupt the Data Manager **Instance** execution if you re-load Jobs while instances of any affected job may be running.\n\nYou will need `admin` rights to use this endpoint and the Data Manager needs to be running in `DEVELOPMENT` **Mode**\n\n * @summary Trigger a download of Job Definitions using existing Job Manifests\n */\nexport const adminJobManifestLoad = (\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<AdminJobManifestLoadPutResponse>(\n { url: `/admin/job-manifest/load`, method: \"put\" },\n options\n );\n};\n\nexport const getAdminJobManifestLoadMutationOptions = <\n TError = ErrorType<void | DmError>,\n TVariables = void,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminJobManifestLoad>>,\n TError,\n TVariables,\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof adminJobManifestLoad>>,\n TError,\n TVariables,\n TContext\n> => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminJobManifestLoad>>,\n TVariables\n > = () => {\n return adminJobManifestLoad(requestOptions);\n };\n\n return { mutationFn, ...mutationOptions };\n};\n\nexport type AdminJobManifestLoadMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminJobManifestLoad>>\n>;\n\nexport type AdminJobManifestLoadMutationError = ErrorType<void | DmError>;\n\nexport const useAdminJobManifestLoad = <\n TError = ErrorType<void | DmError>,\n TVariables = void,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminJobManifestLoad>>,\n TError,\n TVariables,\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const mutationOptions = getAdminJobManifestLoadMutationOptions(options);\n\n return useMutation(mutationOptions);\n};\n"],"mappings":";;;;;AAUA,SAAS,UAAU,mBAAmB;AAwC/B,IAAM,wBAAwB,CACnC,QACA,SACA,WACG;AACH,SAAO;AAAA,IACL,EAAE,KAAK,wBAAwB,QAAQ,OAAO,QAAQ,OAAO;AAAA,IAC7D;AAAA,EACF;AACF;AAEO,IAAM,mCAAmC,CAC9C,WACG,CAAC,oBAAoB,wBAAwB,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC,CAAE;AAEtE,IAAM,uCAAuC,CAIlD,QACA,YAY4B;AAC5B,QAAM,EAAE,OAAO,cAAc,SAAS,eAAe,IAAI,WAAW,CAAC;AAErE,QAAM,YACJ,6CAAc,aAAY,iCAAiC,MAAM;AAEnE,QAAM,UAEF,CAAC,EAAE,OAAO,MAAM,sBAAsB,QAAQ,gBAAgB,MAAM;AAExE,SAAO,EAAE,UAAU,SAAS,GAAG,aAAa;AAC9C;AAOO,IAAM,2BAA2B,CAItC,QACA,YAQ2D;AAC3D,QAAM,eAAe,qCAAqC,QAAQ,OAAO;AAEzE,QAAM,QAAQ,SAAS,YAAY;AAInC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;AASO,IAAM,yBAAyB,CACpC,SACA,YACG;AACH,SAAO;AAAA,IACL,EAAE,KAA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AAc;AAAA,EACrE;AAEA,SAAO,EAAE,YAAY,GAAG,gBAAgB;AAC1C;AAQO,IAAM,4BAA4B,CAGvC,YAQI;AACJ,QAAM,kBAAkB,yCAAyC,OAAO;AAExE,SAAO,YAAY,eAAe;AACpC;AAUO,IAAM,uBAAuB,CAClC,YACG;AACH,SAAO;AAAA,IACL,EAAE,KAAK,4BAA4B,QAAQ,MAAM;AAAA,IACjD;AAAA,EACF;AACF;AAEO,IAAM,yCAAyC,CAIpD,YAaG;AACH,QAAM,EAAE,UAAU,iBAAiB,SAAS,eAAe,IAAI,WAAW,CAAC;AAE3E,QAAM,aAGF,MAAM;AACR,WAAO,qBAAqB,cAAc;AAAA,EAC5C;AAEA,SAAO,EAAE,YAAY,GAAG,gBAAgB;AAC1C;AAQO,IAAM,0BAA0B,CAIrC,YAQI;AACJ,QAAM,kBAAkB,uCAAuC,OAAO;AAEtE,SAAO,YAAY,eAAe;AACpC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/admin/admin.ts"],"sourcesContent":["/**\n * Generated by orval v6.20.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 1.2\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query'\nimport type {\n AdminDeleteJobManifestParams,\n AdminGetServiceErrorsParams,\n AdminGetUsersParams,\n AdminJobManifestGetResponse,\n AdminJobManifestLoadPutResponse,\n AdminUsersGetResponse,\n DmError,\n JobManifestPutBodyBody,\n ServiceErrorsGetResponse,\n UserAccountDetail,\n UserPatchBodyBody\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\n// eslint-disable-next-line\n type SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P,\n) => any\n ? P\n : never;\n\n\n/**\n * Displays the existing Service Errors, which can also include acknowledged errors, normally excluded from the list.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Gets Service Errors\n */\nexport const adminGetServiceErrors = (\n params?: AdminGetServiceErrorsParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<ServiceErrorsGetResponse>(\n {url: `/admin/service-error`, method: 'get',\n params, signal\n },\n options);\n }\n \n\nexport const getAdminGetServiceErrorsQueryKey = (params?: AdminGetServiceErrorsParams,) => {\n \n return [\"data-manager-api\", `/admin/service-error`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getAdminGetServiceErrorsQueryOptions = <TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(params?: AdminGetServiceErrorsParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getAdminGetServiceErrorsQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof adminGetServiceErrors>>> = ({ signal }) => adminGetServiceErrors(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type AdminGetServiceErrorsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetServiceErrors>>>\nexport type AdminGetServiceErrorsQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets Service Errors\n */\nexport const useAdminGetServiceErrors = <TData = Awaited<ReturnType<typeof adminGetServiceErrors>>, TError = ErrorType<void | DmError>>(\n params?: AdminGetServiceErrorsParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getAdminGetServiceErrorsQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Used primarily to 'Acknowledge' but not delete a Service Error.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Patches a Service Error\n */\nexport const adminPatchServiceError = (\n errorId: number,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/admin/service-error/${errorId}`, method: 'patch'\n },\n options);\n }\n \n\n\nexport const getAdminPatchServiceErrorMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPatchServiceError>>, TError,{errorId: number}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof adminPatchServiceError>>, TError,{errorId: number}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminPatchServiceError>>, {errorId: number}> = (props) => {\n const {errorId} = props ?? {};\n\n return adminPatchServiceError(errorId,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AdminPatchServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchServiceError>>>\n \n export type AdminPatchServiceErrorMutationError = ErrorType<DmError>\n\n /**\n * @summary Patches a Service Error\n */\nexport const useAdminPatchServiceError = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPatchServiceError>>, TError,{errorId: number}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAdminPatchServiceErrorMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Deletes an existing Service Error.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Deletes a Service Error\n */\nexport const adminDeleteServiceError = (\n errorId: number,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/admin/service-error/${errorId}`, method: 'delete'\n },\n options);\n }\n \n\n\nexport const getAdminDeleteServiceErrorMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteServiceError>>, TError,{errorId: number}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof adminDeleteServiceError>>, TError,{errorId: number}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminDeleteServiceError>>, {errorId: number}> = (props) => {\n const {errorId} = props ?? {};\n\n return adminDeleteServiceError(errorId,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AdminDeleteServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteServiceError>>>\n \n export type AdminDeleteServiceErrorMutationError = ErrorType<DmError>\n\n /**\n * @summary Deletes a Service Error\n */\nexport const useAdminDeleteServiceError = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteServiceError>>, TError,{errorId: number}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAdminDeleteServiceErrorMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * You need admin privileges to use this endpoint and you are excluded from the returned list of users\n\n * @summary Get detailed information about all known Users\n */\nexport const adminGetUsers = (\n params?: AdminGetUsersParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<AdminUsersGetResponse>(\n {url: `/admin/user`, method: 'get',\n params, signal\n },\n options);\n }\n \n\nexport const getAdminGetUsersQueryKey = (params?: AdminGetUsersParams,) => {\n \n return [\"data-manager-api\", `/admin/user`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getAdminGetUsersQueryOptions = <TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(params?: AdminGetUsersParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getAdminGetUsersQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof adminGetUsers>>> = ({ signal }) => adminGetUsers(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type AdminGetUsersQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetUsers>>>\nexport type AdminGetUsersQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Get detailed information about all known Users\n */\nexport const useAdminGetUsers = <TData = Awaited<ReturnType<typeof adminGetUsers>>, TError = ErrorType<void | DmError>>(\n params?: AdminGetUsersParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof adminGetUsers>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getAdminGetUsersQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * This method adds a user to the Data Manager service. The user is authenticated via a keycloak server but will need an initialised account before they can create Datasets or Projects.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Prepares a user account in the Data Manager service\n */\nexport const adminPutUser = (\n userId: string,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<UserAccountDetail>(\n {url: `/admin/user/${userId}`, method: 'put'\n },\n options);\n }\n \n\n\nexport const getAdminPutUserMutationOptions = <TError = ErrorType<void | DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPutUser>>, TError,{userId: string}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof adminPutUser>>, TError,{userId: string}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminPutUser>>, {userId: string}> = (props) => {\n const {userId} = props ?? {};\n\n return adminPutUser(userId,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AdminPutUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPutUser>>>\n \n export type AdminPutUserMutationError = ErrorType<void | DmError>\n\n /**\n * @summary Prepares a user account in the Data Manager service\n */\nexport const useAdminPutUser = <TError = ErrorType<void | DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPutUser>>, TError,{userId: string}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAdminPutUserMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Deletes a user account, along with all the user's Datasets\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Deletes a user account\n */\nexport const adminDeleteUser = (\n userId: string,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/admin/user/${userId}`, method: 'delete'\n },\n options);\n }\n \n\n\nexport const getAdminDeleteUserMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteUser>>, TError,{userId: string}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof adminDeleteUser>>, TError,{userId: string}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminDeleteUser>>, {userId: string}> = (props) => {\n const {userId} = props ?? {};\n\n return adminDeleteUser(userId,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AdminDeleteUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteUser>>>\n \n export type AdminDeleteUserMutationError = ErrorType<DmError>\n\n /**\n * @summary Deletes a user account\n */\nexport const useAdminDeleteUser = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteUser>>, TError,{userId: string}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAdminDeleteUserMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Patches a user record, typically to suspend or re-enable a user account\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Patch a given user\n */\nexport const adminPatchUser = (\n userId: string,\n userPatchBodyBody: UserPatchBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nif(userPatchBodyBody.suspend_message !== undefined) {\n formData.append('suspend_message', userPatchBodyBody.suspend_message)\n }\n\n return customInstance<void>(\n {url: `/admin/user/${userId}`, method: 'patch',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getAdminPatchUserMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPatchUser>>, TError,{userId: string;data: UserPatchBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof adminPatchUser>>, TError,{userId: string;data: UserPatchBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminPatchUser>>, {userId: string;data: UserPatchBodyBody}> = (props) => {\n const {userId,data} = props ?? {};\n\n return adminPatchUser(userId,data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AdminPatchUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchUser>>>\n export type AdminPatchUserMutationBody = UserPatchBodyBody\n export type AdminPatchUserMutationError = ErrorType<DmError>\n\n /**\n * @summary Patch a given user\n */\nexport const useAdminPatchUser = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminPatchUser>>, TError,{userId: string;data: UserPatchBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAdminPatchUserMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Returns the list of known **Job Manifests** including the time the manifest was last loaded and its load status, a message indicating success or failure.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Get Job Manifests\n */\nexport const adminGetJobManifests = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<AdminJobManifestGetResponse>(\n {url: `/admin/job-manifest`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getAdminGetJobManifestsQueryKey = () => {\n \n return [\"data-manager-api\", `/admin/job-manifest`] as const;\n }\n\n \nexport const getAdminGetJobManifestsQueryOptions = <TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>( options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getAdminGetJobManifestsQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof adminGetJobManifests>>> = ({ signal }) => adminGetJobManifests(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type AdminGetJobManifestsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetJobManifests>>>\nexport type AdminGetJobManifestsQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Get Job Manifests\n */\nexport const useAdminGetJobManifests = <TData = Awaited<ReturnType<typeof adminGetJobManifests>>, TError = ErrorType<void | DmError>>(\n options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getAdminGetJobManifestsQueryOptions(options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * This endpoint is used to add (or update an existing **Job Manifest**). Manifests are the source of Job definitions. Once added the manifest is inspected and any Jobs it refers to are loaded.\n\nA limited number of manifest origins (URLs) are supported. At the moment we support basic GitHib and GitLab URLs, i.e. those that begin `https://raw.githubusercontent.com/` and `https://gitlab.com/api/v4/projects/`.\n\nYou will need `admin` rights to use this endpoint\n\n * @summary Adds a Job Manifest and triggers the download of its Job Definitions\n */\nexport const adminJobManifestPut = (\n jobManifestPutBodyBody: JobManifestPutBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('url', jobManifestPutBodyBody.url)\nif(jobManifestPutBodyBody.header !== undefined) {\n formData.append('header', jobManifestPutBodyBody.header)\n }\nif(jobManifestPutBodyBody.params !== undefined) {\n formData.append('params', jobManifestPutBodyBody.params)\n }\n\n return customInstance<AdminJobManifestLoadPutResponse>(\n {url: `/admin/job-manifest`, method: 'put',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getAdminJobManifestPutMutationOptions = <TError = ErrorType<void | DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestPut>>, TError,{data: JobManifestPutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestPut>>, TError,{data: JobManifestPutBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminJobManifestPut>>, {data: JobManifestPutBodyBody}> = (props) => {\n const {data} = props ?? {};\n\n return adminJobManifestPut(data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AdminJobManifestPutMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestPut>>>\n export type AdminJobManifestPutMutationBody = JobManifestPutBodyBody\n export type AdminJobManifestPutMutationError = ErrorType<void | DmError>\n\n /**\n * @summary Adds a Job Manifest and triggers the download of its Job Definitions\n */\nexport const useAdminJobManifestPut = <TError = ErrorType<void | DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestPut>>, TError,{data: JobManifestPutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAdminJobManifestPutMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Deletes a Job Manifest record\n\nYou need to exercise caution using this endpoint. You can disrupt the Data Manager **Instance** execution if you delete and purge Jobs while instances of any affected job may be running.\n\nYou will need `admin` rights to use this endpoint and the Data Manager needs to be running in `DEVELOPMENT` **Mode**\n\n * @summary Deletes a Job Manifest\n */\nexport const adminDeleteJobManifest = (\n jobManifestId: number,\n params?: AdminDeleteJobManifestParams,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/admin/job-manifest/${jobManifestId}`, method: 'delete',\n params\n },\n options);\n }\n \n\n\nexport const getAdminDeleteJobManifestMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteJobManifest>>, TError,{jobManifestId: number;params?: AdminDeleteJobManifestParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof adminDeleteJobManifest>>, TError,{jobManifestId: number;params?: AdminDeleteJobManifestParams}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminDeleteJobManifest>>, {jobManifestId: number;params?: AdminDeleteJobManifestParams}> = (props) => {\n const {jobManifestId,params} = props ?? {};\n\n return adminDeleteJobManifest(jobManifestId,params,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AdminDeleteJobManifestMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteJobManifest>>>\n \n export type AdminDeleteJobManifestMutationError = ErrorType<DmError>\n\n /**\n * @summary Deletes a Job Manifest\n */\nexport const useAdminDeleteJobManifest = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminDeleteJobManifest>>, TError,{jobManifestId: number;params?: AdminDeleteJobManifestParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAdminDeleteJobManifestMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * This endpoint is used to trigger the Data Manager to re-inspect the internal **Job Manifest** table and download the manifests and reprocess the related job definitions. This is normally done by an administrator when the Manifest table has been modified or if external job definitions are known to have changed in the referenced repositories.\n\nYou need to exercise caution using this endpoint. You can disrupt the Data Manager **Instance** execution if you re-load Jobs while instances of any affected job may be running.\n\nYou will need `admin` rights to use this endpoint and the Data Manager needs to be running in `DEVELOPMENT` **Mode**\n\n * @summary Trigger a download of Job Definitions using existing Job Manifests\n */\nexport const adminJobManifestLoad = (\n \n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<AdminJobManifestLoadPutResponse>(\n {url: `/admin/job-manifest/load`, method: 'put'\n },\n options);\n }\n \n\n\nexport const getAdminJobManifestLoadMutationOptions = <TError = ErrorType<void | DmError>,\n TVariables = void,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestLoad>>, TError,TVariables, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestLoad>>, TError,TVariables, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminJobManifestLoad>>, TVariables> = () => {\n \n\n return adminJobManifestLoad(requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AdminJobManifestLoadMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestLoad>>>\n \n export type AdminJobManifestLoadMutationError = ErrorType<void | DmError>\n\n /**\n * @summary Trigger a download of Job Definitions using existing Job Manifests\n */\nexport const useAdminJobManifestLoad = <TError = ErrorType<void | DmError>,\n TVariables = void,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestLoad>>, TError,TVariables, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAdminJobManifestLoadMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n "],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AA0CA,IAAM,wBAAwB,CACjC,QACH,SAAiD,WAC7C;AAGC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAAwB,QAAQ;AAAA,MACpC;AAAA,MAAQ;AAAA,IACZ;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,mCAAmC,CAAC,WAA0C;AAEvF,SAAO,CAAC,oBAAoB,wBAAwB,GAAI,SAAS,CAAC,MAAM,IAAG,CAAC,CAAE;AAC9E;AAGG,IAAM,uCAAuC,CAAgG,QAAsC,YACrL;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aAAY,i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AAuC,OAAO;AAEtE,SAAO,YAAY,eAAe;AACpC;","names":[]}
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJ22A7LHXcjs = require('../chunk-J22A7LHX.cjs');
|
|
4
4
|
|
|
5
5
|
// src/application/application.ts
|
|
6
|
+
|
|
7
|
+
|
|
6
8
|
var _reactquery = require('@tanstack/react-query');
|
|
7
9
|
var getApplications = (options, signal) => {
|
|
8
|
-
return
|
|
9
|
-
{
|
|
10
|
+
return _chunkJ22A7LHXcjs.customInstance.call(void 0,
|
|
11
|
+
{
|
|
12
|
+
url: `/application`,
|
|
13
|
+
method: "get",
|
|
14
|
+
signal
|
|
15
|
+
},
|
|
10
16
|
options
|
|
11
17
|
);
|
|
12
18
|
};
|
|
13
|
-
var getGetApplicationsQueryKey = () =>
|
|
19
|
+
var getGetApplicationsQueryKey = () => {
|
|
20
|
+
return ["data-manager-api", `/application`];
|
|
21
|
+
};
|
|
14
22
|
var getGetApplicationsQueryOptions = (options) => {
|
|
15
23
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
16
24
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetApplicationsQueryKey()));
|
|
17
|
-
const queryFn = ({
|
|
18
|
-
signal
|
|
19
|
-
}) => getApplications(requestOptions, signal);
|
|
25
|
+
const queryFn = ({ signal }) => getApplications(requestOptions, signal);
|
|
20
26
|
return { queryKey, queryFn, ...queryOptions };
|
|
21
27
|
};
|
|
22
28
|
var useGetApplications = (options) => {
|
|
@@ -26,18 +32,22 @@ var useGetApplications = (options) => {
|
|
|
26
32
|
return query;
|
|
27
33
|
};
|
|
28
34
|
var getApplication = (applicationId, options, signal) => {
|
|
29
|
-
return
|
|
30
|
-
{
|
|
35
|
+
return _chunkJ22A7LHXcjs.customInstance.call(void 0,
|
|
36
|
+
{
|
|
37
|
+
url: `/application/${applicationId}`,
|
|
38
|
+
method: "get",
|
|
39
|
+
signal
|
|
40
|
+
},
|
|
31
41
|
options
|
|
32
42
|
);
|
|
33
43
|
};
|
|
34
|
-
var getGetApplicationQueryKey = (applicationId) =>
|
|
44
|
+
var getGetApplicationQueryKey = (applicationId) => {
|
|
45
|
+
return ["data-manager-api", `/application/${applicationId}`];
|
|
46
|
+
};
|
|
35
47
|
var getGetApplicationQueryOptions = (applicationId, options) => {
|
|
36
48
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
37
49
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetApplicationQueryKey(applicationId)));
|
|
38
|
-
const queryFn = ({
|
|
39
|
-
signal
|
|
40
|
-
}) => getApplication(applicationId, requestOptions, signal);
|
|
50
|
+
const queryFn = ({ signal }) => getApplication(applicationId, requestOptions, signal);
|
|
41
51
|
return { queryKey, queryFn, enabled: !!applicationId, ...queryOptions };
|
|
42
52
|
};
|
|
43
53
|
var useGetApplication = (applicationId, options) => {
|