@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.
Files changed (119) hide show
  1. package/accounting/accounting.cjs +12 -12
  2. package/accounting/accounting.cjs.map +1 -1
  3. package/accounting/accounting.d.cts +103 -49
  4. package/accounting/accounting.d.ts +103 -49
  5. package/accounting/accounting.js +12 -12
  6. package/accounting/accounting.js.map +1 -1
  7. package/admin/admin.cjs +12 -12
  8. package/admin/admin.cjs.map +1 -1
  9. package/admin/admin.d.cts +168 -115
  10. package/admin/admin.d.ts +168 -115
  11. package/admin/admin.js +12 -12
  12. package/admin/admin.js.map +1 -1
  13. package/application/application.cjs +8 -8
  14. package/application/application.cjs.map +1 -1
  15. package/application/application.d.cts +69 -33
  16. package/application/application.d.ts +69 -33
  17. package/application/application.js +8 -8
  18. package/application/application.js.map +1 -1
  19. package/chunk-TKLTUR4R.cjs.map +1 -1
  20. package/configuration/configuration.cjs +4 -4
  21. package/configuration/configuration.cjs.map +1 -1
  22. package/configuration/configuration.d.cts +35 -17
  23. package/configuration/configuration.d.ts +35 -17
  24. package/configuration/configuration.js +4 -4
  25. package/configuration/configuration.js.map +1 -1
  26. package/dataset/dataset.cjs +16 -16
  27. package/dataset/dataset.cjs.map +1 -1
  28. package/dataset/dataset.d.cts +181 -110
  29. package/dataset/dataset.d.ts +181 -110
  30. package/dataset/dataset.js +16 -16
  31. package/dataset/dataset.js.map +1 -1
  32. package/digest/digest.cjs +4 -4
  33. package/digest/digest.cjs.map +1 -1
  34. package/digest/digest.d.cts +35 -17
  35. package/digest/digest.d.ts +35 -17
  36. package/digest/digest.js +4 -4
  37. package/digest/digest.js.map +1 -1
  38. package/exchange-rate/exchange-rate.cjs +16 -16
  39. package/exchange-rate/exchange-rate.cjs.map +1 -1
  40. package/exchange-rate/exchange-rate.d.cts +155 -84
  41. package/exchange-rate/exchange-rate.d.ts +155 -84
  42. package/exchange-rate/exchange-rate.js +16 -16
  43. package/exchange-rate/exchange-rate.js.map +1 -1
  44. package/file-and-path/file-and-path.cjs +8 -8
  45. package/file-and-path/file-and-path.cjs.map +1 -1
  46. package/file-and-path/file-and-path.d.cts +133 -98
  47. package/file-and-path/file-and-path.d.ts +133 -98
  48. package/file-and-path/file-and-path.js +8 -8
  49. package/file-and-path/file-and-path.js.map +1 -1
  50. package/index.cjs.map +1 -1
  51. package/index.d.cts +156 -68
  52. package/index.d.ts +156 -68
  53. package/index.js.map +1 -1
  54. package/instance/instance.cjs +8 -8
  55. package/instance/instance.cjs.map +1 -1
  56. package/instance/instance.d.cts +106 -71
  57. package/instance/instance.d.ts +106 -71
  58. package/instance/instance.js +8 -8
  59. package/instance/instance.js.map +1 -1
  60. package/inventory/inventory.cjs +4 -4
  61. package/inventory/inventory.cjs.map +1 -1
  62. package/inventory/inventory.d.cts +35 -17
  63. package/inventory/inventory.d.ts +35 -17
  64. package/inventory/inventory.js +4 -4
  65. package/inventory/inventory.js.map +1 -1
  66. package/job/job.cjs +12 -12
  67. package/job/job.cjs.map +1 -1
  68. package/job/job.d.cts +103 -49
  69. package/job/job.d.ts +103 -49
  70. package/job/job.js +12 -12
  71. package/job/job.js.map +1 -1
  72. package/metadata/metadata.cjs +8 -8
  73. package/metadata/metadata.cjs.map +1 -1
  74. package/metadata/metadata.d.cts +81 -46
  75. package/metadata/metadata.d.ts +81 -46
  76. package/metadata/metadata.js +8 -8
  77. package/metadata/metadata.js.map +1 -1
  78. package/package.json +7 -7
  79. package/project/project.cjs +16 -16
  80. package/project/project.cjs.map +1 -1
  81. package/project/project.d.cts +225 -154
  82. package/project/project.d.ts +225 -154
  83. package/project/project.js +16 -16
  84. package/project/project.js.map +1 -1
  85. package/src/accounting/accounting.ts +137 -13
  86. package/src/admin/admin.ts +217 -52
  87. package/src/application/application.ts +93 -9
  88. package/src/configuration/configuration.ts +49 -5
  89. package/src/data-manager-api.schemas.ts +156 -70
  90. package/src/dataset/dataset.ts +250 -42
  91. package/src/digest/digest.ts +49 -5
  92. package/src/exchange-rate/exchange-rate.ts +216 -29
  93. package/src/file-and-path/file-and-path.ts +172 -52
  94. package/src/instance/instance.ts +137 -27
  95. package/src/inventory/inventory.ts +49 -5
  96. package/src/job/job.ts +143 -13
  97. package/src/metadata/metadata.ts +116 -15
  98. package/src/project/project.ts +302 -75
  99. package/src/task/task.ts +111 -15
  100. package/src/type/type.ts +49 -5
  101. package/src/user/user.ts +149 -19
  102. package/task/task.cjs +8 -8
  103. package/task/task.cjs.map +1 -1
  104. package/task/task.d.cts +78 -43
  105. package/task/task.d.ts +78 -43
  106. package/task/task.js +8 -8
  107. package/task/task.js.map +1 -1
  108. package/type/type.cjs +4 -4
  109. package/type/type.cjs.map +1 -1
  110. package/type/type.d.cts +35 -17
  111. package/type/type.d.ts +35 -17
  112. package/type/type.js +4 -4
  113. package/type/type.js.map +1 -1
  114. package/user/user.cjs +12 -12
  115. package/user/user.cjs.map +1 -1
  116. package/user/user.d.cts +112 -59
  117. package/user/user.d.ts +112 -59
  118. package/user/user.js +12 -12
  119. package/user/user.js.map +1 -1
