@squonk/data-manager-client 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/accounting/accounting.cjs.map +1 -1
  2. package/accounting/accounting.d.cts +25 -25
  3. package/accounting/accounting.d.ts +25 -25
  4. package/accounting/accounting.js.map +1 -1
  5. package/admin/admin.cjs +16 -8
  6. package/admin/admin.cjs.map +1 -1
  7. package/admin/admin.d.cts +73 -73
  8. package/admin/admin.d.ts +73 -73
  9. package/admin/admin.js +16 -8
  10. package/admin/admin.js.map +1 -1
  11. package/application/application.cjs +1 -1
  12. package/application/application.cjs.map +1 -1
  13. package/application/application.d.cts +17 -17
  14. package/application/application.d.ts +17 -17
  15. package/application/application.js +1 -1
  16. package/application/application.js.map +1 -1
  17. package/configuration/configuration.cjs.map +1 -1
  18. package/configuration/configuration.d.cts +9 -9
  19. package/configuration/configuration.d.ts +9 -9
  20. package/configuration/configuration.js.map +1 -1
  21. package/dataset/dataset.cjs +16 -10
  22. package/dataset/dataset.cjs.map +1 -1
  23. package/dataset/dataset.d.cts +64 -64
  24. package/dataset/dataset.d.ts +64 -64
  25. package/dataset/dataset.js +16 -10
  26. package/dataset/dataset.js.map +1 -1
  27. package/digest/digest.cjs +1 -1
  28. package/digest/digest.cjs.map +1 -1
  29. package/digest/digest.d.cts +9 -9
  30. package/digest/digest.d.ts +9 -9
  31. package/digest/digest.js +1 -1
  32. package/digest/digest.js.map +1 -1
  33. package/exchange-rate/exchange-rate.cjs +6 -4
  34. package/exchange-rate/exchange-rate.cjs.map +1 -1
  35. package/exchange-rate/exchange-rate.d.cts +45 -45
  36. package/exchange-rate/exchange-rate.d.ts +45 -45
  37. package/exchange-rate/exchange-rate.js +6 -4
  38. package/exchange-rate/exchange-rate.js.map +1 -1
  39. package/file-and-path/file-and-path.cjs +18 -10
  40. package/file-and-path/file-and-path.cjs.map +1 -1
  41. package/file-and-path/file-and-path.d.cts +60 -60
  42. package/file-and-path/file-and-path.d.ts +60 -60
  43. package/file-and-path/file-and-path.js +18 -10
  44. package/file-and-path/file-and-path.js.map +1 -1
  45. package/index.cjs +8 -8
  46. package/index.cjs.map +1 -1
  47. package/index.d.cts +537 -537
  48. package/index.d.ts +537 -537
  49. package/index.js +8 -8
  50. package/index.js.map +1 -1
  51. package/instance/instance.cjs +17 -10
  52. package/instance/instance.cjs.map +1 -1
  53. package/instance/instance.d.cts +49 -49
  54. package/instance/instance.d.ts +49 -49
  55. package/instance/instance.js +17 -10
  56. package/instance/instance.js.map +1 -1
  57. package/inventory/inventory.cjs.map +1 -1
  58. package/inventory/inventory.d.cts +9 -9
  59. package/inventory/inventory.d.ts +9 -9
  60. package/inventory/inventory.js.map +1 -1
  61. package/job/job.cjs +1 -1
  62. package/job/job.cjs.map +1 -1
  63. package/job/job.d.cts +25 -25
  64. package/job/job.d.ts +25 -25
  65. package/job/job.js +1 -1
  66. package/job/job.js.map +1 -1
  67. package/metadata/metadata.cjs +12 -8
  68. package/metadata/metadata.cjs.map +1 -1
  69. package/metadata/metadata.d.cts +31 -31
  70. package/metadata/metadata.d.ts +31 -31
  71. package/metadata/metadata.js +12 -8
  72. package/metadata/metadata.js.map +1 -1
  73. package/package.json +11 -11
  74. package/project/project.cjs +26 -15
  75. package/project/project.cjs.map +1 -1
  76. package/project/project.d.cts +94 -94
  77. package/project/project.d.ts +94 -94
  78. package/project/project.js +26 -15
  79. package/project/project.js.map +1 -1
  80. package/src/accounting/accounting.ts +38 -37
  81. package/src/admin/admin.ts +142 -101
  82. package/src/application/application.ts +26 -25
  83. package/src/configuration/configuration.ts +14 -13
  84. package/src/data-manager-api.schemas.ts +545 -545
  85. package/src/dataset/dataset.ts +118 -91
  86. package/src/digest/digest.ts +14 -13
  87. package/src/exchange-rate/exchange-rate.ts +76 -65
  88. package/src/file-and-path/file-and-path.ts +120 -83
  89. package/src/instance/instance.ts +97 -69
  90. package/src/inventory/inventory.ts +14 -13
  91. package/src/job/job.ts +38 -37
  92. package/src/metadata/metadata.ts +58 -45
  93. package/src/project/project.ts +183 -131
  94. package/src/task/task.ts +39 -33
  95. package/src/type/type.ts +14 -13
  96. package/src/user/user.ts +51 -45
  97. package/task/task.cjs +3 -2
  98. package/task/task.cjs.map +1 -1
  99. package/task/task.d.cts +23 -23
  100. package/task/task.d.ts +23 -23
  101. package/task/task.js +3 -2
  102. package/task/task.js.map +1 -1
  103. package/type/type.cjs.map +1 -1
  104. package/type/type.d.cts +9 -9
  105. package/type/type.d.ts +9 -9
  106. package/type/type.js.map +1 -1
  107. package/user/user.cjs +2 -1
  108. package/user/user.cjs.map +1 -1
  109. package/user/user.d.cts +31 -31
  110. package/user/user.d.ts +31 -31
  111. package/user/user.js +2 -1
  112. package/user/user.js.map +1 -1
