@squonk/data-manager-client 4.3.0 → 5.0.0-5-0.2173777171
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 +55 -10
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +58 -1
- package/accounting/accounting.d.ts +58 -1
- package/accounting/accounting.js +46 -1
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +15 -15
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +2 -0
- package/admin/admin.d.ts +2 -0
- package/admin/admin.js +1 -1
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +5 -5
- package/application/application.cjs.map +1 -1
- package/application/application.js +1 -1
- package/application/application.js.map +1 -1
- package/{chunk-OYRETEBZ.js → chunk-76ADQBHZ.js} +3 -3
- package/chunk-76ADQBHZ.js.map +1 -0
- package/{chunk-ZLY5XEOQ.cjs → chunk-KHB5TJT7.cjs} +3 -3
- package/chunk-KHB5TJT7.cjs.map +1 -0
- package/chunk-RB2KVIEK.cjs.map +1 -1
- package/configuration/configuration.cjs +5 -5
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +1 -1
- package/configuration/configuration.d.ts +1 -1
- package/configuration/configuration.js +1 -1
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +14 -14
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.js +1 -1
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +3 -3
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.js +1 -1
- package/digest/digest.js.map +1 -1
- package/file-and-path/file-and-path.cjs +139 -17
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +162 -2
- package/file-and-path/file-and-path.d.ts +162 -2
- package/file-and-path/file-and-path.js +123 -1
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs +4 -2
- package/index.cjs.map +1 -1
- package/index.d.cts +53 -37
- package/index.d.ts +53 -37
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/instance/instance.cjs +10 -10
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.js +1 -1
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +3 -3
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.js +1 -1
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +124 -8
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +159 -3
- package/job/job.d.ts +159 -3
- package/job/job.js +119 -3
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +7 -7
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.js +1 -1
- package/metadata/metadata.js.map +1 -1
- package/package.json +1 -1
- package/project/project.cjs +15 -137
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +3 -163
- package/project/project.d.ts +3 -163
- package/project/project.js +1 -123
- package/project/project.js.map +1 -1
- package/src/{data-manager-api.schemas.ts → API_TARGET_NAME.schemas.ts} +52 -43
- package/src/accounting/accounting.ts +244 -2
- package/src/admin/admin.ts +4 -2
- package/src/application/application.ts +2 -2
- package/src/configuration/configuration.ts +5 -9
- package/src/dataset/dataset.ts +2 -2
- package/src/digest/digest.ts +2 -2
- package/src/file-and-path/file-and-path.ts +602 -2
- package/src/index.ts +2 -2
- package/src/instance/instance.ts +2 -2
- package/src/inventory/inventory.ts +2 -2
- package/src/job/job.ts +599 -3
- package/src/metadata/metadata.ts +2 -2
- package/src/options-mutator.ts +2 -2
- package/src/project/project.ts +5 -604
- package/src/task/task.ts +2 -2
- package/src/type/type.ts +2 -2
- package/src/user/user.ts +2 -2
- package/src/workflow/workflow.ts +5 -3
- package/task/task.cjs +6 -6
- package/task/task.cjs.map +1 -1
- package/task/task.js +1 -1
- package/task/task.js.map +1 -1
- package/type/type.cjs +3 -3
- package/type/type.cjs.map +1 -1
- package/type/type.js +1 -1
- package/type/type.js.map +1 -1
- package/user/user.cjs +10 -10
- package/user/user.cjs.map +1 -1
- package/user/user.js +1 -1
- package/user/user.js.map +1 -1
- package/workflow/workflow.cjs +20 -20
- package/workflow/workflow.cjs.map +1 -1
- package/workflow/workflow.d.cts +3 -1
- package/workflow/workflow.d.ts +3 -1
- package/workflow/workflow.js +1 -1
- package/workflow/workflow.js.map +1 -1
- package/chunk-OYRETEBZ.js.map +0 -1
- package/chunk-ZLY5XEOQ.cjs.map +0 -1
- package/exchange-rate/exchange-rate.cjs +0 -255
- package/exchange-rate/exchange-rate.cjs.map +0 -1
- package/exchange-rate/exchange-rate.d.cts +0 -319
- package/exchange-rate/exchange-rate.d.ts +0 -319
- package/exchange-rate/exchange-rate.js +0 -255
- package/exchange-rate/exchange-rate.js.map +0 -1
- package/exchange-rate/package.json +0 -7
- package/src/exchange-rate/exchange-rate.ts +0 -1276
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.
|
|
8
8
|
|
|
9
|
-
* OpenAPI spec version:
|
|
9
|
+
* OpenAPI spec version: 5.0
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -28,7 +28,7 @@ import type {
|
|
|
28
28
|
AccountServerGetRegistrationResponse,
|
|
29
29
|
DmError,
|
|
30
30
|
VersionGetResponse,
|
|
31
|
-
} from "../
|
|
31
|
+
} from "../API_TARGET_NAME.schemas";
|
|
32
32
|
|
|
33
33
|
import { customInstance } from ".././custom-instance";
|
|
34
34
|
import type { ErrorType } from ".././custom-instance";
|
|
@@ -912,3 +912,245 @@ export function useGetWorkflowEngineVersionSuspense<
|
|
|
912
912
|
|
|
913
913
|
return query;
|
|
914
914
|
}
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* @summary Gets the Data Manager Job Definition Schema version that's running behind the API
|
|
918
|
+
*/
|
|
919
|
+
export const getJobDefinitionSchemaVersion = (
|
|
920
|
+
options?: SecondParameter<typeof customInstance>,
|
|
921
|
+
signal?: AbortSignal,
|
|
922
|
+
) => {
|
|
923
|
+
return customInstance<VersionGetResponse>(
|
|
924
|
+
{ url: `/job-definition-schema/version`, method: "GET", signal },
|
|
925
|
+
options,
|
|
926
|
+
);
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
export const getGetJobDefinitionSchemaVersionQueryKey = () => {
|
|
930
|
+
return [`/job-definition-schema/version`] as const;
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
export const useGetJobDefinitionSchemaVersionQueryOptions = <
|
|
934
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
935
|
+
TError = ErrorType<void | DmError>,
|
|
936
|
+
>(options?: {
|
|
937
|
+
query?: Partial<
|
|
938
|
+
UseQueryOptions<Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>, TError, TData>
|
|
939
|
+
>;
|
|
940
|
+
request?: SecondParameter<typeof customInstance>;
|
|
941
|
+
}) => {
|
|
942
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
943
|
+
|
|
944
|
+
const queryKey = queryOptions?.queryKey ?? getGetJobDefinitionSchemaVersionQueryKey();
|
|
945
|
+
|
|
946
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>> = ({
|
|
947
|
+
signal,
|
|
948
|
+
}) => getJobDefinitionSchemaVersion(requestOptions, signal);
|
|
949
|
+
|
|
950
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
951
|
+
|
|
952
|
+
return customOptions as UseQueryOptions<
|
|
953
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
954
|
+
TError,
|
|
955
|
+
TData
|
|
956
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
957
|
+
};
|
|
958
|
+
|
|
959
|
+
export type GetJobDefinitionSchemaVersionQueryResult = NonNullable<
|
|
960
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>
|
|
961
|
+
>;
|
|
962
|
+
export type GetJobDefinitionSchemaVersionQueryError = ErrorType<void | DmError>;
|
|
963
|
+
|
|
964
|
+
export function useGetJobDefinitionSchemaVersion<
|
|
965
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
966
|
+
TError = ErrorType<void | DmError>,
|
|
967
|
+
>(
|
|
968
|
+
options: {
|
|
969
|
+
query: Partial<
|
|
970
|
+
UseQueryOptions<Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>, TError, TData>
|
|
971
|
+
> &
|
|
972
|
+
Pick<
|
|
973
|
+
DefinedInitialDataOptions<
|
|
974
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
975
|
+
TError,
|
|
976
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>
|
|
977
|
+
>,
|
|
978
|
+
"initialData"
|
|
979
|
+
>;
|
|
980
|
+
request?: SecondParameter<typeof customInstance>;
|
|
981
|
+
},
|
|
982
|
+
queryClient?: QueryClient,
|
|
983
|
+
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
984
|
+
export function useGetJobDefinitionSchemaVersion<
|
|
985
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
986
|
+
TError = ErrorType<void | DmError>,
|
|
987
|
+
>(
|
|
988
|
+
options?: {
|
|
989
|
+
query?: Partial<
|
|
990
|
+
UseQueryOptions<Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>, TError, TData>
|
|
991
|
+
> &
|
|
992
|
+
Pick<
|
|
993
|
+
UndefinedInitialDataOptions<
|
|
994
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
995
|
+
TError,
|
|
996
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>
|
|
997
|
+
>,
|
|
998
|
+
"initialData"
|
|
999
|
+
>;
|
|
1000
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1001
|
+
},
|
|
1002
|
+
queryClient?: QueryClient,
|
|
1003
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1004
|
+
export function useGetJobDefinitionSchemaVersion<
|
|
1005
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1006
|
+
TError = ErrorType<void | DmError>,
|
|
1007
|
+
>(
|
|
1008
|
+
options?: {
|
|
1009
|
+
query?: Partial<
|
|
1010
|
+
UseQueryOptions<Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>, TError, TData>
|
|
1011
|
+
>;
|
|
1012
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1013
|
+
},
|
|
1014
|
+
queryClient?: QueryClient,
|
|
1015
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1016
|
+
/**
|
|
1017
|
+
* @summary Gets the Data Manager Job Definition Schema version that's running behind the API
|
|
1018
|
+
*/
|
|
1019
|
+
|
|
1020
|
+
export function useGetJobDefinitionSchemaVersion<
|
|
1021
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1022
|
+
TError = ErrorType<void | DmError>,
|
|
1023
|
+
>(
|
|
1024
|
+
options?: {
|
|
1025
|
+
query?: Partial<
|
|
1026
|
+
UseQueryOptions<Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>, TError, TData>
|
|
1027
|
+
>;
|
|
1028
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1029
|
+
},
|
|
1030
|
+
queryClient?: QueryClient,
|
|
1031
|
+
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
1032
|
+
const queryOptions = useGetJobDefinitionSchemaVersionQueryOptions(options);
|
|
1033
|
+
|
|
1034
|
+
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {
|
|
1035
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
query.queryKey = queryOptions.queryKey;
|
|
1039
|
+
|
|
1040
|
+
return query;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
export const useGetJobDefinitionSchemaVersionSuspenseQueryOptions = <
|
|
1044
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1045
|
+
TError = ErrorType<void | DmError>,
|
|
1046
|
+
>(options?: {
|
|
1047
|
+
query?: Partial<
|
|
1048
|
+
UseSuspenseQueryOptions<
|
|
1049
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1050
|
+
TError,
|
|
1051
|
+
TData
|
|
1052
|
+
>
|
|
1053
|
+
>;
|
|
1054
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1055
|
+
}) => {
|
|
1056
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
1057
|
+
|
|
1058
|
+
const queryKey = queryOptions?.queryKey ?? getGetJobDefinitionSchemaVersionQueryKey();
|
|
1059
|
+
|
|
1060
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>> = ({
|
|
1061
|
+
signal,
|
|
1062
|
+
}) => getJobDefinitionSchemaVersion(requestOptions, signal);
|
|
1063
|
+
|
|
1064
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
1065
|
+
|
|
1066
|
+
return customOptions as UseSuspenseQueryOptions<
|
|
1067
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1068
|
+
TError,
|
|
1069
|
+
TData
|
|
1070
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1071
|
+
};
|
|
1072
|
+
|
|
1073
|
+
export type GetJobDefinitionSchemaVersionSuspenseQueryResult = NonNullable<
|
|
1074
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>
|
|
1075
|
+
>;
|
|
1076
|
+
export type GetJobDefinitionSchemaVersionSuspenseQueryError = ErrorType<void | DmError>;
|
|
1077
|
+
|
|
1078
|
+
export function useGetJobDefinitionSchemaVersionSuspense<
|
|
1079
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1080
|
+
TError = ErrorType<void | DmError>,
|
|
1081
|
+
>(
|
|
1082
|
+
options: {
|
|
1083
|
+
query: Partial<
|
|
1084
|
+
UseSuspenseQueryOptions<
|
|
1085
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1086
|
+
TError,
|
|
1087
|
+
TData
|
|
1088
|
+
>
|
|
1089
|
+
>;
|
|
1090
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1091
|
+
},
|
|
1092
|
+
queryClient?: QueryClient,
|
|
1093
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1094
|
+
export function useGetJobDefinitionSchemaVersionSuspense<
|
|
1095
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1096
|
+
TError = ErrorType<void | DmError>,
|
|
1097
|
+
>(
|
|
1098
|
+
options?: {
|
|
1099
|
+
query?: Partial<
|
|
1100
|
+
UseSuspenseQueryOptions<
|
|
1101
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1102
|
+
TError,
|
|
1103
|
+
TData
|
|
1104
|
+
>
|
|
1105
|
+
>;
|
|
1106
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1107
|
+
},
|
|
1108
|
+
queryClient?: QueryClient,
|
|
1109
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1110
|
+
export function useGetJobDefinitionSchemaVersionSuspense<
|
|
1111
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1112
|
+
TError = ErrorType<void | DmError>,
|
|
1113
|
+
>(
|
|
1114
|
+
options?: {
|
|
1115
|
+
query?: Partial<
|
|
1116
|
+
UseSuspenseQueryOptions<
|
|
1117
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1118
|
+
TError,
|
|
1119
|
+
TData
|
|
1120
|
+
>
|
|
1121
|
+
>;
|
|
1122
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1123
|
+
},
|
|
1124
|
+
queryClient?: QueryClient,
|
|
1125
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1126
|
+
/**
|
|
1127
|
+
* @summary Gets the Data Manager Job Definition Schema version that's running behind the API
|
|
1128
|
+
*/
|
|
1129
|
+
|
|
1130
|
+
export function useGetJobDefinitionSchemaVersionSuspense<
|
|
1131
|
+
TData = Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1132
|
+
TError = ErrorType<void | DmError>,
|
|
1133
|
+
>(
|
|
1134
|
+
options?: {
|
|
1135
|
+
query?: Partial<
|
|
1136
|
+
UseSuspenseQueryOptions<
|
|
1137
|
+
Awaited<ReturnType<typeof getJobDefinitionSchemaVersion>>,
|
|
1138
|
+
TError,
|
|
1139
|
+
TData
|
|
1140
|
+
>
|
|
1141
|
+
>;
|
|
1142
|
+
request?: SecondParameter<typeof customInstance>;
|
|
1143
|
+
},
|
|
1144
|
+
queryClient?: QueryClient,
|
|
1145
|
+
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
|
1146
|
+
const queryOptions = useGetJobDefinitionSchemaVersionSuspenseQueryOptions(options);
|
|
1147
|
+
|
|
1148
|
+
const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<
|
|
1149
|
+
TData,
|
|
1150
|
+
TError
|
|
1151
|
+
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
1152
|
+
|
|
1153
|
+
query.queryKey = queryOptions.queryKey;
|
|
1154
|
+
|
|
1155
|
+
return query;
|
|
1156
|
+
}
|
package/src/admin/admin.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.
|
|
8
8
|
|
|
9
|
-
* OpenAPI spec version:
|
|
9
|
+
* OpenAPI spec version: 5.0
|
|
10
10
|
*/
|
|
11
11
|
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -38,7 +38,7 @@ import type {
|
|
|
38
38
|
ServiceErrorsGetResponse,
|
|
39
39
|
UserAccountDetail,
|
|
40
40
|
UserPatchBodyBody,
|
|
41
|
-
} from "../
|
|
41
|
+
} from "../API_TARGET_NAME.schemas";
|
|
42
42
|
|
|
43
43
|
import { customInstance } from ".././custom-instance";
|
|
44
44
|
import type { ErrorType } from ".././custom-instance";
|
|
@@ -1159,6 +1159,8 @@ export function useAdminGetJobManifestsSuspense<
|
|
|
1159
1159
|
/**
|
|
1160
1160
|
* 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.
|
|
1161
1161
|
|
|
1162
|
+
A URL to a manifest is typically its RAW location, something that (for GitHub) begins with `https://raw.githubusercontent.com/` followed by your repository (`InformaticsMatters/virtual-screening`) and then the reference to a **Manifest** file, like `/main/data-manager/manifest-im-virtual-screening.yaml`. For public GitHub repositories you are unlikely to need to provide a `header` or `params`.
|
|
1163
|
+
|
|
1162
1164
|
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/`.
|
|
1163
1165
|
|
|
1164
1166
|
You will need `admin` rights to use this endpoint
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.
|
|
8
8
|
|
|
9
|
-
* OpenAPI spec version:
|
|
9
|
+
* OpenAPI spec version: 5.0
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -27,7 +27,7 @@ import type {
|
|
|
27
27
|
ApplicationGetResponse,
|
|
28
28
|
ApplicationsGetResponse,
|
|
29
29
|
DmError,
|
|
30
|
-
} from "../
|
|
30
|
+
} from "../API_TARGET_NAME.schemas";
|
|
31
31
|
|
|
32
32
|
import { customInstance } from ".././custom-instance";
|
|
33
33
|
import type { ErrorType } from ".././custom-instance";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.
|
|
8
8
|
|
|
9
|
-
* OpenAPI spec version:
|
|
9
|
+
* OpenAPI spec version: 5.0
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -23,11 +23,7 @@ import type {
|
|
|
23
23
|
UseSuspenseQueryResult,
|
|
24
24
|
} from "@tanstack/react-query";
|
|
25
25
|
|
|
26
|
-
import type {
|
|
27
|
-
DmError,
|
|
28
|
-
InputHandlerGetResponse,
|
|
29
|
-
ModeGetResponse,
|
|
30
|
-
} from "../data-manager-api.schemas";
|
|
26
|
+
import type { DmError, InputHandlerGetResponse, ModeGetResponse } from "../API_TARGET_NAME.schemas";
|
|
31
27
|
|
|
32
28
|
import { customInstance } from ".././custom-instance";
|
|
33
29
|
import type { ErrorType } from ".././custom-instance";
|
|
@@ -36,7 +32,7 @@ import { queryMutator } from ".././options-mutator";
|
|
|
36
32
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
37
33
|
|
|
38
34
|
/**
|
|
39
|
-
* @summary Gets the Data Manager mode
|
|
35
|
+
* @summary Gets the Data Manager API mode
|
|
40
36
|
*/
|
|
41
37
|
export const getMode = (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => {
|
|
42
38
|
return customInstance<ModeGetResponse>({ url: `/mode`, method: "GET", signal }, options);
|
|
@@ -117,7 +113,7 @@ export function useGetMode<
|
|
|
117
113
|
queryClient?: QueryClient,
|
|
118
114
|
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
119
115
|
/**
|
|
120
|
-
* @summary Gets the Data Manager mode
|
|
116
|
+
* @summary Gets the Data Manager API mode
|
|
121
117
|
*/
|
|
122
118
|
|
|
123
119
|
export function useGetMode<
|
|
@@ -198,7 +194,7 @@ export function useGetModeSuspense<
|
|
|
198
194
|
queryClient?: QueryClient,
|
|
199
195
|
): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
|
200
196
|
/**
|
|
201
|
-
* @summary Gets the Data Manager mode
|
|
197
|
+
* @summary Gets the Data Manager API mode
|
|
202
198
|
*/
|
|
203
199
|
|
|
204
200
|
export function useGetModeSuspense<
|
package/src/dataset/dataset.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.
|
|
8
8
|
|
|
9
|
-
* OpenAPI spec version:
|
|
9
|
+
* OpenAPI spec version: 5.0
|
|
10
10
|
*/
|
|
11
11
|
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -38,7 +38,7 @@ import type {
|
|
|
38
38
|
GetDatasetsParams,
|
|
39
39
|
GetVersionsParams,
|
|
40
40
|
TaskIdentity,
|
|
41
|
-
} from "../
|
|
41
|
+
} from "../API_TARGET_NAME.schemas";
|
|
42
42
|
|
|
43
43
|
import { customInstance } from ".././custom-instance";
|
|
44
44
|
import type { ErrorType } from ".././custom-instance";
|
package/src/digest/digest.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.
|
|
8
8
|
|
|
9
|
-
* OpenAPI spec version:
|
|
9
|
+
* OpenAPI spec version: 5.0
|
|
10
10
|
*/
|
|
11
11
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
12
12
|
import type {
|
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
UseSuspenseQueryResult,
|
|
24
24
|
} from "@tanstack/react-query";
|
|
25
25
|
|
|
26
|
-
import type { DatasetDigestGetResponse, DmError } from "../
|
|
26
|
+
import type { DatasetDigestGetResponse, DmError } from "../API_TARGET_NAME.schemas";
|
|
27
27
|
|
|
28
28
|
import { customInstance } from ".././custom-instance";
|
|
29
29
|
import type { ErrorType } from ".././custom-instance";
|