@squonk/data-manager-client 1.2.8 → 1.2.9

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 (114) hide show
  1. package/README.md +1 -1
  2. package/accounting/accounting.cjs +51 -8
  3. package/accounting/accounting.cjs.map +1 -1
  4. package/accounting/accounting.d.cts +61 -10
  5. package/accounting/accounting.d.ts +61 -10
  6. package/accounting/accounting.js +49 -6
  7. package/accounting/accounting.js.map +1 -1
  8. package/admin/admin.cjs +67 -24
  9. package/admin/admin.cjs.map +1 -1
  10. package/admin/admin.d.cts +75 -24
  11. package/admin/admin.d.ts +75 -24
  12. package/admin/admin.js +56 -13
  13. package/admin/admin.js.map +1 -1
  14. package/application/application.cjs +35 -6
  15. package/application/application.cjs.map +1 -1
  16. package/application/application.d.cts +42 -8
  17. package/application/application.d.ts +42 -8
  18. package/application/application.js +34 -5
  19. package/application/application.js.map +1 -1
  20. package/{chunk-UKA7G3OB.js → chunk-EBOQPVLG.js} +2 -2
  21. package/{chunk-UKA7G3OB.js.map → chunk-EBOQPVLG.js.map} +1 -1
  22. package/{chunk-J22A7LHX.cjs → chunk-TKLTUR4R.cjs} +2 -2
  23. package/chunk-TKLTUR4R.cjs.map +1 -0
  24. package/configuration/configuration.cjs +19 -4
  25. package/configuration/configuration.cjs.map +1 -1
  26. package/configuration/configuration.d.cts +23 -6
  27. package/configuration/configuration.d.ts +23 -6
  28. package/configuration/configuration.js +19 -4
  29. package/configuration/configuration.js.map +1 -1
  30. package/dataset/dataset.cjs +93 -22
  31. package/dataset/dataset.cjs.map +1 -1
  32. package/dataset/dataset.d.cts +105 -20
  33. package/dataset/dataset.d.ts +105 -20
  34. package/dataset/dataset.js +83 -12
  35. package/dataset/dataset.js.map +1 -1
  36. package/exchange-rate/exchange-rate.cjs +71 -14
  37. package/exchange-rate/exchange-rate.cjs.map +1 -1
  38. package/exchange-rate/exchange-rate.d.cts +83 -15
  39. package/exchange-rate/exchange-rate.d.ts +83 -15
  40. package/exchange-rate/exchange-rate.js +65 -8
  41. package/exchange-rate/exchange-rate.js.map +1 -1
  42. package/file-and-path/file-and-path.cjs +45 -16
  43. package/file-and-path/file-and-path.cjs.map +1 -1
  44. package/file-and-path/file-and-path.d.cts +48 -14
  45. package/file-and-path/file-and-path.d.ts +48 -14
  46. package/file-and-path/file-and-path.js +39 -10
  47. package/file-and-path/file-and-path.js.map +1 -1
  48. package/index.cjs +9 -2
  49. package/index.cjs.map +1 -1
  50. package/index.d.cts +2033 -2
  51. package/index.d.ts +2033 -2
  52. package/index.js +8 -1
  53. package/index.js.map +1 -1
  54. package/instance/instance.cjs +45 -16
  55. package/instance/instance.cjs.map +1 -1
  56. package/instance/instance.d.cts +48 -14
  57. package/instance/instance.d.ts +48 -14
  58. package/instance/instance.js +38 -9
  59. package/instance/instance.js.map +1 -1
  60. package/job/job.cjs +51 -8
  61. package/job/job.cjs.map +1 -1
  62. package/job/job.d.cts +61 -10
  63. package/job/job.d.ts +61 -10
  64. package/job/job.js +49 -6
  65. package/job/job.js.map +1 -1
  66. package/metadata/metadata.cjs +39 -10
  67. package/metadata/metadata.cjs.map +1 -1
  68. package/metadata/metadata.d.cts +45 -11
  69. package/metadata/metadata.d.ts +45 -11
  70. package/metadata/metadata.js +36 -7
  71. package/metadata/metadata.js.map +1 -1
  72. package/package.json +11 -11
  73. package/project/project.cjs +83 -26
  74. package/project/project.cjs.map +1 -1
  75. package/project/project.d.cts +89 -21
  76. package/project/project.d.ts +89 -21
  77. package/project/project.js +71 -14
  78. package/project/project.js.map +1 -1
  79. package/src/accounting/accounting.ts +136 -22
  80. package/src/admin/admin.ts +148 -50
  81. package/src/application/application.ts +93 -18
  82. package/src/configuration/configuration.ts +50 -14
  83. package/src/custom-instance.ts +3 -4
  84. package/src/data-manager-api.schemas.ts +59 -33
  85. package/src/dataset/dataset.ts +233 -45
  86. package/src/exchange-rate/exchange-rate.ts +185 -32
  87. package/src/file-and-path/file-and-path.ts +98 -33
  88. package/src/instance/instance.ts +98 -33
  89. package/src/job/job.ts +138 -22
  90. package/src/metadata/metadata.ts +97 -24
  91. package/src/project/project.ts +191 -50
  92. package/src/task/task.ts +96 -21
  93. package/src/type/type.ts +50 -14
  94. package/src/user/user.ts +137 -25
  95. package/task/task.cjs +37 -8
  96. package/task/task.cjs.map +1 -1
  97. package/task/task.d.cts +44 -10
  98. package/task/task.d.ts +44 -10
  99. package/task/task.js +35 -6
  100. package/task/task.js.map +1 -1
  101. package/type/type.cjs +19 -4
  102. package/type/type.cjs.map +1 -1
  103. package/type/type.d.cts +23 -6
  104. package/type/type.d.ts +23 -6
  105. package/type/type.js +19 -4
  106. package/type/type.js.map +1 -1
  107. package/user/user.cjs +53 -10
  108. package/user/user.cjs.map +1 -1
  109. package/user/user.d.cts +63 -12
  110. package/user/user.d.ts +63 -12
  111. package/user/user.js +49 -6
  112. package/user/user.js.map +1 -1
  113. package/chunk-J22A7LHX.cjs.map +0 -1
  114. package/custom-instance-37ed2460.d.ts +0 -2014
@@ -1,9 +1,9 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult } from '@tanstack/react-query';
3
- import { C as CreatePathParams, bZ as customInstance, b_ as ErrorType, bV as DmError, u as DeletePathParams, n as GetFilesParams, bA as FilesGetResponse, af as FilePostBodyBody, bB as FilePostResponse, D as DeleteUnmanagedFileParams } from '../custom-instance-37ed2460.js';
1
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
2
+ import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
3
+ import { CreatePathParams, customInstance, ErrorType, DmError, DeletePathParams, GetFilesParams, FilesGetResponse, FilePostBodyBody, FilePostResponse, DeleteUnmanagedFileParams } from '../index.cjs';
4
4
  import 'axios';
5
5
 
