@rtsdk/topia 0.11.2 → 0.11.3

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
@@ -41988,7 +41988,7 @@ class WorldActivity extends SDKController {
41988
41988
  return __classPrivateFieldGet(this, _WorldActivity_visitorsMap, "f");
41989
41989
  }
41990
41990
  //////// visitors
41991
- fetchVisitors(droppedAssetId, shouldIncludeAdminPermissions) {
41991
+ fetchVisitors({ droppedAssetId, shouldIncludeAdminPermissions, }) {
41992
41992
  return __awaiter(this, void 0, void 0, function* () {
41993
41993
  try {
41994
41994
  let queryParams = "";
@@ -42022,13 +42022,13 @@ class WorldActivity extends SDKController {
42022
42022
  *
42023
42023
  * @usage
42024
42024
  * ```ts
42025
- * const visitors = await worldActivity.currentVisitors();
42025
+ * const visitors = await worldActivity.currentVisitors("exampleLandmarkZoneId", true);
42026
42026
  * ```
42027
42027
  */
42028
- currentVisitors() {
42028
+ currentVisitors(shouldIncludeAdminPermissions) {
42029
42029
  return __awaiter(this, void 0, void 0, function* () {
42030
42030
  try {
42031
- yield this.fetchVisitors();
42031
+ yield this.fetchVisitors({ shouldIncludeAdminPermissions });
42032
42032
  return this.visitors;
42033
42033
  }
42034
42034
  catch (error) {
@@ -42045,12 +42045,12 @@ class WorldActivity extends SDKController {
42045
42045
  * const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
42046
42046
  * ```
42047
42047
  */
42048
- fetchVisitorsInZone(droppedAssetId) {
42048
+ fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }) {
42049
42049
  return __awaiter(this, void 0, void 0, function* () {
42050
42050
  try {
42051
42051
  if (!droppedAssetId)
42052
42052
  throw "A landmark zone id (droppedAssetId) is required.";
42053
- yield this.fetchVisitors(droppedAssetId);
42053
+ yield this.fetchVisitors({ droppedAssetId, shouldIncludeAdminPermissions });
42054
42054
  return this.visitors;
42055
42055
  }
42056
42056
  catch (error) {
@@ -42081,7 +42081,7 @@ class WorldActivity extends SDKController {
42081
42081
  moveAllVisitors({ shouldFetchVisitors = true, shouldTeleportVisitors = true, scatterVisitorsBy = 0, x, y, }) {
42082
42082
  return __awaiter(this, void 0, void 0, function* () {
42083
42083
  if (shouldFetchVisitors)
42084
- yield this.fetchVisitors();
42084
+ yield this.fetchVisitors({});
42085
42085
  const allPromises = [];
42086
42086
  if (!this.visitors)
42087
42087
  return;
package/dist/index.d.ts CHANGED
@@ -1897,10 +1897,10 @@ declare class WorldActivity extends SDKController {
1897
1897
  *
1898
1898
  * @usage
1899
1899
  * ```ts
1900
- * const visitors = await worldActivity.currentVisitors();
1900
+ * const visitors = await worldActivity.currentVisitors("exampleLandmarkZoneId", true);
1901
1901
  * ```
1902
1902
  */
1903
- currentVisitors(): Promise<{
1903
+ currentVisitors(shouldIncludeAdminPermissions?: boolean): Promise<{
1904
1904
  [key: string]: Visitor;
1905
1905
  }>;
1906
1906
  /**
@@ -1912,7 +1912,10 @@ declare class WorldActivity extends SDKController {
1912
1912
  * const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
1913
1913
  * ```
1914
1914
  */
1915
- fetchVisitorsInZone(droppedAssetId: string): Promise<{
1915
+ fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }: {
1916
+ droppedAssetId?: string;
1917
+ shouldIncludeAdminPermissions?: boolean;
1918
+ }): Promise<{
1916
1919
  [key: string]: Visitor;
1917
1920
  }>;
1918
1921
  /**
package/dist/index.js CHANGED
@@ -41986,7 +41986,7 @@ class WorldActivity extends SDKController {
41986
41986
  return __classPrivateFieldGet(this, _WorldActivity_visitorsMap, "f");
41987
41987
  }
41988
41988
  //////// visitors
41989
- fetchVisitors(droppedAssetId, shouldIncludeAdminPermissions) {
41989
+ fetchVisitors({ droppedAssetId, shouldIncludeAdminPermissions, }) {
41990
41990
  return __awaiter(this, void 0, void 0, function* () {
41991
41991
  try {
41992
41992
  let queryParams = "";
@@ -42020,13 +42020,13 @@ class WorldActivity extends SDKController {
42020
42020
  *
42021
42021
  * @usage
42022
42022
  * ```ts
42023
- * const visitors = await worldActivity.currentVisitors();
42023
+ * const visitors = await worldActivity.currentVisitors("exampleLandmarkZoneId", true);
42024
42024
  * ```
42025
42025
  */
42026
- currentVisitors() {
42026
+ currentVisitors(shouldIncludeAdminPermissions) {
42027
42027
  return __awaiter(this, void 0, void 0, function* () {
42028
42028
  try {
42029
- yield this.fetchVisitors();
42029
+ yield this.fetchVisitors({ shouldIncludeAdminPermissions });
42030
42030
  return this.visitors;
42031
42031
  }
42032
42032
  catch (error) {
@@ -42043,12 +42043,12 @@ class WorldActivity extends SDKController {
42043
42043
  * const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
42044
42044
  * ```
42045
42045
  */
42046
- fetchVisitorsInZone(droppedAssetId) {
42046
+ fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }) {
42047
42047
  return __awaiter(this, void 0, void 0, function* () {
42048
42048
  try {
42049
42049
  if (!droppedAssetId)
42050
42050
  throw "A landmark zone id (droppedAssetId) is required.";
42051
- yield this.fetchVisitors(droppedAssetId);
42051
+ yield this.fetchVisitors({ droppedAssetId, shouldIncludeAdminPermissions });
42052
42052
  return this.visitors;
42053
42053
  }
42054
42054
  catch (error) {
@@ -42079,7 +42079,7 @@ class WorldActivity extends SDKController {
42079
42079
  moveAllVisitors({ shouldFetchVisitors = true, shouldTeleportVisitors = true, scatterVisitorsBy = 0, x, y, }) {
42080
42080
  return __awaiter(this, void 0, void 0, function* () {
42081
42081
  if (shouldFetchVisitors)
42082
- yield this.fetchVisitors();
42082
+ yield this.fetchVisitors({});
42083
42083
  const allPromises = [];
42084
42084
  if (!this.visitors)
42085
42085
  return;
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.11.2"
62
+ "version": "0.11.3"
63
63
  }