connected-spaces-platform.web 5.9.1 → 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 +23 -0
- package/connectedspacesplatform.js +63 -0
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +114 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -11269,6 +11269,23 @@ export declare namespace Systems {
|
|
|
11269
11269
|
delete(): void;
|
|
11270
11270
|
}
|
|
11271
11271
|
}
|
|
11272
|
+
export declare namespace Systems {
|
|
11273
|
+
/**
|
|
11274
|
+
@ingroup Space System
|
|
11275
|
+
* @description Data class used to contain the ids of the users that have accepted the space invites
|
|
11276
|
+
*/
|
|
11277
|
+
class AcceptedInvitesResult extends Systems.ResultBase implements INativeResource {
|
|
11278
|
+
/** @internal */
|
|
11279
|
+
constructor(pointer: NativePointer);
|
|
11280
|
+
static fromResultBase(baseInstance: Systems.ResultBase): Systems.AcceptedInvitesResult;
|
|
11281
|
+
/**
|
|
11282
|
+
* @description Retrieves the stored user ids
|
|
11283
|
+
* @return Reference to the user ids array
|
|
11284
|
+
*/
|
|
11285
|
+
getAcceptedInvitesUserIds(): Common.Array<string>;
|
|
11286
|
+
delete(): void;
|
|
11287
|
+
}
|
|
11288
|
+
}
|
|
11272
11289
|
export declare namespace Systems {
|
|
11273
11290
|
/**
|
|
11274
11291
|
@ingroup Space System
|
|
@@ -11427,6 +11444,12 @@ export declare namespace Systems {
|
|
|
11427
11444
|
* @param callback - Callback when asynchronous task finishes
|
|
11428
11445
|
*/
|
|
11429
11446
|
getPendingUserInvites(spaceId: string): Promise<Systems.PendingInvitesResult>;
|
|
11447
|
+
/**
|
|
11448
|
+
* @description Returns an array of ids of users that accepted the space invite
|
|
11449
|
+
* @param space - Space for which the invites where sent
|
|
11450
|
+
* @param callback - Callback when asynchronous task finishes
|
|
11451
|
+
*/
|
|
11452
|
+
getAcceptedUserInvites(spaceId: string): Promise<Systems.AcceptedInvitesResult>;
|
|
11430
11453
|
/**
|
|
11431
11454
|
* @description Removes a user from a space by the user's unique ID.
|
|
11432
11455
|
* @param space - Space to remove user from
|
|
@@ -1483,6 +1483,11 @@ function csp_systems_PendingInvitesResultFactory(nativePointer) {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
ProxyClassFactories["csp_systems_PendingInvitesResult"] =
|
|
1485
1485
|
csp_systems_PendingInvitesResultFactory;
|
|
1486
|
+
function csp_systems_AcceptedInvitesResultFactory(nativePointer) {
|
|
1487
|
+
return new Systems.AcceptedInvitesResult(nativePointer);
|
|
1488
|
+
}
|
|
1489
|
+
ProxyClassFactories["csp_systems_AcceptedInvitesResult"] =
|
|
1490
|
+
csp_systems_AcceptedInvitesResultFactory;
|
|
1486
1491
|
function csp_systems_SpaceGeoLocationResultFactory(nativePointer) {
|
|
1487
1492
|
return new Systems.SpaceGeoLocationResult(nativePointer);
|
|
1488
1493
|
}
|
|
@@ -26066,6 +26071,40 @@ export class CSPFoundation {
|
|
|
26066
26071
|
}
|
|
26067
26072
|
Systems.PendingInvitesResult = PendingInvitesResult;
|
|
26068
26073
|
})(Systems || (Systems = {}));
|
|
26074
|
+
(function (Systems) {
|
|
26075
|
+
/**
|
|
26076
|
+
@ingroup Space System
|
|
26077
|
+
* @description Data class used to contain the ids of the users that have accepted the space invites
|
|
26078
|
+
*/
|
|
26079
|
+
class AcceptedInvitesResult extends Systems.ResultBase {
|
|
26080
|
+
/** @internal */
|
|
26081
|
+
constructor(pointer) {
|
|
26082
|
+
super(pointer);
|
|
26083
|
+
}
|
|
26084
|
+
static fromResultBase(baseInstance) {
|
|
26085
|
+
const nativeClassWrapper = baseInstance;
|
|
26086
|
+
return new Systems.AcceptedInvitesResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
26087
|
+
}
|
|
26088
|
+
/**
|
|
26089
|
+
* @description Retrieves the stored user ids
|
|
26090
|
+
* @return Reference to the user ids array
|
|
26091
|
+
*/
|
|
26092
|
+
getAcceptedInvitesUserIds() {
|
|
26093
|
+
var _ret = Module._malloc(8);
|
|
26094
|
+
Module.ccall("csp_systems_AcceptedInvitesResult_GetAcceptedInvitesUserIds_ArrayR", "void", ["number", "number"], [_ret, this.pointer]);
|
|
26095
|
+
var _nPtr = new Common.Array(getNativePointer(_ret), StringFactory, "String");
|
|
26096
|
+
Module._free(_ret);
|
|
26097
|
+
return _nPtr;
|
|
26098
|
+
}
|
|
26099
|
+
delete() {
|
|
26100
|
+
if (this.ownsPointer && !this.disposed) {
|
|
26101
|
+
Module.ccall("csp_systems_AcceptedInvitesResult_Dtor", "void", ["number"], [this.pointer]);
|
|
26102
|
+
this.disposed = true;
|
|
26103
|
+
}
|
|
26104
|
+
}
|
|
26105
|
+
}
|
|
26106
|
+
Systems.AcceptedInvitesResult = AcceptedInvitesResult;
|
|
26107
|
+
})(Systems || (Systems = {}));
|
|
26069
26108
|
(function (Systems) {
|
|
26070
26109
|
/**
|
|
26071
26110
|
@ingroup Space System
|
|
@@ -26654,6 +26693,30 @@ export class CSPFoundation {
|
|
|
26654
26693
|
Module.ccall("csp_systems_SpaceSystem_GetPendingUserInvites_void_StringRC_PendingInvitesResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
|
|
26655
26694
|
return _promise;
|
|
26656
26695
|
}
|
|
26696
|
+
/**
|
|
26697
|
+
* @description Returns an array of ids of users that accepted the space invite
|
|
26698
|
+
* @param space - Space for which the invites where sent
|
|
26699
|
+
* @param callback - Callback when asynchronous task finishes
|
|
26700
|
+
*/
|
|
26701
|
+
async getAcceptedUserInvites(spaceId) {
|
|
26702
|
+
var _resolve;
|
|
26703
|
+
var _promise = new Promise((_r) => {
|
|
26704
|
+
_resolve = _r;
|
|
26705
|
+
});
|
|
26706
|
+
var _callbackPtr;
|
|
26707
|
+
var _callback = (_stateObject__, result) => {
|
|
26708
|
+
var _resultPtr = getNativePointer(result);
|
|
26709
|
+
var _resultInstance = new Systems.AcceptedInvitesResult(_resultPtr);
|
|
26710
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
26711
|
+
return;
|
|
26712
|
+
}
|
|
26713
|
+
_resolve(_resultInstance);
|
|
26714
|
+
Module.removeFunction(_callbackPtr);
|
|
26715
|
+
};
|
|
26716
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
26717
|
+
Module.ccall("csp_systems_SpaceSystem_GetAcceptedUserInvites_void_StringRC_AcceptedInvitesResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
|
|
26718
|
+
return _promise;
|
|
26719
|
+
}
|
|
26657
26720
|
/**
|
|
26658
26721
|
* @description Removes a user from a space by the user's unique ID.
|
|
26659
26722
|
* @param space - Space to remove user from
|