@3dverse/api 0.13.2 → 0.15.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/index.mjs CHANGED
@@ -799,6 +799,19 @@ function getImport({
799
799
  headers
800
800
  });
801
801
  }
802
+ function updateImport({
803
+ import_id,
804
+ state
805
+ }, headers) {
806
+ return axiosInstance({
807
+ method: "patch",
808
+ url: "/imports/" + encodeURIComponent(import_id),
809
+ data: {
810
+ state
811
+ },
812
+ headers
813
+ });
814
+ }
802
815
  function getConversionLogs({
803
816
  conversion_id,
804
817
  from,
@@ -1065,6 +1078,22 @@ function getAssetCode({
1065
1078
  responseType: "text"
1066
1079
  });
1067
1080
  }
1081
+ function replaceAssetCode({
1082
+ asset_container_with_code,
1083
+ asset_id,
1084
+ code,
1085
+ debug = false
1086
+ }, headers) {
1087
+ return axiosInstance({
1088
+ method: "put",
1089
+ url: "/assets/" + encodeURIComponent(asset_container_with_code) + "/" + encodeURIComponent(asset_id) + "/code",
1090
+ data: {
1091
+ code,
1092
+ debug
1093
+ },
1094
+ headers
1095
+ });
1096
+ }
1068
1097
  function getAssetThumbnail({
1069
1098
  asset_container,
1070
1099
  asset_id,
@@ -1679,6 +1708,7 @@ export {
1679
1708
  packageAsset,
1680
1709
  registerUser,
1681
1710
  renameAsset,
1711
+ replaceAssetCode,
1682
1712
  revokeMemberAccessToFolder,
1683
1713
  revokeMemberAccessToGroup,
1684
1714
  setApiKey,
@@ -1690,6 +1720,7 @@ export {
1690
1720
  updateEntity,
1691
1721
  updateFolder,
1692
1722
  updateGroup,
1723
+ updateImport,
1693
1724
  updateSceneSettings,
1694
1725
  updateSourceFile,
1695
1726
  updateUser,