@rtsdk/topia 0.15.1 → 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.
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.
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.
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.01"
63
+ "version": "0.15.02"
64
64
  }