connected-spaces-platform.web 4.22.1 → 4.23.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.
@@ -1730,6 +1730,14 @@ function csp_systems_ProductInfoResultFactory(
1730
1730
  ProxyClassFactories["csp_systems_ProductInfoResult"] =
1731
1731
  csp_systems_ProductInfoResultFactory;
1732
1732
 
1733
+ function csp_systems_ProductInfoCollectionResultFactory(
1734
+ nativePointer: NativePointer,
1735
+ ): NativeClassWrapper {
1736
+ return new Systems.ProductInfoCollectionResult(nativePointer);
1737
+ }
1738
+ ProxyClassFactories["csp_systems_ProductInfoCollectionResult"] =
1739
+ csp_systems_ProductInfoCollectionResultFactory;
1740
+
1733
1741
  function csp_systems_CheckoutInfoResultFactory(
1734
1742
  nativePointer: NativePointer,
1735
1743
  ): NativeClassWrapper {
@@ -2313,6 +2321,18 @@ function csp_common_Array_csp_systems_CartLineFactory(
2313
2321
  ProxyClassFactories["csp_common_Array_csp_systems_CartLine"] =
2314
2322
  csp_common_Array_csp_systems_CartLineFactory;
2315
2323
 
2324
+ function csp_common_Array_csp_systems_ProductInfoFactory(
2325
+ nativePointer: NativePointer,
2326
+ ): NativeClassWrapper {
2327
+ return new Common.Array<Systems.ProductInfo>(
2328
+ nativePointer,
2329
+ csp_systems_ProductInfoFactory,
2330
+ "csp_systems_ProductInfo",
2331
+ );
2332
+ }
2333
+ ProxyClassFactories["csp_common_Array_csp_systems_ProductInfo"] =
2334
+ csp_common_Array_csp_systems_ProductInfoFactory;
2335
+
2316
2336
  function csp_common_Array_csp_systems_TicketedEventFactory(
2317
2337
  nativePointer: NativePointer,
2318
2338
  ): NativeClassWrapper {
@@ -23631,6 +23651,20 @@ export namespace Multiplayer {
23631
23651
  );
23632
23652
  }
23633
23653
 
23654
+ /**
23655
+ * @description Destroys the client's local view of all currently known entities.
23656
+ * /// They still reside on the server, however they will not be accessible in the client application.
23657
+ */
23658
+
23659
+ localDestroyAllEntities(): void {
23660
+ Module.ccall(
23661
+ "csp_multiplayer_SpaceEntitySystem_LocalDestroyAllEntities_void",
23662
+ "void",
23663
+ ["number"],
23664
+ [this.pointer],
23665
+ );
23666
+ }
23667
+
23634
23668
  /**
23635
23669
  * @description Sets the selected state of an entity, if the operation is acceptable.
23636
23670
  * /// Criteria:
@@ -41957,6 +41991,71 @@ export namespace Systems {
41957
41991
  }
41958
41992
  }
41959
41993
 
41994
+ export namespace Systems {
41995
+ /**
41996
+ @ingroup ECommerce System
41997
+ * @description Data class used to contain information when attempting to get Arrays of Product Info.
41998
+ */
41999
+ export class ProductInfoCollectionResult
42000
+ extends Systems.ResultBase
42001
+ implements INativeResource
42002
+ {
42003
+ /** @internal */
42004
+ constructor(pointer: NativePointer) {
42005
+ super(pointer);
42006
+ }
42007
+
42008
+ static fromResultBase(
42009
+ baseInstance: Systems.ResultBase,
42010
+ ): Systems.ProductInfoCollectionResult {
42011
+ const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
42012
+ return new Systems.ProductInfoCollectionResult(
42013
+ new NativePointer(
42014
+ nativeClassWrapper.pointer,
42015
+ nativeClassWrapper.ownsPointer,
42016
+ ),
42017
+ );
42018
+ }
42019
+
42020
+ /**
42021
+ * @description Retrieves the Product Info Array being stored.
42022
+ * @return Reference to the productinfos
42023
+ */
42024
+
42025
+ getProducts(): Common.Array<Systems.ProductInfo> {
42026
+ var _ret = Module._malloc(8);
42027
+
42028
+ Module.ccall(
42029
+ "csp_systems_ProductInfoCollectionResult_GetProductsC_ArrayRC",
42030
+ "void",
42031
+ ["number", "number"],
42032
+ [_ret, this.pointer],
42033
+ );
42034
+ var _nPtr = new Common.Array<Systems.ProductInfo>(
42035
+ getNativePointer(_ret),
42036
+ csp_systems_ProductInfoFactory,
42037
+ "csp_systems_ProductInfo",
42038
+ );
42039
+ Module._free(_ret);
42040
+
42041
+ return _nPtr;
42042
+ }
42043
+
42044
+ delete(): void {
42045
+ if (this.ownsPointer && !this.disposed) {
42046
+ Module.ccall(
42047
+ "csp_systems_ProductInfoCollectionResult_Dtor",
42048
+ "void",
42049
+ ["number"],
42050
+ [this.pointer],
42051
+ );
42052
+
42053
+ this.disposed = true;
42054
+ }
42055
+ }
42056
+ }
42057
+ }
42058
+
41960
42059
  export namespace Systems {
41961
42060
  /**
41962
42061
  @ingroup ECommerce System
@@ -42255,6 +42354,51 @@ export namespace Systems {
42255
42354
  return _promise;
42256
42355
  }
42257
42356
 
42357
+ /**
42358
+ * @description Get product information from a shopify store within a space, by providing an array of VariantIds
42359
+ * @param spaceId - Space id of product
42360
+ * @param variantIds - Variant ids to search for
42361
+ * @param callback - Callback containing collection of product info when asynchronous task finishes
42362
+ */
42363
+
42364
+ async getProductInfoCollectionByVariantIds(
42365
+ spaceId: string,
42366
+ variantIds: Common.Array<string>,
42367
+ ): Promise<Systems.ProductInfoCollectionResult> {
42368
+ var _resolve;
42369
+
42370
+ var _promise = new Promise<Systems.ProductInfoCollectionResult>((_r) => {
42371
+ _resolve = _r;
42372
+ });
42373
+
42374
+ var _callbackPtr: number;
42375
+ var _callback = (_stateObject__: number, result) => {
42376
+ var _resultPtr = getNativePointer(result);
42377
+ var _resultInstance = new Systems.ProductInfoCollectionResult(
42378
+ _resultPtr,
42379
+ );
42380
+
42381
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
42382
+ return;
42383
+ }
42384
+
42385
+ _resolve(_resultInstance);
42386
+
42387
+ Module.removeFunction(_callbackPtr);
42388
+ };
42389
+
42390
+ _callbackPtr = Module.addFunction(_callback, "vii");
42391
+
42392
+ Module.ccall(
42393
+ "csp_systems_ECommerceSystem_GetProductInfoCollectionByVariantIds_void_StringRC_ArrayRC_ProductInfoCollectionResultCallback",
42394
+ "void",
42395
+ ["number", "string", "number", "number", "number"],
42396
+ [this.pointer, spaceId, variantIds.pointer, _callbackPtr, 0],
42397
+ );
42398
+
42399
+ return _promise;
42400
+ }
42401
+
42258
42402
  /**
42259
42403
  * @description Get checkout information from a shopify store within a space
42260
42404
  * @param spaceId - Space id of the cart
@@ -45992,16 +46136,40 @@ export namespace Systems {
45992
46136
  }
45993
46137
 
45994
46138
  /**
45995
- * @description Send exit current space event to EventSystem.
46139
+ * @description Exits the space and deregisters from the space scope.
45996
46140
  */
45997
46141
 
45998
- exitSpace(): void {
46142
+ async exitSpace(): Promise<Systems.NullResult> {
46143
+ var _resolve;
46144
+
46145
+ var _promise = new Promise<Systems.NullResult>((_r) => {
46146
+ _resolve = _r;
46147
+ });
46148
+
46149
+ var _callbackPtr: number;
46150
+ var _callback = (_stateObject__: number, result) => {
46151
+ var _resultPtr = getNativePointer(result);
46152
+ var _resultInstance = new Systems.NullResult(_resultPtr);
46153
+
46154
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
46155
+ return;
46156
+ }
46157
+
46158
+ _resolve(_resultInstance);
46159
+
46160
+ Module.removeFunction(_callbackPtr);
46161
+ };
46162
+
46163
+ _callbackPtr = Module.addFunction(_callback, "vii");
46164
+
45999
46165
  Module.ccall(
46000
- "csp_systems_SpaceSystem_ExitSpace_void",
46166
+ "csp_systems_SpaceSystem_ExitSpace_void_NullResultCallback",
46001
46167
  "void",
46002
- ["number"],
46003
- [this.pointer],
46168
+ ["number", "number", "number"],
46169
+ [this.pointer, _callbackPtr, 0],
46004
46170
  );
46171
+
46172
+ return _promise;
46005
46173
  }
46006
46174
 
46007
46175
  /**
@@ -46331,7 +46499,8 @@ export namespace Systems {
46331
46499
  * @description Retrieves basic space details for the spaces with the given attributes available to the logged in user.
46332
46500
  * Results pagination is supported through the use of ResultsSkip and ResultsMax.
46333
46501
  * @param isDiscoverable - `true` or `false` to filter by IsDiscoverable attribute value.
46334
- * @param isDiscoverable - `true` or `false` to filter by RequiresInvite attribute value.
46502
+ * @param isArchived - `true` or `false` to filter by IsArchived attribute value.
46503
+ * @param requiresInvite - `true` or `false` to filter by RequiresInvite attribute value.
46335
46504
  * @param resultsSkip - Number of result entries that will be skipped from the result. for no skip pass nullptr.
46336
46505
  * @param resultsMax - Maximum number of result entries to be retrieved. for all available result entries pass
46337
46506
  * nullptr.
@@ -46340,6 +46509,7 @@ export namespace Systems {
46340
46509
 
46341
46510
  async getSpacesByAttributes(
46342
46511
  isDiscoverable: boolean | null,
46512
+ isArchived: boolean | null,
46343
46513
  requiresInvite: boolean | null,
46344
46514
  resultsSkip: number | null,
46345
46515
  resultsMax: number | null,
@@ -46372,6 +46542,12 @@ export namespace Systems {
46372
46542
  Module.setValue(isDiscoverablePointer, isDiscoverable ? 1 : 0, "i32");
46373
46543
  }
46374
46544
 
46545
+ var isArchivedPointer = 0;
46546
+ if (isArchived != null) {
46547
+ isArchivedPointer = Module._malloc(4);
46548
+ Module.setValue(isArchivedPointer, isArchived ? 1 : 0, "i32");
46549
+ }
46550
+
46375
46551
  var requiresInvitePointer = 0;
46376
46552
  if (requiresInvite != null) {
46377
46553
  requiresInvitePointer = Module._malloc(4);
@@ -46391,12 +46567,13 @@ export namespace Systems {
46391
46567
  }
46392
46568
 
46393
46569
  Module.ccall(
46394
- "csp_systems_SpaceSystem_GetSpacesByAttributes_void_boolRC_boolRC_intRC_intRC_BasicSpacesResultCallback",
46570
+ "csp_systems_SpaceSystem_GetSpacesByAttributes_void_boolRC_boolRC_boolRC_intRC_intRC_BasicSpacesResultCallback",
46395
46571
  "void",
46396
46572
  [
46397
46573
  "number",
46398
46574
  "boolean",
46399
46575
  "boolean",
46576
+ "boolean",
46400
46577
  "number",
46401
46578
  "number",
46402
46579
  "number",
@@ -46405,6 +46582,7 @@ export namespace Systems {
46405
46582
  [
46406
46583
  this.pointer,
46407
46584
  isDiscoverablePointer,
46585
+ isArchivedPointer,
46408
46586
  requiresInvitePointer,
46409
46587
  resultsSkipPointer,
46410
46588
  resultsMaxPointer,
@@ -46416,6 +46594,9 @@ export namespace Systems {
46416
46594
  if (isDiscoverablePointer) {
46417
46595
  Module._free(isDiscoverablePointer);
46418
46596
  }
46597
+ if (isArchivedPointer) {
46598
+ Module._free(isArchivedPointer);
46599
+ }
46419
46600
  if (requiresInvitePointer) {
46420
46601
  Module._free(requiresInvitePointer);
46421
46602
  }
@@ -49314,7 +49495,7 @@ export namespace Systems {
49314
49495
  * @param callback - Callback when asynchronous task finishes
49315
49496
  */
49316
49497
 
49317
- async refreshSession(
49498
+ async loginWithRefreshToken(
49318
49499
  userId: string,
49319
49500
  refreshToken: string,
49320
49501
  ): Promise<Systems.LoginStateResult> {
@@ -49341,7 +49522,7 @@ export namespace Systems {
49341
49522
  _callbackPtr = Module.addFunction(_callback, "vii");
49342
49523
 
49343
49524
  Module.ccall(
49344
- "csp_systems_UserSystem_RefreshSession_void_StringRC_StringRC_LoginStateResultCallback",
49525
+ "csp_systems_UserSystem_LoginWithRefreshToken_void_StringRC_StringRC_LoginStateResultCallback",
49345
49526
  "void",
49346
49527
  ["number", "string", "string", "number", "number"],
49347
49528
  [this.pointer, userId, refreshToken, _callbackPtr, 0],
@@ -49545,49 +49726,6 @@ export namespace Systems {
49545
49726
  return _promise;
49546
49727
  }
49547
49728
 
49548
- /**
49549
- * @description Log in to Magnopus Connected Services using the given one-time password/key.
49550
- * @param userId - The user id
49551
- * @param key - The one-time key to exchange
49552
- * @param callback - Callback to call when a response is received
49553
- */
49554
-
49555
- async exchangeKey(
49556
- userId: string,
49557
- key: string,
49558
- ): Promise<Systems.LoginStateResult> {
49559
- var _resolve;
49560
-
49561
- var _promise = new Promise<Systems.LoginStateResult>((_r) => {
49562
- _resolve = _r;
49563
- });
49564
-
49565
- var _callbackPtr: number;
49566
- var _callback = (_stateObject__: number, result) => {
49567
- var _resultPtr = getNativePointer(result);
49568
- var _resultInstance = new Systems.LoginStateResult(_resultPtr);
49569
-
49570
- if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
49571
- return;
49572
- }
49573
-
49574
- _resolve(_resultInstance);
49575
-
49576
- Module.removeFunction(_callbackPtr);
49577
- };
49578
-
49579
- _callbackPtr = Module.addFunction(_callback, "vii");
49580
-
49581
- Module.ccall(
49582
- "csp_systems_UserSystem_ExchangeKey_void_StringRC_StringRC_LoginStateResultCallback",
49583
- "void",
49584
- ["number", "string", "string", "number", "number"],
49585
- [this.pointer, userId, key, _callbackPtr, 0],
49586
- );
49587
-
49588
- return _promise;
49589
- }
49590
-
49591
49729
  /**
49592
49730
  * @description Logout from Magnopus Connected Services.
49593
49731
  * @param callback - Callback to call when a response is received
@@ -50537,6 +50675,24 @@ export namespace Common {
50537
50675
  return _inst;
50538
50676
  }
50539
50677
 
50678
+ static ofcsp_systems_ProductInfo(): Array<Systems.ProductInfo> {
50679
+ var _ret = Module._malloc(8);
50680
+ Module.ccall(
50681
+ "csp_common_Array_Ctor_csp_systems_ProductInfo",
50682
+ "void",
50683
+ ["number"],
50684
+ [_ret],
50685
+ );
50686
+ var _inst = new Array<Systems.ProductInfo>(
50687
+ getNativePointer(_ret),
50688
+ csp_systems_ProductInfoFactory,
50689
+ "csp_systems_ProductInfo",
50690
+ );
50691
+ Module._free(_ret);
50692
+
50693
+ return _inst;
50694
+ }
50695
+
50540
50696
  static ofcsp_systems_TicketedEvent(): Array<Systems.TicketedEvent> {
50541
50697
  var _ret = Module._malloc(8);
50542
50698
  Module.ccall(
@@ -51183,6 +51339,26 @@ export namespace Common {
51183
51339
  return _inst;
51184
51340
  }
51185
51341
 
51342
+ static ofcsp_systems_ProductInfo_number(
51343
+ size: number,
51344
+ ): Array<Systems.ProductInfo> {
51345
+ var _ret = Module._malloc(8);
51346
+ Module.ccall(
51347
+ "csp_common_Array_Conv_size_tC_csp_systems_ProductInfo",
51348
+ "void",
51349
+ ["number", "number"],
51350
+ [_ret, size],
51351
+ );
51352
+ var _inst = new Array<Systems.ProductInfo>(
51353
+ getNativePointer(_ret),
51354
+ csp_systems_ProductInfoFactory,
51355
+ "csp_systems_ProductInfo",
51356
+ );
51357
+ Module._free(_ret);
51358
+
51359
+ return _inst;
51360
+ }
51361
+
51186
51362
  static ofcsp_systems_TicketedEvent_number(
51187
51363
  size: number,
51188
51364
  ): Array<Systems.TicketedEvent> {
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": "4.22.1+503",
4
+ "version": "4.23.1+505",
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": {