@squonk/data-manager-client 3.1.0-beta.2 → 3.1.0
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 +12 -12
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +103 -49
- package/accounting/accounting.d.ts +103 -49
- package/accounting/accounting.js +12 -12
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +12 -12
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +168 -115
- package/admin/admin.d.ts +168 -115
- package/admin/admin.js +12 -12
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +8 -8
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +69 -33
- package/application/application.d.ts +69 -33
- package/application/application.js +8 -8
- package/application/application.js.map +1 -1
- package/chunk-TKLTUR4R.cjs.map +1 -1
- package/configuration/configuration.cjs +4 -4
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +35 -17
- package/configuration/configuration.d.ts +35 -17
- package/configuration/configuration.js +4 -4
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +16 -16
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +181 -110
- package/dataset/dataset.d.ts +181 -110
- package/dataset/dataset.js +16 -16
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +4 -4
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +35 -17
- package/digest/digest.d.ts +35 -17
- package/digest/digest.js +4 -4
- package/digest/digest.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +16 -16
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +155 -84
- package/exchange-rate/exchange-rate.d.ts +155 -84
- package/exchange-rate/exchange-rate.js +16 -16
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file-and-path/file-and-path.cjs +8 -8
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +133 -98
- package/file-and-path/file-and-path.d.ts +133 -98
- package/file-and-path/file-and-path.js +8 -8
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.cts +156 -68
- package/index.d.ts +156 -68
- package/index.js.map +1 -1
- package/instance/instance.cjs +8 -8
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +106 -71
- package/instance/instance.d.ts +106 -71
- package/instance/instance.js +8 -8
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +4 -4
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +35 -17
- package/inventory/inventory.d.ts +35 -17
- package/inventory/inventory.js +4 -4
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +12 -12
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +103 -49
- package/job/job.d.ts +103 -49
- package/job/job.js +12 -12
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +8 -8
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +81 -46
- package/metadata/metadata.d.ts +81 -46
- package/metadata/metadata.js +8 -8
- package/metadata/metadata.js.map +1 -1
- package/package.json +7 -7
- package/project/project.cjs +16 -16
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +225 -154
- package/project/project.d.ts +225 -154
- package/project/project.js +16 -16
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +137 -13
- package/src/admin/admin.ts +217 -52
- package/src/application/application.ts +93 -9
- package/src/configuration/configuration.ts +49 -5
- package/src/data-manager-api.schemas.ts +156 -70
- package/src/dataset/dataset.ts +250 -42
- package/src/digest/digest.ts +49 -5
- package/src/exchange-rate/exchange-rate.ts +216 -29
- package/src/file-and-path/file-and-path.ts +172 -52
- package/src/instance/instance.ts +137 -27
- package/src/inventory/inventory.ts +49 -5
- package/src/job/job.ts +143 -13
- package/src/metadata/metadata.ts +116 -15
- package/src/project/project.ts +302 -75
- package/src/task/task.ts +111 -15
- package/src/type/type.ts +49 -5
- package/src/user/user.ts +149 -19
- package/task/task.cjs +8 -8
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +78 -43
- package/task/task.d.ts +78 -43
- package/task/task.js +8 -8
- package/task/task.js.map +1 -1
- package/type/type.cjs +4 -4
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +35 -17
- package/type/type.d.ts +35 -17
- package/type/type.js +4 -4
- package/type/type.js.map +1 -1
- package/user/user.cjs +12 -12
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +112 -59
- package/user/user.d.ts +112 -59
- package/user/user.js +12 -12
- package/user/user.js.map +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
|
|
1
|
+
import { UseMutationOptions, UseMutationResult, UseQueryOptions, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
|
|
3
2
|
import { CreatePathParams, customInstance, ErrorType, DmError, DeletePathParams, MovePathParams, GetFilesParams, FilesGetResponse, FilePostBodyBody, FilePostResponse, DeleteUnmanagedFileParams, MoveFileInProjectParams } from '../index.cjs';
|
|
4
3
|
import 'axios';
|
|
5
4
|
|
|
@@ -12,25 +11,25 @@ Only Project editors can create Paths.
|
|
|
12
11
|
* @summary Create a new Project Path
|
|
13
12
|
*/
|
|
14
13
|
declare const createPath: (params: CreatePathParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
15
|
-
declare const getCreatePathMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
16
|
-
mutation?: UseMutationOptions<
|
|
14
|
+
declare const getCreatePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
15
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
|
|
17
16
|
params: CreatePathParams;
|
|
18
|
-
}, TContext
|
|
17
|
+
}, TContext>;
|
|
19
18
|
request?: SecondParameter<typeof customInstance>;
|
|
20
|
-
}
|
|
19
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
|
|
21
20
|
params: CreatePathParams;
|
|
22
21
|
}, TContext>;
|
|
23
22
|
type CreatePathMutationResult = NonNullable<Awaited<ReturnType<typeof createPath>>>;
|
|
24
|
-
type CreatePathMutationError = ErrorType<DmError>;
|
|
23
|
+
type CreatePathMutationError = ErrorType<void | DmError>;
|
|
25
24
|
/**
|
|
26
25
|
* @summary Create a new Project Path
|
|
27
26
|
*/
|
|
28
|
-
declare const useCreatePath: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
29
|
-
mutation?: UseMutationOptions<
|
|
27
|
+
declare const useCreatePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
28
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
|
|
30
29
|
params: CreatePathParams;
|
|
31
|
-
}, TContext
|
|
30
|
+
}, TContext>;
|
|
32
31
|
request?: SecondParameter<typeof customInstance>;
|
|
33
|
-
}
|
|
32
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof createPath>>, TError, {
|
|
34
33
|
params: CreatePathParams;
|
|
35
34
|
}, TContext>;
|
|
36
35
|
/**
|
|
@@ -41,25 +40,25 @@ Only Project editors can delete Paths.
|
|
|
41
40
|
* @summary Delete a Project Path
|
|
42
41
|
*/
|
|
43
42
|
declare const deletePath: (params: DeletePathParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
44
|
-
declare const getDeletePathMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
45
|
-
mutation?: UseMutationOptions<
|
|
43
|
+
declare const getDeletePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
44
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
|
|
46
45
|
params: DeletePathParams;
|
|
47
|
-
}, TContext
|
|
46
|
+
}, TContext>;
|
|
48
47
|
request?: SecondParameter<typeof customInstance>;
|
|
49
|
-
}
|
|
48
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
|
|
50
49
|
params: DeletePathParams;
|
|
51
50
|
}, TContext>;
|
|
52
51
|
type DeletePathMutationResult = NonNullable<Awaited<ReturnType<typeof deletePath>>>;
|
|
53
|
-
type DeletePathMutationError = ErrorType<DmError>;
|
|
52
|
+
type DeletePathMutationError = ErrorType<void | DmError>;
|
|
54
53
|
/**
|
|
55
54
|
* @summary Delete a Project Path
|
|
56
55
|
*/
|
|
57
|
-
declare const useDeletePath: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
58
|
-
mutation?: UseMutationOptions<
|
|
56
|
+
declare const useDeletePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
57
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
|
|
59
58
|
params: DeletePathParams;
|
|
60
|
-
}, TContext
|
|
59
|
+
}, TContext>;
|
|
61
60
|
request?: SecondParameter<typeof customInstance>;
|
|
62
|
-
}
|
|
61
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof deletePath>>, TError, {
|
|
63
62
|
params: DeletePathParams;
|
|
64
63
|
}, TContext>;
|
|
65
64
|
/**
|
|
@@ -70,25 +69,25 @@ Only Project editors can move Paths.
|
|
|
70
69
|
* @summary Move a Project Path
|
|
71
70
|
*/
|
|
72
71
|
declare const movePath: (params: MovePathParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
73
|
-
declare const getMovePathMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
74
|
-
mutation?: UseMutationOptions<
|
|
72
|
+
declare const getMovePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
73
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
|
|
75
74
|
params: MovePathParams;
|
|
76
|
-
}, TContext
|
|
75
|
+
}, TContext>;
|
|
77
76
|
request?: SecondParameter<typeof customInstance>;
|
|
78
|
-
}
|
|
77
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
|
|
79
78
|
params: MovePathParams;
|
|
80
79
|
}, TContext>;
|
|
81
80
|
type MovePathMutationResult = NonNullable<Awaited<ReturnType<typeof movePath>>>;
|
|
82
|
-
type MovePathMutationError = ErrorType<DmError>;
|
|
81
|
+
type MovePathMutationError = ErrorType<void | DmError>;
|
|
83
82
|
/**
|
|
84
83
|
* @summary Move a Project Path
|
|
85
84
|
*/
|
|
86
|
-
declare const useMovePath: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
87
|
-
mutation?: UseMutationOptions<
|
|
85
|
+
declare const useMovePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
86
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
|
|
88
87
|
params: MovePathParams;
|
|
89
|
-
}, TContext
|
|
88
|
+
}, TContext>;
|
|
90
89
|
request?: SecondParameter<typeof customInstance>;
|
|
91
|
-
}
|
|
90
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof movePath>>, TError, {
|
|
92
91
|
params: MovePathParams;
|
|
93
92
|
}, TContext>;
|
|
94
93
|
/**
|
|
@@ -99,37 +98,55 @@ declare const useMovePath: <TError = ErrorType<DmError>, TContext = unknown>(opt
|
|
|
99
98
|
declare const getFiles: (params: GetFilesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<FilesGetResponse>;
|
|
100
99
|
declare const getGetFilesQueryKey: (params: GetFilesParams) => readonly ["data-manager-api", "/file", ...GetFilesParams[]];
|
|
101
100
|
declare const getGetFilesQueryOptions: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
102
|
-
query?: Partial<UseQueryOptions<
|
|
101
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
103
102
|
request?: SecondParameter<typeof customInstance>;
|
|
104
|
-
}
|
|
103
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & {
|
|
105
104
|
queryKey: QueryKey;
|
|
106
105
|
};
|
|
107
106
|
type GetFilesQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>;
|
|
108
107
|
type GetFilesQueryError = ErrorType<void | DmError>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
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, TData>, 'initialData'>;
|
|
110
|
+
request?: SecondParameter<typeof customInstance>;
|
|
111
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
112
|
+
queryKey: QueryKey;
|
|
113
|
+
};
|
|
114
|
+
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, TData>, 'initialData'>;
|
|
116
|
+
request?: SecondParameter<typeof customInstance>;
|
|
117
|
+
}): UseQueryResult<TData, TError> & {
|
|
118
|
+
queryKey: QueryKey;
|
|
119
|
+
};
|
|
120
|
+
declare function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
121
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
114
122
|
request?: SecondParameter<typeof customInstance>;
|
|
115
|
-
}
|
|
123
|
+
}): UseQueryResult<TData, TError> & {
|
|
116
124
|
queryKey: QueryKey;
|
|
117
125
|
};
|
|
118
126
|
declare const getGetFilesSuspenseQueryOptions: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
119
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
127
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
120
128
|
request?: SecondParameter<typeof customInstance>;
|
|
121
|
-
}
|
|
129
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & {
|
|
122
130
|
queryKey: QueryKey;
|
|
123
131
|
};
|
|
124
132
|
type GetFilesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>;
|
|
125
133
|
type GetFilesSuspenseQueryError = ErrorType<void | DmError>;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
134
|
+
declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options: {
|
|
135
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
136
|
+
request?: SecondParameter<typeof customInstance>;
|
|
137
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
138
|
+
queryKey: QueryKey;
|
|
139
|
+
};
|
|
140
|
+
declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
141
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
142
|
+
request?: SecondParameter<typeof customInstance>;
|
|
143
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
144
|
+
queryKey: QueryKey;
|
|
145
|
+
};
|
|
146
|
+
declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
|
|
147
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
|
|
131
148
|
request?: SecondParameter<typeof customInstance>;
|
|
132
|
-
}
|
|
149
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
133
150
|
queryKey: QueryKey;
|
|
134
151
|
};
|
|
135
152
|
/**
|
|
@@ -147,11 +164,11 @@ You cannot add a Dataset to a Project until its upload is complete.
|
|
|
147
164
|
*/
|
|
148
165
|
declare const attachFile: (filePostBodyBody: FilePostBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<FilePostResponse>;
|
|
149
166
|
declare const getAttachFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
150
|
-
mutation?: UseMutationOptions<
|
|
167
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
|
|
151
168
|
data: FilePostBodyBody;
|
|
152
|
-
}, TContext
|
|
169
|
+
}, TContext>;
|
|
153
170
|
request?: SecondParameter<typeof customInstance>;
|
|
154
|
-
}
|
|
171
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
|
|
155
172
|
data: FilePostBodyBody;
|
|
156
173
|
}, TContext>;
|
|
157
174
|
type AttachFileMutationResult = NonNullable<Awaited<ReturnType<typeof attachFile>>>;
|
|
@@ -161,11 +178,11 @@ type AttachFileMutationError = ErrorType<void | DmError>;
|
|
|
161
178
|
* @summary Attach a Dataset, as a File, to a Project
|
|
162
179
|
*/
|
|
163
180
|
declare const useAttachFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
164
|
-
mutation?: UseMutationOptions<
|
|
181
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
|
|
165
182
|
data: FilePostBodyBody;
|
|
166
|
-
}, TContext
|
|
183
|
+
}, TContext>;
|
|
167
184
|
request?: SecondParameter<typeof customInstance>;
|
|
168
|
-
}
|
|
185
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof attachFile>>, TError, {
|
|
169
186
|
data: FilePostBodyBody;
|
|
170
187
|
}, TContext>;
|
|
171
188
|
/**
|
|
@@ -176,25 +193,25 @@ You must be an `editor` of the Project to delete a file from a Project.
|
|
|
176
193
|
* @summary Delete an unmanaged Project File
|
|
177
194
|
*/
|
|
178
195
|
declare const deleteUnmanagedFile: (params: DeleteUnmanagedFileParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
179
|
-
declare const getDeleteUnmanagedFileMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
180
|
-
mutation?: UseMutationOptions<
|
|
196
|
+
declare const getDeleteUnmanagedFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
197
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
|
|
181
198
|
params: DeleteUnmanagedFileParams;
|
|
182
|
-
}, TContext
|
|
199
|
+
}, TContext>;
|
|
183
200
|
request?: SecondParameter<typeof customInstance>;
|
|
184
|
-
}
|
|
201
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
|
|
185
202
|
params: DeleteUnmanagedFileParams;
|
|
186
203
|
}, TContext>;
|
|
187
204
|
type DeleteUnmanagedFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUnmanagedFile>>>;
|
|
188
|
-
type DeleteUnmanagedFileMutationError = ErrorType<DmError>;
|
|
205
|
+
type DeleteUnmanagedFileMutationError = ErrorType<void | DmError>;
|
|
189
206
|
/**
|
|
190
207
|
* @summary Delete an unmanaged Project File
|
|
191
208
|
*/
|
|
192
|
-
declare const useDeleteUnmanagedFile: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
193
|
-
mutation?: UseMutationOptions<
|
|
209
|
+
declare const useDeleteUnmanagedFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
210
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
|
|
194
211
|
params: DeleteUnmanagedFileParams;
|
|
195
|
-
}, TContext
|
|
212
|
+
}, TContext>;
|
|
196
213
|
request?: SecondParameter<typeof customInstance>;
|
|
197
|
-
}
|
|
214
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
|
|
198
215
|
params: DeleteUnmanagedFileParams;
|
|
199
216
|
}, TContext>;
|
|
200
217
|
/**
|
|
@@ -205,25 +222,25 @@ You must be an `editor` of the project
|
|
|
205
222
|
* @summary Move an unmanaged file in a Project
|
|
206
223
|
*/
|
|
207
224
|
declare const moveFileInProject: (params: MoveFileInProjectParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
208
|
-
declare const getMoveFileInProjectMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
209
|
-
mutation?: UseMutationOptions<
|
|
225
|
+
declare const getMoveFileInProjectMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
226
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
|
|
210
227
|
params: MoveFileInProjectParams;
|
|
211
|
-
}, TContext
|
|
228
|
+
}, TContext>;
|
|
212
229
|
request?: SecondParameter<typeof customInstance>;
|
|
213
|
-
}
|
|
230
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
|
|
214
231
|
params: MoveFileInProjectParams;
|
|
215
232
|
}, TContext>;
|
|
216
233
|
type MoveFileInProjectMutationResult = NonNullable<Awaited<ReturnType<typeof moveFileInProject>>>;
|
|
217
|
-
type MoveFileInProjectMutationError = ErrorType<DmError>;
|
|
234
|
+
type MoveFileInProjectMutationError = ErrorType<void | DmError>;
|
|
218
235
|
/**
|
|
219
236
|
* @summary Move an unmanaged file in a Project
|
|
220
237
|
*/
|
|
221
|
-
declare const useMoveFileInProject: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
222
|
-
mutation?: UseMutationOptions<
|
|
238
|
+
declare const useMoveFileInProject: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
239
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
|
|
223
240
|
params: MoveFileInProjectParams;
|
|
224
|
-
}, TContext
|
|
241
|
+
}, TContext>;
|
|
225
242
|
request?: SecondParameter<typeof customInstance>;
|
|
226
|
-
}
|
|
243
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
|
|
227
244
|
params: MoveFileInProjectParams;
|
|
228
245
|
}, TContext>;
|
|
229
246
|
/**
|
|
@@ -236,25 +253,25 @@ You cannot delete a Project File until the attach is complete.
|
|
|
236
253
|
* @summary Delete/detach a File (from a Project)
|
|
237
254
|
*/
|
|
238
255
|
declare const deleteFile: (fileId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
239
|
-
declare const getDeleteFileMutationOptions: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
240
|
-
mutation?: UseMutationOptions<
|
|
256
|
+
declare const getDeleteFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
257
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
|
|
241
258
|
fileId: string;
|
|
242
|
-
}, TContext
|
|
259
|
+
}, TContext>;
|
|
243
260
|
request?: SecondParameter<typeof customInstance>;
|
|
244
|
-
}
|
|
261
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
|
|
245
262
|
fileId: string;
|
|
246
263
|
}, TContext>;
|
|
247
264
|
type DeleteFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteFile>>>;
|
|
248
|
-
type DeleteFileMutationError = ErrorType<DmError>;
|
|
265
|
+
type DeleteFileMutationError = ErrorType<void | DmError>;
|
|
249
266
|
/**
|
|
250
267
|
* @summary Delete/detach a File (from a Project)
|
|
251
268
|
*/
|
|
252
|
-
declare const useDeleteFile: <TError = ErrorType<DmError>, TContext = unknown>(options?: {
|
|
253
|
-
mutation?: UseMutationOptions<
|
|
269
|
+
declare const useDeleteFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
|
|
270
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
|
|
254
271
|
fileId: string;
|
|
255
|
-
}, TContext
|
|
272
|
+
}, TContext>;
|
|
256
273
|
request?: SecondParameter<typeof customInstance>;
|
|
257
|
-
}
|
|
274
|
+
}) => UseMutationResult<Awaited<ReturnType<typeof deleteFile>>, TError, {
|
|
258
275
|
fileId: string;
|
|
259
276
|
}, TContext>;
|
|
260
277
|
/**
|
|
@@ -266,38 +283,56 @@ You cannot get a Project File until the attach is complete.
|
|
|
266
283
|
*/
|
|
267
284
|
declare const downloadFile: (fileId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
|
|
268
285
|
declare const getDownloadFileQueryKey: (fileId: string) => readonly ["data-manager-api", `/file/${string}`];
|
|
269
|
-
declare const getDownloadFileQueryOptions: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
|
|
270
|
-
query?: Partial<UseQueryOptions<
|
|
286
|
+
declare const getDownloadFileQueryOptions: <TData = void, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
287
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
271
288
|
request?: SecondParameter<typeof customInstance>;
|
|
272
|
-
}
|
|
289
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & {
|
|
273
290
|
queryKey: QueryKey;
|
|
274
291
|
};
|
|
275
292
|
type DownloadFileQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>;
|
|
276
|
-
type DownloadFileQueryError = ErrorType<DmError>;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
293
|
+
type DownloadFileQueryError = ErrorType<void | DmError>;
|
|
294
|
+
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, TData>, 'initialData'>;
|
|
296
|
+
request?: SecondParameter<typeof customInstance>;
|
|
297
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
298
|
+
queryKey: QueryKey;
|
|
299
|
+
};
|
|
300
|
+
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, TData>, 'initialData'>;
|
|
302
|
+
request?: SecondParameter<typeof customInstance>;
|
|
303
|
+
}): UseQueryResult<TData, TError> & {
|
|
304
|
+
queryKey: QueryKey;
|
|
305
|
+
};
|
|
306
|
+
declare function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
307
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
282
308
|
request?: SecondParameter<typeof customInstance>;
|
|
283
|
-
}
|
|
309
|
+
}): UseQueryResult<TData, TError> & {
|
|
284
310
|
queryKey: QueryKey;
|
|
285
311
|
};
|
|
286
|
-
declare const getDownloadFileSuspenseQueryOptions: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
|
|
287
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
312
|
+
declare const getDownloadFileSuspenseQueryOptions: <TData = void, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
313
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
288
314
|
request?: SecondParameter<typeof customInstance>;
|
|
289
|
-
}
|
|
315
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & {
|
|
290
316
|
queryKey: QueryKey;
|
|
291
317
|
};
|
|
292
318
|
type DownloadFileSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>;
|
|
293
|
-
type DownloadFileSuspenseQueryError = ErrorType<DmError>;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
319
|
+
type DownloadFileSuspenseQueryError = ErrorType<void | DmError>;
|
|
320
|
+
declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options: {
|
|
321
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
322
|
+
request?: SecondParameter<typeof customInstance>;
|
|
323
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
324
|
+
queryKey: QueryKey;
|
|
325
|
+
};
|
|
326
|
+
declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
327
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
328
|
+
request?: SecondParameter<typeof customInstance>;
|
|
329
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
330
|
+
queryKey: QueryKey;
|
|
331
|
+
};
|
|
332
|
+
declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
|
|
333
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
|
|
299
334
|
request?: SecondParameter<typeof customInstance>;
|
|
300
|
-
}
|
|
335
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
301
336
|
queryKey: QueryKey;
|
|
302
337
|
};
|
|
303
338
|
|