connected-spaces-platform.web 4.18.0 → 4.20.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 +10 -62
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +10245 -10304
- package/connectedspacesplatform.js +25277 -25445
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +366 -684
- package/package.json +1 -1
|
@@ -168,7 +168,10 @@ export class Limits {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
class NativePointer {
|
|
171
|
-
constructor(
|
|
171
|
+
constructor(
|
|
172
|
+
public pointer: number,
|
|
173
|
+
public ownsOwnData: boolean,
|
|
174
|
+
) {}
|
|
172
175
|
}
|
|
173
176
|
|
|
174
177
|
function getNativePointer(pointer: number): NativePointer {
|
|
@@ -2092,53 +2095,13 @@ function csp_systems_LoginStateResultFactory(
|
|
|
2092
2095
|
ProxyClassFactories["csp_systems_LoginStateResult"] =
|
|
2093
2096
|
csp_systems_LoginStateResultFactory;
|
|
2094
2097
|
|
|
2095
|
-
function
|
|
2098
|
+
function csp_systems_LoginTokenInfoResultFactory(
|
|
2096
2099
|
nativePointer: NativePointer,
|
|
2097
2100
|
): NativeClassWrapper {
|
|
2098
|
-
return new Systems.
|
|
2101
|
+
return new Systems.LoginTokenInfoResult(nativePointer);
|
|
2099
2102
|
}
|
|
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;
|
|
2103
|
+
ProxyClassFactories["csp_systems_LoginTokenInfoResult"] =
|
|
2104
|
+
csp_systems_LoginTokenInfoResultFactory;
|
|
2142
2105
|
|
|
2143
2106
|
function csp_systems_ProfileFactory(
|
|
2144
2107
|
nativePointer: NativePointer,
|
|
@@ -2269,6 +2232,18 @@ function csp_common_Array_csp_systems_AssetCollectionFactory(
|
|
|
2269
2232
|
ProxyClassFactories["csp_common_Array_csp_systems_AssetCollection"] =
|
|
2270
2233
|
csp_common_Array_csp_systems_AssetCollectionFactory;
|
|
2271
2234
|
|
|
2235
|
+
function csp_common_Array_csp_systems_EAssetCollectionTypeFactory(
|
|
2236
|
+
nativePointer: NativePointer,
|
|
2237
|
+
): NativeClassWrapper {
|
|
2238
|
+
return new Common.Array<Systems.EAssetCollectionType>(
|
|
2239
|
+
nativePointer,
|
|
2240
|
+
csp_systems_EAssetCollectionTypeFactory,
|
|
2241
|
+
"csp_systems_EAssetCollectionType",
|
|
2242
|
+
);
|
|
2243
|
+
}
|
|
2244
|
+
ProxyClassFactories["csp_common_Array_csp_systems_EAssetCollectionType"] =
|
|
2245
|
+
csp_common_Array_csp_systems_EAssetCollectionTypeFactory;
|
|
2246
|
+
|
|
2272
2247
|
function csp_common_Array_csp_systems_EAssetTypeFactory(
|
|
2273
2248
|
nativePointer: NativePointer,
|
|
2274
2249
|
): NativeClassWrapper {
|
|
@@ -23193,6 +23168,23 @@ export namespace Multiplayer {
|
|
|
23193
23168
|
|
|
23194
23169
|
return _result;
|
|
23195
23170
|
}
|
|
23171
|
+
|
|
23172
|
+
/**
|
|
23173
|
+
* @description Checks if the entity can be modified.
|
|
23174
|
+
* Specifically whether the local client already owns the entity or can take ownership of the entity.
|
|
23175
|
+
* @return True if the entity can be modified, False if not.
|
|
23176
|
+
*/
|
|
23177
|
+
|
|
23178
|
+
isModifiable(): boolean {
|
|
23179
|
+
let _result = Module.ccall(
|
|
23180
|
+
"csp_multiplayer_SpaceEntity_IsModifiable_bool",
|
|
23181
|
+
"boolean",
|
|
23182
|
+
["number"],
|
|
23183
|
+
[this.pointer],
|
|
23184
|
+
);
|
|
23185
|
+
|
|
23186
|
+
return _result;
|
|
23187
|
+
}
|
|
23196
23188
|
}
|
|
23197
23189
|
}
|
|
23198
23190
|
|
|
@@ -25577,19 +25569,6 @@ export namespace Systems {
|
|
|
25577
25569
|
super(pointer);
|
|
25578
25570
|
}
|
|
25579
25571
|
|
|
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
25572
|
/**
|
|
25594
25573
|
* @description Send an event
|
|
25595
25574
|
* @param event - AnalyticsEvent
|
|
@@ -26620,25 +26599,23 @@ export namespace Systems {
|
|
|
26620
26599
|
);
|
|
26621
26600
|
}
|
|
26622
26601
|
|
|
26623
|
-
get
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
"
|
|
26627
|
-
"
|
|
26628
|
-
[
|
|
26629
|
-
[_ptr, this.pointer],
|
|
26602
|
+
get spaceId(): string {
|
|
26603
|
+
let _result = Module.ccall(
|
|
26604
|
+
"csp_systems_AssetCollection__Get_SpaceId",
|
|
26605
|
+
"string",
|
|
26606
|
+
["number"],
|
|
26607
|
+
[this.pointer],
|
|
26630
26608
|
);
|
|
26631
26609
|
|
|
26632
|
-
|
|
26633
|
-
return new Common.Array<string>(_nPtr, StringFactory, "String");
|
|
26610
|
+
return _result;
|
|
26634
26611
|
}
|
|
26635
26612
|
|
|
26636
|
-
set
|
|
26613
|
+
set spaceId(value: string) {
|
|
26637
26614
|
Module.ccall(
|
|
26638
|
-
"
|
|
26615
|
+
"csp_systems_AssetCollection__Set_SpaceId",
|
|
26639
26616
|
"void",
|
|
26640
|
-
["number", "
|
|
26641
|
-
[this.pointer, value
|
|
26617
|
+
["number", "string"],
|
|
26618
|
+
[this.pointer, value],
|
|
26642
26619
|
);
|
|
26643
26620
|
}
|
|
26644
26621
|
|
|
@@ -31530,10 +31507,10 @@ export namespace Systems {
|
|
|
31530
31507
|
);
|
|
31531
31508
|
}
|
|
31532
31509
|
|
|
31533
|
-
get
|
|
31510
|
+
get channelName(): string {
|
|
31534
31511
|
let _result = Module.ccall(
|
|
31535
|
-
"
|
|
31536
|
-
"
|
|
31512
|
+
"csp_systems_AgoraUserTokenParams__Get_ChannelName",
|
|
31513
|
+
"string",
|
|
31537
31514
|
["number"],
|
|
31538
31515
|
[this.pointer],
|
|
31539
31516
|
);
|
|
@@ -31541,19 +31518,19 @@ export namespace Systems {
|
|
|
31541
31518
|
return _result;
|
|
31542
31519
|
}
|
|
31543
31520
|
|
|
31544
|
-
set
|
|
31521
|
+
set channelName(value: string) {
|
|
31545
31522
|
Module.ccall(
|
|
31546
|
-
"
|
|
31523
|
+
"csp_systems_AgoraUserTokenParams__Set_ChannelName",
|
|
31547
31524
|
"void",
|
|
31548
|
-
["number", "
|
|
31525
|
+
["number", "string"],
|
|
31549
31526
|
[this.pointer, value],
|
|
31550
31527
|
);
|
|
31551
31528
|
}
|
|
31552
31529
|
|
|
31553
|
-
get
|
|
31530
|
+
get lifespan(): number {
|
|
31554
31531
|
let _result = Module.ccall(
|
|
31555
|
-
"
|
|
31556
|
-
"
|
|
31532
|
+
"csp_systems_AgoraUserTokenParams__Get_Lifespan",
|
|
31533
|
+
"number",
|
|
31557
31534
|
["number"],
|
|
31558
31535
|
[this.pointer],
|
|
31559
31536
|
);
|
|
@@ -31561,11 +31538,11 @@ export namespace Systems {
|
|
|
31561
31538
|
return _result;
|
|
31562
31539
|
}
|
|
31563
31540
|
|
|
31564
|
-
set
|
|
31541
|
+
set lifespan(value: number) {
|
|
31565
31542
|
Module.ccall(
|
|
31566
|
-
"
|
|
31543
|
+
"csp_systems_AgoraUserTokenParams__Set_Lifespan",
|
|
31567
31544
|
"void",
|
|
31568
|
-
["number", "
|
|
31545
|
+
["number", "number"],
|
|
31569
31546
|
[this.pointer, value],
|
|
31570
31547
|
);
|
|
31571
31548
|
}
|
|
@@ -41016,24 +40993,30 @@ export namespace Systems {
|
|
|
41016
40993
|
}
|
|
41017
40994
|
|
|
41018
40995
|
/**
|
|
41019
|
-
* @description
|
|
41020
|
-
* @param
|
|
40996
|
+
* @description Copies an array of asset collections to another space. Note that all source asset collections must belong to the same space.
|
|
40997
|
+
* @param sourceAssetCollections - The array of asset collections to copy. They must all belong to the same
|
|
40998
|
+
* space.
|
|
40999
|
+
* @param destSpaceId - The unique identifier of the space to copy these asset collections to.
|
|
41000
|
+
* @param copyAsync - Whether to instruct the services to perform the copy of the asset collections
|
|
41001
|
+
* asynchronously.
|
|
41021
41002
|
* @param callback - Callback when asynchronous task finishes
|
|
41022
41003
|
*/
|
|
41023
41004
|
|
|
41024
|
-
async
|
|
41025
|
-
|
|
41026
|
-
|
|
41005
|
+
async copyAssetCollectionsToSpace(
|
|
41006
|
+
sourceAssetCollections: Common.Array<Systems.AssetCollection>,
|
|
41007
|
+
destSpaceId: string,
|
|
41008
|
+
copyAsync: boolean,
|
|
41009
|
+
): Promise<Systems.AssetCollectionsResult> {
|
|
41027
41010
|
var _resolve;
|
|
41028
41011
|
|
|
41029
|
-
var _promise = new Promise<Systems.
|
|
41012
|
+
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
41030
41013
|
_resolve = _r;
|
|
41031
41014
|
});
|
|
41032
41015
|
|
|
41033
41016
|
var _callbackPtr: number;
|
|
41034
41017
|
var _callback = (_stateObject__: number, result) => {
|
|
41035
41018
|
var _resultPtr = getNativePointer(result);
|
|
41036
|
-
var _resultInstance = new Systems.
|
|
41019
|
+
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
41037
41020
|
|
|
41038
41021
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
41039
41022
|
return;
|
|
@@ -41047,23 +41030,30 @@ export namespace Systems {
|
|
|
41047
41030
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41048
41031
|
|
|
41049
41032
|
Module.ccall(
|
|
41050
|
-
"
|
|
41033
|
+
"csp_systems_AssetSystem_CopyAssetCollectionsToSpace_void_ArrayR_StringRC_bool_AssetCollectionsResultCallback",
|
|
41051
41034
|
"void",
|
|
41052
|
-
["number", "string", "number", "number"],
|
|
41053
|
-
[
|
|
41035
|
+
["number", "number", "string", "boolean", "number", "number"],
|
|
41036
|
+
[
|
|
41037
|
+
this.pointer,
|
|
41038
|
+
sourceAssetCollections.pointer,
|
|
41039
|
+
destSpaceId,
|
|
41040
|
+
copyAsync,
|
|
41041
|
+
_callbackPtr,
|
|
41042
|
+
0,
|
|
41043
|
+
],
|
|
41054
41044
|
);
|
|
41055
41045
|
|
|
41056
41046
|
return _promise;
|
|
41057
41047
|
}
|
|
41058
41048
|
|
|
41059
41049
|
/**
|
|
41060
|
-
* @description Finds an asset collection by its
|
|
41061
|
-
* @param
|
|
41050
|
+
* @description Finds an asset collection by its Id.
|
|
41051
|
+
* @param assetCollectionId - Asset collection to delete
|
|
41062
41052
|
* @param callback - Callback when asynchronous task finishes
|
|
41063
41053
|
*/
|
|
41064
41054
|
|
|
41065
|
-
async
|
|
41066
|
-
|
|
41055
|
+
async getAssetCollectionById(
|
|
41056
|
+
assetCollectionId: string,
|
|
41067
41057
|
): Promise<Systems.AssetCollectionResult> {
|
|
41068
41058
|
var _resolve;
|
|
41069
41059
|
|
|
@@ -41088,173 +41078,167 @@ export namespace Systems {
|
|
|
41088
41078
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41089
41079
|
|
|
41090
41080
|
Module.ccall(
|
|
41091
|
-
"
|
|
41081
|
+
"csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback",
|
|
41092
41082
|
"void",
|
|
41093
41083
|
["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
|
-
],
|
|
41084
|
+
[this.pointer, assetCollectionId, _callbackPtr, 0],
|
|
41233
41085
|
);
|
|
41234
41086
|
|
|
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
41087
|
return _promise;
|
|
41246
41088
|
}
|
|
41247
41089
|
|
|
41248
41090
|
/**
|
|
41249
|
-
* @description
|
|
41250
|
-
* @param
|
|
41251
|
-
* @param newMetadata - The new metadata information that will replace the previous
|
|
41091
|
+
* @description Finds an asset collection by its Name.
|
|
41092
|
+
* @param assetCollectionName - Name of the asset collection to be retrieved
|
|
41252
41093
|
* @param callback - Callback when asynchronous task finishes
|
|
41253
41094
|
*/
|
|
41254
41095
|
|
|
41255
|
-
async
|
|
41256
|
-
|
|
41257
|
-
|
|
41096
|
+
async getAssetCollectionByName(
|
|
41097
|
+
assetCollectionName: string,
|
|
41098
|
+
): Promise<Systems.AssetCollectionResult> {
|
|
41099
|
+
var _resolve;
|
|
41100
|
+
|
|
41101
|
+
var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
|
|
41102
|
+
_resolve = _r;
|
|
41103
|
+
});
|
|
41104
|
+
|
|
41105
|
+
var _callbackPtr: number;
|
|
41106
|
+
var _callback = (_stateObject__: number, result) => {
|
|
41107
|
+
var _resultPtr = getNativePointer(result);
|
|
41108
|
+
var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
|
|
41109
|
+
|
|
41110
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
41111
|
+
return;
|
|
41112
|
+
}
|
|
41113
|
+
|
|
41114
|
+
_resolve(_resultInstance);
|
|
41115
|
+
|
|
41116
|
+
Module.removeFunction(_callbackPtr);
|
|
41117
|
+
};
|
|
41118
|
+
|
|
41119
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41120
|
+
|
|
41121
|
+
Module.ccall(
|
|
41122
|
+
"csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback",
|
|
41123
|
+
"void",
|
|
41124
|
+
["number", "string", "number", "number"],
|
|
41125
|
+
[this.pointer, assetCollectionName, _callbackPtr, 0],
|
|
41126
|
+
);
|
|
41127
|
+
|
|
41128
|
+
return _promise;
|
|
41129
|
+
}
|
|
41130
|
+
|
|
41131
|
+
/**
|
|
41132
|
+
* @description Retrieves asset collections based on the specified search criteria.
|
|
41133
|
+
* Results pagination is supported through the use of ResultsSkipNumber and ResultsMaxNumber.
|
|
41134
|
+
* @param space - Optional space to get asset collections associated with it
|
|
41135
|
+
* @param assetCollectionParentId - Optional asset collection parent id to get asset collections associated with it
|
|
41136
|
+
* @param assetCollectionType - Type of the asset collection
|
|
41137
|
+
* @param assetCollectionTags - Optional array of strings representing asset collection tags
|
|
41138
|
+
* @param assetCollectionNames - Optional array of strings representing asset
|
|
41139
|
+
* collection names
|
|
41140
|
+
* @param resultsSkipNumber - Optional param representing the number of result entries that will be skipped from the result. for no skip pass
|
|
41141
|
+
* nullptr.
|
|
41142
|
+
* @param resultsMaxNumber - Optional param representing the maximum number of result entries to be retrieved. for all available result
|
|
41143
|
+
* entries pass nullptr.
|
|
41144
|
+
* @param callback - Callback when asynchronous task finishes
|
|
41145
|
+
*/
|
|
41146
|
+
|
|
41147
|
+
async findAssetCollections(
|
|
41148
|
+
ids: Common.Array<string> | null,
|
|
41149
|
+
parentId: string | null,
|
|
41150
|
+
names: Common.Array<string> | null,
|
|
41151
|
+
types: Common.Array<Systems.EAssetCollectionType> | null,
|
|
41152
|
+
tags: Common.Array<string> | null,
|
|
41153
|
+
spaceIds: Common.Array<string> | null,
|
|
41154
|
+
resultsSkipNumber: number | null,
|
|
41155
|
+
resultsMaxNumber: number | null,
|
|
41156
|
+
): Promise<Systems.AssetCollectionsResult> {
|
|
41157
|
+
var _resolve;
|
|
41158
|
+
|
|
41159
|
+
var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
|
|
41160
|
+
_resolve = _r;
|
|
41161
|
+
});
|
|
41162
|
+
|
|
41163
|
+
var _callbackPtr: number;
|
|
41164
|
+
var _callback = (_stateObject__: number, result) => {
|
|
41165
|
+
var _resultPtr = getNativePointer(result);
|
|
41166
|
+
var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
|
|
41167
|
+
|
|
41168
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
41169
|
+
return;
|
|
41170
|
+
}
|
|
41171
|
+
|
|
41172
|
+
_resolve(_resultInstance);
|
|
41173
|
+
|
|
41174
|
+
Module.removeFunction(_callbackPtr);
|
|
41175
|
+
};
|
|
41176
|
+
|
|
41177
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
41178
|
+
|
|
41179
|
+
var resultsSkipNumberPointer = 0;
|
|
41180
|
+
if (resultsSkipNumber != null) {
|
|
41181
|
+
resultsSkipNumberPointer = Module._malloc(4);
|
|
41182
|
+
Module.setValue(resultsSkipNumberPointer, resultsSkipNumber, "i32");
|
|
41183
|
+
}
|
|
41184
|
+
|
|
41185
|
+
var resultsMaxNumberPointer = 0;
|
|
41186
|
+
if (resultsMaxNumber != null) {
|
|
41187
|
+
resultsMaxNumberPointer = Module._malloc(4);
|
|
41188
|
+
Module.setValue(resultsMaxNumberPointer, resultsMaxNumber, "i32");
|
|
41189
|
+
}
|
|
41190
|
+
|
|
41191
|
+
Module.ccall(
|
|
41192
|
+
"csp_systems_AssetSystem_FindAssetCollections_void_ArrayRC_StringRC_ArrayRC_ArrayRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback",
|
|
41193
|
+
"void",
|
|
41194
|
+
[
|
|
41195
|
+
"number",
|
|
41196
|
+
"number",
|
|
41197
|
+
"string",
|
|
41198
|
+
"number",
|
|
41199
|
+
"number",
|
|
41200
|
+
"number",
|
|
41201
|
+
"number",
|
|
41202
|
+
"number",
|
|
41203
|
+
"number",
|
|
41204
|
+
"number",
|
|
41205
|
+
"number",
|
|
41206
|
+
],
|
|
41207
|
+
[
|
|
41208
|
+
this.pointer,
|
|
41209
|
+
ids != null ? ids.pointer : 0,
|
|
41210
|
+
parentId,
|
|
41211
|
+
names != null ? names.pointer : 0,
|
|
41212
|
+
types != null ? types.pointer : 0,
|
|
41213
|
+
tags != null ? tags.pointer : 0,
|
|
41214
|
+
spaceIds != null ? spaceIds.pointer : 0,
|
|
41215
|
+
resultsSkipNumberPointer,
|
|
41216
|
+
resultsMaxNumberPointer,
|
|
41217
|
+
_callbackPtr,
|
|
41218
|
+
0,
|
|
41219
|
+
],
|
|
41220
|
+
);
|
|
41221
|
+
|
|
41222
|
+
if (resultsSkipNumberPointer) {
|
|
41223
|
+
Module._free(resultsSkipNumberPointer);
|
|
41224
|
+
}
|
|
41225
|
+
if (resultsMaxNumberPointer) {
|
|
41226
|
+
Module._free(resultsMaxNumberPointer);
|
|
41227
|
+
}
|
|
41228
|
+
|
|
41229
|
+
return _promise;
|
|
41230
|
+
}
|
|
41231
|
+
|
|
41232
|
+
/**
|
|
41233
|
+
* @description Updates the Metadata field of an Asset Collection
|
|
41234
|
+
* @param assetCollection - Asset collection to be updated
|
|
41235
|
+
* @param newMetadata - The new metadata information that will replace the previous
|
|
41236
|
+
* @param callback - Callback when asynchronous task finishes
|
|
41237
|
+
*/
|
|
41238
|
+
|
|
41239
|
+
async updateAssetCollectionMetadata(
|
|
41240
|
+
assetCollection: Systems.AssetCollection,
|
|
41241
|
+
newMetadata: Common.Map<string, string>,
|
|
41258
41242
|
): Promise<Systems.AssetCollectionResult> {
|
|
41259
41243
|
var _resolve;
|
|
41260
41244
|
|
|
@@ -42378,19 +42362,6 @@ export namespace Systems {
|
|
|
42378
42362
|
);
|
|
42379
42363
|
}
|
|
42380
42364
|
|
|
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
42365
|
/**
|
|
42395
42366
|
* @description Get product information from a shopify store within a space
|
|
42396
42367
|
* @param spaceId - Space id of product
|
|
@@ -44607,10 +44578,7 @@ export namespace Systems {
|
|
|
44607
44578
|
* @param callback - Callback when asynchronous task finishes.
|
|
44608
44579
|
*/
|
|
44609
44580
|
|
|
44610
|
-
async setNDAStatus(
|
|
44611
|
-
userId: string,
|
|
44612
|
-
value: boolean,
|
|
44613
|
-
): Promise<Systems.NullResult> {
|
|
44581
|
+
async setNDAStatus(value: boolean): Promise<Systems.NullResult> {
|
|
44614
44582
|
var _resolve;
|
|
44615
44583
|
|
|
44616
44584
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44634,10 +44602,10 @@ export namespace Systems {
|
|
|
44634
44602
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44635
44603
|
|
|
44636
44604
|
Module.ccall(
|
|
44637
|
-
"
|
|
44605
|
+
"csp_systems_SettingsSystem_SetNDAStatus_void_bool_NullResultCallback",
|
|
44638
44606
|
"void",
|
|
44639
|
-
["number", "
|
|
44640
|
-
[this.pointer,
|
|
44607
|
+
["number", "boolean", "number", "number"],
|
|
44608
|
+
[this.pointer, value, _callbackPtr, 0],
|
|
44641
44609
|
);
|
|
44642
44610
|
|
|
44643
44611
|
return _promise;
|
|
@@ -44648,7 +44616,7 @@ export namespace Systems {
|
|
|
44648
44616
|
* @param callback - Callback to call when a response is received.
|
|
44649
44617
|
*/
|
|
44650
44618
|
|
|
44651
|
-
async getNDAStatus(
|
|
44619
|
+
async getNDAStatus(): Promise<Systems.BooleanResult> {
|
|
44652
44620
|
var _resolve;
|
|
44653
44621
|
|
|
44654
44622
|
var _promise = new Promise<Systems.BooleanResult>((_r) => {
|
|
@@ -44672,10 +44640,10 @@ export namespace Systems {
|
|
|
44672
44640
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44673
44641
|
|
|
44674
44642
|
Module.ccall(
|
|
44675
|
-
"
|
|
44643
|
+
"csp_systems_SettingsSystem_GetNDAStatus_void_BooleanResultCallback",
|
|
44676
44644
|
"void",
|
|
44677
|
-
["number", "
|
|
44678
|
-
[this.pointer,
|
|
44645
|
+
["number", "number", "number"],
|
|
44646
|
+
[this.pointer, _callbackPtr, 0],
|
|
44679
44647
|
);
|
|
44680
44648
|
|
|
44681
44649
|
return _promise;
|
|
@@ -44688,10 +44656,7 @@ export namespace Systems {
|
|
|
44688
44656
|
* @param callback - Callback when asynchronous task finishes
|
|
44689
44657
|
*/
|
|
44690
44658
|
|
|
44691
|
-
async setNewsletterStatus(
|
|
44692
|
-
userId: string,
|
|
44693
|
-
value: boolean,
|
|
44694
|
-
): Promise<Systems.NullResult> {
|
|
44659
|
+
async setNewsletterStatus(value: boolean): Promise<Systems.NullResult> {
|
|
44695
44660
|
var _resolve;
|
|
44696
44661
|
|
|
44697
44662
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44715,10 +44680,10 @@ export namespace Systems {
|
|
|
44715
44680
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44716
44681
|
|
|
44717
44682
|
Module.ccall(
|
|
44718
|
-
"
|
|
44683
|
+
"csp_systems_SettingsSystem_SetNewsletterStatus_void_bool_NullResultCallback",
|
|
44719
44684
|
"void",
|
|
44720
|
-
["number", "
|
|
44721
|
-
[this.pointer,
|
|
44685
|
+
["number", "boolean", "number", "number"],
|
|
44686
|
+
[this.pointer, value, _callbackPtr, 0],
|
|
44722
44687
|
);
|
|
44723
44688
|
|
|
44724
44689
|
return _promise;
|
|
@@ -44729,7 +44694,7 @@ export namespace Systems {
|
|
|
44729
44694
|
* @param callback - Callback to call when a response is received.
|
|
44730
44695
|
*/
|
|
44731
44696
|
|
|
44732
|
-
async getNewsletterStatus(
|
|
44697
|
+
async getNewsletterStatus(): Promise<Systems.BooleanResult> {
|
|
44733
44698
|
var _resolve;
|
|
44734
44699
|
|
|
44735
44700
|
var _promise = new Promise<Systems.BooleanResult>((_r) => {
|
|
@@ -44753,10 +44718,10 @@ export namespace Systems {
|
|
|
44753
44718
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44754
44719
|
|
|
44755
44720
|
Module.ccall(
|
|
44756
|
-
"
|
|
44721
|
+
"csp_systems_SettingsSystem_GetNewsletterStatus_void_BooleanResultCallback",
|
|
44757
44722
|
"void",
|
|
44758
|
-
["number", "
|
|
44759
|
-
[this.pointer,
|
|
44723
|
+
["number", "number", "number"],
|
|
44724
|
+
[this.pointer, _callbackPtr, 0],
|
|
44760
44725
|
);
|
|
44761
44726
|
|
|
44762
44727
|
return _promise;
|
|
@@ -44771,7 +44736,6 @@ export namespace Systems {
|
|
|
44771
44736
|
*/
|
|
44772
44737
|
|
|
44773
44738
|
async addRecentlyVisitedSpace(
|
|
44774
|
-
userId: string,
|
|
44775
44739
|
spaceID: string,
|
|
44776
44740
|
): Promise<Systems.NullResult> {
|
|
44777
44741
|
var _resolve;
|
|
@@ -44797,10 +44761,10 @@ export namespace Systems {
|
|
|
44797
44761
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44798
44762
|
|
|
44799
44763
|
Module.ccall(
|
|
44800
|
-
"
|
|
44764
|
+
"csp_systems_SettingsSystem_AddRecentlyVisitedSpace_void_StringC_NullResultCallback",
|
|
44801
44765
|
"void",
|
|
44802
|
-
["number", "string", "
|
|
44803
|
-
[this.pointer,
|
|
44766
|
+
["number", "string", "number", "number"],
|
|
44767
|
+
[this.pointer, spaceID, _callbackPtr, 0],
|
|
44804
44768
|
);
|
|
44805
44769
|
|
|
44806
44770
|
return _promise;
|
|
@@ -44812,9 +44776,7 @@ export namespace Systems {
|
|
|
44812
44776
|
* @param callback - Callback to call when a response is received.
|
|
44813
44777
|
*/
|
|
44814
44778
|
|
|
44815
|
-
async getRecentlyVisitedSpaces(
|
|
44816
|
-
userId: string,
|
|
44817
|
-
): Promise<Systems.StringArrayResult> {
|
|
44779
|
+
async getRecentlyVisitedSpaces(): Promise<Systems.StringArrayResult> {
|
|
44818
44780
|
var _resolve;
|
|
44819
44781
|
|
|
44820
44782
|
var _promise = new Promise<Systems.StringArrayResult>((_r) => {
|
|
@@ -44838,10 +44800,10 @@ export namespace Systems {
|
|
|
44838
44800
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44839
44801
|
|
|
44840
44802
|
Module.ccall(
|
|
44841
|
-
"
|
|
44803
|
+
"csp_systems_SettingsSystem_GetRecentlyVisitedSpaces_void_StringArrayResultCallback",
|
|
44842
44804
|
"void",
|
|
44843
|
-
["number", "
|
|
44844
|
-
[this.pointer,
|
|
44805
|
+
["number", "number", "number"],
|
|
44806
|
+
[this.pointer, _callbackPtr, 0],
|
|
44845
44807
|
);
|
|
44846
44808
|
|
|
44847
44809
|
return _promise;
|
|
@@ -44852,9 +44814,7 @@ export namespace Systems {
|
|
|
44852
44814
|
* @param callback - Callback when asynchronous task finishes.
|
|
44853
44815
|
*/
|
|
44854
44816
|
|
|
44855
|
-
async clearRecentlyVisitedSpaces(
|
|
44856
|
-
userId: string,
|
|
44857
|
-
): Promise<Systems.NullResult> {
|
|
44817
|
+
async clearRecentlyVisitedSpaces(): Promise<Systems.NullResult> {
|
|
44858
44818
|
var _resolve;
|
|
44859
44819
|
|
|
44860
44820
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44878,10 +44838,10 @@ export namespace Systems {
|
|
|
44878
44838
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44879
44839
|
|
|
44880
44840
|
Module.ccall(
|
|
44881
|
-
"
|
|
44841
|
+
"csp_systems_SettingsSystem_ClearRecentlyVisitedSpaces_void_NullResultCallback",
|
|
44882
44842
|
"void",
|
|
44883
|
-
["number", "
|
|
44884
|
-
[this.pointer,
|
|
44843
|
+
["number", "number", "number"],
|
|
44844
|
+
[this.pointer, _callbackPtr, 0],
|
|
44885
44845
|
);
|
|
44886
44846
|
|
|
44887
44847
|
return _promise;
|
|
@@ -44895,10 +44855,7 @@ export namespace Systems {
|
|
|
44895
44855
|
* @param callback - Callback when asynchronous task finishes
|
|
44896
44856
|
*/
|
|
44897
44857
|
|
|
44898
|
-
async addBlockedSpace(
|
|
44899
|
-
userId: string,
|
|
44900
|
-
spaceID: string,
|
|
44901
|
-
): Promise<Systems.NullResult> {
|
|
44858
|
+
async addBlockedSpace(spaceID: string): Promise<Systems.NullResult> {
|
|
44902
44859
|
var _resolve;
|
|
44903
44860
|
|
|
44904
44861
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44922,10 +44879,10 @@ export namespace Systems {
|
|
|
44922
44879
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44923
44880
|
|
|
44924
44881
|
Module.ccall(
|
|
44925
|
-
"
|
|
44882
|
+
"csp_systems_SettingsSystem_AddBlockedSpace_void_StringC_NullResultCallback",
|
|
44926
44883
|
"void",
|
|
44927
|
-
["number", "string", "
|
|
44928
|
-
[this.pointer,
|
|
44884
|
+
["number", "string", "number", "number"],
|
|
44885
|
+
[this.pointer, spaceID, _callbackPtr, 0],
|
|
44929
44886
|
);
|
|
44930
44887
|
|
|
44931
44888
|
return _promise;
|
|
@@ -44937,10 +44894,7 @@ export namespace Systems {
|
|
|
44937
44894
|
* @param callback - Callback when asynchronous task finishes
|
|
44938
44895
|
*/
|
|
44939
44896
|
|
|
44940
|
-
async removeBlockedSpace(
|
|
44941
|
-
userId: string,
|
|
44942
|
-
spaceID: string,
|
|
44943
|
-
): Promise<Systems.NullResult> {
|
|
44897
|
+
async removeBlockedSpace(spaceID: string): Promise<Systems.NullResult> {
|
|
44944
44898
|
var _resolve;
|
|
44945
44899
|
|
|
44946
44900
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -44964,10 +44918,10 @@ export namespace Systems {
|
|
|
44964
44918
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44965
44919
|
|
|
44966
44920
|
Module.ccall(
|
|
44967
|
-
"
|
|
44921
|
+
"csp_systems_SettingsSystem_RemoveBlockedSpace_void_StringC_NullResultCallback",
|
|
44968
44922
|
"void",
|
|
44969
|
-
["number", "string", "
|
|
44970
|
-
[this.pointer,
|
|
44923
|
+
["number", "string", "number", "number"],
|
|
44924
|
+
[this.pointer, spaceID, _callbackPtr, 0],
|
|
44971
44925
|
);
|
|
44972
44926
|
|
|
44973
44927
|
return _promise;
|
|
@@ -44979,7 +44933,7 @@ export namespace Systems {
|
|
|
44979
44933
|
* @param callback - Callback to call when a response is received.
|
|
44980
44934
|
*/
|
|
44981
44935
|
|
|
44982
|
-
async getBlockedSpaces(
|
|
44936
|
+
async getBlockedSpaces(): Promise<Systems.StringArrayResult> {
|
|
44983
44937
|
var _resolve;
|
|
44984
44938
|
|
|
44985
44939
|
var _promise = new Promise<Systems.StringArrayResult>((_r) => {
|
|
@@ -45003,10 +44957,10 @@ export namespace Systems {
|
|
|
45003
44957
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45004
44958
|
|
|
45005
44959
|
Module.ccall(
|
|
45006
|
-
"
|
|
44960
|
+
"csp_systems_SettingsSystem_GetBlockedSpaces_void_StringArrayResultCallback",
|
|
45007
44961
|
"void",
|
|
45008
|
-
["number", "
|
|
45009
|
-
[this.pointer,
|
|
44962
|
+
["number", "number", "number"],
|
|
44963
|
+
[this.pointer, _callbackPtr, 0],
|
|
45010
44964
|
);
|
|
45011
44965
|
|
|
45012
44966
|
return _promise;
|
|
@@ -45017,7 +44971,7 @@ export namespace Systems {
|
|
|
45017
44971
|
* @param callback - Callback when asynchronous task finishes.
|
|
45018
44972
|
*/
|
|
45019
44973
|
|
|
45020
|
-
async clearBlockedSpaces(
|
|
44974
|
+
async clearBlockedSpaces(): Promise<Systems.NullResult> {
|
|
45021
44975
|
var _resolve;
|
|
45022
44976
|
|
|
45023
44977
|
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
@@ -45041,10 +44995,10 @@ export namespace Systems {
|
|
|
45041
44995
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45042
44996
|
|
|
45043
44997
|
Module.ccall(
|
|
45044
|
-
"
|
|
44998
|
+
"csp_systems_SettingsSystem_ClearBlockedSpaces_void_NullResultCallback",
|
|
45045
44999
|
"void",
|
|
45046
|
-
["number", "
|
|
45047
|
-
[this.pointer,
|
|
45000
|
+
["number", "number", "number"],
|
|
45001
|
+
[this.pointer, _callbackPtr, 0],
|
|
45048
45002
|
);
|
|
45049
45003
|
|
|
45050
45004
|
return _promise;
|
|
@@ -45052,13 +45006,11 @@ export namespace Systems {
|
|
|
45052
45006
|
|
|
45053
45007
|
/**
|
|
45054
45008
|
* @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
45009
|
* @param newAvatarPortrait - New Portrait Avatar information
|
|
45057
45010
|
* @param callback - Callback when asynchronous task finishes
|
|
45058
45011
|
*/
|
|
45059
45012
|
|
|
45060
45013
|
async updateAvatarPortrait(
|
|
45061
|
-
userId: string,
|
|
45062
45014
|
newAvatarPortrait: Systems.FileAssetDataSource,
|
|
45063
45015
|
): Promise<Systems.NullResult> {
|
|
45064
45016
|
var _resolve;
|
|
@@ -45084,10 +45036,10 @@ export namespace Systems {
|
|
|
45084
45036
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45085
45037
|
|
|
45086
45038
|
Module.ccall(
|
|
45087
|
-
"
|
|
45039
|
+
"csp_systems_SettingsSystem_UpdateAvatarPortrait_void_FileAssetDataSourceRC_NullResultCallback",
|
|
45088
45040
|
"void",
|
|
45089
|
-
["number", "
|
|
45090
|
-
[this.pointer,
|
|
45041
|
+
["number", "number", "number", "number"],
|
|
45042
|
+
[this.pointer, newAvatarPortrait.pointer, _callbackPtr, 0],
|
|
45091
45043
|
);
|
|
45092
45044
|
|
|
45093
45045
|
return _promise;
|
|
@@ -45097,11 +45049,10 @@ export namespace Systems {
|
|
|
45097
45049
|
* @description Retrieves the Avatar Portrait information associated with the space
|
|
45098
45050
|
* If the user of the Avatar portrait associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
|
|
45099
45051
|
* and the Uri field inside the UriResult will be empty
|
|
45100
|
-
* @param userId - UserId of Avatar Portrait
|
|
45101
45052
|
* @param callback - Callback when asynchronous task finishes
|
|
45102
45053
|
*/
|
|
45103
45054
|
|
|
45104
|
-
async getAvatarPortrait(
|
|
45055
|
+
async getAvatarPortrait(): Promise<Systems.UriResult> {
|
|
45105
45056
|
var _resolve;
|
|
45106
45057
|
|
|
45107
45058
|
var _promise = new Promise<Systems.UriResult>((_r) => {
|
|
@@ -45125,10 +45076,10 @@ export namespace Systems {
|
|
|
45125
45076
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45126
45077
|
|
|
45127
45078
|
Module.ccall(
|
|
45128
|
-
"
|
|
45079
|
+
"csp_systems_SettingsSystem_GetAvatarPortrait_void_UriResultCallback",
|
|
45129
45080
|
"void",
|
|
45130
|
-
["number", "
|
|
45131
|
-
[this.pointer,
|
|
45081
|
+
["number", "number", "number"],
|
|
45082
|
+
[this.pointer, _callbackPtr, 0],
|
|
45132
45083
|
);
|
|
45133
45084
|
|
|
45134
45085
|
return _promise;
|
|
@@ -45136,13 +45087,11 @@ export namespace Systems {
|
|
|
45136
45087
|
|
|
45137
45088
|
/**
|
|
45138
45089
|
* @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
45090
|
* @param newAvatarPortrait - New Avatar Portrait information
|
|
45141
45091
|
* @param callback - Callback when asynchronous task finishes
|
|
45142
45092
|
*/
|
|
45143
45093
|
|
|
45144
45094
|
async updateAvatarPortraitWithBuffer(
|
|
45145
|
-
userId: string,
|
|
45146
45095
|
newAvatarPortrait: Systems.BufferAssetDataSource,
|
|
45147
45096
|
): Promise<Systems.NullResult> {
|
|
45148
45097
|
var _resolve;
|
|
@@ -45168,10 +45117,10 @@ export namespace Systems {
|
|
|
45168
45117
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45169
45118
|
|
|
45170
45119
|
Module.ccall(
|
|
45171
|
-
"
|
|
45120
|
+
"csp_systems_SettingsSystem_UpdateAvatarPortraitWithBuffer_void_BufferAssetDataSourceRC_NullResultCallback",
|
|
45172
45121
|
"void",
|
|
45173
|
-
["number", "
|
|
45174
|
-
[this.pointer,
|
|
45122
|
+
["number", "number", "number", "number"],
|
|
45123
|
+
[this.pointer, newAvatarPortrait.pointer, _callbackPtr, 0],
|
|
45175
45124
|
);
|
|
45176
45125
|
|
|
45177
45126
|
return _promise;
|
|
@@ -45179,14 +45128,12 @@ export namespace Systems {
|
|
|
45179
45128
|
|
|
45180
45129
|
/**
|
|
45181
45130
|
* @description Sets the avatar type and identifier for a user.
|
|
45182
|
-
* @param inUserId - The ID of the user to set avatar info for.
|
|
45183
45131
|
* @param inType - The type of avatar (predefined, Ready Player Me, or custom).
|
|
45184
45132
|
* @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
|
|
45185
45133
|
* @param callback - Callback to call when task finishes.
|
|
45186
45134
|
*/
|
|
45187
45135
|
|
|
45188
45136
|
async setAvatarInfo(
|
|
45189
|
-
userId: string,
|
|
45190
45137
|
type: Systems.AvatarType,
|
|
45191
45138
|
identifier: Common.Variant,
|
|
45192
45139
|
): Promise<Systems.NullResult> {
|
|
@@ -45213,10 +45160,10 @@ export namespace Systems {
|
|
|
45213
45160
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45214
45161
|
|
|
45215
45162
|
Module.ccall(
|
|
45216
|
-
"
|
|
45163
|
+
"csp_systems_SettingsSystem_SetAvatarInfo_void_AvatarType_VariantRC_NullResultCallback",
|
|
45217
45164
|
"void",
|
|
45218
|
-
["number", "
|
|
45219
|
-
[this.pointer,
|
|
45165
|
+
["number", "number", "number", "number", "number"],
|
|
45166
|
+
[this.pointer, type, identifier.pointer, _callbackPtr, 0],
|
|
45220
45167
|
);
|
|
45221
45168
|
|
|
45222
45169
|
return _promise;
|
|
@@ -45224,11 +45171,10 @@ export namespace Systems {
|
|
|
45224
45171
|
|
|
45225
45172
|
/**
|
|
45226
45173
|
* @description Retrieves the avatar type and identifier for a user.
|
|
45227
|
-
* @param inUserId - The ID of the user to get avatar info for.
|
|
45228
45174
|
* @param callback - Callback to call when task finishes.
|
|
45229
45175
|
*/
|
|
45230
45176
|
|
|
45231
|
-
async getAvatarInfo(
|
|
45177
|
+
async getAvatarInfo(): Promise<Systems.AvatarInfoResult> {
|
|
45232
45178
|
var _resolve;
|
|
45233
45179
|
|
|
45234
45180
|
var _promise = new Promise<Systems.AvatarInfoResult>((_r) => {
|
|
@@ -45252,10 +45198,10 @@ export namespace Systems {
|
|
|
45252
45198
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
45253
45199
|
|
|
45254
45200
|
Module.ccall(
|
|
45255
|
-
"
|
|
45201
|
+
"csp_systems_SettingsSystem_GetAvatarInfo_void_AvatarInfoResultCallback",
|
|
45256
45202
|
"void",
|
|
45257
|
-
["number", "
|
|
45258
|
-
[this.pointer,
|
|
45203
|
+
["number", "number", "number"],
|
|
45204
|
+
[this.pointer, _callbackPtr, 0],
|
|
45259
45205
|
);
|
|
45260
45206
|
|
|
45261
45207
|
return _promise;
|
|
@@ -48881,7 +48827,7 @@ export namespace Systems {
|
|
|
48881
48827
|
var _ret = Module._malloc(8);
|
|
48882
48828
|
|
|
48883
48829
|
Module.ccall(
|
|
48884
|
-
"
|
|
48830
|
+
"csp_systems_LoginStateResult_GetLoginStateC_LoginStateRC",
|
|
48885
48831
|
"void",
|
|
48886
48832
|
["number", "number"],
|
|
48887
48833
|
[_ret, this.pointer],
|
|
@@ -48907,52 +48853,12 @@ export namespace Systems {
|
|
|
48907
48853
|
}
|
|
48908
48854
|
}
|
|
48909
48855
|
|
|
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
48856
|
export namespace Systems {
|
|
48951
48857
|
/**
|
|
48952
48858
|
@ingroup User System
|
|
48953
48859
|
* @description @brief Data class used to contain information when the login token has changed
|
|
48954
48860
|
*/
|
|
48955
|
-
export class
|
|
48861
|
+
export class LoginTokenInfoResult
|
|
48956
48862
|
extends Systems.ResultBase
|
|
48957
48863
|
implements INativeResource
|
|
48958
48864
|
{
|
|
@@ -48963,9 +48869,9 @@ export namespace Systems {
|
|
|
48963
48869
|
|
|
48964
48870
|
static fromResultBase(
|
|
48965
48871
|
baseInstance: Systems.ResultBase,
|
|
48966
|
-
): Systems.
|
|
48872
|
+
): Systems.LoginTokenInfoResult {
|
|
48967
48873
|
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
48968
|
-
return new Systems.
|
|
48874
|
+
return new Systems.LoginTokenInfoResult(
|
|
48969
48875
|
new NativePointer(
|
|
48970
48876
|
nativeClassWrapper.pointer,
|
|
48971
48877
|
nativeClassWrapper.ownsPointer,
|
|
@@ -48977,7 +48883,7 @@ export namespace Systems {
|
|
|
48977
48883
|
var _ret = Module._malloc(8);
|
|
48978
48884
|
|
|
48979
48885
|
Module.ccall(
|
|
48980
|
-
"
|
|
48886
|
+
"csp_systems_LoginTokenInfoResult_GetLoginTokenInfoC_LoginTokenInfoRC",
|
|
48981
48887
|
"void",
|
|
48982
48888
|
["number", "number"],
|
|
48983
48889
|
[_ret, this.pointer],
|
|
@@ -48991,269 +48897,7 @@ export namespace Systems {
|
|
|
48991
48897
|
delete(): void {
|
|
48992
48898
|
if (this.ownsPointer && !this.disposed) {
|
|
48993
48899
|
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",
|
|
48900
|
+
"csp_systems_LoginTokenInfoResult_Dtor",
|
|
49257
48901
|
"void",
|
|
49258
48902
|
["number"],
|
|
49259
48903
|
[this.pointer],
|
|
@@ -49720,10 +49364,12 @@ export namespace Systems {
|
|
|
49720
49364
|
* @param callback - Callback that gets called as described above
|
|
49721
49365
|
*/
|
|
49722
49366
|
setNewLoginTokenReceivedCallback(
|
|
49723
|
-
callback: (result: Systems.
|
|
49367
|
+
callback: (result: Systems.LoginTokenInfoResult) => void,
|
|
49724
49368
|
) {
|
|
49725
49369
|
var _callback = (_stateObject__: number, result) => {
|
|
49726
|
-
var _result = new Systems.
|
|
49370
|
+
var _result = new Systems.LoginTokenInfoResult(
|
|
49371
|
+
getNativePointer(result),
|
|
49372
|
+
);
|
|
49727
49373
|
|
|
49728
49374
|
callback(_result);
|
|
49729
49375
|
};
|
|
@@ -49731,7 +49377,7 @@ export namespace Systems {
|
|
|
49731
49377
|
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
49732
49378
|
|
|
49733
49379
|
Module.ccall(
|
|
49734
|
-
"
|
|
49380
|
+
"csp_systems_UserSystem_SetNewLoginTokenReceivedCallback_void_LoginTokenInfoResultCallback",
|
|
49735
49381
|
"void",
|
|
49736
49382
|
["number", "number", "number"],
|
|
49737
49383
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -50094,17 +49740,17 @@ export namespace Systems {
|
|
|
50094
49740
|
* @param callback - Callback to call when a response is received
|
|
50095
49741
|
*/
|
|
50096
49742
|
|
|
50097
|
-
async logout(): Promise<Systems.
|
|
49743
|
+
async logout(): Promise<Systems.NullResult> {
|
|
50098
49744
|
var _resolve;
|
|
50099
49745
|
|
|
50100
|
-
var _promise = new Promise<Systems.
|
|
49746
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
50101
49747
|
_resolve = _r;
|
|
50102
49748
|
});
|
|
50103
49749
|
|
|
50104
49750
|
var _callbackPtr: number;
|
|
50105
49751
|
var _callback = (_stateObject__: number, result) => {
|
|
50106
49752
|
var _resultPtr = getNativePointer(result);
|
|
50107
|
-
var _resultInstance = new Systems.
|
|
49753
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
50108
49754
|
|
|
50109
49755
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50110
49756
|
return;
|
|
@@ -50118,7 +49764,7 @@ export namespace Systems {
|
|
|
50118
49764
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50119
49765
|
|
|
50120
49766
|
Module.ccall(
|
|
50121
|
-
"
|
|
49767
|
+
"csp_systems_UserSystem_Logout_void_NullResultCallback",
|
|
50122
49768
|
"void",
|
|
50123
49769
|
["number", "number", "number"],
|
|
50124
49770
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -50558,17 +50204,17 @@ export namespace Systems {
|
|
|
50558
50204
|
* @param callback - Callback to call when a response is received
|
|
50559
50205
|
*/
|
|
50560
50206
|
|
|
50561
|
-
async ping(): Promise<Systems.
|
|
50207
|
+
async ping(): Promise<Systems.NullResult> {
|
|
50562
50208
|
var _resolve;
|
|
50563
50209
|
|
|
50564
|
-
var _promise = new Promise<Systems.
|
|
50210
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
50565
50211
|
_resolve = _r;
|
|
50566
50212
|
});
|
|
50567
50213
|
|
|
50568
50214
|
var _callbackPtr: number;
|
|
50569
50215
|
var _callback = (_stateObject__: number, result) => {
|
|
50570
50216
|
var _resultPtr = getNativePointer(result);
|
|
50571
|
-
var _resultInstance = new Systems.
|
|
50217
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
50572
50218
|
|
|
50573
50219
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50574
50220
|
return;
|
|
@@ -50582,7 +50228,7 @@ export namespace Systems {
|
|
|
50582
50228
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50583
50229
|
|
|
50584
50230
|
Module.ccall(
|
|
50585
|
-
"
|
|
50231
|
+
"csp_systems_UserSystem_Ping_void_NullResultCallback",
|
|
50586
50232
|
"void",
|
|
50587
50233
|
["number", "number", "number"],
|
|
50588
50234
|
[this.pointer, _callbackPtr, 0],
|
|
@@ -50599,17 +50245,17 @@ export namespace Systems {
|
|
|
50599
50245
|
|
|
50600
50246
|
async getAgoraUserToken(
|
|
50601
50247
|
params: Systems.AgoraUserTokenParams,
|
|
50602
|
-
): Promise<Systems.
|
|
50248
|
+
): Promise<Systems.StringResult> {
|
|
50603
50249
|
var _resolve;
|
|
50604
50250
|
|
|
50605
|
-
var _promise = new Promise<Systems.
|
|
50251
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
50606
50252
|
_resolve = _r;
|
|
50607
50253
|
});
|
|
50608
50254
|
|
|
50609
50255
|
var _callbackPtr: number;
|
|
50610
50256
|
var _callback = (_stateObject__: number, result) => {
|
|
50611
50257
|
var _resultPtr = getNativePointer(result);
|
|
50612
|
-
var _resultInstance = new Systems.
|
|
50258
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
50613
50259
|
|
|
50614
50260
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50615
50261
|
return;
|
|
@@ -50623,7 +50269,7 @@ export namespace Systems {
|
|
|
50623
50269
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50624
50270
|
|
|
50625
50271
|
Module.ccall(
|
|
50626
|
-
"
|
|
50272
|
+
"csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback",
|
|
50627
50273
|
"void",
|
|
50628
50274
|
["number", "number", "number", "number"],
|
|
50629
50275
|
[this.pointer, params.pointer, _callbackPtr, 0],
|
|
@@ -50681,19 +50327,17 @@ export namespace Systems {
|
|
|
50681
50327
|
* @param callback - Callback that contains the customer portal url of the user
|
|
50682
50328
|
*/
|
|
50683
50329
|
|
|
50684
|
-
async getCustomerPortalUrl(
|
|
50685
|
-
userId: string,
|
|
50686
|
-
): Promise<Systems.CustomerPortalUrlResult> {
|
|
50330
|
+
async getCustomerPortalUrl(userId: string): Promise<Systems.StringResult> {
|
|
50687
50331
|
var _resolve;
|
|
50688
50332
|
|
|
50689
|
-
var _promise = new Promise<Systems.
|
|
50333
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
50690
50334
|
_resolve = _r;
|
|
50691
50335
|
});
|
|
50692
50336
|
|
|
50693
50337
|
var _callbackPtr: number;
|
|
50694
50338
|
var _callback = (_stateObject__: number, result) => {
|
|
50695
50339
|
var _resultPtr = getNativePointer(result);
|
|
50696
|
-
var _resultInstance = new Systems.
|
|
50340
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
50697
50341
|
|
|
50698
50342
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50699
50343
|
return;
|
|
@@ -50707,7 +50351,7 @@ export namespace Systems {
|
|
|
50707
50351
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50708
50352
|
|
|
50709
50353
|
Module.ccall(
|
|
50710
|
-
"
|
|
50354
|
+
"csp_systems_UserSystem_GetCustomerPortalUrl_void_StringRC_StringResultCallback",
|
|
50711
50355
|
"void",
|
|
50712
50356
|
["number", "string", "number", "number"],
|
|
50713
50357
|
[this.pointer, userId, _callbackPtr, 0],
|
|
@@ -50724,17 +50368,17 @@ export namespace Systems {
|
|
|
50724
50368
|
|
|
50725
50369
|
async getCheckoutSessionUrl(
|
|
50726
50370
|
tier: Systems.TierNames,
|
|
50727
|
-
): Promise<Systems.
|
|
50371
|
+
): Promise<Systems.StringResult> {
|
|
50728
50372
|
var _resolve;
|
|
50729
50373
|
|
|
50730
|
-
var _promise = new Promise<Systems.
|
|
50374
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
50731
50375
|
_resolve = _r;
|
|
50732
50376
|
});
|
|
50733
50377
|
|
|
50734
50378
|
var _callbackPtr: number;
|
|
50735
50379
|
var _callback = (_stateObject__: number, result) => {
|
|
50736
50380
|
var _resultPtr = getNativePointer(result);
|
|
50737
|
-
var _resultInstance = new Systems.
|
|
50381
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
50738
50382
|
|
|
50739
50383
|
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
50740
50384
|
return;
|
|
@@ -50748,7 +50392,7 @@ export namespace Systems {
|
|
|
50748
50392
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
50749
50393
|
|
|
50750
50394
|
Module.ccall(
|
|
50751
|
-
"
|
|
50395
|
+
"csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNames_StringResultCallback",
|
|
50752
50396
|
"void",
|
|
50753
50397
|
["number", "number", "number", "number"],
|
|
50754
50398
|
[this.pointer, tier, _callbackPtr, 0],
|
|
@@ -50914,6 +50558,24 @@ export namespace Common {
|
|
|
50914
50558
|
return _inst;
|
|
50915
50559
|
}
|
|
50916
50560
|
|
|
50561
|
+
static ofcsp_systems_EAssetCollectionType(): Array<Systems.EAssetCollectionType> {
|
|
50562
|
+
var _ret = Module._malloc(8);
|
|
50563
|
+
Module.ccall(
|
|
50564
|
+
"csp_common_Array_Ctor_csp_systems_EAssetCollectionType",
|
|
50565
|
+
"void",
|
|
50566
|
+
["number"],
|
|
50567
|
+
[_ret],
|
|
50568
|
+
);
|
|
50569
|
+
var _inst = new Array<Systems.EAssetCollectionType>(
|
|
50570
|
+
getNativePointer(_ret),
|
|
50571
|
+
csp_systems_EAssetCollectionTypeFactory,
|
|
50572
|
+
"csp_systems_EAssetCollectionType",
|
|
50573
|
+
);
|
|
50574
|
+
Module._free(_ret);
|
|
50575
|
+
|
|
50576
|
+
return _inst;
|
|
50577
|
+
}
|
|
50578
|
+
|
|
50917
50579
|
static ofcsp_systems_EAssetType(): Array<Systems.EAssetType> {
|
|
50918
50580
|
var _ret = Module._malloc(8);
|
|
50919
50581
|
Module.ccall(
|
|
@@ -51528,6 +51190,26 @@ export namespace Common {
|
|
|
51528
51190
|
return _inst;
|
|
51529
51191
|
}
|
|
51530
51192
|
|
|
51193
|
+
static ofcsp_systems_EAssetCollectionType_number(
|
|
51194
|
+
size: number,
|
|
51195
|
+
): Array<Systems.EAssetCollectionType> {
|
|
51196
|
+
var _ret = Module._malloc(8);
|
|
51197
|
+
Module.ccall(
|
|
51198
|
+
"csp_common_Array_Conv_size_tC_csp_systems_EAssetCollectionType",
|
|
51199
|
+
"void",
|
|
51200
|
+
["number", "number"],
|
|
51201
|
+
[_ret, size],
|
|
51202
|
+
);
|
|
51203
|
+
var _inst = new Array<Systems.EAssetCollectionType>(
|
|
51204
|
+
getNativePointer(_ret),
|
|
51205
|
+
csp_systems_EAssetCollectionTypeFactory,
|
|
51206
|
+
"csp_systems_EAssetCollectionType",
|
|
51207
|
+
);
|
|
51208
|
+
Module._free(_ret);
|
|
51209
|
+
|
|
51210
|
+
return _inst;
|
|
51211
|
+
}
|
|
51212
|
+
|
|
51531
51213
|
static ofcsp_systems_EAssetType_number(
|
|
51532
51214
|
size: number,
|
|
51533
51215
|
): Array<Systems.EAssetType> {
|