@rtsdk/topia 0.19.8 → 0.20.1
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 +24 -6
- package/dist/index.d.ts +8 -3
- package/dist/index.js +25 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -47,6 +47,18 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
47
47
|
PERFORMANCE OF THIS SOFTWARE.
|
|
48
48
|
***************************************************************************** */
|
|
49
49
|
|
|
50
|
+
function __rest(s, e) {
|
|
51
|
+
var t = {};
|
|
52
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
+
t[p] = s[p];
|
|
54
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
+
t[p[i]] = s[p[i]];
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
|
|
50
62
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
51
63
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
52
64
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -39910,7 +39922,12 @@ exports.DroppedAssetMediaVolumeRadius = void 0;
|
|
|
39910
39922
|
DroppedAssetMediaVolumeRadius[DroppedAssetMediaVolumeRadius["MEDIUM"] = 1] = "MEDIUM";
|
|
39911
39923
|
DroppedAssetMediaVolumeRadius[DroppedAssetMediaVolumeRadius["FAR"] = 2] = "FAR";
|
|
39912
39924
|
DroppedAssetMediaVolumeRadius[DroppedAssetMediaVolumeRadius["EVERYWHERE"] = 3] = "EVERYWHERE";
|
|
39913
|
-
})(exports.DroppedAssetMediaVolumeRadius || (exports.DroppedAssetMediaVolumeRadius = {}));
|
|
39925
|
+
})(exports.DroppedAssetMediaVolumeRadius || (exports.DroppedAssetMediaVolumeRadius = {}));
|
|
39926
|
+
exports.DroppedAssetClickableLayerType = void 0;
|
|
39927
|
+
(function (DroppedAssetClickableLayerType) {
|
|
39928
|
+
DroppedAssetClickableLayerType["TOP"] = "top";
|
|
39929
|
+
DroppedAssetClickableLayerType["BOTTOM"] = "bottom";
|
|
39930
|
+
})(exports.DroppedAssetClickableLayerType || (exports.DroppedAssetClickableLayerType = {}));
|
|
39914
39931
|
|
|
39915
39932
|
exports.WorldActivityType = void 0;
|
|
39916
39933
|
(function (WorldActivityType) {
|
|
@@ -40025,7 +40042,8 @@ class DroppedAsset extends Asset {
|
|
|
40025
40042
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
40026
40043
|
try {
|
|
40027
40044
|
const response = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/assets/${this.id}/${updateType}`, Object.assign({}, payload), this.requestOptions);
|
|
40028
|
-
|
|
40045
|
+
const _c = response.data, { urlSlug: _slug, id: _id } = _c, data = __rest(_c, ["urlSlug", "id"]);
|
|
40046
|
+
Object.assign(this, data);
|
|
40029
40047
|
return response.data;
|
|
40030
40048
|
}
|
|
40031
40049
|
catch (error) {
|
|
@@ -40053,8 +40071,7 @@ class DroppedAsset extends Asset {
|
|
|
40053
40071
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40054
40072
|
try {
|
|
40055
40073
|
const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/assets/${this.id}`, this.requestOptions);
|
|
40056
|
-
const
|
|
40057
|
-
droppedAssetDetails.urlSlug = this.urlSlug;
|
|
40074
|
+
const _a = response.data, { urlSlug: _slug, id: _id } = _a, droppedAssetDetails = __rest(_a, ["urlSlug", "id"]);
|
|
40058
40075
|
Object.assign(this, droppedAssetDetails);
|
|
40059
40076
|
}
|
|
40060
40077
|
catch (error) {
|
|
@@ -40130,7 +40147,7 @@ class DroppedAsset extends Asset {
|
|
|
40130
40147
|
const filteredParams = removeUndefined(params);
|
|
40131
40148
|
try {
|
|
40132
40149
|
const response = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/assets/${this.id}`, filteredParams, this.requestOptions);
|
|
40133
|
-
const
|
|
40150
|
+
const _a = response.data, { urlSlug: _slug, id: _id } = _a, droppedAssetDetails = __rest(_a, ["urlSlug", "id"]);
|
|
40134
40151
|
Object.assign(this, droppedAssetDetails);
|
|
40135
40152
|
}
|
|
40136
40153
|
catch (error) {
|
|
@@ -44622,7 +44639,7 @@ class DroppedAssetFactory extends SDKController {
|
|
|
44622
44639
|
*
|
|
44623
44640
|
* @returns {Promise<DroppedAsset>} Returns a new DroppedAsset object representing the placed asset in the world.
|
|
44624
44641
|
*/
|
|
44625
|
-
drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
|
|
44642
|
+
drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLayer, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
|
|
44626
44643
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44627
44644
|
let specialType = null;
|
|
44628
44645
|
if (layer0 || layer1)
|
|
@@ -44634,6 +44651,7 @@ class DroppedAssetFactory extends SDKController {
|
|
|
44634
44651
|
clickType,
|
|
44635
44652
|
clickableDisplayTextDescription,
|
|
44636
44653
|
clickableDisplayTextHeadline,
|
|
44654
|
+
clickableLayer,
|
|
44637
44655
|
clickableLink,
|
|
44638
44656
|
clickableLinkTitle,
|
|
44639
44657
|
flipped,
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,10 @@ declare enum DroppedAssetMediaVolumeRadius {
|
|
|
65
65
|
FAR = 2,
|
|
66
66
|
EVERYWHERE = 3
|
|
67
67
|
}
|
|
68
|
+
declare enum DroppedAssetClickableLayerType {
|
|
69
|
+
TOP = "top",
|
|
70
|
+
BOTTOM = "bottom"
|
|
71
|
+
}
|
|
68
72
|
type DroppedAssetLinkType = {
|
|
69
73
|
clickableLink: string;
|
|
70
74
|
clickableLinkTitle?: string;
|
|
@@ -3731,12 +3735,13 @@ declare class DroppedAssetFactory extends SDKController {
|
|
|
3731
3735
|
*
|
|
3732
3736
|
* @returns {Promise<DroppedAsset>} Returns a new DroppedAsset object representing the placed asset in the world.
|
|
3733
3737
|
*/
|
|
3734
|
-
drop(asset: Asset, { assetScale, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }: {
|
|
3738
|
+
drop(asset: Asset, { assetScale, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLayer, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }: {
|
|
3735
3739
|
assetScale?: number;
|
|
3736
3740
|
flipped?: boolean;
|
|
3737
|
-
clickType?:
|
|
3741
|
+
clickType?: DroppedAssetClickType;
|
|
3738
3742
|
clickableDisplayTextDescription?: string;
|
|
3739
3743
|
clickableDisplayTextHeadline?: string;
|
|
3744
|
+
clickableLayer?: DroppedAssetClickableLayerType;
|
|
3740
3745
|
clickableLink?: string;
|
|
3741
3746
|
clickableLinkTitle?: string;
|
|
3742
3747
|
interactivePublicKey?: string;
|
|
@@ -4255,4 +4260,4 @@ declare class WorldFactory extends SDKController {
|
|
|
4255
4260
|
}>;
|
|
4256
4261
|
}
|
|
4257
4262
|
|
|
4258
|
-
export { AnalyticType, AnimationMetaType, Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, AssetType, CreateNpcOptions, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetLinkType, DroppedAssetMediaType, DroppedAssetMediaVolumeRadius, DroppedAssetOptionalInterface, DroppedAssetOptions, Ecosystem, EcosystemFactory, EcosystemInterface, EcosystemOptionalInterface, FireToastInterface, FrameType, InteractiveCredentials, InventoryItemInterface, InventoryItemOptionalInterface, MoveAllVisitorsInterface, MoveVisitorInterface, NpcVoiceConfigInterface, OpenIframeInterface, RemoveClickableLinkInterface, ResponseType, SDKController, SDKInterface, Scene, SceneFactory, SceneInterface, SceneOptionalInterface, SetClickableLinkMultiInterface, SpawnEffectConfig, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateClickableLinkMultiInterface, UpdateDroppedAssetInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, User, UserFactory, UserInterface, UserInventoryItemInterface, UserInventoryItemMetadataType, UserInventoryItemOptionalInterface, UserOptionalInterface, UserOptions, Visitor, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, WebRTCConnector, WebRTCConnectorFactory, WebRTCConnectorInterface, WebRTCConnectorOptionalInterface, WebhookInterface, World, WorldActivity, WorldActivityFactory, WorldActivityOptionalInterface, WorldActivityType, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions, WorldWebhooksInterface };
|
|
4263
|
+
export { AnalyticType, AnimationMetaType, Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, AssetType, CreateNpcOptions, DroppedAsset, DroppedAssetClickType, DroppedAssetClickableLayerType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetLinkType, DroppedAssetMediaType, DroppedAssetMediaVolumeRadius, DroppedAssetOptionalInterface, DroppedAssetOptions, Ecosystem, EcosystemFactory, EcosystemInterface, EcosystemOptionalInterface, FireToastInterface, FrameType, InteractiveCredentials, InventoryItemInterface, InventoryItemOptionalInterface, MoveAllVisitorsInterface, MoveVisitorInterface, NpcVoiceConfigInterface, OpenIframeInterface, RemoveClickableLinkInterface, ResponseType, SDKController, SDKInterface, Scene, SceneFactory, SceneInterface, SceneOptionalInterface, SetClickableLinkMultiInterface, SpawnEffectConfig, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateClickableLinkMultiInterface, UpdateDroppedAssetInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, User, UserFactory, UserInterface, UserInventoryItemInterface, UserInventoryItemMetadataType, UserInventoryItemOptionalInterface, UserOptionalInterface, UserOptions, Visitor, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, WebRTCConnector, WebRTCConnectorFactory, WebRTCConnectorInterface, WebRTCConnectorOptionalInterface, WebhookInterface, World, WorldActivity, WorldActivityFactory, WorldActivityOptionalInterface, WorldActivityType, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions, WorldWebhooksInterface };
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,18 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
46
|
***************************************************************************** */
|
|
47
47
|
|
|
48
|
+
function __rest(s, e) {
|
|
49
|
+
var t = {};
|
|
50
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
51
|
+
t[p] = s[p];
|
|
52
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
53
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
55
|
+
t[p[i]] = s[p[i]];
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
58
|
+
}
|
|
59
|
+
|
|
48
60
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
49
61
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
62
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -39908,7 +39920,12 @@ var DroppedAssetMediaVolumeRadius;
|
|
|
39908
39920
|
DroppedAssetMediaVolumeRadius[DroppedAssetMediaVolumeRadius["MEDIUM"] = 1] = "MEDIUM";
|
|
39909
39921
|
DroppedAssetMediaVolumeRadius[DroppedAssetMediaVolumeRadius["FAR"] = 2] = "FAR";
|
|
39910
39922
|
DroppedAssetMediaVolumeRadius[DroppedAssetMediaVolumeRadius["EVERYWHERE"] = 3] = "EVERYWHERE";
|
|
39911
|
-
})(DroppedAssetMediaVolumeRadius || (DroppedAssetMediaVolumeRadius = {}));
|
|
39923
|
+
})(DroppedAssetMediaVolumeRadius || (DroppedAssetMediaVolumeRadius = {}));
|
|
39924
|
+
var DroppedAssetClickableLayerType;
|
|
39925
|
+
(function (DroppedAssetClickableLayerType) {
|
|
39926
|
+
DroppedAssetClickableLayerType["TOP"] = "top";
|
|
39927
|
+
DroppedAssetClickableLayerType["BOTTOM"] = "bottom";
|
|
39928
|
+
})(DroppedAssetClickableLayerType || (DroppedAssetClickableLayerType = {}));
|
|
39912
39929
|
|
|
39913
39930
|
var WorldActivityType;
|
|
39914
39931
|
(function (WorldActivityType) {
|
|
@@ -40023,7 +40040,8 @@ class DroppedAsset extends Asset {
|
|
|
40023
40040
|
_DroppedAsset_updateDroppedAsset.set(this, (payload, updateType) => __awaiter(this, void 0, void 0, function* () {
|
|
40024
40041
|
try {
|
|
40025
40042
|
const response = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/assets/${this.id}/${updateType}`, Object.assign({}, payload), this.requestOptions);
|
|
40026
|
-
|
|
40043
|
+
const _c = response.data, { urlSlug: _slug, id: _id } = _c, data = __rest(_c, ["urlSlug", "id"]);
|
|
40044
|
+
Object.assign(this, data);
|
|
40027
40045
|
return response.data;
|
|
40028
40046
|
}
|
|
40029
40047
|
catch (error) {
|
|
@@ -40051,8 +40069,7 @@ class DroppedAsset extends Asset {
|
|
|
40051
40069
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40052
40070
|
try {
|
|
40053
40071
|
const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/assets/${this.id}`, this.requestOptions);
|
|
40054
|
-
const
|
|
40055
|
-
droppedAssetDetails.urlSlug = this.urlSlug;
|
|
40072
|
+
const _a = response.data, { urlSlug: _slug, id: _id } = _a, droppedAssetDetails = __rest(_a, ["urlSlug", "id"]);
|
|
40056
40073
|
Object.assign(this, droppedAssetDetails);
|
|
40057
40074
|
}
|
|
40058
40075
|
catch (error) {
|
|
@@ -40128,7 +40145,7 @@ class DroppedAsset extends Asset {
|
|
|
40128
40145
|
const filteredParams = removeUndefined(params);
|
|
40129
40146
|
try {
|
|
40130
40147
|
const response = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/assets/${this.id}`, filteredParams, this.requestOptions);
|
|
40131
|
-
const
|
|
40148
|
+
const _a = response.data, { urlSlug: _slug, id: _id } = _a, droppedAssetDetails = __rest(_a, ["urlSlug", "id"]);
|
|
40132
40149
|
Object.assign(this, droppedAssetDetails);
|
|
40133
40150
|
}
|
|
40134
40151
|
catch (error) {
|
|
@@ -44620,7 +44637,7 @@ class DroppedAssetFactory extends SDKController {
|
|
|
44620
44637
|
*
|
|
44621
44638
|
* @returns {Promise<DroppedAsset>} Returns a new DroppedAsset object representing the placed asset in the world.
|
|
44622
44639
|
*/
|
|
44623
|
-
drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
|
|
44640
|
+
drop(asset, { assetScale = 1, clickType, clickableDisplayTextDescription, clickableDisplayTextHeadline, clickableLayer, clickableLink, clickableLinkTitle, flipped, interactivePublicKey, isInteractive, isForceLinkInIframe, isOpenLinkInDrawer, isTextTopLayer = false, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textFontFamily, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }) {
|
|
44624
44641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44625
44642
|
let specialType = null;
|
|
44626
44643
|
if (layer0 || layer1)
|
|
@@ -44632,6 +44649,7 @@ class DroppedAssetFactory extends SDKController {
|
|
|
44632
44649
|
clickType,
|
|
44633
44650
|
clickableDisplayTextDescription,
|
|
44634
44651
|
clickableDisplayTextHeadline,
|
|
44652
|
+
clickableLayer,
|
|
44635
44653
|
clickableLink,
|
|
44636
44654
|
clickableLinkTitle,
|
|
44637
44655
|
flipped,
|
|
@@ -45474,4 +45492,4 @@ process.on("uncaughtException", function (err) {
|
|
|
45474
45492
|
process.exit(1);
|
|
45475
45493
|
});
|
|
45476
45494
|
|
|
45477
|
-
export { Asset, AssetFactory, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetMediaType, DroppedAssetMediaVolumeRadius, Ecosystem, EcosystemFactory, SDKController, Scene, SceneFactory, Topia, User, UserFactory, Visitor, VisitorFactory, WebRTCConnector, WebRTCConnectorFactory, World, WorldActivity, WorldActivityFactory, WorldActivityType, WorldFactory };
|
|
45495
|
+
export { Asset, AssetFactory, DroppedAsset, DroppedAssetClickType, DroppedAssetClickableLayerType, DroppedAssetFactory, DroppedAssetMediaType, DroppedAssetMediaVolumeRadius, Ecosystem, EcosystemFactory, SDKController, Scene, SceneFactory, Topia, User, UserFactory, Visitor, VisitorFactory, WebRTCConnector, WebRTCConnectorFactory, World, WorldActivity, WorldActivityFactory, WorldActivityType, WorldFactory };
|
package/package.json
CHANGED