@@ -1,5 +1,6 @@
1
+ // @ts-nocheck
1
2
  /**
2
- * Generated by orval v6.25.0 🍺
3
+ * Generated by orval v7.2.0 🍺
3
4
  * Do not edit manually.
4
5
  * Dataset Manager API
5
6
  * The Dataset Manager API service.
@@ -14,10 +15,14 @@ import {
14
15
  useSuspenseQuery
15
16
  } from '@tanstack/react-query'
16
17
  import type {
18
+ DefinedInitialDataOptions,
19
+ DefinedUseQueryResult,
17
20
  MutationFunction,
18
21
  QueryFunction,
19
22
  QueryKey,
23
+ UndefinedInitialDataOptions,
20
24
  UseMutationOptions,
25
+ UseMutationResult,
21
26
  UseQueryOptions,
22
27
  UseQueryResult,
23
28
  UseSuspenseQueryOptions,
@@ -63,10 +68,10 @@ export const createPath = (
63
68
 
64
69
 
65
70
 
66
- export const getCreatePathMutationOptions = <TError = ErrorType<DmError>,
71
+ export const getCreatePathMutationOptions = <TError = ErrorType<void | DmError>,
67
72
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}
68
73
  ): UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext> => {
69
- const {mutation: mutationOptions, request: requestOptions} = options ?? {};
74
+ const {mutation: mutationOptions, request: requestOptions} = options ?? {};
70
75
 
71
76
 
72
77
 
@@ -80,18 +85,23 @@ export const getCreatePathMutationOptions = <TError = ErrorType<DmError>,
80
85
 
81
86
 
82
87
 
83
- return { mutationFn, ...mutationOptions }}
88
+ return { mutationFn, ...mutationOptions }}
84
89
 
85
90
  export type CreatePathMutationResult = NonNullable<Awaited<ReturnType<typeof createPath>>>
86
91
 
87
- export type CreatePathMutationError = ErrorType<DmError>
92
+ export type CreatePathMutationError = ErrorType<void | DmError>
88
93
 
89
94
  /**
90
95
  * @summary Create a new Project Path
91
96
  */
