connected-spaces-platform.web 4.14.0 → 4.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Debug/ConnectedSpacesPlatform_WASM.js +145 -3
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +250 -0
- package/connectedspacesplatform.js +701 -0
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1342 -0
- package/package.json +1 -1
|
@@ -787,6 +787,28 @@ function csp_systems_LogLevelFactory(
|
|
|
787
787
|
}
|
|
788
788
|
ProxyClassFactories["csp_systems_LogLevel"] = csp_systems_LogLevelFactory;
|
|
789
789
|
|
|
790
|
+
function csp_systems_PeriodEnumFactory(
|
|
791
|
+
nativePointer: NativePointer,
|
|
792
|
+
): Systems.PeriodEnum {
|
|
793
|
+
return nativePointer.pointer as Systems.PeriodEnum;
|
|
794
|
+
}
|
|
795
|
+
ProxyClassFactories["csp_systems_PeriodEnum"] = csp_systems_PeriodEnumFactory;
|
|
796
|
+
|
|
797
|
+
function csp_systems_TierFeaturesFactory(
|
|
798
|
+
nativePointer: NativePointer,
|
|
799
|
+
): Systems.TierFeatures {
|
|
800
|
+
return nativePointer.pointer as Systems.TierFeatures;
|
|
801
|
+
}
|
|
802
|
+
ProxyClassFactories["csp_systems_TierFeatures"] =
|
|
803
|
+
csp_systems_TierFeaturesFactory;
|
|
804
|
+
|
|
805
|
+
function csp_systems_TierNamesFactory(
|
|
806
|
+
nativePointer: NativePointer,
|
|
807
|
+
): Systems.TierNames {
|
|
808
|
+
return nativePointer.pointer as Systems.TierNames;
|
|
809
|
+
}
|
|
810
|
+
ProxyClassFactories["csp_systems_TierNames"] = csp_systems_TierNamesFactory;
|
|
811
|
+
|
|
790
812
|
function csp_systems_SpaceAttributesFactory(
|
|
791
813
|
nativePointer: NativePointer,
|
|
792
814
|
): Systems.SpaceAttributes {
|
|
@@ -1232,6 +1254,30 @@ function csp_systems_MaintenanceInfoFactory(
|
|
|
1232
1254
|
ProxyClassFactories["csp_systems_MaintenanceInfo"] =
|
|
1233
1255
|
csp_systems_MaintenanceInfoFactory;
|
|
1234
1256
|
|
|
1257
|
+
function csp_systems_FeatureLimitInfoFactory(
|
|
1258
|
+
nativePointer: NativePointer,
|
|
1259
|
+
): NativeClassWrapper {
|
|
1260
|
+
return new Systems.FeatureLimitInfo(nativePointer);
|
|
1261
|
+
}
|
|
1262
|
+
ProxyClassFactories["csp_systems_FeatureLimitInfo"] =
|
|
1263
|
+
csp_systems_FeatureLimitInfoFactory;
|
|
1264
|
+
|
|
1265
|
+
function csp_systems_UserTierInfoFactory(
|
|
1266
|
+
nativePointer: NativePointer,
|
|
1267
|
+
): NativeClassWrapper {
|
|
1268
|
+
return new Systems.UserTierInfo(nativePointer);
|
|
1269
|
+
}
|
|
1270
|
+
ProxyClassFactories["csp_systems_UserTierInfo"] =
|
|
1271
|
+
csp_systems_UserTierInfoFactory;
|
|
1272
|
+
|
|
1273
|
+
function csp_systems_FeatureQuotaInfoFactory(
|
|
1274
|
+
nativePointer: NativePointer,
|
|
1275
|
+
): NativeClassWrapper {
|
|
1276
|
+
return new Systems.FeatureQuotaInfo(nativePointer);
|
|
1277
|
+
}
|
|
1278
|
+
ProxyClassFactories["csp_systems_FeatureQuotaInfo"] =
|
|
1279
|
+
csp_systems_FeatureQuotaInfoFactory;
|
|
1280
|
+
|
|
1235
1281
|
function csp_systems_ScriptSystemFactory(
|
|
1236
1282
|
nativePointer: NativePointer,
|
|
1237
1283
|
): NativeClassWrapper {
|
|
@@ -1813,6 +1859,53 @@ function csp_systems_MaintenanceSystemFactory(
|
|
|
1813
1859
|
ProxyClassFactories["csp_systems_MaintenanceSystem"] =
|
|
1814
1860
|
csp_systems_MaintenanceSystemFactory;
|
|
1815
1861
|
|
|
1862
|
+
function csp_systems_FeaturesLimitResultFactory(
|
|
1863
|
+
nativePointer: NativePointer,
|
|
1864
|
+
): NativeClassWrapper {
|
|
1865
|
+
return new Systems.FeaturesLimitResult(nativePointer);
|
|
1866
|
+
}
|
|
1867
|
+
ProxyClassFactories["csp_systems_FeaturesLimitResult"] =
|
|
1868
|
+
csp_systems_FeaturesLimitResultFactory;
|
|
1869
|
+
|
|
1870
|
+
function csp_systems_FeatureLimitResultFactory(
|
|
1871
|
+
nativePointer: NativePointer,
|
|
1872
|
+
): NativeClassWrapper {
|
|
1873
|
+
return new Systems.FeatureLimitResult(nativePointer);
|
|
1874
|
+
}
|
|
1875
|
+
ProxyClassFactories["csp_systems_FeatureLimitResult"] =
|
|
1876
|
+
csp_systems_FeatureLimitResultFactory;
|
|
1877
|
+
|
|
1878
|
+
function csp_systems_UserTierResultFactory(
|
|
1879
|
+
nativePointer: NativePointer,
|
|
1880
|
+
): NativeClassWrapper {
|
|
1881
|
+
return new Systems.UserTierResult(nativePointer);
|
|
1882
|
+
}
|
|
1883
|
+
ProxyClassFactories["csp_systems_UserTierResult"] =
|
|
1884
|
+
csp_systems_UserTierResultFactory;
|
|
1885
|
+
|
|
1886
|
+
function csp_systems_FeatureQuotaResultFactory(
|
|
1887
|
+
nativePointer: NativePointer,
|
|
1888
|
+
): NativeClassWrapper {
|
|
1889
|
+
return new Systems.FeatureQuotaResult(nativePointer);
|
|
1890
|
+
}
|
|
1891
|
+
ProxyClassFactories["csp_systems_FeatureQuotaResult"] =
|
|
1892
|
+
csp_systems_FeatureQuotaResultFactory;
|
|
1893
|
+
|
|
1894
|
+
function csp_systems_FeaturesQuotaResultFactory(
|
|
1895
|
+
nativePointer: NativePointer,
|
|
1896
|
+
): NativeClassWrapper {
|
|
1897
|
+
return new Systems.FeaturesQuotaResult(nativePointer);
|
|
1898
|
+
}
|
|
1899
|
+
ProxyClassFactories["csp_systems_FeaturesQuotaResult"] =
|
|
1900
|
+
csp_systems_FeaturesQuotaResultFactory;
|
|
1901
|
+
|
|
1902
|
+
function csp_systems_QuotaSystemFactory(
|
|
1903
|
+
nativePointer: NativePointer,
|
|
1904
|
+
): NativeClassWrapper {
|
|
1905
|
+
return new Systems.QuotaSystem(nativePointer);
|
|
1906
|
+
}
|
|
1907
|
+
ProxyClassFactories["csp_systems_QuotaSystem"] = csp_systems_QuotaSystemFactory;
|
|
1908
|
+
|
|
1816
1909
|
function csp_systems_SettingsCollectionResultFactory(
|
|
1817
1910
|
nativePointer: NativePointer,
|
|
1818
1911
|
): NativeClassWrapper {
|
|
@@ -2257,6 +2350,42 @@ function csp_common_Array_csp_systems_MaintenanceInfoFactory(
|
|
|
2257
2350
|
ProxyClassFactories["csp_common_Array_csp_systems_MaintenanceInfo"] =
|
|
2258
2351
|
csp_common_Array_csp_systems_MaintenanceInfoFactory;
|
|
2259
2352
|
|
|
2353
|
+
function csp_common_Array_csp_systems_FeatureLimitInfoFactory(
|
|
2354
|
+
nativePointer: NativePointer,
|
|
2355
|
+
): NativeClassWrapper {
|
|
2356
|
+
return new Common.Array<Systems.FeatureLimitInfo>(
|
|
2357
|
+
nativePointer,
|
|
2358
|
+
csp_systems_FeatureLimitInfoFactory,
|
|
2359
|
+
"csp_systems_FeatureLimitInfo",
|
|
2360
|
+
);
|
|
2361
|
+
}
|
|
2362
|
+
ProxyClassFactories["csp_common_Array_csp_systems_FeatureLimitInfo"] =
|
|
2363
|
+
csp_common_Array_csp_systems_FeatureLimitInfoFactory;
|
|
2364
|
+
|
|
2365
|
+
function csp_common_Array_csp_systems_FeatureQuotaInfoFactory(
|
|
2366
|
+
nativePointer: NativePointer,
|
|
2367
|
+
): NativeClassWrapper {
|
|
2368
|
+
return new Common.Array<Systems.FeatureQuotaInfo>(
|
|
2369
|
+
nativePointer,
|
|
2370
|
+
csp_systems_FeatureQuotaInfoFactory,
|
|
2371
|
+
"csp_systems_FeatureQuotaInfo",
|
|
2372
|
+
);
|
|
2373
|
+
}
|
|
2374
|
+
ProxyClassFactories["csp_common_Array_csp_systems_FeatureQuotaInfo"] =
|
|
2375
|
+
csp_common_Array_csp_systems_FeatureQuotaInfoFactory;
|
|
2376
|
+
|
|
2377
|
+
function csp_common_Array_csp_systems_TierFeaturesFactory(
|
|
2378
|
+
nativePointer: NativePointer,
|
|
2379
|
+
): NativeClassWrapper {
|
|
2380
|
+
return new Common.Array<Systems.TierFeatures>(
|
|
2381
|
+
nativePointer,
|
|
2382
|
+
csp_systems_TierFeaturesFactory,
|
|
2383
|
+
"csp_systems_TierFeatures",
|
|
2384
|
+
);
|
|
2385
|
+
}
|
|
2386
|
+
ProxyClassFactories["csp_common_Array_csp_systems_TierFeatures"] =
|
|
2387
|
+
csp_common_Array_csp_systems_TierFeaturesFactory;
|
|
2388
|
+
|
|
2260
2389
|
function csp_common_Array_csp_systems_SiteFactory(
|
|
2261
2390
|
nativePointer: NativePointer,
|
|
2262
2391
|
): NativeClassWrapper {
|
|
@@ -3337,6 +3466,41 @@ export namespace Systems {
|
|
|
3337
3466
|
}
|
|
3338
3467
|
}
|
|
3339
3468
|
|
|
3469
|
+
export namespace Systems {
|
|
3470
|
+
/**
|
|
3471
|
+
@ingroup Quota System
|
|
3472
|
+
* @description Data representation period of time.
|
|
3473
|
+
*/
|
|
3474
|
+
export enum PeriodEnum {
|
|
3475
|
+
Total,
|
|
3476
|
+
CalendarMonth,
|
|
3477
|
+
Hours24,
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
export namespace Systems {
|
|
3482
|
+
export enum TierFeatures {
|
|
3483
|
+
SpaceOwner = 0,
|
|
3484
|
+
ScopeConcurrentUsers,
|
|
3485
|
+
ObjectCaptureUpload,
|
|
3486
|
+
AudioVideoUpload,
|
|
3487
|
+
TotalUploadSizeInKilobytes,
|
|
3488
|
+
Agora,
|
|
3489
|
+
OpenAI,
|
|
3490
|
+
Shopify,
|
|
3491
|
+
TicketedSpace,
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
export namespace Systems {
|
|
3496
|
+
export enum TierNames {
|
|
3497
|
+
Basic = 0,
|
|
3498
|
+
Premium,
|
|
3499
|
+
Pro,
|
|
3500
|
+
Enterprise,
|
|
3501
|
+
}
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3340
3504
|
export namespace Systems {
|
|
3341
3505
|
export enum SpaceAttributes {
|
|
3342
3506
|
None = 0,
|
|
@@ -4129,6 +4293,26 @@ export class EndpointURIs
|
|
|
4129
4293
|
[this.pointer, value],
|
|
4130
4294
|
);
|
|
4131
4295
|
}
|
|
4296
|
+
|
|
4297
|
+
get trackingServiceURI(): string {
|
|
4298
|
+
let _result = Module.ccall(
|
|
4299
|
+
"csp_EndpointURIs__Get_TrackingServiceURI",
|
|
4300
|
+
"string",
|
|
4301
|
+
["number"],
|
|
4302
|
+
[this.pointer],
|
|
4303
|
+
);
|
|
4304
|
+
|
|
4305
|
+
return _result;
|
|
4306
|
+
}
|
|
4307
|
+
|
|
4308
|
+
set trackingServiceURI(value: string) {
|
|
4309
|
+
Module.ccall(
|
|
4310
|
+
"csp_EndpointURIs__Set_TrackingServiceURI",
|
|
4311
|
+
"void",
|
|
4312
|
+
["number", "string"],
|
|
4313
|
+
[this.pointer, value],
|
|
4314
|
+
);
|
|
4315
|
+
}
|
|
4132
4316
|
}
|
|
4133
4317
|
|
|
4134
4318
|
/**
|
|
@@ -25387,6 +25571,26 @@ export namespace Systems {
|
|
|
25387
25571
|
|
|
25388
25572
|
return _nPtr;
|
|
25389
25573
|
}
|
|
25574
|
+
|
|
25575
|
+
/**
|
|
25576
|
+
* @description Retrieves the Quota system.
|
|
25577
|
+
* @return Pointer to the quota system class
|
|
25578
|
+
*/
|
|
25579
|
+
|
|
25580
|
+
getQuotaSystem(): Systems.QuotaSystem {
|
|
25581
|
+
var _ret = Module._malloc(8);
|
|
25582
|
+
|
|
25583
|
+
Module.ccall(
|
|
25584
|
+
"csp_systems_SystemsManager_GetQuotaSystem_QuotaSystemP",
|
|
25585
|
+
"void",
|
|
25586
|
+
["number", "number"],
|
|
25587
|
+
[_ret, this.pointer],
|
|
25588
|
+
);
|
|
25589
|
+
var _nPtr = new Systems.QuotaSystem(getNativePointer(_ret));
|
|
25590
|
+
Module._free(_ret);
|
|
25591
|
+
|
|
25592
|
+
return _nPtr;
|
|
25593
|
+
}
|
|
25390
25594
|
}
|
|
25391
25595
|
}
|
|
25392
25596
|
|
|
@@ -28634,6 +28838,349 @@ export namespace Systems {
|
|
|
28634
28838
|
}
|
|
28635
28839
|
}
|
|
28636
28840
|
|
|
28841
|
+
export namespace Systems {
|
|
28842
|
+
/**
|
|
28843
|
+
@ingroup Quota System
|
|
28844
|
+
* @description Data representation of a progress of a specific feature.
|
|
28845
|
+
* Limit Value of -1 means unlimited usage
|
|
28846
|
+
*/
|
|
28847
|
+
export class FeatureLimitInfo
|
|
28848
|
+
extends NativeClassWrapper
|
|
28849
|
+
implements INativeResource
|
|
28850
|
+
{
|
|
28851
|
+
/** @internal */
|
|
28852
|
+
constructor(pointer: NativePointer) {
|
|
28853
|
+
super(pointer);
|
|
28854
|
+
}
|
|
28855
|
+
|
|
28856
|
+
static create(): FeatureLimitInfo {
|
|
28857
|
+
var _ptr = Module._malloc(8);
|
|
28858
|
+
Module.ccall(
|
|
28859
|
+
"csp_systems_FeatureLimitInfo_Ctor",
|
|
28860
|
+
"void",
|
|
28861
|
+
["number"],
|
|
28862
|
+
[_ptr],
|
|
28863
|
+
);
|
|
28864
|
+
var _nPtr = getNativePointer(_ptr);
|
|
28865
|
+
|
|
28866
|
+
return new FeatureLimitInfo(_nPtr);
|
|
28867
|
+
}
|
|
28868
|
+
|
|
28869
|
+
delete(): void {
|
|
28870
|
+
if (this.ownsPointer && !this.disposed) {
|
|
28871
|
+
Module.ccall(
|
|
28872
|
+
"csp_systems_FeatureLimitInfo_Dtor",
|
|
28873
|
+
"void",
|
|
28874
|
+
["number"],
|
|
28875
|
+
[this.pointer],
|
|
28876
|
+
);
|
|
28877
|
+
|
|
28878
|
+
this.disposed = true;
|
|
28879
|
+
}
|
|
28880
|
+
}
|
|
28881
|
+
|
|
28882
|
+
get featureName(): Systems.TierFeatures {
|
|
28883
|
+
let _result = Module.ccall(
|
|
28884
|
+
"csp_systems_FeatureLimitInfo__Get_FeatureName",
|
|
28885
|
+
"number",
|
|
28886
|
+
["number"],
|
|
28887
|
+
[this.pointer],
|
|
28888
|
+
);
|
|
28889
|
+
|
|
28890
|
+
return _result;
|
|
28891
|
+
}
|
|
28892
|
+
|
|
28893
|
+
set featureName(value: Systems.TierFeatures) {
|
|
28894
|
+
Module.ccall(
|
|
28895
|
+
"csp_systems_FeatureLimitInfo__Set_FeatureName",
|
|
28896
|
+
"void",
|
|
28897
|
+
["number", "number"],
|
|
28898
|
+
[this.pointer, value],
|
|
28899
|
+
);
|
|
28900
|
+
}
|
|
28901
|
+
|
|
28902
|
+
get activityCount(): number {
|
|
28903
|
+
let _result = Module.ccall(
|
|
28904
|
+
"csp_systems_FeatureLimitInfo__Get_ActivityCount",
|
|
28905
|
+
"number",
|
|
28906
|
+
["number"],
|
|
28907
|
+
[this.pointer],
|
|
28908
|
+
);
|
|
28909
|
+
|
|
28910
|
+
return _result;
|
|
28911
|
+
}
|
|
28912
|
+
|
|
28913
|
+
set activityCount(value: number) {
|
|
28914
|
+
Module.ccall(
|
|
28915
|
+
"csp_systems_FeatureLimitInfo__Set_ActivityCount",
|
|
28916
|
+
"void",
|
|
28917
|
+
["number", "number"],
|
|
28918
|
+
[this.pointer, value],
|
|
28919
|
+
);
|
|
28920
|
+
}
|
|
28921
|
+
|
|
28922
|
+
get limit(): number {
|
|
28923
|
+
let _result = Module.ccall(
|
|
28924
|
+
"csp_systems_FeatureLimitInfo__Get_Limit",
|
|
28925
|
+
"number",
|
|
28926
|
+
["number"],
|
|
28927
|
+
[this.pointer],
|
|
28928
|
+
);
|
|
28929
|
+
|
|
28930
|
+
return _result;
|
|
28931
|
+
}
|
|
28932
|
+
|
|
28933
|
+
set limit(value: number) {
|
|
28934
|
+
Module.ccall(
|
|
28935
|
+
"csp_systems_FeatureLimitInfo__Set_Limit",
|
|
28936
|
+
"void",
|
|
28937
|
+
["number", "number"],
|
|
28938
|
+
[this.pointer, value],
|
|
28939
|
+
);
|
|
28940
|
+
}
|
|
28941
|
+
}
|
|
28942
|
+
}
|
|
28943
|
+
|
|
28944
|
+
export namespace Systems {
|
|
28945
|
+
/**
|
|
28946
|
+
@ingroup Quota System
|
|
28947
|
+
* @description Data representation of a progress of a specific feature.
|
|
28948
|
+
*/
|
|
28949
|
+
export class UserTierInfo
|
|
28950
|
+
extends NativeClassWrapper
|
|
28951
|
+
implements INativeResource
|
|
28952
|
+
{
|
|
28953
|
+
/** @internal */
|
|
28954
|
+
constructor(pointer: NativePointer) {
|
|
28955
|
+
super(pointer);
|
|
28956
|
+
}
|
|
28957
|
+
|
|
28958
|
+
static create(): UserTierInfo {
|
|
28959
|
+
var _ptr = Module._malloc(8);
|
|
28960
|
+
Module.ccall("csp_systems_UserTierInfo_Ctor", "void", ["number"], [_ptr]);
|
|
28961
|
+
var _nPtr = getNativePointer(_ptr);
|
|
28962
|
+
|
|
28963
|
+
return new UserTierInfo(_nPtr);
|
|
28964
|
+
}
|
|
28965
|
+
|
|
28966
|
+
delete(): void {
|
|
28967
|
+
if (this.ownsPointer && !this.disposed) {
|
|
28968
|
+
Module.ccall(
|
|
28969
|
+
"csp_systems_UserTierInfo_Dtor",
|
|
28970
|
+
"void",
|
|
28971
|
+
["number"],
|
|
28972
|
+
[this.pointer],
|
|
28973
|
+
);
|
|
28974
|
+
|
|
28975
|
+
this.disposed = true;
|
|
28976
|
+
}
|
|
28977
|
+
}
|
|
28978
|
+
|
|
28979
|
+
get assignToType(): string {
|
|
28980
|
+
let _result = Module.ccall(
|
|
28981
|
+
"csp_systems_UserTierInfo__Get_AssignToType",
|
|
28982
|
+
"string",
|
|
28983
|
+
["number"],
|
|
28984
|
+
[this.pointer],
|
|
28985
|
+
);
|
|
28986
|
+
|
|
28987
|
+
return _result;
|
|
28988
|
+
}
|
|
28989
|
+
|
|
28990
|
+
set assignToType(value: string) {
|
|
28991
|
+
Module.ccall(
|
|
28992
|
+
"csp_systems_UserTierInfo__Set_AssignToType",
|
|
28993
|
+
"void",
|
|
28994
|
+
["number", "string"],
|
|
28995
|
+
[this.pointer, value],
|
|
28996
|
+
);
|
|
28997
|
+
}
|
|
28998
|
+
|
|
28999
|
+
get assignToId(): string {
|
|
29000
|
+
let _result = Module.ccall(
|
|
29001
|
+
"csp_systems_UserTierInfo__Get_AssignToId",
|
|
29002
|
+
"string",
|
|
29003
|
+
["number"],
|
|
29004
|
+
[this.pointer],
|
|
29005
|
+
);
|
|
29006
|
+
|
|
29007
|
+
return _result;
|
|
29008
|
+
}
|
|
29009
|
+
|
|
29010
|
+
set assignToId(value: string) {
|
|
29011
|
+
Module.ccall(
|
|
29012
|
+
"csp_systems_UserTierInfo__Set_AssignToId",
|
|
29013
|
+
"void",
|
|
29014
|
+
["number", "string"],
|
|
29015
|
+
[this.pointer, value],
|
|
29016
|
+
);
|
|
29017
|
+
}
|
|
29018
|
+
|
|
29019
|
+
get tierName(): Systems.TierNames {
|
|
29020
|
+
let _result = Module.ccall(
|
|
29021
|
+
"csp_systems_UserTierInfo__Get_TierName",
|
|
29022
|
+
"number",
|
|
29023
|
+
["number"],
|
|
29024
|
+
[this.pointer],
|
|
29025
|
+
);
|
|
29026
|
+
|
|
29027
|
+
return _result;
|
|
29028
|
+
}
|
|
29029
|
+
|
|
29030
|
+
set tierName(value: Systems.TierNames) {
|
|
29031
|
+
Module.ccall(
|
|
29032
|
+
"csp_systems_UserTierInfo__Set_TierName",
|
|
29033
|
+
"void",
|
|
29034
|
+
["number", "number"],
|
|
29035
|
+
[this.pointer, value],
|
|
29036
|
+
);
|
|
29037
|
+
}
|
|
29038
|
+
}
|
|
29039
|
+
}
|
|
29040
|
+
|
|
29041
|
+
export namespace Systems {
|
|
29042
|
+
/**
|
|
29043
|
+
@ingroup Quota System
|
|
29044
|
+
* @description Data representation of a progress of a specific feature.
|
|
29045
|
+
* Limit Value of -1 means unlimited usage
|
|
29046
|
+
*/
|
|
29047
|
+
export class FeatureQuotaInfo
|
|
29048
|
+
extends NativeClassWrapper
|
|
29049
|
+
implements INativeResource
|
|
29050
|
+
{
|
|
29051
|
+
/** @internal */
|
|
29052
|
+
constructor(pointer: NativePointer) {
|
|
29053
|
+
super(pointer);
|
|
29054
|
+
}
|
|
29055
|
+
|
|
29056
|
+
static create(): FeatureQuotaInfo {
|
|
29057
|
+
var _ptr = Module._malloc(8);
|
|
29058
|
+
Module.ccall(
|
|
29059
|
+
"csp_systems_FeatureQuotaInfo_Ctor",
|
|
29060
|
+
"void",
|
|
29061
|
+
["number"],
|
|
29062
|
+
[_ptr],
|
|
29063
|
+
);
|
|
29064
|
+
var _nPtr = getNativePointer(_ptr);
|
|
29065
|
+
|
|
29066
|
+
return new FeatureQuotaInfo(_nPtr);
|
|
29067
|
+
}
|
|
29068
|
+
|
|
29069
|
+
delete(): void {
|
|
29070
|
+
if (this.ownsPointer && !this.disposed) {
|
|
29071
|
+
Module.ccall(
|
|
29072
|
+
"csp_systems_FeatureQuotaInfo_Dtor",
|
|
29073
|
+
"void",
|
|
29074
|
+
["number"],
|
|
29075
|
+
[this.pointer],
|
|
29076
|
+
);
|
|
29077
|
+
|
|
29078
|
+
this.disposed = true;
|
|
29079
|
+
}
|
|
29080
|
+
}
|
|
29081
|
+
|
|
29082
|
+
get featureName(): Systems.TierFeatures {
|
|
29083
|
+
let _result = Module.ccall(
|
|
29084
|
+
"csp_systems_FeatureQuotaInfo__Get_FeatureName",
|
|
29085
|
+
"number",
|
|
29086
|
+
["number"],
|
|
29087
|
+
[this.pointer],
|
|
29088
|
+
);
|
|
29089
|
+
|
|
29090
|
+
return _result;
|
|
29091
|
+
}
|
|
29092
|
+
|
|
29093
|
+
set featureName(value: Systems.TierFeatures) {
|
|
29094
|
+
Module.ccall(
|
|
29095
|
+
"csp_systems_FeatureQuotaInfo__Set_FeatureName",
|
|
29096
|
+
"void",
|
|
29097
|
+
["number", "number"],
|
|
29098
|
+
[this.pointer, value],
|
|
29099
|
+
);
|
|
29100
|
+
}
|
|
29101
|
+
|
|
29102
|
+
get tierName(): Systems.TierNames {
|
|
29103
|
+
let _result = Module.ccall(
|
|
29104
|
+
"csp_systems_FeatureQuotaInfo__Get_TierName",
|
|
29105
|
+
"number",
|
|
29106
|
+
["number"],
|
|
29107
|
+
[this.pointer],
|
|
29108
|
+
);
|
|
29109
|
+
|
|
29110
|
+
return _result;
|
|
29111
|
+
}
|
|
29112
|
+
|
|
29113
|
+
set tierName(value: Systems.TierNames) {
|
|
29114
|
+
Module.ccall(
|
|
29115
|
+
"csp_systems_FeatureQuotaInfo__Set_TierName",
|
|
29116
|
+
"void",
|
|
29117
|
+
["number", "number"],
|
|
29118
|
+
[this.pointer, value],
|
|
29119
|
+
);
|
|
29120
|
+
}
|
|
29121
|
+
|
|
29122
|
+
get limit(): number {
|
|
29123
|
+
let _result = Module.ccall(
|
|
29124
|
+
"csp_systems_FeatureQuotaInfo__Get_Limit",
|
|
29125
|
+
"number",
|
|
29126
|
+
["number"],
|
|
29127
|
+
[this.pointer],
|
|
29128
|
+
);
|
|
29129
|
+
|
|
29130
|
+
return _result;
|
|
29131
|
+
}
|
|
29132
|
+
|
|
29133
|
+
set limit(value: number) {
|
|
29134
|
+
Module.ccall(
|
|
29135
|
+
"csp_systems_FeatureQuotaInfo__Set_Limit",
|
|
29136
|
+
"void",
|
|
29137
|
+
["number", "number"],
|
|
29138
|
+
[this.pointer, value],
|
|
29139
|
+
);
|
|
29140
|
+
}
|
|
29141
|
+
|
|
29142
|
+
get period(): Systems.PeriodEnum {
|
|
29143
|
+
let _result = Module.ccall(
|
|
29144
|
+
"csp_systems_FeatureQuotaInfo__Get_Period",
|
|
29145
|
+
"number",
|
|
29146
|
+
["number"],
|
|
29147
|
+
[this.pointer],
|
|
29148
|
+
);
|
|
29149
|
+
|
|
29150
|
+
return _result;
|
|
29151
|
+
}
|
|
29152
|
+
|
|
29153
|
+
set period(value: Systems.PeriodEnum) {
|
|
29154
|
+
Module.ccall(
|
|
29155
|
+
"csp_systems_FeatureQuotaInfo__Set_Period",
|
|
29156
|
+
"void",
|
|
29157
|
+
["number", "number"],
|
|
29158
|
+
[this.pointer, value],
|
|
29159
|
+
);
|
|
29160
|
+
}
|
|
29161
|
+
|
|
29162
|
+
get allowReductions(): boolean {
|
|
29163
|
+
let _result = Module.ccall(
|
|
29164
|
+
"csp_systems_FeatureQuotaInfo__Get_AllowReductions",
|
|
29165
|
+
"boolean",
|
|
29166
|
+
["number"],
|
|
29167
|
+
[this.pointer],
|
|
29168
|
+
);
|
|
29169
|
+
|
|
29170
|
+
return _result;
|
|
29171
|
+
}
|
|
29172
|
+
|
|
29173
|
+
set allowReductions(value: boolean) {
|
|
29174
|
+
Module.ccall(
|
|
29175
|
+
"csp_systems_FeatureQuotaInfo__Set_AllowReductions",
|
|
29176
|
+
"void",
|
|
29177
|
+
["number", "boolean"],
|
|
29178
|
+
[this.pointer, value],
|
|
29179
|
+
);
|
|
29180
|
+
}
|
|
29181
|
+
}
|
|
29182
|
+
}
|
|
29183
|
+
|
|
28637
29184
|
export namespace Systems {
|
|
28638
29185
|
/**
|
|
28639
29186
|
* @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
|
|
@@ -43410,6 +43957,687 @@ export namespace Systems {
|
|
|
43410
43957
|
}
|
|
43411
43958
|
}
|
|
43412
43959
|
|
|
43960
|
+
export namespace Systems {
|
|
43961
|
+
/**
|
|
43962
|
+
@ingroup Quota System
|
|
43963
|
+
* @description Data class used to contain information when receiving an array of feature progress.
|
|
43964
|
+
*/
|
|
43965
|
+
export class FeaturesLimitResult
|
|
43966
|
+
extends Services.ResultBase
|
|
43967
|
+
implements INativeResource
|
|
43968
|
+
{
|
|
43969
|
+
/** @internal */
|
|
43970
|
+
constructor(pointer: NativePointer) {
|
|
43971
|
+
super(pointer);
|
|
43972
|
+
}
|
|
43973
|
+
|
|
43974
|
+
static fromResultBase(
|
|
43975
|
+
baseInstance: Services.ResultBase,
|
|
43976
|
+
): Systems.FeaturesLimitResult {
|
|
43977
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
43978
|
+
return new Systems.FeaturesLimitResult(
|
|
43979
|
+
new NativePointer(
|
|
43980
|
+
nativeClassWrapper.pointer,
|
|
43981
|
+
nativeClassWrapper.ownsPointer,
|
|
43982
|
+
),
|
|
43983
|
+
);
|
|
43984
|
+
}
|
|
43985
|
+
|
|
43986
|
+
/**
|
|
43987
|
+
* @description Retrieves the feature progress result.
|
|
43988
|
+
* @return Const array of feature progress class
|
|
43989
|
+
*/
|
|
43990
|
+
|
|
43991
|
+
getFeaturesLimitInfo(): Common.Array<Systems.FeatureLimitInfo> {
|
|
43992
|
+
var _ret = Module._malloc(8);
|
|
43993
|
+
|
|
43994
|
+
Module.ccall(
|
|
43995
|
+
"csp_systems_FeaturesLimitResult_GetFeaturesLimitInfoC_ArrayRC",
|
|
43996
|
+
"void",
|
|
43997
|
+
["number", "number"],
|
|
43998
|
+
[_ret, this.pointer],
|
|
43999
|
+
);
|
|
44000
|
+
var _nPtr = new Common.Array<Systems.FeatureLimitInfo>(
|
|
44001
|
+
getNativePointer(_ret),
|
|
44002
|
+
csp_systems_FeatureLimitInfoFactory,
|
|
44003
|
+
"csp_systems_FeatureLimitInfo",
|
|
44004
|
+
);
|
|
44005
|
+
Module._free(_ret);
|
|
44006
|
+
|
|
44007
|
+
return _nPtr;
|
|
44008
|
+
}
|
|
44009
|
+
|
|
44010
|
+
delete(): void {
|
|
44011
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44012
|
+
Module.ccall(
|
|
44013
|
+
"csp_systems_FeaturesLimitResult_Dtor",
|
|
44014
|
+
"void",
|
|
44015
|
+
["number"],
|
|
44016
|
+
[this.pointer],
|
|
44017
|
+
);
|
|
44018
|
+
|
|
44019
|
+
this.disposed = true;
|
|
44020
|
+
}
|
|
44021
|
+
}
|
|
44022
|
+
}
|
|
44023
|
+
}
|
|
44024
|
+
|
|
44025
|
+
export namespace Systems {
|
|
44026
|
+
/**
|
|
44027
|
+
@ingroup Quota System
|
|
44028
|
+
* @description Data class used to contain information when receiving an array of feature progresses.
|
|
44029
|
+
*/
|
|
44030
|
+
export class FeatureLimitResult
|
|
44031
|
+
extends Services.ResultBase
|
|
44032
|
+
implements INativeResource
|
|
44033
|
+
{
|
|
44034
|
+
/** @internal */
|
|
44035
|
+
constructor(pointer: NativePointer) {
|
|
44036
|
+
super(pointer);
|
|
44037
|
+
}
|
|
44038
|
+
|
|
44039
|
+
static fromResultBase(
|
|
44040
|
+
baseInstance: Services.ResultBase,
|
|
44041
|
+
): Systems.FeatureLimitResult {
|
|
44042
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44043
|
+
return new Systems.FeatureLimitResult(
|
|
44044
|
+
new NativePointer(
|
|
44045
|
+
nativeClassWrapper.pointer,
|
|
44046
|
+
nativeClassWrapper.ownsPointer,
|
|
44047
|
+
),
|
|
44048
|
+
);
|
|
44049
|
+
}
|
|
44050
|
+
|
|
44051
|
+
/**
|
|
44052
|
+
* @description Retrieves the feature progress result.
|
|
44053
|
+
@returnFeatureProgress : const ref to feature progress class
|
|
44054
|
+
*/
|
|
44055
|
+
|
|
44056
|
+
getFeatureLimitInfo(): Systems.FeatureLimitInfo {
|
|
44057
|
+
var _ret = Module._malloc(8);
|
|
44058
|
+
|
|
44059
|
+
Module.ccall(
|
|
44060
|
+
"csp_systems_FeatureLimitResult_GetFeatureLimitInfoC_FeatureLimitInfoRC",
|
|
44061
|
+
"void",
|
|
44062
|
+
["number", "number"],
|
|
44063
|
+
[_ret, this.pointer],
|
|
44064
|
+
);
|
|
44065
|
+
var _nPtr = new Systems.FeatureLimitInfo(getNativePointer(_ret));
|
|
44066
|
+
Module._free(_ret);
|
|
44067
|
+
|
|
44068
|
+
return _nPtr;
|
|
44069
|
+
}
|
|
44070
|
+
|
|
44071
|
+
delete(): void {
|
|
44072
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44073
|
+
Module.ccall(
|
|
44074
|
+
"csp_systems_FeatureLimitResult_Dtor",
|
|
44075
|
+
"void",
|
|
44076
|
+
["number"],
|
|
44077
|
+
[this.pointer],
|
|
44078
|
+
);
|
|
44079
|
+
|
|
44080
|
+
this.disposed = true;
|
|
44081
|
+
}
|
|
44082
|
+
}
|
|
44083
|
+
}
|
|
44084
|
+
}
|
|
44085
|
+
|
|
44086
|
+
export namespace Systems {
|
|
44087
|
+
/**
|
|
44088
|
+
@ingroup Quota System
|
|
44089
|
+
* @description Data class used to contain information when receiving user tier information.
|
|
44090
|
+
*/
|
|
44091
|
+
export class UserTierResult
|
|
44092
|
+
extends Services.ResultBase
|
|
44093
|
+
implements INativeResource
|
|
44094
|
+
{
|
|
44095
|
+
/** @internal */
|
|
44096
|
+
constructor(pointer: NativePointer) {
|
|
44097
|
+
super(pointer);
|
|
44098
|
+
}
|
|
44099
|
+
|
|
44100
|
+
static fromResultBase(
|
|
44101
|
+
baseInstance: Services.ResultBase,
|
|
44102
|
+
): Systems.UserTierResult {
|
|
44103
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44104
|
+
return new Systems.UserTierResult(
|
|
44105
|
+
new NativePointer(
|
|
44106
|
+
nativeClassWrapper.pointer,
|
|
44107
|
+
nativeClassWrapper.ownsPointer,
|
|
44108
|
+
),
|
|
44109
|
+
);
|
|
44110
|
+
}
|
|
44111
|
+
|
|
44112
|
+
/**
|
|
44113
|
+
* @description Retrieves the user tier result.
|
|
44114
|
+
@returnFeatureProgress : const ref to user tier information class
|
|
44115
|
+
*/
|
|
44116
|
+
|
|
44117
|
+
getUserTierInfo(): Systems.UserTierInfo {
|
|
44118
|
+
var _ret = Module._malloc(8);
|
|
44119
|
+
|
|
44120
|
+
Module.ccall(
|
|
44121
|
+
"csp_systems_UserTierResult_GetUserTierInfoC_UserTierInfoRC",
|
|
44122
|
+
"void",
|
|
44123
|
+
["number", "number"],
|
|
44124
|
+
[_ret, this.pointer],
|
|
44125
|
+
);
|
|
44126
|
+
var _nPtr = new Systems.UserTierInfo(getNativePointer(_ret));
|
|
44127
|
+
Module._free(_ret);
|
|
44128
|
+
|
|
44129
|
+
return _nPtr;
|
|
44130
|
+
}
|
|
44131
|
+
|
|
44132
|
+
delete(): void {
|
|
44133
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44134
|
+
Module.ccall(
|
|
44135
|
+
"csp_systems_UserTierResult_Dtor",
|
|
44136
|
+
"void",
|
|
44137
|
+
["number"],
|
|
44138
|
+
[this.pointer],
|
|
44139
|
+
);
|
|
44140
|
+
|
|
44141
|
+
this.disposed = true;
|
|
44142
|
+
}
|
|
44143
|
+
}
|
|
44144
|
+
}
|
|
44145
|
+
}
|
|
44146
|
+
|
|
44147
|
+
export namespace Systems {
|
|
44148
|
+
/**
|
|
44149
|
+
@ingroup Quota System
|
|
44150
|
+
* @description Data class used to contain information when receiving feature quota information.
|
|
44151
|
+
*/
|
|
44152
|
+
export class FeatureQuotaResult
|
|
44153
|
+
extends Services.ResultBase
|
|
44154
|
+
implements INativeResource
|
|
44155
|
+
{
|
|
44156
|
+
/** @internal */
|
|
44157
|
+
constructor(pointer: NativePointer) {
|
|
44158
|
+
super(pointer);
|
|
44159
|
+
}
|
|
44160
|
+
|
|
44161
|
+
static fromResultBase(
|
|
44162
|
+
baseInstance: Services.ResultBase,
|
|
44163
|
+
): Systems.FeatureQuotaResult {
|
|
44164
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44165
|
+
return new Systems.FeatureQuotaResult(
|
|
44166
|
+
new NativePointer(
|
|
44167
|
+
nativeClassWrapper.pointer,
|
|
44168
|
+
nativeClassWrapper.ownsPointer,
|
|
44169
|
+
),
|
|
44170
|
+
);
|
|
44171
|
+
}
|
|
44172
|
+
|
|
44173
|
+
/**
|
|
44174
|
+
* @description Retrieves the feature quota result.
|
|
44175
|
+
@returnFeatureProgress : const ref to feature quota class
|
|
44176
|
+
*/
|
|
44177
|
+
|
|
44178
|
+
getFeatureQuotaInfo(): Systems.FeatureQuotaInfo {
|
|
44179
|
+
var _ret = Module._malloc(8);
|
|
44180
|
+
|
|
44181
|
+
Module.ccall(
|
|
44182
|
+
"csp_systems_FeatureQuotaResult_GetFeatureQuotaInfoC_FeatureQuotaInfoRC",
|
|
44183
|
+
"void",
|
|
44184
|
+
["number", "number"],
|
|
44185
|
+
[_ret, this.pointer],
|
|
44186
|
+
);
|
|
44187
|
+
var _nPtr = new Systems.FeatureQuotaInfo(getNativePointer(_ret));
|
|
44188
|
+
Module._free(_ret);
|
|
44189
|
+
|
|
44190
|
+
return _nPtr;
|
|
44191
|
+
}
|
|
44192
|
+
|
|
44193
|
+
delete(): void {
|
|
44194
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44195
|
+
Module.ccall(
|
|
44196
|
+
"csp_systems_FeatureQuotaResult_Dtor",
|
|
44197
|
+
"void",
|
|
44198
|
+
["number"],
|
|
44199
|
+
[this.pointer],
|
|
44200
|
+
);
|
|
44201
|
+
|
|
44202
|
+
this.disposed = true;
|
|
44203
|
+
}
|
|
44204
|
+
}
|
|
44205
|
+
}
|
|
44206
|
+
}
|
|
44207
|
+
|
|
44208
|
+
export namespace Systems {
|
|
44209
|
+
/**
|
|
44210
|
+
@ingroup Quota System
|
|
44211
|
+
* @description Data class used to contain information when receiving an array of feature quota information.
|
|
44212
|
+
*/
|
|
44213
|
+
export class FeaturesQuotaResult
|
|
44214
|
+
extends Services.ResultBase
|
|
44215
|
+
implements INativeResource
|
|
44216
|
+
{
|
|
44217
|
+
/** @internal */
|
|
44218
|
+
constructor(pointer: NativePointer) {
|
|
44219
|
+
super(pointer);
|
|
44220
|
+
}
|
|
44221
|
+
|
|
44222
|
+
static fromResultBase(
|
|
44223
|
+
baseInstance: Services.ResultBase,
|
|
44224
|
+
): Systems.FeaturesQuotaResult {
|
|
44225
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44226
|
+
return new Systems.FeaturesQuotaResult(
|
|
44227
|
+
new NativePointer(
|
|
44228
|
+
nativeClassWrapper.pointer,
|
|
44229
|
+
nativeClassWrapper.ownsPointer,
|
|
44230
|
+
),
|
|
44231
|
+
);
|
|
44232
|
+
}
|
|
44233
|
+
|
|
44234
|
+
/**
|
|
44235
|
+
* @description Retrieves an array of feature quota results.
|
|
44236
|
+
@returnFeatureProgress : const ref to feature quota class
|
|
44237
|
+
*/
|
|
44238
|
+
|
|
44239
|
+
getFeaturesQuotaInfo(): Common.Array<Systems.FeatureQuotaInfo> {
|
|
44240
|
+
var _ret = Module._malloc(8);
|
|
44241
|
+
|
|
44242
|
+
Module.ccall(
|
|
44243
|
+
"csp_systems_FeaturesQuotaResult_GetFeaturesQuotaInfoC_ArrayRC",
|
|
44244
|
+
"void",
|
|
44245
|
+
["number", "number"],
|
|
44246
|
+
[_ret, this.pointer],
|
|
44247
|
+
);
|
|
44248
|
+
var _nPtr = new Common.Array<Systems.FeatureQuotaInfo>(
|
|
44249
|
+
getNativePointer(_ret),
|
|
44250
|
+
csp_systems_FeatureQuotaInfoFactory,
|
|
44251
|
+
"csp_systems_FeatureQuotaInfo",
|
|
44252
|
+
);
|
|
44253
|
+
Module._free(_ret);
|
|
44254
|
+
|
|
44255
|
+
return _nPtr;
|
|
44256
|
+
}
|
|
44257
|
+
|
|
44258
|
+
delete(): void {
|
|
44259
|
+
if (this.ownsPointer && !this.disposed) {
|
|
44260
|
+
Module.ccall(
|
|
44261
|
+
"csp_systems_FeaturesQuotaResult_Dtor",
|
|
44262
|
+
"void",
|
|
44263
|
+
["number"],
|
|
44264
|
+
[this.pointer],
|
|
44265
|
+
);
|
|
44266
|
+
|
|
44267
|
+
this.disposed = true;
|
|
44268
|
+
}
|
|
44269
|
+
}
|
|
44270
|
+
}
|
|
44271
|
+
}
|
|
44272
|
+
|
|
44273
|
+
export namespace Systems {
|
|
44274
|
+
/**
|
|
44275
|
+
@ingroup Quota System
|
|
44276
|
+
* @description Public facing system that allows interfacing with Magnopus Connect Services' Quota Server.
|
|
44277
|
+
* Offers methods for receiving Quota Queries.
|
|
44278
|
+
*/
|
|
44279
|
+
export class QuotaSystem extends Systems.SystemBase {
|
|
44280
|
+
/** @internal */
|
|
44281
|
+
constructor(pointer: NativePointer) {
|
|
44282
|
+
super(pointer);
|
|
44283
|
+
}
|
|
44284
|
+
|
|
44285
|
+
static fromSystemBase(
|
|
44286
|
+
baseInstance: Systems.SystemBase,
|
|
44287
|
+
): Systems.QuotaSystem {
|
|
44288
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
44289
|
+
return new Systems.QuotaSystem(
|
|
44290
|
+
new NativePointer(
|
|
44291
|
+
nativeClassWrapper.pointer,
|
|
44292
|
+
nativeClassWrapper.ownsPointer,
|
|
44293
|
+
),
|
|
44294
|
+
);
|
|
44295
|
+
}
|
|
44296
|
+
|
|
44297
|
+
/**
|
|
44298
|
+
* @description Get the total number of Spaces owned by the current user and their tier space limit
|
|
44299
|
+
* @param callback - Callback when asynchronous task finishes
|
|
44300
|
+
*/
|
|
44301
|
+
|
|
44302
|
+
async getTotalSpacesOwnedByUser(): Promise<Systems.FeatureLimitResult> {
|
|
44303
|
+
var _resolve;
|
|
44304
|
+
|
|
44305
|
+
var _promise = new Promise<Systems.FeatureLimitResult>((_r) => {
|
|
44306
|
+
_resolve = _r;
|
|
44307
|
+
});
|
|
44308
|
+
|
|
44309
|
+
var _callbackPtr: number;
|
|
44310
|
+
var _callback = (_stateObject__: number, result) => {
|
|
44311
|
+
var _resultPtr = getNativePointer(result);
|
|
44312
|
+
var _resultInstance = new Systems.FeatureLimitResult(_resultPtr);
|
|
44313
|
+
|
|
44314
|
+
if (
|
|
44315
|
+
_resultInstance.getResultCode() == Services.EResultCode.InProgress
|
|
44316
|
+
) {
|
|
44317
|
+
return;
|
|
44318
|
+
}
|
|
44319
|
+
|
|
44320
|
+
_resolve(_resultInstance);
|
|
44321
|
+
|
|
44322
|
+
Module.removeFunction(_callbackPtr);
|
|
44323
|
+
};
|
|
44324
|
+
|
|
44325
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44326
|
+
|
|
44327
|
+
Module.ccall(
|
|
44328
|
+
"csp_systems_QuotaSystem_GetTotalSpacesOwnedByUser_void_FeatureLimitCallback",
|
|
44329
|
+
"void",
|
|
44330
|
+
["number", "number", "number"],
|
|
44331
|
+
[this.pointer, _callbackPtr, 0],
|
|
44332
|
+
);
|
|
44333
|
+
|
|
44334
|
+
return _promise;
|
|
44335
|
+
}
|
|
44336
|
+
|
|
44337
|
+
/**
|
|
44338
|
+
* @description Gets total number of user inside of a space and its tier user limit
|
|
44339
|
+
* @param spaceId - Id of the Space
|
|
44340
|
+
* @param callback - Callback when asynchronous task finishes
|
|
44341
|
+
*/
|
|
44342
|
+
|
|
44343
|
+
async getConcurrentUsersInSpace(
|
|
44344
|
+
spaceId: string,
|
|
44345
|
+
): Promise<Systems.FeatureLimitResult> {
|
|
44346
|
+
var _resolve;
|
|
44347
|
+
|
|
44348
|
+
var _promise = new Promise<Systems.FeatureLimitResult>((_r) => {
|
|
44349
|
+
_resolve = _r;
|
|
44350
|
+
});
|
|
44351
|
+
|
|
44352
|
+
var _callbackPtr: number;
|
|
44353
|
+
var _callback = (_stateObject__: number, result) => {
|
|
44354
|
+
var _resultPtr = getNativePointer(result);
|
|
44355
|
+
var _resultInstance = new Systems.FeatureLimitResult(_resultPtr);
|
|
44356
|
+
|
|
44357
|
+
if (
|
|
44358
|
+
_resultInstance.getResultCode() == Services.EResultCode.InProgress
|
|
44359
|
+
) {
|
|
44360
|
+
return;
|
|
44361
|
+
}
|
|
44362
|
+
|
|
44363
|
+
_resolve(_resultInstance);
|
|
44364
|
+
|
|
44365
|
+
Module.removeFunction(_callbackPtr);
|
|
44366
|
+
};
|
|
44367
|
+
|
|
44368
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44369
|
+
|
|
44370
|
+
Module.ccall(
|
|
44371
|
+
"csp_systems_QuotaSystem_GetConcurrentUsersInSpace_void_StringRC_FeatureLimitCallback",
|
|
44372
|
+
"void",
|
|
44373
|
+
["number", "string", "number", "number"],
|
|
44374
|
+
[this.pointer, spaceId, _callbackPtr, 0],
|
|
44375
|
+
);
|
|
44376
|
+
|
|
44377
|
+
return _promise;
|
|
44378
|
+
}
|
|
44379
|
+
|
|
44380
|
+
/**
|
|
44381
|
+
* @description Get total size of all assets within a space and their tier space size limit
|
|
44382
|
+
* @param spaceId - Id of the Space
|
|
44383
|
+
* @param callback - Callback when asynchronous task finishes
|
|
44384
|
+
*/
|
|
44385
|
+
|
|
44386
|
+
async getTotalSpaceSizeInKilobytes(
|
|
44387
|
+
spaceId: string,
|
|
44388
|
+
): Promise<Systems.FeatureLimitResult> {
|
|
44389
|
+
var _resolve;
|
|
44390
|
+
|
|
44391
|
+
var _promise = new Promise<Systems.FeatureLimitResult>((_r) => {
|
|
44392
|
+
_resolve = _r;
|
|
44393
|
+
});
|
|
44394
|
+
|
|
44395
|
+
var _callbackPtr: number;
|
|
44396
|
+
var _callback = (_stateObject__: number, result) => {
|
|
44397
|
+
var _resultPtr = getNativePointer(result);
|
|
44398
|
+
var _resultInstance = new Systems.FeatureLimitResult(_resultPtr);
|
|
44399
|
+
|
|
44400
|
+
if (
|
|
44401
|
+
_resultInstance.getResultCode() == Services.EResultCode.InProgress
|
|
44402
|
+
) {
|
|
44403
|
+
return;
|
|
44404
|
+
}
|
|
44405
|
+
|
|
44406
|
+
_resolve(_resultInstance);
|
|
44407
|
+
|
|
44408
|
+
Module.removeFunction(_callbackPtr);
|
|
44409
|
+
};
|
|
44410
|
+
|
|
44411
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44412
|
+
|
|
44413
|
+
Module.ccall(
|
|
44414
|
+
"csp_systems_QuotaSystem_GetTotalSpaceSizeInKilobytes_void_StringRC_FeatureLimitCallback",
|
|
44415
|
+
"void",
|
|
44416
|
+
["number", "string", "number", "number"],
|
|
44417
|
+
[this.pointer, spaceId, _callbackPtr, 0],
|
|
44418
|
+
);
|
|
44419
|
+
|
|
44420
|
+
return _promise;
|
|
44421
|
+
}
|
|
44422
|
+
|
|
44423
|
+
/**
|
|
44424
|
+
* @description Get Array of feature progresses for a user and their tier feature limits
|
|
44425
|
+
* @param featureNames - Array of feature names that will be retrieved
|
|
44426
|
+
* @param callback - Callback when asynchronous task finishes
|
|
44427
|
+
*/
|
|
44428
|
+
|
|
44429
|
+
async getTierFeatureProgressForUser(
|
|
44430
|
+
featureNames: Common.Array<Systems.TierFeatures>,
|
|
44431
|
+
): Promise<Systems.FeaturesLimitResult> {
|
|
44432
|
+
var _resolve;
|
|
44433
|
+
|
|
44434
|
+
var _promise = new Promise<Systems.FeaturesLimitResult>((_r) => {
|
|
44435
|
+
_resolve = _r;
|
|
44436
|
+
});
|
|
44437
|
+
|
|
44438
|
+
var _callbackPtr: number;
|
|
44439
|
+
var _callback = (_stateObject__: number, result) => {
|
|
44440
|
+
var _resultPtr = getNativePointer(result);
|
|
44441
|
+
var _resultInstance = new Systems.FeaturesLimitResult(_resultPtr);
|
|
44442
|
+
|
|
44443
|
+
if (
|
|
44444
|
+
_resultInstance.getResultCode() == Services.EResultCode.InProgress
|
|
44445
|
+
) {
|
|
44446
|
+
return;
|
|
44447
|
+
}
|
|
44448
|
+
|
|
44449
|
+
_resolve(_resultInstance);
|
|
44450
|
+
|
|
44451
|
+
Module.removeFunction(_callbackPtr);
|
|
44452
|
+
};
|
|
44453
|
+
|
|
44454
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44455
|
+
|
|
44456
|
+
Module.ccall(
|
|
44457
|
+
"csp_systems_QuotaSystem_GetTierFeatureProgressForUser_void_ArrayRC_FeaturesLimitCallback",
|
|
44458
|
+
"void",
|
|
44459
|
+
["number", "number", "number", "number"],
|
|
44460
|
+
[this.pointer, featureNames.pointer, _callbackPtr, 0],
|
|
44461
|
+
);
|
|
44462
|
+
|
|
44463
|
+
return _promise;
|
|
44464
|
+
}
|
|
44465
|
+
|
|
44466
|
+
/**
|
|
44467
|
+
* @description Get Array of feature progress for a user Space and its tier feature limits
|
|
44468
|
+
* @param spaceId - Id of the Space
|
|
44469
|
+
* @param featureNames - Array of feature names that will be retrieved
|
|
44470
|
+
* @param callback - Callback when asynchronous task finishes
|
|
44471
|
+
*/
|
|
44472
|
+
|
|
44473
|
+
async getTierFeatureProgressForSpace(
|
|
44474
|
+
spaceId: string,
|
|
44475
|
+
featureNames: Common.Array<Systems.TierFeatures>,
|
|
44476
|
+
): Promise<Systems.FeaturesLimitResult> {
|
|
44477
|
+
var _resolve;
|
|
44478
|
+
|
|
44479
|
+
var _promise = new Promise<Systems.FeaturesLimitResult>((_r) => {
|
|
44480
|
+
_resolve = _r;
|
|
44481
|
+
});
|
|
44482
|
+
|
|
44483
|
+
var _callbackPtr: number;
|
|
44484
|
+
var _callback = (_stateObject__: number, result) => {
|
|
44485
|
+
var _resultPtr = getNativePointer(result);
|
|
44486
|
+
var _resultInstance = new Systems.FeaturesLimitResult(_resultPtr);
|
|
44487
|
+
|
|
44488
|
+
if (
|
|
44489
|
+
_resultInstance.getResultCode() == Services.EResultCode.InProgress
|
|
44490
|
+
) {
|
|
44491
|
+
return;
|
|
44492
|
+
}
|
|
44493
|
+
|
|
44494
|
+
_resolve(_resultInstance);
|
|
44495
|
+
|
|
44496
|
+
Module.removeFunction(_callbackPtr);
|
|
44497
|
+
};
|
|
44498
|
+
|
|
44499
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44500
|
+
|
|
44501
|
+
Module.ccall(
|
|
44502
|
+
"csp_systems_QuotaSystem_GetTierFeatureProgressForSpace_void_StringRC_ArrayRC_FeaturesLimitCallback",
|
|
44503
|
+
"void",
|
|
44504
|
+
["number", "string", "number", "number", "number"],
|
|
44505
|
+
[this.pointer, spaceId, featureNames.pointer, _callbackPtr, 0],
|
|
44506
|
+
);
|
|
44507
|
+
|
|
44508
|
+
return _promise;
|
|
44509
|
+
}
|
|
44510
|
+
|
|
44511
|
+
/**
|
|
44512
|
+
* @description Get current users tier information
|
|
44513
|
+
* @param callback - Callback when asynchronous task finishes
|
|
44514
|
+
*/
|
|
44515
|
+
|
|
44516
|
+
async getCurrentUserTier(): Promise<Systems.UserTierResult> {
|
|
44517
|
+
var _resolve;
|
|
44518
|
+
|
|
44519
|
+
var _promise = new Promise<Systems.UserTierResult>((_r) => {
|
|
44520
|
+
_resolve = _r;
|
|
44521
|
+
});
|
|
44522
|
+
|
|
44523
|
+
var _callbackPtr: number;
|
|
44524
|
+
var _callback = (_stateObject__: number, result) => {
|
|
44525
|
+
var _resultPtr = getNativePointer(result);
|
|
44526
|
+
var _resultInstance = new Systems.UserTierResult(_resultPtr);
|
|
44527
|
+
|
|
44528
|
+
if (
|
|
44529
|
+
_resultInstance.getResultCode() == Services.EResultCode.InProgress
|
|
44530
|
+
) {
|
|
44531
|
+
return;
|
|
44532
|
+
}
|
|
44533
|
+
|
|
44534
|
+
_resolve(_resultInstance);
|
|
44535
|
+
|
|
44536
|
+
Module.removeFunction(_callbackPtr);
|
|
44537
|
+
};
|
|
44538
|
+
|
|
44539
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44540
|
+
|
|
44541
|
+
Module.ccall(
|
|
44542
|
+
"csp_systems_QuotaSystem_GetCurrentUserTier_void_UserTierCallback",
|
|
44543
|
+
"void",
|
|
44544
|
+
["number", "number", "number"],
|
|
44545
|
+
[this.pointer, _callbackPtr, 0],
|
|
44546
|
+
);
|
|
44547
|
+
|
|
44548
|
+
return _promise;
|
|
44549
|
+
}
|
|
44550
|
+
|
|
44551
|
+
/**
|
|
44552
|
+
* @description Get current feature quota information
|
|
44553
|
+
* @param tierName - Name of the tier
|
|
44554
|
+
* @param featureName - Name of the feature
|
|
44555
|
+
* @param callback - Callback when asynchronous task finishes
|
|
44556
|
+
*/
|
|
44557
|
+
|
|
44558
|
+
async getTierFeatureQuota(
|
|
44559
|
+
tierName: Systems.TierNames,
|
|
44560
|
+
featureName: Systems.TierFeatures,
|
|
44561
|
+
): Promise<Systems.FeatureQuotaResult> {
|
|
44562
|
+
var _resolve;
|
|
44563
|
+
|
|
44564
|
+
var _promise = new Promise<Systems.FeatureQuotaResult>((_r) => {
|
|
44565
|
+
_resolve = _r;
|
|
44566
|
+
});
|
|
44567
|
+
|
|
44568
|
+
var _callbackPtr: number;
|
|
44569
|
+
var _callback = (_stateObject__: number, result) => {
|
|
44570
|
+
var _resultPtr = getNativePointer(result);
|
|
44571
|
+
var _resultInstance = new Systems.FeatureQuotaResult(_resultPtr);
|
|
44572
|
+
|
|
44573
|
+
if (
|
|
44574
|
+
_resultInstance.getResultCode() == Services.EResultCode.InProgress
|
|
44575
|
+
) {
|
|
44576
|
+
return;
|
|
44577
|
+
}
|
|
44578
|
+
|
|
44579
|
+
_resolve(_resultInstance);
|
|
44580
|
+
|
|
44581
|
+
Module.removeFunction(_callbackPtr);
|
|
44582
|
+
};
|
|
44583
|
+
|
|
44584
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44585
|
+
|
|
44586
|
+
Module.ccall(
|
|
44587
|
+
"csp_systems_QuotaSystem_GetTierFeatureQuota_void_TierNames_TierFeatures_FeatureQuotaCallback",
|
|
44588
|
+
"void",
|
|
44589
|
+
["number", "number", "number", "number", "number"],
|
|
44590
|
+
[this.pointer, tierName, featureName, _callbackPtr, 0],
|
|
44591
|
+
);
|
|
44592
|
+
|
|
44593
|
+
return _promise;
|
|
44594
|
+
}
|
|
44595
|
+
|
|
44596
|
+
/**
|
|
44597
|
+
* @description Get current array of current feature quota information inside a tier
|
|
44598
|
+
* @param tierName - Name of the tier
|
|
44599
|
+
* @param callback - Callback when asynchronous task finishes
|
|
44600
|
+
*/
|
|
44601
|
+
|
|
44602
|
+
async getTierFeaturesQuota(
|
|
44603
|
+
tierName: Systems.TierNames,
|
|
44604
|
+
): Promise<Systems.FeaturesQuotaResult> {
|
|
44605
|
+
var _resolve;
|
|
44606
|
+
|
|
44607
|
+
var _promise = new Promise<Systems.FeaturesQuotaResult>((_r) => {
|
|
44608
|
+
_resolve = _r;
|
|
44609
|
+
});
|
|
44610
|
+
|
|
44611
|
+
var _callbackPtr: number;
|
|
44612
|
+
var _callback = (_stateObject__: number, result) => {
|
|
44613
|
+
var _resultPtr = getNativePointer(result);
|
|
44614
|
+
var _resultInstance = new Systems.FeaturesQuotaResult(_resultPtr);
|
|
44615
|
+
|
|
44616
|
+
if (
|
|
44617
|
+
_resultInstance.getResultCode() == Services.EResultCode.InProgress
|
|
44618
|
+
) {
|
|
44619
|
+
return;
|
|
44620
|
+
}
|
|
44621
|
+
|
|
44622
|
+
_resolve(_resultInstance);
|
|
44623
|
+
|
|
44624
|
+
Module.removeFunction(_callbackPtr);
|
|
44625
|
+
};
|
|
44626
|
+
|
|
44627
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
44628
|
+
|
|
44629
|
+
Module.ccall(
|
|
44630
|
+
"csp_systems_QuotaSystem_GetTierFeaturesQuota_void_TierNames_FeaturesQuotaCallback",
|
|
44631
|
+
"void",
|
|
44632
|
+
["number", "number", "number", "number"],
|
|
44633
|
+
[this.pointer, tierName, _callbackPtr, 0],
|
|
44634
|
+
);
|
|
44635
|
+
|
|
44636
|
+
return _promise;
|
|
44637
|
+
}
|
|
44638
|
+
}
|
|
44639
|
+
}
|
|
44640
|
+
|
|
43413
44641
|
export namespace Systems {
|
|
43414
44642
|
/**
|
|
43415
44643
|
@ingroup Settings System
|
|
@@ -49773,6 +51001,60 @@ export namespace Common {
|
|
|
49773
51001
|
return _inst;
|
|
49774
51002
|
}
|
|
49775
51003
|
|
|
51004
|
+
static ofcsp_systems_FeatureLimitInfo(): Array<Systems.FeatureLimitInfo> {
|
|
51005
|
+
var _ret = Module._malloc(8);
|
|
51006
|
+
Module.ccall(
|
|
51007
|
+
"csp_common_Array_Ctor_csp_systems_FeatureLimitInfo",
|
|
51008
|
+
"void",
|
|
51009
|
+
["number"],
|
|
51010
|
+
[_ret],
|
|
51011
|
+
);
|
|
51012
|
+
var _inst = new Array<Systems.FeatureLimitInfo>(
|
|
51013
|
+
getNativePointer(_ret),
|
|
51014
|
+
csp_systems_FeatureLimitInfoFactory,
|
|
51015
|
+
"csp_systems_FeatureLimitInfo",
|
|
51016
|
+
);
|
|
51017
|
+
Module._free(_ret);
|
|
51018
|
+
|
|
51019
|
+
return _inst;
|
|
51020
|
+
}
|
|
51021
|
+
|
|
51022
|
+
static ofcsp_systems_FeatureQuotaInfo(): Array<Systems.FeatureQuotaInfo> {
|
|
51023
|
+
var _ret = Module._malloc(8);
|
|
51024
|
+
Module.ccall(
|
|
51025
|
+
"csp_common_Array_Ctor_csp_systems_FeatureQuotaInfo",
|
|
51026
|
+
"void",
|
|
51027
|
+
["number"],
|
|
51028
|
+
[_ret],
|
|
51029
|
+
);
|
|
51030
|
+
var _inst = new Array<Systems.FeatureQuotaInfo>(
|
|
51031
|
+
getNativePointer(_ret),
|
|
51032
|
+
csp_systems_FeatureQuotaInfoFactory,
|
|
51033
|
+
"csp_systems_FeatureQuotaInfo",
|
|
51034
|
+
);
|
|
51035
|
+
Module._free(_ret);
|
|
51036
|
+
|
|
51037
|
+
return _inst;
|
|
51038
|
+
}
|
|
51039
|
+
|
|
51040
|
+
static ofcsp_systems_TierFeatures(): Array<Systems.TierFeatures> {
|
|
51041
|
+
var _ret = Module._malloc(8);
|
|
51042
|
+
Module.ccall(
|
|
51043
|
+
"csp_common_Array_Ctor_csp_systems_TierFeatures",
|
|
51044
|
+
"void",
|
|
51045
|
+
["number"],
|
|
51046
|
+
[_ret],
|
|
51047
|
+
);
|
|
51048
|
+
var _inst = new Array<Systems.TierFeatures>(
|
|
51049
|
+
getNativePointer(_ret),
|
|
51050
|
+
csp_systems_TierFeaturesFactory,
|
|
51051
|
+
"csp_systems_TierFeatures",
|
|
51052
|
+
);
|
|
51053
|
+
Module._free(_ret);
|
|
51054
|
+
|
|
51055
|
+
return _inst;
|
|
51056
|
+
}
|
|
51057
|
+
|
|
49776
51058
|
static ofcsp_systems_Site(): Array<Systems.Site> {
|
|
49777
51059
|
var _ret = Module._malloc(8);
|
|
49778
51060
|
Module.ccall(
|
|
@@ -50349,6 +51631,66 @@ export namespace Common {
|
|
|
50349
51631
|
return _inst;
|
|
50350
51632
|
}
|
|
50351
51633
|
|
|
51634
|
+
static ofcsp_systems_FeatureLimitInfo_number(
|
|
51635
|
+
size: number,
|
|
51636
|
+
): Array<Systems.FeatureLimitInfo> {
|
|
51637
|
+
var _ret = Module._malloc(8);
|
|
51638
|
+
Module.ccall(
|
|
51639
|
+
"csp_common_Array_Conv_size_tC_csp_systems_FeatureLimitInfo",
|
|
51640
|
+
"void",
|
|
51641
|
+
["number", "number"],
|
|
51642
|
+
[_ret, size],
|
|
51643
|
+
);
|
|
51644
|
+
var _inst = new Array<Systems.FeatureLimitInfo>(
|
|
51645
|
+
getNativePointer(_ret),
|
|
51646
|
+
csp_systems_FeatureLimitInfoFactory,
|
|
51647
|
+
"csp_systems_FeatureLimitInfo",
|
|
51648
|
+
);
|
|
51649
|
+
Module._free(_ret);
|
|
51650
|
+
|
|
51651
|
+
return _inst;
|
|
51652
|
+
}
|
|
51653
|
+
|
|
51654
|
+
static ofcsp_systems_FeatureQuotaInfo_number(
|
|
51655
|
+
size: number,
|
|
51656
|
+
): Array<Systems.FeatureQuotaInfo> {
|
|
51657
|
+
var _ret = Module._malloc(8);
|
|
51658
|
+
Module.ccall(
|
|
51659
|
+
"csp_common_Array_Conv_size_tC_csp_systems_FeatureQuotaInfo",
|
|
51660
|
+
"void",
|
|
51661
|
+
["number", "number"],
|
|
51662
|
+
[_ret, size],
|
|
51663
|
+
);
|
|
51664
|
+
var _inst = new Array<Systems.FeatureQuotaInfo>(
|
|
51665
|
+
getNativePointer(_ret),
|
|
51666
|
+
csp_systems_FeatureQuotaInfoFactory,
|
|
51667
|
+
"csp_systems_FeatureQuotaInfo",
|
|
51668
|
+
);
|
|
51669
|
+
Module._free(_ret);
|
|
51670
|
+
|
|
51671
|
+
return _inst;
|
|
51672
|
+
}
|
|
51673
|
+
|
|
51674
|
+
static ofcsp_systems_TierFeatures_number(
|
|
51675
|
+
size: number,
|
|
51676
|
+
): Array<Systems.TierFeatures> {
|
|
51677
|
+
var _ret = Module._malloc(8);
|
|
51678
|
+
Module.ccall(
|
|
51679
|
+
"csp_common_Array_Conv_size_tC_csp_systems_TierFeatures",
|
|
51680
|
+
"void",
|
|
51681
|
+
["number", "number"],
|
|
51682
|
+
[_ret, size],
|
|
51683
|
+
);
|
|
51684
|
+
var _inst = new Array<Systems.TierFeatures>(
|
|
51685
|
+
getNativePointer(_ret),
|
|
51686
|
+
csp_systems_TierFeaturesFactory,
|
|
51687
|
+
"csp_systems_TierFeatures",
|
|
51688
|
+
);
|
|
51689
|
+
Module._free(_ret);
|
|
51690
|
+
|
|
51691
|
+
return _inst;
|
|
51692
|
+
}
|
|
51693
|
+
|
|
50352
51694
|
static ofcsp_systems_Site_number(size: number): Array<Systems.Site> {
|
|
50353
51695
|
var _ret = Module._malloc(8);
|
|
50354
51696
|
Module.ccall(
|