@3dverse/api 0.8.15 → 0.8.17
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 +477 -28
- package/dist/index.js +65 -3
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +60 -3
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,13 @@ function registerUser({
|
|
|
35
35
|
headers
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
+
function getCurrentUser(headers) {
|
|
39
|
+
return axiosInstance({
|
|
40
|
+
method: "get",
|
|
41
|
+
url: "/users/me",
|
|
42
|
+
headers
|
|
43
|
+
});
|
|
44
|
+
}
|
|
38
45
|
function getUser({
|
|
39
46
|
user_id
|
|
40
47
|
}, headers) {
|
|
@@ -725,8 +732,8 @@ function getAssetReferences({
|
|
|
725
732
|
});
|
|
726
733
|
}
|
|
727
734
|
function getAssetDescription({
|
|
728
|
-
|
|
729
|
-
|
|
735
|
+
asset_id,
|
|
736
|
+
asset_container
|
|
730
737
|
}, headers) {
|
|
731
738
|
return axiosInstance({
|
|
732
739
|
method: "get",
|
|
@@ -734,9 +741,21 @@ function getAssetDescription({
|
|
|
734
741
|
headers
|
|
735
742
|
});
|
|
736
743
|
}
|
|
737
|
-
function
|
|
744
|
+
function updateAssetDescription({
|
|
745
|
+
asset_id,
|
|
738
746
|
asset_container,
|
|
747
|
+
asset_description
|
|
748
|
+
}, headers) {
|
|
749
|
+
return axiosInstance({
|
|
750
|
+
method: "put",
|
|
751
|
+
url: "/assets/" + asset_container + "/" + asset_id + "/description",
|
|
752
|
+
data: asset_description,
|
|
753
|
+
headers
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
function renameAsset({
|
|
739
757
|
asset_id,
|
|
758
|
+
asset_container,
|
|
740
759
|
name
|
|
741
760
|
}, headers) {
|
|
742
761
|
return axiosInstance({
|
|
@@ -763,6 +782,28 @@ function getAssetPayload({
|
|
|
763
782
|
responseType: responseType || "arraybuffer"
|
|
764
783
|
});
|
|
765
784
|
}
|
|
785
|
+
function getAssetGraph({
|
|
786
|
+
asset_container_with_graph,
|
|
787
|
+
asset_id
|
|
788
|
+
}, headers) {
|
|
789
|
+
return axiosInstance({
|
|
790
|
+
method: "get",
|
|
791
|
+
url: "/assets/" + asset_container_with_graph + "/" + asset_id + "/graph",
|
|
792
|
+
headers
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
function updateAssetGraph({
|
|
796
|
+
asset_container_with_graph,
|
|
797
|
+
asset_id,
|
|
798
|
+
asset_graph
|
|
799
|
+
}, headers) {
|
|
800
|
+
return axiosInstance({
|
|
801
|
+
method: "put",
|
|
802
|
+
url: "/assets/" + asset_container_with_graph + "/" + asset_id + "/graph",
|
|
803
|
+
data: asset_graph,
|
|
804
|
+
headers
|
|
805
|
+
});
|
|
806
|
+
}
|
|
766
807
|
function getAssetHistory({
|
|
767
808
|
asset_container,
|
|
768
809
|
asset_id
|
|
@@ -940,6 +981,17 @@ function getSceneSettings({
|
|
|
940
981
|
headers
|
|
941
982
|
});
|
|
942
983
|
}
|
|
984
|
+
function updateSceneSettings({
|
|
985
|
+
scene_id,
|
|
986
|
+
body
|
|
987
|
+
}, headers) {
|
|
988
|
+
return axiosInstance({
|
|
989
|
+
method: "patch",
|
|
990
|
+
url: "/assets/scenes/" + scene_id + "/settings",
|
|
991
|
+
data: body,
|
|
992
|
+
headers
|
|
993
|
+
});
|
|
994
|
+
}
|
|
943
995
|
function getRunningSessions({
|
|
944
996
|
filters
|
|
945
997
|
}, headers) {
|
|
@@ -1146,6 +1198,7 @@ export {
|
|
|
1146
1198
|
getAssetDescription,
|
|
1147
1199
|
getAssetDetails,
|
|
1148
1200
|
getAssetFolder,
|
|
1201
|
+
getAssetGraph,
|
|
1149
1202
|
getAssetHistory,
|
|
1150
1203
|
getAssetMeta,
|
|
1151
1204
|
getAssetPayload,
|
|
@@ -1154,6 +1207,7 @@ export {
|
|
|
1154
1207
|
getAssetThumbnail,
|
|
1155
1208
|
getClient,
|
|
1156
1209
|
getConversionTaskMetadata,
|
|
1210
|
+
getCurrentUser,
|
|
1157
1211
|
getEntity,
|
|
1158
1212
|
getFolderAssets,
|
|
1159
1213
|
getFolderInfo,
|
|
@@ -1200,9 +1254,12 @@ export {
|
|
|
1200
1254
|
setAssetThumbnail,
|
|
1201
1255
|
setBaseURL,
|
|
1202
1256
|
setUserToken,
|
|
1257
|
+
updateAssetDescription,
|
|
1258
|
+
updateAssetGraph,
|
|
1203
1259
|
updateEntity,
|
|
1204
1260
|
updateFolder,
|
|
1205
1261
|
updateGroupDescription,
|
|
1262
|
+
updateSceneSettings,
|
|
1206
1263
|
updateSourceFileDetails,
|
|
1207
1264
|
updateUser,
|
|
1208
1265
|
uploadSourceFiles
|