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.
@@ -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 {
@@ -53658,6 +53666,71 @@ export namespace Systems {
53658
53666
  }
53659
53667
  }
53660
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
+
53661
53734
  export namespace Systems {
53662
53735
  /**
53663
53736
  @ingroup Space System
@@ -54567,6 +54640,47 @@ export namespace Systems {
54567
54640
  return _promise;
54568
54641
  }
54569
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
+
54570
54684
  /**
54571
54685
  * @description Removes a user from a space by the user's unique ID.
54572
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.1+571",
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": {