@squonk/data-manager-client 1.2.3-rc.2 → 1.2.4-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accounting/accounting.cjs +31 -13
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +77 -0
- package/accounting/accounting.d.ts +10 -1
- package/accounting/accounting.js +29 -11
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +67 -27
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +324 -0
- package/admin/admin.d.ts +55 -22
- package/admin/admin.js +57 -17
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +23 -13
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +57 -0
- package/application/application.d.ts +7 -1
- package/application/application.js +22 -12
- package/application/application.js.map +1 -1
- package/{chunk-UZTHSGDT.cjs → chunk-J22A7LHX.cjs} +1 -1
- package/chunk-J22A7LHX.cjs.map +1 -0
- package/{chunk-3RNIDX7T.js → chunk-UKA7G3OB.js} +1 -1
- package/{chunk-3RNIDX7T.js.map → chunk-UKA7G3OB.js.map} +1 -1
- package/configuration/configuration.cjs +13 -7
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +29 -0
- package/configuration/configuration.d.ts +4 -1
- package/configuration/configuration.js +13 -7
- package/configuration/configuration.js.map +1 -1
- package/{custom-instance-50c9dd5d.d.ts → custom-instance-a2110e78.d.ts} +825 -825
- package/dataset/dataset.cjs +71 -72
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +315 -0
- package/dataset/dataset.d.ts +46 -16
- package/dataset/dataset.js +62 -63
- package/dataset/dataset.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +43 -32
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +180 -0
- package/exchange-rate/exchange-rate.d.ts +25 -7
- package/exchange-rate/exchange-rate.js +38 -27
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file/file.cjs +38 -22
- package/file/file.cjs.map +1 -1
- package/file/file.d.cts +154 -0
- package/file/file.d.ts +25 -10
- package/file/file.js +34 -18
- package/file/file.js.map +1 -1
- package/index.cjs +10 -10
- package/index.cjs.map +1 -1
- package/index.d.cts +2 -0
- package/index.d.ts +1 -1
- package/index.js +9 -9
- package/index.js.map +1 -1
- package/instance/instance.cjs +47 -37
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +215 -0
- package/instance/instance.d.ts +33 -12
- package/instance/instance.js +41 -31
- package/instance/instance.js.map +1 -1
- package/job/job.cjs +36 -19
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +85 -0
- package/job/job.d.ts +10 -1
- package/job/job.js +34 -17
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +23 -26
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +132 -0
- package/metadata/metadata.d.ts +19 -7
- package/metadata/metadata.js +20 -23
- package/metadata/metadata.js.map +1 -1
- package/package.json +12 -12
- package/project/project.cjs +70 -48
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +377 -0
- package/project/project.d.ts +61 -25
- package/project/project.js +59 -37
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +179 -194
- package/src/admin/admin.ts +590 -735
- package/src/application/application.ts +125 -141
- package/src/configuration/configuration.ts +72 -60
- package/src/data-manager-api.schemas.ts +940 -941
- package/src/dataset/dataset.ts +591 -770
- package/src/exchange-rate/exchange-rate.ts +362 -478
- package/src/file/file.ts +292 -357
- package/src/instance/instance.ts +427 -533
- package/src/job/job.ts +187 -198
- package/src/metadata/metadata.ts +247 -339
- package/src/project/project.ts +669 -860
- package/src/task/task.ts +181 -202
- package/src/type/type.ts +72 -68
- package/src/user/user.ts +248 -286
- package/task/task.cjs +31 -15
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +103 -0
- package/task/task.d.ts +10 -1
- package/task/task.js +29 -13
- package/task/task.js.map +1 -1
- package/type/type.cjs +13 -7
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +31 -0
- package/type/type.d.ts +4 -1
- package/type/type.js +13 -7
- package/type/type.js.map +1 -1
- package/user/user.cjs +39 -28
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +104 -0
- package/user/user.d.ts +16 -4
- package/user/user.js +36 -25
- package/user/user.js.map +1 -1
- package/chunk-UZTHSGDT.cjs.map +0 -1
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import { ae as DatasetPutBodyBody, bX as customInstance, bK as DatasetPutPostResponse, bY as ErrorType, bT as DmError, ah as DatasetPostBodyBody, q as GetDatasetsParams, bD as DatasetsGetResponse, p as GetVersionsParams, b0 as DatasetDetail, o as DeleteDatasetParams, at as TaskIdentity, bJ as DatasetDigestGetResponse, bH as DatasetSchemaGetResponse } from '../custom-instance-a2110e78.js';
|
|
4
|
+
import 'axios';
|
|
5
|
+
|
|
6
|
+
type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
|
7
|
+
/**
|
|
8
|
+
* Using an unmanaged file in a Project as a source a Dataset (or new Dataset Version) is created.
|
|
9
|
+
|
|
10
|
+
The Dataset is assigned a unique identity if it has no **Parent**. If a Parent Dataset is named during the upload the uploaded file inherits the Parent's identity and is issued with a new unique Version number within the Dataset.
|
|
11
|
+
|
|
12
|
+
Behaves like the corresponding **POST** method except the file is expected to exist on a Project path.
|
|
13
|
+
|
|
14
|
+
* @summary Create a Dataset from a file in a Project
|
|
15
|
+
*/
|
|
16
|
+
declare const createDatasetFromFile: (datasetPutBodyBody: DatasetPutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<DatasetPutPostResponse>;
|
|
17
|
+
declare const getCreateDatasetFromFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
18
|
+
mutation?: UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
19
|
+
data: DatasetPutBodyBody;
|
|
20
|
+
}, TContext> | undefined;
|
|
21
|
+
request?: SecondParameter<typeof customInstance>;
|
|
22
|
+
} | undefined) => UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
23
|
+
data: DatasetPutBodyBody;
|
|
24
|
+
}, TContext>;
|
|
25
|
+
type CreateDatasetFromFileMutationResult = NonNullable<Awaited<ReturnType<typeof createDatasetFromFile>>>;
|
|
26
|
+
type CreateDatasetFromFileMutationBody = DatasetPutBodyBody;
|
|
27
|
+
type CreateDatasetFromFileMutationError = ErrorType<void | DmError>;
|
|
28
|
+
/**
|
|
29
|
+
* @summary Create a Dataset from a file in a Project
|
|
30
|
+
*/
|
|
31
|
+
declare const useCreateDatasetFromFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
32
|
+
mutation?: UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
33
|
+
data: DatasetPutBodyBody;
|
|
34
|
+
}, TContext> | undefined;
|
|
35
|
+
request?: SecondParameter<typeof customInstance>;
|
|
36
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<DatasetPutPostResponse, TError, {
|
|
37
|
+
data: DatasetPutBodyBody;
|
|
38
|
+
}, TContext>;
|
|
39
|
+
/**
|
|
40
|
+
* Uploads a dataset.
|
|
41
|
+
|
|
42
|
+
Dataset file-naming is strictly limited to a fixed set of extensions based on the Dataset **Type**. You can obtain the supported types (and their extensions) via the `/type` endpoint. Filenames that do not comply with the supported filename extensions will be rejected.
|
|
43
|
+
|
|
44
|
+
Datasets can be uploaded in an uncompressed form, or uploaded pre-compressed using the `.gz` extension.
|
|
45
|
+
|
|
46
|
+
The Dataset is assigned a unique identity if it has no **Parent**. If a Parent dataset is named during the upload the uploaded file inherits the Parent's identity and is issued with a new unique version number within the Dataset.
|
|
47
|
+
|
|
48
|
+
Datasets undergo some processing in an asynchronous **Task** after control returns to you. The unique identity of the assigned task (the `task id`) is presented to you in this endpoint's response. Before you can use an uploaded dataset, and before the dataset can be added to any pre-assigned projects, you must wait until the task is complete by making regular calls to the `/task/{task-id}` endpoint. A Dataset upload is complete when the corresponding `task.done` is **true** along with a `task.exit_code` of **0**. If the Dataset upload fails `task.done` will be **true** but the `task.exit_code` will be non-zero.
|
|
49
|
+
|
|
50
|
+
* @summary Upload an external file as a Dataset
|
|
51
|
+
*/
|
|
52
|
+
declare const uploadDataset: (datasetPostBodyBody: DatasetPostBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<DatasetPutPostResponse>;
|
|
53
|
+
declare const getUploadDatasetMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
54
|
+
mutation?: UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
55
|
+
data: DatasetPostBodyBody;
|
|
56
|
+
}, TContext> | undefined;
|
|
57
|
+
request?: SecondParameter<typeof customInstance>;
|
|
58
|
+
} | undefined) => UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
59
|
+
data: DatasetPostBodyBody;
|
|
60
|
+
}, TContext>;
|
|
61
|
+
type UploadDatasetMutationResult = NonNullable<Awaited<ReturnType<typeof uploadDataset>>>;
|
|
62
|
+
type UploadDatasetMutationBody = DatasetPostBodyBody;
|
|
63
|
+
type UploadDatasetMutationError = ErrorType<void | DmError>;
|
|
64
|
+
/**
|
|
65
|
+
* @summary Upload an external file as a Dataset
|
|
66
|
+
*/
|
|
67
|
+
declare const useUploadDataset: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
68
|
+
mutation?: UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
69
|
+
data: DatasetPostBodyBody;
|
|
70
|
+
}, TContext> | undefined;
|
|
71
|
+
request?: SecondParameter<typeof customInstance>;
|
|
72
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<DatasetPutPostResponse, TError, {
|
|
73
|
+
data: DatasetPostBodyBody;
|
|
74
|
+
}, TContext>;
|
|
75
|
+
/**
|
|
76
|
+
* Returns datasets that you have access to, whether attached to a project or not.
|
|
77
|
+
|
|
78
|
+
You will not see Datasets while their upload is still in progress.
|
|
79
|
+
|
|
80
|
+
Datasets can be filtered by the `owner username`, `mime_type`, a list of `owners`, a list of `editors`, `Labels` or `Label/Value` pairs.
|
|
81
|
+
|
|
82
|
+
Note that if `editors` are combined with `owner username`, then the datasets will be filtered by owner username first followed by editors (so it's an AND). If `editors` are combined with `owners`, then the result will be datasets filtered by a combination of owners OR editors.
|
|
83
|
+
|
|
84
|
+
* @summary Get Datasets that are available to you
|
|
85
|
+
*/
|
|
86
|
+
declare const getDatasets: (params?: GetDatasetsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetsGetResponse>;
|
|
87
|
+
declare const getGetDatasetsQueryKey: (params?: GetDatasetsParams) => readonly ["data-manager-api", "/dataset", ...GetDatasetsParams[]];
|
|
88
|
+
declare const getGetDatasetsQueryOptions: <TData = DatasetsGetResponse, TError = ErrorType<void | DmError>>(params?: GetDatasetsParams, options?: {
|
|
89
|
+
query?: UseQueryOptions<DatasetsGetResponse, TError, TData, QueryKey> | undefined;
|
|
90
|
+
request?: SecondParameter<typeof customInstance>;
|
|
91
|
+
} | undefined) => UseQueryOptions<DatasetsGetResponse, TError, TData, QueryKey> & {
|
|
92
|
+
queryKey: QueryKey;
|
|
93
|
+
};
|
|
94
|
+
type GetDatasetsQueryResult = NonNullable<Awaited<ReturnType<typeof getDatasets>>>;
|
|
95
|
+
type GetDatasetsQueryError = ErrorType<void | DmError>;
|
|
96
|
+
/**
|
|
97
|
+
* @summary Get Datasets that are available to you
|
|
98
|
+
*/
|
|
99
|
+
declare const useGetDatasets: <TData = DatasetsGetResponse, TError = ErrorType<void | DmError>>(params?: GetDatasetsParams, options?: {
|
|
100
|
+
query?: UseQueryOptions<DatasetsGetResponse, TError, TData, QueryKey> | undefined;
|
|
101
|
+
request?: SecondParameter<typeof customInstance>;
|
|
102
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
103
|
+
queryKey: QueryKey;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Returns a list of Dataset Versions.
|
|
107
|
+
|
|
108
|
+
You will not see Datasets while their upload is still in progress.
|
|
109
|
+
|
|
110
|
+
* @summary Gets all the Versions of a specific Dataset
|
|
111
|
+
*/
|
|
112
|
+
declare const getVersions: (datasetId: string, params?: GetVersionsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetDetail>;
|
|
113
|
+
declare const getGetVersionsQueryKey: (datasetId: string, params?: GetVersionsParams) => readonly ["data-manager-api", `/dataset/${string}/versions`, ...GetVersionsParams[]];
|
|
114
|
+
declare const getGetVersionsQueryOptions: <TData = DatasetDetail, TError = ErrorType<void | DmError>>(datasetId: string, params?: GetVersionsParams, options?: {
|
|
115
|
+
query?: UseQueryOptions<DatasetDetail, TError, TData, QueryKey> | undefined;
|
|
116
|
+
request?: SecondParameter<typeof customInstance>;
|
|
117
|
+
} | undefined) => UseQueryOptions<DatasetDetail, TError, TData, QueryKey> & {
|
|
118
|
+
queryKey: QueryKey;
|
|
119
|
+
};
|
|
120
|
+
type GetVersionsQueryResult = NonNullable<Awaited<ReturnType<typeof getVersions>>>;
|
|
121
|
+
type GetVersionsQueryError = ErrorType<void | DmError>;
|
|
122
|
+
/**
|
|
123
|
+
* @summary Gets all the Versions of a specific Dataset
|
|
124
|
+
*/
|
|
125
|
+
declare const useGetVersions: <TData = DatasetDetail, TError = ErrorType<void | DmError>>(datasetId: string, params?: GetVersionsParams, options?: {
|
|
126
|
+
query?: UseQueryOptions<DatasetDetail, TError, TData, QueryKey> | undefined;
|
|
127
|
+
request?: SecondParameter<typeof customInstance>;
|
|
128
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
129
|
+
queryKey: QueryKey;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Given the Dataset `id` and `version` the Dataset will be removed. The API does not prevent you removing a Dataset that's been used in a **Project**. When removed using this endpoint the Dataset is automatically detached from any and all Projects that it was attached to and any corresponding Project Files relating to the Dataset are also removed.
|
|
133
|
+
|
|
134
|
+
You must be an `editor` or `owner` of the Dataset.
|
|
135
|
+
|
|
136
|
+
You cannot delete a Dataset until its upload is complete.
|
|
137
|
+
|
|
138
|
+
* @summary Delete a Dataset
|
|
139
|
+
*/
|
|
140
|
+
declare const deleteDataset: (datasetId: string, datasetVersion: number, params?: DeleteDatasetParams, options?: SecondParameter<typeof customInstance>) => Promise<TaskIdentity>;
|
|
141
|
+
declare const getDeleteDatasetMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
142
|
+
mutation?: UseMutationOptions<TaskIdentity, TError, {
|
|
143
|
+
datasetId: string;
|
|
144
|
+
datasetVersion: number;
|
|
145
|
+
params?: DeleteDatasetParams | undefined;
|
|
146
|
+
}, TContext> | undefined;
|
|
147
|
+
request?: SecondParameter<typeof customInstance>;
|
|
148
|
+
} | undefined) => UseMutationOptions<TaskIdentity, TError, {
|
|
149
|
+
datasetId: string;
|
|
150
|
+
datasetVersion: number;
|
|
151
|
+
params?: DeleteDatasetParams | undefined;
|
|
152
|
+
}, TContext>;
|
|
153
|
+
type DeleteDatasetMutationResult = NonNullable<Awaited<ReturnType<typeof deleteDataset>>>;
|
|
154
|
+
type DeleteDatasetMutationError = ErrorType<void | DmError>;
|
|
155
|
+
/**
|
|
156
|
+
* @summary Delete a Dataset
|
|
157
|
+
*/
|
|
158
|
+
declare const useDeleteDataset: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
159
|
+
mutation?: UseMutationOptions<TaskIdentity, TError, {
|
|
160
|
+
datasetId: string;
|
|
161
|
+
datasetVersion: number;
|
|
162
|
+
params?: DeleteDatasetParams | undefined;
|
|
163
|
+
}, TContext> | undefined;
|
|
164
|
+
request?: SecondParameter<typeof customInstance>;
|
|
165
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<TaskIdentity, TError, {
|
|
166
|
+
datasetId: string;
|
|
167
|
+
datasetVersion: number;
|
|
168
|
+
params?: DeleteDatasetParams | undefined;
|
|
169
|
+
}, TContext>;
|
|
170
|
+
/**
|
|
171
|
+
* Given a `dataset_id` the dataset will be returned if available.
|
|
172
|
+
|
|
173
|
+
You cannot get a Dataset until its upload is complete.
|
|
174
|
+
|
|
175
|
+
* @summary Download a Dataset
|
|
176
|
+
*/
|
|
177
|
+
declare const downloadDataset: (datasetId: string, datasetVersion: number, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
178
|
+
declare const getDownloadDatasetQueryKey: (datasetId: string, datasetVersion: number) => readonly ["data-manager-api", `/dataset/${string}/${number}`];
|
|
179
|
+
declare const getDownloadDatasetQueryOptions: <TData = void, TError = ErrorType<DmError>>(datasetId: string, datasetVersion: number, options?: {
|
|
180
|
+
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
181
|
+
request?: SecondParameter<typeof customInstance>;
|
|
182
|
+
} | undefined) => UseQueryOptions<void, TError, TData, QueryKey> & {
|
|
183
|
+
queryKey: QueryKey;
|
|
184
|
+
};
|
|
185
|
+
type DownloadDatasetQueryResult = NonNullable<Awaited<ReturnType<typeof downloadDataset>>>;
|
|
186
|
+
type DownloadDatasetQueryError = ErrorType<DmError>;
|
|
187
|
+
/**
|
|
188
|
+
* @summary Download a Dataset
|
|
189
|
+
*/
|
|
190
|
+
declare const useDownloadDataset: <TData = void, TError = ErrorType<DmError>>(datasetId: string, datasetVersion: number, options?: {
|
|
191
|
+
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
192
|
+
request?: SecondParameter<typeof customInstance>;
|
|
193
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
194
|
+
queryKey: QueryKey;
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* The user is removed from the Dataset's `editor` list. The user is removed from all versions of a dataset. You can remove yourself but an `owner` (creator) will always have access to the dataset.
|
|
198
|
+
|
|
199
|
+
You must be an `editor` or `owner` of the dataset.
|
|
200
|
+
|
|
201
|
+
You cannot modify Dataset editors until its upload is complete.
|
|
202
|
+
|
|
203
|
+
* @summary Remove a user's edit permission for a Dataset
|
|
204
|
+
*/
|
|
205
|
+
declare const removeEditorFromDataset: (datasetId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
206
|
+
declare const getRemoveEditorFromDatasetMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
207
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
208
|
+
datasetId: string;
|
|
209
|
+
userId: string;
|
|
210
|
+
}, TContext> | undefined;
|
|
211
|
+
request?: SecondParameter<typeof customInstance>;
|
|
212
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
213
|
+
datasetId: string;
|
|
214
|
+
userId: string;
|
|
215
|
+
}, TContext>;
|
|
216
|
+
type RemoveEditorFromDatasetMutationResult = NonNullable<Awaited<ReturnType<typeof removeEditorFromDataset>>>;
|
|
217
|
+
type RemoveEditorFromDatasetMutationError = ErrorType<DmError>;
|
|
218
|
+
/**
|
|
219
|
+
* @summary Remove a user's edit permission for a Dataset
|
|
220
|
+
*/
|
|
221
|
+
declare const useRemoveEditorFromDataset: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
222
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
223
|
+
datasetId: string;
|
|
224
|
+
userId: string;
|
|
225
|
+
}, TContext> | undefined;
|
|
226
|
+
request?: SecondParameter<typeof customInstance>;
|
|
227
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
228
|
+
datasetId: string;
|
|
229
|
+
userId: string;
|
|
230
|
+
}, TContext>;
|
|
231
|
+
/**
|
|
232
|
+
* The user is added to the dataset's `editor`` list. The dataset `owner` is automatically an editor and so does not need to be added as an `editor`.
|
|
233
|
+
|
|
234
|
+
You must be an `editor` or `owner` of the dataset.
|
|
235
|
+
|
|
236
|
+
You cannot modify Dataset editors until its upload is complete.
|
|
237
|
+
|
|
238
|
+
* @summary Give a user edit permission for a Dataset
|
|
239
|
+
*/
|
|
240
|
+
declare const addEditorToDataset: (datasetId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
241
|
+
declare const getAddEditorToDatasetMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
242
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
243
|
+
datasetId: string;
|
|
244
|
+
userId: string;
|
|
245
|
+
}, TContext> | undefined;
|
|
246
|
+
request?: SecondParameter<typeof customInstance>;
|
|
247
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
248
|
+
datasetId: string;
|
|
249
|
+
userId: string;
|
|
250
|
+
}, TContext>;
|
|
251
|
+
type AddEditorToDatasetMutationResult = NonNullable<Awaited<ReturnType<typeof addEditorToDataset>>>;
|
|
252
|
+
type AddEditorToDatasetMutationError = ErrorType<DmError>;
|
|
253
|
+
/**
|
|
254
|
+
* @summary Give a user edit permission for a Dataset
|
|
255
|
+
*/
|
|
256
|
+
declare const useAddEditorToDataset: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
257
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
258
|
+
datasetId: string;
|
|
259
|
+
userId: string;
|
|
260
|
+
}, TContext> | undefined;
|
|
261
|
+
request?: SecondParameter<typeof customInstance>;
|
|
262
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
263
|
+
datasetId: string;
|
|
264
|
+
userId: string;
|
|
265
|
+
}, TContext>;
|
|
266
|
+
/**
|
|
267
|
+
* Returns a dataset ID and version of a dataset that matches the provided SHA256 digest, a 64-character hex string.
|
|
268
|
+
|
|
269
|
+
* @summary Gets the first Dataset that matches the provided digest
|
|
270
|
+
*/
|
|
271
|
+
declare const getDatasetDigest: (datasetDigest: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetDigestGetResponse>;
|
|
272
|
+
declare const getGetDatasetDigestQueryKey: (datasetDigest: string) => readonly ["data-manager-api", `/dataset/digest/${string}`];
|
|
273
|
+
declare const getGetDatasetDigestQueryOptions: <TData = DatasetDigestGetResponse, TError = ErrorType<void | DmError>>(datasetDigest: string, options?: {
|
|
274
|
+
query?: UseQueryOptions<DatasetDigestGetResponse, TError, TData, QueryKey> | undefined;
|
|
275
|
+
request?: SecondParameter<typeof customInstance>;
|
|
276
|
+
} | undefined) => UseQueryOptions<DatasetDigestGetResponse, TError, TData, QueryKey> & {
|
|
277
|
+
queryKey: QueryKey;
|
|
278
|
+
};
|
|
279
|
+
type GetDatasetDigestQueryResult = NonNullable<Awaited<ReturnType<typeof getDatasetDigest>>>;
|
|
280
|
+
type GetDatasetDigestQueryError = ErrorType<void | DmError>;
|
|
281
|
+
/**
|
|
282
|
+
* @summary Gets the first Dataset that matches the provided digest
|
|
283
|
+
*/
|
|
284
|
+
declare const useGetDatasetDigest: <TData = DatasetDigestGetResponse, TError = ErrorType<void | DmError>>(datasetDigest: string, options?: {
|
|
285
|
+
query?: UseQueryOptions<DatasetDigestGetResponse, TError, TData, QueryKey> | undefined;
|
|
286
|
+
request?: SecondParameter<typeof customInstance>;
|
|
287
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
288
|
+
queryKey: QueryKey;
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Returns the property schema for a Dataset versions in JSON format (if available).
|
|
292
|
+
|
|
293
|
+
* @summary Gets the property schema for a specific Dataset
|
|
294
|
+
*/
|
|
295
|
+
declare const getSchema: (datasetId: string, datasetVersion: number, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetSchemaGetResponse>;
|
|
296
|
+
declare const getGetSchemaQueryKey: (datasetId: string, datasetVersion: number) => readonly ["data-manager-api", `/dataset/${string}/schema/${number}`];
|
|
297
|
+
declare const getGetSchemaQueryOptions: <TData = DatasetSchemaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
|
|
298
|
+
query?: UseQueryOptions<DatasetSchemaGetResponse, TError, TData, QueryKey> | undefined;
|
|
299
|
+
request?: SecondParameter<typeof customInstance>;
|
|
300
|
+
} | undefined) => UseQueryOptions<DatasetSchemaGetResponse, TError, TData, QueryKey> & {
|
|
301
|
+
queryKey: QueryKey;
|
|
302
|
+
};
|
|
303
|
+
type GetSchemaQueryResult = NonNullable<Awaited<ReturnType<typeof getSchema>>>;
|
|
304
|
+
type GetSchemaQueryError = ErrorType<void | DmError>;
|
|
305
|
+
/**
|
|
306
|
+
* @summary Gets the property schema for a specific Dataset
|
|
307
|
+
*/
|
|
308
|
+
declare const useGetSchema: <TData = DatasetSchemaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
|
|
309
|
+
query?: UseQueryOptions<DatasetSchemaGetResponse, TError, TData, QueryKey> | undefined;
|
|
310
|
+
request?: SecondParameter<typeof customInstance>;
|
|
311
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
312
|
+
queryKey: QueryKey;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
export { AddEditorToDatasetMutationError, AddEditorToDatasetMutationResult, CreateDatasetFromFileMutationBody, CreateDatasetFromFileMutationError, CreateDatasetFromFileMutationResult, DeleteDatasetMutationError, DeleteDatasetMutationResult, DownloadDatasetQueryError, DownloadDatasetQueryResult, GetDatasetDigestQueryError, GetDatasetDigestQueryResult, GetDatasetsQueryError, GetDatasetsQueryResult, GetSchemaQueryError, GetSchemaQueryResult, GetVersionsQueryError, GetVersionsQueryResult, RemoveEditorFromDatasetMutationError, RemoveEditorFromDatasetMutationResult, UploadDatasetMutationBody, UploadDatasetMutationError, UploadDatasetMutationResult, addEditorToDataset, createDatasetFromFile, deleteDataset, downloadDataset, getAddEditorToDatasetMutationOptions, getCreateDatasetFromFileMutationOptions, getDatasetDigest, getDatasets, getDeleteDatasetMutationOptions, getDownloadDatasetQueryKey, getDownloadDatasetQueryOptions, getGetDatasetDigestQueryKey, getGetDatasetDigestQueryOptions, getGetDatasetsQueryKey, getGetDatasetsQueryOptions, getGetSchemaQueryKey, getGetSchemaQueryOptions, getGetVersionsQueryKey, getGetVersionsQueryOptions, getRemoveEditorFromDatasetMutationOptions, getSchema, getUploadDatasetMutationOptions, getVersions, removeEditorFromDataset, uploadDataset, useAddEditorToDataset, useCreateDatasetFromFile, useDeleteDataset, useDownloadDataset, useGetDatasetDigest, useGetDatasets, useGetSchema, useGetVersions, useRemoveEditorFromDataset, useUploadDataset };
|
package/dataset/dataset.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ae as DatasetPutBodyBody, bX as customInstance, bK as DatasetPutPostResponse, bY as ErrorType, bT as DmError, ah as DatasetPostBodyBody, q as GetDatasetsParams, bD as DatasetsGetResponse, p as GetVersionsParams, b0 as DatasetDetail, o as DeleteDatasetParams, at as TaskIdentity, bJ as DatasetDigestGetResponse, bH as DatasetSchemaGetResponse } from '../custom-instance-50c9dd5d.js';
|
|
2
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
2
|
import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import { ae as DatasetPutBodyBody, bX as customInstance, bK as DatasetPutPostResponse, bY as ErrorType, bT as DmError, ah as DatasetPostBodyBody, q as GetDatasetsParams, bD as DatasetsGetResponse, p as GetVersionsParams, b0 as DatasetDetail, o as DeleteDatasetParams, at as TaskIdentity, bJ as DatasetDigestGetResponse, bH as DatasetSchemaGetResponse } from '../custom-instance-a2110e78.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
|
|
6
6
|
type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
|
|
@@ -25,6 +25,9 @@ declare const getCreateDatasetFromFileMutationOptions: <TError = ErrorType<void
|
|
|
25
25
|
type CreateDatasetFromFileMutationResult = NonNullable<Awaited<ReturnType<typeof createDatasetFromFile>>>;
|
|
26
26
|
type CreateDatasetFromFileMutationBody = DatasetPutBodyBody;
|
|
27
27
|
type CreateDatasetFromFileMutationError = ErrorType<void | DmError>;
|
|
28
|
+
/**
|
|
29
|
+
* @summary Create a Dataset from a file in a Project
|
|
30
|
+
*/
|
|
28
31
|
declare const useCreateDatasetFromFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
29
32
|
mutation?: UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
30
33
|
data: DatasetPutBodyBody;
|
|
@@ -34,7 +37,7 @@ declare const useCreateDatasetFromFile: <TError = ErrorType<void | DmError>, TCo
|
|
|
34
37
|
data: DatasetPutBodyBody;
|
|
35
38
|
}, TContext>;
|
|
36
39
|
/**
|
|
37
|
-
|
|
40
|
+
* Uploads a dataset.
|
|
38
41
|
|
|
39
42
|
Dataset file-naming is strictly limited to a fixed set of extensions based on the Dataset **Type**. You can obtain the supported types (and their extensions) via the `/type` endpoint. Filenames that do not comply with the supported filename extensions will be rejected.
|
|
40
43
|
|
|
@@ -44,8 +47,8 @@ The Dataset is assigned a unique identity if it has no **Parent**. If a Parent d
|
|
|
44
47
|
|
|
45
48
|
Datasets undergo some processing in an asynchronous **Task** after control returns to you. The unique identity of the assigned task (the `task id`) is presented to you in this endpoint's response. Before you can use an uploaded dataset, and before the dataset can be added to any pre-assigned projects, you must wait until the task is complete by making regular calls to the `/task/{task-id}` endpoint. A Dataset upload is complete when the corresponding `task.done` is **true** along with a `task.exit_code` of **0**. If the Dataset upload fails `task.done` will be **true** but the `task.exit_code` will be non-zero.
|
|
46
49
|
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
* @summary Upload an external file as a Dataset
|
|
51
|
+
*/
|
|
49
52
|
declare const uploadDataset: (datasetPostBodyBody: DatasetPostBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<DatasetPutPostResponse>;
|
|
50
53
|
declare const getUploadDatasetMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
51
54
|
mutation?: UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
@@ -58,6 +61,9 @@ declare const getUploadDatasetMutationOptions: <TError = ErrorType<void | DmErro
|
|
|
58
61
|
type UploadDatasetMutationResult = NonNullable<Awaited<ReturnType<typeof uploadDataset>>>;
|
|
59
62
|
type UploadDatasetMutationBody = DatasetPostBodyBody;
|
|
60
63
|
type UploadDatasetMutationError = ErrorType<void | DmError>;
|
|
64
|
+
/**
|
|
65
|
+
* @summary Upload an external file as a Dataset
|
|
66
|
+
*/
|
|
61
67
|
declare const useUploadDataset: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
62
68
|
mutation?: UseMutationOptions<DatasetPutPostResponse, TError, {
|
|
63
69
|
data: DatasetPostBodyBody;
|
|
@@ -67,7 +73,7 @@ declare const useUploadDataset: <TError = ErrorType<void | DmError>, TContext =
|
|
|
67
73
|
data: DatasetPostBodyBody;
|
|
68
74
|
}, TContext>;
|
|
69
75
|
/**
|
|
70
|
-
|
|
76
|
+
* Returns datasets that you have access to, whether attached to a project or not.
|
|
71
77
|
|
|
72
78
|
You will not see Datasets while their upload is still in progress.
|
|
73
79
|
|
|
@@ -75,8 +81,8 @@ Datasets can be filtered by the `owner username`, `mime_type`, a list of `owners
|
|
|
75
81
|
|
|
76
82
|
Note that if `editors` are combined with `owner username`, then the datasets will be filtered by owner username first followed by editors (so it's an AND). If `editors` are combined with `owners`, then the result will be datasets filtered by a combination of owners OR editors.
|
|
77
83
|
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
* @summary Get Datasets that are available to you
|
|
85
|
+
*/
|
|
80
86
|
declare const getDatasets: (params?: GetDatasetsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetsGetResponse>;
|
|
81
87
|
declare const getGetDatasetsQueryKey: (params?: GetDatasetsParams) => readonly ["data-manager-api", "/dataset", ...GetDatasetsParams[]];
|
|
82
88
|
declare const getGetDatasetsQueryOptions: <TData = DatasetsGetResponse, TError = ErrorType<void | DmError>>(params?: GetDatasetsParams, options?: {
|
|
@@ -87,6 +93,9 @@ declare const getGetDatasetsQueryOptions: <TData = DatasetsGetResponse, TError =
|
|
|
87
93
|
};
|
|
88
94
|
type GetDatasetsQueryResult = NonNullable<Awaited<ReturnType<typeof getDatasets>>>;
|
|
89
95
|
type GetDatasetsQueryError = ErrorType<void | DmError>;
|
|
96
|
+
/**
|
|
97
|
+
* @summary Get Datasets that are available to you
|
|
98
|
+
*/
|
|
90
99
|
declare const useGetDatasets: <TData = DatasetsGetResponse, TError = ErrorType<void | DmError>>(params?: GetDatasetsParams, options?: {
|
|
91
100
|
query?: UseQueryOptions<DatasetsGetResponse, TError, TData, QueryKey> | undefined;
|
|
92
101
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -110,6 +119,9 @@ declare const getGetVersionsQueryOptions: <TData = DatasetDetail, TError = Error
|
|
|
110
119
|
};
|
|
111
120
|
type GetVersionsQueryResult = NonNullable<Awaited<ReturnType<typeof getVersions>>>;
|
|
112
121
|
type GetVersionsQueryError = ErrorType<void | DmError>;
|
|
122
|
+
/**
|
|
123
|
+
* @summary Gets all the Versions of a specific Dataset
|
|
124
|
+
*/
|
|
113
125
|
declare const useGetVersions: <TData = DatasetDetail, TError = ErrorType<void | DmError>>(datasetId: string, params?: GetVersionsParams, options?: {
|
|
114
126
|
query?: UseQueryOptions<DatasetDetail, TError, TData, QueryKey> | undefined;
|
|
115
127
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -140,6 +152,9 @@ declare const getDeleteDatasetMutationOptions: <TError = ErrorType<void | DmErro
|
|
|
140
152
|
}, TContext>;
|
|
141
153
|
type DeleteDatasetMutationResult = NonNullable<Awaited<ReturnType<typeof deleteDataset>>>;
|
|
142
154
|
type DeleteDatasetMutationError = ErrorType<void | DmError>;
|
|
155
|
+
/**
|
|
156
|
+
* @summary Delete a Dataset
|
|
157
|
+
*/
|
|
143
158
|
declare const useDeleteDataset: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
144
159
|
mutation?: UseMutationOptions<TaskIdentity, TError, {
|
|
145
160
|
datasetId: string;
|
|
@@ -153,12 +168,12 @@ declare const useDeleteDataset: <TError = ErrorType<void | DmError>, TContext =
|
|
|
153
168
|
params?: DeleteDatasetParams | undefined;
|
|
154
169
|
}, TContext>;
|
|
155
170
|
/**
|
|
156
|
-
|
|
171
|
+
* Given a `dataset_id` the dataset will be returned if available.
|
|
157
172
|
|
|
158
173
|
You cannot get a Dataset until its upload is complete.
|
|
159
174
|
|
|
160
|
-
|
|
161
|
-
|
|
175
|
+
* @summary Download a Dataset
|
|
176
|
+
*/
|
|
162
177
|
declare const downloadDataset: (datasetId: string, datasetVersion: number, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
163
178
|
declare const getDownloadDatasetQueryKey: (datasetId: string, datasetVersion: number) => readonly ["data-manager-api", `/dataset/${string}/${number}`];
|
|
164
179
|
declare const getDownloadDatasetQueryOptions: <TData = void, TError = ErrorType<DmError>>(datasetId: string, datasetVersion: number, options?: {
|
|
@@ -169,6 +184,9 @@ declare const getDownloadDatasetQueryOptions: <TData = void, TError = ErrorType<
|
|
|
169
184
|
};
|
|
170
185
|
type DownloadDatasetQueryResult = NonNullable<Awaited<ReturnType<typeof downloadDataset>>>;
|
|
171
186
|
type DownloadDatasetQueryError = ErrorType<DmError>;
|
|
187
|
+
/**
|
|
188
|
+
* @summary Download a Dataset
|
|
189
|
+
*/
|
|
172
190
|
declare const useDownloadDataset: <TData = void, TError = ErrorType<DmError>>(datasetId: string, datasetVersion: number, options?: {
|
|
173
191
|
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
174
192
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -197,6 +215,9 @@ declare const getRemoveEditorFromDatasetMutationOptions: <TError = ErrorType<DmE
|
|
|
197
215
|
}, TContext>;
|
|
198
216
|
type RemoveEditorFromDatasetMutationResult = NonNullable<Awaited<ReturnType<typeof removeEditorFromDataset>>>;
|
|
199
217
|
type RemoveEditorFromDatasetMutationError = ErrorType<DmError>;
|
|
218
|
+
/**
|
|
219
|
+
* @summary Remove a user's edit permission for a Dataset
|
|
220
|
+
*/
|
|
200
221
|
declare const useRemoveEditorFromDataset: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
201
222
|
mutation?: UseMutationOptions<void, TError, {
|
|
202
223
|
datasetId: string;
|
|
@@ -208,14 +229,14 @@ declare const useRemoveEditorFromDataset: <TError = ErrorType<DmError>, TContext
|
|
|
208
229
|
userId: string;
|
|
209
230
|
}, TContext>;
|
|
210
231
|
/**
|
|
211
|
-
|
|
232
|
+
* The user is added to the dataset's `editor`` list. The dataset `owner` is automatically an editor and so does not need to be added as an `editor`.
|
|
212
233
|
|
|
213
234
|
You must be an `editor` or `owner` of the dataset.
|
|
214
235
|
|
|
215
236
|
You cannot modify Dataset editors until its upload is complete.
|
|
216
237
|
|
|
217
|
-
|
|
218
|
-
|
|
238
|
+
* @summary Give a user edit permission for a Dataset
|
|
239
|
+
*/
|
|
219
240
|
declare const addEditorToDataset: (datasetId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
220
241
|
declare const getAddEditorToDatasetMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
221
242
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -229,6 +250,9 @@ declare const getAddEditorToDatasetMutationOptions: <TError = ErrorType<DmError>
|
|
|
229
250
|
}, TContext>;
|
|
230
251
|
type AddEditorToDatasetMutationResult = NonNullable<Awaited<ReturnType<typeof addEditorToDataset>>>;
|
|
231
252
|
type AddEditorToDatasetMutationError = ErrorType<DmError>;
|
|
253
|
+
/**
|
|
254
|
+
* @summary Give a user edit permission for a Dataset
|
|
255
|
+
*/
|
|
232
256
|
declare const useAddEditorToDataset: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
233
257
|
mutation?: UseMutationOptions<void, TError, {
|
|
234
258
|
datasetId: string;
|
|
@@ -240,10 +264,10 @@ declare const useAddEditorToDataset: <TError = ErrorType<DmError>, TContext = un
|
|
|
240
264
|
userId: string;
|
|
241
265
|
}, TContext>;
|
|
242
266
|
/**
|
|
243
|
-
|
|
267
|
+
* Returns a dataset ID and version of a dataset that matches the provided SHA256 digest, a 64-character hex string.
|
|
244
268
|
|
|
245
|
-
|
|
246
|
-
|
|
269
|
+
* @summary Gets the first Dataset that matches the provided digest
|
|
270
|
+
*/
|
|
247
271
|
declare const getDatasetDigest: (datasetDigest: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<DatasetDigestGetResponse>;
|
|
248
272
|
declare const getGetDatasetDigestQueryKey: (datasetDigest: string) => readonly ["data-manager-api", `/dataset/digest/${string}`];
|
|
249
273
|
declare const getGetDatasetDigestQueryOptions: <TData = DatasetDigestGetResponse, TError = ErrorType<void | DmError>>(datasetDigest: string, options?: {
|
|
@@ -254,6 +278,9 @@ declare const getGetDatasetDigestQueryOptions: <TData = DatasetDigestGetResponse
|
|
|
254
278
|
};
|
|
255
279
|
type GetDatasetDigestQueryResult = NonNullable<Awaited<ReturnType<typeof getDatasetDigest>>>;
|
|
256
280
|
type GetDatasetDigestQueryError = ErrorType<void | DmError>;
|
|
281
|
+
/**
|
|
282
|
+
* @summary Gets the first Dataset that matches the provided digest
|
|
283
|
+
*/
|
|
257
284
|
declare const useGetDatasetDigest: <TData = DatasetDigestGetResponse, TError = ErrorType<void | DmError>>(datasetDigest: string, options?: {
|
|
258
285
|
query?: UseQueryOptions<DatasetDigestGetResponse, TError, TData, QueryKey> | undefined;
|
|
259
286
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -275,6 +302,9 @@ declare const getGetSchemaQueryOptions: <TData = DatasetSchemaGetResponse, TErro
|
|
|
275
302
|
};
|
|
276
303
|
type GetSchemaQueryResult = NonNullable<Awaited<ReturnType<typeof getSchema>>>;
|
|
277
304
|
type GetSchemaQueryError = ErrorType<void | DmError>;
|
|
305
|
+
/**
|
|
306
|
+
* @summary Gets the property schema for a specific Dataset
|
|
307
|
+
*/
|
|
278
308
|
declare const useGetSchema: <TData = DatasetSchemaGetResponse, TError = ErrorType<void | DmError>>(datasetId: string, datasetVersion: number, options?: {
|
|
279
309
|
query?: UseQueryOptions<DatasetSchemaGetResponse, TError, TData, QueryKey> | undefined;
|
|
280
310
|
request?: SecondParameter<typeof customInstance>;
|