@3dverse/api 0.14.0 → 0.16.0
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 +1403 -22
- package/dist/index.js +25 -5
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +23 -4
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -934,16 +934,18 @@ function deleteAsset({
|
|
|
934
934
|
headers
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function updateAsset({
|
|
938
938
|
asset_container,
|
|
939
939
|
asset_id,
|
|
940
|
-
name
|
|
940
|
+
name,
|
|
941
|
+
meta
|
|
941
942
|
}, headers) {
|
|
942
943
|
return axiosInstance({
|
|
943
944
|
method: "patch",
|
|
944
945
|
url: "/assets/" + encodeURIComponent(asset_container) + "/" + encodeURIComponent(asset_id),
|
|
945
946
|
data: {
|
|
946
|
-
name
|
|
947
|
+
name,
|
|
948
|
+
meta
|
|
947
949
|
},
|
|
948
950
|
headers
|
|
949
951
|
});
|
|
@@ -1078,6 +1080,22 @@ function getAssetCode({
|
|
|
1078
1080
|
responseType: "text"
|
|
1079
1081
|
});
|
|
1080
1082
|
}
|
|
1083
|
+
function replaceAssetCode({
|
|
1084
|
+
asset_container_with_code,
|
|
1085
|
+
asset_id,
|
|
1086
|
+
code,
|
|
1087
|
+
debug = false
|
|
1088
|
+
}, headers) {
|
|
1089
|
+
return axiosInstance({
|
|
1090
|
+
method: "put",
|
|
1091
|
+
url: "/assets/" + encodeURIComponent(asset_container_with_code) + "/" + encodeURIComponent(asset_id) + "/code",
|
|
1092
|
+
data: {
|
|
1093
|
+
code,
|
|
1094
|
+
debug
|
|
1095
|
+
},
|
|
1096
|
+
headers
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1081
1099
|
function getAssetThumbnail({
|
|
1082
1100
|
asset_container,
|
|
1083
1101
|
asset_id,
|
|
@@ -1691,13 +1709,14 @@ export {
|
|
|
1691
1709
|
moveSourceFiles,
|
|
1692
1710
|
packageAsset,
|
|
1693
1711
|
registerUser,
|
|
1694
|
-
|
|
1712
|
+
replaceAssetCode,
|
|
1695
1713
|
revokeMemberAccessToFolder,
|
|
1696
1714
|
revokeMemberAccessToGroup,
|
|
1697
1715
|
setApiKey,
|
|
1698
1716
|
setAssetThumbnail,
|
|
1699
1717
|
setBaseURL,
|
|
1700
1718
|
setUserToken,
|
|
1719
|
+
updateAsset,
|
|
1701
1720
|
updateAssetDescription,
|
|
1702
1721
|
updateAssetGraph,
|
|
1703
1722
|
updateEntity,
|