@squonk/data-manager-client 4.2.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 +140 -94
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +104 -47
- package/accounting/accounting.d.ts +104 -47
- package/accounting/accounting.js +146 -100
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +120 -145
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +123 -121
- package/admin/admin.d.ts +123 -121
- package/admin/admin.js +127 -152
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +39 -43
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +25 -25
- package/application/application.d.ts +25 -25
- package/application/application.js +42 -46
- package/application/application.js.map +1 -1
- package/chunk-76ADQBHZ.js +25 -0
- package/chunk-76ADQBHZ.js.map +1 -0
- package/chunk-KHB5TJT7.cjs +25 -0
- package/chunk-KHB5TJT7.cjs.map +1 -0
- package/{chunk-TKLTUR4R.cjs → chunk-RB2KVIEK.cjs} +1 -1
- package/chunk-RB2KVIEK.cjs.map +1 -0
- package/{chunk-EBOQPVLG.js → chunk-XYDLYMQ2.js} +1 -1
- package/chunk-XYDLYMQ2.js.map +1 -0
- package/configuration/configuration.cjs +38 -45
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +26 -26
- package/configuration/configuration.d.ts +26 -26
- package/configuration/configuration.js +42 -49
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +126 -141
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +102 -102
- package/dataset/dataset.d.ts +102 -102
- package/dataset/dataset.js +132 -147
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +22 -24
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +14 -14
- package/digest/digest.d.ts +14 -14
- package/digest/digest.js +24 -26
- package/digest/digest.js.map +1 -1
- package/file-and-path/file-and-path.cjs +212 -135
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +263 -103
- package/file-and-path/file-and-path.d.ts +263 -103
- package/file-and-path/file-and-path.js +222 -145
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs +83 -103
- package/index.cjs.map +1 -1
- package/index.d.cts +2434 -2343
- package/index.d.ts +2434 -2343
- package/index.js +82 -102
- package/index.js.map +1 -1
- package/instance/instance.cjs +100 -107
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +76 -76
- package/instance/instance.d.ts +76 -76
- package/instance/instance.js +105 -112
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +22 -25
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +14 -14
- package/inventory/inventory.d.ts +14 -14
- package/inventory/inventory.js +24 -27
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +170 -66
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +193 -37
- package/job/job.d.ts +193 -37
- package/job/job.js +176 -72
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +61 -59
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +47 -47
- package/metadata/metadata.d.ts +47 -47
- package/metadata/metadata.js +65 -63
- package/metadata/metadata.js.map +1 -1
- package/package.json +13 -16
- package/project/project.cjs +113 -256
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +122 -282
- package/project/project.d.ts +122 -282
- package/project/project.js +118 -261
- package/project/project.js.map +1 -1
- package/src/{data-manager-api.schemas.ts → API_TARGET_NAME.schemas.ts} +2538 -2483
- package/src/accounting/accounting.ts +1003 -455
- package/src/admin/admin.ts +1190 -788
- package/src/application/application.ts +378 -232
- package/src/configuration/configuration.ts +350 -243
- package/src/custom-instance.ts +3 -3
- package/src/dataset/dataset.ts +1200 -793
- package/src/digest/digest.ts +199 -123
- package/src/file-and-path/file-and-path.ts +1456 -603
- package/src/index.ts +3 -3
- package/src/instance/instance.ts +805 -540
- package/src/inventory/inventory.ts +201 -123
- package/src/job/job.ts +1134 -330
- package/src/metadata/metadata.ts +588 -372
- package/src/options-mutator.ts +27 -0
- package/src/project/project.ts +1064 -1121
- package/src/task/task.ts +435 -296
- package/src/type/type.ts +181 -127
- package/src/user/user.ts +847 -399
- package/src/workflow/workflow.ts +1754 -1091
- package/task/task.cjs +45 -59
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +33 -33
- package/task/task.d.ts +33 -33
- package/task/task.js +51 -65
- package/task/task.js.map +1 -1
- package/type/type.cjs +21 -26
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +14 -14
- package/type/type.d.ts +14 -14
- package/type/type.js +24 -29
- package/type/type.js.map +1 -1
- package/user/user.cjs +114 -80
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +107 -48
- package/user/user.d.ts +107 -48
- package/user/user.js +120 -86
- package/user/user.js.map +1 -1
- package/workflow/workflow.cjs +179 -193
- package/workflow/workflow.cjs.map +1 -1
- package/workflow/workflow.d.cts +149 -147
- package/workflow/workflow.d.ts +149 -147
- package/workflow/workflow.js +187 -201
- package/workflow/workflow.js.map +1 -1
- package/chunk-EBOQPVLG.js.map +0 -1
- package/chunk-TKLTUR4R.cjs.map +0 -1
- package/exchange-rate/exchange-rate.cjs +0 -253
- 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 -253
- package/exchange-rate/exchange-rate.js.map +0 -1
- package/exchange-rate/package.json +0 -7
- package/src/exchange-rate/exchange-rate.ts +0 -800
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UseMutationOptions, UseMutationResult, UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { CreatePathParams, customInstance, ErrorType, DmError, DeletePathParams, MovePathParams, GetFilesParams, FilesGetResponse, FilePostBodyBody, FilePostResponse, DeleteUnmanagedFileParams, MoveFileInProjectParams } from '../index.js';
|
|
1
|
+
import { UseMutationOptions, QueryClient, UseMutationResult, UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { CreatePathParams, customInstance, ErrorType, DmError, DeletePathParams, MovePathParams, GetProjectFileParams, ProjectFilePutBodyBody, GetProjectFileWithTokenParams, GetFilesParams, FilesGetResponse, FilePostBodyBody, FilePostResponse, DeleteUnmanagedFileParams, MoveFileInProjectParams } from '../index.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
|
|
5
|
-
type SecondParameter<T extends (...args:
|
|
5
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new Path within a Project. Every directory in the Path will be created. The path will belong to the User and Project.
|
|
8
8
|
|
|
@@ -11,93 +11,253 @@ Only Project editors can create Paths.
|
|
|
11
11
|
* @summary Create a new Project Path
|
|
12
12
|
*/
|
|
13
13
|
declare const createPath: (params: CreatePathParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
14
|
-
declare const
|
|
15
|
-
mutation?: UseMutationOptions<
|
|
14
|
+
declare const useCreatePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
15
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
|
|
16
16
|
params: CreatePathParams;
|
|
17
17
|
}, TContext>;
|
|
18
18
|
request?: SecondParameter<typeof customInstance>;
|
|
19
|
-
}) => UseMutationOptions<
|
|
19
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
|
|
20
20
|
params: CreatePathParams;
|
|
21
21
|
}, TContext>;
|
|
22
22
|
type CreatePathMutationResult = NonNullable<Awaited<ReturnType<typeof createPath>>>;
|
|
23
23
|
type CreatePathMutationError = ErrorType<void | DmError>;
|
|
24
24
|
/**
|
|
25
|
-
* @summary Create a new Project Path
|
|
26
|
-
*/
|
|
27
|
-
declare const useCreatePath: <
|
|
28
|
-
mutation?: UseMutationOptions<
|
|
25
|
+
* @summary Create a new Project Path
|
|
26
|
+
*/
|
|
27
|
+
declare const useCreatePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
28
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
|
|
29
29
|
params: CreatePathParams;
|
|
30
30
|
}, TContext>;
|
|
31
31
|
request?: SecondParameter<typeof customInstance>;
|
|
32
|
-
}) => UseMutationResult<
|
|
32
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createPath>>, TError, {
|
|
33
33
|
params: CreatePathParams;
|
|
34
34
|
}, TContext>;
|
|
35
35
|
/**
|
|
36
|
-
* Deletes a Path within the Project. Be aware that the deletion of a Path will result in the contents of the Path also being deleted. If there are files in Path or sub-directories, they will all be deleted.
|
|
36
|
+
* Deletes a Path within the Project. Be aware that the deletion of a Path will result in the contents of the Path also being deleted. If there are files in Path or sub-directories, they will all be deleted.
|
|
37
37
|
|
|
38
38
|
Only Project editors can delete Paths.
|
|
39
39
|
|
|
40
|
-
* @summary Delete a Project Path
|
|
41
|
-
*/
|
|
40
|
+
* @summary Delete a Project Path
|
|
41
|
+
*/
|
|
42
42
|
declare const deletePath: (params: DeletePathParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
43
|
-
declare const
|
|
44
|
-
mutation?: UseMutationOptions<
|
|
43
|
+
declare const useDeletePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
44
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
|
|
45
45
|
params: DeletePathParams;
|
|
46
46
|
}, TContext>;
|
|
47
47
|
request?: SecondParameter<typeof customInstance>;
|
|
48
|
-
}) => UseMutationOptions<
|
|
48
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
|
|
49
49
|
params: DeletePathParams;
|
|
50
50
|
}, TContext>;
|
|
51
51
|
type DeletePathMutationResult = NonNullable<Awaited<ReturnType<typeof deletePath>>>;
|
|
52
52
|
type DeletePathMutationError = ErrorType<void | DmError>;
|
|
53
53
|
/**
|
|
54
|
-
* @summary Delete a Project Path
|
|
55
|
-
*/
|
|
56
|
-
declare const useDeletePath: <
|
|
57
|
-
mutation?: UseMutationOptions<
|
|
54
|
+
* @summary Delete a Project Path
|
|
55
|
+
*/
|
|
56
|
+
declare const useDeletePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
57
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
|
|
58
58
|
params: DeletePathParams;
|
|
59
59
|
}, TContext>;
|
|
60
60
|
request?: SecondParameter<typeof customInstance>;
|
|
61
|
-
}) => UseMutationResult<
|
|
61
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deletePath>>, TError, {
|
|
62
62
|
params: DeletePathParams;
|
|
63
63
|
}, TContext>;
|
|
64
64
|
/**
|
|
65
|
-
* Moves and existing Path within a Project. The path will belong to the User and Project. Any ProjectFile instances on the path will be moved to the new path.
|
|
65
|
+
* Moves and existing Path within a Project. The path will belong to the User and Project. Any ProjectFile instances on the path will be moved to the new path.
|
|
66
66
|
|
|
67
67
|
Only Project editors can move Paths.
|
|
68
68
|
|
|
69
|
-
* @summary Move a Project Path
|
|
70
|
-
*/
|
|
69
|
+
* @summary Move a Project Path
|
|
70
|
+
*/
|
|
71
71
|
declare const movePath: (params: MovePathParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
72
|
-
declare const
|
|
73
|
-
mutation?: UseMutationOptions<
|
|
72
|
+
declare const useMovePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
73
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
|
|
74
74
|
params: MovePathParams;
|
|
75
75
|
}, TContext>;
|
|
76
76
|
request?: SecondParameter<typeof customInstance>;
|
|
77
|
-
}) => UseMutationOptions<
|
|
77
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
|
|
78
78
|
params: MovePathParams;
|
|
79
79
|
}, TContext>;
|
|
80
80
|
type MovePathMutationResult = NonNullable<Awaited<ReturnType<typeof movePath>>>;
|
|
81
81
|
type MovePathMutationError = ErrorType<void | DmError>;
|
|
82
82
|
/**
|
|
83
|
-
* @summary Move a Project Path
|
|
84
|
-
*/
|
|
85
|
-
declare const useMovePath: <
|
|
86
|
-
mutation?: UseMutationOptions<
|
|
83
|
+
* @summary Move a Project Path
|
|
84
|
+
*/
|
|
85
|
+
declare const useMovePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
86
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
|
|
87
87
|
params: MovePathParams;
|
|
88
88
|
}, TContext>;
|
|
89
89
|
request?: SecondParameter<typeof customInstance>;
|
|
90
|
-
}) => UseMutationResult<
|
|
90
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof movePath>>, TError, {
|
|
91
91
|
params: MovePathParams;
|
|
92
92
|
}, TContext>;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* 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).
|
|
95
|
+
|
|
96
|
+
For **managed** files you should consider using the `/file/{file_id}` endpoint.
|
|
97
|
+
|
|
98
|
+
You must be an `editor` of the Project if the Project is `private`
|
|
99
|
+
|
|
100
|
+
* @summary Download a Project file
|
|
101
|
+
*/
|
|
102
|
+
declare const getProjectFile: (projectId: string, params: GetProjectFileParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
103
|
+
declare const getGetProjectFileQueryKey: (projectId: string, params: GetProjectFileParams) => readonly [`/project/${string}/file`, ...GetProjectFileParams[]];
|
|
104
|
+
declare const useGetProjectFileQueryOptions: <TData = Awaited<ReturnType<typeof getProjectFile>>, TError = ErrorType<void | DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
105
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData>>;
|
|
106
|
+
request?: SecondParameter<typeof customInstance>;
|
|
107
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData> & {
|
|
108
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
109
|
+
};
|
|
110
|
+
type GetProjectFileQueryResult = NonNullable<Awaited<ReturnType<typeof getProjectFile>>>;
|
|
111
|
+
type GetProjectFileQueryError = ErrorType<void | DmError>;
|
|
112
|
+
declare function useGetProjectFile<TData = Awaited<ReturnType<typeof getProjectFile>>, TError = ErrorType<void | DmError>>(projectId: string, params: GetProjectFileParams, options: {
|
|
113
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, Awaited<ReturnType<typeof getProjectFile>>>, "initialData">;
|
|
114
|
+
request?: SecondParameter<typeof customInstance>;
|
|
115
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
116
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
117
|
+
};
|
|
118
|
+
declare function useGetProjectFile<TData = Awaited<ReturnType<typeof getProjectFile>>, TError = ErrorType<void | DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
119
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, Awaited<ReturnType<typeof getProjectFile>>>, "initialData">;
|
|
120
|
+
request?: SecondParameter<typeof customInstance>;
|
|
121
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
122
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
123
|
+
};
|
|
124
|
+
declare function useGetProjectFile<TData = Awaited<ReturnType<typeof getProjectFile>>, TError = ErrorType<void | DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
125
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData>>;
|
|
126
|
+
request?: SecondParameter<typeof customInstance>;
|
|
127
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
128
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
129
|
+
};
|
|
130
|
+
declare const useGetProjectFileSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProjectFile>>, TError = ErrorType<void | DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
131
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData>>;
|
|
132
|
+
request?: SecondParameter<typeof customInstance>;
|
|
133
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData> & {
|
|
134
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
135
|
+
};
|
|
136
|
+
type GetProjectFileSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProjectFile>>>;
|
|
137
|
+
type GetProjectFileSuspenseQueryError = ErrorType<void | DmError>;
|
|
138
|
+
declare function useGetProjectFileSuspense<TData = Awaited<ReturnType<typeof getProjectFile>>, TError = ErrorType<void | DmError>>(projectId: string, params: GetProjectFileParams, options: {
|
|
139
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData>>;
|
|
140
|
+
request?: SecondParameter<typeof customInstance>;
|
|
141
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
142
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
143
|
+
};
|
|
144
|
+
declare function useGetProjectFileSuspense<TData = Awaited<ReturnType<typeof getProjectFile>>, TError = ErrorType<void | DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
145
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData>>;
|
|
146
|
+
request?: SecondParameter<typeof customInstance>;
|
|
147
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
148
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
149
|
+
};
|
|
150
|
+
declare function useGetProjectFileSuspense<TData = Awaited<ReturnType<typeof getProjectFile>>, TError = ErrorType<void | DmError>>(projectId: string, params: GetProjectFileParams, options?: {
|
|
151
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFile>>, TError, TData>>;
|
|
152
|
+
request?: SecondParameter<typeof customInstance>;
|
|
153
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
154
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* The user provides an external file for upload to the Project using an optional Path. The path is created if it does not exist.
|
|
158
|
+
|
|
159
|
+
You must be an `editor` of the project
|
|
95
160
|
|
|
96
|
-
* @summary
|
|
97
|
-
*/
|
|
161
|
+
* @summary Upload a file into a Project
|
|
162
|
+
*/
|
|
163
|
+
declare const addFileToProject: (projectId: string, projectFilePutBodyBody: ProjectFilePutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
164
|
+
declare const useAddFileToProjectMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
165
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof addFileToProject>>, TError, {
|
|
166
|
+
projectId: string;
|
|
167
|
+
data: ProjectFilePutBodyBody;
|
|
168
|
+
}, TContext>;
|
|
169
|
+
request?: SecondParameter<typeof customInstance>;
|
|
170
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof addFileToProject>>, TError, {
|
|
171
|
+
projectId: string;
|
|
172
|
+
data: ProjectFilePutBodyBody;
|
|
173
|
+
}, TContext>;
|
|
174
|
+
type AddFileToProjectMutationResult = NonNullable<Awaited<ReturnType<typeof addFileToProject>>>;
|
|
175
|
+
type AddFileToProjectMutationBody = ProjectFilePutBodyBody;
|
|
176
|
+
type AddFileToProjectMutationError = ErrorType<void | DmError>;
|
|
177
|
+
/**
|
|
178
|
+
* @summary Upload a file into a Project
|
|
179
|
+
*/
|
|
180
|
+
declare const useAddFileToProject: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
181
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof addFileToProject>>, TError, {
|
|
182
|
+
projectId: string;
|
|
183
|
+
data: ProjectFilePutBodyBody;
|
|
184
|
+
}, TContext>;
|
|
185
|
+
request?: SecondParameter<typeof customInstance>;
|
|
186
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof addFileToProject>>, TError, {
|
|
187
|
+
projectId: string;
|
|
188
|
+
data: ProjectFilePutBodyBody;
|
|
189
|
+
}, TContext>;
|
|
190
|
+
/**
|
|
191
|
+
* 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).
|
|
192
|
+
|
|
193
|
+
For **managed** files you should consider using the `/file/{file_id}` endpoint.
|
|
194
|
+
|
|
195
|
+
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.
|
|
196
|
+
|
|
197
|
+
* @summary Download a Project file using a Token
|
|
198
|
+
*/
|
|
199
|
+
declare const getProjectFileWithToken: (projectId: string, params: GetProjectFileWithTokenParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
200
|
+
declare const getGetProjectFileWithTokenQueryKey: (projectId: string, params: GetProjectFileWithTokenParams) => readonly [`/project/${string}/file-with-token`, ...GetProjectFileWithTokenParams[]];
|
|
201
|
+
declare const useGetProjectFileWithTokenQueryOptions: <TData = Awaited<ReturnType<typeof getProjectFileWithToken>>, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
202
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData>>;
|
|
203
|
+
request?: SecondParameter<typeof customInstance>;
|
|
204
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData> & {
|
|
205
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
206
|
+
};
|
|
207
|
+
type GetProjectFileWithTokenQueryResult = NonNullable<Awaited<ReturnType<typeof getProjectFileWithToken>>>;
|
|
208
|
+
type GetProjectFileWithTokenQueryError = ErrorType<DmError>;
|
|
209
|
+
declare function useGetProjectFileWithToken<TData = Awaited<ReturnType<typeof getProjectFileWithToken>>, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options: {
|
|
210
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, Awaited<ReturnType<typeof getProjectFileWithToken>>>, "initialData">;
|
|
211
|
+
request?: SecondParameter<typeof customInstance>;
|
|
212
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
213
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
214
|
+
};
|
|
215
|
+
declare function useGetProjectFileWithToken<TData = Awaited<ReturnType<typeof getProjectFileWithToken>>, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
216
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, Awaited<ReturnType<typeof getProjectFileWithToken>>>, "initialData">;
|
|
217
|
+
request?: SecondParameter<typeof customInstance>;
|
|
218
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
219
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
220
|
+
};
|
|
221
|
+
declare function useGetProjectFileWithToken<TData = Awaited<ReturnType<typeof getProjectFileWithToken>>, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
222
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData>>;
|
|
223
|
+
request?: SecondParameter<typeof customInstance>;
|
|
224
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
225
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
226
|
+
};
|
|
227
|
+
declare const useGetProjectFileWithTokenSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProjectFileWithToken>>, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
228
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData>>;
|
|
229
|
+
request?: SecondParameter<typeof customInstance>;
|
|
230
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData> & {
|
|
231
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
232
|
+
};
|
|
233
|
+
type GetProjectFileWithTokenSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProjectFileWithToken>>>;
|
|
234
|
+
type GetProjectFileWithTokenSuspenseQueryError = ErrorType<DmError>;
|
|
235
|
+
declare function useGetProjectFileWithTokenSuspense<TData = Awaited<ReturnType<typeof getProjectFileWithToken>>, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options: {
|
|
236
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData>>;
|
|
237
|
+
request?: SecondParameter<typeof customInstance>;
|
|
238
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
239
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
240
|
+
};
|
|
241
|
+
declare function useGetProjectFileWithTokenSuspense<TData = Awaited<ReturnType<typeof getProjectFileWithToken>>, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
242
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData>>;
|
|
243
|
+
request?: SecondParameter<typeof customInstance>;
|
|
244
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
245
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
246
|
+
};
|
|
247
|
+
declare function useGetProjectFileWithTokenSuspense<TData = Awaited<ReturnType<typeof getProjectFileWithToken>>, TError = ErrorType<DmError>>(projectId: string, params: GetProjectFileWithTokenParams, options?: {
|
|
248
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProjectFileWithToken>>, TError, TData>>;
|
|
249
|
+
request?: SecondParameter<typeof customInstance>;
|
|
250
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
251
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Given a Project and Path the files available to you on that path will be returned along with any additional paths (sub-directories).
|
|
255
|
+
|
|
256
|
+
* @summary Gets the Files on a Project Path
|
|
257
|
+
*/
|
|
98
258
|
declare const getFiles: (params: GetFilesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<FilesGetResponse>;
|
|
99
|
-
declare const getGetFilesQueryKey: (params: GetFilesParams) => readonly ["
|
|
100
|
-
declare const
|
|
259
|
+
declare const getGetFilesQueryKey: (params: GetFilesParams) => readonly ["/file", ...GetFilesParams[]];
|
|
260
|
+
declare const useGetFilesQueryOptions: <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
101
261
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
102
262
|
request?: SecondParameter<typeof customInstance>;
|
|
103
263
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & {
|
|
@@ -106,24 +266,24 @@ declare const getGetFilesQueryOptions: <TData = FilesGetResponse, TError = Error
|
|
|
106
266
|
type GetFilesQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>;
|
|
107
267
|
type GetFilesQueryError = ErrorType<void | DmError>;
|
|
108
268
|
declare function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options: {
|
|
109
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getFiles>>, TError,
|
|
269
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getFiles>>, TError, Awaited<ReturnType<typeof getFiles>>>, "initialData">;
|
|
110
270
|
request?: SecondParameter<typeof customInstance>;
|
|
111
|
-
}): DefinedUseQueryResult<TData, TError> & {
|
|
271
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
112
272
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
113
273
|
};
|
|
114
274
|
declare function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
115
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getFiles>>, TError,
|
|
275
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getFiles>>, TError, Awaited<ReturnType<typeof getFiles>>>, "initialData">;
|
|
116
276
|
request?: SecondParameter<typeof customInstance>;
|
|
117
|
-
}): UseQueryResult<TData, TError> & {
|
|
277
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
118
278
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
119
279
|
};
|
|
120
280
|
declare function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
121
281
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
122
282
|
request?: SecondParameter<typeof customInstance>;
|
|
123
|
-
}): UseQueryResult<TData, TError> & {
|
|
283
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
124
284
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
125
285
|
};
|
|
126
|
-
declare const
|
|
286
|
+
declare const useGetFilesSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
127
287
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
128
288
|
request?: SecondParameter<typeof customInstance>;
|
|
129
289
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & {
|
|
@@ -134,19 +294,19 @@ type GetFilesSuspenseQueryError = ErrorType<void | DmError>;
|
|
|
134
294
|
declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options: {
|
|
135
295
|
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
136
296
|
request?: SecondParameter<typeof customInstance>;
|
|
137
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
297
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
138
298
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
139
299
|
};
|
|
140
300
|
declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
141
301
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
142
302
|
request?: SecondParameter<typeof customInstance>;
|
|
143
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
303
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
144
304
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
145
305
|
};
|
|
146
306
|
declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
147
307
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
148
308
|
request?: SecondParameter<typeof customInstance>;
|
|
149
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
309
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
150
310
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
151
311
|
};
|
|
152
312
|
/**
|
|
@@ -163,127 +323,127 @@ You cannot add a Dataset to a Project until its upload is complete.
|
|
|
163
323
|
* @summary Attach a Dataset, as a File, to a Project
|
|
164
324
|
*/
|
|
165
325
|
declare const attachFile: (filePostBodyBody: FilePostBodyBody, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<FilePostResponse>;
|
|
166
|
-
declare const
|
|
167
|
-
mutation?: UseMutationOptions<
|
|
326
|
+
declare const useAttachFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
327
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
|
|
168
328
|
data: FilePostBodyBody;
|
|
169
329
|
}, TContext>;
|
|
170
330
|
request?: SecondParameter<typeof customInstance>;
|
|
171
|
-
}) => UseMutationOptions<
|
|
331
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
|
|
172
332
|
data: FilePostBodyBody;
|
|
173
333
|
}, TContext>;
|
|
174
334
|
type AttachFileMutationResult = NonNullable<Awaited<ReturnType<typeof attachFile>>>;
|
|
175
335
|
type AttachFileMutationBody = FilePostBodyBody;
|
|
176
336
|
type AttachFileMutationError = ErrorType<void | DmError>;
|
|
177
337
|
/**
|
|
178
|
-
* @summary Attach a Dataset, as a File, to a Project
|
|
179
|
-
*/
|
|
180
|
-
declare const useAttachFile: <
|
|
181
|
-
mutation?: UseMutationOptions<
|
|
338
|
+
* @summary Attach a Dataset, as a File, to a Project
|
|
339
|
+
*/
|
|
340
|
+
declare const useAttachFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
341
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
|
|
182
342
|
data: FilePostBodyBody;
|
|
183
343
|
}, TContext>;
|
|
184
344
|
request?: SecondParameter<typeof customInstance>;
|
|
185
|
-
}) => UseMutationResult<
|
|
345
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof attachFile>>, TError, {
|
|
186
346
|
data: FilePostBodyBody;
|
|
187
347
|
}, TContext>;
|
|
188
348
|
/**
|
|
189
|
-
* Removes an unmanaged file from a Project. You cannot use this endpoint to delete managed project files.
|
|
349
|
+
* Removes an unmanaged file from a Project. You cannot use this endpoint to delete managed project files.
|
|
190
350
|
|
|
191
351
|
You must be an `editor` of the Project to delete a file from a Project.
|
|
192
352
|
|
|
193
|
-
* @summary Delete an unmanaged Project File
|
|
194
|
-
*/
|
|
353
|
+
* @summary Delete an unmanaged Project File
|
|
354
|
+
*/
|
|
195
355
|
declare const deleteUnmanagedFile: (params: DeleteUnmanagedFileParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
196
|
-
declare const
|
|
197
|
-
mutation?: UseMutationOptions<
|
|
356
|
+
declare const useDeleteUnmanagedFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
357
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
|
|
198
358
|
params: DeleteUnmanagedFileParams;
|
|
199
359
|
}, TContext>;
|
|
200
360
|
request?: SecondParameter<typeof customInstance>;
|
|
201
|
-
}) => UseMutationOptions<
|
|
361
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
|
|
202
362
|
params: DeleteUnmanagedFileParams;
|
|
203
363
|
}, TContext>;
|
|
204
364
|
type DeleteUnmanagedFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUnmanagedFile>>>;
|
|
205
365
|
type DeleteUnmanagedFileMutationError = ErrorType<void | DmError>;
|
|
206
366
|
/**
|
|
207
|
-
* @summary Delete an unmanaged Project File
|
|
208
|
-
*/
|
|
209
|
-
declare const useDeleteUnmanagedFile: <
|
|
210
|
-
mutation?: UseMutationOptions<
|
|
367
|
+
* @summary Delete an unmanaged Project File
|
|
368
|
+
*/
|
|
369
|
+
declare const useDeleteUnmanagedFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
370
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
|
|
211
371
|
params: DeleteUnmanagedFileParams;
|
|
212
372
|
}, TContext>;
|
|
213
373
|
request?: SecondParameter<typeof customInstance>;
|
|
214
|
-
}) => UseMutationResult<
|
|
374
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
|
|
215
375
|
params: DeleteUnmanagedFileParams;
|
|
216
376
|
}, TContext>;
|
|
217
377
|
/**
|
|
218
|
-
* Move an **Unmanaged** file, optionally renaming it, to a new path.
|
|
378
|
+
* Move an **Unmanaged** file, optionally renaming it, to a new path.
|
|
219
379
|
|
|
220
380
|
You must be an `editor` of the project
|
|
221
381
|
|
|
222
|
-
* @summary Move an unmanaged file in a Project
|
|
223
|
-
*/
|
|
382
|
+
* @summary Move an unmanaged file in a Project
|
|
383
|
+
*/
|
|
224
384
|
declare const moveFileInProject: (params: MoveFileInProjectParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
225
|
-
declare const
|
|
226
|
-
mutation?: UseMutationOptions<
|
|
385
|
+
declare const useMoveFileInProjectMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
386
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
|
|
227
387
|
params: MoveFileInProjectParams;
|
|
228
388
|
}, TContext>;
|
|
229
389
|
request?: SecondParameter<typeof customInstance>;
|
|
230
|
-
}) => UseMutationOptions<
|
|
390
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
|
|
231
391
|
params: MoveFileInProjectParams;
|
|
232
392
|
}, TContext>;
|
|
233
393
|
type MoveFileInProjectMutationResult = NonNullable<Awaited<ReturnType<typeof moveFileInProject>>>;
|
|
234
394
|
type MoveFileInProjectMutationError = ErrorType<void | DmError>;
|
|
235
395
|
/**
|
|
236
|
-
* @summary Move an unmanaged file in a Project
|
|
237
|
-
*/
|
|
238
|
-
declare const useMoveFileInProject: <
|
|
239
|
-
mutation?: UseMutationOptions<
|
|
396
|
+
* @summary Move an unmanaged file in a Project
|
|
397
|
+
*/
|
|
398
|
+
declare const useMoveFileInProject: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
399
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
|
|
240
400
|
params: MoveFileInProjectParams;
|
|
241
401
|
}, TContext>;
|
|
242
402
|
request?: SecondParameter<typeof customInstance>;
|
|
243
|
-
}) => UseMutationResult<
|
|
403
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
|
|
244
404
|
params: MoveFileInProjectParams;
|
|
245
405
|
}, TContext>;
|
|
246
406
|
/**
|
|
247
|
-
* Given a `file_id` the file will be removed from the Project it's attached to.
|
|
407
|
+
* Given a `file_id` the file will be removed from the Project it's attached to.
|
|
248
408
|
|
|
249
409
|
You must be an `editor` of the project to delete a file from a Project. Being an `editor` of the original Dataset does not give you the ability to detach it from the Project.
|
|
250
410
|
|
|
251
411
|
You cannot delete a Project File until the attach is complete.
|
|
252
412
|
|
|
253
|
-
* @summary Delete/detach a File (from a Project)
|
|
254
|
-
*/
|
|
413
|
+
* @summary Delete/detach a File (from a Project)
|
|
414
|
+
*/
|
|
255
415
|
declare const deleteFile: (fileId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
256
|
-
declare const
|
|
257
|
-
mutation?: UseMutationOptions<
|
|
416
|
+
declare const useDeleteFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
417
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
|
|
258
418
|
fileId: string;
|
|
259
419
|
}, TContext>;
|
|
260
420
|
request?: SecondParameter<typeof customInstance>;
|
|
261
|
-
}) => UseMutationOptions<
|
|
421
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
|
|
262
422
|
fileId: string;
|
|
263
423
|
}, TContext>;
|
|
264
424
|
type DeleteFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteFile>>>;
|
|
265
425
|
type DeleteFileMutationError = ErrorType<void | DmError>;
|
|
266
426
|
/**
|
|
267
|
-
* @summary Delete/detach a File (from a Project)
|
|
268
|
-
*/
|
|
269
|
-
declare const useDeleteFile: <
|
|
270
|
-
mutation?: UseMutationOptions<
|
|
427
|
+
* @summary Delete/detach a File (from a Project)
|
|
428
|
+
*/
|
|
429
|
+
declare const useDeleteFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
430
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
|
|
271
431
|
fileId: string;
|
|
272
432
|
}, TContext>;
|
|
273
433
|
request?: SecondParameter<typeof customInstance>;
|
|
274
|
-
}) => UseMutationResult<
|
|
434
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteFile>>, TError, {
|
|
275
435
|
fileId: string;
|
|
276
436
|
}, TContext>;
|
|
277
437
|
/**
|
|
278
|
-
* Given a `file_id` the file will be returned if available.
|
|
438
|
+
* Given a `file_id` the file will be returned if available.
|
|
279
439
|
|
|
280
440
|
You cannot get a Project File until the attach is complete.
|
|
281
441
|
|
|
282
|
-
* @summary Download a File (from a project)
|
|
283
|
-
*/
|
|
442
|
+
* @summary Download a File (from a project)
|
|
443
|
+
*/
|
|
284
444
|
declare const downloadFile: (fileId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
285
|
-
declare const getDownloadFileQueryKey: (fileId: string) => readonly [
|
|
286
|
-
declare const
|
|
445
|
+
declare const getDownloadFileQueryKey: (fileId: string) => readonly [`/file/${string}`];
|
|
446
|
+
declare const useDownloadFileQueryOptions: <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
287
447
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
288
448
|
request?: SecondParameter<typeof customInstance>;
|
|
289
449
|
}) => UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & {
|
|
@@ -292,24 +452,24 @@ declare const getDownloadFileQueryOptions: <TData = void, TError = ErrorType<voi
|
|
|
292
452
|
type DownloadFileQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>;
|
|
293
453
|
type DownloadFileQueryError = ErrorType<void | DmError>;
|
|
294
454
|
declare function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options: {
|
|
295
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof downloadFile>>, TError,
|
|
455
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof downloadFile>>, TError, Awaited<ReturnType<typeof downloadFile>>>, "initialData">;
|
|
296
456
|
request?: SecondParameter<typeof customInstance>;
|
|
297
|
-
}): DefinedUseQueryResult<TData, TError> & {
|
|
457
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
298
458
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
299
459
|
};
|
|
300
460
|
declare function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
301
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof downloadFile>>, TError,
|
|
461
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof downloadFile>>, TError, Awaited<ReturnType<typeof downloadFile>>>, "initialData">;
|
|
302
462
|
request?: SecondParameter<typeof customInstance>;
|
|
303
|
-
}): UseQueryResult<TData, TError> & {
|
|
463
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
304
464
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
305
465
|
};
|
|
306
466
|
declare function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
307
467
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
308
468
|
request?: SecondParameter<typeof customInstance>;
|
|
309
|
-
}): UseQueryResult<TData, TError> & {
|
|
469
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
310
470
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
311
471
|
};
|
|
312
|
-
declare const
|
|
472
|
+
declare const useDownloadFileSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
313
473
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
314
474
|
request?: SecondParameter<typeof customInstance>;
|
|
315
475
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & {
|
|
@@ -320,20 +480,20 @@ type DownloadFileSuspenseQueryError = ErrorType<void | DmError>;
|
|
|
320
480
|
declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options: {
|
|
321
481
|
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
322
482
|
request?: SecondParameter<typeof customInstance>;
|
|
323
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
483
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
324
484
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
325
485
|
};
|
|
326
486
|
declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
327
487
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
328
488
|
request?: SecondParameter<typeof customInstance>;
|
|
329
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
489
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
330
490
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
331
491
|
};
|
|
332
492
|
declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
333
493
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
334
494
|
request?: SecondParameter<typeof customInstance>;
|
|
335
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
495
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
336
496
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
337
497
|
};
|
|
338
498
|
|
|
339
|
-
export { type AttachFileMutationBody, type AttachFileMutationError, type AttachFileMutationResult, type CreatePathMutationError, type CreatePathMutationResult, type DeleteFileMutationError, type DeleteFileMutationResult, type DeletePathMutationError, type DeletePathMutationResult, type DeleteUnmanagedFileMutationError, type DeleteUnmanagedFileMutationResult, type DownloadFileQueryError, type DownloadFileQueryResult, type DownloadFileSuspenseQueryError, type DownloadFileSuspenseQueryResult, type GetFilesQueryError, type GetFilesQueryResult, type GetFilesSuspenseQueryError, type GetFilesSuspenseQueryResult, type MoveFileInProjectMutationError, type MoveFileInProjectMutationResult, type MovePathMutationError, type MovePathMutationResult, attachFile, createPath, deleteFile, deletePath, deleteUnmanagedFile, downloadFile,
|
|
499
|
+
export { type AddFileToProjectMutationBody, type AddFileToProjectMutationError, type AddFileToProjectMutationResult, type AttachFileMutationBody, type AttachFileMutationError, type AttachFileMutationResult, type CreatePathMutationError, type CreatePathMutationResult, type DeleteFileMutationError, type DeleteFileMutationResult, type DeletePathMutationError, type DeletePathMutationResult, type DeleteUnmanagedFileMutationError, type DeleteUnmanagedFileMutationResult, type DownloadFileQueryError, type DownloadFileQueryResult, type DownloadFileSuspenseQueryError, type DownloadFileSuspenseQueryResult, type GetFilesQueryError, type GetFilesQueryResult, type GetFilesSuspenseQueryError, type GetFilesSuspenseQueryResult, type GetProjectFileQueryError, type GetProjectFileQueryResult, type GetProjectFileSuspenseQueryError, type GetProjectFileSuspenseQueryResult, type GetProjectFileWithTokenQueryError, type GetProjectFileWithTokenQueryResult, type GetProjectFileWithTokenSuspenseQueryError, type GetProjectFileWithTokenSuspenseQueryResult, type MoveFileInProjectMutationError, type MoveFileInProjectMutationResult, type MovePathMutationError, type MovePathMutationResult, addFileToProject, attachFile, createPath, deleteFile, deletePath, deleteUnmanagedFile, downloadFile, getDownloadFileQueryKey, getFiles, getGetFilesQueryKey, getGetProjectFileQueryKey, getGetProjectFileWithTokenQueryKey, getProjectFile, getProjectFileWithToken, moveFileInProject, movePath, useAddFileToProject, useAddFileToProjectMutationOptions, useAttachFile, useAttachFileMutationOptions, useCreatePath, useCreatePathMutationOptions, useDeleteFile, useDeleteFileMutationOptions, useDeletePath, useDeletePathMutationOptions, useDeleteUnmanagedFile, useDeleteUnmanagedFileMutationOptions, useDownloadFile, useDownloadFileQueryOptions, useDownloadFileSuspense, useDownloadFileSuspenseQueryOptions, useGetFiles, useGetFilesQueryOptions, useGetFilesSuspense, useGetFilesSuspenseQueryOptions, useGetProjectFile, useGetProjectFileQueryOptions, useGetProjectFileSuspense, useGetProjectFileSuspenseQueryOptions, useGetProjectFileWithToken, useGetProjectFileWithTokenQueryOptions, useGetProjectFileWithTokenSuspense, useGetProjectFileWithTokenSuspenseQueryOptions, useMoveFileInProject, useMoveFileInProjectMutationOptions, useMovePath, useMovePathMutationOptions };
|