connected-spaces-platform.web 4.18.0 → 4.19.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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +52 -98
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +50 -50
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +47 -106
- package/connectedspacesplatform.js +130 -298
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +362 -683
- package/package.json +1 -1
|
@@ -2092,53 +2092,13 @@ function csp_systems_LoginStateResultFactory(
|
|
|
2092
2092
|
ProxyClassFactories["csp_systems_LoginStateResult"] =
|
|
2093
2093
|
csp_systems_LoginStateResultFactory;
|
|
2094
2094
|
|
|
2095
|
-
function
|
|
2095
|
+
function csp_systems_LoginTokenInfoResultFactory(
|
|
2096
2096
|
nativePointer: NativePointer,
|
|
2097
2097
|
): NativeClassWrapper {
|
|
2098
|
-
return new Systems.
|
|
2098
|
+
return new Systems.LoginTokenInfoResult(nativePointer);
|
|
2099
2099
|
}
|
|
2100
|
-
ProxyClassFactories["
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
function csp_systems_LoginTokenReceivedFactory(
|
|
2104
|
-
nativePointer: NativePointer,
|
|
2105
|
-
): NativeClassWrapper {
|
|
2106
|
-
return new Systems.LoginTokenReceived(nativePointer);
|
|
2107
|
-
}
|
|
2108
|
-
ProxyClassFactories["csp_systems_LoginTokenReceived"] =
|
|
2109
|
-
csp_systems_LoginTokenReceivedFactory;
|
|
2110
|
-
|
|
2111
|
-
function csp_systems_PingResponseReceivedFactory(
|
|
2112
|
-
nativePointer: NativePointer,
|
|
2113
|
-
): NativeClassWrapper {
|
|
2114
|
-
return new Systems.PingResponseReceived(nativePointer);
|
|
2115
|
-
}
|
|
2116
|
-
ProxyClassFactories["csp_systems_PingResponseReceived"] =
|
|
2117
|
-
csp_systems_PingResponseReceivedFactory;
|
|
2118
|
-
|
|
2119
|
-
function csp_systems_AgoraUserTokenResultFactory(
|
|
2120
|
-
nativePointer: NativePointer,
|
|
2121
|
-
): NativeClassWrapper {
|
|
2122
|
-
return new Systems.AgoraUserTokenResult(nativePointer);
|
|
2123
|
-
}
|
|
2124
|
-
ProxyClassFactories["csp_systems_AgoraUserTokenResult"] =
|
|
2125
|
-
csp_systems_AgoraUserTokenResultFactory;
|
|
2126
|
-
|
|
2127
|
-
function csp_systems_CheckoutSessionUrlResultFactory(
|
|
2128
|
-
nativePointer: NativePointer,
|
|
2129
|
-
): NativeClassWrapper {
|
|
2130
|
-
return new Systems.CheckoutSessionUrlResult(nativePointer);
|
|
2131
|
-
}
|
|
2132
|
-
ProxyClassFactories["csp_systems_CheckoutSessionUrlResult"] =
|
|
2133
|
-
csp_systems_CheckoutSessionUrlResultFactory;
|
|
2134
|
-
|
|
2135
|
-
function csp_systems_CustomerPortalUrlResultFactory(
|
|
2136
|
-
nativePointer: NativePointer,
|
|
2137
|
-
): NativeClassWrapper {
|
|
2138
|
-
return new Systems.CustomerPortalUrlResult(nativePointer);
|
|
2139
|
-
}
|
|
2140
|
-
ProxyClassFactories["csp_systems_CustomerPortalUrlResult"] =
|
|
2141
|
-
csp_systems_CustomerPortalUrlResultFactory;
|
|
2100
|
+
ProxyClassFactories["csp_systems_LoginTokenInfoResult"] =
|
|
2101
|
+
csp_systems_LoginTokenInfoResultFactory;
|
|
2142
2102
|
|
|
2143
2103
|
function csp_systems_ProfileFactory(
|
|
2144
2104
|
nativePointer: NativePointer,
|
|
@@ -2269,6 +2229,18 @@ function csp_common_Array_csp_systems_AssetCollectionFactory(
|
|
|
2269
2229
|
ProxyClassFactories["csp_common_Array_csp_systems_AssetCollection"] =
|
|
2270
2230
|
csp_common_Array_csp_systems_AssetCollectionFactory;
|
|
2271
2231
|
|
|
2232
|
+
function csp_common_Array_csp_systems_EAssetCollectionTypeFactory(
|
|
2233
|
+
nativePointer: NativePointer,
|
|
2234
|
+
): NativeClassWrapper {
|
|
2235
|
+
return new Common.Array<Systems.EAssetCollectionType>(
|
|
2236
|
+
nativePointer,
|
|
2237
|
+
csp_systems_EAssetCollectionTypeFactory,
|
|
2238
|
+
"csp_systems_EAssetCollectionType",
|
|
2239
|
+
);
|
|
2240
|
+
}
|
|
2241
|
+
ProxyClassFactories["csp_common_Array_csp_systems_EAssetCollectionType"] =
|
|
2242
|
+
csp_common_Array_csp_systems_EAssetCollectionTypeFactory;
|
|
2243
|
+
|
|
2272
2244
|
function csp_common_Array_csp_systems_EAssetTypeFactory(
|
|
2273
2245
|
nativePointer: NativePointer,
|
|
2274
2246
|
): NativeClassWrapper {
|
|
@@ -23193,6 +23165,23 @@ export namespace Multiplayer {
|
|
|
23193
23165
|
|
|
23194
23166
|
return _result;
|
|
23195
23167
|
}
|
|
23168
|
+
|
|
23169
|
+
/**
|
|
23170
|
+
* @description Checks if the entity can be modified.
|
|
23171
|
+
* Specifically whether the local client already owns the entity or can take ownership of the entity.
|
|
23172
|
+
* @return True if the entity can be modified, False if not.
|
|
23173
|
+
*/
|
|
23174
|
+
|
|
23175
|
+
isModifiable(): boolean {
|
|
23176
|
+
let _result = Module.ccall(
|
|
23177
|
+
"csp_multiplayer_SpaceEntity_IsModifiable_bool",
|
|
23178
|
+
"boolean",
|
|
23179
|
+
["number"],
|
|
23180
|
+
[this.pointer],
|
|
23181
|
+
);
|
|
23182
|
+
|
|
23183
|
+
return _result;
|
|
23184
|
+
}
|
|
23196
23185
|
}
|
|
23197
23186
|
}
|
|
23198
23187
|
|
|
@@ -25577,19 +25566,6 @@ export namespace Systems {
|
|
|
25577
25566
|
super(pointer);
|
|
25578
25567
|
}
|
|
25579
25568
|
|
|
25580
|
-
static create(): AnalyticsSystem {
|
|
25581
|
-
var _ptr = Module._malloc(8);
|
|
25582
|
-
Module.ccall(
|
|
25583
|
-
"csp_systems_AnalyticsSystem_Ctor",
|
|
25584
|
-
"void",
|
|
25585
|
-
["number"],
|
|
25586
|
-
[_ptr],
|
|
25587
|
-
);
|
|
25588
|
-
var _nPtr = getNativePointer(_ptr);
|
|
25589
|
-
|
|
25590
|
-
return new AnalyticsSystem(_nPtr);
|
|
25591
|
-
}
|
|
25592
|
-
|
|
25593
25569
|
/**
|
|
25594
25570
|
* @description Send an event
|
|
25595
25571
|
* @param event - AnalyticsEvent
|
|
@@ -26620,25 +26596,23 @@ export namespace Systems {
|
|
|
26620
26596
|
);
|
|
26621
26597
|
}
|
|
26622
26598
|
|
|
26623
|
-
get
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
"
|
|
26627
|
-
"
|
|
26628
|
-
[
|
|
26629
|
-
[_ptr, this.pointer],
|
|
26599
|
+
get spaceId(): string {
|
|
26600
|
+
let _result = Module.ccall(
|
|
26601
|
+
"csp_systems_AssetCollection__Get_SpaceId",
|
|
26602
|
+
"string",
|
|
26603
|
+
["number"],
|
|
26604
|
+
[this.pointer],
|
|
26630
26605
|
);
|
|
26631
26606
|
|
|
26632
|
-
|
|
26633
|
-
return new Common.Array<string>(_nPtr, StringFactory, "String");
|
|
26607
|
+
return _result;
|
|
26634
26608
|
}
|
|
26635
26609
|
|
|
26636
|
-
set
|
|
26610
|
+
set spaceId(value: string) {
|
|
26637
26611
|
Module.ccall(
|
|
26638
|
-
"
|
|
26612
|
+
"csp_systems_AssetCollection__Set_SpaceId",
|
|
26639
26613
|
"void",
|
|
26640
|
-
["number", "
|
|
26641
|
-
[this.pointer, value
|
|
26614
|
+
["number", "string"],
|
|
26615
|
+
[this.pointer, value],
|
|
26642
26616
|
);
|
|
26643
26617
|
}
|
|
26644
26618
|
|
|
@@ -31530,10 +31504,10 @@ export namespace Systems {
|
|
|
31530
31504
|
);
|
|
31531
31505
|
}
|
|
31532
31506
|
|
|
31533
|
-
get
|
|
31507
|
+
get channelName(): string {
|
|
31534
31508
|
let _result = Module.ccall(
|
|
31535
|
-
"
|
|
31536
|
-
"
|
|
31509
|
+
"csp_systems_AgoraUserTokenParams__Get_ChannelName",
|
|
31510
|
+
"string",
|
|
31537
31511
|
["number"],
|
|
31538
31512
|
[this.pointer],
|
|
31539
31513
|
);
|
|
@@ -31541,19 +31515,19 @@ export namespace Systems {
|
|
|
31541
31515
|
return _result;
|
|
31542
31516
|
}
|
|
31543
31517
|
|
|
31544
|
-
set
|
|
31518
|
+
set channelName(value: string) {
|
|
31545
31519
|
Module.ccall(
|
|
31546
|
-
"
|
|
31520
|
+
"csp_systems_AgoraUserTokenParams__Set_ChannelName",
|
|
31547
31521
|
"void",
|
|
31548
|
-
["number", "
|
|
31522
|
+
["number", "string"],
|
|
31549
31523
|
[this.pointer, value],
|
|
31550
31524
|
);
|
|
31551
31525
|
}
|
|
31552
31526
|
|
|
31553
|
-
get
|
|
31527
|
+
get lifespan(): number {
|
|
31554
31528
|
let _result = Module.ccall(
|
|
31555
|
-
"
|
|
31556
|
-
"
|
|
31529
|
+
"csp_systems_AgoraUserTokenParams__Get_Lifespan",
|
|
31530
|
+
"number",
|
|
31557
31531
|
["number"],
|
|
31558
31532
|
[this.pointer],
|
|
31559
31533
|
);
|
|
@@ -31561,11 +31535,11 @@ export namespace Systems {
|
|
|
31561
31535
|
return _result;
|
|
31562
31536
|
}
|
|
31563
31537
|
|
|
31564
|
-
set
|
|
31538
|
+
set lifespan(value: number) {
|
|
31565
31539
|
Module.ccall(
|
|
31566
|
-
"
|
|
31540
|
+
"csp_systems_AgoraUserTokenParams__Set_Lifespan",
|
|
31567
31541
|
"void",
|
|
31568
|
-
["number", "
|
|
31542
|
+
["number", "number"],
|
|
31569
31543
|
[this.pointer, value],
|
|
31570
31544
|
);
|
|
31571
31545
|
}
|
|
@@ -41016,24 +40990,30 @@ export namespace Systems {
|
|
|
41016
40990
|
}
|
|
41017
40991
|
|
|
41018
40992
|
/**
|
|
41019
|
-
* @description
|
|
41020
|
-
* @param
|
|
40993
|
+
* @description Copies an array of asset collections to another space. Note that all source asset collections must belong to the same space.
|
|
40994
|
+
* @param sourceAssetCollections - The array of asset collections to copy. They must all belong to the same
|
|
40995
|
+
* space.
|
|
40996
|
+
* @param destSpaceId - The unique identifier of the space to copy these asset collections to.
|
|
40997
|
+
* @param copyAsync - Whether to instruct the services to perform the copy of the asset collections
|
|
40998
|
+
* asynchronously.
|
|
41021
40999
|
* @param callback - Callback when asynchronous task finishes
|
|
41022
41000
|
*/
|
|
41023
41001
|
|
|
41024
|
-
async
|
|
41025
|
-
|
|
41026
|
-
|
|
41002
|
+
async copyAssetCollectionsToSpace(
|
|
41003
|
+
sourceAssetCollections: Common.Array<Systems.AssetCollection>,
|
|
41004
|
+
destSpaceId: string,
|
|
41005
|
+
copyAsync: boolean,
|
|
41006
|
+
): Promise<Systems.AssetCollectionsResult> {
|
|
41027
41007
|
var _resolve;
|
|
41028
41008
|
|
|
41029
|
-
var _promise = new Promise<Systems.
|
|
41009
|
+
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
41030
41010
|
_resolve = _r;
|
|
41031
41011
|
});
|
|
41032
41012
|
|
|
41033
41013
|
var _callbackPtr: number;
|
|
41034
41014
|
var _callback = (_stateObject__: number, result) => {
|
|
41035
41015
|
var _resultPtr = getNativePointer(result);
|
|
41036
|
-
var _resultInstance = new Systems.
|
|
41016
|
+
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
41037
41017
|
|
|
41038
41018
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
41039
41019
|
return;
|
|
@@ -41047,23 +41027,30 @@ export namespace Systems {
|
|
|
41047
41027
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41048
41028
|
|
|
41049
41029
|
Module.ccall(
|
|
41050
|
-
"
|
|
41030
|
+
"csp_systems_AssetSystem_CopyAssetCollectionsToSpace_void_ArrayR_StringRC_bool_AssetCollectionsResultCallback",
|
|
41051
41031
|
"void",
|
|
41052
|
-
["number", "string", "number", "number"],
|
|
41053
|
-
[
|
|
41032
|
+
["number", "number", "string", "boolean", "number", "number"],
|
|
41033
|
+
[
|
|
41034
|
+
this.pointer,
|
|
41035
|
+
sourceAssetCollections.pointer,
|
|
41036
|
+
destSpaceId,
|
|
41037
|
+
copyAsync,
|
|
41038
|
+
_callbackPtr,
|
|
41039
|
+
0,
|
|
41040
|
+
],
|
|
41054
41041
|
);
|
|
41055
41042
|
|
|
41056
41043
|
return _promise;
|
|
41057
41044
|
}
|
|
41058
41045
|
|
|
41059
41046
|
/**
|
|
41060
|
-
* @description Finds an asset collection by its
|
|
41061
|
-
* @param
|
|
41047
|
+
* @description Finds an asset collection by its Id.
|
|
41048
|
+
* @param assetCollectionId - Asset collection to delete
|
|
41062
41049
|
* @param callback - Callback when asynchronous task finishes
|
|
41063
41050
|
*/
|
|
41064
41051
|
|
|
41065
|
-
async
|
|
41066
|
-
|
|
41052
|
+
async getAssetCollectionById(
|
|
41053
|
+
assetCollectionId: string,
|
|
41067
41054
|
): Promise<Systems.AssetCollectionResult> {
|
|
41068
41055
|
var _resolve;
|
|
41069
41056
|
|
|
@@ -41088,173 +41075,167 @@ export namespace Systems {
|
|
|
41088
41075
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41089
41076
|
|
|
41090
41077
|
Module.ccall(
|
|
41091
|
-
"
|
|
41078
|
+
"csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback",
|
|
41092
41079
|
"void",
|
|
41093
41080
|
["number", "string", "number", "number"],
|
|
41094
|
-
[this.pointer,
|
|
41095
|
-
);
|
|
41096
|
-
|
|
41097
|
-
return _promise;
|
|
41098
|
-
}
|
|
41099
|
-
|
|
41100
|
-
/**
|
|
41101
|
-
* @description Finds a collection of asset collections by their Ids.
|
|
41102
|
-
* @param assetCollectionIds - An array of ids to search for
|
|
41103
|
-
* @param callback - Callback when asynchronous task finishes
|
|
41104
|
-
*/
|
|
41105
|
-
|
|
41106
|
-
async getAssetCollectionsByIds(
|
|
41107
|
-
assetCollectionIds: Common.Array<string>,
|
|
41108
|
-
): Promise<Systems.AssetCollectionsResult> {
|
|
41109
|
-
var _resolve;
|
|
41110
|
-
|
|
41111
|
-
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
41112
|
-
_resolve = _r;
|
|
41113
|
-
});
|
|
41114
|
-
|
|
41115
|
-
var _callbackPtr: number;
|
|
41116
|
-
var _callback = (_stateObject__: number, result) => {
|
|
41117
|
-
var _resultPtr = getNativePointer(result);
|
|
41118
|
-
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
41119
|
-
|
|
41120
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
41121
|
-
return;
|
|
41122
|
-
}
|
|
41123
|
-
|
|
41124
|
-
_resolve(_resultInstance);
|
|
41125
|
-
|
|
41126
|
-
Module.removeFunction(_callbackPtr);
|
|
41127
|
-
};
|
|
41128
|
-
|
|
41129
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41130
|
-
|
|
41131
|
-
Module.ccall(
|
|
41132
|
-
"csp_systems_AssetSystem_GetAssetCollectionsByIds_void_ArrayRC_AssetCollectionsResultCallback",
|
|
41133
|
-
"void",
|
|
41134
|
-
["number", "number", "number", "number"],
|
|
41135
|
-
[this.pointer, assetCollectionIds.pointer, _callbackPtr, 0],
|
|
41136
|
-
);
|
|
41137
|
-
|
|
41138
|
-
return _promise;
|
|
41139
|
-
}
|
|
41140
|
-
|
|
41141
|
-
/**
|
|
41142
|
-
* @description Retrieves asset collections based on the specified search criteria.
|
|
41143
|
-
* Results pagination is supported through the use of ResultsSkipNumber and ResultsMaxNumber.
|
|
41144
|
-
* @param space - Optional space to get asset collections associated with it
|
|
41145
|
-
* @param assetCollectionParentId - Optional asset collection parent id to get asset collections associated with it
|
|
41146
|
-
* @param assetCollectionType - Type of the asset collection
|
|
41147
|
-
* @param assetCollectionTags - Optional array of strings representing asset collection tags
|
|
41148
|
-
* @param assetCollectionNames - Optional array of strings representing asset
|
|
41149
|
-
* collection names
|
|
41150
|
-
* @param resultsSkipNumber - Optional param representing the number of result entries that will be skipped from the result. for no skip pass
|
|
41151
|
-
* nullptr.
|
|
41152
|
-
* @param resultsMaxNumber - Optional param representing the maximum number of result entries to be retrieved. for all available result
|
|
41153
|
-
* entries pass nullptr.
|
|
41154
|
-
* @param callback - Callback when asynchronous task finishes
|
|
41155
|
-
*/
|
|
41156
|
-
|
|
41157
|
-
async getAssetCollectionsByCriteria(
|
|
41158
|
-
spaceId: string | null,
|
|
41159
|
-
assetCollectionParentId: string | null,
|
|
41160
|
-
assetCollectionType: Systems.EAssetCollectionType | null,
|
|
41161
|
-
assetCollectionTags: Common.Array<string> | null,
|
|
41162
|
-
assetCollectionNames: Common.Array<string> | null,
|
|
41163
|
-
resultsSkipNumber: number | null,
|
|
41164
|
-
resultsMaxNumber: number | null,
|
|
41165
|
-
): Promise<Systems.AssetCollectionsResult> {
|
|
41166
|
-
var _resolve;
|
|
41167
|
-
|
|
41168
|
-
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
41169
|
-
_resolve = _r;
|
|
41170
|
-
});
|
|
41171
|
-
|
|
41172
|
-
var _callbackPtr: number;
|
|
41173
|
-
var _callback = (_stateObject__: number, result) => {
|
|
41174
|
-
var _resultPtr = getNativePointer(result);
|
|
41175
|
-
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
41176
|
-
|
|
41177
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
41178
|
-
return;
|
|
41179
|
-
}
|
|
41180
|
-
|
|
41181
|
-
_resolve(_resultInstance);
|
|
41182
|
-
|
|
41183
|
-
Module.removeFunction(_callbackPtr);
|
|
41184
|
-
};
|
|
41185
|
-
|
|
41186
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41187
|
-
|
|
41188
|
-
var assetCollectionTypePointer = 0;
|
|
41189
|
-
if (assetCollectionType != null) {
|
|
41190
|
-
assetCollectionTypePointer = Module._malloc(4);
|
|
41191
|
-
Module.setValue(assetCollectionTypePointer, assetCollectionType, "i32");
|
|
41192
|
-
}
|
|
41193
|
-
|
|
41194
|
-
var resultsSkipNumberPointer = 0;
|
|
41195
|
-
if (resultsSkipNumber != null) {
|
|
41196
|
-
resultsSkipNumberPointer = Module._malloc(4);
|
|
41197
|
-
Module.setValue(resultsSkipNumberPointer, resultsSkipNumber, "i32");
|
|
41198
|
-
}
|
|
41199
|
-
|
|
41200
|
-
var resultsMaxNumberPointer = 0;
|
|
41201
|
-
if (resultsMaxNumber != null) {
|
|
41202
|
-
resultsMaxNumberPointer = Module._malloc(4);
|
|
41203
|
-
Module.setValue(resultsMaxNumberPointer, resultsMaxNumber, "i32");
|
|
41204
|
-
}
|
|
41205
|
-
|
|
41206
|
-
Module.ccall(
|
|
41207
|
-
"csp_systems_AssetSystem_GetAssetCollectionsByCriteria_void_StringRC_StringRC_EAssetCollectionTypeRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback",
|
|
41208
|
-
"void",
|
|
41209
|
-
[
|
|
41210
|
-
"number",
|
|
41211
|
-
"string",
|
|
41212
|
-
"string",
|
|
41213
|
-
"number",
|
|
41214
|
-
"number",
|
|
41215
|
-
"number",
|
|
41216
|
-
"number",
|
|
41217
|
-
"number",
|
|
41218
|
-
"number",
|
|
41219
|
-
"number",
|
|
41220
|
-
],
|
|
41221
|
-
[
|
|
41222
|
-
this.pointer,
|
|
41223
|
-
spaceId,
|
|
41224
|
-
assetCollectionParentId,
|
|
41225
|
-
assetCollectionTypePointer,
|
|
41226
|
-
assetCollectionTags != null ? assetCollectionTags.pointer : 0,
|
|
41227
|
-
assetCollectionNames != null ? assetCollectionNames.pointer : 0,
|
|
41228
|
-
resultsSkipNumberPointer,
|
|
41229
|
-
resultsMaxNumberPointer,
|
|
41230
|
-
_callbackPtr,
|
|
41231
|
-
0,
|
|
41232
|
-
],
|
|
41081
|
+
[this.pointer, assetCollectionId, _callbackPtr, 0],
|
|
41233
41082
|
);
|
|
41234
41083
|
|
|
41235
|
-
if (assetCollectionTypePointer) {
|
|
41236
|
-
Module._free(assetCollectionTypePointer);
|
|
41237
|
-
}
|
|
41238
|
-
if (resultsSkipNumberPointer) {
|
|
41239
|
-
Module._free(resultsSkipNumberPointer);
|
|
41240
|
-
}
|
|
41241
|
-
if (resultsMaxNumberPointer) {
|
|
41242
|
-
Module._free(resultsMaxNumberPointer);
|
|
41243
|
-
}
|
|
41244
|
-
|
|
41245
41084
|
return _promise;
|
|
41246
41085
|
}
|
|
41247
41086
|
|
|
41248
41087
|
/**
|
|
41249
|
-
* @description
|
|
41250
|
-
* @param
|
|
41251
|
-
* @param newMetadata - The new metadata information that will replace the previous
|
|
41088
|
+
* @description Finds an asset collection by its Name.
|
|
41089
|
+
* @param assetCollectionName - Name of the asset collection to be retrieved
|
|
41252
41090
|
* @param callback - Callback when asynchronous task finishes
|
|
41253
41091
|
*/
|
|
41254
41092
|
|
|
41255
|
-
async
|
|
41256
|
-
|
|
41257
|
-
|
|
41093
|
+
async getAssetCollectionByName(
|
|
41094
|
+
assetCollectionName: string,
|
|
41095
|
+
): Promise<Systems.AssetCollectionResult> {
|
|
41096
|
+
var _resolve;
|
|
41097
|
+
|
|
41098
|
+
var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
|
|
41099
|
+
_resolve = _r;
|
|
41100
|
+
});
|
|
41101
|
+
|
|
41102
|
+
var _callbackPtr: number;
|
|
41103
|
+
var _callback = (_stateObject__: number, result) => {
|
|
41104
|
+
var _resultPtr = getNativePointer(result);
|
|
41105
|
+
var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
|
|
41106
|
+
|
|
41107
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
41108
|
+
return;
|
|
41109
|
+
}
|
|
41110
|
+
|
|
41111
|
+
_resolve(_resultInstance);
|
|
41112
|
+
|
|
41113
|
+
Module.removeFunction(_callbackPtr);
|
|
41114
|
+
};
|
|
41115
|
+
|
|
41116
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41117
|
+
|
|
41118
|
+
Module.ccall(
|
|
41119
|
+
"csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback",
|
|
41120
|
+
"void",
|
|
41121
|
+
["number", "string", "number", "number"],
|
|
41122
|
+
[this.pointer, assetCollectionName, _callbackPtr, 0],
|
|
41123
|
+
);
|
|
41124
|
+
|
|
41125
|
+
return _promise;
|
|
41126
|
+
}
|
|
41127
|
+
|
|
41128
|
+
/**
|
|
41129
|
+
* @description Retrieves asset collections based on the specified search criteria.
|
|
41130
|
+
* Results pagination is supported through the use of ResultsSkipNumber and ResultsMaxNumber.
|
|
41131
|
+
* @param space - Optional space to get asset collections associated with it
|
|
41132
|
+
* @param assetCollectionParentId - Optional asset collection parent id to get asset collections associated with it
|
|
41133
|
+
* @param assetCollectionType - Type of the asset collection
|
|
41134
|
+
* @param assetCollectionTags - Optional array of strings representing asset collection tags
|
|
41135
|
+
* @param assetCollectionNames - Optional array of strings representing asset
|
|
41136
|
+
* collection names
|
|
41137
|
+
* @param resultsSkipNumber - Optional param representing the number of result entries that will be skipped from the result. for no skip pass
|
|
41138
|
+
* nullptr.
|
|
41139
|
+
* @param resultsMaxNumber - Optional param representing the maximum number of result entries to be retrieved. for all available result
|
|
41140
|
+
* entries pass nullptr.
|
|
41141
|
+
* @param callback - Callback when asynchronous task finishes
|
|
41142
|
+
*/
|
|
41143
|
+
|
|
41144
|
+
async findAssetCollections(
|
|
41145
|
+
ids: Common.Array<string> | null,
|
|
41146
|
+
parentId: string | null,
|
|
41147
|
+
names: Common.Array<string> | null,
|
|
41148
|
+
types: Common.Array<Systems.EAssetCollectionType> | null,
|
|
41149
|
+
tags: Common.Array<string> | null,
|
|
41150
|
+
spaceIds: Common.Array<string> | null,
|
|
41151
|
+
resultsSkipNumber: number | null,
|
|
41152
|
+
resultsMaxNumber: number | null,
|
|
41153
|
+
): Promise<Systems.AssetCollectionsResult> {
|
|
41154
|
+
var _resolve;
|
|
41155
|
+
|
|
41156
|
+
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
41157
|
+
_resolve = _r;
|
|
41158
|
+
});
|
|
41159
|
+
|
|
41160
|
+
var _callbackPtr: number;
|
|
41161
|
+
var _callback = (_stateObject__: number, result) => {
|
|
41162
|
+
var _resultPtr = getNativePointer(result);
|
|
41163
|
+
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
41164
|
+
|
|
41165
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
41166
|
+
return;
|
|
41167
|
+
}
|
|
41168
|
+
|
|
41169
|
+
_resolve(_resultInstance);
|
|
41170
|
+
|
|
41171
|
+
Module.removeFunction(_callbackPtr);
|
|
41172
|
+
};
|
|
41173
|
+
|
|
41174
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41175
|
+
|
|
41176
|
+
var resultsSkipNumberPointer = 0;
|
|
41177
|
+
if (resultsSkipNumber != null) {
|
|
41178
|
+
resultsSkipNumberPointer = Module._malloc(4);
|
|
41179
|
+
Module.setValue(resultsSkipNumberPointer, resultsSkipNumber, "i32");
|
|
41180
|
+
}
|
|
41181
|
+
|
|
41182
|
+
var resultsMaxNumberPointer = 0;
|
|
41183
|
+
if (resultsMaxNumber != null) {
|
|
41184
|
+
resultsMaxNumberPointer = Module._malloc(4);
|
|
41185
|
+
Module.setValue(resultsMaxNumberPointer, resultsMaxNumber, "i32");
|
|
41186
|
+
}
|
|
41187
|
+
|
|
41188
|
+
Module.ccall(
|
|
41189
|
+
"csp_systems_AssetSystem_FindAssetCollections_void_ArrayRC_StringRC_ArrayRC_ArrayRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback",
|
|
41190
|
+
"void",
|
|
41191
|
+
[
|
|
41192
|
+
"number",
|
|
41193
|
+
"number",
|
|
41194
|
+
"string",
|
|
41195
|
+
"number",
|
|
41196
|
+
"number",
|
|
41197
|
+
"number",
|
|
41198
|
+
"number",
|
|
41199
|
+
"number",
|
|
41200
|
+
"number",
|
|
41201
|
+
"number",
|
|
41202
|
+
"number",
|
|
41203
|
+
],
|
|
41204
|
+
[
|
|
41205
|
+
this.pointer,
|
|
41206
|
+
ids != null ? ids.pointer : 0,
|
|
41207
|
+
parentId,
|
|
41208
|
+
names != null ? names.pointer : 0,
|
|
41209
|
+
types != null ? types.pointer : 0,
|
|
41210
|
+
tags != null ? tags.pointer : 0,
|
|
41211
|
+
spaceIds != null ? spaceIds.pointer : 0,
|
|
41212
|
+
resultsSkipNumberPointer,
|
|
41213
|
+
resultsMaxNumberPointer,
|
|
41214
|
+
_callbackPtr,
|
|
41215
|
+
0,
|
|
41216
|
+
],
|
|
41217
|
+
);
|
|
41218
|
+
|
|
41219
|
+
if (resultsSkipNumberPointer) {
|
|
41220
|
+
Module._free(resultsSkipNumberPointer);
|
|
41221
|
+
}
|
|
41222
|
+
if (resultsMaxNumberPointer) {
|
|
41223
|
+
Module._free(resultsMaxNumberPointer);
|
|
41224
|
+
}
|
|
41225
|
+
|
|
41226
|
+
return _promise;
|
|
41227
|
+
}
|
|
41228
|
+
|
|
41229
|
+
/**
|
|
41230
|
+
* @description Updates the Metadata field of an Asset Collection
|
|
41231
|
+
* @param assetCollection - Asset collection to be updated
|
|
41232
|
+
* @param newMetadata - The new metadata information that will replace the previous
|
|
41233
|
+
* @param callback - Callback when asynchronous task finishes
|
|
41234
|
+
*/
|
|
41235
|
+
|
|
41236
|
+
async updateAssetCollectionMetadata(
|
|
41237
|
+
assetCollection: Systems.AssetCollection,
|
|
41238
|
+
newMetadata: Common.Map<string, string>,
|
|
41258
41239
|
): Promise<Systems.AssetCollectionResult> {
|
|
41259
41240
|
var _resolve;
|
|
41260
41241
|
|
|
@@ -42378,19 +42359,6 @@ export namespace Systems {
|
|
|
42378
42359
|
);
|
|
42379
42360
|
}
|
|
42380
42361
|
|
|
42381
|
-
static create(): ECommerceSystem {
|
|
42382
|
-
var _ptr = Module._malloc(8);
|
|
42383
|
-
Module.ccall(
|
|
42384
|
-
"csp_systems_ECommerceSystem_Ctor",
|
|
42385
|
-
"void",
|
|
42386
|
-
["number"],
|
|
42387
|
-
[_ptr],
|
|
42388
|
-
);
|
|
42389
|
-
var _nPtr = getNativePointer(_ptr);
|
|
42390
|
-
|
|
42391
|
-
return new ECommerceSystem(_nPtr);
|
|
42392
|
-
}
|
|
42393
|
-
|
|
42394
42362
|
/**
|
|
42395
42363
|
* @description Get product information from a shopify store within a space
|
|
42396
42364
|
* @param spaceId - Space id of product
|
|
@@ -44607,10 +44575,7 @@ export namespace Systems {
|
|
|
44607
44575
|
* @param callback - Callback when asynchronous task finishes.
|
|
44608
44576
|
*/
|
|
44609
44577
|
|
|
44610
|
-
async setNDAStatus(
|
|
44611
|
-
userId: string,
|
|
44612
|
-
value: boolean,
|
|
44613
|
-
): Promise<Systems.NullResult> {
|
|
44578
|
+
async setNDAStatus(value: boolean): Promise<Systems.NullResult> {
|
|
44614
44579
|
var _resolve;
|
|
44615
44580
|
|
|
44616
44581
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44634,10 +44599,10 @@ export namespace Systems {
|
|
|
44634
44599
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44635
44600
|
|
|
44636
44601
|
Module.ccall(
|
|
44637
|
-
"
|
|
44602
|
+
"csp_systems_SettingsSystem_SetNDAStatus_void_bool_NullResultCallback",
|
|
44638
44603
|
"void",
|
|
44639
|
-
["number", "
|
|
44640
|
-
[this.pointer,
|
|
44604
|
+
["number", "boolean", "number", "number"],
|
|
44605
|
+
[this.pointer, value, _callbackPtr, 0],
|
|
44641
44606
|
);
|
|
44642
44607
|
|
|
44643
44608
|
return _promise;
|
|
@@ -44648,7 +44613,7 @@ export namespace Systems {
|
|
|
44648
44613
|
* @param callback - Callback to call when a response is received.
|
|
44649
44614
|
*/
|
|
44650
44615
|
|
|
44651
|
-
async getNDAStatus(
|
|
44616
|
+
async getNDAStatus(): Promise<Systems.BooleanResult> {
|
|
44652
44617
|
var _resolve;
|
|
44653
44618
|
|
|
44654
44619
|
var _promise = new Promise<Systems.BooleanResult>((_r) => {
|
|
@@ -44672,10 +44637,10 @@ export namespace Systems {
|
|
|
44672
44637
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44673
44638
|
|
|
44674
44639
|
Module.ccall(
|
|
44675
|
-
"
|
|
44640
|
+
"csp_systems_SettingsSystem_GetNDAStatus_void_BooleanResultCallback",
|
|
44676
44641
|
"void",
|
|
44677
|
-
["number", "
|
|
44678
|
-
[this.pointer,
|
|
44642
|
+
["number", "number", "number"],
|
|
44643
|
+
[this.pointer, _callbackPtr, 0],
|
|
44679
44644
|
);
|
|
44680
44645
|
|
|
44681
44646
|
return _promise;
|
|
@@ -44688,10 +44653,7 @@ export namespace Systems {
|
|
|
44688
44653
|
* @param callback - Callback when asynchronous task finishes
|
|
44689
44654
|
*/
|
|
44690
44655
|
|
|
44691
|
-
async setNewsletterStatus(
|
|
44692
|
-
userId: string,
|
|
44693
|
-
value: boolean,
|
|
44694
|
-
): Promise<Systems.NullResult> {
|
|
44656
|
+
async setNewsletterStatus(value: boolean): Promise<Systems.NullResult> {
|
|
44695
44657
|
var _resolve;
|
|
44696
44658
|
|
|
44697
44659
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44715,10 +44677,10 @@ export namespace Systems {
|
|
|
44715
44677
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44716
44678
|
|
|
44717
44679
|
Module.ccall(
|
|
44718
|
-
"
|
|
44680
|
+
"csp_systems_SettingsSystem_SetNewsletterStatus_void_bool_NullResultCallback",
|
|
44719
44681
|
"void",
|
|
44720
|
-
["number", "
|
|
44721
|
-
[this.pointer,
|
|
44682
|
+
["number", "boolean", "number", "number"],
|
|
44683
|
+
[this.pointer, value, _callbackPtr, 0],
|
|
44722
44684
|
);
|
|
44723
44685
|
|
|
44724
44686
|
return _promise;
|
|
@@ -44729,7 +44691,7 @@ export namespace Systems {
|
|
|
44729
44691
|
* @param callback - Callback to call when a response is received.
|
|
44730
44692
|
*/
|
|
44731
44693
|
|
|
44732
|
-
async getNewsletterStatus(
|
|
44694
|
+
async getNewsletterStatus(): Promise<Systems.BooleanResult> {
|
|
44733
44695
|
var _resolve;
|
|
44734
44696
|
|
|
44735
44697
|
var _promise = new Promise<Systems.BooleanResult>((_r) => {
|
|
@@ -44753,10 +44715,10 @@ export namespace Systems {
|
|
|
44753
44715
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44754
44716
|
|
|
44755
44717
|
Module.ccall(
|
|
44756
|
-
"
|
|
44718
|
+
"csp_systems_SettingsSystem_GetNewsletterStatus_void_BooleanResultCallback",
|
|
44757
44719
|
"void",
|
|
44758
|
-
["number", "
|
|
44759
|
-
[this.pointer,
|
|
44720
|
+
["number", "number", "number"],
|
|
44721
|
+
[this.pointer, _callbackPtr, 0],
|
|
44760
44722
|
);
|
|
44761
44723
|
|
|
44762
44724
|
return _promise;
|
|
@@ -44771,7 +44733,6 @@ export namespace Systems {
|
|
|
44771
44733
|
*/
|
|
44772
44734
|
|
|
44773
44735
|
async addRecentlyVisitedSpace(
|
|
44774
|
-
userId: string,
|
|
44775
44736
|
spaceID: string,
|
|
44776
44737
|
): Promise<Systems.NullResult> {
|
|
44777
44738
|
var _resolve;
|
|
@@ -44797,10 +44758,10 @@ export namespace Systems {
|
|
|
44797
44758
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44798
44759
|
|
|
44799
44760
|
Module.ccall(
|
|
44800
|
-
"
|
|
44761
|
+
"csp_systems_SettingsSystem_AddRecentlyVisitedSpace_void_StringC_NullResultCallback",
|
|
44801
44762
|
"void",
|
|
44802
|
-
["number", "string", "
|
|
44803
|
-
[this.pointer,
|
|
44763
|
+
["number", "string", "number", "number"],
|
|
44764
|
+
[this.pointer, spaceID, _callbackPtr, 0],
|
|
44804
44765
|
);
|
|
44805
44766
|
|
|
44806
44767
|
return _promise;
|
|
@@ -44812,9 +44773,7 @@ export namespace Systems {
|
|
|
44812
44773
|
* @param callback - Callback to call when a response is received.
|
|
44813
44774
|
*/
|
|
44814
44775
|
|
|
44815
|
-
async getRecentlyVisitedSpaces(
|
|
44816
|
-
userId: string,
|
|
44817
|
-
): Promise<Systems.StringArrayResult> {
|
|
44776
|
+
async getRecentlyVisitedSpaces(): Promise<Systems.StringArrayResult> {
|
|
44818
44777
|
var _resolve;
|
|
44819
44778
|
|
|
44820
44779
|
var _promise = new Promise<Systems.StringArrayResult>((_r) => {
|
|
@@ -44838,10 +44797,10 @@ export namespace Systems {
|
|
|
44838
44797
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44839
44798
|
|
|
44840
44799
|
Module.ccall(
|
|
44841
|
-
"
|
|
44800
|
+
"csp_systems_SettingsSystem_GetRecentlyVisitedSpaces_void_StringArrayResultCallback",
|
|
44842
44801
|
"void",
|
|
44843
|
-
["number", "
|
|
44844
|
-
[this.pointer,
|
|
44802
|
+
["number", "number", "number"],
|
|
44803
|
+
[this.pointer, _callbackPtr, 0],
|
|
44845
44804
|
);
|
|
44846
44805
|
|
|
44847
44806
|
return _promise;
|
|
@@ -44852,9 +44811,7 @@ export namespace Systems {
|
|
|
44852
44811
|
* @param callback - Callback when asynchronous task finishes.
|
|
44853
44812
|
*/
|
|
44854
44813
|
|
|
44855
|
-
async clearRecentlyVisitedSpaces(
|
|
44856
|
-
userId: string,
|
|
44857
|
-
): Promise<Systems.NullResult> {
|
|
44814
|
+
async clearRecentlyVisitedSpaces(): Promise<Systems.NullResult> {
|
|
44858
44815
|
var _resolve;
|
|
44859
44816
|
|
|
44860
44817
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44878,10 +44835,10 @@ export namespace Systems {
|
|
|
44878
44835
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44879
44836
|
|
|
44880
44837
|
Module.ccall(
|
|
44881
|
-
"
|
|
44838
|
+
"csp_systems_SettingsSystem_ClearRecentlyVisitedSpaces_void_NullResultCallback",
|
|
44882
44839
|
"void",
|
|
44883
|
-
["number", "
|
|
44884
|
-
[this.pointer,
|
|
44840
|
+
["number", "number", "number"],
|
|
44841
|
+
[this.pointer, _callbackPtr, 0],
|
|
44885
44842
|
);
|
|
44886
44843
|
|
|
44887
44844
|
return _promise;
|
|
@@ -44895,10 +44852,7 @@ export namespace Systems {
|
|
|
44895
44852
|
* @param callback - Callback when asynchronous task finishes
|
|
44896
44853
|
*/
|
|
44897
44854
|
|
|
44898
|
-
async addBlockedSpace(
|
|
44899
|
-
userId: string,
|
|
44900
|
-
spaceID: string,
|
|
44901
|
-
): Promise<Systems.NullResult> {
|
|
44855
|
+
async addBlockedSpace(spaceID: string): Promise<Systems.NullResult> {
|
|
44902
44856
|
var _resolve;
|
|
44903
44857
|
|
|
44904
44858
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44922,10 +44876,10 @@ export namespace Systems {
|
|
|
44922
44876
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44923
44877
|
|
|
44924
44878
|
Module.ccall(
|
|
44925
|
-
"
|
|
44879
|
+
"csp_systems_SettingsSystem_AddBlockedSpace_void_StringC_NullResultCallback",
|
|
44926
44880
|
"void",
|
|
44927
|
-
["number", "string", "
|
|
44928
|
-
[this.pointer,
|
|
44881
|
+
["number", "string", "number", "number"],
|
|
44882
|
+
[this.pointer, spaceID, _callbackPtr, 0],
|
|
44929
44883
|
);
|
|
44930
44884
|
|
|
44931
44885
|
return _promise;
|
|
@@ -44937,10 +44891,7 @@ export namespace Systems {
|
|
|
44937
44891
|
* @param callback - Callback when asynchronous task finishes
|
|
44938
44892
|
*/
|
|
44939
44893
|
|
|
44940
|
-
async removeBlockedSpace(
|
|
44941
|
-
userId: string,
|
|
44942
|
-
spaceID: string,
|
|
44943
|
-
): Promise<Systems.NullResult> {
|
|
44894
|
+
async removeBlockedSpace(spaceID: string): Promise<Systems.NullResult> {
|
|
44944
44895
|
var _resolve;
|
|
44945
44896
|
|
|
44946
44897
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44964,10 +44915,10 @@ export namespace Systems {
|
|
|
44964
44915
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44965
44916
|
|
|
44966
44917
|
Module.ccall(
|
|
44967
|
-
"
|
|
44918
|
+
"csp_systems_SettingsSystem_RemoveBlockedSpace_void_StringC_NullResultCallback",
|
|
44968
44919
|
"void",
|
|
44969
|
-
["number", "string", "
|
|
44970
|
-
[this.pointer,
|
|
44920
|
+
["number", "string", "number", "number"],
|
|
44921
|
+
[this.pointer, spaceID, _callbackPtr, 0],
|
|
44971
44922
|
);
|
|
44972
44923
|
|
|
44973
44924
|
return _promise;
|
|
@@ -44979,7 +44930,7 @@ export namespace Systems {
|
|
|
44979
44930
|
* @param callback - Callback to call when a response is received.
|
|
44980
44931
|
*/
|
|
44981
44932
|
|
|
44982
|
-
async getBlockedSpaces(
|
|
44933
|
+
async getBlockedSpaces(): Promise<Systems.StringArrayResult> {
|
|
44983
44934
|
var _resolve;
|
|
44984
44935
|
|
|
44985
44936
|
var _promise = new Promise<Systems.StringArrayResult>((_r) => {
|
|
@@ -45003,10 +44954,10 @@ export namespace Systems {
|
|
|
45003
44954
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45004
44955
|
|
|
45005
44956
|
Module.ccall(
|
|
45006
|
-
"
|
|
44957
|
+
"csp_systems_SettingsSystem_GetBlockedSpaces_void_StringArrayResultCallback",
|
|
45007
44958
|
"void",
|
|
45008
|
-
["number", "
|
|
45009
|
-
[this.pointer,
|
|
44959
|
+
["number", "number", "number"],
|
|
44960
|
+
[this.pointer, _callbackPtr, 0],
|
|
45010
44961
|
);
|
|
45011
44962
|
|
|
45012
44963
|
return _promise;
|
|
@@ -45017,7 +44968,7 @@ export namespace Systems {
|
|
|
45017
44968
|
* @param callback - Callback when asynchronous task finishes.
|
|
45018
44969
|
*/
|
|
45019
44970
|
|
|
45020
|
-
async clearBlockedSpaces(
|
|
44971
|
+
async clearBlockedSpaces(): Promise<Systems.NullResult> {
|
|
45021
44972
|
var _resolve;
|
|
45022
44973
|
|
|
45023
44974
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -45041,10 +44992,10 @@ export namespace Systems {
|
|
|
45041
44992
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45042
44993
|
|
|
45043
44994
|
Module.ccall(
|
|
45044
|
-
"
|
|
44995
|
+
"csp_systems_SettingsSystem_ClearBlockedSpaces_void_NullResultCallback",
|
|
45045
44996
|
"void",
|
|
45046
|
-
["number", "
|
|
45047
|
-
[this.pointer,
|
|
44997
|
+
["number", "number", "number"],
|
|
44998
|
+
[this.pointer, _callbackPtr, 0],
|
|
45048
44999
|
);
|
|
45049
45000
|
|
|
45050
45001
|
return _promise;
|
|
@@ -45052,13 +45003,11 @@ export namespace Systems {
|
|
|
45052
45003
|
|
|
45053
45004
|
/**
|
|
45054
45005
|
* @description Updates the Portrait Avatar image or adds one if it didn't have it previously using FileAssetDataSource
|
|
45055
|
-
* @param userId - UserId of Avatar Portrait
|
|
45056
45006
|
* @param newAvatarPortrait - New Portrait Avatar information
|
|
45057
45007
|
* @param callback - Callback when asynchronous task finishes
|
|
45058
45008
|
*/
|
|
45059
45009
|
|
|
45060
45010
|
async updateAvatarPortrait(
|
|
45061
|
-
userId: string,
|
|
45062
45011
|
newAvatarPortrait: Systems.FileAssetDataSource,
|
|
45063
45012
|
): Promise<Systems.NullResult> {
|
|
45064
45013
|
var _resolve;
|
|
@@ -45084,10 +45033,10 @@ export namespace Systems {
|
|
|
45084
45033
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45085
45034
|
|
|
45086
45035
|
Module.ccall(
|
|
45087
|
-
"
|
|
45036
|
+
"csp_systems_SettingsSystem_UpdateAvatarPortrait_void_FileAssetDataSourceRC_NullResultCallback",
|
|
45088
45037
|
"void",
|
|
45089
|
-
["number", "
|
|
45090
|
-
[this.pointer,
|
|
45038
|
+
["number", "number", "number", "number"],
|
|
45039
|
+
[this.pointer, newAvatarPortrait.pointer, _callbackPtr, 0],
|
|
45091
45040
|
);
|
|
45092
45041
|
|
|
45093
45042
|
return _promise;
|
|
@@ -45097,11 +45046,10 @@ export namespace Systems {
|
|
|
45097
45046
|
* @description Retrieves the Avatar Portrait information associated with the space
|
|
45098
45047
|
* If the user of the Avatar portrait associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
|
|
45099
45048
|
* and the Uri field inside the UriResult will be empty
|
|
45100
|
-
* @param userId - UserId of Avatar Portrait
|
|
45101
45049
|
* @param callback - Callback when asynchronous task finishes
|
|
45102
45050
|
*/
|
|
45103
45051
|
|
|
45104
|
-
async getAvatarPortrait(
|
|
45052
|
+
async getAvatarPortrait(): Promise<Systems.UriResult> {
|
|
45105
45053
|
var _resolve;
|
|
45106
45054
|
|
|
45107
45055
|
var _promise = new Promise<Systems.UriResult>((_r) => {
|
|
@@ -45125,10 +45073,10 @@ export namespace Systems {
|
|
|
45125
45073
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45126
45074
|
|
|
45127
45075
|
Module.ccall(
|
|
45128
|
-
"
|
|
45076
|
+
"csp_systems_SettingsSystem_GetAvatarPortrait_void_UriResultCallback",
|
|
45129
45077
|
"void",
|
|
45130
|
-
["number", "
|
|
45131
|
-
[this.pointer,
|
|
45078
|
+
["number", "number", "number"],
|
|
45079
|
+
[this.pointer, _callbackPtr, 0],
|
|
45132
45080
|
);
|
|
45133
45081
|
|
|
45134
45082
|
return _promise;
|
|
@@ -45136,13 +45084,11 @@ export namespace Systems {
|
|
|
45136
45084
|
|
|
45137
45085
|
/**
|
|
45138
45086
|
* @description Updates the Avatar Portrait image or adds one if it didn't have it previously using BufferAssetDataSource
|
|
45139
|
-
* @param userId - UserId of Avatar Portrait
|
|
45140
45087
|
* @param newAvatarPortrait - New Avatar Portrait information
|
|
45141
45088
|
* @param callback - Callback when asynchronous task finishes
|
|
45142
45089
|
*/
|
|
45143
45090
|
|
|
45144
45091
|
async updateAvatarPortraitWithBuffer(
|
|
45145
|
-
userId: string,
|
|
45146
45092
|
newAvatarPortrait: Systems.BufferAssetDataSource,
|
|
45147
45093
|
): Promise<Systems.NullResult> {
|
|
45148
45094
|
var _resolve;
|
|
@@ -45168,10 +45114,10 @@ export namespace Systems {
|
|
|
45168
45114
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45169
45115
|
|
|
45170
45116
|
Module.ccall(
|
|
45171
|
-
"
|
|
45117
|
+
"csp_systems_SettingsSystem_UpdateAvatarPortraitWithBuffer_void_BufferAssetDataSourceRC_NullResultCallback",
|
|
45172
45118
|
"void",
|
|
45173
|
-
["number", "
|
|
45174
|
-
[this.pointer,
|
|
45119
|
+
["number", "number", "number", "number"],
|
|
45120
|
+
[this.pointer, newAvatarPortrait.pointer, _callbackPtr, 0],
|
|
45175
45121
|
);
|
|
45176
45122
|
|
|
45177
45123
|
return _promise;
|
|
@@ -45179,14 +45125,12 @@ export namespace Systems {
|
|
|
45179
45125
|
|
|
45180
45126
|
/**
|
|
45181
45127
|
* @description Sets the avatar type and identifier for a user.
|
|
45182
|
-
* @param inUserId - The ID of the user to set avatar info for.
|
|
45183
45128
|
* @param inType - The type of avatar (predefined, Ready Player Me, or custom).
|
|
45184
45129
|
* @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
|
|
45185
45130
|
* @param callback - Callback to call when task finishes.
|
|
45186
45131
|
*/
|
|
45187
45132
|
|
|
45188
45133
|
async setAvatarInfo(
|
|
45189
|
-
userId: string,
|
|
45190
45134
|
type: Systems.AvatarType,
|
|
45191
45135
|
identifier: Common.Variant,
|
|
45192
45136
|
): Promise<Systems.NullResult> {
|
|
@@ -45213,10 +45157,10 @@ export namespace Systems {
|
|
|
45213
45157
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45214
45158
|
|
|
45215
45159
|
Module.ccall(
|
|
45216
|
-
"
|
|
45160
|
+
"csp_systems_SettingsSystem_SetAvatarInfo_void_AvatarType_VariantRC_NullResultCallback",
|
|
45217
45161
|
"void",
|
|
45218
|
-
["number", "
|
|
45219
|
-
[this.pointer,
|
|
45162
|
+
["number", "number", "number", "number", "number"],
|
|
45163
|
+
[this.pointer, type, identifier.pointer, _callbackPtr, 0],
|
|
45220
45164
|
);
|
|
45221
45165
|
|
|
45222
45166
|
return _promise;
|
|
@@ -45224,11 +45168,10 @@ export namespace Systems {
|
|
|
45224
45168
|
|
|
45225
45169
|
/**
|
|
45226
45170
|
* @description Retrieves the avatar type and identifier for a user.
|
|
45227
|
-
* @param inUserId - The ID of the user to get avatar info for.
|
|
45228
45171
|
* @param callback - Callback to call when task finishes.
|
|
45229
45172
|
*/
|
|
45230
45173
|
|
|
45231
|
-
async getAvatarInfo(
|
|
45174
|
+
async getAvatarInfo(): Promise<Systems.AvatarInfoResult> {
|
|
45232
45175
|
var _resolve;
|
|
45233
45176
|
|
|
45234
45177
|
var _promise = new Promise<Systems.AvatarInfoResult>((_r) => {
|
|
@@ -45252,10 +45195,10 @@ export namespace Systems {
|
|
|
45252
45195
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45253
45196
|
|
|
45254
45197
|
Module.ccall(
|
|
45255
|
-
"
|
|
45198
|
+
"csp_systems_SettingsSystem_GetAvatarInfo_void_AvatarInfoResultCallback",
|
|
45256
45199
|
"void",
|
|
45257
|
-
["number", "
|
|
45258
|
-
[this.pointer,
|
|
45200
|
+
["number", "number", "number"],
|
|
45201
|
+
[this.pointer, _callbackPtr, 0],
|
|
45259
45202
|
);
|
|
45260
45203
|
|
|
45261
45204
|
return _promise;
|
|
@@ -48881,7 +48824,7 @@ export namespace Systems {
|
|
|
48881
48824
|
var _ret = Module._malloc(8);
|
|
48882
48825
|
|
|
48883
48826
|
Module.ccall(
|
|
48884
|
-
"
|
|
48827
|
+
"csp_systems_LoginStateResult_GetLoginStateC_LoginStateRC",
|
|
48885
48828
|
"void",
|
|
48886
48829
|
["number", "number"],
|
|
48887
48830
|
[_ret, this.pointer],
|
|
@@ -48907,52 +48850,12 @@ export namespace Systems {
|
|
|
48907
48850
|
}
|
|
48908
48851
|
}
|
|
48909
48852
|
|
|
48910
|
-
export namespace Systems {
|
|
48911
|
-
/**
|
|
48912
|
-
* @description Result structure for a logout state request.
|
|
48913
|
-
*/
|
|
48914
|
-
export class LogoutResult
|
|
48915
|
-
extends Systems.NullResult
|
|
48916
|
-
implements INativeResource
|
|
48917
|
-
{
|
|
48918
|
-
/** @internal */
|
|
48919
|
-
constructor(pointer: NativePointer) {
|
|
48920
|
-
super(pointer);
|
|
48921
|
-
}
|
|
48922
|
-
|
|
48923
|
-
static fromNullResult(
|
|
48924
|
-
baseInstance: Systems.NullResult,
|
|
48925
|
-
): Systems.LogoutResult {
|
|
48926
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
48927
|
-
return new Systems.LogoutResult(
|
|
48928
|
-
new NativePointer(
|
|
48929
|
-
nativeClassWrapper.pointer,
|
|
48930
|
-
nativeClassWrapper.ownsPointer,
|
|
48931
|
-
),
|
|
48932
|
-
);
|
|
48933
|
-
}
|
|
48934
|
-
|
|
48935
|
-
delete(): void {
|
|
48936
|
-
if (this.ownsPointer && !this.disposed) {
|
|
48937
|
-
Module.ccall(
|
|
48938
|
-
"csp_systems_LogoutResult_Dtor",
|
|
48939
|
-
"void",
|
|
48940
|
-
["number"],
|
|
48941
|
-
[this.pointer],
|
|
48942
|
-
);
|
|
48943
|
-
|
|
48944
|
-
this.disposed = true;
|
|
48945
|
-
}
|
|
48946
|
-
}
|
|
48947
|
-
}
|
|
48948
|
-
}
|
|
48949
|
-
|
|
48950
48853
|
export namespace Systems {
|
|
48951
48854
|
/**
|
|
48952
48855
|
@ingroup User System
|
|
48953
48856
|
* @description @brief Data class used to contain information when the login token has changed
|
|
48954
48857
|
*/
|
|
48955
|
-
export class
|
|
48858
|
+
export class LoginTokenInfoResult
|
|
48956
48859
|
extends Systems.ResultBase
|
|
48957
48860
|
implements INativeResource
|
|
48958
48861
|
{
|
|
@@ -48963,9 +48866,9 @@ export namespace Systems {
|
|
|
48963
48866
|
|
|
48964
48867
|
static fromResultBase(
|
|
48965
48868
|
baseInstance: Systems.ResultBase,
|
|
48966
|
-
): Systems.
|
|
48869
|
+
): Systems.LoginTokenInfoResult {
|
|
48967
48870
|
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
48968
|
-
return new Systems.
|
|
48871
|
+
return new Systems.LoginTokenInfoResult(
|
|
48969
48872
|
new NativePointer(
|
|
48970
48873
|
nativeClassWrapper.pointer,
|
|
48971
48874
|
nativeClassWrapper.ownsPointer,
|
|
@@ -48977,7 +48880,7 @@ export namespace Systems {
|
|
|
48977
48880
|
var _ret = Module._malloc(8);
|
|
48978
48881
|
|
|
48979
48882
|
Module.ccall(
|
|
48980
|
-
"
|
|
48883
|
+
"csp_systems_LoginTokenInfoResult_GetLoginTokenInfoC_LoginTokenInfoRC",
|
|
48981
48884
|
"void",
|
|
48982
48885
|
["number", "number"],
|
|
48983
48886
|
[_ret, this.pointer],
|
|
@@ -48991,269 +48894,7 @@ export namespace Systems {
|
|
|
48991
48894
|
delete(): void {
|
|
48992
48895
|
if (this.ownsPointer && !this.disposed) {
|
|
48993
48896
|
Module.ccall(
|
|
48994
|
-
"
|
|
48995
|
-
"void",
|
|
48996
|
-
["number"],
|
|
48997
|
-
[this.pointer],
|
|
48998
|
-
);
|
|
48999
|
-
|
|
49000
|
-
this.disposed = true;
|
|
49001
|
-
}
|
|
49002
|
-
}
|
|
49003
|
-
}
|
|
49004
|
-
}
|
|
49005
|
-
|
|
49006
|
-
export namespace Systems {
|
|
49007
|
-
/**
|
|
49008
|
-
@ingroup User System
|
|
49009
|
-
* @description @brief Data class used to contain information when a ping response is received
|
|
49010
|
-
*/
|
|
49011
|
-
export class PingResponseReceived
|
|
49012
|
-
extends Systems.ResultBase
|
|
49013
|
-
implements INativeResource
|
|
49014
|
-
{
|
|
49015
|
-
/** @internal */
|
|
49016
|
-
constructor(pointer: NativePointer) {
|
|
49017
|
-
super(pointer);
|
|
49018
|
-
}
|
|
49019
|
-
|
|
49020
|
-
static fromResultBase(
|
|
49021
|
-
baseInstance: Systems.ResultBase,
|
|
49022
|
-
): Systems.PingResponseReceived {
|
|
49023
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
49024
|
-
return new Systems.PingResponseReceived(
|
|
49025
|
-
new NativePointer(
|
|
49026
|
-
nativeClassWrapper.pointer,
|
|
49027
|
-
nativeClassWrapper.ownsPointer,
|
|
49028
|
-
),
|
|
49029
|
-
);
|
|
49030
|
-
}
|
|
49031
|
-
|
|
49032
|
-
delete(): void {
|
|
49033
|
-
if (this.ownsPointer && !this.disposed) {
|
|
49034
|
-
Module.ccall(
|
|
49035
|
-
"csp_systems_PingResponseReceived_Dtor",
|
|
49036
|
-
"void",
|
|
49037
|
-
["number"],
|
|
49038
|
-
[this.pointer],
|
|
49039
|
-
);
|
|
49040
|
-
|
|
49041
|
-
this.disposed = true;
|
|
49042
|
-
}
|
|
49043
|
-
}
|
|
49044
|
-
}
|
|
49045
|
-
}
|
|
49046
|
-
|
|
49047
|
-
export namespace Systems {
|
|
49048
|
-
/**
|
|
49049
|
-
@ingroup User System
|
|
49050
|
-
* @description @brief Data class used to contain information requesting a user token
|
|
49051
|
-
*/
|
|
49052
|
-
export class AgoraUserTokenResult
|
|
49053
|
-
extends Systems.ResultBase
|
|
49054
|
-
implements INativeResource
|
|
49055
|
-
{
|
|
49056
|
-
/** @internal */
|
|
49057
|
-
constructor(pointer: NativePointer) {
|
|
49058
|
-
super(pointer);
|
|
49059
|
-
}
|
|
49060
|
-
|
|
49061
|
-
static fromResultBase(
|
|
49062
|
-
baseInstance: Systems.ResultBase,
|
|
49063
|
-
): Systems.AgoraUserTokenResult {
|
|
49064
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
49065
|
-
return new Systems.AgoraUserTokenResult(
|
|
49066
|
-
new NativePointer(
|
|
49067
|
-
nativeClassWrapper.pointer,
|
|
49068
|
-
nativeClassWrapper.ownsPointer,
|
|
49069
|
-
),
|
|
49070
|
-
);
|
|
49071
|
-
}
|
|
49072
|
-
|
|
49073
|
-
getUserToken(): string {
|
|
49074
|
-
let _result = Module.ccall(
|
|
49075
|
-
"csp_systems_AgoraUserTokenResult_GetUserTokenC_StringRC",
|
|
49076
|
-
"number",
|
|
49077
|
-
["number"],
|
|
49078
|
-
[this.pointer],
|
|
49079
|
-
);
|
|
49080
|
-
|
|
49081
|
-
const _resultString = Module.UTF8ToString(_result);
|
|
49082
|
-
free(_result);
|
|
49083
|
-
|
|
49084
|
-
_result = _resultString;
|
|
49085
|
-
|
|
49086
|
-
return _result;
|
|
49087
|
-
}
|
|
49088
|
-
|
|
49089
|
-
delete(): void {
|
|
49090
|
-
if (this.ownsPointer && !this.disposed) {
|
|
49091
|
-
Module.ccall(
|
|
49092
|
-
"csp_systems_AgoraUserTokenResult_Dtor",
|
|
49093
|
-
"void",
|
|
49094
|
-
["number"],
|
|
49095
|
-
[this.pointer],
|
|
49096
|
-
);
|
|
49097
|
-
|
|
49098
|
-
this.disposed = true;
|
|
49099
|
-
}
|
|
49100
|
-
}
|
|
49101
|
-
}
|
|
49102
|
-
}
|
|
49103
|
-
|
|
49104
|
-
export namespace Systems {
|
|
49105
|
-
/**
|
|
49106
|
-
* @description Result url for a tier checkout session request
|
|
49107
|
-
*/
|
|
49108
|
-
export class CheckoutSessionUrlResult
|
|
49109
|
-
extends Systems.ResultBase
|
|
49110
|
-
implements INativeResource
|
|
49111
|
-
{
|
|
49112
|
-
/** @internal */
|
|
49113
|
-
constructor(pointer: NativePointer) {
|
|
49114
|
-
super(pointer);
|
|
49115
|
-
}
|
|
49116
|
-
|
|
49117
|
-
static fromResultBase(
|
|
49118
|
-
baseInstance: Systems.ResultBase,
|
|
49119
|
-
): Systems.CheckoutSessionUrlResult {
|
|
49120
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
49121
|
-
return new Systems.CheckoutSessionUrlResult(
|
|
49122
|
-
new NativePointer(
|
|
49123
|
-
nativeClassWrapper.pointer,
|
|
49124
|
-
nativeClassWrapper.ownsPointer,
|
|
49125
|
-
),
|
|
49126
|
-
);
|
|
49127
|
-
}
|
|
49128
|
-
|
|
49129
|
-
static create(): CheckoutSessionUrlResult {
|
|
49130
|
-
var _ptr = Module._malloc(8);
|
|
49131
|
-
Module.ccall(
|
|
49132
|
-
"csp_systems_CheckoutSessionUrlResult_Ctor",
|
|
49133
|
-
"void",
|
|
49134
|
-
["number"],
|
|
49135
|
-
[_ptr],
|
|
49136
|
-
);
|
|
49137
|
-
var _nPtr = getNativePointer(_ptr);
|
|
49138
|
-
|
|
49139
|
-
return new CheckoutSessionUrlResult(_nPtr);
|
|
49140
|
-
}
|
|
49141
|
-
|
|
49142
|
-
static create_arg1(arg1: number): CheckoutSessionUrlResult {
|
|
49143
|
-
var _ptr = Module._malloc(8);
|
|
49144
|
-
Module.ccall(
|
|
49145
|
-
"csp_systems_CheckoutSessionUrlResult_Ctor_voidP",
|
|
49146
|
-
"void",
|
|
49147
|
-
["number", "void"],
|
|
49148
|
-
[_ptr, arg1],
|
|
49149
|
-
);
|
|
49150
|
-
var _nPtr = getNativePointer(_ptr);
|
|
49151
|
-
|
|
49152
|
-
return new CheckoutSessionUrlResult(_nPtr);
|
|
49153
|
-
}
|
|
49154
|
-
|
|
49155
|
-
getUrl(): string {
|
|
49156
|
-
let _result = Module.ccall(
|
|
49157
|
-
"csp_systems_CheckoutSessionUrlResult_GetUrl_StringRC",
|
|
49158
|
-
"number",
|
|
49159
|
-
["number"],
|
|
49160
|
-
[this.pointer],
|
|
49161
|
-
);
|
|
49162
|
-
|
|
49163
|
-
const _resultString = Module.UTF8ToString(_result);
|
|
49164
|
-
free(_result);
|
|
49165
|
-
|
|
49166
|
-
_result = _resultString;
|
|
49167
|
-
|
|
49168
|
-
return _result;
|
|
49169
|
-
}
|
|
49170
|
-
|
|
49171
|
-
delete(): void {
|
|
49172
|
-
if (this.ownsPointer && !this.disposed) {
|
|
49173
|
-
Module.ccall(
|
|
49174
|
-
"csp_systems_CheckoutSessionUrlResult_Dtor",
|
|
49175
|
-
"void",
|
|
49176
|
-
["number"],
|
|
49177
|
-
[this.pointer],
|
|
49178
|
-
);
|
|
49179
|
-
|
|
49180
|
-
this.disposed = true;
|
|
49181
|
-
}
|
|
49182
|
-
}
|
|
49183
|
-
}
|
|
49184
|
-
}
|
|
49185
|
-
|
|
49186
|
-
export namespace Systems {
|
|
49187
|
-
/**
|
|
49188
|
-
* @description Result url for a user customer portal request
|
|
49189
|
-
*/
|
|
49190
|
-
export class CustomerPortalUrlResult
|
|
49191
|
-
extends Systems.ResultBase
|
|
49192
|
-
implements INativeResource
|
|
49193
|
-
{
|
|
49194
|
-
/** @internal */
|
|
49195
|
-
constructor(pointer: NativePointer) {
|
|
49196
|
-
super(pointer);
|
|
49197
|
-
}
|
|
49198
|
-
|
|
49199
|
-
static fromResultBase(
|
|
49200
|
-
baseInstance: Systems.ResultBase,
|
|
49201
|
-
): Systems.CustomerPortalUrlResult {
|
|
49202
|
-
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
49203
|
-
return new Systems.CustomerPortalUrlResult(
|
|
49204
|
-
new NativePointer(
|
|
49205
|
-
nativeClassWrapper.pointer,
|
|
49206
|
-
nativeClassWrapper.ownsPointer,
|
|
49207
|
-
),
|
|
49208
|
-
);
|
|
49209
|
-
}
|
|
49210
|
-
|
|
49211
|
-
static create(): CustomerPortalUrlResult {
|
|
49212
|
-
var _ptr = Module._malloc(8);
|
|
49213
|
-
Module.ccall(
|
|
49214
|
-
"csp_systems_CustomerPortalUrlResult_Ctor",
|
|
49215
|
-
"void",
|
|
49216
|
-
["number"],
|
|
49217
|
-
[_ptr],
|
|
49218
|
-
);
|
|
49219
|
-
var _nPtr = getNativePointer(_ptr);
|
|
49220
|
-
|
|
49221
|
-
return new CustomerPortalUrlResult(_nPtr);
|
|
49222
|
-
}
|
|
49223
|
-
|
|
49224
|
-
static create_arg1(arg1: number): CustomerPortalUrlResult {
|
|
49225
|
-
var _ptr = Module._malloc(8);
|
|
49226
|
-
Module.ccall(
|
|
49227
|
-
"csp_systems_CustomerPortalUrlResult_Ctor_voidP",
|
|
49228
|
-
"void",
|
|
49229
|
-
["number", "void"],
|
|
49230
|
-
[_ptr, arg1],
|
|
49231
|
-
);
|
|
49232
|
-
var _nPtr = getNativePointer(_ptr);
|
|
49233
|
-
|
|
49234
|
-
return new CustomerPortalUrlResult(_nPtr);
|
|
49235
|
-
}
|
|
49236
|
-
|
|
49237
|
-
getUrl(): string {
|
|
49238
|
-
let _result = Module.ccall(
|
|
49239
|
-
"csp_systems_CustomerPortalUrlResult_GetUrl_StringRC",
|
|
49240
|
-
"number",
|
|
49241
|
-
["number"],
|
|
49242
|
-
[this.pointer],
|
|
49243
|
-
);
|
|
49244
|
-
|
|
49245
|
-
const _resultString = Module.UTF8ToString(_result);
|
|
49246
|
-
free(_result);
|
|
49247
|
-
|
|
49248
|
-
_result = _resultString;
|
|
49249
|
-
|
|
49250
|
-
return _result;
|
|
49251
|
-
}
|
|
49252
|
-
|
|
49253
|
-
delete(): void {
|
|
49254
|
-
if (this.ownsPointer && !this.disposed) {
|
|
49255
|
-
Module.ccall(
|
|
49256
|
-
"csp_systems_CustomerPortalUrlResult_Dtor",
|
|
48897
|
+
"csp_systems_LoginTokenInfoResult_Dtor",
|
|
49257
48898
|
"void",
|
|
49258
48899
|
["number"],
|
|
49259
48900
|
[this.pointer],
|
|
@@ -49720,10 +49361,12 @@ export namespace Systems {
|
|
|
49720
49361
|
* @param callback - Callback that gets called as described above
|
|
49721
49362
|
*/
|
|
49722
49363
|
setNewLoginTokenReceivedCallback(
|
|
49723
|
-
callback: (result: Systems.
|
|
49364
|
+
callback: (result: Systems.LoginTokenInfoResult) => void,
|
|
49724
49365
|
) {
|
|
49725
49366
|
var _callback = (_stateObject__: number, result) => {
|
|
49726
|
-
var _result = new Systems.
|
|
49367
|
+
var _result = new Systems.LoginTokenInfoResult(
|
|
49368
|
+
getNativePointer(result),
|
|
49369
|
+
);
|
|
49727
49370
|
|
|
49728
49371
|
callback(_result);
|
|
49729
49372
|
};
|
|
@@ -49731,7 +49374,7 @@ export namespace Systems {
|
|
|
49731
49374
|
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
49732
49375
|
|
|
49733
49376
|
Module.ccall(
|
|
49734
|
-
"
|
|
49377
|
+
"csp_systems_UserSystem_SetNewLoginTokenReceivedCallback_void_LoginTokenInfoResultCallback",
|
|
49735
49378
|
"void",
|
|
49736
49379
|
["number", "number", "number"],
|
|
49737
49380
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -50094,17 +49737,17 @@ export namespace Systems {
|
|
|
50094
49737
|
* @param callback - Callback to call when a response is received
|
|
50095
49738
|
*/
|
|
50096
49739
|
|
|
50097
|
-
async logout(): Promise<Systems.
|
|
49740
|
+
async logout(): Promise<Systems.NullResult> {
|
|
50098
49741
|
var _resolve;
|
|
50099
49742
|
|
|
50100
|
-
var _promise = new Promise<Systems.
|
|
49743
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
50101
49744
|
_resolve = _r;
|
|
50102
49745
|
});
|
|
50103
49746
|
|
|
50104
49747
|
var _callbackPtr: number;
|
|
50105
49748
|
var _callback = (_stateObject__: number, result) => {
|
|
50106
49749
|
var _resultPtr = getNativePointer(result);
|
|
50107
|
-
var _resultInstance = new Systems.
|
|
49750
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
50108
49751
|
|
|
50109
49752
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50110
49753
|
return;
|
|
@@ -50118,7 +49761,7 @@ export namespace Systems {
|
|
|
50118
49761
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50119
49762
|
|
|
50120
49763
|
Module.ccall(
|
|
50121
|
-
"
|
|
49764
|
+
"csp_systems_UserSystem_Logout_void_NullResultCallback",
|
|
50122
49765
|
"void",
|
|
50123
49766
|
["number", "number", "number"],
|
|
50124
49767
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -50558,17 +50201,17 @@ export namespace Systems {
|
|
|
50558
50201
|
* @param callback - Callback to call when a response is received
|
|
50559
50202
|
*/
|
|
50560
50203
|
|
|
50561
|
-
async ping(): Promise<Systems.
|
|
50204
|
+
async ping(): Promise<Systems.NullResult> {
|
|
50562
50205
|
var _resolve;
|
|
50563
50206
|
|
|
50564
|
-
var _promise = new Promise<Systems.
|
|
50207
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
50565
50208
|
_resolve = _r;
|
|
50566
50209
|
});
|
|
50567
50210
|
|
|
50568
50211
|
var _callbackPtr: number;
|
|
50569
50212
|
var _callback = (_stateObject__: number, result) => {
|
|
50570
50213
|
var _resultPtr = getNativePointer(result);
|
|
50571
|
-
var _resultInstance = new Systems.
|
|
50214
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
50572
50215
|
|
|
50573
50216
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50574
50217
|
return;
|
|
@@ -50582,7 +50225,7 @@ export namespace Systems {
|
|
|
50582
50225
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50583
50226
|
|
|
50584
50227
|
Module.ccall(
|
|
50585
|
-
"
|
|
50228
|
+
"csp_systems_UserSystem_Ping_void_NullResultCallback",
|
|
50586
50229
|
"void",
|
|
50587
50230
|
["number", "number", "number"],
|
|
50588
50231
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -50599,17 +50242,17 @@ export namespace Systems {
|
|
|
50599
50242
|
|
|
50600
50243
|
async getAgoraUserToken(
|
|
50601
50244
|
params: Systems.AgoraUserTokenParams,
|
|
50602
|
-
): Promise<Systems.
|
|
50245
|
+
): Promise<Systems.StringResult> {
|
|
50603
50246
|
var _resolve;
|
|
50604
50247
|
|
|
50605
|
-
var _promise = new Promise<Systems.
|
|
50248
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
50606
50249
|
_resolve = _r;
|
|
50607
50250
|
});
|
|
50608
50251
|
|
|
50609
50252
|
var _callbackPtr: number;
|
|
50610
50253
|
var _callback = (_stateObject__: number, result) => {
|
|
50611
50254
|
var _resultPtr = getNativePointer(result);
|
|
50612
|
-
var _resultInstance = new Systems.
|
|
50255
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
50613
50256
|
|
|
50614
50257
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50615
50258
|
return;
|
|
@@ -50623,7 +50266,7 @@ export namespace Systems {
|
|
|
50623
50266
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50624
50267
|
|
|
50625
50268
|
Module.ccall(
|
|
50626
|
-
"
|
|
50269
|
+
"csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback",
|
|
50627
50270
|
"void",
|
|
50628
50271
|
["number", "number", "number", "number"],
|
|
50629
50272
|
[this.pointer, params.pointer, _callbackPtr, 0],
|
|
@@ -50681,19 +50324,17 @@ export namespace Systems {
|
|
|
50681
50324
|
* @param callback - Callback that contains the customer portal url of the user
|
|
50682
50325
|
*/
|
|
50683
50326
|
|
|
50684
|
-
async getCustomerPortalUrl(
|
|
50685
|
-
userId: string,
|
|
50686
|
-
): Promise<Systems.CustomerPortalUrlResult> {
|
|
50327
|
+
async getCustomerPortalUrl(userId: string): Promise<Systems.StringResult> {
|
|
50687
50328
|
var _resolve;
|
|
50688
50329
|
|
|
50689
|
-
var _promise = new Promise<Systems.
|
|
50330
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
50690
50331
|
_resolve = _r;
|
|
50691
50332
|
});
|
|
50692
50333
|
|
|
50693
50334
|
var _callbackPtr: number;
|
|
50694
50335
|
var _callback = (_stateObject__: number, result) => {
|
|
50695
50336
|
var _resultPtr = getNativePointer(result);
|
|
50696
|
-
var _resultInstance = new Systems.
|
|
50337
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
50697
50338
|
|
|
50698
50339
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50699
50340
|
return;
|
|
@@ -50707,7 +50348,7 @@ export namespace Systems {
|
|
|
50707
50348
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50708
50349
|
|
|
50709
50350
|
Module.ccall(
|
|
50710
|
-
"
|
|
50351
|
+
"csp_systems_UserSystem_GetCustomerPortalUrl_void_StringRC_StringResultCallback",
|
|
50711
50352
|
"void",
|
|
50712
50353
|
["number", "string", "number", "number"],
|
|
50713
50354
|
[this.pointer, userId, _callbackPtr, 0],
|
|
@@ -50724,17 +50365,17 @@ export namespace Systems {
|
|
|
50724
50365
|
|
|
50725
50366
|
async getCheckoutSessionUrl(
|
|
50726
50367
|
tier: Systems.TierNames,
|
|
50727
|
-
): Promise<Systems.
|
|
50368
|
+
): Promise<Systems.StringResult> {
|
|
50728
50369
|
var _resolve;
|
|
50729
50370
|
|
|
50730
|
-
var _promise = new Promise<Systems.
|
|
50371
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
50731
50372
|
_resolve = _r;
|
|
50732
50373
|
});
|
|
50733
50374
|
|
|
50734
50375
|
var _callbackPtr: number;
|
|
50735
50376
|
var _callback = (_stateObject__: number, result) => {
|
|
50736
50377
|
var _resultPtr = getNativePointer(result);
|
|
50737
|
-
var _resultInstance = new Systems.
|
|
50378
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
50738
50379
|
|
|
50739
50380
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50740
50381
|
return;
|
|
@@ -50748,7 +50389,7 @@ export namespace Systems {
|
|
|
50748
50389
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50749
50390
|
|
|
50750
50391
|
Module.ccall(
|
|
50751
|
-
"
|
|
50392
|
+
"csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNames_StringResultCallback",
|
|
50752
50393
|
"void",
|
|
50753
50394
|
["number", "number", "number", "number"],
|
|
50754
50395
|
[this.pointer, tier, _callbackPtr, 0],
|
|
@@ -50914,6 +50555,24 @@ export namespace Common {
|
|
|
50914
50555
|
return _inst;
|
|
50915
50556
|
}
|
|
50916
50557
|
|
|
50558
|
+
static ofcsp_systems_EAssetCollectionType(): Array<Systems.EAssetCollectionType> {
|
|
50559
|
+
var _ret = Module._malloc(8);
|
|
50560
|
+
Module.ccall(
|
|
50561
|
+
"csp_common_Array_Ctor_csp_systems_EAssetCollectionType",
|
|
50562
|
+
"void",
|
|
50563
|
+
["number"],
|
|
50564
|
+
[_ret],
|
|
50565
|
+
);
|
|
50566
|
+
var _inst = new Array<Systems.EAssetCollectionType>(
|
|
50567
|
+
getNativePointer(_ret),
|
|
50568
|
+
csp_systems_EAssetCollectionTypeFactory,
|
|
50569
|
+
"csp_systems_EAssetCollectionType",
|
|
50570
|
+
);
|
|
50571
|
+
Module._free(_ret);
|
|
50572
|
+
|
|
50573
|
+
return _inst;
|
|
50574
|
+
}
|
|
50575
|
+
|
|
50917
50576
|
static ofcsp_systems_EAssetType(): Array<Systems.EAssetType> {
|
|
50918
50577
|
var _ret = Module._malloc(8);
|
|
50919
50578
|
Module.ccall(
|
|
@@ -51528,6 +51187,26 @@ export namespace Common {
|
|
|
51528
51187
|
return _inst;
|
|
51529
51188
|
}
|
|
51530
51189
|
|
|
51190
|
+
static ofcsp_systems_EAssetCollectionType_number(
|
|
51191
|
+
size: number,
|
|
51192
|
+
): Array<Systems.EAssetCollectionType> {
|
|
51193
|
+
var _ret = Module._malloc(8);
|
|
51194
|
+
Module.ccall(
|
|
51195
|
+
"csp_common_Array_Conv_size_tC_csp_systems_EAssetCollectionType",
|
|
51196
|
+
"void",
|
|
51197
|
+
["number", "number"],
|
|
51198
|
+
[_ret, size],
|
|
51199
|
+
);
|
|
51200
|
+
var _inst = new Array<Systems.EAssetCollectionType>(
|
|
51201
|
+
getNativePointer(_ret),
|
|
51202
|
+
csp_systems_EAssetCollectionTypeFactory,
|
|
51203
|
+
"csp_systems_EAssetCollectionType",
|
|
51204
|
+
);
|
|
51205
|
+
Module._free(_ret);
|
|
51206
|
+
|
|
51207
|
+
return _inst;
|
|
51208
|
+
}
|
|
51209
|
+
|
|
51531
51210
|
static ofcsp_systems_EAssetType_number(
|
|
51532
51211
|
size: number,
|
|
51533
51212
|
): Array<Systems.EAssetType> {
|