@3dverse/api 0.8.16 → 0.8.18
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 +256 -15
- package/dist/index.js +52 -3
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +48 -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
|
|
@@ -1157,6 +1198,7 @@ export {
|
|
|
1157
1198
|
getAssetDescription,
|
|
1158
1199
|
getAssetDetails,
|
|
1159
1200
|
getAssetFolder,
|
|
1201
|
+
getAssetGraph,
|
|
1160
1202
|
getAssetHistory,
|
|
1161
1203
|
getAssetMeta,
|
|
1162
1204
|
getAssetPayload,
|
|
@@ -1165,6 +1207,7 @@ export {
|
|
|
1165
1207
|
getAssetThumbnail,
|
|
1166
1208
|
getClient,
|
|
1167
1209
|
getConversionTaskMetadata,
|
|
1210
|
+
getCurrentUser,
|
|
1168
1211
|
getEntity,
|
|
1169
1212
|
getFolderAssets,
|
|
1170
1213
|
getFolderInfo,
|
|
@@ -1211,6 +1254,8 @@ export {
|
|
|
1211
1254
|
setAssetThumbnail,
|
|
1212
1255
|
setBaseURL,
|
|
1213
1256
|
setUserToken,
|
|
1257
|
+
updateAssetDescription,
|
|
1258
|
+
updateAssetGraph,
|
|
1214
1259
|
updateEntity,
|
|
1215
1260
|
updateFolder,
|
|
1216
1261
|
updateGroupDescription,
|