@rtsdk/topia 0.0.27 → 0.0.29

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
@@ -40416,7 +40416,8 @@ class World extends SDKController {
40416
40416
  for (const index in response.data) {
40417
40417
  // tempDroppedAssetsMap[id] = createDroppedAsset(this.apiKey, response.data[id], this.urlSlug);
40418
40418
  tempDroppedAssetsMap[index] = new DroppedAsset(this.topia, response.data[index].id, this.urlSlug, {
40419
- attributes: response.data[index],
40419
+ attributes: Object.assign(Object.assign({}, response.data[index]), { urlSlug: this.urlSlug }),
40420
+ credentials: this.credentials,
40420
40421
  });
40421
40422
  }
40422
40423
  __classPrivateFieldSet(this, _World_droppedAssetsMap, tempDroppedAssetsMap, "f");
@@ -40444,7 +40445,8 @@ class World extends SDKController {
40444
40445
  const droppedAssets = [];
40445
40446
  for (const asset of response.data.assets) {
40446
40447
  droppedAssets.push(new DroppedAsset(this.topia, asset.id, this.urlSlug, {
40447
- attributes: asset,
40448
+ attributes: Object.assign(Object.assign({}, asset), { urlSlug: this.urlSlug }),
40449
+ credentials: this.credentials,
40448
40450
  }));
40449
40451
  }
40450
40452
  return droppedAssets;
@@ -40582,6 +40584,7 @@ class User extends SDKController {
40582
40584
  const assetDetails = response.data[i];
40583
40585
  tempAssetsMap[assetDetails.id] = new Asset(this.topia, assetDetails.id, {
40584
40586
  attributes: assetDetails,
40587
+ credentials: this.credentials,
40585
40588
  });
40586
40589
  }
40587
40590
  __classPrivateFieldSet(this, _User_assetsMap, tempAssetsMap, "f");
@@ -40604,6 +40607,7 @@ class User extends SDKController {
40604
40607
  const sceneDetails = response.data[i];
40605
40608
  tempScenesMap[sceneDetails.id] = new Scene(this.topia, sceneDetails.urlSlug, {
40606
40609
  attributes: sceneDetails,
40610
+ credentials: this.credentials,
40607
40611
  });
40608
40612
  }
40609
40613
  __classPrivateFieldSet(this, _User_scenesMap, tempScenesMap, "f");
@@ -40639,6 +40643,7 @@ class User extends SDKController {
40639
40643
  const worldDetails = response.data[i];
40640
40644
  tempWorldsMap[worldDetails.urlSlug] = new World(this.topia, worldDetails.urlSlug, {
40641
40645
  attributes: worldDetails,
40646
+ credentials: this.credentials,
40642
40647
  });
40643
40648
  }
40644
40649
  __classPrivateFieldSet(this, _User_worldsMap, tempWorldsMap, "f");
@@ -40765,6 +40770,7 @@ class WorldActivity extends SDKController {
40765
40770
  for (const id in response.data) {
40766
40771
  tempVisitorsMap[id] = new Visitor(this.topia, response.data[id].visitorId, this.urlSlug, {
40767
40772
  attributes: response.data[id],
40773
+ credentials: this.credentials,
40768
40774
  });
40769
40775
  }
40770
40776
  __classPrivateFieldSet(this, _WorldActivity_visitorsMap, tempVisitorsMap, "f");
package/dist/index.js CHANGED
@@ -40414,7 +40414,8 @@ class World extends SDKController {
40414
40414
  for (const index in response.data) {
40415
40415
  // tempDroppedAssetsMap[id] = createDroppedAsset(this.apiKey, response.data[id], this.urlSlug);
40416
40416
  tempDroppedAssetsMap[index] = new DroppedAsset(this.topia, response.data[index].id, this.urlSlug, {
40417
- attributes: response.data[index],
40417
+ attributes: Object.assign(Object.assign({}, response.data[index]), { urlSlug: this.urlSlug }),
40418
+ credentials: this.credentials,
40418
40419
  });
40419
40420
  }
40420
40421
  __classPrivateFieldSet(this, _World_droppedAssetsMap, tempDroppedAssetsMap, "f");
@@ -40442,7 +40443,8 @@ class World extends SDKController {
40442
40443
  const droppedAssets = [];
40443
40444
  for (const asset of response.data.assets) {
40444
40445
  droppedAssets.push(new DroppedAsset(this.topia, asset.id, this.urlSlug, {
40445
- attributes: asset,
40446
+ attributes: Object.assign(Object.assign({}, asset), { urlSlug: this.urlSlug }),
40447
+ credentials: this.credentials,
40446
40448
  }));
40447
40449
  }
40448
40450
  return droppedAssets;
@@ -40580,6 +40582,7 @@ class User extends SDKController {
40580
40582
  const assetDetails = response.data[i];
40581
40583
  tempAssetsMap[assetDetails.id] = new Asset(this.topia, assetDetails.id, {
40582
40584
  attributes: assetDetails,
40585
+ credentials: this.credentials,
40583
40586
  });
40584
40587
  }
40585
40588
  __classPrivateFieldSet(this, _User_assetsMap, tempAssetsMap, "f");
@@ -40602,6 +40605,7 @@ class User extends SDKController {
40602
40605
  const sceneDetails = response.data[i];
40603
40606
  tempScenesMap[sceneDetails.id] = new Scene(this.topia, sceneDetails.urlSlug, {
40604
40607
  attributes: sceneDetails,
40608
+ credentials: this.credentials,
40605
40609
  });
40606
40610
  }
40607
40611
  __classPrivateFieldSet(this, _User_scenesMap, tempScenesMap, "f");
@@ -40637,6 +40641,7 @@ class User extends SDKController {
40637
40641
  const worldDetails = response.data[i];
40638
40642
  tempWorldsMap[worldDetails.urlSlug] = new World(this.topia, worldDetails.urlSlug, {
40639
40643
  attributes: worldDetails,
40644
+ credentials: this.credentials,
40640
40645
  });
40641
40646
  }
40642
40647
  __classPrivateFieldSet(this, _User_worldsMap, tempWorldsMap, "f");
@@ -40763,6 +40768,7 @@ class WorldActivity extends SDKController {
40763
40768
  for (const id in response.data) {
40764
40769
  tempVisitorsMap[id] = new Visitor(this.topia, response.data[id].visitorId, this.urlSlug, {
40765
40770
  attributes: response.data[id],
40771
+ credentials: this.credentials,
40766
40772
  });
40767
40773
  }
40768
40774
  __classPrivateFieldSet(this, _WorldActivity_visitorsMap, tempVisitorsMap, "f");
@@ -65,6 +65,7 @@ export class User extends SDKController {
65
65
  const assetDetails = response.data[i];
66
66
  tempAssetsMap[assetDetails.id] = new Asset(this.topia, assetDetails.id, {
67
67
  attributes: assetDetails,
68
+ credentials: this.credentials,
68
69
  });
69
70
  }
70
71
  __classPrivateFieldSet(this, _User_assetsMap, tempAssetsMap, "f");
@@ -87,6 +88,7 @@ export class User extends SDKController {
87
88
  const sceneDetails = response.data[i];
88
89
  tempScenesMap[sceneDetails.id] = new Scene(this.topia, sceneDetails.urlSlug, {
89
90
  attributes: sceneDetails,
91
+ credentials: this.credentials,
90
92
  });
91
93
  }
92
94
  __classPrivateFieldSet(this, _User_scenesMap, tempScenesMap, "f");
@@ -122,6 +124,7 @@ export class User extends SDKController {
122
124
  const worldDetails = response.data[i];
123
125
  tempWorldsMap[worldDetails.urlSlug] = new World(this.topia, worldDetails.urlSlug, {
124
126
  attributes: worldDetails,
127
+ credentials: this.credentials,
125
128
  });
126
129
  }
127
130
  __classPrivateFieldSet(this, _User_worldsMap, tempWorldsMap, "f");
@@ -129,7 +129,8 @@ export class World extends SDKController {
129
129
  for (const index in response.data) {
130
130
  // tempDroppedAssetsMap[id] = createDroppedAsset(this.apiKey, response.data[id], this.urlSlug);
131
131
  tempDroppedAssetsMap[index] = new DroppedAsset(this.topia, response.data[index].id, this.urlSlug, {
132
- attributes: response.data[index],
132
+ attributes: Object.assign(Object.assign({}, response.data[index]), { urlSlug: this.urlSlug }),
133
+ credentials: this.credentials,
133
134
  });
134
135
  }
135
136
  __classPrivateFieldSet(this, _World_droppedAssetsMap, tempDroppedAssetsMap, "f");
@@ -157,7 +158,8 @@ export class World extends SDKController {
157
158
  const droppedAssets = [];
158
159
  for (const asset of response.data.assets) {
159
160
  droppedAssets.push(new DroppedAsset(this.topia, asset.id, this.urlSlug, {
160
- attributes: asset,
161
+ attributes: Object.assign(Object.assign({}, asset), { urlSlug: this.urlSlug }),
162
+ credentials: this.credentials,
161
163
  }));
162
164
  }
163
165
  return droppedAssets;
@@ -55,6 +55,7 @@ export class WorldActivity extends SDKController {
55
55
  for (const id in response.data) {
56
56
  tempVisitorsMap[id] = new Visitor(this.topia, response.data[id].visitorId, this.urlSlug, {
57
57
  attributes: response.data[id],
58
+ credentials: this.credentials,
58
59
  });
59
60
  }
60
61
  __classPrivateFieldSet(this, _WorldActivity_visitorsMap, tempVisitorsMap, "f");
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.27"
59
+ "version": "0.0.29"
60
60
  }