92
- export const useCreatePath = <TError = ErrorType<DmError>,
97
+ export const useCreatePath = <TError = ErrorType<void | DmError>,
93
98
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}
94
- ) => {
99
+ ): UseMutationResult<
100
+ Awaited<ReturnType<typeof createPath>>,
101
+ TError,
102
+ {params: CreatePathParams},
103
+ TContext
104
+ > => {
95
105
 
96
106
  const mutationOptions = getCreatePathMutationOptions(options);
97
107
 
@@ -118,10 +128,10 @@ export const deletePath = (
118
128
 
119
129
 
120
130
 
121
- export const getDeletePathMutationOptions = <TError = ErrorType<DmError>,
131
+ export const getDeletePathMutationOptions = <TError = ErrorType<void | DmError>,
122
132
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}
123
133
  ): UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext> => {
124
- const {mutation: mutationOptions, request: requestOptions} = options ?? {};
134
+ const {mutation: mutationOptions, request: requestOptions} = options ?? {};
125
135
 
126
136
 
127
137
 
@@ -135,18 +145,23 @@ export const getDeletePathMutationOptions = <TError = ErrorType<DmError>,
135
145
 
136
146
 
137
147
 
138
- return { mutationFn, ...mutationOptions }}
148
+ return { mutationFn, ...mutationOptions }}
139
149
 
140
150
  export type DeletePathMutationResult = NonNullable<Awaited<ReturnType<typeof deletePath>>>
141
151
 
142
- export type DeletePathMutationError = ErrorType<DmError>
152
+ export type DeletePathMutationError = ErrorType<void | DmError>
143
153
 
144
154
  /**
145
155
  * @summary Delete a Project Path
146
156
  */
147
- export const useDeletePath = <TError = ErrorType<DmError>,
157
+ export const useDeletePath = <TError = ErrorType<void | DmError>,
148
158
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}
149
- ) => {
159
+ ): UseMutationResult<
160
+ Awaited<ReturnType<typeof deletePath>>,
161
+ TError,
162
+ {params: DeletePathParams},
163
+ TContext
164
+ > => {
150
165
 
151
166
  const mutationOptions = getDeletePathMutationOptions(options);
152
167
 
@@ -173,10 +188,10 @@ export const movePath = (
173
188
 
174
189
 
175
190
 
176
- export const getMovePathMutationOptions = <TError = ErrorType<DmError>,
191
+ export const getMovePathMutationOptions = <TError = ErrorType<void | DmError>,
177
192
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError,{params: MovePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}
178
193
  ): UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError,{params: MovePathParams}, TContext> => {
179
- const {mutation: mutationOptions, request: requestOptions} = options ?? {};
194
+ const {mutation: mutationOptions, request: requestOptions} = options ?? {};
180
195
 
181
196
 
182
197
 
@@ -190,18 +205,23 @@ export const getMovePathMutationOptions = <TError = ErrorType<DmError>,
190
205
 
191
206
 
192
207
 
193
- return { mutationFn, ...mutationOptions }}
208
+ return { mutationFn, ...mutationOptions }}
194
209
 
195
210
  export type MovePathMutationResult = NonNullable<Awaited<ReturnType<typeof movePath>>>
196
211
 
197
- export type MovePathMutationError = ErrorType<DmError>
212
+ export type MovePathMutationError = ErrorType<void | DmError>
198
213
 
199
214
  /**
200
215
  * @summary Move a Project Path
201
216
  */
202
- export const useMovePath = <TError = ErrorType<DmError>,
217
+ export const useMovePath = <TError = ErrorType<void | DmError>,
203
218
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof movePath>>, TError,{params: MovePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}
204
- ) => {
219
+ ): UseMutationResult<
220
+ Awaited<ReturnType<typeof movePath>>,
221
+ TError,
222
+ {params: MovePathParams},
223
+ TContext
224
+ > => {
205
225
 
206
226
  const mutationOptions = getMovePathMutationOptions(options);
207
227
 
@@ -252,13 +272,39 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
252
272
  export type GetFilesQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>
253
273
  export type GetFilesQueryError = ErrorType<void | DmError>
254
274
 
275
+
276
+ export function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
277
+ params: GetFilesParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>> & Pick<
278
+ DefinedInitialDataOptions<
279
+ Awaited<ReturnType<typeof getFiles>>,
280
+ TError,
281
+ TData
282
+ > , 'initialData'
283
+ >, request?: SecondParameter<typeof customInstance>}
284
+
285
+ ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
286
+ export function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
287
+ params: GetFilesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>> & Pick<
288
+ UndefinedInitialDataOptions<
289
+ Awaited<ReturnType<typeof getFiles>>,
290
+ TError,
291
+ TData
292
+ > , 'initialData'
293
+ >, request?: SecondParameter<typeof customInstance>}
294
+
295
+ ): UseQueryResult<TData, TError> & { queryKey: QueryKey }
296
+ export function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
297
+ params: GetFilesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
298
+
299
+ ): UseQueryResult<TData, TError> & { queryKey: QueryKey }
255
300
  /**
256
301
  * @summary Gets the Files on a Project Path
257
302
  */
