@squonk/data-manager-client 1.2.3 → 1.2.4-rc.2
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-3d66fe97.d.ts} +826 -826
- 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 +941 -942
- 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,377 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { UseQueryOptions, QueryKey, UseQueryResult, UseMutationOptions } from '@tanstack/react-query';
|
|
3
|
+
import { t as GetProjectsParams, bX as customInstance, bg as ProjectsGetResponse, bY as ErrorType, bT as DmError, a7 as ProjectPostBodyBody, bh as ProjectPostResponse, az as ProjectDetail, a8 as ProjectPatchBodyBody, at as TaskIdentity, s as GetProjectFileParams, a9 as ProjectFilePutBodyBody, r as GetProjectFileWithTokenParams } from '../custom-instance-3d66fe97.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
|
+
* @summary Get all Projects available to you
|
|
9
|
+
*/
|
|
10
|
+
declare const getProjects: (params?: GetProjectsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProjectsGetResponse>;
|
|
11
|
+
declare const getGetProjectsQueryKey: (params?: GetProjectsParams) => readonly ["data-manager-api", "/project", ...GetProjectsParams[]];
|
|
12
|
+
declare const getGetProjectsQueryOptions: <TData = ProjectsGetResponse, TError = ErrorType<void | DmError>>(params?: GetProjectsParams, options?: {
|
|
13
|
+
query?: UseQueryOptions<ProjectsGetResponse, TError, TData, QueryKey> | undefined;
|
|
14
|
+
request?: SecondParameter<typeof customInstance>;
|
|
15
|
+
} | undefined) => UseQueryOptions<ProjectsGetResponse, TError, TData, QueryKey> & {
|
|
16
|
+
queryKey: QueryKey;
|
|
17
|
+
};
|
|
18
|
+
type GetProjectsQueryResult = NonNullable<Awaited<ReturnType<typeof getProjects>>>;
|
|
19
|
+
type GetProjectsQueryError = ErrorType<void | DmError>;
|
|
20
|
+
/**
|
|
21
|
+
* @summary Get all Projects available to you
|
|
22
|
+
*/
|
|
23
|
+
declare const useGetProjects: <TData = ProjectsGetResponse, TError = ErrorType<void | DmError>>(params?: GetProjectsParams, options?: {
|
|
24
|
+
query?: UseQueryOptions<ProjectsGetResponse, TError, TData, QueryKey> | undefined;
|
|
25
|
+
request?: SecondParameter<typeof customInstance>;
|
|
26
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
27
|
+
queryKey: QueryKey;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new Project, assigning and returning a unique **ID**. A persistent volume is created in the cluster and assigned to your Project. It's here you can add **Datasets** as **Files** and run **Applications** and **Jobs**.
|
|
31
|
+
|
|
32
|
+
To create a Project when an **Account Server** is configured you will need a **Product**.
|
|
33
|
+
|
|
34
|
+
As the Project `owner` (creator) you are also automatically an `editor` of the Project and can add other users as **Editors** so that they can also manipulate the project. An **Editor** of a project can also delete it.
|
|
35
|
+
|
|
36
|
+
The name you give the Project is free-form text (can contain spaces etc.) but the name you use must be unique amongst all the Projects you create.
|
|
37
|
+
|
|
38
|
+
* @summary Create a new Project
|
|
39
|
+
*/
|
|
40
|
+
declare const createProject: (projectPostBodyBody: ProjectPostBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<ProjectPostResponse>;
|
|
41
|
+
declare const getCreateProjectMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
42
|
+
mutation?: UseMutationOptions<ProjectPostResponse, TError, {
|
|
43
|
+
data: ProjectPostBodyBody;
|
|
44
|
+
}, TContext> | undefined;
|
|
45
|
+
request?: SecondParameter<typeof customInstance>;
|
|
46
|
+
} | undefined) => UseMutationOptions<ProjectPostResponse, TError, {
|
|
47
|
+
data: ProjectPostBodyBody;
|
|
48
|
+
}, TContext>;
|
|
49
|
+
type CreateProjectMutationResult = NonNullable<Awaited<ReturnType<typeof createProject>>>;
|
|
50
|
+
type CreateProjectMutationBody = ProjectPostBodyBody;
|
|
51
|
+
type CreateProjectMutationError = ErrorType<DmError | void>;
|
|
52
|
+
/**
|
|
53
|
+
* @summary Create a new Project
|
|
54
|
+
*/
|
|
55
|
+
declare const useCreateProject: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
56
|
+
mutation?: UseMutationOptions<ProjectPostResponse, TError, {
|
|
57
|
+
data: ProjectPostBodyBody;
|
|
58
|
+
}, TContext> | undefined;
|
|
59
|
+
request?: SecondParameter<typeof customInstance>;
|
|
60
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<ProjectPostResponse, TError, {
|
|
61
|
+
data: ProjectPostBodyBody;
|
|
62
|
+
}, TContext>;
|
|
63
|
+
/**
|
|
64
|
+
* Gets the details of a Project that is available to you.
|
|
65
|
+
|
|
66
|
+
* @summary Get a Project
|
|
67
|
+
*/
|
|
68
|
+
declare const getProject: (projectId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProjectDetail>;
|
|
69
|
+
declare const getGetProjectQueryKey: (projectId: string) => readonly ["data-manager-api", `/project/${string}`];
|
|
70
|
+
declare const getGetProjectQueryOptions: <TData = ProjectDetail, TError = ErrorType<void | DmError>>(projectId: string, options?: {
|
|
71
|
+
query?: UseQueryOptions<ProjectDetail, TError, TData, QueryKey> | undefined;
|
|
72
|
+
request?: SecondParameter<typeof customInstance>;
|
|
73
|
+
} | undefined) => UseQueryOptions<ProjectDetail, TError, TData, QueryKey> & {
|
|
74
|
+
queryKey: QueryKey;
|
|
75
|
+
};
|
|
76
|
+
type GetProjectQueryResult = NonNullable<Awaited<ReturnType<typeof getProject>>>;
|
|
77
|
+
type GetProjectQueryError = ErrorType<void | DmError>;
|
|
78
|
+
/**
|
|
79
|
+
* @summary Get a Project
|
|
80
|
+
*/
|
|
81
|
+
declare const useGetProject: <TData = ProjectDetail, TError = ErrorType<void | DmError>>(projectId: string, options?: {
|
|
82
|
+
query?: UseQueryOptions<ProjectDetail, TError, TData, QueryKey> | undefined;
|
|
83
|
+
request?: SecondParameter<typeof customInstance>;
|
|
84
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
85
|
+
queryKey: QueryKey;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Used to update some adjustable parameters of a Project, i.e. to make it `private` or make it `public``. What can be adjusted will depend on the purchased **Product**
|
|
89
|
+
|
|
90
|
+
* @summary Adjust an existing Project
|
|
91
|
+
*/
|
|
92
|
+
declare const patchProject: (projectId: string, projectPatchBodyBody: ProjectPatchBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
93
|
+
declare const getPatchProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
94
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
95
|
+
projectId: string;
|
|
96
|
+
data: ProjectPatchBodyBody;
|
|
97
|
+
}, TContext> | undefined;
|
|
98
|
+
request?: SecondParameter<typeof customInstance>;
|
|
99
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
100
|
+
projectId: string;
|
|
101
|
+
data: ProjectPatchBodyBody;
|
|
102
|
+
}, TContext>;
|
|
103
|
+
type PatchProjectMutationResult = NonNullable<Awaited<ReturnType<typeof patchProject>>>;
|
|
104
|
+
type PatchProjectMutationBody = ProjectPatchBodyBody;
|
|
105
|
+
type PatchProjectMutationError = ErrorType<DmError>;
|
|
106
|
+
/**
|
|
107
|
+
* @summary Adjust an existing Project
|
|
108
|
+
*/
|
|
109
|
+
declare const usePatchProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
110
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
111
|
+
projectId: string;
|
|
112
|
+
data: ProjectPatchBodyBody;
|
|
113
|
+
}, TContext> | undefined;
|
|
114
|
+
request?: SecondParameter<typeof customInstance>;
|
|
115
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
116
|
+
projectId: string;
|
|
117
|
+
data: ProjectPatchBodyBody;
|
|
118
|
+
}, TContext>;
|
|
119
|
+
/**
|
|
120
|
+
* Deletes an existing Project.
|
|
121
|
+
|
|
122
|
+
You must be an `editor` or the `owner` of the project.
|
|
123
|
+
|
|
124
|
+
Once deleted all **Files**, working directories and material in the Project will also be removed
|
|
125
|
+
|
|
126
|
+
* @summary Delete a Project
|
|
127
|
+
*/
|
|
128
|
+
declare const deleteProject: (projectId: string, options?: SecondParameter<typeof customInstance>) => Promise<TaskIdentity>;
|
|
129
|
+
declare const getDeleteProjectMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
130
|
+
mutation?: UseMutationOptions<TaskIdentity, TError, {
|
|
131
|
+
projectId: string;
|
|
132
|
+
}, TContext> | undefined;
|
|
133
|
+
request?: SecondParameter<typeof customInstance>;
|
|
134
|
+
} | undefined) => UseMutationOptions<TaskIdentity, TError, {
|
|
135
|
+
projectId: string;
|
|
136
|
+
}, TContext>;
|
|
137
|
+
type DeleteProjectMutationResult = NonNullable<Awaited<ReturnType<typeof deleteProject>>>;
|
|
138
|
+
type DeleteProjectMutationError = ErrorType<void | DmError>;
|
|
139
|
+
/**
|
|
140
|
+
* @summary Delete a Project
|
|
141
|
+
*/
|
|
142
|
+
declare const useDeleteProject: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
143
|
+
mutation?: UseMutationOptions<TaskIdentity, TError, {
|
|
144
|
+
projectId: string;
|
|
145
|
+
}, TContext> | undefined;
|
|
146
|
+
request?: SecondParameter<typeof customInstance>;
|
|
147
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<TaskIdentity, TError, {
|
|
148
|
+
projectId: string;
|
|
149
|
+
}, TContext>;
|
|
150
|
+
/**
|
|
151
|
+
* Adds a user to a Project as an `editor`. Editors can add and remove datasets in a project and delete the project.
|
|
152
|
+
|
|
153
|
+
An `editor` of a project is not automatically an `editor` of any datasets the project contains.
|
|
154
|
+
|
|
155
|
+
You must be an `editor` or the `owner` of the project
|
|
156
|
+
|
|
157
|
+
* @summary Add a Project Editor
|
|
158
|
+
*/
|
|
159
|
+
declare const addEditorToProject: (projectId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
160
|
+
declare const getAddEditorToProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
161
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
162
|
+
projectId: string;
|
|
163
|
+
userId: string;
|
|
164
|
+
}, TContext> | undefined;
|
|
165
|
+
request?: SecondParameter<typeof customInstance>;
|
|
166
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
167
|
+
projectId: string;
|
|
168
|
+
userId: string;
|
|
169
|
+
}, TContext>;
|
|
170
|
+
type AddEditorToProjectMutationResult = NonNullable<Awaited<ReturnType<typeof addEditorToProject>>>;
|
|
171
|
+
type AddEditorToProjectMutationError = ErrorType<DmError>;
|
|
172
|
+
/**
|
|
173
|
+
* @summary Add a Project Editor
|
|
174
|
+
*/
|
|
175
|
+
declare const useAddEditorToProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
176
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
177
|
+
projectId: string;
|
|
178
|
+
userId: string;
|
|
179
|
+
}, TContext> | undefined;
|
|
180
|
+
request?: SecondParameter<typeof customInstance>;
|
|
181
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
182
|
+
projectId: string;
|
|
183
|
+
userId: string;
|
|
184
|
+
}, TContext>;
|
|
185
|
+
/**
|
|
186
|
+
* Deletes a project `editor`. The editor can be you.
|
|
187
|
+
|
|
188
|
+
A project must always have one `editor` so you will not be able to delete the last editor of a project.
|
|
189
|
+
|
|
190
|
+
You must be an `editor` or the `owner` of the project
|
|
191
|
+
|
|
192
|
+
* @summary Delete a Project Editor
|
|
193
|
+
*/
|
|
194
|
+
declare const removeEditorFromProject: (projectId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
195
|
+
declare const getRemoveEditorFromProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
196
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
197
|
+
projectId: string;
|
|
198
|
+
userId: string;
|
|
199
|
+
}, TContext> | undefined;
|
|
200
|
+
request?: SecondParameter<typeof customInstance>;
|
|
201
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
202
|
+
projectId: string;
|
|
203
|
+
userId: string;
|
|
204
|
+
}, TContext>;
|
|
205
|
+
type RemoveEditorFromProjectMutationResult = NonNullable<Awaited<ReturnType<typeof removeEditorFromProject>>>;
|
|
206
|
+
type RemoveEditorFromProjectMutationError = ErrorType<DmError>;
|
|
207
|
+
/**
|
|
208
|
+
* @summary Delete a Project Editor
|
|
209
|
+
*/
|
|
210
|
+
declare const useRemoveEditorFromProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
211
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
212
|
+
projectId: string;
|
|
213
|
+
userId: string;
|
|
214
|
+
}, TContext> | undefined;
|
|
215
|
+
request?: SecondParameter<typeof customInstance>;
|
|
216
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
217
|
+
projectId: string;
|
|
218
|
+
userId: string;
|
|
219
|
+
}, TContext>;
|
|
220
|
+
/**
|
|
221
|
+
* Adds a user to a project as an `observer`. Observers can view Projects and download files but they cannot modify Project data or run **Applications** or **Jobs**.
|
|
222
|
+
|
|
223
|
+
You must be an `editor` or the `owner` of the Project to add Observers
|
|
224
|
+
|
|
225
|
+
* @summary Add a Project Observer
|
|
226
|
+
*/
|
|
227
|
+
declare const addObserverToProject: (projectId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
228
|
+
declare const getAddObserverToProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
229
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
230
|
+
projectId: string;
|
|
231
|
+
userId: string;
|
|
232
|
+
}, TContext> | undefined;
|
|
233
|
+
request?: SecondParameter<typeof customInstance>;
|
|
234
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
235
|
+
projectId: string;
|
|
236
|
+
userId: string;
|
|
237
|
+
}, TContext>;
|
|
238
|
+
type AddObserverToProjectMutationResult = NonNullable<Awaited<ReturnType<typeof addObserverToProject>>>;
|
|
239
|
+
type AddObserverToProjectMutationError = ErrorType<DmError>;
|
|
240
|
+
/**
|
|
241
|
+
* @summary Add a Project Observer
|
|
242
|
+
*/
|
|
243
|
+
declare const useAddObserverToProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
244
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
245
|
+
projectId: string;
|
|
246
|
+
userId: string;
|
|
247
|
+
}, TContext> | undefined;
|
|
248
|
+
request?: SecondParameter<typeof customInstance>;
|
|
249
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
250
|
+
projectId: string;
|
|
251
|
+
userId: string;
|
|
252
|
+
}, TContext>;
|
|
253
|
+
/**
|
|
254
|
+
* Deletes a project `observer`.
|
|
255
|
+
|
|
256
|
+
You must be an `editor` or the `owner` of the Project to remove Observers
|
|
257
|
+
|
|
258
|
+
* @summary Delete a Project Observer
|
|
259
|
+
*/
|
|
260
|
+
declare const removeObserverFromProject: (projectId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
261
|
+
declare const getRemoveObserverFromProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
262
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
263
|
+
projectId: string;
|
|
264
|
+
userId: string;
|
|
265
|
+
}, TContext> | undefined;
|
|
266
|
+
request?: SecondParameter<typeof customInstance>;
|
|
267
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
268
|
+
projectId: string;
|
|
269
|
+
userId: string;
|
|
270
|
+
}, TContext>;
|
|
271
|
+
type RemoveObserverFromProjectMutationResult = NonNullable<Awaited<ReturnType<typeof removeObserverFromProject>>>;
|
|
272
|
+
type RemoveObserverFromProjectMutationError = ErrorType<DmError>;
|
|
273
|
+
/**
|
|
274
|
+
* @summary Delete a Project Observer
|
|
275
|
+
*/
|
|
276
|
+
declare const useRemoveObserverFromProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
277
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
278
|
+
projectId: string;
|
|
279
|
+
userId: string;
|
|
280
|
+
}, TContext> | undefined;
|
|
281
|
+
request?: SecondParameter<typeof customInstance>;
|
|
282
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
283
|
+
projectId: string;
|
|
284
|
+
userId: string;
|
|
285
|
+
}, TContext>;
|
|
286
|
+
/**
|
|
287
|
+
* Gets a file from the project, with an optional path. This method should be used to get arbitrary files from the Project's file system (typically **unmanaged** files).
|
|
288
|
+
|
|
289
|
+
For **managed** files you should consider using the `/file/{file_id}` endpoint.
|
|
290
|
+
|
|
291
|
+
You must be an `editor` or the `owner` of the Project if the Project is `private`
|
|
292
|
+
|
|
293
|
+
* @summary Download a Project file
|
|
294
|
+
*/
|
|
295
|
+
declare const getProjectFile: (projectId: string, params: GetProjectFileParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
296
|
+
declare const getGetProjectFileQueryKey: (projectId: string, params: GetProjectFileParams) => readonly ["data-manager-api", `/project/${string}/file`, ...GetProjectFileParams[]];
|
|
297
|
+
declare const getGetProjectFileQueryOptions: <TData = void, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
298
|
+
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
299
|
+
request?: SecondParameter<typeof customInstance>;
|
|
300
|
+
} | undefined) => UseQueryOptions<void, TError, TData, QueryKey> & {
|
|
301
|
+
queryKey: QueryKey;
|
|
302
|
+
};
|
|
303
|
+
type GetProjectFileQueryResult = NonNullable<Awaited<ReturnType<typeof getProjectFile>>>;
|
|
304
|
+
type GetProjectFileQueryError = ErrorType<DmError>;
|
|
305
|
+
/**
|
|
306
|
+
* @summary Download a Project file
|
|
307
|
+
*/
|
|
308
|
+
declare const useGetProjectFile: <TData = void, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
309
|
+
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
310
|
+
request?: SecondParameter<typeof customInstance>;
|
|
311
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
312
|
+
queryKey: QueryKey;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* The user provides an external file for upload to the Project using an optional Path. The path is created if it does not exist.
|
|
316
|
+
|
|
317
|
+
You must be an `editor` or the `owner` of the project
|
|
318
|
+
|
|
319
|
+
* @summary Upload a file into a Project
|
|
320
|
+
*/
|
|
321
|
+
declare const addFileToProject: (projectId: string, projectFilePutBodyBody: ProjectFilePutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
322
|
+
declare const getAddFileToProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
323
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
324
|
+
projectId: string;
|
|
325
|
+
data: ProjectFilePutBodyBody;
|
|
326
|
+
}, TContext> | undefined;
|
|
327
|
+
request?: SecondParameter<typeof customInstance>;
|
|
328
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
329
|
+
projectId: string;
|
|
330
|
+
data: ProjectFilePutBodyBody;
|
|
331
|
+
}, TContext>;
|
|
332
|
+
type AddFileToProjectMutationResult = NonNullable<Awaited<ReturnType<typeof addFileToProject>>>;
|
|
333
|
+
type AddFileToProjectMutationBody = ProjectFilePutBodyBody;
|
|
334
|
+
type AddFileToProjectMutationError = ErrorType<DmError>;
|
|
335
|
+
/**
|
|
336
|
+
* @summary Upload a file into a Project
|
|
337
|
+
*/
|
|
338
|
+
declare const useAddFileToProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
339
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
340
|
+
projectId: string;
|
|
341
|
+
data: ProjectFilePutBodyBody;
|
|
342
|
+
}, TContext> | undefined;
|
|
343
|
+
request?: SecondParameter<typeof customInstance>;
|
|
344
|
+
} | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
|
|
345
|
+
projectId: string;
|
|
346
|
+
data: ProjectFilePutBodyBody;
|
|
347
|
+
}, TContext>;
|
|
348
|
+
/**
|
|
349
|
+
* Gets a file from the project, with an optional path. This method should be used to get arbitrary files from the Project's file system (typically **unmanaged** files).
|
|
350
|
+
|
|
351
|
+
For **managed** files you should consider using the `/file/{file_id}` endpoint.
|
|
352
|
+
|
|
353
|
+
As there is no authentication for this endpoint you must provide a valid token. The token must be a token valid for the project, usually generated when an **Instance** has been launched in the Project.
|
|
354
|
+
|
|
355
|
+
* @summary Download a Project file using a Token
|
|
356
|
+
*/
|
|
357
|
+
declare const getProjectFileWithToken: (projectId: string, params: GetProjectFileWithTokenParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
358
|
+
declare const getGetProjectFileWithTokenQueryKey: (projectId: string, params: GetProjectFileWithTokenParams) => readonly ["data-manager-api", `/project/${string}/file-with-token`, ...GetProjectFileWithTokenParams[]];
|
|
359
|
+
declare const getGetProjectFileWithTokenQueryOptions: <TData = void, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
360
|
+
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
361
|
+
request?: SecondParameter<typeof customInstance>;
|
|
362
|
+
} | undefined) => UseQueryOptions<void, TError, TData, QueryKey> & {
|
|
363
|
+
queryKey: QueryKey;
|
|
364
|
+
};
|
|
365
|
+
type GetProjectFileWithTokenQueryResult = NonNullable<Awaited<ReturnType<typeof getProjectFileWithToken>>>;
|
|
366
|
+
type GetProjectFileWithTokenQueryError = ErrorType<DmError>;
|
|
367
|
+
/**
|
|
368
|
+
* @summary Download a Project file using a Token
|
|
369
|
+
*/
|
|
370
|
+
declare const useGetProjectFileWithToken: <TData = void, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
371
|
+
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
372
|
+
request?: SecondParameter<typeof customInstance>;
|
|
373
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
374
|
+
queryKey: QueryKey;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export { AddEditorToProjectMutationError, AddEditorToProjectMutationResult, AddFileToProjectMutationBody, AddFileToProjectMutationError, AddFileToProjectMutationResult, AddObserverToProjectMutationError, AddObserverToProjectMutationResult, CreateProjectMutationBody, CreateProjectMutationError, CreateProjectMutationResult, DeleteProjectMutationError, DeleteProjectMutationResult, GetProjectFileQueryError, GetProjectFileQueryResult, GetProjectFileWithTokenQueryError, GetProjectFileWithTokenQueryResult, GetProjectQueryError, GetProjectQueryResult, GetProjectsQueryError, GetProjectsQueryResult, PatchProjectMutationBody, PatchProjectMutationError, PatchProjectMutationResult, RemoveEditorFromProjectMutationError, RemoveEditorFromProjectMutationResult, RemoveObserverFromProjectMutationError, RemoveObserverFromProjectMutationResult, addEditorToProject, addFileToProject, addObserverToProject, createProject, deleteProject, getAddEditorToProjectMutationOptions, getAddFileToProjectMutationOptions, getAddObserverToProjectMutationOptions, getCreateProjectMutationOptions, getDeleteProjectMutationOptions, getGetProjectFileQueryKey, getGetProjectFileQueryOptions, getGetProjectFileWithTokenQueryKey, getGetProjectFileWithTokenQueryOptions, getGetProjectQueryKey, getGetProjectQueryOptions, getGetProjectsQueryKey, getGetProjectsQueryOptions, getPatchProjectMutationOptions, getProject, getProjectFile, getProjectFileWithToken, getProjects, getRemoveEditorFromProjectMutationOptions, getRemoveObserverFromProjectMutationOptions, patchProject, removeEditorFromProject, removeObserverFromProject, useAddEditorToProject, useAddFileToProject, useAddObserverToProject, useCreateProject, useDeleteProject, useGetProject, useGetProjectFile, useGetProjectFileWithToken, useGetProjects, usePatchProject, useRemoveEditorFromProject, useRemoveObserverFromProject };
|
package/project/project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as GetProjectsParams, bX as customInstance, bg as ProjectsGetResponse, bY as ErrorType, bT as DmError, a7 as ProjectPostBodyBody, bh as ProjectPostResponse, az as ProjectDetail, a8 as ProjectPatchBodyBody, at as TaskIdentity, s as GetProjectFileParams, a9 as ProjectFilePutBodyBody, r as GetProjectFileWithTokenParams } from '../custom-instance-50c9dd5d.js';
|
|
2
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
2
|
import { UseQueryOptions, QueryKey, UseQueryResult, UseMutationOptions } from '@tanstack/react-query';
|
|
3
|
+
import { t as GetProjectsParams, bX as customInstance, bg as ProjectsGetResponse, bY as ErrorType, bT as DmError, a7 as ProjectPostBodyBody, bh as ProjectPostResponse, az as ProjectDetail, a8 as ProjectPatchBodyBody, at as TaskIdentity, s as GetProjectFileParams, a9 as ProjectFilePutBodyBody, r as GetProjectFileWithTokenParams } from '../custom-instance-3d66fe97.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;
|
|
@@ -17,6 +17,9 @@ declare const getGetProjectsQueryOptions: <TData = ProjectsGetResponse, TError =
|
|
|
17
17
|
};
|
|
18
18
|
type GetProjectsQueryResult = NonNullable<Awaited<ReturnType<typeof getProjects>>>;
|
|
19
19
|
type GetProjectsQueryError = ErrorType<void | DmError>;
|
|
20
|
+
/**
|
|
21
|
+
* @summary Get all Projects available to you
|
|
22
|
+
*/
|
|
20
23
|
declare const useGetProjects: <TData = ProjectsGetResponse, TError = ErrorType<void | DmError>>(params?: GetProjectsParams, options?: {
|
|
21
24
|
query?: UseQueryOptions<ProjectsGetResponse, TError, TData, QueryKey> | undefined;
|
|
22
25
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -46,6 +49,9 @@ declare const getCreateProjectMutationOptions: <TError = ErrorType<void | DmErro
|
|
|
46
49
|
type CreateProjectMutationResult = NonNullable<Awaited<ReturnType<typeof createProject>>>;
|
|
47
50
|
type CreateProjectMutationBody = ProjectPostBodyBody;
|
|
48
51
|
type CreateProjectMutationError = ErrorType<DmError | void>;
|
|
52
|
+
/**
|
|
53
|
+
* @summary Create a new Project
|
|
54
|
+
*/
|
|
49
55
|
declare const useCreateProject: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
50
56
|
mutation?: UseMutationOptions<ProjectPostResponse, TError, {
|
|
51
57
|
data: ProjectPostBodyBody;
|
|
@@ -55,10 +61,10 @@ declare const useCreateProject: <TError = ErrorType<void | DmError>, TContext =
|
|
|
55
61
|
data: ProjectPostBodyBody;
|
|
56
62
|
}, TContext>;
|
|
57
63
|
/**
|
|
58
|
-
|
|
64
|
+
* Gets the details of a Project that is available to you.
|
|
59
65
|
|
|
60
|
-
|
|
61
|
-
|
|
66
|
+
* @summary Get a Project
|
|
67
|
+
*/
|
|
62
68
|
declare const getProject: (projectId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProjectDetail>;
|
|
63
69
|
declare const getGetProjectQueryKey: (projectId: string) => readonly ["data-manager-api", `/project/${string}`];
|
|
64
70
|
declare const getGetProjectQueryOptions: <TData = ProjectDetail, TError = ErrorType<void | DmError>>(projectId: string, options?: {
|
|
@@ -69,6 +75,9 @@ declare const getGetProjectQueryOptions: <TData = ProjectDetail, TError = ErrorT
|
|
|
69
75
|
};
|
|
70
76
|
type GetProjectQueryResult = NonNullable<Awaited<ReturnType<typeof getProject>>>;
|
|
71
77
|
type GetProjectQueryError = ErrorType<void | DmError>;
|
|
78
|
+
/**
|
|
79
|
+
* @summary Get a Project
|
|
80
|
+
*/
|
|
72
81
|
declare const useGetProject: <TData = ProjectDetail, TError = ErrorType<void | DmError>>(projectId: string, options?: {
|
|
73
82
|
query?: UseQueryOptions<ProjectDetail, TError, TData, QueryKey> | undefined;
|
|
74
83
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -94,6 +103,9 @@ declare const getPatchProjectMutationOptions: <TError = ErrorType<DmError>, TCon
|
|
|
94
103
|
type PatchProjectMutationResult = NonNullable<Awaited<ReturnType<typeof patchProject>>>;
|
|
95
104
|
type PatchProjectMutationBody = ProjectPatchBodyBody;
|
|
96
105
|
type PatchProjectMutationError = ErrorType<DmError>;
|
|
106
|
+
/**
|
|
107
|
+
* @summary Adjust an existing Project
|
|
108
|
+
*/
|
|
97
109
|
declare const usePatchProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
98
110
|
mutation?: UseMutationOptions<void, TError, {
|
|
99
111
|
projectId: string;
|
|
@@ -105,14 +117,14 @@ declare const usePatchProject: <TError = ErrorType<DmError>, TContext = unknown>
|
|
|
105
117
|
data: ProjectPatchBodyBody;
|
|
106
118
|
}, TContext>;
|
|
107
119
|
/**
|
|
108
|
-
|
|
120
|
+
* Deletes an existing Project.
|
|
109
121
|
|
|
110
122
|
You must be an `editor` or the `owner` of the project.
|
|
111
123
|
|
|
112
124
|
Once deleted all **Files**, working directories and material in the Project will also be removed
|
|
113
125
|
|
|
114
|
-
|
|
115
|
-
|
|
126
|
+
* @summary Delete a Project
|
|
127
|
+
*/
|
|
116
128
|
declare const deleteProject: (projectId: string, options?: SecondParameter<typeof customInstance>) => Promise<TaskIdentity>;
|
|
117
129
|
declare const getDeleteProjectMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
118
130
|
mutation?: UseMutationOptions<TaskIdentity, TError, {
|
|
@@ -124,6 +136,9 @@ declare const getDeleteProjectMutationOptions: <TError = ErrorType<void | DmErro
|
|
|
124
136
|
}, TContext>;
|
|
125
137
|
type DeleteProjectMutationResult = NonNullable<Awaited<ReturnType<typeof deleteProject>>>;
|
|
126
138
|
type DeleteProjectMutationError = ErrorType<void | DmError>;
|
|
139
|
+
/**
|
|
140
|
+
* @summary Delete a Project
|
|
141
|
+
*/
|
|
127
142
|
declare const useDeleteProject: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
128
143
|
mutation?: UseMutationOptions<TaskIdentity, TError, {
|
|
129
144
|
projectId: string;
|
|
@@ -133,14 +148,14 @@ declare const useDeleteProject: <TError = ErrorType<void | DmError>, TContext =
|
|
|
133
148
|
projectId: string;
|
|
134
149
|
}, TContext>;
|
|
135
150
|
/**
|
|
136
|
-
|
|
151
|
+
* Adds a user to a Project as an `editor`. Editors can add and remove datasets in a project and delete the project.
|
|
137
152
|
|
|
138
153
|
An `editor` of a project is not automatically an `editor` of any datasets the project contains.
|
|
139
154
|
|
|
140
155
|
You must be an `editor` or the `owner` of the project
|
|
141
156
|
|
|
142
|
-
|
|
143
|
-
|
|
157
|
+
* @summary Add a Project Editor
|
|
158
|
+
*/
|
|
144
159
|
declare const addEditorToProject: (projectId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
145
160
|
declare const getAddEditorToProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
146
161
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -154,6 +169,9 @@ declare const getAddEditorToProjectMutationOptions: <TError = ErrorType<DmError>
|
|
|
154
169
|
}, TContext>;
|
|
155
170
|
type AddEditorToProjectMutationResult = NonNullable<Awaited<ReturnType<typeof addEditorToProject>>>;
|
|
156
171
|
type AddEditorToProjectMutationError = ErrorType<DmError>;
|
|
172
|
+
/**
|
|
173
|
+
* @summary Add a Project Editor
|
|
174
|
+
*/
|
|
157
175
|
declare const useAddEditorToProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
158
176
|
mutation?: UseMutationOptions<void, TError, {
|
|
159
177
|
projectId: string;
|
|
@@ -165,14 +183,14 @@ declare const useAddEditorToProject: <TError = ErrorType<DmError>, TContext = un
|
|
|
165
183
|
userId: string;
|
|
166
184
|
}, TContext>;
|
|
167
185
|
/**
|
|
168
|
-
|
|
186
|
+
* Deletes a project `editor`. The editor can be you.
|
|
169
187
|
|
|
170
188
|
A project must always have one `editor` so you will not be able to delete the last editor of a project.
|
|
171
189
|
|
|
172
190
|
You must be an `editor` or the `owner` of the project
|
|
173
191
|
|
|
174
|
-
|
|
175
|
-
|
|
192
|
+
* @summary Delete a Project Editor
|
|
193
|
+
*/
|
|
176
194
|
declare const removeEditorFromProject: (projectId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
177
195
|
declare const getRemoveEditorFromProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
178
196
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -186,6 +204,9 @@ declare const getRemoveEditorFromProjectMutationOptions: <TError = ErrorType<DmE
|
|
|
186
204
|
}, TContext>;
|
|
187
205
|
type RemoveEditorFromProjectMutationResult = NonNullable<Awaited<ReturnType<typeof removeEditorFromProject>>>;
|
|
188
206
|
type RemoveEditorFromProjectMutationError = ErrorType<DmError>;
|
|
207
|
+
/**
|
|
208
|
+
* @summary Delete a Project Editor
|
|
209
|
+
*/
|
|
189
210
|
declare const useRemoveEditorFromProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
190
211
|
mutation?: UseMutationOptions<void, TError, {
|
|
191
212
|
projectId: string;
|
|
@@ -197,12 +218,12 @@ declare const useRemoveEditorFromProject: <TError = ErrorType<DmError>, TContext
|
|
|
197
218
|
userId: string;
|
|
198
219
|
}, TContext>;
|
|
199
220
|
/**
|
|
200
|
-
|
|
221
|
+
* Adds a user to a project as an `observer`. Observers can view Projects and download files but they cannot modify Project data or run **Applications** or **Jobs**.
|
|
201
222
|
|
|
202
223
|
You must be an `editor` or the `owner` of the Project to add Observers
|
|
203
224
|
|
|
204
|
-
|
|
205
|
-
|
|
225
|
+
* @summary Add a Project Observer
|
|
226
|
+
*/
|
|
206
227
|
declare const addObserverToProject: (projectId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
207
228
|
declare const getAddObserverToProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
208
229
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -216,6 +237,9 @@ declare const getAddObserverToProjectMutationOptions: <TError = ErrorType<DmErro
|
|
|
216
237
|
}, TContext>;
|
|
217
238
|
type AddObserverToProjectMutationResult = NonNullable<Awaited<ReturnType<typeof addObserverToProject>>>;
|
|
218
239
|
type AddObserverToProjectMutationError = ErrorType<DmError>;
|
|
240
|
+
/**
|
|
241
|
+
* @summary Add a Project Observer
|
|
242
|
+
*/
|
|
219
243
|
declare const useAddObserverToProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
220
244
|
mutation?: UseMutationOptions<void, TError, {
|
|
221
245
|
projectId: string;
|
|
@@ -227,12 +251,12 @@ declare const useAddObserverToProject: <TError = ErrorType<DmError>, TContext =
|
|
|
227
251
|
userId: string;
|
|
228
252
|
}, TContext>;
|
|
229
253
|
/**
|
|
230
|
-
|
|
254
|
+
* Deletes a project `observer`.
|
|
231
255
|
|
|
232
256
|
You must be an `editor` or the `owner` of the Project to remove Observers
|
|
233
257
|
|
|
234
|
-
|
|
235
|
-
|
|
258
|
+
* @summary Delete a Project Observer
|
|
259
|
+
*/
|
|
236
260
|
declare const removeObserverFromProject: (projectId: string, userId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
237
261
|
declare const getRemoveObserverFromProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
238
262
|
mutation?: UseMutationOptions<void, TError, {
|
|
@@ -246,6 +270,9 @@ declare const getRemoveObserverFromProjectMutationOptions: <TError = ErrorType<D
|
|
|
246
270
|
}, TContext>;
|
|
247
271
|
type RemoveObserverFromProjectMutationResult = NonNullable<Awaited<ReturnType<typeof removeObserverFromProject>>>;
|
|
248
272
|
type RemoveObserverFromProjectMutationError = ErrorType<DmError>;
|
|
273
|
+
/**
|
|
274
|
+
* @summary Delete a Project Observer
|
|
275
|
+
*/
|
|
249
276
|
declare const useRemoveObserverFromProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
250
277
|
mutation?: UseMutationOptions<void, TError, {
|
|
251
278
|
projectId: string;
|
|
@@ -257,14 +284,14 @@ declare const useRemoveObserverFromProject: <TError = ErrorType<DmError>, TConte
|
|
|
257
284
|
userId: string;
|
|
258
285
|
}, TContext>;
|
|
259
286
|
/**
|
|
260
|
-
|
|
287
|
+
* Gets a file from the project, with an optional path. This method should be used to get arbitrary files from the Project's file system (typically **unmanaged** files).
|
|
261
288
|
|
|
262
289
|
For **managed** files you should consider using the `/file/{file_id}` endpoint.
|
|
263
290
|
|
|
264
291
|
You must be an `editor` or the `owner` of the Project if the Project is `private`
|
|
265
292
|
|
|
266
|
-
|
|
267
|
-
|
|
293
|
+
* @summary Download a Project file
|
|
294
|
+
*/
|
|
268
295
|
declare const getProjectFile: (projectId: string, params: GetProjectFileParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
269
296
|
declare const getGetProjectFileQueryKey: (projectId: string, params: GetProjectFileParams) => readonly ["data-manager-api", `/project/${string}/file`, ...GetProjectFileParams[]];
|
|
270
297
|
declare const getGetProjectFileQueryOptions: <TData = void, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
@@ -275,6 +302,9 @@ declare const getGetProjectFileQueryOptions: <TData = void, TError = ErrorType<D
|
|
|
275
302
|
};
|
|
276
303
|
type GetProjectFileQueryResult = NonNullable<Awaited<ReturnType<typeof getProjectFile>>>;
|
|
277
304
|
type GetProjectFileQueryError = ErrorType<DmError>;
|
|
305
|
+
/**
|
|
306
|
+
* @summary Download a Project file
|
|
307
|
+
*/
|
|
278
308
|
declare const useGetProjectFile: <TData = void, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
279
309
|
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
280
310
|
request?: SecondParameter<typeof customInstance>;
|
|
@@ -302,6 +332,9 @@ declare const getAddFileToProjectMutationOptions: <TError = ErrorType<DmError>,
|
|
|
302
332
|
type AddFileToProjectMutationResult = NonNullable<Awaited<ReturnType<typeof addFileToProject>>>;
|
|
303
333
|
type AddFileToProjectMutationBody = ProjectFilePutBodyBody;
|
|
304
334
|
type AddFileToProjectMutationError = ErrorType<DmError>;
|
|
335
|
+
/**
|
|
336
|
+
* @summary Upload a file into a Project
|
|
337
|
+
*/
|
|
305
338
|
declare const useAddFileToProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
306
339
|
mutation?: UseMutationOptions<void, TError, {
|
|
307
340
|
projectId: string;
|
|
@@ -313,14 +346,14 @@ declare const useAddFileToProject: <TError = ErrorType<DmError>, TContext = unkn
|
|
|
313
346
|
data: ProjectFilePutBodyBody;
|
|
314
347
|
}, TContext>;
|
|
315
348
|
/**
|
|
316
|
-
|
|
349
|
+
* Gets a file from the project, with an optional path. This method should be used to get arbitrary files from the Project's file system (typically **unmanaged** files).
|
|
317
350
|
|
|
318
351
|
For **managed** files you should consider using the `/file/{file_id}` endpoint.
|
|
319
352
|
|
|
320
353
|
As there is no authentication for this endpoint you must provide a valid token. The token must be a token valid for the project, usually generated when an **Instance** has been launched in the Project.
|
|
321
354
|
|
|
322
|
-
|
|
323
|
-
|
|
355
|
+
* @summary Download a Project file using a Token
|
|
356
|
+
*/
|
|
324
357
|
declare const getProjectFileWithToken: (projectId: string, params: GetProjectFileWithTokenParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
325
358
|
declare const getGetProjectFileWithTokenQueryKey: (projectId: string, params: GetProjectFileWithTokenParams) => readonly ["data-manager-api", `/project/${string}/file-with-token`, ...GetProjectFileWithTokenParams[]];
|
|
326
359
|
declare const getGetProjectFileWithTokenQueryOptions: <TData = void, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
@@ -331,6 +364,9 @@ declare const getGetProjectFileWithTokenQueryOptions: <TData = void, TError = Er
|
|
|
331
364
|
};
|
|
332
365
|
type GetProjectFileWithTokenQueryResult = NonNullable<Awaited<ReturnType<typeof getProjectFileWithToken>>>;
|
|
333
366
|
type GetProjectFileWithTokenQueryError = ErrorType<DmError>;
|
|
367
|
+
/**
|
|
368
|
+
* @summary Download a Project file using a Token
|
|
369
|
+
*/
|
|
334
370
|
declare const useGetProjectFileWithToken: <TData = void, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
335
371
|
query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
|
|
336
372
|
request?: SecondParameter<typeof customInstance>;
|