connected-spaces-platform.web 5.9.0 → 5.9.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/Debug/ConnectedSpacesPlatform_WASM.js +9 -3
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +29 -1
- package/connectedspacesplatform.js +71 -0
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +152 -28
- package/package.json +1 -1
|
@@ -2312,6 +2312,14 @@ function csp_systems_PendingInvitesResultFactory(
|
|
|
2312
2312
|
ProxyClassFactories["csp_systems_PendingInvitesResult"] =
|
|
2313
2313
|
csp_systems_PendingInvitesResultFactory;
|
|
2314
2314
|
|
|
2315
|
+
function csp_systems_AcceptedInvitesResultFactory(
|
|
2316
|
+
nativePointer: NativePointer,
|
|
2317
|
+
): NativeClassWrapper {
|
|
2318
|
+
return new Systems.AcceptedInvitesResult(nativePointer);
|
|
2319
|
+
}
|
|
2320
|
+
ProxyClassFactories["csp_systems_AcceptedInvitesResult"] =
|
|
2321
|
+
csp_systems_AcceptedInvitesResultFactory;
|
|
2322
|
+
|
|
2315
2323
|
function csp_systems_SpaceGeoLocationResultFactory(
|
|
2316
2324
|
nativePointer: NativePointer,
|
|
2317
2325
|
): NativeClassWrapper {
|
|
@@ -3115,34 +3123,38 @@ export namespace Multiplayer {
|
|
|
3115
3123
|
* /// Values with _DEPRECATED appended to their name should not be used. They are retained only for backwards compatibility.
|
|
3116
3124
|
*/
|
|
3117
3125
|
export enum ComponentType {
|
|
3118
|
-
Invalid,
|
|
3119
|
-
Core,
|
|
3120
|
-
UIController_DEPRECATED,
|
|
3121
|
-
StaticModel,
|
|
3122
|
-
AnimatedModel,
|
|
3123
|
-
MediaSurface_DEPRECATED,
|
|
3124
|
-
VideoPlayer,
|
|
3125
|
-
ImageSequencer_DEPRECATED,
|
|
3126
|
-
ExternalLink,
|
|
3127
|
-
AvatarData,
|
|
3128
|
-
Light,
|
|
3129
|
-
Button,
|
|
3130
|
-
Image,
|
|
3131
|
-
ScriptData,
|
|
3132
|
-
Custom,
|
|
3133
|
-
Conversation,
|
|
3134
|
-
Portal,
|
|
3135
|
-
Audio,
|
|
3136
|
-
Spline,
|
|
3137
|
-
Collision,
|
|
3138
|
-
Reflection,
|
|
3139
|
-
Fog,
|
|
3140
|
-
ECommerce,
|
|
3141
|
-
FiducialMarker,
|
|
3142
|
-
GaussianSplat,
|
|
3143
|
-
Text,
|
|
3144
|
-
Hotspot,
|
|
3145
|
-
CinematicCamera,
|
|
3126
|
+
Invalid = 0,
|
|
3127
|
+
Core = 1,
|
|
3128
|
+
UIController_DEPRECATED = 2,
|
|
3129
|
+
StaticModel = 3,
|
|
3130
|
+
AnimatedModel = 4,
|
|
3131
|
+
MediaSurface_DEPRECATED = 5,
|
|
3132
|
+
VideoPlayer = 6,
|
|
3133
|
+
ImageSequencer_DEPRECATED = 7,
|
|
3134
|
+
ExternalLink = 8,
|
|
3135
|
+
AvatarData = 9,
|
|
3136
|
+
Light = 10,
|
|
3137
|
+
Button = 11,
|
|
3138
|
+
Image = 12,
|
|
3139
|
+
ScriptData = 13,
|
|
3140
|
+
Custom = 14,
|
|
3141
|
+
Conversation = 15,
|
|
3142
|
+
Portal = 16,
|
|
3143
|
+
Audio = 17,
|
|
3144
|
+
Spline = 18,
|
|
3145
|
+
Collision = 19,
|
|
3146
|
+
Reflection = 20,
|
|
3147
|
+
Fog = 21,
|
|
3148
|
+
ECommerce = 22,
|
|
3149
|
+
FiducialMarker = 23,
|
|
3150
|
+
GaussianSplat = 24,
|
|
3151
|
+
Text = 25,
|
|
3152
|
+
Hotspot = 26,
|
|
3153
|
+
CinematicCamera = 27,
|
|
3154
|
+
//,
|
|
3155
|
+
spare,
|
|
3156
|
+
values,
|
|
3157
|
+
Delete = 56,
|
|
3146
3158
|
}
|
|
3147
3159
|
}
|
|
3148
3160
|
|
|
@@ -26426,6 +26438,10 @@ export namespace Systems {
|
|
|
26426
26438
|
}
|
|
26427
26439
|
}
|
|
26428
26440
|
|
|
26441
|
+
// operator==
|
|
26442
|
+
|
|
26443
|
+
// operator!=
|
|
26444
|
+
|
|
26429
26445
|
/**
|
|
26430
26446
|
* @description Status of this response.
|
|
26431
26447
|
* @return EResultCode
|
|
@@ -53650,6 +53666,71 @@ export namespace Systems {
|
|
|
53650
53666
|
}
|
|
53651
53667
|
}
|
|
53652
53668
|
|
|
53669
|
+
export namespace Systems {
|
|
53670
|
+
/**
|
|
53671
|
+
@ingroup Space System
|
|
53672
|
+
* @description Data class used to contain the ids of the users that have accepted the space invites
|
|
53673
|
+
*/
|
|
53674
|
+
export class AcceptedInvitesResult
|
|
53675
|
+
extends Systems.ResultBase
|
|
53676
|
+
implements INativeResource
|
|
53677
|
+
{
|
|
53678
|
+
/** @internal */
|
|
53679
|
+
constructor(pointer: NativePointer) {
|
|
53680
|
+
super(pointer);
|
|
53681
|
+
}
|
|
53682
|
+
|
|
53683
|
+
static fromResultBase(
|
|
53684
|
+
baseInstance: Systems.ResultBase,
|
|
53685
|
+
): Systems.AcceptedInvitesResult {
|
|
53686
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
53687
|
+
return new Systems.AcceptedInvitesResult(
|
|
53688
|
+
new NativePointer(
|
|
53689
|
+
nativeClassWrapper.pointer,
|
|
53690
|
+
nativeClassWrapper.ownsPointer,
|
|
53691
|
+
),
|
|
53692
|
+
);
|
|
53693
|
+
}
|
|
53694
|
+
|
|
53695
|
+
/**
|
|
53696
|
+
* @description Retrieves the stored user ids
|
|
53697
|
+
* @return Reference to the user ids array
|
|
53698
|
+
*/
|
|
53699
|
+
|
|
53700
|
+
getAcceptedInvitesUserIds(): Common.Array<string> {
|
|
53701
|
+
var _ret = Module._malloc(8);
|
|
53702
|
+
|
|
53703
|
+
Module.ccall(
|
|
53704
|
+
"csp_systems_AcceptedInvitesResult_GetAcceptedInvitesUserIds_ArrayR",
|
|
53705
|
+
"void",
|
|
53706
|
+
["number", "number"],
|
|
53707
|
+
[_ret, this.pointer],
|
|
53708
|
+
);
|
|
53709
|
+
var _nPtr = new Common.Array<string>(
|
|
53710
|
+
getNativePointer(_ret),
|
|
53711
|
+
StringFactory,
|
|
53712
|
+
"String",
|
|
53713
|
+
);
|
|
53714
|
+
Module._free(_ret);
|
|
53715
|
+
|
|
53716
|
+
return _nPtr;
|
|
53717
|
+
}
|
|
53718
|
+
|
|
53719
|
+
delete(): void {
|
|
53720
|
+
if (this.ownsPointer && !this.disposed) {
|
|
53721
|
+
Module.ccall(
|
|
53722
|
+
"csp_systems_AcceptedInvitesResult_Dtor",
|
|
53723
|
+
"void",
|
|
53724
|
+
["number"],
|
|
53725
|
+
[this.pointer],
|
|
53726
|
+
);
|
|
53727
|
+
|
|
53728
|
+
this.disposed = true;
|
|
53729
|
+
}
|
|
53730
|
+
}
|
|
53731
|
+
}
|
|
53732
|
+
}
|
|
53733
|
+
|
|
53653
53734
|
export namespace Systems {
|
|
53654
53735
|
/**
|
|
53655
53736
|
@ingroup Space System
|
|
@@ -53756,6 +53837,8 @@ export namespace Systems {
|
|
|
53756
53837
|
* @description Enter a space if you have permission to, based on the Space settings.
|
|
53757
53838
|
* This includes setting scopes (and toggling event listening in order to set the scope).
|
|
53758
53839
|
* It also retrieves all entities in the space. Ensure Connect is called prior to this.
|
|
53840
|
+
* If user does not have permission to discover or enter the space, callback will be called with EResultCode::Failed and
|
|
53841
|
+
* ERequestFailureReason::UserSpaceAccessDenied
|
|
53759
53842
|
* @param space - Space to enter into
|
|
53760
53843
|
* @param callback - Callback when asynchronous task finishes
|
|
53761
53844
|
*/
|
|
@@ -54557,6 +54640,47 @@ export namespace Systems {
|
|
|
54557
54640
|
return _promise;
|
|
54558
54641
|
}
|
|
54559
54642
|
|
|
54643
|
+
/**
|
|
54644
|
+
* @description Returns an array of ids of users that accepted the space invite
|
|
54645
|
+
* @param space - Space for which the invites where sent
|
|
54646
|
+
* @param callback - Callback when asynchronous task finishes
|
|
54647
|
+
*/
|
|
54648
|
+
|
|
54649
|
+
async getAcceptedUserInvites(
|
|
54650
|
+
spaceId: string,
|
|
54651
|
+
): Promise<Systems.AcceptedInvitesResult> {
|
|
54652
|
+
var _resolve;
|
|
54653
|
+
|
|
54654
|
+
var _promise = new Promise<Systems.AcceptedInvitesResult>((_r) => {
|
|
54655
|
+
_resolve = _r;
|
|
54656
|
+
});
|
|
54657
|
+
|
|
54658
|
+
var _callbackPtr: number;
|
|
54659
|
+
var _callback = (_stateObject__: number, result) => {
|
|
54660
|
+
var _resultPtr = getNativePointer(result);
|
|
54661
|
+
var _resultInstance = new Systems.AcceptedInvitesResult(_resultPtr);
|
|
54662
|
+
|
|
54663
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
54664
|
+
return;
|
|
54665
|
+
}
|
|
54666
|
+
|
|
54667
|
+
_resolve(_resultInstance);
|
|
54668
|
+
|
|
54669
|
+
Module.removeFunction(_callbackPtr);
|
|
54670
|
+
};
|
|
54671
|
+
|
|
54672
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
54673
|
+
|
|
54674
|
+
Module.ccall(
|
|
54675
|
+
"csp_systems_SpaceSystem_GetAcceptedUserInvites_void_StringRC_AcceptedInvitesResultCallback",
|
|
54676
|
+
"void",
|
|
54677
|
+
["number", "string", "number", "number"],
|
|
54678
|
+
[this.pointer, spaceId, _callbackPtr, 0],
|
|
54679
|
+
);
|
|
54680
|
+
|
|
54681
|
+
return _promise;
|
|
54682
|
+
}
|
|
54683
|
+
|
|
54560
54684
|
/**
|
|
54561
54685
|
* @description Removes a user from a space by the user's unique ID.
|
|
54562
54686
|
* @param space - Space to remove user from
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connected-spaces-platform.web",
|
|
3
3
|
"displayName": "connected-spaces-platform.web",
|
|
4
|
-
"version": "5.9.
|
|
4
|
+
"version": "5.9.2+573",
|
|
5
5
|
"description": "This package provides the binaries required to interface with the Connected Spaces Platform API.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|