6
- type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
6
+ type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
7
7
  /**
8
8
  * Creates a new Path within a Project. Every directory in the Path will be created. The path will belong to the User and Project.
9
9
 
@@ -30,7 +30,7 @@ declare const useCreatePath: <TError = ErrorType<DmError>, TContext = unknown>(o
30
30
  params: CreatePathParams;
31
31
  }, TContext> | undefined;
32
32
  request?: SecondParameter<typeof customInstance>;
33
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
33
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
34
34
  params: CreatePathParams;
35
35
  }, TContext>;
36
36
  /**
@@ -59,7 +59,7 @@ declare const useDeletePath: <TError = ErrorType<DmError>, TContext = unknown>(o
59
59
  params: DeletePathParams;
60
60
  }, TContext> | undefined;
61
61
  request?: SecondParameter<typeof customInstance>;
62
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
62
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
63
63
  params: DeletePathParams;
64
64
  }, TContext>;
65
65
  /**
@@ -70,7 +70,7 @@ declare const useDeletePath: <TError = ErrorType<DmError>, TContext = unknown>(o
70
70
  declare const getFiles: (params: GetFilesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<FilesGetResponse>;
71
71
  declare const getGetFilesQueryKey: (params: GetFilesParams) => readonly ["data-manager-api", "/file", ...GetFilesParams[]];
72
72
  declare const getGetFilesQueryOptions: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
73
- query?: UseQueryOptions<FilesGetResponse, TError, TData, QueryKey> | undefined;
73
+ query?: Partial<UseQueryOptions<FilesGetResponse, TError, TData, QueryKey>> | undefined;
74
74
  request?: SecondParameter<typeof customInstance>;
75
75
  } | undefined) => UseQueryOptions<FilesGetResponse, TError, TData, QueryKey> & {
76
76
  queryKey: QueryKey;
@@ -81,11 +81,28 @@ type GetFilesQueryError = ErrorType<void | DmError>;
81
81
  * @summary Gets the Files on a Project Path
82
82
  */
83
83
  declare const useGetFiles: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
84
- query?: UseQueryOptions<FilesGetResponse, TError, TData, QueryKey> | undefined;
84
+ query?: Partial<UseQueryOptions<FilesGetResponse, TError, TData, QueryKey>> | undefined;
85
85
  request?: SecondParameter<typeof customInstance>;
86
86
  } | undefined) => UseQueryResult<TData, TError> & {
87
87
  queryKey: QueryKey;
88
88
  };
89
+ declare const getGetFilesSuspenseQueryOptions: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
90
+ query?: Partial<UseSuspenseQueryOptions<FilesGetResponse, TError, TData, QueryKey>> | undefined;
91
+ request?: SecondParameter<typeof customInstance>;
92
+ } | undefined) => UseSuspenseQueryOptions<FilesGetResponse, TError, TData, QueryKey> & {
93
+ queryKey: QueryKey;
94
+ };
95
+ type GetFilesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>;
96
+ type GetFilesSuspenseQueryError = ErrorType<void | DmError>;
97
+ /**
98
+ * @summary Gets the Files on a Project Path
99
+ */
100
+ declare const useGetFilesSuspense: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
101
+ query?: Partial<UseSuspenseQueryOptions<FilesGetResponse, TError, TData, QueryKey>> | undefined;
102
+ request?: SecondParameter<typeof customInstance>;
103
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
104
+ queryKey: QueryKey;
105
+ };
89
106
  /**
90
107
  * 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.
91
108
 
@@ -119,7 +136,7 @@ declare const useAttachFile: <TError = ErrorType<void | DmError>, TContext = unk
119
136
  data: FilePostBodyBody;
120
137
  }, TContext> | undefined;
121
138
  request?: SecondParameter<typeof customInstance>;
122
- } | undefined) => _tanstack_react_query.UseMutationResult<FilePostResponse, TError, {
139
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<FilePostResponse, TError, {
123
140
  data: FilePostBodyBody;
124
141
  }, TContext>;
125
142
  /**
@@ -148,7 +165,7 @@ declare const useDeleteUnmanagedFile: <TError = ErrorType<DmError>, TContext = u
148
165
  params: DeleteUnmanagedFileParams;
149
166
  }, TContext> | undefined;
150
167
  request?: SecondParameter<typeof customInstance>;
151
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
168
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
152
169
  params: DeleteUnmanagedFileParams;
153
170
  }, TContext>;
154
171
  /**
@@ -179,7 +196,7 @@ declare const useDeleteFile: <TError = ErrorType<DmError>, TContext = unknown>(o
179
196
  fileId: string;
180
197
  }, TContext> | undefined;
181
198
  request?: SecondParameter<typeof customInstance>;
182
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
199
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
183
200
  fileId: string;
184
201
  }, TContext>;
185
202
  /**
@@ -192,7 +209,7 @@ You cannot get a Project File until the attach is complete.
192
209
  declare const downloadFile: (fileId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
193
210
  declare const getDownloadFileQueryKey: (fileId: string) => readonly ["data-manager-api", `/file/${string}`];
194
211
  declare const getDownloadFileQueryOptions: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
195
- query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
212
+ query?: Partial<UseQueryOptions<void, TError, TData, QueryKey>> | undefined;
196
213
  request?: SecondParameter<typeof customInstance>;
197
214
  } | undefined) => UseQueryOptions<void, TError, TData, QueryKey> & {
198
215
  queryKey: QueryKey;
@@ -203,10 +220,27 @@ type DownloadFileQueryError = ErrorType<DmError>;
203
220
  * @summary Download a File (from a project)
204
221
  */
205
222
  declare const useDownloadFile: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
206
- query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
223
+ query?: Partial<UseQueryOptions<void, TError, TData, QueryKey>> | undefined;
207
224
  request?: SecondParameter<typeof customInstance>;
208
225
  } | undefined) => UseQueryResult<TData, TError> & {
209
226
  queryKey: QueryKey;
210
227
  };
228
+ declare const getDownloadFileSuspenseQueryOptions: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
229
+ query?: Partial<UseSuspenseQueryOptions<void, TError, TData, QueryKey>> | undefined;
230
+ request?: SecondParameter<typeof customInstance>;
231
+ } | undefined) => UseSuspenseQueryOptions<void, TError, TData, QueryKey> & {
232
+ queryKey: QueryKey;
233
+ };
234
+ type DownloadFileSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>;
235
+ type DownloadFileSuspenseQueryError = ErrorType<DmError>;
236
+ /**
237
+ * @summary Download a File (from a project)
238
+ */
239
+ declare const useDownloadFileSuspense: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
240
+ query?: Partial<UseSuspenseQueryOptions<void, TError, TData, QueryKey>> | undefined;
241
+ request?: SecondParameter<typeof customInstance>;
242
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
243
+ queryKey: QueryKey;
244
+ };
211
245
 
