@rtsdk/topia 0.0.24 → 0.0.25

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
@@ -39868,14 +39868,24 @@ class DroppedAsset extends Asset {
39868
39868
  return __awaiter(this, void 0, void 0, function* () {
39869
39869
  try {
39870
39870
  const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/assets/${this.id}`, this.requestOptions);
39871
- Object.assign(this, response.data);
39871
+ const droppedAssetDetails = response.data;
39872
+ droppedAssetDetails.urlSlug = this.urlSlug;
39873
+ Object.assign(this, droppedAssetDetails);
39872
39874
  }
39873
39875
  catch (error) {
39874
39876
  throw this.errorHandler({ error });
39875
39877
  }
39876
39878
  });
39877
39879
  }
39878
- // delete dropped asset
39880
+ /**
39881
+ * @summary
39882
+ * Delete dropped asset.
39883
+ *
39884
+ * @usage
39885
+ * ```ts
39886
+ * await droppedAsset.deleteDroppedAsset();
39887
+ * ```
39888
+ */
39879
39889
  deleteDroppedAsset() {
39880
39890
  return __awaiter(this, void 0, void 0, function* () {
39881
39891
  try {
@@ -39896,7 +39906,6 @@ class DroppedAsset extends Asset {
39896
39906
  * const { dataObject } = droppedAsset;
39897
39907
  * ```
39898
39908
  */
39899
- // get dropped asset
39900
39909
  fetchDroppedAssetDataObject() {
39901
39910
  return __awaiter(this, void 0, void 0, function* () {
39902
39911
  try {
@@ -39910,7 +39919,7 @@ class DroppedAsset extends Asset {
39910
39919
  }
39911
39920
  /**
39912
39921
  * @summary
39913
- * Setss the data object for a dropped asset.
39922
+ * Sets the data object for a dropped asset.
39914
39923
  *
39915
39924
  * Optionally, a lock can be provided with this request to ensure only one update happens at a time between all updates that share the same lock id
39916
39925
  *
@@ -39922,7 +39931,6 @@ class DroppedAsset extends Asset {
39922
39931
  * const { dataObject } = droppedAsset;
39923
39932
  * ```
39924
39933
  */
39925
- // get dropped asset
39926
39934
  setDroppedAssetDataObject(dataObject, options = {}) {
39927
39935
  return __awaiter(this, void 0, void 0, function* () {
39928
39936
  try {
@@ -56,14 +56,24 @@ export class DroppedAsset extends Asset {
56
56
  return __awaiter(this, void 0, void 0, function* () {
57
57
  try {
58
58
  const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/assets/${this.id}`, this.requestOptions);
59
- Object.assign(this, response.data);
59
+ const droppedAssetDetails = response.data;
60
+ droppedAssetDetails.urlSlug = this.urlSlug;
61
+ Object.assign(this, droppedAssetDetails);
60
62
  }
61
63
  catch (error) {
62
64
  throw this.errorHandler({ error });
63
65
  }
64
66
  });
65
67
  }
66
- // delete dropped asset
68
+ /**
69
+ * @summary
70
+ * Delete dropped asset.
71
+ *
72
+ * @usage
73
+ * ```ts
74
+ * await droppedAsset.deleteDroppedAsset();
75
+ * ```
76
+ */
67
77
  deleteDroppedAsset() {
68
78
  return __awaiter(this, void 0, void 0, function* () {
69
79
  try {
@@ -84,7 +94,6 @@ export class DroppedAsset extends Asset {
84
94
  * const { dataObject } = droppedAsset;
85
95
  * ```
86
96
  */
87
- // get dropped asset
88
97
  fetchDroppedAssetDataObject() {
89
98
  return __awaiter(this, void 0, void 0, function* () {
90
99
  try {
@@ -98,7 +107,7 @@ export class DroppedAsset extends Asset {
98
107
  }
99
108
  /**
100
109
  * @summary
101
- * Setss the data object for a dropped asset.
110
+ * Sets the data object for a dropped asset.
102
111
  *
103
112
  * Optionally, a lock can be provided with this request to ensure only one update happens at a time between all updates that share the same lock id
104
113
  *
@@ -110,7 +119,6 @@ export class DroppedAsset extends Asset {
110
119
  * const { dataObject } = droppedAsset;
111
120
  * ```
112
121
  */
113
- // get dropped asset
114
122
  setDroppedAssetDataObject(dataObject, options = {}) {
115
123
  return __awaiter(this, void 0, void 0, function* () {
116
124
  try {
package/package.json CHANGED
@@ -56,5 +56,5 @@
56
56
  "local-publish": "yarn build && yalc publish --push --no-scripts"
57
57
  },
58
58
  "type": "module",
59
- "version": "0.0.24"
59
+ "version": "0.0.25"
60
60
  }