@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/index.js CHANGED
@@ -57,6 +57,7 @@ __export(index_exports, {
57
57
  getAssetDescription: () => getAssetDescription,
58
58
  getAssetDetails: () => getAssetDetails,
59
59
  getAssetFolder: () => getAssetFolder,
60
+ getAssetGraph: () => getAssetGraph,
60
61
  getAssetHistory: () => getAssetHistory,
61
62
  getAssetMeta: () => getAssetMeta,
62
63
  getAssetPayload: () => getAssetPayload,
@@ -65,6 +66,7 @@ __export(index_exports, {
65
66
  getAssetThumbnail: () => getAssetThumbnail,
66
67
  getClient: () => getClient,
67
68
  getConversionTaskMetadata: () => getConversionTaskMetadata,
69
+ getCurrentUser: () => getCurrentUser,
68
70
  getEntity: () => getEntity,
69
71
  getFolderAssets: () => getFolderAssets,
70
72
  getFolderInfo: () => getFolderInfo,
@@ -111,9 +113,12 @@ __export(index_exports, {
111
113
  setAssetThumbnail: () => setAssetThumbnail,
112
114
  setBaseURL: () => setBaseURL,
113
115
  setUserToken: () => setUserToken,
116
+ updateAssetDescription: () => updateAssetDescription,
117
+ updateAssetGraph: () => updateAssetGraph,
114
118
  updateEntity: () => updateEntity,
115
119
  updateFolder: () => updateFolder,
116
120
  updateGroupDescription: () => updateGroupDescription,
121
+ updateSceneSettings: () => updateSceneSettings,
117
122
  updateSourceFileDetails: () => updateSourceFileDetails,
118
123
  updateUser: () => updateUser,
119
124
  uploadSourceFiles: () => uploadSourceFiles
@@ -155,6 +160,13 @@ function registerUser({
155
160
  headers
156
161
  });
157
162
  }
163
+ function getCurrentUser(headers) {
164
+ return axiosInstance({
165
+ method: "get",
166
+ url: "/users/me",
167
+ headers
168
+ });
169
+ }
158
170
  function getUser({
159
171
  user_id
160
172
  }, headers) {
@@ -845,8 +857,8 @@ function getAssetReferences({
845
857
  });
846
858
  }
847
859
  function getAssetDescription({
848
- asset_container,
849
- asset_id
860
+ asset_id,
861
+ asset_container
850
862
  }, headers) {
851
863
  return axiosInstance({
852
864
  method: "get",
@@ -854,9 +866,21 @@ function getAssetDescription({
854
866
  headers
855
867
  });
856
868
  }
857
- function renameAsset({
869
+ function updateAssetDescription({
870
+ asset_id,
858
871
  asset_container,
872
+ asset_description
873
+ }, headers) {
874
+ return axiosInstance({
875
+ method: "put",
876
+ url: "/assets/" + asset_container + "/" + asset_id + "/description",
877
+ data: asset_description,
878
+ headers
879
+ });
880
+ }
881
+ function renameAsset({
859
882
  asset_id,
883
+ asset_container,
860
884
  name
861
885
  }, headers) {
862
886
  return axiosInstance({
@@ -883,6 +907,28 @@ function getAssetPayload({
883
907
  responseType: responseType || "arraybuffer"
884
908
  });
885
909
  }
910
+ function getAssetGraph({
911
+ asset_container_with_graph,
912
+ asset_id
913
+ }, headers) {
914
+ return axiosInstance({
915
+ method: "get",
916
+ url: "/assets/" + asset_container_with_graph + "/" + asset_id + "/graph",
917
+ headers
918
+ });
919
+ }
920
+ function updateAssetGraph({
921
+ asset_container_with_graph,
922
+ asset_id,
923
+ asset_graph
924
+ }, headers) {
925
+ return axiosInstance({
926
+ method: "put",
927
+ url: "/assets/" + asset_container_with_graph + "/" + asset_id + "/graph",
928
+ data: asset_graph,
929
+ headers
930
+ });
931
+ }
886
932
  function getAssetHistory({
887
933
  asset_container,
888
934
  asset_id
@@ -1060,6 +1106,17 @@ function getSceneSettings({
1060
1106
  headers
1061
1107
  });
1062
1108
  }
1109
+ function updateSceneSettings({
1110
+ scene_id,
1111
+ body
1112
+ }, headers) {
1113
+ return axiosInstance({
1114
+ method: "patch",
1115
+ url: "/assets/scenes/" + scene_id + "/settings",
1116
+ data: body,
1117
+ headers
1118
+ });
1119
+ }
1063
1120
  function getRunningSessions({
1064
1121
  filters
1065
1122
  }, headers) {
@@ -1267,6 +1324,7 @@ installInterceptors();
1267
1324
  getAssetDescription,
1268
1325
  getAssetDetails,
1269
1326
  getAssetFolder,
1327
+ getAssetGraph,
1270
1328
  getAssetHistory,
1271
1329
  getAssetMeta,
1272
1330
  getAssetPayload,
@@ -1275,6 +1333,7 @@ installInterceptors();
1275
1333
  getAssetThumbnail,
1276
1334
  getClient,
1277
1335
  getConversionTaskMetadata,
1336
+ getCurrentUser,
1278
1337
  getEntity,
1279
1338
  getFolderAssets,
1280
1339
  getFolderInfo,
@@ -1321,9 +1380,12 @@ installInterceptors();
1321
1380
  setAssetThumbnail,
1322
1381
  setBaseURL,
1323
1382
  setUserToken,
1383
+ updateAssetDescription,
1384
+ updateAssetGraph,
1324
1385
  updateEntity,
1325
1386
  updateFolder,
1326
1387
  updateGroupDescription,
1388
+ updateSceneSettings,
1327
1389
  updateSourceFileDetails,
1328
1390
  updateUser,
1329
1391
  uploadSourceFiles