258
- export const useGetFiles = <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
303
+
304
+ export function useGetFiles<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
259
305
  params: GetFilesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
260
306
 
261
- ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
307
+ ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
262
308
 
263
309
  const queryOptions = getGetFilesQueryOptions(params,options)
264
310
 
@@ -292,13 +338,27 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
292
338
  export type GetFilesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>
293
339
  export type GetFilesSuspenseQueryError = ErrorType<void | DmError>
294
340
 
341
+
342
+ export function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
343
+ params: GetFilesParams, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
344
+
345
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
346
+ export function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
347
+ params: GetFilesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
348
+
349
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
350
+ export function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
351
+ params: GetFilesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
352
+
353
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
295
354
  /**
296
355
  * @summary Gets the Files on a Project Path
297
356
  */
298
- export const useGetFilesSuspense = <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
357
+
358
+ export function useGetFilesSuspense<TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(
299
359
  params: GetFilesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
300
360
 
301
- ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {
361
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
302
362
 
303
363
  const queryOptions = getGetFilesSuspenseQueryOptions(params,options)
304
364
 
@@ -356,7 +416,7 @@ if(filePostBodyBody.immutable !== undefined) {
356
416
  export const getAttachFileMutationOptions = <TError = ErrorType<void | DmError>,
357
417
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
358
418
  ): UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext> => {
359
- const {mutation: mutationOptions, request: requestOptions} = options ?? {};
419
+ const {mutation: mutationOptions, request: requestOptions} = options ?? {};
360
420
 
361
421
 
362
422
 
@@ -370,7 +430,7 @@ export const getAttachFileMutationOptions = <TError = ErrorType<void | DmError>,
370
430
 
371
431
 
372
432
 
373
- return { mutationFn, ...mutationOptions }}
433
+ return { mutationFn, ...mutationOptions }}
374
434
 
375
435
  export type AttachFileMutationResult = NonNullable<Awaited<ReturnType<typeof attachFile>>>
376
436
  export type AttachFileMutationBody = FilePostBodyBody
@@ -381,7 +441,12 @@ export const getAttachFileMutationOptions = <TError = ErrorType<void | DmError>,
381
441
  */
382
442
  export const useAttachFile = <TError = ErrorType<void | DmError>,
383
443
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}
384
- ) => {
444
+ ): UseMutationResult<
445
+ Awaited<ReturnType<typeof attachFile>>,
446
+ TError,
447
+ {data: FilePostBodyBody},
448
+ TContext
449
+ > => {
385
450
 
386
451
  const mutationOptions = getAttachFileMutationOptions(options);
387
452
 
@@ -408,10 +473,10 @@ export const deleteUnmanagedFile = (
408
473
 
409
474
 
410
475
 
411
- export const getDeleteUnmanagedFileMutationOptions = <TError = ErrorType<DmError>,
476
+ export const getDeleteUnmanagedFileMutationOptions = <TError = ErrorType<void | DmError>,
412
477
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext>, request?: SecondParameter<typeof customInstance>}
413
478
  ): UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext> => {
414
- const {mutation: mutationOptions, request: requestOptions} = options ?? {};
479
+ const {mutation: mutationOptions, request: requestOptions} = options ?? {};
415
480
 
416
481
 
417
482
 
@@ -425,18 +490,23 @@ export const getDeleteUnmanagedFileMutationOptions = <TError = ErrorType<DmError
425
490
 
426
491
 
427
492
 
428
- return { mutationFn, ...mutationOptions }}
493
+ return { mutationFn, ...mutationOptions }}
429
494
 