@@ -1,4 +1,4 @@
1
- import { UseMutationOptions, UseMutationResult, UseQueryOptions, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
1
+ import { UseMutationOptions, UseMutationResult, UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
2
2
  import { CreatePathParams, customInstance, ErrorType, DmError, DeletePathParams, MovePathParams, GetFilesParams, FilesGetResponse, FilePostBodyBody, FilePostResponse, DeleteUnmanagedFileParams, MoveFileInProjectParams } from '../index.cjs';
3
3
  import 'axios';
4
4
 
@@ -11,12 +11,12 @@ 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 getCreatePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
15
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
14
+ declare const getCreatePathMutationOptions: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
15
+ mutation?: UseMutationOptions<TData, TError, {
16
16
  params: CreatePathParams;
17
17
  }, TContext>;
18
18
  request?: SecondParameter<typeof customInstance>;
19
- }) => UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
19
+ }) => UseMutationOptions<TData, TError, {
20
20
  params: CreatePathParams;
21
21
  }, TContext>;
22
22
  type CreatePathMutationResult = NonNullable<Awaited<ReturnType<typeof createPath>>>;
@@ -24,12 +24,12 @@ type CreatePathMutationError = ErrorType<void | DmError>;
24
24
  /**
25
25
  * @summary Create a new Project Path
26
26
  */
27
- declare const useCreatePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
28
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError, {
27
+ declare const useCreatePath: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
28
+ mutation?: UseMutationOptions<TData, TError, {
29
29
  params: CreatePathParams;
30
30
  }, TContext>;
31
31
  request?: SecondParameter<typeof customInstance>;
32
- }) => UseMutationResult<Awaited<ReturnType<typeof createPath>>, TError, {
32
+ }) => UseMutationResult<TData, TError, {
33
33
  params: CreatePathParams;
34
34
  }, TContext>;
35
35
  /**
@@ -40,12 +40,12 @@ Only Project editors can delete Paths.
40
40
  * @summary Delete a Project Path
41
41
  */
