@rtsdk/topia 0.3.0 → 0.3.2
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 +41310 -1365
- package/dist/index.d.ts +23 -23
- package/dist/index.js +519 -475
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BSD 3-Clause License
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2023, metaversecloud.com | topia.io
|
|
5
|
-
* All rights reserved.
|
|
6
|
-
*
|
|
7
|
-
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
8
|
-
*
|
|
9
|
-
* - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
10
|
-
*
|
|
11
|
-
* - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
12
|
-
*
|
|
13
|
-
* - Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
14
|
-
*
|
|
15
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
1
|
import * as axios from 'axios';
|
|
19
2
|
import { AxiosResponse, AxiosInstance, AxiosError } from 'axios';
|
|
20
3
|
import jwt from 'jsonwebtoken';
|
|
@@ -445,7 +428,7 @@ declare class World extends SDKController implements WorldInterface {
|
|
|
445
428
|
*
|
|
446
429
|
* @usage
|
|
447
430
|
* ```ts
|
|
448
|
-
* await world.
|
|
431
|
+
* await world.fetchDroppedAssetsWithUniqueName();
|
|
449
432
|
* const assets = world.droppedAssets;
|
|
450
433
|
* ```
|
|
451
434
|
*/
|
|
@@ -454,6 +437,23 @@ declare class World extends SDKController implements WorldInterface {
|
|
|
454
437
|
isPartial?: boolean;
|
|
455
438
|
isReversed?: boolean;
|
|
456
439
|
}): Promise<DroppedAsset[]>;
|
|
440
|
+
/**
|
|
441
|
+
* @summary
|
|
442
|
+
* Retrieve all assets dropped in a world matching dropSceneId.
|
|
443
|
+
*
|
|
444
|
+
* @usage
|
|
445
|
+
* ```ts
|
|
446
|
+
* await world.fetchDroppedAssetsBySceneDropId({
|
|
447
|
+
* sceneDropId: "sceneDropIdExample",
|
|
448
|
+
* uniqueName: "optionalUniqueNameExample",
|
|
449
|
+
* });
|
|
450
|
+
* const assets = world.droppedAssets;
|
|
451
|
+
* ```
|
|
452
|
+
*/
|
|
453
|
+
fetchDroppedAssetsBySceneDropId({ sceneDropId, uniqueName, }: {
|
|
454
|
+
sceneDropId: string;
|
|
455
|
+
uniqueName?: string;
|
|
456
|
+
}): Promise<DroppedAsset[]>;
|
|
457
457
|
/**
|
|
458
458
|
* @summary
|
|
459
459
|
* Update multiple custom text dropped assets with a single style while preserving text for specified dropped assets only.
|
|
@@ -676,7 +676,7 @@ declare class User extends SDKController implements UserInterface {
|
|
|
676
676
|
*
|
|
677
677
|
* @usage
|
|
678
678
|
* ```ts
|
|
679
|
-
* await user.
|
|
679
|
+
* await user.updateDataObject({
|
|
680
680
|
* "exampleKey": "exampleValue",
|
|
681
681
|
* });
|
|
682
682
|
* ```
|
|
@@ -787,7 +787,7 @@ declare class Visitor extends User implements VisitorInterface {
|
|
|
787
787
|
*
|
|
788
788
|
* @usage
|
|
789
789
|
* ```ts
|
|
790
|
-
* const dataObject = await visitor.
|
|
790
|
+
* const dataObject = await visitor.fetchDataObject();
|
|
791
791
|
* ```
|
|
792
792
|
*/
|
|
793
793
|
fetchDataObject(): Promise<void | ResponseType>;
|
|
@@ -799,7 +799,7 @@ declare class Visitor extends User implements VisitorInterface {
|
|
|
799
799
|
*
|
|
800
800
|
* @usage
|
|
801
801
|
* ```ts
|
|
802
|
-
* await visitor.
|
|
802
|
+
* await visitor.setDataObject({
|
|
803
803
|
* "exampleKey": "exampleValue",
|
|
804
804
|
* });
|
|
805
805
|
* ```
|
|
@@ -818,7 +818,7 @@ declare class Visitor extends User implements VisitorInterface {
|
|
|
818
818
|
*
|
|
819
819
|
* @usage
|
|
820
820
|
* ```ts
|
|
821
|
-
* await visitor.
|
|
821
|
+
* await visitor.updateDataObject({
|
|
822
822
|
* "exampleKey": "exampleValue",
|
|
823
823
|
* });
|
|
824
824
|
* ```
|
|
@@ -1437,4 +1437,4 @@ declare class WorldFactory {
|
|
|
1437
1437
|
create(urlSlug: string, options?: WorldOptionalInterface): World;
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
-
export { AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetMediaType, DroppedAssetOptionalInterface, DroppedAssetOptions, FireToastInterface, InteractiveCredentials, MoveAllVisitorsInterface, MoveVisitorInterface, OpenIframeInterface, ResponseType, SDKInterface, SceneFactory, SceneInterface, SceneOptionalInterface, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, UserFactory, UserInterface, UserOptionalInterface, UserOptions, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, WorldActivityFactory, WorldActivityOptionalInterface, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions };
|
|
1440
|
+
export { Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetMediaType, DroppedAssetOptionalInterface, DroppedAssetOptions, FireToastInterface, InteractiveCredentials, MoveAllVisitorsInterface, MoveVisitorInterface, OpenIframeInterface, ResponseType, SDKController, SDKInterface, Scene, SceneFactory, SceneInterface, SceneOptionalInterface, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, User, UserFactory, UserInterface, UserOptionalInterface, UserOptions, Visitor, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, World, WorldActivity, WorldActivityFactory, WorldActivityOptionalInterface, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions };
|