430
495
  export type DeleteUnmanagedFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUnmanagedFile>>>
431
496
 
432
- export type DeleteUnmanagedFileMutationError = ErrorType<DmError>
497
+ export type DeleteUnmanagedFileMutationError = ErrorType<void | DmError>
433
498
 
434
499
  /**
435
500
  * @summary Delete an unmanaged Project File
436
501
  */
437
- export const useDeleteUnmanagedFile = <TError = ErrorType<DmError>,
502
+ export const useDeleteUnmanagedFile = <TError = ErrorType<void | DmError>,
438
503
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext>, request?: SecondParameter<typeof customInstance>}
439
- ) => {
504
+ ): UseMutationResult<
505
+ Awaited<ReturnType<typeof deleteUnmanagedFile>>,
506
+ TError,
507
+ {params: DeleteUnmanagedFileParams},
508
+ TContext
509
+ > => {
440
510
 
441
511
  const mutationOptions = getDeleteUnmanagedFileMutationOptions(options);
442
512
 
@@ -463,10 +533,10 @@ export const moveFileInProject = (
463
533
 
464
534
 
465
535
 
466
- export const getMoveFileInProjectMutationOptions = <TError = ErrorType<DmError>,
536
+ export const getMoveFileInProjectMutationOptions = <TError = ErrorType<void | DmError>,
467
537
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError,{params: MoveFileInProjectParams}, TContext>, request?: SecondParameter<typeof customInstance>}
468
538
  ): UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError,{params: MoveFileInProjectParams}, TContext> => {
469
- const {mutation: mutationOptions, request: requestOptions} = options ?? {};
539
+ const {mutation: mutationOptions, request: requestOptions} = options ?? {};
470
540
 
471
541
 
472
542
 
@@ -480,18 +550,23 @@ export const getMoveFileInProjectMutationOptions = <TError = ErrorType<DmError>,
480
550
 
481
551
 
482
552
 
483
- return { mutationFn, ...mutationOptions }}
553
+ return { mutationFn, ...mutationOptions }}
484
554
 
485
555
  export type MoveFileInProjectMutationResult = NonNullable<Awaited<ReturnType<typeof moveFileInProject>>>
486
556
 
487
- export type MoveFileInProjectMutationError = ErrorType<DmError>
557
+ export type MoveFileInProjectMutationError = ErrorType<void | DmError>
488
558
 
489
559
  /**
490
560
  * @summary Move an unmanaged file in a Project
491
561
  */
492
- export const useMoveFileInProject = <TError = ErrorType<DmError>,
562
+ export const useMoveFileInProject = <TError = ErrorType<void | DmError>,
493
563
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof moveFileInProject>>, TError,{params: MoveFileInProjectParams}, TContext>, request?: SecondParameter<typeof customInstance>}
494
- ) => {
564
+ ): UseMutationResult<
565
+ Awaited<ReturnType<typeof moveFileInProject>>,
566
+ TError,
567
+ {params: MoveFileInProjectParams},
568
+ TContext
569
+ > => {
495
570
 
496
571
  const mutationOptions = getMoveFileInProjectMutationOptions(options);
497
572
 
@@ -519,10 +594,10 @@ export const deleteFile = (
519
594
 
520
595
 
521
596
 
522
- export const getDeleteFileMutationOptions = <TError = ErrorType<DmError>,
597
+ export const getDeleteFileMutationOptions = <TError = ErrorType<void | DmError>,
523
598
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext>, request?: SecondParameter<typeof customInstance>}
524
599
  ): UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext> => {
525
- const {mutation: mutationOptions, request: requestOptions} = options ?? {};
600
+ const {mutation: mutationOptions, request: requestOptions} = options ?? {};
526
601
 
527
602
 
528
603
 
@@ -536,18 +611,23 @@ export const getDeleteFileMutationOptions = <TError = ErrorType<DmError>,
536
611
 
537
612
 
538
613
 
539
- return { mutationFn, ...mutationOptions }}
614
+ return { mutationFn, ...mutationOptions }}
540
615
 
541
616
  export type DeleteFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteFile>>>
542
617
 
