@3dverse/api 0.8.7 → 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/_prebuild/wrapper.d.ts +89 -89
- package/dist/index.d.ts +0 -6
- package/dist/index.js +17 -16
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +17 -16
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
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
|
@@ -1068,21 +1084,6 @@ function shouldRetryRequest(error) {
|
|
1068
1084
|
}
|
1069
1085
|
}
|
1070
1086
|
installInterceptors();
|
1071
|
-
function uploadSourceFiles({
|
1072
|
-
folder_id,
|
1073
|
-
body,
|
1074
|
-
onUploadProgress
|
1075
|
-
}) {
|
1076
|
-
return axiosInstance({
|
1077
|
-
method: "post",
|
1078
|
-
url: `/folders/${folder_id}/source-files`,
|
1079
|
-
headers: {
|
1080
|
-
"Content-Type": "multipart/form-data"
|
1081
|
-
},
|
1082
|
-
data: body,
|
1083
|
-
onUploadProgress
|
1084
|
-
});
|
1085
|
-
}
|
1086
1087
|
export {
|
1087
1088
|
ApiError,
|
1088
1089
|
UnexpectedServiceError,
|