@3dverse/api 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +7 -6
- package/dist/index.d.ts +6 -0
- package/dist/index.js +27 -26
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +27 -26
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
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,
|
@@ -388,27 +374,26 @@ function getFolderAssets({
|
|
388
374
|
}
|
389
375
|
});
|
390
376
|
}
|
391
|
-
function
|
377
|
+
function createAsset({
|
392
378
|
folder_id,
|
393
|
-
|
379
|
+
assetCreationOptions
|
394
380
|
}) {
|
395
381
|
return axiosInstance({
|
396
|
-
operationId: "
|
397
|
-
method: "
|
382
|
+
operationId: "createAsset",
|
383
|
+
method: "post",
|
398
384
|
url: "/folders/" + folder_id + "/assets",
|
399
|
-
data:
|
385
|
+
data: assetCreationOptions
|
400
386
|
});
|
401
387
|
}
|
402
|
-
function
|
388
|
+
function moveAssets({
|
403
389
|
folder_id,
|
404
|
-
|
405
|
-
assetCreationOptions
|
390
|
+
assetIds
|
406
391
|
}) {
|
407
392
|
return axiosInstance({
|
408
|
-
operationId: "
|
409
|
-
method: "
|
410
|
-
url: "/folders/" + folder_id + "/assets
|
411
|
-
data:
|
393
|
+
operationId: "moveAssets",
|
394
|
+
method: "put",
|
395
|
+
url: "/folders/" + folder_id + "/assets",
|
396
|
+
data: assetIds
|
412
397
|
});
|
413
398
|
}
|
414
399
|
function getSessionsInFolder({
|
@@ -935,6 +920,22 @@ function shouldRetryRequest(error) {
|
|
935
920
|
}
|
936
921
|
}
|
937
922
|
installInterceptors();
|
923
|
+
function uploadSourceFiles({
|
924
|
+
folder_id,
|
925
|
+
body,
|
926
|
+
onUploadProgress
|
927
|
+
}) {
|
928
|
+
return axiosInstance({
|
929
|
+
operationId: "uploadSourceFiles",
|
930
|
+
method: "post",
|
931
|
+
url: `/folders/${folder_id}/source-files`,
|
932
|
+
headers: {
|
933
|
+
"Content-Type": "multipart/form-data"
|
934
|
+
},
|
935
|
+
data: body,
|
936
|
+
onUploadProgress
|
937
|
+
});
|
938
|
+
}
|
938
939
|
export {
|
939
940
|
ApiError,
|
940
941
|
UnexpectedServiceError,
|