42
42
  declare const deletePath: (params: DeletePathParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
43
- declare const getDeletePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
44
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
43
+ declare const getDeletePathMutationOptions: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
44
+ mutation?: UseMutationOptions<TData, TError, {
45
45
  params: DeletePathParams;
46
46
  }, TContext>;
47
47
  request?: SecondParameter<typeof customInstance>;
48
- }) => UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
48
+ }) => UseMutationOptions<TData, TError, {
49
49
  params: DeletePathParams;
50
50
  }, TContext>;
51
51
  type DeletePathMutationResult = NonNullable<Awaited<ReturnType<typeof deletePath>>>;
@@ -53,12 +53,12 @@ type DeletePathMutationError = ErrorType<void | DmError>;
53
53
  /**
54
54
  * @summary Delete a Project Path
55
55
  */
56
- declare const useDeletePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
57
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError, {
56
+ declare const useDeletePath: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
57
+ mutation?: UseMutationOptions<TData, TError, {
58
58
  params: DeletePathParams;
59
59
  }, TContext>;
60
60
  request?: SecondParameter<typeof customInstance>;
61
- }) => UseMutationResult<Awaited<ReturnType<typeof deletePath>>, TError, {
61
+ }) => UseMutationResult<TData, TError, {
62
62
  params: DeletePathParams;
63
63
  }, TContext>;
64
64
  /**
@@ -69,12 +69,12 @@ Only Project editors can move Paths.
69
69
  * @summary Move a Project Path
70
70
  */
71
71
  declare const movePath: (params: MovePathParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
72
- declare const getMovePathMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
73
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
72
+ declare const getMovePathMutationOptions: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
73
+ mutation?: UseMutationOptions<TData, TError, {
74
74
  params: MovePathParams;
75
75
  }, TContext>;
76
76
  request?: SecondParameter<typeof customInstance>;
77
- }) => UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
77
+ }) => UseMutationOptions<TData, TError, {
78
78
  params: MovePathParams;
79
79
  }, TContext>;
80
80
  type MovePathMutationResult = NonNullable<Awaited<ReturnType<typeof movePath>>>;
@@ -82,12 +82,12 @@ type MovePathMutationError = ErrorType<void | DmError>;
82
82
  /**
83
83
  * @summary Move a Project Path
84
84
  */
85
- declare const useMovePath: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
86
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError, {
85
+ declare const useMovePath: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
86
+ mutation?: UseMutationOptions<TData, TError, {
87
87
  params: MovePathParams;
88
88
  }, TContext>;
89
89
  request?: SecondParameter<typeof customInstance>;
90
- }) => UseMutationResult<Awaited<ReturnType<typeof movePath>>, TError, {
90
+ }) => UseMutationResult<TData, TError, {
91
91
  params: MovePathParams;
92
92
  }, TContext>;
