@3dverse/api 0.3.5 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -93,13 +93,13 @@ __export(library_exports, {
93
93
  moveSourceFiles: () => moveSourceFiles,
94
94
  packageAsset: () => packageAsset,
95
95
  registerUser: () => registerUser,
96
+ renameAsset: () => renameAsset,
96
97
  revokeMemberAccessToFolder: () => revokeMemberAccessToFolder,
97
98
  revokeMemberAccessToGroup: () => revokeMemberAccessToGroup,
98
99
  setApiKey: () => setApiKey,
99
100
  setAssetThumbnail: () => setAssetThumbnail,
100
101
  setBaseURL: () => setBaseURL,
101
102
  setUserToken: () => setUserToken,
102
- updateAssetDescription: () => updateAssetDescription,
103
103
  updateEntity: () => updateEntity,
104
104
  updateFolder: () => updateFolder,
105
105
  updateGroupDescription: () => updateGroupDescription,
@@ -705,16 +705,18 @@ function getAssetDescription({
705
705
  url: "/assets/" + asset_container + "/" + asset_id + "/description"
706
706
  });
707
707
  }
708
- function updateAssetDescription({
708
+ function renameAsset({
709
709
  asset_container,
710
710
  asset_id,
711
- assetDescription
711
+ name
712
712
  }) {
713
713
  return axiosInstance({
714
- operationId: "updateAssetDescription",
714
+ operationId: "renameAsset",
715
715
  method: "patch",
716
716
  url: "/assets/" + asset_container + "/" + asset_id + "/description",
717
- data: assetDescription
717
+ data: {
718
+ name
719
+ }
718
720
  });
719
721
  }
720
722
  function getAssetPayload({
@@ -1092,13 +1094,13 @@ installInterceptors();
1092
1094
  moveSourceFiles,
1093
1095
  packageAsset,
1094
1096
  registerUser,
1097
+ renameAsset,
1095
1098
  revokeMemberAccessToFolder,
1096
1099
  revokeMemberAccessToGroup,
1097
1100
  setApiKey,
1098
1101
  setAssetThumbnail,
1099
1102
  setBaseURL,
1100
1103
  setUserToken,
1101
- updateAssetDescription,
1102
1104
  updateEntity,
1103
1105
  updateFolder,
1104
1106
  updateGroupDescription,