@3dverse/api 0.4.5 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -316,20 +316,6 @@ function listFolderSubFolders({
316
316
  }
317
317
  });
318
318
  }
319
- function uploadSourceFiles({
320
- folder_id,
321
- body
322
- }) {
323
- return axiosInstance({
324
- operationId: "uploadSourceFiles",
325
- method: "post",
326
- url: "/folders/" + folder_id + "/source-files",
327
- headers: {
328
- "Content-Type": "multipart/form-data"
329
- },
330
- data: body
331
- });
332
- }
333
319
  function getSourceFilesInFolder({
334
320
  folder_id,
335
321
  offset = 0,
@@ -935,6 +921,22 @@ function shouldRetryRequest(error) {
935
921
  }
936
922
  }
937
923
  installInterceptors();
924
+ function uploadSourceFiles({
925
+ folder_id,
926
+ body,
927
+ onUploadProgress
928
+ }) {
929
+ return axiosInstance({
930
+ operationId: "uploadSourceFiles",
931
+ method: "post",
932
+ url: `/folders/${folder_id}/source-files`,
933
+ headers: {
934
+ "Content-Type": "multipart/form-data"
935
+ },
936
+ data: body,
937
+ onUploadProgress
938
+ });
939
+ }
938
940
  export {
939
941
  ApiError,
940
942
  UnexpectedServiceError,