@3dverse/api 0.8.6 → 0.8.8

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
@@ -311,6 +311,21 @@ function listFolderSubFolders({
311
311
  headers
312
312
  });
313
313
  }
314
+ function uploadSourceFiles({
315
+ folder_id,
316
+ body
317
+ }, onUploadProgress, headers) {
318
+ return axiosInstance({
319
+ method: "post",
320
+ url: "/folders/" + folder_id + "/source-files",
321
+ data: body,
322
+ onUploadProgress,
323
+ headers: {
324
+ "Content-Type": "multipart/form-data",
325
+ ...headers
326
+ }
327
+ });
328
+ }
314
329
  function getSourceFilesInFolder({
315
330
  folder_id,
316
331
  offset = 0,
@@ -441,7 +456,7 @@ function importAssets({
441
456
  folder_id,
442
457
  overwrite = "never",
443
458
  body
444
- }, headers) {
459
+ }, onUploadProgress, headers) {
445
460
  return axiosInstance({
446
461
  method: "put",
447
462
  url: "/folders/" + folder_id + "/packages",
@@ -450,6 +465,7 @@ function importAssets({
450
465
  },
451
466
  data: body,
452
467
  maxRedirects: 0,
468
+ onUploadProgress,
453
469
  headers: {
454
470
  "Content-Type": "application/zip",
455
471
  ...headers
@@ -910,7 +926,8 @@ function getRunningSessions({
910
926
  function createSession({
911
927
  scene_id,
912
928
  renderer_version,
913
- is_transient = false
929
+ is_transient = false,
930
+ options
914
931
  }, headers) {
915
932
  return axiosInstance({
916
933
  method: "post",
@@ -918,7 +935,8 @@ function createSession({
918
935
  data: {
919
936
  scene_id,
920
937
  renderer_version,
921
- is_transient
938
+ is_transient,
939
+ options
922
940
  },
923
941
  headers
924
942
  });
@@ -1066,21 +1084,6 @@ function shouldRetryRequest(error) {
1066
1084
  }
1067
1085
  }
1068
1086
  installInterceptors();
1069
- function uploadSourceFiles({
1070
- folder_id,
1071
- body,
1072
- onUploadProgress
1073
- }) {
1074
- return axiosInstance({
1075
- method: "post",
1076
- url: `/folders/${folder_id}/source-files`,
1077
- headers: {
1078
- "Content-Type": "multipart/form-data"
1079
- },
1080
- data: body,
1081
- onUploadProgress
1082
- });
1083
- }
1084
1087
  export {
1085
1088
  ApiError,
1086
1089
  UnexpectedServiceError,