@rtsdk/topia 0.17.8 → 0.18.0
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/README.md +3 -2
- package/dist/index.cjs +1082 -85
- package/dist/index.d.ts +957 -110
- package/dist/index.js +1082 -85
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -229,7 +229,7 @@ export const getDroppedAssetAndVisitor = async (req: Request, res: Response) =>
|
|
|
229
229
|
|
|
230
230
|
const droppedAsset = await DroppedAsset.get(assetId, urlSlug, { credentials });
|
|
231
231
|
|
|
232
|
-
await droppedAsset.
|
|
232
|
+
await droppedAsset.fetchDataObject();
|
|
233
233
|
|
|
234
234
|
const visitor: VisitorInterface = await Visitor.get(visitorId, urlSlug, { credentials });
|
|
235
235
|
|
|
@@ -313,7 +313,8 @@ try {
|
|
|
313
313
|
|
|
314
314
|
Once complete be sure to also call `await keyAsset.updateDataObject({ turnCount: turnCount + 1 });` so that the next player is free to take their turn!
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
### Custom Analytics
|
|
317
|
+
|
|
317
318
|
You can leverage the data object methods for all types to track analytics unique to your Public Key by passing `analytics` as an optional array along with `profileId`, `urlSlug`, and/or `uniqueKey` to all calls that set, update, or increment data objects!
|
|
318
319
|
|
|
319
320
|
**World** and **Dropped Asset** classes will automatically include `urlSlug`. In addition to `analytics` you can also pass `profileId` if you want to track event per user and/or a `uniqueKey` to additionally track uniqueness of the event for all time, per user (if `profileId` is included), and per world.
|