93
93
  /**
@@ -101,7 +101,7 @@ declare const getGetFilesQueryOptions: <TData = FilesGetResponse, TError = Error
101
101
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
102
102
  request?: SecondParameter<typeof customInstance>;
103
103
  }) => UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & {
104
- queryKey: QueryKey;
104
+ queryKey: DataTag<QueryKey, TData, TError>;
105
105
  };
106
106
  type GetFilesQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>;
107
107
  type GetFilesQueryError = ErrorType<void | DmError>;
@@ -109,25 +109,25 @@ declare function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TErro
109
109
  query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>, 'initialData'>;
110
110
  request?: SecondParameter<typeof customInstance>;
111
111
  }): DefinedUseQueryResult<TData, TError> & {
112
- queryKey: QueryKey;
112
+ queryKey: DataTag<QueryKey, TData, TError>;
113
113
  };
114
114
  declare function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
115
115
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>, 'initialData'>;
116
116
  request?: SecondParameter<typeof customInstance>;
117
117
  }): UseQueryResult<TData, TError> & {
118
- queryKey: QueryKey;
118
+ queryKey: DataTag<QueryKey, TData, TError>;
119
119
  };
120
120
  declare function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
121
121
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
122
122
  request?: SecondParameter<typeof customInstance>;
123
123
  }): UseQueryResult<TData, TError> & {
124
- queryKey: QueryKey;
124
+ queryKey: DataTag<QueryKey, TData, TError>;
125
125
  };
126
126
  declare const getGetFilesSuspenseQueryOptions: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
127
127
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
128
128
  request?: SecondParameter<typeof customInstance>;
129
129
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & {
130
- queryKey: QueryKey;
130
+ queryKey: DataTag<QueryKey, TData, TError>;
131
131
  };
132
132
  type GetFilesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>;
133
133
  type GetFilesSuspenseQueryError = ErrorType<void | DmError>;
@@ -135,19 +135,19 @@ declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>
135
135
  query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
136
136
  request?: SecondParameter<typeof customInstance>;
137
137
  }): UseSuspenseQueryResult<TData, TError> & {
138
- queryKey: QueryKey;
138
+ queryKey: DataTag<QueryKey, TData, TError>;
139
139
  };
140
140
  declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
141
141
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
142
142
  request?: SecondParameter<typeof customInstance>;
143
143
  }): UseSuspenseQueryResult<TData, TError> & {
144
- queryKey: QueryKey;
144
+ queryKey: DataTag<QueryKey, TData, TError>;
145
145
  };
146
146
  declare function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
147
147
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>;
148
148
  request?: SecondParameter<typeof customInstance>;
149
149
  }): UseSuspenseQueryResult<TData, TError> & {
150
- queryKey: QueryKey;
150
+ queryKey: DataTag<QueryKey, TData, TError>;
151
151
  };
152
152
  /**
153
153
  * Given a Project and a Dataset the Dataset will be attached (added) to the project as a File using the format provided. When attached the Dataset is referred to as a Project **File**. As format conversion may take some time the file may not be immediately available. You should use the `task_id` you're presented with on the `/task` endpoint to determine when the file is available to the project.
@@ -162,13 +162,13 @@ You cannot add a Dataset to a Project until its upload is complete.
162
162
 
163
163
  * @summary Attach a Dataset, as a File, to a Project
164
164
  */
165
- declare const attachFile: (filePostBodyBody: FilePostBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<FilePostResponse>;
166
- declare const getAttachFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
167
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
165
+ declare const attachFile: (filePostBodyBody: FilePostBodyBody, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<FilePostResponse>;
166
+ declare const getAttachFileMutationOptions: <TData = FilePostResponse, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
167
+ mutation?: UseMutationOptions<TData, TError, {
168
168
  data: FilePostBodyBody;
169
169
  }, TContext>;
170
170
  request?: SecondParameter<typeof customInstance>;
171
- }) => UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
171
+ }) => UseMutationOptions<TData, TError, {
172
172
  data: FilePostBodyBody;
173
173
  }, TContext>;
174
174
  type AttachFileMutationResult = NonNullable<Awaited<ReturnType<typeof attachFile>>>;
@@ -177,12 +177,12 @@ type AttachFileMutationError = ErrorType<void | DmError>;
177
177
  /**
178
178
  * @summary Attach a Dataset, as a File, to a Project
179
179
  */
180
- declare const useAttachFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
181
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError, {
180
+ declare const useAttachFile: <TData = FilePostResponse, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
181
+ mutation?: UseMutationOptions<TData, TError, {
182
182
  data: FilePostBodyBody;
183
183
  }, TContext>;
184
184
  request?: SecondParameter<typeof customInstance>;
185
- }) => UseMutationResult<Awaited<ReturnType<typeof attachFile>>, TError, {
185
+ }) => UseMutationResult<TData, TError, {
186
186
  data: FilePostBodyBody;
187
187
  }, TContext>;
188
188
  /**
@@ -193,12 +193,12 @@ You must be an `editor` of the Project to delete a file from a Project.
193
193
  * @summary Delete an unmanaged Project File
194
194
  */
