connected-spaces-platform.web 4.22.1 → 4.23.0

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.
@@ -8467,6 +8467,23 @@ export declare namespace Systems {
8467
8467
  delete(): void;
8468
8468
  }
8469
8469
  }
8470
+ export declare namespace Systems {
8471
+ /**
8472
+ @ingroup ECommerce System
8473
+ * @description Data class used to contain information when attempting to get Arrays of Product Info.
8474
+ */
8475
+ class ProductInfoCollectionResult extends Systems.ResultBase implements INativeResource {
8476
+ /** @internal */
8477
+ constructor(pointer: NativePointer);
8478
+ static fromResultBase(baseInstance: Systems.ResultBase): Systems.ProductInfoCollectionResult;
8479
+ /**
8480
+ * @description Retrieves the Product Info Array being stored.
8481
+ * @return Reference to the productinfos
8482
+ */
8483
+ getProducts(): Common.Array<Systems.ProductInfo>;
8484
+ delete(): void;
8485
+ }
8486
+ }
8470
8487
  export declare namespace Systems {
8471
8488
  /**
8472
8489
  @ingroup ECommerce System
@@ -8537,6 +8554,13 @@ export declare namespace Systems {
8537
8554
  * @param callback - Callback when asynchronous task finishes
8538
8555
  */
8539
8556
  getProductInformation(spaceId: string, productId: string): Promise<Systems.ProductInfoResult>;
8557
+ /**
8558
+ * @description Get product information from a shopify store within a space, by providing an array of VariantIds
8559
+ * @param spaceId - Space id of product
8560
+ * @param variantIds - Variant ids to search for
8561
+ * @param callback - Callback containing collection of product info when asynchronous task finishes
8562
+ */
8563
+ getProductInfoCollectionByVariantIds(spaceId: string, variantIds: Common.Array<string>): Promise<Systems.ProductInfoCollectionResult>;
8540
8564
  /**
8541
8565
  * @description Get checkout information from a shopify store within a space
8542
8566
  * @param spaceId - Space id of the cart
@@ -9334,9 +9358,9 @@ export declare namespace Systems {
9334
9358
  */
9335
9359
  enterSpace(spaceId: string): Promise<Systems.NullResult>;
9336
9360
  /**
9337
- * @description Send exit current space event to EventSystem.
9361
+ * @description Exits the space and deregisters from the space scope.
9338
9362
  */
9339
- exitSpace(): void;
9363
+ exitSpace(): Promise<Systems.NullResult>;
9340
9364
  /**
9341
9365
  * @description Get whether user is currently in a space.
9342
9366
  * @return Result of whether they are in a Space.
@@ -9396,13 +9420,14 @@ export declare namespace Systems {
9396
9420
  * @description Retrieves basic space details for the spaces with the given attributes available to the logged in user.
9397
9421
  * Results pagination is supported through the use of ResultsSkip and ResultsMax.
9398
9422
  * @param isDiscoverable - `true` or `false` to filter by IsDiscoverable attribute value.
9399
- * @param isDiscoverable - `true` or `false` to filter by RequiresInvite attribute value.
9423
+ * @param isArchived - `true` or `false` to filter by IsArchived attribute value.
9424
+ * @param requiresInvite - `true` or `false` to filter by RequiresInvite attribute value.
9400
9425
  * @param resultsSkip - Number of result entries that will be skipped from the result. for no skip pass nullptr.
9401
9426
  * @param resultsMax - Maximum number of result entries to be retrieved. for all available result entries pass
9402
9427
  * nullptr.
9403
9428
  * @param callback - Callback when asynchronous task finishes
9404
9429
  */
9405
- getSpacesByAttributes(isDiscoverable: boolean | null, requiresInvite: boolean | null, resultsSkip: number | null, resultsMax: number | null): Promise<Systems.BasicSpacesResult>;
9430
+ getSpacesByAttributes(isDiscoverable: boolean | null, isArchived: boolean | null, requiresInvite: boolean | null, resultsSkip: number | null, resultsMax: number | null): Promise<Systems.BasicSpacesResult>;
9406
9431
  /**
9407
9432
  * @description Retrieves space details corresponding to the provided Space IDs
9408
9433
  * @param requestedSpaceIDs - Array of space ids for which the space details will be retrieved
@@ -9934,7 +9959,7 @@ export declare namespace Systems {
9934
9959
  * @param refreshToken - Refresh token to be used for refreshing the authentication token
9935
9960
  * @param callback - Callback when asynchronous task finishes
9936
9961
  */
9937
- refreshSession(userId: string, refreshToken: string): Promise<Systems.LoginStateResult>;
9962
+ loginWithRefreshToken(userId: string, refreshToken: string): Promise<Systems.LoginStateResult>;
9938
9963
  /**
9939
9964
  * @description Log in to Magnopus Connected Services as a guest.
9940
9965
  * @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
@@ -9969,13 +9994,6 @@ export declare namespace Systems {
9969
9994
  * @param callback - Callback that contains the result of the magnopus connected services authentication operation
9970
9995
  */
9971
9996
  loginToThirdPartyAuthenticationProvider(thirdPartyToken: string, thirdPartyStateId: string, userHasVerifiedAge: boolean | null): Promise<Systems.LoginStateResult>;
9972
- /**
9973
- * @description Log in to Magnopus Connected Services using the given one-time password/key.
9974
- * @param userId - The user id
9975
- * @param key - The one-time key to exchange
9976
- * @param callback - Callback to call when a response is received
9977
- */
9978
- exchangeKey(userId: string, key: string): Promise<Systems.LoginStateResult>;
9979
9997
  /**
9980
9998
  * @description Logout from Magnopus Connected Services.
9981
9999
  * @param callback - Callback to call when a response is received
@@ -10103,6 +10121,7 @@ export declare namespace Common {
10103
10121
  static ofcsp_systems_ProductVariantInfo(): Array<Systems.ProductVariantInfo>;
10104
10122
  static ofcsp_systems_ProductMediaInfo(): Array<Systems.ProductMediaInfo>;
10105
10123
  static ofcsp_systems_CartLine(): Array<Systems.CartLine>;
10124
+ static ofcsp_systems_ProductInfo(): Array<Systems.ProductInfo>;
10106
10125
  static ofcsp_systems_TicketedEvent(): Array<Systems.TicketedEvent>;
10107
10126
  static ofcsp_systems_MaintenanceInfo(): Array<Systems.MaintenanceInfo>;
10108
10127
  static ofcsp_systems_FeatureLimitInfo(): Array<Systems.FeatureLimitInfo>;
@@ -10138,6 +10157,7 @@ export declare namespace Common {
10138
10157
  static ofcsp_systems_ProductVariantInfo_number(size: number): Array<Systems.ProductVariantInfo>;
10139
10158
  static ofcsp_systems_ProductMediaInfo_number(size: number): Array<Systems.ProductMediaInfo>;
10140
10159
  static ofcsp_systems_CartLine_number(size: number): Array<Systems.CartLine>;
10160
+ static ofcsp_systems_ProductInfo_number(size: number): Array<Systems.ProductInfo>;
10141
10161
  static ofcsp_systems_TicketedEvent_number(size: number): Array<Systems.TicketedEvent>;
10142
10162
  static ofcsp_systems_MaintenanceInfo_number(size: number): Array<Systems.MaintenanceInfo>;
10143
10163
  static ofcsp_systems_FeatureLimitInfo_number(size: number): Array<Systems.FeatureLimitInfo>;
@@ -1123,6 +1123,11 @@ function csp_systems_ProductInfoResultFactory(nativePointer) {
1123
1123
  }
1124
1124
  ProxyClassFactories["csp_systems_ProductInfoResult"] =
1125
1125
  csp_systems_ProductInfoResultFactory;
1126
+ function csp_systems_ProductInfoCollectionResultFactory(nativePointer) {
1127
+ return new Systems.ProductInfoCollectionResult(nativePointer);
1128
+ }
1129
+ ProxyClassFactories["csp_systems_ProductInfoCollectionResult"] =
1130
+ csp_systems_ProductInfoCollectionResultFactory;
1126
1131
  function csp_systems_CheckoutInfoResultFactory(nativePointer) {
1127
1132
  return new Systems.CheckoutInfoResult(nativePointer);
1128
1133
  }
@@ -1449,6 +1454,11 @@ function csp_common_Array_csp_systems_CartLineFactory(nativePointer) {
1449
1454
  }
1450
1455
  ProxyClassFactories["csp_common_Array_csp_systems_CartLine"] =
1451
1456
  csp_common_Array_csp_systems_CartLineFactory;
1457
+ function csp_common_Array_csp_systems_ProductInfoFactory(nativePointer) {
1458
+ return new Common.Array(nativePointer, csp_systems_ProductInfoFactory, "csp_systems_ProductInfo");
1459
+ }
1460
+ ProxyClassFactories["csp_common_Array_csp_systems_ProductInfo"] =
1461
+ csp_common_Array_csp_systems_ProductInfoFactory;
1452
1462
  function csp_common_Array_csp_systems_TicketedEventFactory(nativePointer) {
1453
1463
  return new Common.Array(nativePointer, csp_systems_TicketedEventFactory, "csp_systems_TicketedEvent");
1454
1464
  }
@@ -19550,6 +19560,40 @@ export class CSPFoundation {
19550
19560
  }
19551
19561
  Systems.ProductInfoResult = ProductInfoResult;
19552
19562
  })(Systems || (Systems = {}));
19563
+ (function (Systems) {
19564
+ /**
19565
+ @ingroup ECommerce System
19566
+ * @description Data class used to contain information when attempting to get Arrays of Product Info.
19567
+ */
19568
+ class ProductInfoCollectionResult extends Systems.ResultBase {
19569
+ /** @internal */
19570
+ constructor(pointer) {
19571
+ super(pointer);
19572
+ }
19573
+ static fromResultBase(baseInstance) {
19574
+ const nativeClassWrapper = baseInstance;
19575
+ return new Systems.ProductInfoCollectionResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
19576
+ }
19577
+ /**
19578
+ * @description Retrieves the Product Info Array being stored.
19579
+ * @return Reference to the productinfos
19580
+ */
19581
+ getProducts() {
19582
+ var _ret = Module._malloc(8);
19583
+ Module.ccall("csp_systems_ProductInfoCollectionResult_GetProductsC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
19584
+ var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_ProductInfoFactory, "csp_systems_ProductInfo");
19585
+ Module._free(_ret);
19586
+ return _nPtr;
19587
+ }
19588
+ delete() {
19589
+ if (this.ownsPointer && !this.disposed) {
19590
+ Module.ccall("csp_systems_ProductInfoCollectionResult_Dtor", "void", ["number"], [this.pointer]);
19591
+ this.disposed = true;
19592
+ }
19593
+ }
19594
+ }
19595
+ Systems.ProductInfoCollectionResult = ProductInfoCollectionResult;
19596
+ })(Systems || (Systems = {}));
19553
19597
  (function (Systems) {
19554
19598
  /**
19555
19599
  @ingroup ECommerce System
@@ -19710,6 +19754,31 @@ export class CSPFoundation {
19710
19754
  Module.ccall("csp_systems_ECommerceSystem_GetProductInformation_void_StringRC_StringRC_ProductInfoResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, spaceId, productId, _callbackPtr, 0]);
19711
19755
  return _promise;
19712
19756
  }
19757
+ /**
19758
+ * @description Get product information from a shopify store within a space, by providing an array of VariantIds
19759
+ * @param spaceId - Space id of product
19760
+ * @param variantIds - Variant ids to search for
19761
+ * @param callback - Callback containing collection of product info when asynchronous task finishes
19762
+ */
19763
+ async getProductInfoCollectionByVariantIds(spaceId, variantIds) {
19764
+ var _resolve;
19765
+ var _promise = new Promise((_r) => {
19766
+ _resolve = _r;
19767
+ });
19768
+ var _callbackPtr;
19769
+ var _callback = (_stateObject__, result) => {
19770
+ var _resultPtr = getNativePointer(result);
19771
+ var _resultInstance = new Systems.ProductInfoCollectionResult(_resultPtr);
19772
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
19773
+ return;
19774
+ }
19775
+ _resolve(_resultInstance);
19776
+ Module.removeFunction(_callbackPtr);
19777
+ };
19778
+ _callbackPtr = Module.addFunction(_callback, "vii");
19779
+ Module.ccall("csp_systems_ECommerceSystem_GetProductInfoCollectionByVariantIds_void_StringRC_ArrayRC_ProductInfoCollectionResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, spaceId, variantIds.pointer, _callbackPtr, 0]);
19780
+ return _promise;
19781
+ }
19713
19782
  /**
19714
19783
  * @description Get checkout information from a shopify store within a space
19715
19784
  * @param spaceId - Space id of the cart
@@ -21855,10 +21924,26 @@ export class CSPFoundation {
21855
21924
  return _promise;
21856
21925
  }
21857
21926
  /**
21858
- * @description Send exit current space event to EventSystem.
21927
+ * @description Exits the space and deregisters from the space scope.
21859
21928
  */
21860
- exitSpace() {
21861
- Module.ccall("csp_systems_SpaceSystem_ExitSpace_void", "void", ["number"], [this.pointer]);
21929
+ async exitSpace() {
21930
+ var _resolve;
21931
+ var _promise = new Promise((_r) => {
21932
+ _resolve = _r;
21933
+ });
21934
+ var _callbackPtr;
21935
+ var _callback = (_stateObject__, result) => {
21936
+ var _resultPtr = getNativePointer(result);
21937
+ var _resultInstance = new Systems.NullResult(_resultPtr);
21938
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21939
+ return;
21940
+ }
21941
+ _resolve(_resultInstance);
21942
+ Module.removeFunction(_callbackPtr);
21943
+ };
21944
+ _callbackPtr = Module.addFunction(_callback, "vii");
21945
+ Module.ccall("csp_systems_SpaceSystem_ExitSpace_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21946
+ return _promise;
21862
21947
  }
21863
21948
  /**
21864
21949
  * @description Get whether user is currently in a space.
@@ -22074,13 +22159,14 @@ export class CSPFoundation {
22074
22159
  * @description Retrieves basic space details for the spaces with the given attributes available to the logged in user.
22075
22160
  * Results pagination is supported through the use of ResultsSkip and ResultsMax.
22076
22161
  * @param isDiscoverable - `true` or `false` to filter by IsDiscoverable attribute value.
22077
- * @param isDiscoverable - `true` or `false` to filter by RequiresInvite attribute value.
22162
+ * @param isArchived - `true` or `false` to filter by IsArchived attribute value.
22163
+ * @param requiresInvite - `true` or `false` to filter by RequiresInvite attribute value.
22078
22164
  * @param resultsSkip - Number of result entries that will be skipped from the result. for no skip pass nullptr.
22079
22165
  * @param resultsMax - Maximum number of result entries to be retrieved. for all available result entries pass
22080
22166
  * nullptr.
22081
22167
  * @param callback - Callback when asynchronous task finishes
22082
22168
  */
22083
- async getSpacesByAttributes(isDiscoverable, requiresInvite, resultsSkip, resultsMax) {
22169
+ async getSpacesByAttributes(isDiscoverable, isArchived, requiresInvite, resultsSkip, resultsMax) {
22084
22170
  var _resolve;
22085
22171
  var _promise = new Promise((_r) => {
22086
22172
  _resolve = _r;
@@ -22101,6 +22187,11 @@ export class CSPFoundation {
22101
22187
  isDiscoverablePointer = Module._malloc(4);
22102
22188
  Module.setValue(isDiscoverablePointer, isDiscoverable ? 1 : 0, "i32");
22103
22189
  }
22190
+ var isArchivedPointer = 0;
22191
+ if (isArchived != null) {
22192
+ isArchivedPointer = Module._malloc(4);
22193
+ Module.setValue(isArchivedPointer, isArchived ? 1 : 0, "i32");
22194
+ }
22104
22195
  var requiresInvitePointer = 0;
22105
22196
  if (requiresInvite != null) {
22106
22197
  requiresInvitePointer = Module._malloc(4);
@@ -22116,10 +22207,11 @@ export class CSPFoundation {
22116
22207
  resultsMaxPointer = Module._malloc(4);
22117
22208
  Module.setValue(resultsMaxPointer, resultsMax, "i32");
22118
22209
  }
22119
- Module.ccall("csp_systems_SpaceSystem_GetSpacesByAttributes_void_boolRC_boolRC_intRC_intRC_BasicSpacesResultCallback", "void", [
22210
+ Module.ccall("csp_systems_SpaceSystem_GetSpacesByAttributes_void_boolRC_boolRC_boolRC_intRC_intRC_BasicSpacesResultCallback", "void", [
22120
22211
  "number",
22121
22212
  "boolean",
22122
22213
  "boolean",
22214
+ "boolean",
22123
22215
  "number",
22124
22216
  "number",
22125
22217
  "number",
@@ -22127,6 +22219,7 @@ export class CSPFoundation {
22127
22219
  ], [
22128
22220
  this.pointer,
22129
22221
  isDiscoverablePointer,
22222
+ isArchivedPointer,
22130
22223
  requiresInvitePointer,
22131
22224
  resultsSkipPointer,
22132
22225
  resultsMaxPointer,
@@ -22136,6 +22229,9 @@ export class CSPFoundation {
22136
22229
  if (isDiscoverablePointer) {
22137
22230
  Module._free(isDiscoverablePointer);
22138
22231
  }
22232
+ if (isArchivedPointer) {
22233
+ Module._free(isArchivedPointer);
22234
+ }
22139
22235
  if (requiresInvitePointer) {
22140
22236
  Module._free(requiresInvitePointer);
22141
22237
  }
@@ -23852,7 +23948,7 @@ export class CSPFoundation {
23852
23948
  * @param refreshToken - Refresh token to be used for refreshing the authentication token
23853
23949
  * @param callback - Callback when asynchronous task finishes
23854
23950
  */
23855
- async refreshSession(userId, refreshToken) {
23951
+ async loginWithRefreshToken(userId, refreshToken) {
23856
23952
  var _resolve;
23857
23953
  var _promise = new Promise((_r) => {
23858
23954
  _resolve = _r;
@@ -23868,7 +23964,7 @@ export class CSPFoundation {
23868
23964
  Module.removeFunction(_callbackPtr);
23869
23965
  };
23870
23966
  _callbackPtr = Module.addFunction(_callback, "vii");
23871
- Module.ccall("csp_systems_UserSystem_RefreshSession_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, refreshToken, _callbackPtr, 0]);
23967
+ Module.ccall("csp_systems_UserSystem_LoginWithRefreshToken_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, refreshToken, _callbackPtr, 0]);
23872
23968
  return _promise;
23873
23969
  }
23874
23970
  /**
@@ -23988,31 +24084,6 @@ export class CSPFoundation {
23988
24084
  }
23989
24085
  return _promise;
23990
24086
  }
23991
- /**
23992
- * @description Log in to Magnopus Connected Services using the given one-time password/key.
23993
- * @param userId - The user id
23994
- * @param key - The one-time key to exchange
23995
- * @param callback - Callback to call when a response is received
23996
- */
23997
- async exchangeKey(userId, key) {
23998
- var _resolve;
23999
- var _promise = new Promise((_r) => {
24000
- _resolve = _r;
24001
- });
24002
- var _callbackPtr;
24003
- var _callback = (_stateObject__, result) => {
24004
- var _resultPtr = getNativePointer(result);
24005
- var _resultInstance = new Systems.LoginStateResult(_resultPtr);
24006
- if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
24007
- return;
24008
- }
24009
- _resolve(_resultInstance);
24010
- Module.removeFunction(_callbackPtr);
24011
- };
24012
- _callbackPtr = Module.addFunction(_callback, "vii");
24013
- Module.ccall("csp_systems_UserSystem_ExchangeKey_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, key, _callbackPtr, 0]);
24014
- return _promise;
24015
- }
24016
24087
  /**
24017
24088
  * @description Logout from Magnopus Connected Services.
24018
24089
  * @param callback - Callback to call when a response is received
@@ -24535,6 +24606,13 @@ export class CSPFoundation {
24535
24606
  Module._free(_ret);
24536
24607
  return _inst;
24537
24608
  }
24609
+ static ofcsp_systems_ProductInfo() {
24610
+ var _ret = Module._malloc(8);
24611
+ Module.ccall("csp_common_Array_Ctor_csp_systems_ProductInfo", "void", ["number"], [_ret]);
24612
+ var _inst = new Array(getNativePointer(_ret), csp_systems_ProductInfoFactory, "csp_systems_ProductInfo");
24613
+ Module._free(_ret);
24614
+ return _inst;
24615
+ }
24538
24616
  static ofcsp_systems_TicketedEvent() {
24539
24617
  var _ret = Module._malloc(8);
24540
24618
  Module.ccall("csp_common_Array_Ctor_csp_systems_TicketedEvent", "void", ["number"], [_ret]);
@@ -24780,6 +24858,13 @@ export class CSPFoundation {
24780
24858
  Module._free(_ret);
24781
24859
  return _inst;
24782
24860
  }
24861
+ static ofcsp_systems_ProductInfo_number(size) {
24862
+ var _ret = Module._malloc(8);
24863
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_ProductInfo", "void", ["number", "number"], [_ret, size]);
24864
+ var _inst = new Array(getNativePointer(_ret), csp_systems_ProductInfoFactory, "csp_systems_ProductInfo");
24865
+ Module._free(_ret);
24866
+ return _inst;
24867
+ }
24783
24868
  static ofcsp_systems_TicketedEvent_number(size) {
24784
24869
  var _ret = Module._malloc(8);
24785
24870
  Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_TicketedEvent", "void", ["number", "number"], [_ret, size]);