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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +28 -8
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +2 -6
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +37 -12
- package/connectedspacesplatform.js +125 -33
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +228 -52
- package/package.json +1 -1
|
Binary file
|
|
@@ -4175,6 +4175,11 @@ export declare namespace Multiplayer {
|
|
|
4175
4175
|
* It is highly advised not to call this function unless you know what you are doing.
|
|
4176
4176
|
*/
|
|
4177
4177
|
retrieveAllEntities(): void;
|
|
4178
|
+
/**
|
|
4179
|
+
* @description Destroys the client's local view of all currently known entities.
|
|
4180
|
+
* /// They still reside on the server, however they will not be accessible in the client application.
|
|
4181
|
+
*/
|
|
4182
|
+
localDestroyAllEntities(): void;
|
|
4178
4183
|
/**
|
|
4179
4184
|
* @description Sets the selected state of an entity, if the operation is acceptable.
|
|
4180
4185
|
* /// Criteria:
|
|
@@ -8467,6 +8472,23 @@ export declare namespace Systems {
|
|
|
8467
8472
|
delete(): void;
|
|
8468
8473
|
}
|
|
8469
8474
|
}
|
|
8475
|
+
export declare namespace Systems {
|
|
8476
|
+
/**
|
|
8477
|
+
@ingroup ECommerce System
|
|
8478
|
+
* @description Data class used to contain information when attempting to get Arrays of Product Info.
|
|
8479
|
+
*/
|
|
8480
|
+
class ProductInfoCollectionResult extends Systems.ResultBase implements INativeResource {
|
|
8481
|
+
/** @internal */
|
|
8482
|
+
constructor(pointer: NativePointer);
|
|
8483
|
+
static fromResultBase(baseInstance: Systems.ResultBase): Systems.ProductInfoCollectionResult;
|
|
8484
|
+
/**
|
|
8485
|
+
* @description Retrieves the Product Info Array being stored.
|
|
8486
|
+
* @return Reference to the productinfos
|
|
8487
|
+
*/
|
|
8488
|
+
getProducts(): Common.Array<Systems.ProductInfo>;
|
|
8489
|
+
delete(): void;
|
|
8490
|
+
}
|
|
8491
|
+
}
|
|
8470
8492
|
export declare namespace Systems {
|
|
8471
8493
|
/**
|
|
8472
8494
|
@ingroup ECommerce System
|
|
@@ -8537,6 +8559,13 @@ export declare namespace Systems {
|
|
|
8537
8559
|
* @param callback - Callback when asynchronous task finishes
|
|
8538
8560
|
*/
|
|
8539
8561
|
getProductInformation(spaceId: string, productId: string): Promise<Systems.ProductInfoResult>;
|
|
8562
|
+
/**
|
|
8563
|
+
* @description Get product information from a shopify store within a space, by providing an array of VariantIds
|
|
8564
|
+
* @param spaceId - Space id of product
|
|
8565
|
+
* @param variantIds - Variant ids to search for
|
|
8566
|
+
* @param callback - Callback containing collection of product info when asynchronous task finishes
|
|
8567
|
+
*/
|
|
8568
|
+
getProductInfoCollectionByVariantIds(spaceId: string, variantIds: Common.Array<string>): Promise<Systems.ProductInfoCollectionResult>;
|
|
8540
8569
|
/**
|
|
8541
8570
|
* @description Get checkout information from a shopify store within a space
|
|
8542
8571
|
* @param spaceId - Space id of the cart
|
|
@@ -9334,9 +9363,9 @@ export declare namespace Systems {
|
|
|
9334
9363
|
*/
|
|
9335
9364
|
enterSpace(spaceId: string): Promise<Systems.NullResult>;
|
|
9336
9365
|
/**
|
|
9337
|
-
* @description
|
|
9366
|
+
* @description Exits the space and deregisters from the space scope.
|
|
9338
9367
|
*/
|
|
9339
|
-
exitSpace():
|
|
9368
|
+
exitSpace(): Promise<Systems.NullResult>;
|
|
9340
9369
|
/**
|
|
9341
9370
|
* @description Get whether user is currently in a space.
|
|
9342
9371
|
* @return Result of whether they are in a Space.
|
|
@@ -9396,13 +9425,14 @@ export declare namespace Systems {
|
|
|
9396
9425
|
* @description Retrieves basic space details for the spaces with the given attributes available to the logged in user.
|
|
9397
9426
|
* Results pagination is supported through the use of ResultsSkip and ResultsMax.
|
|
9398
9427
|
* @param isDiscoverable - `true` or `false` to filter by IsDiscoverable attribute value.
|
|
9399
|
-
* @param
|
|
9428
|
+
* @param isArchived - `true` or `false` to filter by IsArchived attribute value.
|
|
9429
|
+
* @param requiresInvite - `true` or `false` to filter by RequiresInvite attribute value.
|
|
9400
9430
|
* @param resultsSkip - Number of result entries that will be skipped from the result. for no skip pass nullptr.
|
|
9401
9431
|
* @param resultsMax - Maximum number of result entries to be retrieved. for all available result entries pass
|
|
9402
9432
|
* nullptr.
|
|
9403
9433
|
* @param callback - Callback when asynchronous task finishes
|
|
9404
9434
|
*/
|
|
9405
|
-
getSpacesByAttributes(isDiscoverable: boolean | null, requiresInvite: boolean | null, resultsSkip: number | null, resultsMax: number | null): Promise<Systems.BasicSpacesResult>;
|
|
9435
|
+
getSpacesByAttributes(isDiscoverable: boolean | null, isArchived: boolean | null, requiresInvite: boolean | null, resultsSkip: number | null, resultsMax: number | null): Promise<Systems.BasicSpacesResult>;
|
|
9406
9436
|
/**
|
|
9407
9437
|
* @description Retrieves space details corresponding to the provided Space IDs
|
|
9408
9438
|
* @param requestedSpaceIDs - Array of space ids for which the space details will be retrieved
|
|
@@ -9934,7 +9964,7 @@ export declare namespace Systems {
|
|
|
9934
9964
|
* @param refreshToken - Refresh token to be used for refreshing the authentication token
|
|
9935
9965
|
* @param callback - Callback when asynchronous task finishes
|
|
9936
9966
|
*/
|
|
9937
|
-
|
|
9967
|
+
loginWithRefreshToken(userId: string, refreshToken: string): Promise<Systems.LoginStateResult>;
|
|
9938
9968
|
/**
|
|
9939
9969
|
* @description Log in to Magnopus Connected Services as a guest.
|
|
9940
9970
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
@@ -9969,13 +9999,6 @@ export declare namespace Systems {
|
|
|
9969
9999
|
* @param callback - Callback that contains the result of the magnopus connected services authentication operation
|
|
9970
10000
|
*/
|
|
9971
10001
|
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
10002
|
/**
|
|
9980
10003
|
* @description Logout from Magnopus Connected Services.
|
|
9981
10004
|
* @param callback - Callback to call when a response is received
|
|
@@ -10103,6 +10126,7 @@ export declare namespace Common {
|
|
|
10103
10126
|
static ofcsp_systems_ProductVariantInfo(): Array<Systems.ProductVariantInfo>;
|
|
10104
10127
|
static ofcsp_systems_ProductMediaInfo(): Array<Systems.ProductMediaInfo>;
|
|
10105
10128
|
static ofcsp_systems_CartLine(): Array<Systems.CartLine>;
|
|
10129
|
+
static ofcsp_systems_ProductInfo(): Array<Systems.ProductInfo>;
|
|
10106
10130
|
static ofcsp_systems_TicketedEvent(): Array<Systems.TicketedEvent>;
|
|
10107
10131
|
static ofcsp_systems_MaintenanceInfo(): Array<Systems.MaintenanceInfo>;
|
|
10108
10132
|
static ofcsp_systems_FeatureLimitInfo(): Array<Systems.FeatureLimitInfo>;
|
|
@@ -10138,6 +10162,7 @@ export declare namespace Common {
|
|
|
10138
10162
|
static ofcsp_systems_ProductVariantInfo_number(size: number): Array<Systems.ProductVariantInfo>;
|
|
10139
10163
|
static ofcsp_systems_ProductMediaInfo_number(size: number): Array<Systems.ProductMediaInfo>;
|
|
10140
10164
|
static ofcsp_systems_CartLine_number(size: number): Array<Systems.CartLine>;
|
|
10165
|
+
static ofcsp_systems_ProductInfo_number(size: number): Array<Systems.ProductInfo>;
|
|
10141
10166
|
static ofcsp_systems_TicketedEvent_number(size: number): Array<Systems.TicketedEvent>;
|
|
10142
10167
|
static ofcsp_systems_MaintenanceInfo_number(size: number): Array<Systems.MaintenanceInfo>;
|
|
10143
10168
|
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
|
}
|
|
@@ -10239,6 +10249,13 @@ export class CSPFoundation {
|
|
|
10239
10249
|
retrieveAllEntities() {
|
|
10240
10250
|
Module.ccall("csp_multiplayer_SpaceEntitySystem_RetrieveAllEntities_void", "void", ["number"], [this.pointer]);
|
|
10241
10251
|
}
|
|
10252
|
+
/**
|
|
10253
|
+
* @description Destroys the client's local view of all currently known entities.
|
|
10254
|
+
* /// They still reside on the server, however they will not be accessible in the client application.
|
|
10255
|
+
*/
|
|
10256
|
+
localDestroyAllEntities() {
|
|
10257
|
+
Module.ccall("csp_multiplayer_SpaceEntitySystem_LocalDestroyAllEntities_void", "void", ["number"], [this.pointer]);
|
|
10258
|
+
}
|
|
10242
10259
|
/**
|
|
10243
10260
|
* @description Sets the selected state of an entity, if the operation is acceptable.
|
|
10244
10261
|
* /// Criteria:
|
|
@@ -19550,6 +19567,40 @@ export class CSPFoundation {
|
|
|
19550
19567
|
}
|
|
19551
19568
|
Systems.ProductInfoResult = ProductInfoResult;
|
|
19552
19569
|
})(Systems || (Systems = {}));
|
|
19570
|
+
(function (Systems) {
|
|
19571
|
+
/**
|
|
19572
|
+
@ingroup ECommerce System
|
|
19573
|
+
* @description Data class used to contain information when attempting to get Arrays of Product Info.
|
|
19574
|
+
*/
|
|
19575
|
+
class ProductInfoCollectionResult extends Systems.ResultBase {
|
|
19576
|
+
/** @internal */
|
|
19577
|
+
constructor(pointer) {
|
|
19578
|
+
super(pointer);
|
|
19579
|
+
}
|
|
19580
|
+
static fromResultBase(baseInstance) {
|
|
19581
|
+
const nativeClassWrapper = baseInstance;
|
|
19582
|
+
return new Systems.ProductInfoCollectionResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
19583
|
+
}
|
|
19584
|
+
/**
|
|
19585
|
+
* @description Retrieves the Product Info Array being stored.
|
|
19586
|
+
* @return Reference to the productinfos
|
|
19587
|
+
*/
|
|
19588
|
+
getProducts() {
|
|
19589
|
+
var _ret = Module._malloc(8);
|
|
19590
|
+
Module.ccall("csp_systems_ProductInfoCollectionResult_GetProductsC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
19591
|
+
var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_ProductInfoFactory, "csp_systems_ProductInfo");
|
|
19592
|
+
Module._free(_ret);
|
|
19593
|
+
return _nPtr;
|
|
19594
|
+
}
|
|
19595
|
+
delete() {
|
|
19596
|
+
if (this.ownsPointer && !this.disposed) {
|
|
19597
|
+
Module.ccall("csp_systems_ProductInfoCollectionResult_Dtor", "void", ["number"], [this.pointer]);
|
|
19598
|
+
this.disposed = true;
|
|
19599
|
+
}
|
|
19600
|
+
}
|
|
19601
|
+
}
|
|
19602
|
+
Systems.ProductInfoCollectionResult = ProductInfoCollectionResult;
|
|
19603
|
+
})(Systems || (Systems = {}));
|
|
19553
19604
|
(function (Systems) {
|
|
19554
19605
|
/**
|
|
19555
19606
|
@ingroup ECommerce System
|
|
@@ -19710,6 +19761,31 @@ export class CSPFoundation {
|
|
|
19710
19761
|
Module.ccall("csp_systems_ECommerceSystem_GetProductInformation_void_StringRC_StringRC_ProductInfoResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, spaceId, productId, _callbackPtr, 0]);
|
|
19711
19762
|
return _promise;
|
|
19712
19763
|
}
|
|
19764
|
+
/**
|
|
19765
|
+
* @description Get product information from a shopify store within a space, by providing an array of VariantIds
|
|
19766
|
+
* @param spaceId - Space id of product
|
|
19767
|
+
* @param variantIds - Variant ids to search for
|
|
19768
|
+
* @param callback - Callback containing collection of product info when asynchronous task finishes
|
|
19769
|
+
*/
|
|
19770
|
+
async getProductInfoCollectionByVariantIds(spaceId, variantIds) {
|
|
19771
|
+
var _resolve;
|
|
19772
|
+
var _promise = new Promise((_r) => {
|
|
19773
|
+
_resolve = _r;
|
|
19774
|
+
});
|
|
19775
|
+
var _callbackPtr;
|
|
19776
|
+
var _callback = (_stateObject__, result) => {
|
|
19777
|
+
var _resultPtr = getNativePointer(result);
|
|
19778
|
+
var _resultInstance = new Systems.ProductInfoCollectionResult(_resultPtr);
|
|
19779
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
19780
|
+
return;
|
|
19781
|
+
}
|
|
19782
|
+
_resolve(_resultInstance);
|
|
19783
|
+
Module.removeFunction(_callbackPtr);
|
|
19784
|
+
};
|
|
19785
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
19786
|
+
Module.ccall("csp_systems_ECommerceSystem_GetProductInfoCollectionByVariantIds_void_StringRC_ArrayRC_ProductInfoCollectionResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, spaceId, variantIds.pointer, _callbackPtr, 0]);
|
|
19787
|
+
return _promise;
|
|
19788
|
+
}
|
|
19713
19789
|
/**
|
|
19714
19790
|
* @description Get checkout information from a shopify store within a space
|
|
19715
19791
|
* @param spaceId - Space id of the cart
|
|
@@ -21855,10 +21931,26 @@ export class CSPFoundation {
|
|
|
21855
21931
|
return _promise;
|
|
21856
21932
|
}
|
|
21857
21933
|
/**
|
|
21858
|
-
* @description
|
|
21934
|
+
* @description Exits the space and deregisters from the space scope.
|
|
21859
21935
|
*/
|
|
21860
|
-
exitSpace() {
|
|
21861
|
-
|
|
21936
|
+
async exitSpace() {
|
|
21937
|
+
var _resolve;
|
|
21938
|
+
var _promise = new Promise((_r) => {
|
|
21939
|
+
_resolve = _r;
|
|
21940
|
+
});
|
|
21941
|
+
var _callbackPtr;
|
|
21942
|
+
var _callback = (_stateObject__, result) => {
|
|
21943
|
+
var _resultPtr = getNativePointer(result);
|
|
21944
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
21945
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21946
|
+
return;
|
|
21947
|
+
}
|
|
21948
|
+
_resolve(_resultInstance);
|
|
21949
|
+
Module.removeFunction(_callbackPtr);
|
|
21950
|
+
};
|
|
21951
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21952
|
+
Module.ccall("csp_systems_SpaceSystem_ExitSpace_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
21953
|
+
return _promise;
|
|
21862
21954
|
}
|
|
21863
21955
|
/**
|
|
21864
21956
|
* @description Get whether user is currently in a space.
|
|
@@ -22074,13 +22166,14 @@ export class CSPFoundation {
|
|
|
22074
22166
|
* @description Retrieves basic space details for the spaces with the given attributes available to the logged in user.
|
|
22075
22167
|
* Results pagination is supported through the use of ResultsSkip and ResultsMax.
|
|
22076
22168
|
* @param isDiscoverable - `true` or `false` to filter by IsDiscoverable attribute value.
|
|
22077
|
-
* @param
|
|
22169
|
+
* @param isArchived - `true` or `false` to filter by IsArchived attribute value.
|
|
22170
|
+
* @param requiresInvite - `true` or `false` to filter by RequiresInvite attribute value.
|
|
22078
22171
|
* @param resultsSkip - Number of result entries that will be skipped from the result. for no skip pass nullptr.
|
|
22079
22172
|
* @param resultsMax - Maximum number of result entries to be retrieved. for all available result entries pass
|
|
22080
22173
|
* nullptr.
|
|
22081
22174
|
* @param callback - Callback when asynchronous task finishes
|
|
22082
22175
|
*/
|
|
22083
|
-
async getSpacesByAttributes(isDiscoverable, requiresInvite, resultsSkip, resultsMax) {
|
|
22176
|
+
async getSpacesByAttributes(isDiscoverable, isArchived, requiresInvite, resultsSkip, resultsMax) {
|
|
22084
22177
|
var _resolve;
|
|
22085
22178
|
var _promise = new Promise((_r) => {
|
|
22086
22179
|
_resolve = _r;
|
|
@@ -22101,6 +22194,11 @@ export class CSPFoundation {
|
|
|
22101
22194
|
isDiscoverablePointer = Module._malloc(4);
|
|
22102
22195
|
Module.setValue(isDiscoverablePointer, isDiscoverable ? 1 : 0, "i32");
|
|
22103
22196
|
}
|
|
22197
|
+
var isArchivedPointer = 0;
|
|
22198
|
+
if (isArchived != null) {
|
|
22199
|
+
isArchivedPointer = Module._malloc(4);
|
|
22200
|
+
Module.setValue(isArchivedPointer, isArchived ? 1 : 0, "i32");
|
|
22201
|
+
}
|
|
22104
22202
|
var requiresInvitePointer = 0;
|
|
22105
22203
|
if (requiresInvite != null) {
|
|
22106
22204
|
requiresInvitePointer = Module._malloc(4);
|
|
@@ -22116,10 +22214,11 @@ export class CSPFoundation {
|
|
|
22116
22214
|
resultsMaxPointer = Module._malloc(4);
|
|
22117
22215
|
Module.setValue(resultsMaxPointer, resultsMax, "i32");
|
|
22118
22216
|
}
|
|
22119
|
-
Module.ccall("
|
|
22217
|
+
Module.ccall("csp_systems_SpaceSystem_GetSpacesByAttributes_void_boolRC_boolRC_boolRC_intRC_intRC_BasicSpacesResultCallback", "void", [
|
|
22120
22218
|
"number",
|
|
22121
22219
|
"boolean",
|
|
22122
22220
|
"boolean",
|
|
22221
|
+
"boolean",
|
|
22123
22222
|
"number",
|
|
22124
22223
|
"number",
|
|
22125
22224
|
"number",
|
|
@@ -22127,6 +22226,7 @@ export class CSPFoundation {
|
|
|
22127
22226
|
], [
|
|
22128
22227
|
this.pointer,
|
|
22129
22228
|
isDiscoverablePointer,
|
|
22229
|
+
isArchivedPointer,
|
|
22130
22230
|
requiresInvitePointer,
|
|
22131
22231
|
resultsSkipPointer,
|
|
22132
22232
|
resultsMaxPointer,
|
|
@@ -22136,6 +22236,9 @@ export class CSPFoundation {
|
|
|
22136
22236
|
if (isDiscoverablePointer) {
|
|
22137
22237
|
Module._free(isDiscoverablePointer);
|
|
22138
22238
|
}
|
|
22239
|
+
if (isArchivedPointer) {
|
|
22240
|
+
Module._free(isArchivedPointer);
|
|
22241
|
+
}
|
|
22139
22242
|
if (requiresInvitePointer) {
|
|
22140
22243
|
Module._free(requiresInvitePointer);
|
|
22141
22244
|
}
|
|
@@ -23852,7 +23955,7 @@ export class CSPFoundation {
|
|
|
23852
23955
|
* @param refreshToken - Refresh token to be used for refreshing the authentication token
|
|
23853
23956
|
* @param callback - Callback when asynchronous task finishes
|
|
23854
23957
|
*/
|
|
23855
|
-
async
|
|
23958
|
+
async loginWithRefreshToken(userId, refreshToken) {
|
|
23856
23959
|
var _resolve;
|
|
23857
23960
|
var _promise = new Promise((_r) => {
|
|
23858
23961
|
_resolve = _r;
|
|
@@ -23868,7 +23971,7 @@ export class CSPFoundation {
|
|
|
23868
23971
|
Module.removeFunction(_callbackPtr);
|
|
23869
23972
|
};
|
|
23870
23973
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
23871
|
-
Module.ccall("
|
|
23974
|
+
Module.ccall("csp_systems_UserSystem_LoginWithRefreshToken_void_StringRC_StringRC_LoginStateResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, userId, refreshToken, _callbackPtr, 0]);
|
|
23872
23975
|
return _promise;
|
|
23873
23976
|
}
|
|
23874
23977
|
/**
|
|
@@ -23988,31 +24091,6 @@ export class CSPFoundation {
|
|
|
23988
24091
|
}
|
|
23989
24092
|
return _promise;
|
|
23990
24093
|
}
|
|
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
24094
|
/**
|
|
24017
24095
|
* @description Logout from Magnopus Connected Services.
|
|
24018
24096
|
* @param callback - Callback to call when a response is received
|
|
@@ -24535,6 +24613,13 @@ export class CSPFoundation {
|
|
|
24535
24613
|
Module._free(_ret);
|
|
24536
24614
|
return _inst;
|
|
24537
24615
|
}
|
|
24616
|
+
static ofcsp_systems_ProductInfo() {
|
|
24617
|
+
var _ret = Module._malloc(8);
|
|
24618
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_ProductInfo", "void", ["number"], [_ret]);
|
|
24619
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_ProductInfoFactory, "csp_systems_ProductInfo");
|
|
24620
|
+
Module._free(_ret);
|
|
24621
|
+
return _inst;
|
|
24622
|
+
}
|
|
24538
24623
|
static ofcsp_systems_TicketedEvent() {
|
|
24539
24624
|
var _ret = Module._malloc(8);
|
|
24540
24625
|
Module.ccall("csp_common_Array_Ctor_csp_systems_TicketedEvent", "void", ["number"], [_ret]);
|
|
@@ -24780,6 +24865,13 @@ export class CSPFoundation {
|
|
|
24780
24865
|
Module._free(_ret);
|
|
24781
24866
|
return _inst;
|
|
24782
24867
|
}
|
|
24868
|
+
static ofcsp_systems_ProductInfo_number(size) {
|
|
24869
|
+
var _ret = Module._malloc(8);
|
|
24870
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_ProductInfo", "void", ["number", "number"], [_ret, size]);
|
|
24871
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_ProductInfoFactory, "csp_systems_ProductInfo");
|
|
24872
|
+
Module._free(_ret);
|
|
24873
|
+
return _inst;
|
|
24874
|
+
}
|
|
24783
24875
|
static ofcsp_systems_TicketedEvent_number(size) {
|
|
24784
24876
|
var _ret = Module._malloc(8);
|
|
24785
24877
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_TicketedEvent", "void", ["number", "number"], [_ret, size]);
|