@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.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/admin/admin.ts"],"names":[],"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,KAAK,wBAAwB,WAAW,QAAQ,QAAQ;AAAA,IAC1D;AAAA,EACF;AACF;AAEO,IAAM,2CAA2C,CAGtD,YAaG;AACH,QA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,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","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"]}
|
|
1
|
+
{"version":3,"sources":["../../src/admin/admin.ts"],"names":[],"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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,GAAG,gBAAgB;AAAC;AAStC,IAAM,0BAA0B,CAEf,YACnB;AAEC,QAAM,kBAAkB,uCAAuC,OAAO;AAEtE,SAAO,YAAY,eAAe;AACpC","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 "]}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
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
|
+
import 'axios';
|
|
5
|
+
|
|
6
|
+
type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
|
7
|
+
/**
|
|
8
|
+
* Displays the existing Service Errors, which can also include acknowledged errors, normally excluded from the list.
|
|
9
|
+
|
|
10
|
+
You will need `admin` rights to use this endpoint
|
|
11
|
+
|
|
12
|
+
* @summary Gets Service Errors
|
|
13
|
+
*/
|
|
14
|
+
declare const adminGetServiceErrors: (params?: AdminGetServiceErrorsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ServiceErrorsGetResponse>;
|
|
15
|
+
declare const getAdminGetServiceErrorsQueryKey: (params?: AdminGetServiceErrorsParams) => readonly ["data-manager-api", "/admin/service-error", ...AdminGetServiceErrorsParams[]];
|
|
16
|
+
declare const getAdminGetServiceErrorsQueryOptions: <TData = ServiceErrorsGetResponse, TError = ErrorType<void | DmError>>(params?: AdminGetServiceErrorsParams, options?: {
|
|
17
|
+
query?: UseQueryOptions<ServiceErrorsGetResponse, TError, TData, QueryKey> | undefined;
|
|
18
|
+
request?: SecondParameter<typeof customInstance>;
|
|
19
|
+
} | undefined) => UseQueryOptions<ServiceErrorsGetResponse, TError, TData, QueryKey> & {
|
|
20
|
+
queryKey: QueryKey;
|
|
21
|
+
};
|
|
22
|
+
type AdminGetServiceErrorsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetServiceErrors>>>;
|
|
23
|
+
type AdminGetServiceErrorsQueryError = ErrorType<void | DmError>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Gets Service Errors
|
|
26
|
+
*/
|
|
27
|
+
declare const useAdminGetServiceErrors: <TData = ServiceErrorsGetResponse, TError = ErrorType<void | DmError>>(params?: AdminGetServiceErrorsParams, options?: {
|
|
28
|
+
query?: UseQueryOptions<ServiceErrorsGetResponse, TError, TData, QueryKey> | undefined;
|
|
29
|
+
request?: SecondParameter<typeof customInstance>;
|
|
30
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Used primarily to 'Acknowledge' but not delete a Service Error.
|
|
35
|
+
|
|
36
|
+
You will need `admin` rights to use this endpoint
|
|
37
|
+
|
|
38
|
+
* @summary Patches a Service Error
|
|
39
|
+
*/
|
|
40
|
+
declare const adminPatchServiceError: (errorId: number, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
41
|
+
declare const getAdminPatchServiceErrorMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
42
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
43
|
+
errorId: number;
|
|
44
|
+
}, TContext> | undefined;
|
|
45
|
+
request?: SecondParameter<typeof customInstance>;
|
|
46
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
47
|
+
errorId: number;
|
|
48
|
+
}, TContext>;
|
|
49
|
+
type AdminPatchServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchServiceError>>>;
|
|
50
|
+
type AdminPatchServiceErrorMutationError = ErrorType<DmError>;
|
|
51
|
+
/**
|
|
52
|
+
* @summary Patches a Service Error
|
|
53
|
+
*/
|
|
54
|
+
declare const useAdminPatchServiceError: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
55
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
56
|
+
errorId: number;
|
|
57
|
+
}, TContext> | undefined;
|
|
58
|
+
request?: SecondParameter<typeof customInstance>;
|
|
59
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
60
|
+
errorId: number;
|
|
61
|
+
}, TContext>;
|
|
62
|
+
/**
|
|
63
|
+
* Deletes an existing Service Error.
|
|
64
|
+
|
|
65
|
+
You will need `admin` rights to use this endpoint
|
|
66
|
+
|
|
67
|
+
* @summary Deletes a Service Error
|
|
68
|
+
*/
|
|
69
|
+
declare const adminDeleteServiceError: (errorId: number, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
70
|
+
declare const getAdminDeleteServiceErrorMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
71
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
72
|
+
errorId: number;
|
|
73
|
+
}, TContext> | undefined;
|
|
74
|
+
request?: SecondParameter<typeof customInstance>;
|
|
75
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
76
|
+
errorId: number;
|
|
77
|
+
}, TContext>;
|
|
78
|
+
type AdminDeleteServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteServiceError>>>;
|
|
79
|
+
type AdminDeleteServiceErrorMutationError = ErrorType<DmError>;
|
|
80
|
+
/**
|
|
81
|
+
* @summary Deletes a Service Error
|
|
82
|
+
*/
|
|
83
|
+
declare const useAdminDeleteServiceError: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
84
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
85
|
+
errorId: number;
|
|
86
|
+
}, TContext> | undefined;
|
|
87
|
+
request?: SecondParameter<typeof customInstance>;
|
|
88
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
89
|
+
errorId: number;
|
|
90
|
+
}, TContext>;
|
|
91
|
+
/**
|
|
92
|
+
* You need admin privileges to use this endpoint and you are excluded from the returned list of users
|
|
93
|
+
|
|
94
|
+
* @summary Get detailed information about all known Users
|
|
95
|
+
*/
|
|
96
|
+
declare const adminGetUsers: (params?: AdminGetUsersParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<AdminUsersGetResponse>;
|
|
97
|
+
declare const getAdminGetUsersQueryKey: (params?: AdminGetUsersParams) => readonly ["data-manager-api", "/admin/user", ...AdminGetUsersParams[]];
|
|
98
|
+
declare const getAdminGetUsersQueryOptions: <TData = AdminUsersGetResponse, TError = ErrorType<void | DmError>>(params?: AdminGetUsersParams, options?: {
|
|
99
|
+
query?: UseQueryOptions<AdminUsersGetResponse, TError, TData, QueryKey> | undefined;
|
|
100
|
+
request?: SecondParameter<typeof customInstance>;
|
|
101
|
+
} | undefined) => UseQueryOptions<AdminUsersGetResponse, TError, TData, QueryKey> & {
|
|
102
|
+
queryKey: QueryKey;
|
|
103
|
+
};
|
|
104
|
+
type AdminGetUsersQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetUsers>>>;
|
|
105
|
+
type AdminGetUsersQueryError = ErrorType<void | DmError>;
|
|
106
|
+
/**
|
|
107
|
+
* @summary Get detailed information about all known Users
|
|
108
|
+
*/
|
|
109
|
+
declare const useAdminGetUsers: <TData = AdminUsersGetResponse, TError = ErrorType<void | DmError>>(params?: AdminGetUsersParams, options?: {
|
|
110
|
+
query?: UseQueryOptions<AdminUsersGetResponse, TError, TData, QueryKey> | undefined;
|
|
111
|
+
request?: SecondParameter<typeof customInstance>;
|
|
112
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
113
|
+
queryKey: QueryKey;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* 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.
|
|
117
|
+
|
|
118
|
+
You will need `admin` rights to use this endpoint
|
|
119
|
+
|
|
120
|
+
* @summary Prepares a user account in the Data Manager service
|
|
121
|
+
*/
|
|
122
|
+
declare const adminPutUser: (userId: string, options?: SecondParameter<typeof customInstance>) => Promise<UserAccountDetail>;
|
|
123
|
+
declare const getAdminPutUserMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
124
|
+
mutation?: UseMutationOptions<UserAccountDetail, TError, {
|
|
125
|
+
userId: string;
|
|
126
|
+
}, TContext> | undefined;
|
|
127
|
+
request?: SecondParameter<typeof customInstance>;
|
|
128
|
+
} | undefined) => UseMutationOptions<UserAccountDetail, TError, {
|
|
129
|
+
userId: string;
|
|
130
|
+
}, TContext>;
|
|
131
|
+
type AdminPutUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPutUser>>>;
|
|
132
|
+
type AdminPutUserMutationError = ErrorType<void | DmError>;
|
|
133
|
+
/**
|
|
134
|
+
* @summary Prepares a user account in the Data Manager service
|
|
135
|
+
*/
|
|
136
|
+
declare const useAdminPutUser: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
137
|
+
mutation?: UseMutationOptions<UserAccountDetail, TError, {
|
|
138
|
+
userId: string;
|
|
139
|
+
}, TContext> | undefined;
|
|
140
|
+
request?: SecondParameter<typeof customInstance>;
|
|
141
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<UserAccountDetail, TError, {
|
|
142
|
+
userId: string;
|
|
143
|
+
}, TContext>;
|
|
144
|
+
/**
|
|
145
|
+
* Deletes a user account, along with all the user's Datasets
|
|
146
|
+
|
|
147
|
+
You will need `admin` rights to use this endpoint
|
|
148
|
+
|
|
149
|
+
* @summary Deletes a user account
|
|
150
|
+
*/
|
|
151
|
+
declare const adminDeleteUser: (userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
152
|
+
declare const getAdminDeleteUserMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
153
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
154
|
+
userId: string;
|
|
155
|
+
}, TContext> | undefined;
|
|
156
|
+
request?: SecondParameter<typeof customInstance>;
|
|
157
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
158
|
+
userId: string;
|
|
159
|
+
}, TContext>;
|
|
160
|
+
type AdminDeleteUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteUser>>>;
|
|
161
|
+
type AdminDeleteUserMutationError = ErrorType<DmError>;
|
|
162
|
+
/**
|
|
163
|
+
* @summary Deletes a user account
|
|
164
|
+
*/
|
|
165
|
+
declare const useAdminDeleteUser: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
166
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
167
|
+
userId: string;
|
|
168
|
+
}, TContext> | undefined;
|
|
169
|
+
request?: SecondParameter<typeof customInstance>;
|
|
170
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
171
|
+
userId: string;
|
|
172
|
+
}, TContext>;
|
|
173
|
+
/**
|
|
174
|
+
* Patches a user record, typically to suspend or re-enable a user account
|
|
175
|
+
|
|
176
|
+
You will need `admin` rights to use this endpoint
|
|
177
|
+
|
|
178
|
+
* @summary Patch a given user
|
|
179
|
+
*/
|
|
180
|
+
declare const adminPatchUser: (userId: string, userPatchBodyBody: UserPatchBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
181
|
+
declare const getAdminPatchUserMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
182
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
183
|
+
userId: string;
|
|
184
|
+
data: UserPatchBodyBody;
|
|
185
|
+
}, TContext> | undefined;
|
|
186
|
+
request?: SecondParameter<typeof customInstance>;
|
|
187
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
188
|
+
userId: string;
|
|
189
|
+
data: UserPatchBodyBody;
|
|
190
|
+
}, TContext>;
|
|
191
|
+
type AdminPatchUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchUser>>>;
|
|
192
|
+
type AdminPatchUserMutationBody = UserPatchBodyBody;
|
|
193
|
+
type AdminPatchUserMutationError = ErrorType<DmError>;
|
|
194
|
+
/**
|
|
195
|
+
* @summary Patch a given user
|
|
196
|
+
*/
|
|
197
|
+
declare const useAdminPatchUser: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
198
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
199
|
+
userId: string;
|
|
200
|
+
data: UserPatchBodyBody;
|
|
201
|
+
}, TContext> | undefined;
|
|
202
|
+
request?: SecondParameter<typeof customInstance>;
|
|
203
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
204
|
+
userId: string;
|
|
205
|
+
data: UserPatchBodyBody;
|
|
206
|
+
}, TContext>;
|
|
207
|
+
/**
|
|
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.
|
|
209
|
+
|
|
210
|
+
You will need `admin` rights to use this endpoint
|
|
211
|
+
|
|
212
|
+
* @summary Get Job Manifests
|
|
213
|
+
*/
|
|
214
|
+
declare const adminGetJobManifests: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<AdminJobManifestGetResponse>;
|
|
215
|
+
declare const getAdminGetJobManifestsQueryKey: () => readonly ["data-manager-api", "/admin/job-manifest"];
|
|
216
|
+
declare const getAdminGetJobManifestsQueryOptions: <TData = AdminJobManifestGetResponse, TError = ErrorType<void | DmError>>(options?: {
|
|
217
|
+
query?: UseQueryOptions<AdminJobManifestGetResponse, TError, TData, QueryKey> | undefined;
|
|
218
|
+
request?: SecondParameter<typeof customInstance>;
|
|
219
|
+
} | undefined) => UseQueryOptions<AdminJobManifestGetResponse, TError, TData, QueryKey> & {
|
|
220
|
+
queryKey: QueryKey;
|
|
221
|
+
};
|
|
222
|
+
type AdminGetJobManifestsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetJobManifests>>>;
|
|
223
|
+
type AdminGetJobManifestsQueryError = ErrorType<void | DmError>;
|
|
224
|
+
/**
|
|
225
|
+
* @summary Get Job Manifests
|
|
226
|
+
*/
|
|
227
|
+
declare const useAdminGetJobManifests: <TData = AdminJobManifestGetResponse, TError = ErrorType<void | DmError>>(options?: {
|
|
228
|
+
query?: UseQueryOptions<AdminJobManifestGetResponse, TError, TData, QueryKey> | undefined;
|
|
229
|
+
request?: SecondParameter<typeof customInstance>;
|
|
230
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
231
|
+
queryKey: QueryKey;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* 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.
|
|
235
|
+
|
|
236
|
+
A 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/`.
|
|
237
|
+
|
|
238
|
+
You will need `admin` rights to use this endpoint
|
|
239
|
+
|
|
240
|
+
* @summary Adds a Job Manifest and triggers the download of its Job Definitions
|
|
241
|
+
*/
|
|
242
|
+
declare const adminJobManifestPut: (jobManifestPutBodyBody: JobManifestPutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<AdminJobManifestLoadPutResponse>;
|
|
243
|
+
declare const getAdminJobManifestPutMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
244
|
+
mutation?: UseMutationOptions<AdminJobManifestLoadPutResponse, TError, {
|
|
245
|
+
data: JobManifestPutBodyBody;
|
|
246
|
+
}, TContext> | undefined;
|
|
247
|
+
request?: SecondParameter<typeof customInstance>;
|
|
248
|
+
} | undefined) => UseMutationOptions<AdminJobManifestLoadPutResponse, TError, {
|
|
249
|
+
data: JobManifestPutBodyBody;
|
|
250
|
+
}, TContext>;
|
|
251
|
+
type AdminJobManifestPutMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestPut>>>;
|
|
252
|
+
type AdminJobManifestPutMutationBody = JobManifestPutBodyBody;
|
|
253
|
+
type AdminJobManifestPutMutationError = ErrorType<void | DmError>;
|
|
254
|
+
/**
|
|
255
|
+
* @summary Adds a Job Manifest and triggers the download of its Job Definitions
|
|
256
|
+
*/
|
|
257
|
+
declare const useAdminJobManifestPut: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
258
|
+
mutation?: UseMutationOptions<AdminJobManifestLoadPutResponse, TError, {
|
|
259
|
+
data: JobManifestPutBodyBody;
|
|
260
|
+
}, TContext> | undefined;
|
|
261
|
+
request?: SecondParameter<typeof customInstance>;
|
|
262
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<AdminJobManifestLoadPutResponse, TError, {
|
|
263
|
+
data: JobManifestPutBodyBody;
|
|
264
|
+
}, TContext>;
|
|
265
|
+
/**
|
|
266
|
+
* Deletes a Job Manifest record
|
|
267
|
+
|
|
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.
|
|
269
|
+
|
|
270
|
+
You will need `admin` rights to use this endpoint and the Data Manager needs to be running in `DEVELOPMENT` **Mode**
|
|
271
|
+
|
|
272
|
+
* @summary Deletes a Job Manifest
|
|
273
|
+
*/
|
|
274
|
+
declare const adminDeleteJobManifest: (jobManifestId: number, params?: AdminDeleteJobManifestParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
275
|
+
declare const getAdminDeleteJobManifestMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
276
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
277
|
+
jobManifestId: number;
|
|
278
|
+
params?: AdminDeleteJobManifestParams | undefined;
|
|
279
|
+
}, TContext> | undefined;
|
|
280
|
+
request?: SecondParameter<typeof customInstance>;
|
|
281
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
282
|
+
jobManifestId: number;
|
|
283
|
+
params?: AdminDeleteJobManifestParams | undefined;
|
|
284
|
+
}, TContext>;
|
|
285
|
+
type AdminDeleteJobManifestMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteJobManifest>>>;
|
|
286
|
+
type AdminDeleteJobManifestMutationError = ErrorType<DmError>;
|
|
287
|
+
/**
|
|
288
|
+
* @summary Deletes a Job Manifest
|
|
289
|
+
*/
|
|
290
|
+
declare const useAdminDeleteJobManifest: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
291
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
292
|
+
jobManifestId: number;
|
|
293
|
+
params?: AdminDeleteJobManifestParams | undefined;
|
|
294
|
+
}, TContext> | undefined;
|
|
295
|
+
request?: SecondParameter<typeof customInstance>;
|
|
296
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
297
|
+
jobManifestId: number;
|
|
298
|
+
params?: AdminDeleteJobManifestParams | undefined;
|
|
299
|
+
}, TContext>;
|
|
300
|
+
/**
|
|
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.
|
|
302
|
+
|
|
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.
|
|
304
|
+
|
|
305
|
+
You will need `admin` rights to use this endpoint and the Data Manager needs to be running in `DEVELOPMENT` **Mode**
|
|
306
|
+
|
|
307
|
+
* @summary Trigger a download of Job Definitions using existing Job Manifests
|
|
308
|
+
*/
|
|
309
|
+
declare const adminJobManifestLoad: (options?: SecondParameter<typeof customInstance>) => Promise<AdminJobManifestLoadPutResponse>;
|
|
310
|
+
declare const getAdminJobManifestLoadMutationOptions: <TError = ErrorType<void | DmError>, TVariables = void, TContext = unknown>(options?: {
|
|
311
|
+
mutation?: UseMutationOptions<AdminJobManifestLoadPutResponse, TError, TVariables, TContext> | undefined;
|
|
312
|
+
request?: SecondParameter<typeof customInstance>;
|
|
313
|
+
} | undefined) => UseMutationOptions<AdminJobManifestLoadPutResponse, TError, TVariables, TContext>;
|
|
314
|
+
type AdminJobManifestLoadMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestLoad>>>;
|
|
315
|
+
type AdminJobManifestLoadMutationError = ErrorType<void | DmError>;
|
|
316
|
+
/**
|
|
317
|
+
* @summary Trigger a download of Job Definitions using existing Job Manifests
|
|
318
|
+
*/
|
|
319
|
+
declare const useAdminJobManifestLoad: <TError = ErrorType<void | DmError>, TVariables = void, TContext = unknown>(options?: {
|
|
320
|
+
mutation?: UseMutationOptions<AdminJobManifestLoadPutResponse, TError, TVariables, TContext> | undefined;
|
|
321
|
+
request?: SecondParameter<typeof customInstance>;
|
|
322
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<AdminJobManifestLoadPutResponse, TError, TVariables, TContext>;
|
|
323
|
+
|
|
324
|
+
export { AdminDeleteJobManifestMutationError, AdminDeleteJobManifestMutationResult, AdminDeleteServiceErrorMutationError, AdminDeleteServiceErrorMutationResult, AdminDeleteUserMutationError, AdminDeleteUserMutationResult, AdminGetJobManifestsQueryError, AdminGetJobManifestsQueryResult, AdminGetServiceErrorsQueryError, AdminGetServiceErrorsQueryResult, AdminGetUsersQueryError, AdminGetUsersQueryResult, AdminJobManifestLoadMutationError, AdminJobManifestLoadMutationResult, AdminJobManifestPutMutationBody, AdminJobManifestPutMutationError, AdminJobManifestPutMutationResult, AdminPatchServiceErrorMutationError, AdminPatchServiceErrorMutationResult, AdminPatchUserMutationBody, AdminPatchUserMutationError, AdminPatchUserMutationResult, AdminPutUserMutationError, AdminPutUserMutationResult, adminDeleteJobManifest, adminDeleteServiceError, adminDeleteUser, adminGetJobManifests, adminGetServiceErrors, adminGetUsers, adminJobManifestLoad, adminJobManifestPut, adminPatchServiceError, adminPatchUser, adminPutUser, getAdminDeleteJobManifestMutationOptions, getAdminDeleteServiceErrorMutationOptions, getAdminDeleteUserMutationOptions, getAdminGetJobManifestsQueryKey, getAdminGetJobManifestsQueryOptions, getAdminGetServiceErrorsQueryKey, getAdminGetServiceErrorsQueryOptions, getAdminGetUsersQueryKey, getAdminGetUsersQueryOptions, getAdminJobManifestLoadMutationOptions, getAdminJobManifestPutMutationOptions, getAdminPatchServiceErrorMutationOptions, getAdminPatchUserMutationOptions, getAdminPutUserMutationOptions, useAdminDeleteJobManifest, useAdminDeleteServiceError, useAdminDeleteUser, useAdminGetJobManifests, useAdminGetServiceErrors, useAdminGetUsers, useAdminJobManifestLoad, useAdminJobManifestPut, useAdminPatchServiceError, useAdminPatchUser, useAdminPutUser };
|