543
- export type DeleteFileMutationError = ErrorType<DmError>
618
+ export type DeleteFileMutationError = ErrorType<void | DmError>
544
619
 
545
620
  /**
546
621
  * @summary Delete/detach a File (from a Project)
547
622
  */
548
- export const useDeleteFile = <TError = ErrorType<DmError>,
623
+ export const useDeleteFile = <TError = ErrorType<void | DmError>,
549
624
  TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext>, request?: SecondParameter<typeof customInstance>}
550
- ) => {
625
+ ): UseMutationResult<
626
+ Awaited<ReturnType<typeof deleteFile>>,
627
+ TError,
628
+ {fileId: string},
629
+ TContext
630
+ > => {
551
631
 
552
632
  const mutationOptions = getDeleteFileMutationOptions(options);
553
633
 
@@ -578,7 +658,7 @@ export const getDownloadFileQueryKey = (fileId: string,) => {
578
658
  }
579
659
 
580
660
 
581
- export const getDownloadFileQueryOptions = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<DmError>>(fileId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
661
+ export const getDownloadFileQueryOptions = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
582
662
  ) => {
583
663
 
584
664
  const {query: queryOptions, request: requestOptions} = options ?? {};
@@ -597,15 +677,41 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
597
677
  }
598
678
 
599
679
  export type DownloadFileQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>
600
- export type DownloadFileQueryError = ErrorType<DmError>
680
+ export type DownloadFileQueryError = ErrorType<void | DmError>
681
+
682
+
683
+ export function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(
684
+ fileId: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>> & Pick<
685
+ DefinedInitialDataOptions<
686
+ Awaited<ReturnType<typeof downloadFile>>,
687
+ TError,
688
+ TData
689
+ > , 'initialData'
690
+ >, request?: SecondParameter<typeof customInstance>}
691
+
692
+ ): DefinedUseQueryResult<TData, TError> & { queryKey: QueryKey }
693
+ export function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(
694
+ fileId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>> & Pick<
695
+ UndefinedInitialDataOptions<
696
+ Awaited<ReturnType<typeof downloadFile>>,
697
+ TError,
698
+ TData
699
+ > , 'initialData'
700
+ >, request?: SecondParameter<typeof customInstance>}
701
+
702
+ ): UseQueryResult<TData, TError> & { queryKey: QueryKey }
703
+ export function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(
704
+ fileId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
601
705
 
706
+ ): UseQueryResult<TData, TError> & { queryKey: QueryKey }
602
707
  /**
603
708
  * @summary Download a File (from a project)
604
709
  */
605
- export const useDownloadFile = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<DmError>>(
710
+
711
+ export function useDownloadFile<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(
606
712
  fileId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
607
713
 
608
- ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
714
+ ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
609
715
 
610
716
  const queryOptions = getDownloadFileQueryOptions(fileId,options)
611
717
 
@@ -618,7 +724,7 @@ export const useDownloadFile = <TData = Awaited<ReturnType<typeof downloadFile>>
618
724
 
619
725
 
620
726
 
621
- export const getDownloadFileSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<DmError>>(fileId: string, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
727
+ export const getDownloadFileSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(fileId: string, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
622
728
  ) => {
623
729
 
624
730
  const {query: queryOptions, request: requestOptions} = options ?? {};
@@ -637,15 +743,29 @@ const {query: queryOptions, request: requestOptions} = options ?? {};
637
743
  }
638
744
 
639
745
  export type DownloadFileSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>
640
- export type DownloadFileSuspenseQueryError = ErrorType<DmError>
746
+ export type DownloadFileSuspenseQueryError = ErrorType<void | DmError>
747
+
641
748
 
749
+ export function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(
750
+ fileId: string, options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
751
+
752
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
753
+ export function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(
754
+ fileId: string, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
755
+
756
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
757
+ export function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(
758
+ fileId: string, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
759
+
760
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey }
642
761
  /**
643
762
  * @summary Download a File (from a project)
644
763
  */
645
- export const useDownloadFileSuspense = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<DmError>>(
764
+
765
+ export function useDownloadFileSuspense<TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<void | DmError>>(
646
766
  fileId: string, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}
647
767
 
648
- ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {
768
+ ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {
649
769
 
650
770
  const queryOptions = getDownloadFileSuspenseQueryOptions(fileId,options)
651
771