@rtsdk/topia 0.3.2 → 0.3.3

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.cjs CHANGED
@@ -40470,7 +40470,7 @@ class World extends SDKController {
40470
40470
  }
40471
40471
  /**
40472
40472
  * @summary
40473
- * Retrieve all assets dropped in a world matching dropSceneId.
40473
+ * Retrieve all assets dropped in a world matching sceneDropId.
40474
40474
  *
40475
40475
  * @usage
40476
40476
  * ```ts
@@ -40534,7 +40534,7 @@ class World extends SDKController {
40534
40534
  }
40535
40535
  /**
40536
40536
  * @summary
40537
- * Drop a scene in a world.
40537
+ * Drops a scene in a world and returns sceneDropId.
40538
40538
  *
40539
40539
  * @usage
40540
40540
  * ```ts
@@ -40547,11 +40547,17 @@ class World extends SDKController {
40547
40547
  * "assetSuffix": "string"
40548
40548
  * });
40549
40549
  * ```
40550
+ *
40551
+ * @result
40552
+ * ```ts
40553
+ * { sceneDropId: sceneId-timestamp, success: true }
40554
+ * ```
40550
40555
  */
40551
40556
  dropScene({ assetSuffix, position, sceneId, }) {
40552
40557
  return __awaiter(this, void 0, void 0, function* () {
40553
40558
  try {
40554
- yield this.topiaPublicApi().post(`/world/${this.urlSlug}/drop-scene`, { assetSuffix, position, sceneId }, this.requestOptions);
40559
+ const result = yield this.topiaPublicApi().post(`/world/${this.urlSlug}/drop-scene`, { assetSuffix, position, sceneId }, this.requestOptions);
40560
+ return result;
40555
40561
  }
40556
40562
  catch (error) {
40557
40563
  throw this.errorHandler({ error });
package/dist/index.d.ts CHANGED
@@ -439,7 +439,7 @@ declare class World extends SDKController implements WorldInterface {
439
439
  }): Promise<DroppedAsset[]>;
440
440
  /**
441
441
  * @summary
442
- * Retrieve all assets dropped in a world matching dropSceneId.
442
+ * Retrieve all assets dropped in a world matching sceneDropId.
443
443
  *
444
444
  * @usage
445
445
  * ```ts
@@ -477,7 +477,7 @@ declare class World extends SDKController implements WorldInterface {
477
477
  updateCustomTextDroppedAssets(droppedAssetsToUpdate: Array<DroppedAsset>, style: object): Promise<object>;
478
478
  /**
479
479
  * @summary
480
- * Drop a scene in a world.
480
+ * Drops a scene in a world and returns sceneDropId.
481
481
  *
482
482
  * @usage
483
483
  * ```ts
@@ -490,12 +490,17 @@ declare class World extends SDKController implements WorldInterface {
490
490
  * "assetSuffix": "string"
491
491
  * });
492
492
  * ```
493
+ *
494
+ * @result
495
+ * ```ts
496
+ * { sceneDropId: sceneId-timestamp, success: true }
497
+ * ```
493
498
  */
494
499
  dropScene({ assetSuffix, position, sceneId, }: {
495
500
  assetSuffix: string;
496
501
  position: object;
497
502
  sceneId: string;
498
- }): Promise<void | ResponseType>;
503
+ }): Promise<object | ResponseType>;
499
504
  /**
500
505
  * @summary
501
506
  * Replace the current scene of a world.
@@ -1206,7 +1211,7 @@ interface WorldInterface extends SDKInterface, WorldDetailsInterface {
1206
1211
  assetSuffix: string;
1207
1212
  position: object;
1208
1213
  sceneId: string;
1209
- }): Promise<void | ResponseType>;
1214
+ }): Promise<object | ResponseType>;
1210
1215
  replaceScene(sceneId: string): Promise<void | ResponseType>;
1211
1216
  fetchDataObject(): Promise<void | ResponseType>;
1212
1217
  setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType>;
package/dist/index.js CHANGED
@@ -40468,7 +40468,7 @@ class World extends SDKController {
40468
40468
  }
40469
40469
  /**
40470
40470
  * @summary
40471
- * Retrieve all assets dropped in a world matching dropSceneId.
40471
+ * Retrieve all assets dropped in a world matching sceneDropId.
40472
40472
  *
40473
40473
  * @usage
40474
40474
  * ```ts
@@ -40532,7 +40532,7 @@ class World extends SDKController {
40532
40532
  }
40533
40533
  /**
40534
40534
  * @summary
40535
- * Drop a scene in a world.
40535
+ * Drops a scene in a world and returns sceneDropId.
40536
40536
  *
40537
40537
  * @usage
40538
40538
  * ```ts
@@ -40545,11 +40545,17 @@ class World extends SDKController {
40545
40545
  * "assetSuffix": "string"
40546
40546
  * });
40547
40547
  * ```
40548
+ *
40549
+ * @result
40550
+ * ```ts
40551
+ * { sceneDropId: sceneId-timestamp, success: true }
40552
+ * ```
40548
40553
  */
40549
40554
  dropScene({ assetSuffix, position, sceneId, }) {
40550
40555
  return __awaiter(this, void 0, void 0, function* () {
40551
40556
  try {
40552
- yield this.topiaPublicApi().post(`/world/${this.urlSlug}/drop-scene`, { assetSuffix, position, sceneId }, this.requestOptions);
40557
+ const result = yield this.topiaPublicApi().post(`/world/${this.urlSlug}/drop-scene`, { assetSuffix, position, sceneId }, this.requestOptions);
40558
+ return result;
40553
40559
  }
40554
40560
  catch (error) {
40555
40561
  throw this.errorHandler({ error });
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "local-publish": "yarn build && yalc publish --push --no-scripts"
60
60
  },
61
61
  "type": "module",
62
- "version": "0.3.2"
62
+ "version": "0.3.3"
63
63
  }