212
- export { AttachFileMutationBody, AttachFileMutationError, AttachFileMutationResult, CreatePathMutationError, CreatePathMutationResult, DeleteFileMutationError, DeleteFileMutationResult, DeletePathMutationError, DeletePathMutationResult, DeleteUnmanagedFileMutationError, DeleteUnmanagedFileMutationResult, DownloadFileQueryError, DownloadFileQueryResult, GetFilesQueryError, GetFilesQueryResult, attachFile, createPath, deleteFile, deletePath, deleteUnmanagedFile, downloadFile, getAttachFileMutationOptions, getCreatePathMutationOptions, getDeleteFileMutationOptions, getDeletePathMutationOptions, getDeleteUnmanagedFileMutationOptions, getDownloadFileQueryKey, getDownloadFileQueryOptions, getFiles, getGetFilesQueryKey, getGetFilesQueryOptions, useAttachFile, useCreatePath, useDeleteFile, useDeletePath, useDeleteUnmanagedFile, useDownloadFile, useGetFiles };
246
+ 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, attachFile, createPath, deleteFile, deletePath, deleteUnmanagedFile, downloadFile, getAttachFileMutationOptions, getCreatePathMutationOptions, getDeleteFileMutationOptions, getDeletePathMutationOptions, getDeleteUnmanagedFileMutationOptions, getDownloadFileQueryKey, getDownloadFileQueryOptions, getDownloadFileSuspenseQueryOptions, getFiles, getGetFilesQueryKey, getGetFilesQueryOptions, getGetFilesSuspenseQueryOptions, useAttachFile, useCreatePath, useDeleteFile, useDeletePath, useDeleteUnmanagedFile, useDownloadFile, useDownloadFileSuspense, useGetFiles, useGetFilesSuspense };
@@ -1,9 +1,9 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult } from '@tanstack/react-query';
3
- import { C as CreatePathParams, bZ as customInstance, b_ as ErrorType, bV as DmError, u as DeletePathParams, n as GetFilesParams, bA as FilesGetResponse, af as FilePostBodyBody, bB as FilePostResponse, D as DeleteUnmanagedFileParams } from '../custom-instance-37ed2460.js';
1
+ import * as _tanstack_react_query_build_legacy_types from '@tanstack/react-query/build/legacy/types';
2
+ import { UseMutationOptions, UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
3
+ import { CreatePathParams, customInstance, ErrorType, DmError, DeletePathParams, GetFilesParams, FilesGetResponse, FilePostBodyBody, FilePostResponse, DeleteUnmanagedFileParams } from '../index.js';
4
4
  import 'axios';
5
5
 
6
- type SecondParameter<T extends (...args: any) => any> = T extends (config: any, args: infer P) => any ? P : never;
6
+ type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
7
7
  /**
8
8
  * Creates a new Path within a Project. Every directory in the Path will be created. The path will belong to the User and Project.
9
9
 
@@ -30,7 +30,7 @@ declare const useCreatePath: <TError = ErrorType<DmError>, TContext = unknown>(o
30
30
  params: CreatePathParams;
31
31
  }, TContext> | undefined;
32
32
  request?: SecondParameter<typeof customInstance>;
33
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
33
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
34
34
  params: CreatePathParams;
35
35
  }, TContext>;
36
36
  /**
@@ -59,7 +59,7 @@ declare const useDeletePath: <TError = ErrorType<DmError>, TContext = unknown>(o
59
59
  params: DeletePathParams;
60
60
  }, TContext> | undefined;
61
61
  request?: SecondParameter<typeof customInstance>;
62
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
62
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
63
63
  params: DeletePathParams;
64
64
  }, TContext>;
65
65
  /**
@@ -70,7 +70,7 @@ declare const useDeletePath: <TError = ErrorType<DmError>, TContext = unknown>(o
70
70
  declare const getFiles: (params: GetFilesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<FilesGetResponse>;
71
71
  declare const getGetFilesQueryKey: (params: GetFilesParams) => readonly ["data-manager-api", "/file", ...GetFilesParams[]];
72
72
  declare const getGetFilesQueryOptions: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
73
- query?: UseQueryOptions<FilesGetResponse, TError, TData, QueryKey> | undefined;
73
+ query?: Partial<UseQueryOptions<FilesGetResponse, TError, TData, QueryKey>> | undefined;
74
74
  request?: SecondParameter<typeof customInstance>;
75
75
  } | undefined) => UseQueryOptions<FilesGetResponse, TError, TData, QueryKey> & {
76
76
  queryKey: QueryKey;
@@ -81,11 +81,28 @@ type GetFilesQueryError = ErrorType<void | DmError>;
81
81
  * @summary Gets the Files on a Project Path
82
82
  */
83
83
  declare const useGetFiles: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
84
- query?: UseQueryOptions<FilesGetResponse, TError, TData, QueryKey> | undefined;
84
+ query?: Partial<UseQueryOptions<FilesGetResponse, TError, TData, QueryKey>> | undefined;
85
85
  request?: SecondParameter<typeof customInstance>;
86
86
  } | undefined) => UseQueryResult<TData, TError> & {
87
87
  queryKey: QueryKey;
88
88
  };
89
+ declare const getGetFilesSuspenseQueryOptions: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
90
+ query?: Partial<UseSuspenseQueryOptions<FilesGetResponse, TError, TData, QueryKey>> | undefined;
91
+ request?: SecondParameter<typeof customInstance>;
92
+ } | undefined) => UseSuspenseQueryOptions<FilesGetResponse, TError, TData, QueryKey> & {
93
+ queryKey: QueryKey;
94
+ };
95
+ type GetFilesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>;
96
+ type GetFilesSuspenseQueryError = ErrorType<void | DmError>;
97
+ /**
98
+ * @summary Gets the Files on a Project Path
99
+ */
100
+ declare const useGetFilesSuspense: <TData = FilesGetResponse, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: {
101
+ query?: Partial<UseSuspenseQueryOptions<FilesGetResponse, TError, TData, QueryKey>> | undefined;
102
+ request?: SecondParameter<typeof customInstance>;
103
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
104
+ queryKey: QueryKey;
105
+ };
89
106
  /**
90
107
  * 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.
91
108
 
@@ -119,7 +136,7 @@ declare const useAttachFile: <TError = ErrorType<void | DmError>, TContext = unk
119
136
  data: FilePostBodyBody;
120
137
  }, TContext> | undefined;
121
138
  request?: SecondParameter<typeof customInstance>;
122
- } | undefined) => _tanstack_react_query.UseMutationResult<FilePostResponse, TError, {
139
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<FilePostResponse, TError, {
123
140
  data: FilePostBodyBody;
124
141
  }, TContext>;
125
142
  /**
@@ -148,7 +165,7 @@ declare const useDeleteUnmanagedFile: <TError = ErrorType<DmError>, TContext = u
148
165
  params: DeleteUnmanagedFileParams;
149
166
  }, TContext> | undefined;
150
167
  request?: SecondParameter<typeof customInstance>;
151
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
168
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
152
169
  params: DeleteUnmanagedFileParams;
153
170
  }, TContext>;
154
171
  /**
@@ -179,7 +196,7 @@ declare const useDeleteFile: <TError = ErrorType<DmError>, TContext = unknown>(o
179
196
  fileId: string;
180
197
  }, TContext> | undefined;
181
198
  request?: SecondParameter<typeof customInstance>;
182
- } | undefined) => _tanstack_react_query.UseMutationResult<void, TError, {
199
+ } | undefined) => _tanstack_react_query_build_legacy_types.UseMutationResult<void, TError, {
183
200
  fileId: string;
184
201
  }, TContext>;
185
202
  /**
@@ -192,7 +209,7 @@ You cannot get a Project File until the attach is complete.
192
209
  declare const downloadFile: (fileId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<void>;
193
210
  declare const getDownloadFileQueryKey: (fileId: string) => readonly ["data-manager-api", `/file/${string}`];
194
211
  declare const getDownloadFileQueryOptions: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
195
- query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
212
+ query?: Partial<UseQueryOptions<void, TError, TData, QueryKey>> | undefined;
196
213
  request?: SecondParameter<typeof customInstance>;
197
214
  } | undefined) => UseQueryOptions<void, TError, TData, QueryKey> & {
198
215
  queryKey: QueryKey;
@@ -203,10 +220,27 @@ type DownloadFileQueryError = ErrorType<DmError>;
203
220
  * @summary Download a File (from a project)
204
221
  */
