@rtsdk/topia 0.15.0 → 0.15.2

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
@@ -41698,7 +41698,7 @@ class User extends SDKController {
41698
41698
  let query = `?getUnlockablesOnly=${getUnlockablesOnly}`;
41699
41699
  if (name)
41700
41700
  query += `&name=${name}`;
41701
- const result = yield this.topiaPublicApi().get(`/expressions?getUnlockablesOnly=${getUnlockablesOnly}`, this.requestOptions);
41701
+ const result = yield this.topiaPublicApi().get(`/expressions${query}`, this.requestOptions);
41702
41702
  return result.data;
41703
41703
  }
41704
41704
  catch (error) {
@@ -42002,6 +42002,29 @@ class Visitor extends User {
42002
42002
  }
42003
42003
  });
42004
42004
  }
42005
+ /**
42006
+ * @summary
42007
+ * Get expressions
42008
+ *
42009
+ * @usage
42010
+ * ```ts
42011
+ * await visitor.getExpressions({ getUnlockablesOnly: true, });
42012
+ * ```
42013
+ */
42014
+ getExpressions({ name, getUnlockablesOnly, }) {
42015
+ return __awaiter(this, void 0, void 0, function* () {
42016
+ try {
42017
+ let query = `?getUnlockablesOnly=${getUnlockablesOnly}`;
42018
+ if (name)
42019
+ query += `&name=${name}`;
42020
+ const result = yield this.topiaPublicApi().get(`/expressions${query}`, this.requestOptions);
42021
+ return result.data;
42022
+ }
42023
+ catch (error) {
42024
+ throw this.errorHandler({ error, params: { name, getUnlockablesOnly }, sdkMethod: "Visitors.getExpressions" });
42025
+ }
42026
+ });
42027
+ }
42005
42028
  /**
42006
42029
  * @summary
42007
42030
  * Grant expression to a visitor by id or name.
@@ -42589,7 +42612,7 @@ class DroppedAssetFactory extends SDKController {
42589
42612
  });
42590
42613
  * ```
42591
42614
  */
