@3dverse/api 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +104 -27
- package/dist/index.js +54 -8
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +51 -8
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -279,15 +279,11 @@ function createSubfolder({
|
|
279
279
|
});
|
280
280
|
}
|
281
281
|
function listFolderSubFolders({
|
282
|
-
folder_id
|
283
|
-
depth = 0
|
282
|
+
folder_id
|
284
283
|
}) {
|
285
284
|
return axiosInstance({
|
286
285
|
method: "get",
|
287
|
-
url: "/folders/" + folder_id + "/folders"
|
288
|
-
params: {
|
289
|
-
depth
|
290
|
-
}
|
286
|
+
url: "/folders/" + folder_id + "/folders"
|
291
287
|
});
|
292
288
|
}
|
293
289
|
function getSourceFilesInFolder({
|
@@ -369,6 +365,38 @@ function moveAssets({
|
|
369
365
|
data: asset_ids
|
370
366
|
});
|
371
367
|
}
|
368
|
+
function createMaterial({
|
369
|
+
folder_id,
|
370
|
+
dataJson,
|
371
|
+
isDoubleSided,
|
372
|
+
name,
|
373
|
+
shaderRef
|
374
|
+
}) {
|
375
|
+
return axiosInstance({
|
376
|
+
method: "post",
|
377
|
+
url: "/folders/" + folder_id + "/assets/materials",
|
378
|
+
data: {
|
379
|
+
dataJson,
|
380
|
+
isDoubleSided,
|
381
|
+
name,
|
382
|
+
shaderRef
|
383
|
+
}
|
384
|
+
});
|
385
|
+
}
|
386
|
+
function createCubemap({
|
387
|
+
folder_id,
|
388
|
+
faces,
|
389
|
+
name
|
390
|
+
}) {
|
391
|
+
return axiosInstance({
|
392
|
+
method: "post",
|
393
|
+
url: "/folders/" + folder_id + "/assets/cubemaps",
|
394
|
+
data: {
|
395
|
+
faces,
|
396
|
+
name
|
397
|
+
}
|
398
|
+
});
|
399
|
+
}
|
372
400
|
function getSessionsInFolder({
|
373
401
|
folder_id
|
374
402
|
}) {
|
@@ -588,12 +616,16 @@ function renameAsset({
|
|
588
616
|
}
|
589
617
|
function getAssetPayload({
|
590
618
|
asset_container_with_payload,
|
591
|
-
asset_id
|
619
|
+
asset_id,
|
620
|
+
sub_resource
|
592
621
|
}) {
|
593
622
|
return axiosInstance({
|
594
623
|
method: "get",
|
595
624
|
url: "/assets/" + asset_container_with_payload + "/" + asset_id + "/payload",
|
596
|
-
responseType: "arraybuffer"
|
625
|
+
responseType: "arraybuffer",
|
626
|
+
params: {
|
627
|
+
sub_resource
|
628
|
+
}
|
597
629
|
});
|
598
630
|
}
|
599
631
|
function getAssetHistory({
|
@@ -738,6 +770,14 @@ function deleteEntity({
|
|
738
770
|
url: "/assets/scenes/" + scene_id + "/entities/" + entity_id
|
739
771
|
});
|
740
772
|
}
|
773
|
+
function getSceneSettings({
|
774
|
+
scene_id
|
775
|
+
}) {
|
776
|
+
return axiosInstance({
|
777
|
+
method: "get",
|
778
|
+
url: "/assets/scenes/" + scene_id + "/settings"
|
779
|
+
});
|
780
|
+
}
|
741
781
|
function getRunningSessions({
|
742
782
|
filters
|
743
783
|
}) {
|
@@ -911,8 +951,10 @@ export {
|
|
911
951
|
UnexpectedServiceError,
|
912
952
|
axiosInstance,
|
913
953
|
createAsset,
|
954
|
+
createCubemap,
|
914
955
|
createFolder,
|
915
956
|
createGroup,
|
957
|
+
createMaterial,
|
916
958
|
createSession,
|
917
959
|
createSubfolder,
|
918
960
|
deleteAsset,
|
@@ -945,6 +987,7 @@ export {
|
|
945
987
|
getRunningSessions,
|
946
988
|
getSceneAABB,
|
947
989
|
getSceneSessions,
|
990
|
+
getSceneSettings,
|
948
991
|
getSession,
|
949
992
|
getSessionsInFolder,
|
950
993
|
getSourceFileAssets,
|