205
222
  declare const useDownloadFile: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
206
- query?: UseQueryOptions<void, TError, TData, QueryKey> | undefined;
223
+ query?: Partial<UseQueryOptions<void, TError, TData, QueryKey>> | undefined;
207
224
  request?: SecondParameter<typeof customInstance>;
208
225
  } | undefined) => UseQueryResult<TData, TError> & {
209
226
  queryKey: QueryKey;
210
227
  };
228
+ declare const getDownloadFileSuspenseQueryOptions: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
229
+ query?: Partial<UseSuspenseQueryOptions<void, TError, TData, QueryKey>> | undefined;
230
+ request?: SecondParameter<typeof customInstance>;
231
+ } | undefined) => UseSuspenseQueryOptions<void, TError, TData, QueryKey> & {
232
+ queryKey: QueryKey;
233
+ };
234
+ type DownloadFileSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>;
235
+ type DownloadFileSuspenseQueryError = ErrorType<DmError>;
236
+ /**
237
+ * @summary Download a File (from a project)
238
+ */
239
+ declare const useDownloadFileSuspense: <TData = void, TError = ErrorType<DmError>>(fileId: string, options?: {
240
+ query?: Partial<UseSuspenseQueryOptions<void, TError, TData, QueryKey>> | undefined;
241
+ request?: SecondParameter<typeof customInstance>;
242
+ } | undefined) => UseSuspenseQueryResult<TData, TError> & {
243
+ queryKey: QueryKey;
244
+ };
211
245
 
212
- export { AttachFileMutationBody, AttachFileMutationError, AttachFileMutationResult, CreatePathMutationError, CreatePathMutationResult, DeleteFileMutationError, DeleteFileMutationResult, DeletePathMutationError, DeletePathMutationResult, DeleteUnmanagedFileMutationError, DeleteUnmanagedFileMutationResult, DownloadFileQueryError, DownloadFileQueryResult, GetFilesQueryError, GetFilesQueryResult, attachFile, createPath, deleteFile, deletePath, deleteUnmanagedFile, downloadFile, getAttachFileMutationOptions, getCreatePathMutationOptions, getDeleteFileMutationOptions, getDeletePathMutationOptions, getDeleteUnmanagedFileMutationOptions, getDownloadFileQueryKey, getDownloadFileQueryOptions, getFiles, getGetFilesQueryKey, getGetFilesQueryOptions, useAttachFile, useCreatePath, useDeleteFile, useDeletePath, useDeleteUnmanagedFile, useDownloadFile, useGetFiles };
246
+ 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, attachFile, createPath, deleteFile, deletePath, deleteUnmanagedFile, downloadFile, getAttachFileMutationOptions, getCreatePathMutationOptions, getDeleteFileMutationOptions, getDeletePathMutationOptions, getDeleteUnmanagedFileMutationOptions, getDownloadFileQueryKey, getDownloadFileQueryOptions, getDownloadFileSuspenseQueryOptions, getFiles, getGetFilesQueryKey, getGetFilesQueryOptions, getGetFilesSuspenseQueryOptions, useAttachFile, useCreatePath, useDeleteFile, useDeletePath, useDeleteUnmanagedFile, useDownloadFile, useDownloadFileSuspense, useGetFiles, useGetFilesSuspense };
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  customInstance
3
- } from "../chunk-UKA7G3OB.js";
3
+ } from "../chunk-EBOQPVLG.js";
4
4
 
5
5
  // src/file-and-path/file-and-path.ts
6
6
  import {
7
7
  useMutation,
8
- useQuery
8
+ useQuery,
9
+ useSuspenseQuery
9
10
  } from "@tanstack/react-query";