195
195
  declare const deleteUnmanagedFile: (params: DeleteUnmanagedFileParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
196
- declare const getDeleteUnmanagedFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
197
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
196
+ declare const getDeleteUnmanagedFileMutationOptions: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
197
+ mutation?: UseMutationOptions<TData, TError, {
198
198
  params: DeleteUnmanagedFileParams;
199
199
  }, TContext>;
200
200
  request?: SecondParameter<typeof customInstance>;
201
- }) => UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
201
+ }) => UseMutationOptions<TData, TError, {
202
202
  params: DeleteUnmanagedFileParams;
203
203
  }, TContext>;
204
204
  type DeleteUnmanagedFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUnmanagedFile>>>;
@@ -206,12 +206,12 @@ type DeleteUnmanagedFileMutationError = ErrorType<void | DmError>;
206
206
  /**
207
207
  * @summary Delete an unmanaged Project File
208
208
  */
209
- declare const useDeleteUnmanagedFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
210
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
209
+ declare const useDeleteUnmanagedFile: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
210
+ mutation?: UseMutationOptions<TData, TError, {
211
211
  params: DeleteUnmanagedFileParams;
212
212
  }, TContext>;
213
213
  request?: SecondParameter<typeof customInstance>;
214
- }) => UseMutationResult<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError, {
214
+ }) => UseMutationResult<TData, TError, {
215
215
  params: DeleteUnmanagedFileParams;
216
216
  }, TContext>;
217
217
  /**
@@ -222,12 +222,12 @@ You must be an `editor` of the project
222
222
  * @summary Move an unmanaged file in a Project
223
223
  */
224
224
  declare const moveFileInProject: (params: MoveFileInProjectParams, options?: SecondParameter<typeof customInstance>) => Promise<void>;
225
- declare const getMoveFileInProjectMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
226
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
225
+ declare const getMoveFileInProjectMutationOptions: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
226
+ mutation?: UseMutationOptions<TData, TError, {
227
227
  params: MoveFileInProjectParams;
228
228
  }, TContext>;
229
229
  request?: SecondParameter<typeof customInstance>;
230
- }) => UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
230
+ }) => UseMutationOptions<TData, TError, {
231
231
  params: MoveFileInProjectParams;
232
232
  }, TContext>;
233
233
  type MoveFileInProjectMutationResult = NonNullable<Awaited<ReturnType<typeof moveFileInProject>>>;
@@ -235,12 +235,12 @@ type MoveFileInProjectMutationError = ErrorType<void | DmError>;
235
235
  /**
236
236
  * @summary Move an unmanaged file in a Project
237
237
  */
238
- declare const useMoveFileInProject: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
239
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
238
+ declare const useMoveFileInProject: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
239
+ mutation?: UseMutationOptions<TData, TError, {
240
240
  params: MoveFileInProjectParams;
241
241
  }, TContext>;
242
242
  request?: SecondParameter<typeof customInstance>;
243
- }) => UseMutationResult<Awaited<ReturnType<typeof moveFileInProject>>, TError, {
243
+ }) => UseMutationResult<TData, TError, {
244
244
  params: MoveFileInProjectParams;
245
245
  }, TContext>;
246
246
  /**
@@ -253,12 +253,12 @@ You cannot delete a Project File until the attach is complete.
253
253
  * @summary Delete/detach a File (from a Project)
254
254
  */
255
255
  declare const deleteFile: (fileId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
256
- declare const getDeleteFileMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
257
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
256
+ declare const getDeleteFileMutationOptions: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
257
+ mutation?: UseMutationOptions<TData, TError, {
258
258
  fileId: string;
259
259
  }, TContext>;
260
260
  request?: SecondParameter<typeof customInstance>;
261
- }) => UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
261
+ }) => UseMutationOptions<TData, TError, {
262
262
  fileId: string;
263
263
  }, TContext>;
264
264
  type DeleteFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteFile>>>;
@@ -266,12 +266,12 @@ type DeleteFileMutationError = ErrorType<void | DmError>;
266
266
  /**
267
267
  * @summary Delete/detach a File (from a Project)
268
268
  */
