@squonk/data-manager-client 1.0.6-rc.4 → 1.0.6
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 +21 -17
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.ts +1 -1
- package/accounting/accounting.js +22 -18
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +30 -6
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.ts +19 -19
- package/admin/admin.js +31 -7
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +16 -15
- package/application/application.cjs.map +1 -1
- package/application/application.d.ts +1 -1
- package/application/application.js +17 -16
- package/application/application.js.map +1 -1
- package/{custom-instance-c4af1ee9.d.ts → custom-instance-9e5c9e19.d.ts} +299 -299
- package/dataset/dataset.cjs +47 -58
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.ts +16 -16
- package/dataset/dataset.js +48 -59
- package/dataset/dataset.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +23 -11
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.ts +7 -7
- package/exchange-rate/exchange-rate.js +24 -12
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file/file.cjs +29 -27
- package/file/file.cjs.map +1 -1
- package/file/file.d.ts +10 -10
- package/file/file.js +30 -28
- package/file/file.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -1
- package/index.js.map +1 -1
- package/instance/instance.cjs +34 -30
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.ts +10 -10
- package/instance/instance.js +35 -31
- package/instance/instance.js.map +1 -1
- package/job/job.cjs +24 -26
- package/job/job.cjs.map +1 -1
- package/job/job.d.ts +1 -1
- package/job/job.js +25 -27
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +13 -19
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.ts +7 -7
- package/metadata/metadata.js +14 -20
- package/metadata/metadata.js.map +1 -1
- package/package.json +1 -1
- package/project/project.cjs +38 -31
- package/project/project.cjs.map +1 -1
- package/project/project.d.ts +19 -19
- package/project/project.js +39 -32
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +96 -132
- package/src/admin/admin.ts +307 -442
- package/src/application/application.ts +66 -94
- package/src/data-manager-api.schemas.ts +425 -470
- package/src/dataset/dataset.ts +367 -554
- package/src/exchange-rate/exchange-rate.ts +221 -339
- package/src/file/file.ts +177 -253
- package/src/instance/instance.ts +217 -314
- package/src/job/job.ts +88 -116
- package/src/metadata/metadata.ts +154 -245
- package/src/project/project.ts +347 -511
- package/src/task/task.ts +105 -141
- package/src/type/type.ts +38 -43
- package/src/user/user.ts +136 -197
- package/task/task.cjs +25 -27
- package/task/task.cjs.map +1 -1
- package/task/task.d.ts +1 -1
- package/task/task.js +26 -28
- package/task/task.js.map +1 -1
- package/type/type.cjs +8 -4
- package/type/type.cjs.map +1 -1
- package/type/type.d.ts +1 -1
- package/type/type.js +9 -5
- package/type/type.js.map +1 -1
- package/user/user.cjs +28 -33
- package/user/user.cjs.map +1 -1
- package/user/user.d.ts +4 -4
- package/user/user.js +29 -34
- package/user/user.js.map +1 -1
|
@@ -3,16 +3,20 @@
|
|
|
3
3
|
var _chunkIUEU2LYCcjs = require('../chunk-IUEU2LYC.cjs');
|
|
4
4
|
|
|
5
5
|
// src/accounting/accounting.ts
|
|
6
|
+
|
|
7
|
+
|
|
6
8
|
var _reactquery = require('react-query');
|
|
7
9
|
var getAccountServerNamespace = (options, signal) => {
|
|
8
10
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
9
|
-
{
|
|
11
|
+
{
|
|
12
|
+
url: `/account-server/namespace`,
|
|
13
|
+
method: "get",
|
|
14
|
+
signal
|
|
15
|
+
},
|
|
10
16
|
options
|
|
11
17
|
);
|
|
12
18
|
};
|
|
13
|
-
var getGetAccountServerNamespaceQueryKey = () => [
|
|
14
|
-
`/account-server/namespace`
|
|
15
|
-
];
|
|
19
|
+
var getGetAccountServerNamespaceQueryKey = () => [`/account-server/namespace`];
|
|
16
20
|
var useGetAccountServerNamespace = (options) => {
|
|
17
21
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
18
22
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetAccountServerNamespaceQueryKey()));
|
|
@@ -23,13 +27,15 @@ var useGetAccountServerNamespace = (options) => {
|
|
|
23
27
|
};
|
|
24
28
|
var getAccountServerRegistration = (options, signal) => {
|
|
25
29
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
26
|
-
{
|
|
30
|
+
{
|
|
31
|
+
url: `/account-server/registration`,
|
|
32
|
+
method: "get",
|
|
33
|
+
signal
|
|
34
|
+
},
|
|
27
35
|
options
|
|
28
36
|
);
|
|
29
37
|
};
|
|
30
|
-
var getGetAccountServerRegistrationQueryKey = () => [
|
|
31
|
-
`/account-server/registration`
|
|
32
|
-
];
|
|
38
|
+
var getGetAccountServerRegistrationQueryKey = () => [`/account-server/registration`];
|
|
33
39
|
var useGetAccountServerRegistration = (options) => {
|
|
34
40
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
35
41
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetAccountServerRegistrationQueryKey()));
|
|
@@ -40,7 +46,11 @@ var useGetAccountServerRegistration = (options) => {
|
|
|
40
46
|
};
|
|
41
47
|
var getVersion = (options, signal) => {
|
|
42
48
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
43
|
-
{
|
|
49
|
+
{
|
|
50
|
+
url: `/version`,
|
|
51
|
+
method: "get",
|
|
52
|
+
signal
|
|
53
|
+
},
|
|
44
54
|
options
|
|
45
55
|
);
|
|
46
56
|
};
|
|
@@ -48,14 +58,8 @@ var getGetVersionQueryKey = () => [`/version`];
|
|
|
48
58
|
var useGetVersion = (options) => {
|
|
49
59
|
const { query: queryOptions, request: requestOptions } = _nullishCoalesce(options, () => ( {}));
|
|
50
60
|
const queryKey = _nullishCoalesce((queryOptions == null ? void 0 : queryOptions.queryKey), () => ( getGetVersionQueryKey()));
|
|
51
|
-
const queryFn = ({
|
|
52
|
-
|
|
53
|
-
}) => getVersion(requestOptions, signal);
|
|
54
|
-
const query = _reactquery.useQuery.call(void 0,
|
|
55
|
-
queryKey,
|
|
56
|
-
queryFn,
|
|
57
|
-
queryOptions
|
|
58
|
-
);
|
|
61
|
+
const queryFn = ({ signal }) => getVersion(requestOptions, signal);
|
|
62
|
+
const query = _reactquery.useQuery.call(void 0, queryKey, queryFn, queryOptions);
|
|
59
63
|
query.queryKey = queryKey;
|
|
60
64
|
return query;
|
|
61
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/accounting/accounting.ts"],"names":[],"mappings":";;;;;AAUA,
|
|
1
|
+
{"version":3,"sources":["../../src/accounting/accounting.ts"],"names":[],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,OACK;AA8BA,IAAM,4BAA4B,CAExC,SAAiD,WAC7C;AACC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAA6B,QAAQ;AAAA,MAAO;AAAA,IACpD;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,uCAAuC,MAAM,CAAC,2BAA2B;AAM/E,IAAM,+BAA+B,CAC1C,YAE8D;AAE9D,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEnE,QAAM,YAAW,6CAAc,aAAY,qCAAqC;AAIhF,QAAM,UAAgF,CAAC,EAAE,OAAO,MAAM,0BAA0B,gBAAgB,MAAM;AAEtJ,QAAM,QAAQ,SAA+E,UAAU,SAAS,YAAY;AAE5H,QAAM,WAAW;AAEjB,SAAO;AACT;AAOO,IAAM,+BAA+B,CAE3C,SAAiD,WAC7C;AACC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAAgC,QAAQ;AAAA,MAAO;AAAA,IACvD;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,0CAA0C,MAAM,CAAC,8BAA8B;AAMrF,IAAM,kCAAkC,CAC7C,YAE8D;AAE9D,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEnE,QAAM,YAAW,6CAAc,aAAY,wCAAwC;AAInF,QAAM,UAAmF,CAAC,EAAE,OAAO,MAAM,6BAA6B,gBAAgB,MAAM;AAE5J,QAAM,QAAQ,SAAkF,UAAU,SAAS,YAAY;AAE/H,QAAM,WAAW;AAEjB,SAAO;AACT;AAKO,IAAM,aAAa,CAEzB,SAAiD,WAC7C;AACC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAAY,QAAQ;AAAA,MAAO;AAAA,IACnC;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,wBAAwB,MAAM,CAAC,UAAU;AAM/C,IAAM,gBAAgB,CAC3B,YAE8D;AAE9D,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEnE,QAAM,YAAW,6CAAc,aAAY,sBAAsB;AAIjE,QAAM,UAAiE,CAAC,EAAE,OAAO,MAAM,WAAW,gBAAgB,MAAM;AAExH,QAAM,QAAQ,SAAgE,UAAU,SAAS,YAAY;AAE7G,QAAM,WAAW;AAEjB,SAAO;AACT","sourcesContent":["/**\n * Generated by orval v6.9.1 🍺\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.0\n */\nimport {\n useQuery\n} from 'react-query'\nimport type {\n UseQueryOptions,\n QueryFunction,\n UseQueryResult,\n QueryKey\n} from 'react-query'\nimport type {\n AccountServerGetNamespaceResponse,\n DmError,\n AccountServerGetRegistrationResponse,\n VersionGetResponse\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 * If an Account Server is configured its namespace, e.g. `account-server`, is returned, otherwise an empty string is returned\n\n * @summary Gets the Account Server cluster namespace\n */\nexport const getAccountServerNamespace = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n return customInstance<AccountServerGetNamespaceResponse>(\n {url: `/account-server/namespace`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getGetAccountServerNamespaceQueryKey = () => [`/account-server/namespace`];\n\n \nexport type GetAccountServerNamespaceQueryResult = NonNullable<Awaited<ReturnType<typeof getAccountServerNamespace>>>\nexport type GetAccountServerNamespaceQueryError = ErrorType<void | DmError>\n\nexport const useGetAccountServerNamespace = <TData = Awaited<ReturnType<typeof getAccountServerNamespace>>, TError = ErrorType<void | DmError>>(\n options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getAccountServerNamespace>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const {query: queryOptions, request: requestOptions} = options ?? {}\n\n const queryKey = queryOptions?.queryKey ?? getGetAccountServerNamespaceQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAccountServerNamespace>>> = ({ signal }) => getAccountServerNamespace(requestOptions, signal);\n\n const query = useQuery<Awaited<ReturnType<typeof getAccountServerNamespace>>, TError, TData>(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryKey;\n\n return query;\n}\n\n/**\n * Returns our Account Server Registration information\n\n * @summary Gets the Data Manager Account Server Registration\n */\nexport const getAccountServerRegistration = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n return customInstance<AccountServerGetRegistrationResponse>(\n {url: `/account-server/registration`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getGetAccountServerRegistrationQueryKey = () => [`/account-server/registration`];\n\n \nexport type GetAccountServerRegistrationQueryResult = NonNullable<Awaited<ReturnType<typeof getAccountServerRegistration>>>\nexport type GetAccountServerRegistrationQueryError = ErrorType<void | DmError>\n\nexport const useGetAccountServerRegistration = <TData = Awaited<ReturnType<typeof getAccountServerRegistration>>, TError = ErrorType<void | DmError>>(\n options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getAccountServerRegistration>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const {query: queryOptions, request: requestOptions} = options ?? {}\n\n const queryKey = queryOptions?.queryKey ?? getGetAccountServerRegistrationQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAccountServerRegistration>>> = ({ signal }) => getAccountServerRegistration(requestOptions, signal);\n\n const query = useQuery<Awaited<ReturnType<typeof getAccountServerRegistration>>, TError, TData>(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets the Data Manager version that's running behind the API\n */\nexport const getVersion = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n return customInstance<VersionGetResponse>(\n {url: `/version`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getGetVersionQueryKey = () => [`/version`];\n\n \nexport type GetVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getVersion>>>\nexport type GetVersionQueryError = ErrorType<void | DmError>\n\nexport const useGetVersion = <TData = Awaited<ReturnType<typeof getVersion>>, TError = ErrorType<void | DmError>>(\n options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getVersion>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const {query: queryOptions, request: requestOptions} = options ?? {}\n\n const queryKey = queryOptions?.queryKey ?? getGetVersionQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getVersion>>> = ({ signal }) => getVersion(requestOptions, signal);\n\n const query = useQuery<Awaited<ReturnType<typeof getVersion>>, TError, TData>(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryKey;\n\n return query;\n}\n\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions, QueryKey, UseQueryResult } from 'react-query';
|
|
2
|
-
import { bC as customInstance, bw as AccountServerGetNamespaceResponse, bD as ErrorType, by as DmError, bx as AccountServerGetRegistrationResponse, aQ as VersionGetResponse } from '../custom-instance-
|
|
2
|
+
import { bC as customInstance, bw as AccountServerGetNamespaceResponse, bD as ErrorType, by as DmError, bx as AccountServerGetRegistrationResponse, aQ as VersionGetResponse } from '../custom-instance-9e5c9e19.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
|
|
5
5
|
declare type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
package/accounting/accounting.js
CHANGED
|
@@ -3,16 +3,20 @@ import {
|
|
|
3
3
|
} from "../chunk-3O5KIRV4.js";
|
|
4
4
|
|
|
5
5
|
// src/accounting/accounting.ts
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
useQuery
|
|
8
|
+
} from "react-query";
|
|
7
9
|
var getAccountServerNamespace = (options, signal) => {
|
|
8
10
|
return customInstance(
|
|
9
|
-
{
|
|
11
|
+
{
|
|
12
|
+
url: `/account-server/namespace`,
|
|
13
|
+
method: "get",
|
|
14
|
+
signal
|
|
15
|
+
},
|
|
10
16
|
options
|
|
11
17
|
);
|
|
12
18
|
};
|
|
13
|
-
var getGetAccountServerNamespaceQueryKey = () => [
|
|
14
|
-
`/account-server/namespace`
|
|
15
|
-
];
|
|
19
|
+
var getGetAccountServerNamespaceQueryKey = () => [`/account-server/namespace`];
|
|
16
20
|
var useGetAccountServerNamespace = (options) => {
|
|
17
21
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
18
22
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAccountServerNamespaceQueryKey();
|
|
@@ -23,13 +27,15 @@ var useGetAccountServerNamespace = (options) => {
|
|
|
23
27
|
};
|
|
24
28
|
var getAccountServerRegistration = (options, signal) => {
|
|
25
29
|
return customInstance(
|
|
26
|
-
{
|
|
30
|
+
{
|
|
31
|
+
url: `/account-server/registration`,
|
|
32
|
+
method: "get",
|
|
33
|
+
signal
|
|
34
|
+
},
|
|
27
35
|
options
|
|
28
36
|
);
|
|
29
37
|
};
|
|
30
|
-
var getGetAccountServerRegistrationQueryKey = () => [
|
|
31
|
-
`/account-server/registration`
|
|
32
|
-
];
|
|
38
|
+
var getGetAccountServerRegistrationQueryKey = () => [`/account-server/registration`];
|
|
33
39
|
var useGetAccountServerRegistration = (options) => {
|
|
34
40
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
35
41
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetAccountServerRegistrationQueryKey();
|
|
@@ -40,7 +46,11 @@ var useGetAccountServerRegistration = (options) => {
|
|
|
40
46
|
};
|
|
41
47
|
var getVersion = (options, signal) => {
|
|
42
48
|
return customInstance(
|
|
43
|
-
{
|
|
49
|
+
{
|
|
50
|
+
url: `/version`,
|
|
51
|
+
method: "get",
|
|
52
|
+
signal
|
|
53
|
+
},
|
|
44
54
|
options
|
|
45
55
|
);
|
|
46
56
|
};
|
|
@@ -48,14 +58,8 @@ var getGetVersionQueryKey = () => [`/version`];
|
|
|
48
58
|
var useGetVersion = (options) => {
|
|
49
59
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
50
60
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetVersionQueryKey();
|
|
51
|
-
const queryFn = ({
|
|
52
|
-
|
|
53
|
-
}) => getVersion(requestOptions, signal);
|
|
54
|
-
const query = useQuery(
|
|
55
|
-
queryKey,
|
|
56
|
-
queryFn,
|
|
57
|
-
queryOptions
|
|
58
|
-
);
|
|
61
|
+
const queryFn = ({ signal }) => getVersion(requestOptions, signal);
|
|
62
|
+
const query = useQuery(queryKey, queryFn, queryOptions);
|
|
59
63
|
query.queryKey = queryKey;
|
|
60
64
|
return query;
|
|
61
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/accounting/accounting.ts"],"sourcesContent":["/**\n * Generated by orval v6.9.1 🍺\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.0\n */\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/accounting/accounting.ts"],"sourcesContent":["/**\n * Generated by orval v6.9.1 🍺\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.0\n */\nimport {\n useQuery\n} from 'react-query'\nimport type {\n UseQueryOptions,\n QueryFunction,\n UseQueryResult,\n QueryKey\n} from 'react-query'\nimport type {\n AccountServerGetNamespaceResponse,\n DmError,\n AccountServerGetRegistrationResponse,\n VersionGetResponse\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 * If an Account Server is configured its namespace, e.g. `account-server`, is returned, otherwise an empty string is returned\n\n * @summary Gets the Account Server cluster namespace\n */\nexport const getAccountServerNamespace = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n return customInstance<AccountServerGetNamespaceResponse>(\n {url: `/account-server/namespace`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getGetAccountServerNamespaceQueryKey = () => [`/account-server/namespace`];\n\n \nexport type GetAccountServerNamespaceQueryResult = NonNullable<Awaited<ReturnType<typeof getAccountServerNamespace>>>\nexport type GetAccountServerNamespaceQueryError = ErrorType<void | DmError>\n\nexport const useGetAccountServerNamespace = <TData = Awaited<ReturnType<typeof getAccountServerNamespace>>, TError = ErrorType<void | DmError>>(\n options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getAccountServerNamespace>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const {query: queryOptions, request: requestOptions} = options ?? {}\n\n const queryKey = queryOptions?.queryKey ?? getGetAccountServerNamespaceQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAccountServerNamespace>>> = ({ signal }) => getAccountServerNamespace(requestOptions, signal);\n\n const query = useQuery<Awaited<ReturnType<typeof getAccountServerNamespace>>, TError, TData>(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryKey;\n\n return query;\n}\n\n/**\n * Returns our Account Server Registration information\n\n * @summary Gets the Data Manager Account Server Registration\n */\nexport const getAccountServerRegistration = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n return customInstance<AccountServerGetRegistrationResponse>(\n {url: `/account-server/registration`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getGetAccountServerRegistrationQueryKey = () => [`/account-server/registration`];\n\n \nexport type GetAccountServerRegistrationQueryResult = NonNullable<Awaited<ReturnType<typeof getAccountServerRegistration>>>\nexport type GetAccountServerRegistrationQueryError = ErrorType<void | DmError>\n\nexport const useGetAccountServerRegistration = <TData = Awaited<ReturnType<typeof getAccountServerRegistration>>, TError = ErrorType<void | DmError>>(\n options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getAccountServerRegistration>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const {query: queryOptions, request: requestOptions} = options ?? {}\n\n const queryKey = queryOptions?.queryKey ?? getGetAccountServerRegistrationQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getAccountServerRegistration>>> = ({ signal }) => getAccountServerRegistration(requestOptions, signal);\n\n const query = useQuery<Awaited<ReturnType<typeof getAccountServerRegistration>>, TError, TData>(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets the Data Manager version that's running behind the API\n */\nexport const getVersion = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n return customInstance<VersionGetResponse>(\n {url: `/version`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getGetVersionQueryKey = () => [`/version`];\n\n \nexport type GetVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getVersion>>>\nexport type GetVersionQueryError = ErrorType<void | DmError>\n\nexport const useGetVersion = <TData = Awaited<ReturnType<typeof getVersion>>, TError = ErrorType<void | DmError>>(\n options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getVersion>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const {query: queryOptions, request: requestOptions} = options ?? {}\n\n const queryKey = queryOptions?.queryKey ?? getGetVersionQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getVersion>>> = ({ signal }) => getVersion(requestOptions, signal);\n\n const query = useQuery<Awaited<ReturnType<typeof getVersion>>, TError, TData>(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryKey;\n\n return query;\n}\n\n"],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,OACK;AA8BA,IAAM,4BAA4B,CAExC,SAAiD,WAC7C;AACC,SAAO;AAAA,IACP;AAAA,MAAC,KA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AiE,CAAC,EAAE,OAAO,MAAM,WAAW,gBAAgB,MAAM;AAExH,QAAM,QAAQ,SAAgE,UAAU,SAAS,YAAY;AAE7G,QAAM,WAAW;AAEjB,SAAO;AACT;","names":[]}
|
package/admin/admin.cjs
CHANGED
|
@@ -3,10 +3,18 @@
|
|
|
3
3
|
var _chunkIUEU2LYCcjs = require('../chunk-IUEU2LYC.cjs');
|
|
4
4
|
|
|
5
5
|
// src/admin/admin.ts
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
6
9
|
var _reactquery = require('react-query');
|
|
7
10
|
var adminGetServiceErrors = (params, options, signal) => {
|
|
8
11
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
9
|
-
{
|
|
12
|
+
{
|
|
13
|
+
url: `/admin/service-error`,
|
|
14
|
+
method: "get",
|
|
15
|
+
params,
|
|
16
|
+
signal
|
|
17
|
+
},
|
|
10
18
|
options
|
|
11
19
|
);
|
|
12
20
|
};
|
|
@@ -21,7 +29,10 @@ var useAdminGetServiceErrors = (params, options) => {
|
|
|
21
29
|
};
|
|
22
30
|
var adminPatchServiceError = (errorId, options) => {
|
|
23
31
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
24
|
-
{
|
|
32
|
+
{
|
|
33
|
+
url: `/admin/service-error/${errorId}`,
|
|
34
|
+
method: "patch"
|
|
35
|
+
},
|
|
25
36
|
options
|
|
26
37
|
);
|
|
27
38
|
};
|
|
@@ -35,7 +46,10 @@ var useAdminPatchServiceError = (options) => {
|
|
|
35
46
|
};
|
|
36
47
|
var adminDeleteServiceError = (errorId, options) => {
|
|
37
48
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
38
|
-
{
|
|
49
|
+
{
|
|
50
|
+
url: `/admin/service-error/${errorId}`,
|
|
51
|
+
method: "delete"
|
|
52
|
+
},
|
|
39
53
|
options
|
|
40
54
|
);
|
|
41
55
|
};
|
|
@@ -49,7 +63,10 @@ var useAdminDeleteServiceError = (options) => {
|
|
|
49
63
|
};
|
|
50
64
|
var adminPutUser = (userId, options) => {
|
|
51
65
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
52
|
-
{
|
|
66
|
+
{
|
|
67
|
+
url: `/admin/user/${userId}`,
|
|
68
|
+
method: "put"
|
|
69
|
+
},
|
|
53
70
|
options
|
|
54
71
|
);
|
|
55
72
|
};
|
|
@@ -63,7 +80,10 @@ var useAdminPutUser = (options) => {
|
|
|
63
80
|
};
|
|
64
81
|
var adminDeleteUser = (userId, options) => {
|
|
65
82
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
66
|
-
{
|
|
83
|
+
{
|
|
84
|
+
url: `/admin/user/${userId}`,
|
|
85
|
+
method: "delete"
|
|
86
|
+
},
|
|
67
87
|
options
|
|
68
88
|
);
|
|
69
89
|
};
|
|
@@ -100,7 +120,11 @@ var useAdminPatchUser = (options) => {
|
|
|
100
120
|
};
|
|
101
121
|
var adminGetJobManifests = (options, signal) => {
|
|
102
122
|
return _chunkIUEU2LYCcjs.customInstance.call(void 0,
|
|
103
|
-
{
|
|
123
|
+
{
|
|
124
|
+
url: `/admin/job-manifest`,
|
|
125
|
+
method: "get",
|
|
126
|
+
signal
|
|
127
|
+
},
|
|
104
128
|
options
|
|
105
129
|
);
|
|
106
130
|
};
|
package/admin/admin.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/admin/admin.ts"],"names":[],"mappings":";;;;;AAUA,SAAS,UAAU,mBAAmB;AAsC/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,wBAAwB,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC,CAAE;AAOlD,IAAM,2BAA2B,CAItC,QACA,YAQ2D;AAC3D,QAAM,EAAE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ACR,SAAS,EAAE,gBAAgB,sBAAsB;AAAA,MACjD,MAAM;AAAA,IACR;AAAA,IACA;AAAA,EACF;AACF;AAQO,IAAM,0BAA0B,CAGrC,YAQI;AACJ,QAAM,EAAE,UAAU,iBAAiB,SAAS,eAAe,IAAI,WAAW,CAAC;AAE3E,QAAM,aAGF,CAAC,UAAU;AACb,UAAM,EAAE,KAAK,IAAI,SAAS,CAAC;AAE3B,WAAO,qBAAqB,MAAM,cAAc;AAAA,EAClD;AAEA,SAAO,YAKL,YAAY,eAAe;AAC/B","sourcesContent":["/**\n * Generated by orval v6.9.1 🍺\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.0\n */\nimport { useQuery, useMutation } from \"react-query\";\nimport type {\n UseQueryOptions,\n UseMutationOptions,\n QueryFunction,\n MutationFunction,\n UseQueryResult,\n QueryKey,\n} from \"react-query\";\nimport type {\n ServiceErrorsGetResponse,\n DmError,\n AdminGetServiceErrorsParams,\n AdminUserPutResponse,\n UserPatchBodyBody,\n AdminJobManifestGetResponse,\n AdminJobManifestLoadPutResponse,\n JobManifestPutBodyBody,\n JobManifestLoadPutBodyBody,\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) => [`/admin/service-error`, ...(params ? [params] : [])];\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 { 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 const query = useQuery<\n Awaited<ReturnType<typeof adminGetServiceErrors>>,\n TError,\n TData\n >(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = 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 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 { 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 useMutation<\n Awaited<ReturnType<typeof adminPatchServiceError>>,\n TError,\n { errorId: number },\n TContext\n >(mutationFn, 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 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 { 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 useMutation<\n Awaited<ReturnType<typeof adminDeleteServiceError>>,\n TError,\n { errorId: number },\n TContext\n >(mutationFn, mutationOptions);\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 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 { 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 useMutation<\n Awaited<ReturnType<typeof adminPutUser>>,\n TError,\n { userId: string },\n TContext\n >(mutationFn, 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 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 { 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 useMutation<\n Awaited<ReturnType<typeof adminDeleteUser>>,\n TError,\n { userId: string },\n TContext\n >(mutationFn, 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 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 { 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 useMutation<\n Awaited<ReturnType<typeof adminPatchUser>>,\n TError,\n { userId: string; data: UserPatchBodyBody },\n TContext\n >(mutationFn, 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 = () => [`/admin/job-manifest`];\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 { 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 const query = useQuery<\n Awaited<ReturnType<typeof adminGetJobManifests>>,\n TError,\n TData\n >(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = 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 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 { 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 useMutation<\n Awaited<ReturnType<typeof adminJobManifestPut>>,\n TError,\n { data: JobManifestPutBodyBody },\n TContext\n >(mutationFn, 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 will need **admin** rights to use this endpoint\n\n * @summary Trigger a download of Job Definitions using existing Job Manifests\n */\nexport const adminJobManifestLoad = (\n jobManifestLoadPutBodyBody: JobManifestLoadPutBodyBody,\n options?: SecondParameter<typeof customInstance>\n) => {\n const formData = new FormData();\n if (jobManifestLoadPutBodyBody.purge !== undefined) {\n formData.append(\"purge\", jobManifestLoadPutBodyBody.purge.toString());\n }\n\n return customInstance<AdminJobManifestLoadPutResponse>(\n {\n url: `/admin/job-manifest/load`,\n method: \"put\",\n headers: { \"Content-Type\": \"multipart/form-data\" },\n data: formData,\n },\n options\n );\n};\n\nexport type AdminJobManifestLoadMutationResult = NonNullable<\n Awaited<ReturnType<typeof adminJobManifestLoad>>\n>;\nexport type AdminJobManifestLoadMutationBody = JobManifestLoadPutBodyBody;\nexport type AdminJobManifestLoadMutationError = ErrorType<void | DmError>;\n\nexport const useAdminJobManifestLoad = <\n TError = ErrorType<void | DmError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof adminJobManifestLoad>>,\n TError,\n { data: JobManifestLoadPutBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { mutation: mutationOptions, request: requestOptions } = options ?? {};\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof adminJobManifestLoad>>,\n { data: JobManifestLoadPutBodyBody }\n > = (props) => {\n const { data } = props ?? {};\n\n return adminJobManifestLoad(data, requestOptions);\n };\n\n return useMutation<\n Awaited<ReturnType<typeof adminJobManifestLoad>>,\n TError,\n { data: JobManifestLoadPutBodyBody },\n TContext\n >(mutationFn, mutationOptions);\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/admin/admin.ts"],"names":[],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAuCA,IAAM,wBAAwB,CACjC,QACH,SAAiD,WAC7C;AACC,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,CAAC,wBAAwB,GAAI,SAAS,CAAC,MAAM,IAAG,CAAC,CAAE;AAMvI,IAAM,2BAA2B,CACvC,QAAsC,YAEyB;AAE9D,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEnE,QAAM,YAAW,6CAAc,aAAY,iCAAiC,MAAM;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;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAA4B,QAAQ;AAAA,MAC1C,SAAS,EAAC,gBAAgB,sBAAuB;AAAA,MAChD,MAAM;AAAA,IACT;AAAA,IACE;AAAA,EAAO;AACT;AAQO,IAAM,0BAA0B,CAEnB,YACnB;AACC,QAAM,EAAC,UAAU,iBAAiB,SAAS,eAAc,IAAI,WAAW,CAAC;AAKzE,QAAM,aAAqH,CAAC,UAAU;AAClI,UAAM,EAAC,KAAI,IAAI,SAAS,CAAC;AAEzB,WAAQ,qBAAqB,MAAK,cAAc;AAAA,EAClD;AAEF,SAAO,YAAoH,YAAY,eAAe;AACxJ","sourcesContent":["/**\n * Generated by orval v6.9.1 🍺\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.0\n */\nimport {\n useQuery,\n useMutation\n} from 'react-query'\nimport type {\n UseQueryOptions,\n UseMutationOptions,\n QueryFunction,\n MutationFunction,\n UseQueryResult,\n QueryKey\n} from 'react-query'\nimport type {\n ServiceErrorsGetResponse,\n DmError,\n AdminGetServiceErrorsParams,\n AdminUserPutResponse,\n UserPatchBodyBody,\n AdminJobManifestGetResponse,\n AdminJobManifestLoadPutResponse,\n JobManifestPutBodyBody,\n JobManifestLoadPutBodyBody\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 * 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 return customInstance<ServiceErrorsGetResponse>(\n {url: `/admin/service-error`, method: 'get',\n params, signal\n },\n options);\n }\n \n\nexport const getAdminGetServiceErrorsQueryKey = (params?: AdminGetServiceErrorsParams,) => [`/admin/service-error`, ...(params ? [params]: [])];\n\n \nexport type AdminGetServiceErrorsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetServiceErrors>>>\nexport type AdminGetServiceErrorsQueryError = ErrorType<void | DmError>\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 {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 const query = useQuery<Awaited<ReturnType<typeof adminGetServiceErrors>>, TError, TData>(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = 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 return customInstance<void>(\n {url: `/admin/service-error/${errorId}`, method: 'patch'\n },\n options);\n }\n \n\n\n export type AdminPatchServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchServiceError>>>\n \n export type AdminPatchServiceErrorMutationError = ErrorType<DmError>\n\n export 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 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 return useMutation<Awaited<ReturnType<typeof adminPatchServiceError>>, TError, {errorId: number}, TContext>(mutationFn, 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 return customInstance<void>(\n {url: `/admin/service-error/${errorId}`, method: 'delete'\n },\n options);\n }\n \n\n\n export type AdminDeleteServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteServiceError>>>\n \n export type AdminDeleteServiceErrorMutationError = ErrorType<DmError>\n\n export 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 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 return useMutation<Awaited<ReturnType<typeof adminDeleteServiceError>>, TError, {errorId: number}, TContext>(mutationFn, mutationOptions)\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 return customInstance<AdminUserPutResponse>(\n {url: `/admin/user/${userId}`, method: 'put'\n },\n options);\n }\n \n\n\n export type AdminPutUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPutUser>>>\n \n export type AdminPutUserMutationError = ErrorType<void | DmError>\n\n export 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 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 return useMutation<Awaited<ReturnType<typeof adminPutUser>>, TError, {userId: string}, TContext>(mutationFn, 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 return customInstance<void>(\n {url: `/admin/user/${userId}`, method: 'delete'\n },\n options);\n }\n \n\n\n export type AdminDeleteUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteUser>>>\n \n export type AdminDeleteUserMutationError = ErrorType<DmError>\n\n export 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 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 return useMutation<Awaited<ReturnType<typeof adminDeleteUser>>, TError, {userId: string}, TContext>(mutationFn, 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>,) => {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\n export type AdminPatchUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchUser>>>\n export type AdminPatchUserMutationBody = UserPatchBodyBody\n export type AdminPatchUserMutationError = ErrorType<DmError>\n\n export 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 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 return useMutation<Awaited<ReturnType<typeof adminPatchUser>>, TError, {userId: string;data: UserPatchBodyBody}, TContext>(mutationFn, 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 return customInstance<AdminJobManifestGetResponse>(\n {url: `/admin/job-manifest`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getAdminGetJobManifestsQueryKey = () => [`/admin/job-manifest`];\n\n \nexport type AdminGetJobManifestsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetJobManifests>>>\nexport type AdminGetJobManifestsQueryError = ErrorType<void | DmError>\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 {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 const query = useQuery<Awaited<ReturnType<typeof adminGetJobManifests>>, TError, TData>(queryKey, queryFn, queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = 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>,) => {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\n export type AdminJobManifestPutMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestPut>>>\n export type AdminJobManifestPutMutationBody = JobManifestPutBodyBody\n export type AdminJobManifestPutMutationError = ErrorType<void | DmError>\n\n export 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 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 return useMutation<Awaited<ReturnType<typeof adminJobManifestPut>>, TError, {data: JobManifestPutBodyBody}, TContext>(mutationFn, 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 will need **admin** rights to use this endpoint\n\n * @summary Trigger a download of Job Definitions using existing Job Manifests\n */\nexport const adminJobManifestLoad = (\n jobManifestLoadPutBodyBody: JobManifestLoadPutBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {const formData = new FormData();\nif(jobManifestLoadPutBodyBody.purge !== undefined) {\n formData.append('purge', jobManifestLoadPutBodyBody.purge.toString())\n }\n\n return customInstance<AdminJobManifestLoadPutResponse>(\n {url: `/admin/job-manifest/load`, method: 'put',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\n export type AdminJobManifestLoadMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestLoad>>>\n export type AdminJobManifestLoadMutationBody = JobManifestLoadPutBodyBody\n export type AdminJobManifestLoadMutationError = ErrorType<void | DmError>\n\n export const useAdminJobManifestLoad = <TError = ErrorType<void | DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof adminJobManifestLoad>>, TError,{data: JobManifestLoadPutBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {}\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof adminJobManifestLoad>>, {data: JobManifestLoadPutBodyBody}> = (props) => {\n const {data} = props ?? {};\n\n return adminJobManifestLoad(data,requestOptions)\n }\n\n return useMutation<Awaited<ReturnType<typeof adminJobManifestLoad>>, TError, {data: JobManifestLoadPutBodyBody}, TContext>(mutationFn, mutationOptions)\n }\n "]}
|
package/admin/admin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AdminGetServiceErrorsParams, bC as customInstance, aY as ServiceErrorsGetResponse, bD as ErrorType, by as DmError, aa as UserAccountDetail, W as UserPatchBodyBody, bv as AdminJobManifestGetResponse, a0 as JobManifestPutBodyBody, bu as AdminJobManifestLoadPutResponse, a1 as JobManifestLoadPutBodyBody } from '../custom-instance-
|
|
1
|
+
import { A as AdminGetServiceErrorsParams, bC as customInstance, aY as ServiceErrorsGetResponse, bD as ErrorType, by as DmError, aa as UserAccountDetail, W as UserPatchBodyBody, bv as AdminJobManifestGetResponse, a0 as JobManifestPutBodyBody, bu as AdminJobManifestLoadPutResponse, a1 as JobManifestLoadPutBodyBody } from '../custom-instance-9e5c9e19.js';
|
|
2
2
|
import * as react_query from 'react-query';
|
|
3
3
|
import { UseQueryOptions, QueryKey, UseQueryResult, UseMutationOptions } from 'react-query';
|
|
4
4
|
import 'axios';
|
|
@@ -40,12 +40,12 @@ declare const useAdminPatchServiceError: <TError = ErrorType<DmError>, TContext
|
|
|
40
40
|
errorId: number;
|
|
41
41
|
}, TContext>;
|
|
42
42
|
/**
|
|
43
|
-
|
|
43
|
+
* Deletes an existing Service Error.
|
|
44
44
|
|
|
45
45
|
You will need **admin** rights to use this endpoint
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
* @summary Deletes a Service Error
|
|
48
|
+
*/
|
|
49
49
|
declare const adminDeleteServiceError: (errorId: number, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
50
50
|
declare type AdminDeleteServiceErrorMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteServiceError>>>;
|
|
51
51
|
declare type AdminDeleteServiceErrorMutationError = ErrorType<DmError>;
|
|
@@ -58,12 +58,12 @@ declare const useAdminDeleteServiceError: <TError = ErrorType<DmError>, TContext
|
|
|
58
58
|
errorId: number;
|
|
59
59
|
}, TContext>;
|
|
60
60
|
/**
|
|
61
|
-
|
|
61
|
+
* 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.
|
|
62
62
|
|
|
63
63
|
You will need **admin** rights to use this endpoint
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
* @summary Prepares a user account in the Data Manager service
|
|
66
|
+
*/
|
|
67
67
|
declare const adminPutUser: (userId: string, options?: SecondParameter<typeof customInstance>) => Promise<UserAccountDetail>;
|
|
68
68
|
declare type AdminPutUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPutUser>>>;
|
|
69
69
|
declare type AdminPutUserMutationError = ErrorType<void | DmError>;
|
|
@@ -76,12 +76,12 @@ declare const useAdminPutUser: <TError = ErrorType<void | DmError>, TContext = u
|
|
|
76
76
|
userId: string;
|
|
77
77
|
}, TContext>;
|
|
78
78
|
/**
|
|
79
|
-
|
|
79
|
+
* Deletes a user account, along with all the user's Datasets
|
|
80
80
|
|
|
81
81
|
You will need **admin** rights to use this endpoint
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
* @summary Deletes a user account
|
|
84
|
+
*/
|
|
85
85
|
declare const adminDeleteUser: (userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
86
86
|
declare type AdminDeleteUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminDeleteUser>>>;
|
|
87
87
|
declare type AdminDeleteUserMutationError = ErrorType<DmError>;
|
|
@@ -94,12 +94,12 @@ declare const useAdminDeleteUser: <TError = ErrorType<DmError>, TContext = unkno
|
|
|
94
94
|
userId: string;
|
|
95
95
|
}, TContext>;
|
|
96
96
|
/**
|
|
97
|
-
|
|
97
|
+
* Patches a user record, typically to suspend or re-enable a user account
|
|
98
98
|
|
|
99
99
|
You will need **admin** rights to use this endpoint
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
* @summary Patch a given user
|
|
102
|
+
*/
|
|
103
103
|
declare const adminPatchUser: (userId: string, userPatchBodyBody: UserPatchBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
104
104
|
declare type AdminPatchUserMutationResult = NonNullable<Awaited<ReturnType<typeof adminPatchUser>>>;
|
|
105
105
|
declare type AdminPatchUserMutationBody = UserPatchBodyBody;
|
|
@@ -115,12 +115,12 @@ declare const useAdminPatchUser: <TError = ErrorType<DmError>, TContext = unknow
|
|
|
115
115
|
data: UserPatchBodyBody;
|
|
116
116
|
}, TContext>;
|
|
117
117
|
/**
|
|
118
|
-
|
|
118
|
+
* 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.
|
|
119
119
|
|
|
120
120
|
You will need **admin** rights to use this endpoint
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
* @summary Get Job Manifests
|
|
123
|
+
*/
|
|
124
124
|
declare const adminGetJobManifests: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal | undefined) => Promise<AdminJobManifestGetResponse>;
|
|
125
125
|
declare const getAdminGetJobManifestsQueryKey: () => string[];
|
|
126
126
|
declare type AdminGetJobManifestsQueryResult = NonNullable<Awaited<ReturnType<typeof adminGetJobManifests>>>;
|
|
@@ -153,12 +153,12 @@ declare const useAdminJobManifestPut: <TError = ErrorType<void | DmError>, TCont
|
|
|
153
153
|
data: JobManifestPutBodyBody;
|
|
154
154
|
}, TContext>;
|
|
155
155
|
/**
|
|
156
|
-
|
|
156
|
+
* 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.
|
|
157
157
|
|
|
158
158
|
You will need **admin** rights to use this endpoint
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
* @summary Trigger a download of Job Definitions using existing Job Manifests
|
|
161
|
+
*/
|
|
162
162
|
declare const adminJobManifestLoad: (jobManifestLoadPutBodyBody: JobManifestLoadPutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<AdminJobManifestLoadPutResponse>;
|
|
163
163
|
declare type AdminJobManifestLoadMutationResult = NonNullable<Awaited<ReturnType<typeof adminJobManifestLoad>>>;
|
|
164
164
|
declare type AdminJobManifestLoadMutationBody = JobManifestLoadPutBodyBody;
|
package/admin/admin.js
CHANGED
|
@@ -3,10 +3,18 @@ import {
|
|
|
3
3
|
} from "../chunk-3O5KIRV4.js";
|
|
4
4
|
|
|
5
5
|
// src/admin/admin.ts
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
useQuery,
|
|
8
|
+
useMutation
|
|
9
|
+
} from "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
|
};
|
|
@@ -21,7 +29,10 @@ var useAdminGetServiceErrors = (params, options) => {
|
|
|
21
29
|
};
|
|
22
30
|
var adminPatchServiceError = (errorId, options) => {
|
|
23
31
|
return customInstance(
|
|
24
|
-
{
|
|
32
|
+
{
|
|
33
|
+
url: `/admin/service-error/${errorId}`,
|
|
34
|
+
method: "patch"
|
|
35
|
+
},
|
|
25
36
|
options
|
|
26
37
|
);
|
|
27
38
|
};
|
|
@@ -35,7 +46,10 @@ var useAdminPatchServiceError = (options) => {
|
|
|
35
46
|
};
|
|
36
47
|
var adminDeleteServiceError = (errorId, options) => {
|
|
37
48
|
return customInstance(
|
|
38
|
-
{
|
|
49
|
+
{
|
|
50
|
+
url: `/admin/service-error/${errorId}`,
|
|
51
|
+
method: "delete"
|
|
52
|
+
},
|
|
39
53
|
options
|
|
40
54
|
);
|
|
41
55
|
};
|
|
@@ -49,7 +63,10 @@ var useAdminDeleteServiceError = (options) => {
|
|
|
49
63
|
};
|
|
50
64
|
var adminPutUser = (userId, options) => {
|
|
51
65
|
return customInstance(
|
|
52
|
-
{
|
|
66
|
+
{
|
|
67
|
+
url: `/admin/user/${userId}`,
|
|
68
|
+
method: "put"
|
|
69
|
+
},
|
|
53
70
|
options
|
|
54
71
|
);
|
|
55
72
|
};
|
|
@@ -63,7 +80,10 @@ var useAdminPutUser = (options) => {
|
|
|
63
80
|
};
|
|
64
81
|
var adminDeleteUser = (userId, options) => {
|
|
65
82
|
return customInstance(
|
|
66
|
-
{
|
|
83
|
+
{
|
|
84
|
+
url: `/admin/user/${userId}`,
|
|
85
|
+
method: "delete"
|
|
86
|
+
},
|
|
67
87
|
options
|
|
68
88
|
);
|
|
69
89
|
};
|
|
@@ -100,7 +120,11 @@ var useAdminPatchUser = (options) => {
|
|
|
100
120
|
};
|
|
101
121
|
var adminGetJobManifests = (options, signal) => {
|
|
102
122
|
return customInstance(
|
|
103
|
-
{
|
|
123
|
+
{
|
|
124
|
+
url: `/admin/job-manifest`,
|
|
125
|
+
method: "get",
|
|
126
|
+
signal
|
|
127
|
+
},
|
|
104
128
|
options
|
|
105
129
|
);
|
|
106
130
|
};
|