@rtsdk/topia 0.7.0 → 0.7.1

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
@@ -40184,9 +40184,18 @@ class DroppedAsset extends Asset {
40184
40184
  * });
40185
40185
  * ```
40186
40186
  */
40187
- addWebhook({ dataObject, description, isUniqueOnly, title, type, url, }) {
40187
+ addWebhook({ dataObject, description, isUniqueOnly, shouldSetClickType, shouldSetIsInteractive, title, type, url, }) {
40188
40188
  return __awaiter(this, void 0, void 0, function* () {
40189
- const params = { dataObject, description, isUniqueOnly, title, type, url };
40189
+ const params = {
40190
+ dataObject,
40191
+ description,
40192
+ isUniqueOnly,
40193
+ shouldSetClickType,
40194
+ shouldSetIsInteractive,
40195
+ title,
40196
+ type,
40197
+ url,
40198
+ };
40190
40199
  try {
40191
40200
  const response = yield this.topiaPublicApi().post(`/world/${this.urlSlug}/webhooks`, Object.assign(Object.assign({}, params), { active: true, assetId: this.id, enteredBy: "", urlSlug: this.urlSlug }), this.requestOptions);
40192
40201
  return response.data.webhookId;
package/dist/index.d.ts CHANGED
@@ -6,7 +6,8 @@ declare enum DroppedAssetClickType {
6
6
  NONE = "none",
7
7
  LINK = "link",
8
8
  PORTAL = "portal",
9
- TELEPORT = "teleport"
9
+ TELEPORT = "teleport",
10
+ WEBHOOK = "webhook"
10
11
  }
11
12
  declare enum DroppedAssetMediaType {
12
13
  NONE = "none",
@@ -340,10 +341,12 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
340
341
  * });
341
342
  * ```
342
343
  */
343
- addWebhook({ dataObject, description, isUniqueOnly, title, type, url, }: {
344
+ addWebhook({ dataObject, description, isUniqueOnly, shouldSetClickType, shouldSetIsInteractive, title, type, url, }: {
344
345
  dataObject: object;
345
346
  description: string;
346
347
  isUniqueOnly: boolean;
348
+ shouldSetClickType?: boolean;
349
+ shouldSetIsInteractive?: boolean;
347
350
  title: string;
348
351
  type: string;
349
352
  url: string;
@@ -1414,6 +1417,7 @@ interface WorldInterface extends SDKInterface, WorldDetailsInterface {
1414
1417
  setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType>;
1415
1418
  updateDataObject(dataObject: object, options: object): Promise<void | ResponseType>;
1416
1419
  incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType>;
1420
+ dataObject?: object | null;
1417
1421
  }
1418
1422
  interface WorldOptionalInterface {
1419
1423
  attributes?: WorldDetailsInterface | object;
package/dist/index.js CHANGED
@@ -40182,9 +40182,18 @@ class DroppedAsset extends Asset {
40182
40182
  * });
40183
40183
  * ```
40184
40184
  */
40185
- addWebhook({ dataObject, description, isUniqueOnly, title, type, url, }) {
40185
+ addWebhook({ dataObject, description, isUniqueOnly, shouldSetClickType, shouldSetIsInteractive, title, type, url, }) {
40186
40186
  return __awaiter(this, void 0, void 0, function* () {
40187
- const params = { dataObject, description, isUniqueOnly, title, type, url };
40187
+ const params = {
40188
+ dataObject,
40189
+ description,
40190
+ isUniqueOnly,
40191
+ shouldSetClickType,
40192
+ shouldSetIsInteractive,
40193
+ title,
40194
+ type,
40195
+ url,
40196
+ };
40188
40197
  try {
40189
40198
  const response = yield this.topiaPublicApi().post(`/world/${this.urlSlug}/webhooks`, Object.assign(Object.assign({}, params), { active: true, assetId: this.id, enteredBy: "", urlSlug: this.urlSlug }), this.requestOptions);
40190
40199
  return response.data.webhookId;
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.7.0"
62
+ "version": "0.7.1"
63
63
  }