@rtsdk/topia 0.11.9 → 0.11.10
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 +3 -3
- package/dist/index.d.ts +11 -10
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -40853,9 +40853,9 @@ class World extends SDKController {
|
|
|
40853
40853
|
* { sceneDropId: sceneId-timestamp, success: true }
|
|
40854
40854
|
* ```
|
|
40855
40855
|
*/
|
|
40856
|
-
dropScene({ assetSuffix, position, sceneDropId, sceneId, }) {
|
|
40856
|
+
dropScene({ allowNonAdmins, assetSuffix, position, sceneDropId, sceneId, }) {
|
|
40857
40857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40858
|
-
const params = { assetSuffix, position, sceneDropId, sceneId };
|
|
40858
|
+
const params = { allowNonAdmins, assetSuffix, position, sceneDropId, sceneId };
|
|
40859
40859
|
try {
|
|
40860
40860
|
const result = yield this.topiaPublicApi().post(`/world/${this.urlSlug}/drop-scene`, params, this.requestOptions);
|
|
40861
40861
|
return result;
|
|
@@ -42041,7 +42041,7 @@ class WorldActivity extends SDKController {
|
|
|
42041
42041
|
*
|
|
42042
42042
|
* @usage
|
|
42043
42043
|
* ```ts
|
|
42044
|
-
* const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
|
|
42044
|
+
* const visitors = await worldActivity.fetchVisitorsInZone({ droppedAssetId: "exampleDroppedAssetId" });
|
|
42045
42045
|
* ```
|
|
42046
42046
|
*/
|
|
42047
42047
|
fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }) {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,14 @@ import * as axios from 'axios';
|
|
|
2
2
|
import { AxiosResponse, AxiosInstance, AxiosError } from 'axios';
|
|
3
3
|
import jwt from 'jsonwebtoken';
|
|
4
4
|
|
|
5
|
+
type AnalyticType = {
|
|
6
|
+
analyticName: string;
|
|
7
|
+
incrementBy?: number;
|
|
8
|
+
profileId?: string;
|
|
9
|
+
uniqueKey?: string;
|
|
10
|
+
urlSlug?: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
5
13
|
declare enum DroppedAssetClickType {
|
|
6
14
|
NONE = "none",
|
|
7
15
|
LINK = "link",
|
|
@@ -77,14 +85,6 @@ declare class Scene extends SDKController implements SceneInterface {
|
|
|
77
85
|
fetchSceneById(): Promise<void | ResponseType$1>;
|
|
78
86
|
}
|
|
79
87
|
|
|
80
|
-
type AnalyticType = {
|
|
81
|
-
analyticName: string;
|
|
82
|
-
incrementBy?: number;
|
|
83
|
-
profileId?: string;
|
|
84
|
-
uniqueKey?: string;
|
|
85
|
-
urlSlug?: string;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
88
|
/**
|
|
89
89
|
* @summary
|
|
90
90
|
* Create an instance of Dropped Asset class with a given dropped asset id, url slug, and optional attributes and session credentials.
|
|
@@ -659,7 +659,8 @@ declare class World extends SDKController implements WorldInterface {
|
|
|
659
659
|
* { sceneDropId: sceneId-timestamp, success: true }
|
|
660
660
|
* ```
|
|
661
661
|
*/
|
|
662
|
-
dropScene({ assetSuffix, position, sceneDropId, sceneId, }: {
|
|
662
|
+
dropScene({ allowNonAdmins, assetSuffix, position, sceneDropId, sceneId, }: {
|
|
663
|
+
allowNonAdmins?: boolean;
|
|
663
664
|
assetSuffix?: string;
|
|
664
665
|
position: object;
|
|
665
666
|
sceneDropId?: string;
|
|
@@ -1915,7 +1916,7 @@ declare class WorldActivity extends SDKController {
|
|
|
1915
1916
|
*
|
|
1916
1917
|
* @usage
|
|
1917
1918
|
* ```ts
|
|
1918
|
-
* const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
|
|
1919
|
+
* const visitors = await worldActivity.fetchVisitorsInZone({ droppedAssetId: "exampleDroppedAssetId" });
|
|
1919
1920
|
* ```
|
|
1920
1921
|
*/
|
|
1921
1922
|
fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }: {
|
package/dist/index.js
CHANGED
|
@@ -40851,9 +40851,9 @@ class World extends SDKController {
|
|
|
40851
40851
|
* { sceneDropId: sceneId-timestamp, success: true }
|
|
40852
40852
|
* ```
|
|
40853
40853
|
*/
|
|
40854
|
-
dropScene({ assetSuffix, position, sceneDropId, sceneId, }) {
|
|
40854
|
+
dropScene({ allowNonAdmins, assetSuffix, position, sceneDropId, sceneId, }) {
|
|
40855
40855
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40856
|
-
const params = { assetSuffix, position, sceneDropId, sceneId };
|
|
40856
|
+
const params = { allowNonAdmins, assetSuffix, position, sceneDropId, sceneId };
|
|
40857
40857
|
try {
|
|
40858
40858
|
const result = yield this.topiaPublicApi().post(`/world/${this.urlSlug}/drop-scene`, params, this.requestOptions);
|
|
40859
40859
|
return result;
|
|
@@ -42039,7 +42039,7 @@ class WorldActivity extends SDKController {
|
|
|
42039
42039
|
*
|
|
42040
42040
|
* @usage
|
|
42041
42041
|
* ```ts
|
|
42042
|
-
* const visitors = await worldActivity.fetchVisitorsInZone("exampleDroppedAssetId");
|
|
42042
|
+
* const visitors = await worldActivity.fetchVisitorsInZone({ droppedAssetId: "exampleDroppedAssetId" });
|
|
42043
42043
|
* ```
|
|
42044
42044
|
*/
|
|
42045
42045
|
fetchVisitorsInZone({ droppedAssetId, shouldIncludeAdminPermissions, }) {
|
package/package.json
CHANGED