269
- declare const useDeleteFile: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
270
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError, {
269
+ declare const useDeleteFile: <TData = void, TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
270
+ mutation?: UseMutationOptions<TData, TError, {
271
271
  fileId: string;
272
272
  }, TContext>;
273
273
  request?: SecondParameter<typeof customInstance>;
274
- }) => UseMutationResult<Awaited<ReturnType<typeof deleteFile>>, TError, {
274
+ }) => UseMutationResult<TData, TError, {
275
275
  fileId: string;
276
276
  }, TContext>;
277
277
  /**
@@ -287,7 +287,7 @@ declare const getDownloadFileQueryOptions: <TData = void, TError = ErrorType<voi
287
287
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
288
288
  request?: SecondParameter<typeof customInstance>;
289
289
  }) => UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & {
290
- queryKey: QueryKey;
290
+ queryKey: DataTag<QueryKey, TData, TError>;
291
291
  };
292
292
  type DownloadFileQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>;
293
293
  type DownloadFileQueryError = ErrorType<void | DmError>;
@@ -295,25 +295,25 @@ declare function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>
295
295
  query: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>, 'initialData'>;
296
296
  request?: SecondParameter<typeof customInstance>;
297
297
  }): DefinedUseQueryResult<TData, TError> & {
298
- queryKey: QueryKey;
298
+ queryKey: DataTag<QueryKey, TData, TError>;
299
299
  };
300
300
  declare function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
301
301
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>, 'initialData'>;
302
302
  request?: SecondParameter<typeof customInstance>;
303
303
  }): UseQueryResult<TData, TError> & {
304
- queryKey: QueryKey;
304
+ queryKey: DataTag<QueryKey, TData, TError>;
305
305
  };
306
306
  declare function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
307
307
  query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
308
308
  request?: SecondParameter<typeof customInstance>;
309
309
  }): UseQueryResult<TData, TError> & {
310
- queryKey: QueryKey;
310
+ queryKey: DataTag<QueryKey, TData, TError>;
311
311
  };
312
312
  declare const getDownloadFileSuspenseQueryOptions: <TData = void, TError = ErrorType<void | DmError>>(fileId: string, options?: {
313
313
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
314
314
  request?: SecondParameter<typeof customInstance>;
315
315
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & {
316
- queryKey: QueryKey;
316
+ queryKey: DataTag<QueryKey, TData, TError>;
317
317
  };
318
318
  type DownloadFileSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>;
319
319
  type DownloadFileSuspenseQueryError = ErrorType<void | DmError>;
@@ -321,19 +321,19 @@ declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downl
321
321
  query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
322
322
  request?: SecondParameter<typeof customInstance>;
323
323
  }): UseSuspenseQueryResult<TData, TError> & {
324
- queryKey: QueryKey;
324
+ queryKey: DataTag<QueryKey, TData, TError>;
325
325
  };
326
326
  declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
327
327
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
328
328
  request?: SecondParameter<typeof customInstance>;
329
329
  }): UseSuspenseQueryResult<TData, TError> & {
330
- queryKey: QueryKey;
330
+ queryKey: DataTag<QueryKey, TData, TError>;
331
331
  };
332
332
  declare function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: {
333
333
  query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>;
334
334
  request?: SecondParameter<typeof customInstance>;
335
335
  }): UseSuspenseQueryResult<TData, TError> & {
336
- queryKey: QueryKey;
336
+ queryKey: DataTag<QueryKey, TData, TError>;
337
337
  };
338
338
 
339
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, getAttachFileMutationOptions, getCreatePathMutationOptions, getDeleteFileMutationOptions, getDeletePathMutationOptions, getDeleteUnmanagedFileMutationOptions, getDownloadFileQueryKey, getDownloadFileQueryOptions, getDownloadFileSuspenseQueryOptions, getFiles, getGetFilesQueryKey, getGetFilesQueryOptions, getGetFilesSuspenseQueryOptions, getMoveFileInProjectMutationOptions, getMovePathMutationOptions, moveFileInProject, movePath, useAttachFile, useCreatePath, useDeleteFile, useDeletePath, useDeleteUnmanagedFile, useDownloadFile, useDownloadFileSuspense, useGetFiles, useGetFilesSuspense, useMoveFileInProject, useMovePath };