@rtsdk/topia 0.0.28 → 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,7 @@ 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
40420
|
credentials: this.credentials,
|
|
40421
40421
|
});
|
|
40422
40422
|
}
|
|
@@ -40445,7 +40445,7 @@ class World extends SDKController {
|
|
|
40445
40445
|
const droppedAssets = [];
|
|
40446
40446
|
for (const asset of response.data.assets) {
|
|
40447
40447
|
droppedAssets.push(new DroppedAsset(this.topia, asset.id, this.urlSlug, {
|
|
40448
|
-
attributes: asset,
|
|
40448
|
+
attributes: Object.assign(Object.assign({}, asset), { urlSlug: this.urlSlug }),
|
|
40449
40449
|
credentials: this.credentials,
|
|
40450
40450
|
}));
|
|
40451
40451
|
}
|
|
@@ -40584,6 +40584,7 @@ class User extends SDKController {
|
|
|
40584
40584
|
const assetDetails = response.data[i];
|
|
40585
40585
|
tempAssetsMap[assetDetails.id] = new Asset(this.topia, assetDetails.id, {
|
|
40586
40586
|
attributes: assetDetails,
|
|
40587
|
+
credentials: this.credentials,
|
|
40587
40588
|
});
|
|
40588
40589
|
}
|
|
40589
40590
|
__classPrivateFieldSet(this, _User_assetsMap, tempAssetsMap, "f");
|
|
@@ -40606,6 +40607,7 @@ class User extends SDKController {
|
|
|
40606
40607
|
const sceneDetails = response.data[i];
|
|
40607
40608
|
tempScenesMap[sceneDetails.id] = new Scene(this.topia, sceneDetails.urlSlug, {
|
|
40608
40609
|
attributes: sceneDetails,
|
|
40610
|
+
credentials: this.credentials,
|
|
40609
40611
|
});
|
|
40610
40612
|
}
|
|
40611
40613
|
__classPrivateFieldSet(this, _User_scenesMap, tempScenesMap, "f");
|
|
@@ -40641,6 +40643,7 @@ class User extends SDKController {
|
|
|
40641
40643
|
const worldDetails = response.data[i];
|
|
40642
40644
|
tempWorldsMap[worldDetails.urlSlug] = new World(this.topia, worldDetails.urlSlug, {
|
|
40643
40645
|
attributes: worldDetails,
|
|
40646
|
+
credentials: this.credentials,
|
|
40644
40647
|
});
|
|
40645
40648
|
}
|
|
40646
40649
|
__classPrivateFieldSet(this, _User_worldsMap, tempWorldsMap, "f");
|
|
@@ -40767,6 +40770,7 @@ class WorldActivity extends SDKController {
|
|
|
40767
40770
|
for (const id in response.data) {
|
|
40768
40771
|
tempVisitorsMap[id] = new Visitor(this.topia, response.data[id].visitorId, this.urlSlug, {
|
|
40769
40772
|
attributes: response.data[id],
|
|
40773
|
+
credentials: this.credentials,
|
|
40770
40774
|
});
|
|
40771
40775
|
}
|
|
40772
40776
|
__classPrivateFieldSet(this, _WorldActivity_visitorsMap, tempVisitorsMap, "f");
|
package/dist/index.js
CHANGED
|
@@ -40414,7 +40414,7 @@ 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
40418
|
credentials: this.credentials,
|
|
40419
40419
|
});
|
|
40420
40420
|
}
|
|
@@ -40443,7 +40443,7 @@ class World extends SDKController {
|
|
|
40443
40443
|
const droppedAssets = [];
|
|
40444
40444
|
for (const asset of response.data.assets) {
|
|
40445
40445
|
droppedAssets.push(new DroppedAsset(this.topia, asset.id, this.urlSlug, {
|
|
40446
|
-
attributes: asset,
|
|
40446
|
+
attributes: Object.assign(Object.assign({}, asset), { urlSlug: this.urlSlug }),
|
|
40447
40447
|
credentials: this.credentials,
|
|
40448
40448
|
}));
|
|
40449
40449
|
}
|
|
@@ -40582,6 +40582,7 @@ class User extends SDKController {
|
|
|
40582
40582
|
const assetDetails = response.data[i];
|
|
40583
40583
|
tempAssetsMap[assetDetails.id] = new Asset(this.topia, assetDetails.id, {
|
|
40584
40584
|
attributes: assetDetails,
|
|
40585
|
+
credentials: this.credentials,
|
|
40585
40586
|
});
|
|
40586
40587
|
}
|
|
40587
40588
|
__classPrivateFieldSet(this, _User_assetsMap, tempAssetsMap, "f");
|
|
@@ -40604,6 +40605,7 @@ class User extends SDKController {
|
|
|
40604
40605
|
const sceneDetails = response.data[i];
|
|
40605
40606
|
tempScenesMap[sceneDetails.id] = new Scene(this.topia, sceneDetails.urlSlug, {
|
|
40606
40607
|
attributes: sceneDetails,
|
|
40608
|
+
credentials: this.credentials,
|
|
40607
40609
|
});
|
|
40608
40610
|
}
|
|
40609
40611
|
__classPrivateFieldSet(this, _User_scenesMap, tempScenesMap, "f");
|
|
@@ -40639,6 +40641,7 @@ class User extends SDKController {
|
|
|
40639
40641
|
const worldDetails = response.data[i];
|
|
40640
40642
|
tempWorldsMap[worldDetails.urlSlug] = new World(this.topia, worldDetails.urlSlug, {
|
|
40641
40643
|
attributes: worldDetails,
|
|
40644
|
+
credentials: this.credentials,
|
|
40642
40645
|
});
|
|
40643
40646
|
}
|
|
40644
40647
|
__classPrivateFieldSet(this, _User_worldsMap, tempWorldsMap, "f");
|
|
@@ -40765,6 +40768,7 @@ class WorldActivity extends SDKController {
|
|
|
40765
40768
|
for (const id in response.data) {
|
|
40766
40769
|
tempVisitorsMap[id] = new Visitor(this.topia, response.data[id].visitorId, this.urlSlug, {
|
|
40767
40770
|
attributes: response.data[id],
|
|
40771
|
+
credentials: this.credentials,
|
|
40768
40772
|
});
|
|
40769
40773
|
}
|
|
40770
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,7 @@ 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
133
|
credentials: this.credentials,
|
|
134
134
|
});
|
|
135
135
|
}
|
|
@@ -158,7 +158,7 @@ export class World extends SDKController {
|
|
|
158
158
|
const droppedAssets = [];
|
|
159
159
|
for (const asset of response.data.assets) {
|
|
160
160
|
droppedAssets.push(new DroppedAsset(this.topia, asset.id, this.urlSlug, {
|
|
161
|
-
attributes: asset,
|
|
161
|
+
attributes: Object.assign(Object.assign({}, asset), { urlSlug: this.urlSlug }),
|
|
162
162
|
credentials: this.credentials,
|
|
163
163
|
}));
|
|
164
164
|
}
|
|
@@ -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