42592
- drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
42615
+ drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
42593
42616
  return __awaiter(this, void 0, void 0, function* () {
42594
42617
  let specialType = null;
42595
42618
  if (layer0 || layer1)
@@ -42615,6 +42638,7 @@ class DroppedAssetFactory extends SDKController {
42615
42638
  specialType,
42616
42639
  text,
42617
42640
  textColor,
42641
+ textFontFamily,
42618
42642
  textSize,
42619
42643
  textWeight,
42620
42644
  textWidth,
package/dist/index.d.ts CHANGED
@@ -1348,6 +1348,19 @@ declare class Visitor extends User implements VisitorInterface {
1348
1348
  * ```
1349
1349
  */
1350
1350
  turnAVOff(): Promise<void | ResponseType$1>;
1351
+ /**
1352
+ * @summary
1353
+ * Get expressions
1354
+ *
1355
+ * @usage
1356
+ * ```ts
1357
+ * await visitor.getExpressions({ getUnlockablesOnly: true, });
1358
+ * ```
1359
+ */
1360
+ getExpressions({ name, getUnlockablesOnly, }: {
1361
+ name?: string;
1362
+ getUnlockablesOnly?: boolean;
1363
+ }): Promise<ResponseType$1>;
1351
1364
  /**
1352
1365
  * @summary
1353
1366
  * Grant expression to a visitor by id or name.
@@ -1885,6 +1898,10 @@ interface WorldInterface extends SDKInterface, WorldDetailsInterface {
1885
1898
  isPartial?: boolean;
1886
1899
  isReversed?: boolean;
1887
1900
  }): Promise<DroppedAsset[]>;
1901
+ fetchDroppedAssetsBySceneDropId({ sceneDropId, uniqueName, }: {
1902
+ sceneDropId: string;
1903
+ uniqueName?: string;
1904
+ }): Promise<DroppedAsset[]>;
1888
1905
  updateCustomTextDroppedAssets(droppedAssetsToUpdate: Array<DroppedAsset>, style: object): Promise<object>;
1889
1906
  dropScene({ assetSuffix, position, sceneId, }: {
1890
1907
  assetSuffix: string;
@@ -2268,7 +2285,7 @@ declare class DroppedAssetFactory extends SDKController {
2268
2285
  });
2269
2286
  * ```
2270
2287
  */
2271
- drop(asset: Asset, { assetScale, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }: {
2288
+ drop(asset: Asset, { assetScale, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }: {
2272
2289
  assetScale?: number;
2273
2290
  flipped?: boolean;
2274
2291
  clickType?: string;
@@ -2290,6 +2307,7 @@ declare class DroppedAssetFactory extends SDKController {
2290
2307
  sceneDropId?: string;
2291
2308
  text?: string;
2292
2309
  textColor?: string;
2310
+ textFontFamily?: string;
2293
2311
  textSize?: number;
2294
2312
  textWeight?: string;
2295
2313
  textWidth?: number;
package/dist/index.js CHANGED
@@ -41696,7 +41696,7 @@ class User extends SDKController {
41696
41696
  let query = `?getUnlockablesOnly=${getUnlockablesOnly}`;
41697
41697
  if (name)
41698
41698
  query += `&name=${name}`;
41699
- const result = yield this.topiaPublicApi().get(`/expressions?getUnlockablesOnly=${getUnlockablesOnly}`, this.requestOptions);
41699
+ const result = yield this.topiaPublicApi().get(`/expressions${query}`, this.requestOptions);
41700
41700
  return result.data;
41701
41701
  }
41702
41702
  catch (error) {
@@ -42000,6 +42000,29 @@ class Visitor extends User {
42000
42000
  }
42001
42001
  });
42002
42002
  }
42003
+ /**
42004
+ * @summary
42005
+ * Get expressions
42006
+ *
42007
+ * @usage
42008
+ * ```ts
42009
+ * await visitor.getExpressions({ getUnlockablesOnly: true, });
42010
+ * ```
42011
+ */
42012
+ getExpressions({ name, getUnlockablesOnly, }) {
42013
+ return __awaiter(this, void 0, void 0, function* () {
42014
+ try {
42015
+ let query = `?getUnlockablesOnly=${getUnlockablesOnly}`;
42016
+ if (name)
42017
+ query += `&name=${name}`;
42018
+ const result = yield this.topiaPublicApi().get(`/expressions${query}`, this.requestOptions);
42019
+ return result.data;
42020
+ }
42021
+ catch (error) {
42022
+ throw this.errorHandler({ error, params: { name, getUnlockablesOnly }, sdkMethod: "Visitors.getExpressions" });
42023
+ }
42024
+ });
42025
+ }
42003
42026
  /**
42004
42027
  * @summary
42005
42028
  * Grant expression to a visitor by id or name.
@@ -42587,7 +42610,7 @@ class DroppedAssetFactory extends SDKController {
42587
42610
  });
42588
42611
  * ```
42589
42612
  */
42590
- drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
42613
+ drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
42591
42614
  return __awaiter(this, void 0, void 0, function* () {
42592
42615
  let specialType = null;
42593
42616
  if (layer0 || layer1)
@@ -42613,6 +42636,7 @@ class DroppedAssetFactory extends SDKController {
42613
42636
  specialType,
42614
42637
  text,
42615
42638
  textColor,
42639
+ textFontFamily,
42616
42640
  textSize,
42617
42641
  textWeight,
42618
42642
  textWidth,
package/package.json CHANGED
@@ -60,5 +60,5 @@
60
60
  "yalc-push": "yarn build && yalc publish --push --dev --no-scripts"
61
61
  },
62
62
  "type": "module",
63
- "version": "0.15.00"
63
+ "version": "0.15.02"
64
64
  }