10
11
  var createPath = (params, options) => {
11
12
  return customInstance(
12
13
  {
13
14
  url: `/path`,
14
- method: "put",
15
+ method: "PUT",
15
16
  params
16
17
  },
17
18
  options
@@ -33,7 +34,7 @@ var deletePath = (params, options) => {
33
34
  return customInstance(
34
35
  {
35
36
  url: `/path`,
36
- method: "delete",
37
+ method: "DELETE",
37
38
  params
38
39
  },
39
40
  options
@@ -55,7 +56,7 @@ var getFiles = (params, options, signal) => {
55
56
  return customInstance(
56
57
  {
57
58
  url: `/file`,
58
- method: "get",
59
+ method: "GET",
59
60
  params,
60
61
  signal
61
62
  },
@@ -77,6 +78,18 @@ var useGetFiles = (params, options) => {
77
78
  query.queryKey = queryOptions.queryKey;
78
79
  return query;
79
80
  };
81
+ var getGetFilesSuspenseQueryOptions = (params, options) => {
82
+ const { query: queryOptions, request: requestOptions } = options ?? {};
83
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetFilesQueryKey(params);
84
+ const queryFn = ({ signal }) => getFiles(params, requestOptions, signal);
85
+ return { queryKey, queryFn, ...queryOptions };
86
+ };
87
+ var useGetFilesSuspense = (params, options) => {
88
+ const queryOptions = getGetFilesSuspenseQueryOptions(params, options);
89
+ const query = useSuspenseQuery(queryOptions);
90
+ query.queryKey = queryOptions.queryKey;
91
+ return query;
92
+ };
80
93
  var attachFile = (filePostBodyBody, options) => {
81
94
  const formData = new FormData();
82
95
  formData.append("dataset_id", filePostBodyBody.dataset_id);
@@ -95,7 +108,7 @@ var attachFile = (filePostBodyBody, options) => {
95
108
  return customInstance(
96
109
  {
97
110
  url: `/file`,
98
- method: "post",
111
+ method: "POST",
99
112
  headers: { "Content-Type": "multipart/form-data" },
100
113
  data: formData
101
114
  },
@@ -118,7 +131,7 @@ var deleteUnmanagedFile = (params, options) => {
118
131
  return customInstance(
119
132
  {
120
133
  url: `/file`,
121
- method: "delete",
134
+ method: "DELETE",
122
135
  params
123
136
  },
124
137
  options
@@ -140,7 +153,7 @@ var deleteFile = (fileId, options) => {
140
153
  return customInstance(
141
154
  {
142
155
  url: `/file/${fileId}`,
143
- method: "delete"
156
+ method: "DELETE"
144
157
  },
145
158
  options
146
159
  );
@@ -161,7 +174,7 @@ var downloadFile = (fileId, options, signal) => {
161
174
  return customInstance(
162
175
  {
163
176
  url: `/file/${fileId}`,
164
- method: "get",
177
+ method: "GET",
165
178
  signal
166
179
  },
167
180
  options
@@ -182,6 +195,18 @@ var useDownloadFile = (fileId, options) => {
182
195
  query.queryKey = queryOptions.queryKey;
183
196
  return query;
184
197
  };
198
+ var getDownloadFileSuspenseQueryOptions = (fileId, options) => {
199
+ const { query: queryOptions, request: requestOptions } = options ?? {};
200
+ const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getDownloadFileQueryKey(fileId);
201
+ const queryFn = ({ signal }) => downloadFile(fileId, requestOptions, signal);
202
+ return { queryKey, queryFn, enabled: !!fileId, ...queryOptions };
203
+ };
204
+ var useDownloadFileSuspense = (fileId, options) => {
205
+ const queryOptions = getDownloadFileSuspenseQueryOptions(fileId, options);
206
+ const query = useSuspenseQuery(queryOptions);
207
+ query.queryKey = queryOptions.queryKey;
208
+ return query;
209
+ };
185
210
  export {
186
211
  attachFile,
187
212
  createPath,
@@ -196,15 +221,19 @@ export {
196
221
  getDeleteUnmanagedFileMutationOptions,
197
222
  getDownloadFileQueryKey,
198
223
  getDownloadFileQueryOptions,
224
+ getDownloadFileSuspenseQueryOptions,
199
225
  getFiles,
200
226
  getGetFilesQueryKey,
201
227
  getGetFilesQueryOptions,
228
+ getGetFilesSuspenseQueryOptions,
202
229
  useAttachFile,
203
230
  useCreatePath,
204
231
  useDeleteFile,
205
232
  useDeletePath,
206
233
  useDeleteUnmanagedFile,
207
234
  useDownloadFile,
208
- useGetFiles
235
+ useDownloadFileSuspense,
236
+ useGetFiles,
237
+ useGetFilesSuspense
209
238
  };
210
239
  //# sourceMappingURL=file-and-path.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/file-and-path/file-and-path.ts"],"sourcesContent":["/**\n * Generated by orval v6.20.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 1.2\n */\nimport {\n useMutation,\n useQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult\n} from '@tanstack/react-query'\nimport type {\n CreatePathParams,\n DeletePathParams,\n DeleteUnmanagedFileParams,\n DmError,\n FilePostBodyBody,\n FilePostResponse,\n FilesGetResponse,\n GetFilesParams\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\n// eslint-disable-next-line\n type SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P,\n) => any\n ? P\n : never;\n\n\n/**\n * Creates a new Path within a Project. Every directory in the Path will be created. The path will belong to the User and Project.\n\nOnly Project owners or editors can create Paths.\n\n * @summary Create a new Project Path\n */\nexport const createPath = (\n params: CreatePathParams,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/path`, method: 'put',\n params\n },\n options);\n }\n \n\n\nexport const getCreatePathMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof createPath>>, {params: CreatePathParams}> = (props) => {\n const {params} = props ?? {};\n\n return createPath(params,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type CreatePathMutationResult = NonNullable<Awaited<ReturnType<typeof createPath>>>\n \n export type CreatePathMutationError = ErrorType<DmError>\n\n /**\n * @summary Create a new Project Path\n */\nexport const useCreatePath = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getCreatePathMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Deletes a Path within the Project. Be aware that the deletion of a Path will result in te contents of the Path also being deleted. If There are files in Path or sub-directories, they will all be deleted.\n\nOnly Project owners or editors can delete Paths.\n\n * @summary Delete a Project Path\n */\nexport const deletePath = (\n params: DeletePathParams,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/path`, method: 'delete',\n params\n },\n options);\n }\n \n\n\nexport const getDeletePathMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof deletePath>>, {params: DeletePathParams}> = (props) => {\n const {params} = props ?? {};\n\n return deletePath(params,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type DeletePathMutationResult = NonNullable<Awaited<ReturnType<typeof deletePath>>>\n \n export type DeletePathMutationError = ErrorType<DmError>\n\n /**\n * @summary Delete a Project Path\n */\nexport const useDeletePath = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getDeletePathMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Given a Project and Path the files available to you on that path will be returned along with any additional paths (sub-directories).\n\n * @summary Gets the Files on a Project Path\n */\nexport const getFiles = (\n params: GetFilesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<FilesGetResponse>(\n {url: `/file`, method: 'get',\n params, signal\n },\n options);\n }\n \n\nexport const getGetFilesQueryKey = (params: GetFilesParams,) => {\n \n return [\"data-manager-api\", `/file`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetFilesQueryOptions = <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetFilesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getFiles>>> = ({ signal }) => getFiles(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetFilesQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>\nexport type GetFilesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Files on a Project Path\n */\nexport const useGetFiles = <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(\n params: GetFilesParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetFilesQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * 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.\n\nOnly Datasets attached to projects are available through the Project API. A Dataset that you upload is only available to others (who are not already `editors` of the data) when the Dataset is attached to a project.\n\nAn `editor` of a **dataset** is not automatically and `editor` of the **project** it's attached to.\n\nYou must be an `editor` or the `owner` of the project to attach a Dataset to a project. Being an `editor` of the Dataset you are attaching does not give you the ability to detach it from the Project.\n\nYou cannot add a Dataset to a Project until its upload is complete.\n\n * @summary Attach a Dataset, as a File, to a Project\n */\nexport const attachFile = (\n filePostBodyBody: FilePostBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('dataset_id', filePostBodyBody.dataset_id)\nformData.append('dataset_version', filePostBodyBody.dataset_version.toString())\nformData.append('project_id', filePostBodyBody.project_id)\nformData.append('as_type', filePostBodyBody.as_type)\nif(filePostBodyBody.path !== undefined) {\n formData.append('path', filePostBodyBody.path)\n }\nif(filePostBodyBody.compress !== undefined) {\n formData.append('compress', filePostBodyBody.compress.toString())\n }\nif(filePostBodyBody.immutable !== undefined) {\n formData.append('immutable', filePostBodyBody.immutable.toString())\n }\n\n return customInstance<FilePostResponse>(\n {url: `/file`, method: 'post',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getAttachFileMutationOptions = <TError = ErrorType<void | DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof attachFile>>, {data: FilePostBodyBody}> = (props) => {\n const {data} = props ?? {};\n\n return attachFile(data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AttachFileMutationResult = NonNullable<Awaited<ReturnType<typeof attachFile>>>\n export type AttachFileMutationBody = FilePostBodyBody\n export type AttachFileMutationError = ErrorType<void | DmError>\n\n /**\n * @summary Attach a Dataset, as a File, to a Project\n */\nexport const useAttachFile = <TError = ErrorType<void | DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAttachFileMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Removes an unmanaged file from a Project. You cannot use this endpoint to delete managed project files.\n\nYou must be an `editor` or the `owner` of the project to delete a file from a project.\n\n * @summary Delete an unmanaged Project File\n */\nexport const deleteUnmanagedFile = (\n params: DeleteUnmanagedFileParams,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/file`, method: 'delete',\n params\n },\n options);\n }\n \n\n\nexport const getDeleteUnmanagedFileMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteUnmanagedFile>>, {params: DeleteUnmanagedFileParams}> = (props) => {\n const {params} = props ?? {};\n\n return deleteUnmanagedFile(params,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type DeleteUnmanagedFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUnmanagedFile>>>\n \n export type DeleteUnmanagedFileMutationError = ErrorType<DmError>\n\n /**\n * @summary Delete an unmanaged Project File\n */\nexport const useDeleteUnmanagedFile = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getDeleteUnmanagedFileMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Given a `file_id` the file will be removed from the Project it's attached to.\n\nYou must be an `editor` or the `owner` 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.\n\nYou cannot delete a Project File until the attach is complete.\n\n * @summary Delete/detach a File (from a Project)\n */\nexport const deleteFile = (\n fileId: string,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/file/${fileId}`, method: 'delete'\n },\n options);\n }\n \n\n\nexport const getDeleteFileMutationOptions = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteFile>>, {fileId: string}> = (props) => {\n const {fileId} = props ?? {};\n\n return deleteFile(fileId,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type DeleteFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteFile>>>\n \n export type DeleteFileMutationError = ErrorType<DmError>\n\n /**\n * @summary Delete/detach a File (from a Project)\n */\nexport const useDeleteFile = <TError = ErrorType<DmError>,\n \n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getDeleteFileMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Given a `file_id` the file will be returned if available.\n\nYou cannot get a Project File until the attach is complete.\n\n * @summary Download a File (from a project)\n */\nexport const downloadFile = (\n fileId: string,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<void>(\n {url: `/file/${fileId}`, method: 'get', signal\n },\n options);\n }\n \n\nexport const getDownloadFileQueryKey = (fileId: string,) => {\n \n return [\"data-manager-api\", `/file/${fileId}`] as const;\n }\n\n \nexport const getDownloadFileQueryOptions = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<DmError>>(fileId: string, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getDownloadFileQueryKey(fileId);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof downloadFile>>> = ({ signal }) => downloadFile(fileId, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(fileId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type DownloadFileQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>\nexport type DownloadFileQueryError = ErrorType<DmError>\n\n/**\n * @summary Download a File (from a project)\n */\nexport const useDownloadFile = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<DmError>>(\n fileId: string, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getDownloadFileQueryOptions(fileId,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAuCA,IAAM,aAAa,CACtB,QACH,YAAsD;AAGjD,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAAS,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,eAAe;AACpC;AAQG,IAAM,eAAe,CACxB,QACH,SAAiD,WAC7C;AAGC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK,SAAS,MAAM;AAAA,MAAI,QAAQ;AAAA,MAAO;AAAA,IAC1C;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,0BAA0B,CAAC,WAAoB;AAExD,SAAO,CAAC,oBAAoB,SAAS,MAAM,EAAE;AAC7C;AAGG,IAAM,8BAA8B,CAAgF,QAAgB,YACtI;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aAAY,wBAAwB,MAAM;AAIxE,QAAM,UAAmE,CAAC,EAAE,OAAO,MAAM,aAAa,QAAQ,gBAAgB,MAAM;AAMrI,SAAQ,EAAE,UAAU,SAAS,SAAS,CAAC,CAAE,QAAS,GAAG,aAAY;AACpE;AAQO,IAAM,kBAAkB,CAC9B,QAAgB,YAE+C;AAE9D,QAAM,eAAe,4BAA4B,QAAO,OAAO;AAE/D,QAAM,QAAQ,SAAS,YAAY;AAEnC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../src/file-and-path/file-and-path.ts"],"sourcesContent":["/**\n * Generated by orval v6.25.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n\nA service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.\n\n * OpenAPI spec version: 1.2\n */\nimport {\n useMutation,\n useQuery,\n useSuspenseQuery\n} from '@tanstack/react-query'\nimport type {\n MutationFunction,\n QueryFunction,\n QueryKey,\n UseMutationOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult\n} from '@tanstack/react-query'\nimport type {\n CreatePathParams,\n DeletePathParams,\n DeleteUnmanagedFileParams,\n DmError,\n FilePostBodyBody,\n FilePostResponse,\n FilesGetResponse,\n GetFilesParams\n} from '../data-manager-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\ntype SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];\n\n\n/**\n * Creates a new Path within a Project. Every directory in the Path will be created. The path will belong to the User and Project.\n\nOnly Project owners or editors can create Paths.\n\n * @summary Create a new Project Path\n */\nexport const createPath = (\n params: CreatePathParams,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/path`, method: 'PUT',\n params\n },\n options);\n }\n \n\n\nexport const getCreatePathMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof createPath>>, {params: CreatePathParams}> = (props) => {\n const {params} = props ?? {};\n\n return createPath(params,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type CreatePathMutationResult = NonNullable<Awaited<ReturnType<typeof createPath>>>\n \n export type CreatePathMutationError = ErrorType<DmError>\n\n /**\n * @summary Create a new Project Path\n */\nexport const useCreatePath = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPath>>, TError,{params: CreatePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getCreatePathMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Deletes a Path within the Project. Be aware that the deletion of a Path will result in te contents of the Path also being deleted. If There are files in Path or sub-directories, they will all be deleted.\n\nOnly Project owners or editors can delete Paths.\n\n * @summary Delete a Project Path\n */\nexport const deletePath = (\n params: DeletePathParams,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/path`, method: 'DELETE',\n params\n },\n options);\n }\n \n\n\nexport const getDeletePathMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof deletePath>>, {params: DeletePathParams}> = (props) => {\n const {params} = props ?? {};\n\n return deletePath(params,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type DeletePathMutationResult = NonNullable<Awaited<ReturnType<typeof deletePath>>>\n \n export type DeletePathMutationError = ErrorType<DmError>\n\n /**\n * @summary Delete a Project Path\n */\nexport const useDeletePath = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deletePath>>, TError,{params: DeletePathParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getDeletePathMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Given a Project and Path the files available to you on that path will be returned along with any additional paths (sub-directories).\n\n * @summary Gets the Files on a Project Path\n */\nexport const getFiles = (\n params: GetFilesParams,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<FilesGetResponse>(\n {url: `/file`, method: 'GET',\n params, signal\n },\n options);\n }\n \n\nexport const getGetFilesQueryKey = (params: GetFilesParams,) => {\n return [\"data-manager-api\", `/file`, ...(params ? [params]: [])] as const;\n }\n\n \nexport const getGetFilesQueryOptions = <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetFilesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getFiles>>> = ({ signal }) => getFiles(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetFilesQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>\nexport type GetFilesQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Files on a Project Path\n */\nexport const useGetFiles = <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(\n params: GetFilesParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetFilesQueryOptions(params,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetFilesSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(params: GetFilesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetFilesQueryKey(params);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getFiles>>> = ({ signal }) => getFiles(params, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type GetFilesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getFiles>>>\nexport type GetFilesSuspenseQueryError = ErrorType<void | DmError>\n\n/**\n * @summary Gets the Files on a Project Path\n */\nexport const useGetFilesSuspense = <TData = Awaited<ReturnType<typeof getFiles>>, TError = ErrorType<void | DmError>>(\n params: GetFilesParams, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getFiles>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getGetFilesSuspenseQueryOptions(params,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * 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.\n\nOnly Datasets attached to projects are available through the Project API. A Dataset that you upload is only available to others (who are not already `editors` of the data) when the Dataset is attached to a project.\n\nAn `editor` of a **dataset** is not automatically and `editor` of the **project** it's attached to.\n\nYou must be an `editor` or the `owner` of the project to attach a Dataset to a project. Being an `editor` of the Dataset you are attaching does not give you the ability to detach it from the Project.\n\nYou cannot add a Dataset to a Project until its upload is complete.\n\n * @summary Attach a Dataset, as a File, to a Project\n */\nexport const attachFile = (\n filePostBodyBody: FilePostBodyBody,\n options?: SecondParameter<typeof customInstance>,) => {\n \n const formData = new FormData();\nformData.append('dataset_id', filePostBodyBody.dataset_id)\nformData.append('dataset_version', filePostBodyBody.dataset_version.toString())\nformData.append('project_id', filePostBodyBody.project_id)\nformData.append('as_type', filePostBodyBody.as_type)\nif(filePostBodyBody.path !== undefined) {\n formData.append('path', filePostBodyBody.path)\n }\nif(filePostBodyBody.compress !== undefined) {\n formData.append('compress', filePostBodyBody.compress.toString())\n }\nif(filePostBodyBody.immutable !== undefined) {\n formData.append('immutable', filePostBodyBody.immutable.toString())\n }\n\n return customInstance<FilePostResponse>(\n {url: `/file`, method: 'POST',\n headers: {'Content-Type': 'multipart/form-data', },\n data: formData\n },\n options);\n }\n \n\n\nexport const getAttachFileMutationOptions = <TError = ErrorType<void | DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof attachFile>>, {data: FilePostBodyBody}> = (props) => {\n const {data} = props ?? {};\n\n return attachFile(data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type AttachFileMutationResult = NonNullable<Awaited<ReturnType<typeof attachFile>>>\n export type AttachFileMutationBody = FilePostBodyBody\n export type AttachFileMutationError = ErrorType<void | DmError>\n\n /**\n * @summary Attach a Dataset, as a File, to a Project\n */\nexport const useAttachFile = <TError = ErrorType<void | DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof attachFile>>, TError,{data: FilePostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getAttachFileMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Removes an unmanaged file from a Project. You cannot use this endpoint to delete managed project files.\n\nYou must be an `editor` or the `owner` of the project to delete a file from a project.\n\n * @summary Delete an unmanaged Project File\n */\nexport const deleteUnmanagedFile = (\n params: DeleteUnmanagedFileParams,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/file`, method: 'DELETE',\n params\n },\n options);\n }\n \n\n\nexport const getDeleteUnmanagedFileMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteUnmanagedFile>>, {params: DeleteUnmanagedFileParams}> = (props) => {\n const {params} = props ?? {};\n\n return deleteUnmanagedFile(params,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type DeleteUnmanagedFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteUnmanagedFile>>>\n \n export type DeleteUnmanagedFileMutationError = ErrorType<DmError>\n\n /**\n * @summary Delete an unmanaged Project File\n */\nexport const useDeleteUnmanagedFile = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteUnmanagedFile>>, TError,{params: DeleteUnmanagedFileParams}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getDeleteUnmanagedFileMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Given a `file_id` the file will be removed from the Project it's attached to.\n\nYou must be an `editor` or the `owner` 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.\n\nYou cannot delete a Project File until the attach is complete.\n\n * @summary Delete/detach a File (from a Project)\n */\nexport const deleteFile = (\n fileId: string,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/file/${fileId}`, method: 'DELETE'\n },\n options);\n }\n \n\n\nexport const getDeleteFileMutationOptions = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext> => {\n const {mutation: mutationOptions, request: requestOptions} = options ?? {};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteFile>>, {fileId: string}> = (props) => {\n const {fileId} = props ?? {};\n\n return deleteFile(fileId,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions }}\n\n export type DeleteFileMutationResult = NonNullable<Awaited<ReturnType<typeof deleteFile>>>\n \n export type DeleteFileMutationError = ErrorType<DmError>\n\n /**\n * @summary Delete/detach a File (from a Project)\n */\nexport const useDeleteFile = <TError = ErrorType<DmError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteFile>>, TError,{fileId: string}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\n\n const mutationOptions = getDeleteFileMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * Given a `file_id` the file will be returned if available.\n\nYou cannot get a Project File until the attach is complete.\n\n * @summary Download a File (from a project)\n */\nexport const downloadFile = (\n fileId: string,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<void>(\n {url: `/file/${fileId}`, method: 'GET', signal\n },\n options);\n }\n \n\nexport const getDownloadFileQueryKey = (fileId: string,) => {\n return [\"data-manager-api\", `/file/${fileId}`] as const;\n }\n\n \nexport 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>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getDownloadFileQueryKey(fileId);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof downloadFile>>> = ({ signal }) => downloadFile(fileId, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(fileId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type DownloadFileQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>\nexport type DownloadFileQueryError = ErrorType<DmError>\n\n/**\n * @summary Download a File (from a project)\n */\nexport const useDownloadFile = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<DmError>>(\n fileId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getDownloadFileQueryOptions(fileId,options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport 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>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getDownloadFileQueryKey(fileId);\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof downloadFile>>> = ({ signal }) => downloadFile(fileId, requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, enabled: !!(fileId), ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData> & { queryKey: QueryKey }\n}\n\nexport type DownloadFileSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof downloadFile>>>\nexport type DownloadFileSuspenseQueryError = ErrorType<DmError>\n\n/**\n * @summary Download a File (from a project)\n */\nexport const useDownloadFileSuspense = <TData = Awaited<ReturnType<typeof downloadFile>>, TError = ErrorType<DmError>>(\n fileId: string, options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof downloadFile>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n\n const queryOptions = getDownloadFileSuspenseQueryOptions(fileId,options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n"],"mappings":";;;;;AAUA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAmCA,IAAM,aAAa,CACtB,QACH,YAAsD;AAGjD,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAAS,QAAQ;AAAA,MACrB;AAAA,IACJ;AAAA,IACE;AAAA,EAAO;AACT;AAIG,IAAM,+BAA+B,CACpB,YACsF;AAC7G,QAAM,EAAC,UAAU,iBAAiB,SAAS,eAAc,IAAI,WAAW,CAAC;AAKpE,QAAM,aAAmG,CAAC,UAAU;AAChH,UAAM,EAAC,OAAM,IAAI,SAAS,CAAC;AAE3B,WAAQ,WAAW,QAAO,cAAc;AAAA,EAC1C;AAKL,SAAQ,EAAE,YAAY,GAAG,gBAAgB;AAAC;AAStC,IAAM,gBAAgB,CACL,YACnB;AAEC,QAAM,kBAAkB,6BAA6B,OAAO;AAE5D,SAAO,YAAY,eAAe;AACpC;AAQG,IAAM,aAAa,CACtB,QACH,YAAsD;AAGjD,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAAS,QAAQ;AAAA,MACrB;AAAA,IACJ;AAAA,IACE;AAAA,EAAO;AACT;AAIG,IAAM,+BAA+B,CACpB,YACsF;AAC7G,QAAM,EAAC,UAAU,iBAAiB,SAAS,eAAc,IAAI,WAAW,CAAC;AAKpE,QAAM,aAAmG,CAAC,UAAU;AAChH,UAAM,EAAC,OAAM,IAAI,SAAS,CAAC;AAE3B,WAAQ,WAAW,QAAO,cAAc;AAAA,EAC1C;AAKL,SAAQ,EAAE,YAAY,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CAAc,aAAY,wBAAwB,MAAM;AAIxE,QAAM,UAAmE,CAAC,EAAE,OAAO,MAAM,aAAa,QAAQ,gBAAgB,MAAM;AAMrI,SAAQ,EAAE,UAAU,SAAS,SAAS,CAAC,CAAE,QAAS,GAAG,aAAY;AACpE;AAQO,IAAM,kBAAkB,CAC9B,QAAgB,YAE+C;AAE9D,QAAM,eAAe,4BAA4B,QAAO,OAAO;AAE/D,QAAM,QAAQ,SAAS,YAAY;AAEnC,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;AAIO,IAAM,sCAAsC,CAAgF,QAAgB,YAC9I;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aAAY,wBAAwB,MAAM;AAIxE,QAAM,UAAmE,CAAC,EAAE,OAAO,MAAM,aAAa,QAAQ,gBAAgB,MAAM;AAMrI,SAAQ,EAAE,UAAU,SAAS,SAAS,CAAC,CAAE,QAAS,GAAG,aAAY;AACpE;AAQO,IAAM,0BAA0B,CACtC,QAAgB,YAEuD;AAEtE,QAAM,eAAe,oCAAoC,QAAO,OAAO;AAEvE,QAAM,QAAQ,iBAAiB,YAAY;AAE3C,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;","names":[]}
package/index.cjs CHANGED
@@ -3,9 +3,15 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkJ22A7LHXcjs = require('./chunk-J22A7LHX.cjs');
6
+ var _chunkTKLTUR4Rcjs = require('./chunk-TKLTUR4R.cjs');
7
7
 
8
8
  // src/data-manager-api.schemas.ts
9
+ var QPurposeParameter = {
10
+ DATASET: "DATASET",
11
+ FILE: "FILE",
12
+ INSTANCE: "INSTANCE",
13
+ PROJECT: "PROJECT"
14
+ };
9
15
  var TypeSummaryFormatterOptionsType = {
10
16
  object: "object"
11
17
  };
@@ -139,5 +145,6 @@ var DatasetSchemaGetResponseType = {
139
145
 
140
146
 
141
147
 
142
- exports.AXIOS_INSTANCE = _chunkJ22A7LHXcjs.AXIOS_INSTANCE; exports.ApiLogDetailMethod = ApiLogDetailMethod; exports.DatasetSchemaGetResponseType = DatasetSchemaGetResponseType; exports.DatasetVersionDetailProcessingStage = DatasetVersionDetailProcessingStage; exports.DatasetVersionSummaryProcessingStage = DatasetVersionSummaryProcessingStage; exports.InstanceGetResponseApplicationType = InstanceGetResponseApplicationType; exports.InstanceGetResponseJobImageType = InstanceGetResponseJobImageType; exports.InstanceGetResponsePhase = InstanceGetResponsePhase; exports.InstanceSummaryApplicationType = InstanceSummaryApplicationType; exports.InstanceSummaryJobImageType = InstanceSummaryJobImageType; exports.InstanceSummaryPhase = InstanceSummaryPhase; exports.InstanceTaskPurpose = InstanceTaskPurpose; exports.JobGetResponseImageType = JobGetResponseImageType; exports.JobSummaryImageType = JobSummaryImageType; exports.ServiceErrorSummarySeverity = ServiceErrorSummarySeverity; exports.TaskEventLevel = TaskEventLevel; exports.TaskGetResponsePurpose = TaskGetResponsePurpose; exports.TaskStateState = TaskStateState; exports.TaskSummaryProcessingStage = TaskSummaryProcessingStage; exports.TypeSummaryFormatterOptionsType = TypeSummaryFormatterOptionsType; exports.customInstance = _chunkJ22A7LHXcjs.customInstance; exports.setAuthToken = _chunkJ22A7LHXcjs.setAuthToken; exports.setBaseUrl = _chunkJ22A7LHXcjs.setBaseUrl;
148
+
149
+ exports.AXIOS_INSTANCE = _chunkTKLTUR4Rcjs.AXIOS_INSTANCE; exports.ApiLogDetailMethod = ApiLogDetailMethod; exports.DatasetSchemaGetResponseType = DatasetSchemaGetResponseType; exports.DatasetVersionDetailProcessingStage = DatasetVersionDetailProcessingStage; exports.DatasetVersionSummaryProcessingStage = DatasetVersionSummaryProcessingStage; exports.InstanceGetResponseApplicationType = InstanceGetResponseApplicationType; exports.InstanceGetResponseJobImageType = InstanceGetResponseJobImageType; exports.InstanceGetResponsePhase = InstanceGetResponsePhase; exports.InstanceSummaryApplicationType = InstanceSummaryApplicationType; exports.InstanceSummaryJobImageType = InstanceSummaryJobImageType; exports.InstanceSummaryPhase = InstanceSummaryPhase; exports.InstanceTaskPurpose = InstanceTaskPurpose; exports.JobGetResponseImageType = JobGetResponseImageType; exports.JobSummaryImageType = JobSummaryImageType; exports.QPurposeParameter = QPurposeParameter; exports.ServiceErrorSummarySeverity = ServiceErrorSummarySeverity; exports.TaskEventLevel = TaskEventLevel; exports.TaskGetResponsePurpose = TaskGetResponsePurpose; exports.TaskStateState = TaskStateState; exports.TaskSummaryProcessingStage = TaskSummaryProcessingStage; exports.TypeSummaryFormatterOptionsType = TypeSummaryFormatterOptionsType; exports.customInstance = _chunkTKLTUR4Rcjs.customInstance; exports.setAuthToken = _chunkTKLTUR4Rcjs.setAuthToken; exports.setBaseUrl = _chunkTKLTUR4Rcjs.setBaseUrl;
143
150
  //# sourceMappingURL=index.cjs.map