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.
@@ -546,6 +546,19 @@ function csp_systems_LogLevelFactory(nativePointer) {
546
546
  return nativePointer.pointer;
547
547
  }
548
548
  ProxyClassFactories["csp_systems_LogLevel"] = csp_systems_LogLevelFactory;
549
+ function csp_systems_PeriodEnumFactory(nativePointer) {
550
+ return nativePointer.pointer;
551
+ }
552
+ ProxyClassFactories["csp_systems_PeriodEnum"] = csp_systems_PeriodEnumFactory;
553
+ function csp_systems_TierFeaturesFactory(nativePointer) {
554
+ return nativePointer.pointer;
555
+ }
556
+ ProxyClassFactories["csp_systems_TierFeatures"] =
557
+ csp_systems_TierFeaturesFactory;
558
+ function csp_systems_TierNamesFactory(nativePointer) {
559
+ return nativePointer.pointer;
560
+ }
561
+ ProxyClassFactories["csp_systems_TierNames"] = csp_systems_TierNamesFactory;
549
562
  function csp_systems_SpaceAttributesFactory(nativePointer) {
550
563
  return nativePointer.pointer;
551
564
  }
@@ -817,6 +830,21 @@ function csp_systems_MaintenanceInfoFactory(nativePointer) {
817
830
  }
818
831
  ProxyClassFactories["csp_systems_MaintenanceInfo"] =
819
832
  csp_systems_MaintenanceInfoFactory;
833
+ function csp_systems_FeatureLimitInfoFactory(nativePointer) {
834
+ return new Systems.FeatureLimitInfo(nativePointer);
835
+ }
836
+ ProxyClassFactories["csp_systems_FeatureLimitInfo"] =
837
+ csp_systems_FeatureLimitInfoFactory;
838
+ function csp_systems_UserTierInfoFactory(nativePointer) {
839
+ return new Systems.UserTierInfo(nativePointer);
840
+ }
841
+ ProxyClassFactories["csp_systems_UserTierInfo"] =
842
+ csp_systems_UserTierInfoFactory;
843
+ function csp_systems_FeatureQuotaInfoFactory(nativePointer) {
844
+ return new Systems.FeatureQuotaInfo(nativePointer);
845
+ }
846
+ ProxyClassFactories["csp_systems_FeatureQuotaInfo"] =
847
+ csp_systems_FeatureQuotaInfoFactory;
820
848
  function csp_systems_ScriptSystemFactory(nativePointer) {
821
849
  return new Systems.ScriptSystem(nativePointer);
822
850
  }
@@ -1176,6 +1204,35 @@ function csp_systems_MaintenanceSystemFactory(nativePointer) {
1176
1204
  }
1177
1205
  ProxyClassFactories["csp_systems_MaintenanceSystem"] =
1178
1206
  csp_systems_MaintenanceSystemFactory;
1207
+ function csp_systems_FeaturesLimitResultFactory(nativePointer) {
1208
+ return new Systems.FeaturesLimitResult(nativePointer);
1209
+ }
1210
+ ProxyClassFactories["csp_systems_FeaturesLimitResult"] =
1211
+ csp_systems_FeaturesLimitResultFactory;
1212
+ function csp_systems_FeatureLimitResultFactory(nativePointer) {
1213
+ return new Systems.FeatureLimitResult(nativePointer);
1214
+ }
1215
+ ProxyClassFactories["csp_systems_FeatureLimitResult"] =
1216
+ csp_systems_FeatureLimitResultFactory;
1217
+ function csp_systems_UserTierResultFactory(nativePointer) {
1218
+ return new Systems.UserTierResult(nativePointer);
1219
+ }
1220
+ ProxyClassFactories["csp_systems_UserTierResult"] =
1221
+ csp_systems_UserTierResultFactory;
1222
+ function csp_systems_FeatureQuotaResultFactory(nativePointer) {
1223
+ return new Systems.FeatureQuotaResult(nativePointer);
1224
+ }
1225
+ ProxyClassFactories["csp_systems_FeatureQuotaResult"] =
1226
+ csp_systems_FeatureQuotaResultFactory;
1227
+ function csp_systems_FeaturesQuotaResultFactory(nativePointer) {
1228
+ return new Systems.FeaturesQuotaResult(nativePointer);
1229
+ }
1230
+ ProxyClassFactories["csp_systems_FeaturesQuotaResult"] =
1231
+ csp_systems_FeaturesQuotaResultFactory;
1232
+ function csp_systems_QuotaSystemFactory(nativePointer) {
1233
+ return new Systems.QuotaSystem(nativePointer);
1234
+ }
1235
+ ProxyClassFactories["csp_systems_QuotaSystem"] = csp_systems_QuotaSystemFactory;
1179
1236
  function csp_systems_SettingsCollectionResultFactory(nativePointer) {
1180
1237
  return new Systems.SettingsCollectionResult(nativePointer);
1181
1238
  }
@@ -1413,6 +1470,21 @@ function csp_common_Array_csp_systems_MaintenanceInfoFactory(nativePointer) {
1413
1470
  }
1414
1471
  ProxyClassFactories["csp_common_Array_csp_systems_MaintenanceInfo"] =
1415
1472
  csp_common_Array_csp_systems_MaintenanceInfoFactory;
1473
+ function csp_common_Array_csp_systems_FeatureLimitInfoFactory(nativePointer) {
1474
+ return new Common.Array(nativePointer, csp_systems_FeatureLimitInfoFactory, "csp_systems_FeatureLimitInfo");
1475
+ }
1476
+ ProxyClassFactories["csp_common_Array_csp_systems_FeatureLimitInfo"] =
1477
+ csp_common_Array_csp_systems_FeatureLimitInfoFactory;
1478
+ function csp_common_Array_csp_systems_FeatureQuotaInfoFactory(nativePointer) {
1479
+ return new Common.Array(nativePointer, csp_systems_FeatureQuotaInfoFactory, "csp_systems_FeatureQuotaInfo");
1480
+ }
1481
+ ProxyClassFactories["csp_common_Array_csp_systems_FeatureQuotaInfo"] =
1482
+ csp_common_Array_csp_systems_FeatureQuotaInfoFactory;
1483
+ function csp_common_Array_csp_systems_TierFeaturesFactory(nativePointer) {
1484
+ return new Common.Array(nativePointer, csp_systems_TierFeaturesFactory, "csp_systems_TierFeatures");
1485
+ }
1486
+ ProxyClassFactories["csp_common_Array_csp_systems_TierFeatures"] =
1487
+ csp_common_Array_csp_systems_TierFeaturesFactory;
1416
1488
  function csp_common_Array_csp_systems_SiteFactory(nativePointer) {
1417
1489
  return new Common.Array(nativePointer, csp_systems_SiteFactory, "csp_systems_Site");
1418
1490
  }
@@ -2352,6 +2424,41 @@ export var Services;
2352
2424
  LogLevel[LogLevel["All"] = 8] = "All";
2353
2425
  })(LogLevel = Systems.LogLevel || (Systems.LogLevel = {}));
2354
2426
  })(Systems || (Systems = {}));
2427
+ (function (Systems) {
2428
+ /**
2429
+ @ingroup Quota System
2430
+ * @description Data representation period of time.
2431
+ */
2432
+ let PeriodEnum;
2433
+ (function (PeriodEnum) {
2434
+ PeriodEnum[PeriodEnum["Total"] = 0] = "Total";
2435
+ PeriodEnum[PeriodEnum["CalendarMonth"] = 1] = "CalendarMonth";
2436
+ PeriodEnum[PeriodEnum["Hours24"] = 2] = "Hours24";
2437
+ })(PeriodEnum = Systems.PeriodEnum || (Systems.PeriodEnum = {}));
2438
+ })(Systems || (Systems = {}));
2439
+ (function (Systems) {
2440
+ let TierFeatures;
2441
+ (function (TierFeatures) {
2442
+ TierFeatures[TierFeatures["SpaceOwner"] = 0] = "SpaceOwner";
2443
+ TierFeatures[TierFeatures["ScopeConcurrentUsers"] = 1] = "ScopeConcurrentUsers";
2444
+ TierFeatures[TierFeatures["ObjectCaptureUpload"] = 2] = "ObjectCaptureUpload";
2445
+ TierFeatures[TierFeatures["AudioVideoUpload"] = 3] = "AudioVideoUpload";
2446
+ TierFeatures[TierFeatures["TotalUploadSizeInKilobytes"] = 4] = "TotalUploadSizeInKilobytes";
2447
+ TierFeatures[TierFeatures["Agora"] = 5] = "Agora";
2448
+ TierFeatures[TierFeatures["OpenAI"] = 6] = "OpenAI";
2449
+ TierFeatures[TierFeatures["Shopify"] = 7] = "Shopify";
2450
+ TierFeatures[TierFeatures["TicketedSpace"] = 8] = "TicketedSpace";
2451
+ })(TierFeatures = Systems.TierFeatures || (Systems.TierFeatures = {}));
2452
+ })(Systems || (Systems = {}));
2453
+ (function (Systems) {
2454
+ let TierNames;
2455
+ (function (TierNames) {
2456
+ TierNames[TierNames["Basic"] = 0] = "Basic";
2457
+ TierNames[TierNames["Premium"] = 1] = "Premium";
2458
+ TierNames[TierNames["Pro"] = 2] = "Pro";
2459
+ TierNames[TierNames["Enterprise"] = 3] = "Enterprise";
2460
+ })(TierNames = Systems.TierNames || (Systems.TierNames = {}));
2461
+ })(Systems || (Systems = {}));
2355
2462
  (function (Systems) {
2356
2463
  let SpaceAttributes;
2357
2464
  (function (SpaceAttributes) {
@@ -2545,6 +2652,13 @@ export class EndpointURIs extends NativeClassWrapper {
2545
2652
  set aggregationServiceURI(value) {
2546
2653
  Module.ccall("csp_EndpointURIs__Set_AggregationServiceURI", "void", ["number", "string"], [this.pointer, value]);
2547
2654
  }
2655
+ get trackingServiceURI() {
2656
+ let _result = Module.ccall("csp_EndpointURIs__Get_TrackingServiceURI", "string", ["number"], [this.pointer]);
2657
+ return _result;
2658
+ }
2659
+ set trackingServiceURI(value) {
2660
+ Module.ccall("csp_EndpointURIs__Set_TrackingServiceURI", "void", ["number", "string"], [this.pointer, value]);
2661
+ }
2548
2662
  }
2549
2663
  /**
2550
2664
  * @description Holds client data used in requests for all Magnopus Serives.
@@ -11168,6 +11282,17 @@ export class CSPFoundation {
11168
11282
  Module._free(_ret);
11169
11283
  return _nPtr;
11170
11284
  }
11285
+ /**
11286
+ * @description Retrieves the Quota system.
11287
+ * @return Pointer to the quota system class
11288
+ */
11289
+ getQuotaSystem() {
11290
+ var _ret = Module._malloc(8);
11291
+ Module.ccall("csp_systems_SystemsManager_GetQuotaSystem_QuotaSystemP", "void", ["number", "number"], [_ret, this.pointer]);
11292
+ var _nPtr = new Systems.QuotaSystem(getNativePointer(_ret));
11293
+ Module._free(_ret);
11294
+ return _nPtr;
11295
+ }
11171
11296
  }
11172
11297
  Systems.SystemsManager = SystemsManager;
11173
11298
  })(Systems || (Systems = {}));
@@ -12633,6 +12758,160 @@ export class CSPFoundation {
12633
12758
  }
12634
12759
  Systems.MaintenanceInfo = MaintenanceInfo;
12635
12760
  })(Systems || (Systems = {}));
12761
+ (function (Systems) {
12762
+ /**
12763
+ @ingroup Quota System
12764
+ * @description Data representation of a progress of a specific feature.
12765
+ * Limit Value of -1 means unlimited usage
12766
+ */
12767
+ class FeatureLimitInfo extends NativeClassWrapper {
12768
+ /** @internal */
12769
+ constructor(pointer) {
12770
+ super(pointer);
12771
+ }
12772
+ static create() {
12773
+ var _ptr = Module._malloc(8);
12774
+ Module.ccall("csp_systems_FeatureLimitInfo_Ctor", "void", ["number"], [_ptr]);
12775
+ var _nPtr = getNativePointer(_ptr);
12776
+ return new FeatureLimitInfo(_nPtr);
12777
+ }
12778
+ delete() {
12779
+ if (this.ownsPointer && !this.disposed) {
12780
+ Module.ccall("csp_systems_FeatureLimitInfo_Dtor", "void", ["number"], [this.pointer]);
12781
+ this.disposed = true;
12782
+ }
12783
+ }
12784
+ get featureName() {
12785
+ let _result = Module.ccall("csp_systems_FeatureLimitInfo__Get_FeatureName", "number", ["number"], [this.pointer]);
12786
+ return _result;
12787
+ }
12788
+ set featureName(value) {
12789
+ Module.ccall("csp_systems_FeatureLimitInfo__Set_FeatureName", "void", ["number", "number"], [this.pointer, value]);
12790
+ }
12791
+ get activityCount() {
12792
+ let _result = Module.ccall("csp_systems_FeatureLimitInfo__Get_ActivityCount", "number", ["number"], [this.pointer]);
12793
+ return _result;
12794
+ }
12795
+ set activityCount(value) {
12796
+ Module.ccall("csp_systems_FeatureLimitInfo__Set_ActivityCount", "void", ["number", "number"], [this.pointer, value]);
12797
+ }
12798
+ get limit() {
12799
+ let _result = Module.ccall("csp_systems_FeatureLimitInfo__Get_Limit", "number", ["number"], [this.pointer]);
12800
+ return _result;
12801
+ }
12802
+ set limit(value) {
12803
+ Module.ccall("csp_systems_FeatureLimitInfo__Set_Limit", "void", ["number", "number"], [this.pointer, value]);
12804
+ }
12805
+ }
12806
+ Systems.FeatureLimitInfo = FeatureLimitInfo;
12807
+ })(Systems || (Systems = {}));
12808
+ (function (Systems) {
12809
+ /**
12810
+ @ingroup Quota System
12811
+ * @description Data representation of a progress of a specific feature.
12812
+ */
12813
+ class UserTierInfo extends NativeClassWrapper {
12814
+ /** @internal */
12815
+ constructor(pointer) {
12816
+ super(pointer);
12817
+ }
12818
+ static create() {
12819
+ var _ptr = Module._malloc(8);
12820
+ Module.ccall("csp_systems_UserTierInfo_Ctor", "void", ["number"], [_ptr]);
12821
+ var _nPtr = getNativePointer(_ptr);
12822
+ return new UserTierInfo(_nPtr);
12823
+ }
12824
+ delete() {
12825
+ if (this.ownsPointer && !this.disposed) {
12826
+ Module.ccall("csp_systems_UserTierInfo_Dtor", "void", ["number"], [this.pointer]);
12827
+ this.disposed = true;
12828
+ }
12829
+ }
12830
+ get assignToType() {
12831
+ let _result = Module.ccall("csp_systems_UserTierInfo__Get_AssignToType", "string", ["number"], [this.pointer]);
12832
+ return _result;
12833
+ }
12834
+ set assignToType(value) {
12835
+ Module.ccall("csp_systems_UserTierInfo__Set_AssignToType", "void", ["number", "string"], [this.pointer, value]);
12836
+ }
12837
+ get assignToId() {
12838
+ let _result = Module.ccall("csp_systems_UserTierInfo__Get_AssignToId", "string", ["number"], [this.pointer]);
12839
+ return _result;
12840
+ }
12841
+ set assignToId(value) {
12842
+ Module.ccall("csp_systems_UserTierInfo__Set_AssignToId", "void", ["number", "string"], [this.pointer, value]);
12843
+ }
12844
+ get tierName() {
12845
+ let _result = Module.ccall("csp_systems_UserTierInfo__Get_TierName", "number", ["number"], [this.pointer]);
12846
+ return _result;
12847
+ }
12848
+ set tierName(value) {
12849
+ Module.ccall("csp_systems_UserTierInfo__Set_TierName", "void", ["number", "number"], [this.pointer, value]);
12850
+ }
12851
+ }
12852
+ Systems.UserTierInfo = UserTierInfo;
12853
+ })(Systems || (Systems = {}));
12854
+ (function (Systems) {
12855
+ /**
12856
+ @ingroup Quota System
12857
+ * @description Data representation of a progress of a specific feature.
12858
+ * Limit Value of -1 means unlimited usage
12859
+ */
12860
+ class FeatureQuotaInfo extends NativeClassWrapper {
12861
+ /** @internal */
12862
+ constructor(pointer) {
12863
+ super(pointer);
12864
+ }
12865
+ static create() {
12866
+ var _ptr = Module._malloc(8);
12867
+ Module.ccall("csp_systems_FeatureQuotaInfo_Ctor", "void", ["number"], [_ptr]);
12868
+ var _nPtr = getNativePointer(_ptr);
12869
+ return new FeatureQuotaInfo(_nPtr);
12870
+ }
12871
+ delete() {
12872
+ if (this.ownsPointer && !this.disposed) {
12873
+ Module.ccall("csp_systems_FeatureQuotaInfo_Dtor", "void", ["number"], [this.pointer]);
12874
+ this.disposed = true;
12875
+ }
12876
+ }
12877
+ get featureName() {
12878
+ let _result = Module.ccall("csp_systems_FeatureQuotaInfo__Get_FeatureName", "number", ["number"], [this.pointer]);
12879
+ return _result;
12880
+ }
12881
+ set featureName(value) {
12882
+ Module.ccall("csp_systems_FeatureQuotaInfo__Set_FeatureName", "void", ["number", "number"], [this.pointer, value]);
12883
+ }
12884
+ get tierName() {
12885
+ let _result = Module.ccall("csp_systems_FeatureQuotaInfo__Get_TierName", "number", ["number"], [this.pointer]);
12886
+ return _result;
12887
+ }
12888
+ set tierName(value) {
12889
+ Module.ccall("csp_systems_FeatureQuotaInfo__Set_TierName", "void", ["number", "number"], [this.pointer, value]);
12890
+ }
12891
+ get limit() {
12892
+ let _result = Module.ccall("csp_systems_FeatureQuotaInfo__Get_Limit", "number", ["number"], [this.pointer]);
12893
+ return _result;
12894
+ }
12895
+ set limit(value) {
12896
+ Module.ccall("csp_systems_FeatureQuotaInfo__Set_Limit", "void", ["number", "number"], [this.pointer, value]);
12897
+ }
12898
+ get period() {
12899
+ let _result = Module.ccall("csp_systems_FeatureQuotaInfo__Get_Period", "number", ["number"], [this.pointer]);
12900
+ return _result;
12901
+ }
12902
+ set period(value) {
12903
+ Module.ccall("csp_systems_FeatureQuotaInfo__Set_Period", "void", ["number", "number"], [this.pointer, value]);
12904
+ }
12905
+ get allowReductions() {
12906
+ let _result = Module.ccall("csp_systems_FeatureQuotaInfo__Get_AllowReductions", "boolean", ["number"], [this.pointer]);
12907
+ return _result;
12908
+ }
12909
+ set allowReductions(value) {
12910
+ Module.ccall("csp_systems_FeatureQuotaInfo__Set_AllowReductions", "void", ["number", "boolean"], [this.pointer, value]);
12911
+ }
12912
+ }
12913
+ Systems.FeatureQuotaInfo = FeatureQuotaInfo;
12914
+ })(Systems || (Systems = {}));
12636
12915
  (function (Systems) {
12637
12916
  /**
12638
12917
  * @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
@@ -20458,6 +20737,386 @@ export class CSPFoundation {
20458
20737
  }
20459
20738
  Systems.MaintenanceSystem = MaintenanceSystem;
20460
20739
  })(Systems || (Systems = {}));
20740
+ (function (Systems) {
20741
+ /**
20742
+ @ingroup Quota System
20743
+ * @description Data class used to contain information when receiving an array of feature progress.
20744
+ */
20745
+ class FeaturesLimitResult extends Services.ResultBase {
20746
+ /** @internal */
20747
+ constructor(pointer) {
20748
+ super(pointer);
20749
+ }
20750
+ static fromResultBase(baseInstance) {
20751
+ const nativeClassWrapper = baseInstance;
20752
+ return new Systems.FeaturesLimitResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20753
+ }
20754
+ /**
20755
+ * @description Retrieves the feature progress result.
20756
+ * @return Const array of feature progress class
20757
+ */
20758
+ getFeaturesLimitInfo() {
20759
+ var _ret = Module._malloc(8);
20760
+ Module.ccall("csp_systems_FeaturesLimitResult_GetFeaturesLimitInfoC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
20761
+ var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_FeatureLimitInfoFactory, "csp_systems_FeatureLimitInfo");
20762
+ Module._free(_ret);
20763
+ return _nPtr;
20764
+ }
20765
+ delete() {
20766
+ if (this.ownsPointer && !this.disposed) {
20767
+ Module.ccall("csp_systems_FeaturesLimitResult_Dtor", "void", ["number"], [this.pointer]);
20768
+ this.disposed = true;
20769
+ }
20770
+ }
20771
+ }
20772
+ Systems.FeaturesLimitResult = FeaturesLimitResult;
20773
+ })(Systems || (Systems = {}));
20774
+ (function (Systems) {
20775
+ /**
20776
+ @ingroup Quota System
20777
+ * @description Data class used to contain information when receiving an array of feature progresses.
20778
+ */
20779
+ class FeatureLimitResult extends Services.ResultBase {
20780
+ /** @internal */
20781
+ constructor(pointer) {
20782
+ super(pointer);
20783
+ }
20784
+ static fromResultBase(baseInstance) {
20785
+ const nativeClassWrapper = baseInstance;
20786
+ return new Systems.FeatureLimitResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20787
+ }
20788
+ /**
20789
+ * @description Retrieves the feature progress result.
20790
+ @returnFeatureProgress : const ref to feature progress class
20791
+ */
20792
+ getFeatureLimitInfo() {
20793
+ var _ret = Module._malloc(8);
20794
+ Module.ccall("csp_systems_FeatureLimitResult_GetFeatureLimitInfoC_FeatureLimitInfoRC", "void", ["number", "number"], [_ret, this.pointer]);
20795
+ var _nPtr = new Systems.FeatureLimitInfo(getNativePointer(_ret));
20796
+ Module._free(_ret);
20797
+ return _nPtr;
20798
+ }
20799
+ delete() {
20800
+ if (this.ownsPointer && !this.disposed) {
20801
+ Module.ccall("csp_systems_FeatureLimitResult_Dtor", "void", ["number"], [this.pointer]);
20802
+ this.disposed = true;
20803
+ }
20804
+ }
20805
+ }
20806
+ Systems.FeatureLimitResult = FeatureLimitResult;
20807
+ })(Systems || (Systems = {}));
20808
+ (function (Systems) {
20809
+ /**
20810
+ @ingroup Quota System
20811
+ * @description Data class used to contain information when receiving user tier information.
20812
+ */
20813
+ class UserTierResult extends Services.ResultBase {
20814
+ /** @internal */
20815
+ constructor(pointer) {
20816
+ super(pointer);
20817
+ }
20818
+ static fromResultBase(baseInstance) {
20819
+ const nativeClassWrapper = baseInstance;
20820
+ return new Systems.UserTierResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20821
+ }
20822
+ /**
20823
+ * @description Retrieves the user tier result.
20824
+ @returnFeatureProgress : const ref to user tier information class
20825
+ */
20826
+ getUserTierInfo() {
20827
+ var _ret = Module._malloc(8);
20828
+ Module.ccall("csp_systems_UserTierResult_GetUserTierInfoC_UserTierInfoRC", "void", ["number", "number"], [_ret, this.pointer]);
20829
+ var _nPtr = new Systems.UserTierInfo(getNativePointer(_ret));
20830
+ Module._free(_ret);
20831
+ return _nPtr;
20832
+ }
20833
+ delete() {
20834
+ if (this.ownsPointer && !this.disposed) {
20835
+ Module.ccall("csp_systems_UserTierResult_Dtor", "void", ["number"], [this.pointer]);
20836
+ this.disposed = true;
20837
+ }
20838
+ }
20839
+ }
20840
+ Systems.UserTierResult = UserTierResult;
20841
+ })(Systems || (Systems = {}));
20842
+ (function (Systems) {
20843
+ /**
20844
+ @ingroup Quota System
20845
+ * @description Data class used to contain information when receiving feature quota information.
20846
+ */
20847
+ class FeatureQuotaResult extends Services.ResultBase {
20848
+ /** @internal */
20849
+ constructor(pointer) {
20850
+ super(pointer);
20851
+ }
20852
+ static fromResultBase(baseInstance) {
20853
+ const nativeClassWrapper = baseInstance;
20854
+ return new Systems.FeatureQuotaResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20855
+ }
20856
+ /**
20857
+ * @description Retrieves the feature quota result.
20858
+ @returnFeatureProgress : const ref to feature quota class
20859
+ */
20860
+ getFeatureQuotaInfo() {
20861
+ var _ret = Module._malloc(8);
20862
+ Module.ccall("csp_systems_FeatureQuotaResult_GetFeatureQuotaInfoC_FeatureQuotaInfoRC", "void", ["number", "number"], [_ret, this.pointer]);
20863
+ var _nPtr = new Systems.FeatureQuotaInfo(getNativePointer(_ret));
20864
+ Module._free(_ret);
20865
+ return _nPtr;
20866
+ }
20867
+ delete() {
20868
+ if (this.ownsPointer && !this.disposed) {
20869
+ Module.ccall("csp_systems_FeatureQuotaResult_Dtor", "void", ["number"], [this.pointer]);
20870
+ this.disposed = true;
20871
+ }
20872
+ }
20873
+ }
20874
+ Systems.FeatureQuotaResult = FeatureQuotaResult;
20875
+ })(Systems || (Systems = {}));
20876
+ (function (Systems) {
20877
+ /**
20878
+ @ingroup Quota System
20879
+ * @description Data class used to contain information when receiving an array of feature quota information.
20880
+ */
20881
+ class FeaturesQuotaResult extends Services.ResultBase {
20882
+ /** @internal */
20883
+ constructor(pointer) {
20884
+ super(pointer);
20885
+ }
20886
+ static fromResultBase(baseInstance) {
20887
+ const nativeClassWrapper = baseInstance;
20888
+ return new Systems.FeaturesQuotaResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20889
+ }
20890
+ /**
20891
+ * @description Retrieves an array of feature quota results.
20892
+ @returnFeatureProgress : const ref to feature quota class
20893
+ */
20894
+ getFeaturesQuotaInfo() {
20895
+ var _ret = Module._malloc(8);
20896
+ Module.ccall("csp_systems_FeaturesQuotaResult_GetFeaturesQuotaInfoC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
20897
+ var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_FeatureQuotaInfoFactory, "csp_systems_FeatureQuotaInfo");
20898
+ Module._free(_ret);
20899
+ return _nPtr;
20900
+ }
20901
+ delete() {
20902
+ if (this.ownsPointer && !this.disposed) {
20903
+ Module.ccall("csp_systems_FeaturesQuotaResult_Dtor", "void", ["number"], [this.pointer]);
20904
+ this.disposed = true;
20905
+ }
20906
+ }
20907
+ }
20908
+ Systems.FeaturesQuotaResult = FeaturesQuotaResult;
20909
+ })(Systems || (Systems = {}));
20910
+ (function (Systems) {
20911
+ /**
20912
+ @ingroup Quota System
20913
+ * @description Public facing system that allows interfacing with Magnopus Connect Services' Quota Server.
20914
+ * Offers methods for receiving Quota Queries.
20915
+ */
20916
+ class QuotaSystem extends Systems.SystemBase {
20917
+ /** @internal */
20918
+ constructor(pointer) {
20919
+ super(pointer);
20920
+ }
20921
+ static fromSystemBase(baseInstance) {
20922
+ const nativeClassWrapper = baseInstance;
20923
+ return new Systems.QuotaSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
20924
+ }
20925
+ /**
20926
+ * @description Get the total number of Spaces owned by the current user and their tier space limit
20927
+ * @param callback - Callback when asynchronous task finishes
20928
+ */
20929
+ async getTotalSpacesOwnedByUser() {
20930
+ var _resolve;
20931
+ var _promise = new Promise((_r) => {
20932
+ _resolve = _r;
20933
+ });
20934
+ var _callbackPtr;
20935
+ var _callback = (_stateObject__, result) => {
20936
+ var _resultPtr = getNativePointer(result);
20937
+ var _resultInstance = new Systems.FeatureLimitResult(_resultPtr);
20938
+ if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
20939
+ return;
20940
+ }
20941
+ _resolve(_resultInstance);
20942
+ Module.removeFunction(_callbackPtr);
20943
+ };
20944
+ _callbackPtr = Module.addFunction(_callback, "vii");
20945
+ Module.ccall("csp_systems_QuotaSystem_GetTotalSpacesOwnedByUser_void_FeatureLimitCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
20946
+ return _promise;
20947
+ }
20948
+ /**
20949
+ * @description Gets total number of user inside of a space and its tier user limit
20950
+ * @param spaceId - Id of the Space
20951
+ * @param callback - Callback when asynchronous task finishes
20952
+ */
20953
+ async getConcurrentUsersInSpace(spaceId) {
20954
+ var _resolve;
20955
+ var _promise = new Promise((_r) => {
20956
+ _resolve = _r;
20957
+ });
20958
+ var _callbackPtr;
20959
+ var _callback = (_stateObject__, result) => {
20960
+ var _resultPtr = getNativePointer(result);
20961
+ var _resultInstance = new Systems.FeatureLimitResult(_resultPtr);
20962
+ if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
20963
+ return;
20964
+ }
20965
+ _resolve(_resultInstance);
20966
+ Module.removeFunction(_callbackPtr);
20967
+ };
20968
+ _callbackPtr = Module.addFunction(_callback, "vii");
20969
+ Module.ccall("csp_systems_QuotaSystem_GetConcurrentUsersInSpace_void_StringRC_FeatureLimitCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
20970
+ return _promise;
20971
+ }
20972
+ /**
20973
+ * @description Get total size of all assets within a space and their tier space size limit
20974
+ * @param spaceId - Id of the Space
20975
+ * @param callback - Callback when asynchronous task finishes
20976
+ */
20977
+ async getTotalSpaceSizeInKilobytes(spaceId) {
20978
+ var _resolve;
20979
+ var _promise = new Promise((_r) => {
20980
+ _resolve = _r;
20981
+ });
20982
+ var _callbackPtr;
20983
+ var _callback = (_stateObject__, result) => {
20984
+ var _resultPtr = getNativePointer(result);
20985
+ var _resultInstance = new Systems.FeatureLimitResult(_resultPtr);
20986
+ if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
20987
+ return;
20988
+ }
20989
+ _resolve(_resultInstance);
20990
+ Module.removeFunction(_callbackPtr);
20991
+ };
20992
+ _callbackPtr = Module.addFunction(_callback, "vii");
20993
+ Module.ccall("csp_systems_QuotaSystem_GetTotalSpaceSizeInKilobytes_void_StringRC_FeatureLimitCallback", "void", ["number", "string", "number", "number"], [this.pointer, spaceId, _callbackPtr, 0]);
20994
+ return _promise;
20995
+ }
20996
+ /**
20997
+ * @description Get Array of feature progresses for a user and their tier feature limits
20998
+ * @param featureNames - Array of feature names that will be retrieved
20999
+ * @param callback - Callback when asynchronous task finishes
21000
+ */
21001
+ async getTierFeatureProgressForUser(featureNames) {
21002
+ var _resolve;
21003
+ var _promise = new Promise((_r) => {
21004
+ _resolve = _r;
21005
+ });
21006
+ var _callbackPtr;
21007
+ var _callback = (_stateObject__, result) => {
21008
+ var _resultPtr = getNativePointer(result);
21009
+ var _resultInstance = new Systems.FeaturesLimitResult(_resultPtr);
21010
+ if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
21011
+ return;
21012
+ }
21013
+ _resolve(_resultInstance);
21014
+ Module.removeFunction(_callbackPtr);
21015
+ };
21016
+ _callbackPtr = Module.addFunction(_callback, "vii");
21017
+ Module.ccall("csp_systems_QuotaSystem_GetTierFeatureProgressForUser_void_ArrayRC_FeaturesLimitCallback", "void", ["number", "number", "number", "number"], [this.pointer, featureNames.pointer, _callbackPtr, 0]);
21018
+ return _promise;
21019
+ }
21020
+ /**
21021
+ * @description Get Array of feature progress for a user Space and its tier feature limits
21022
+ * @param spaceId - Id of the Space
21023
+ * @param featureNames - Array of feature names that will be retrieved
21024
+ * @param callback - Callback when asynchronous task finishes
21025
+ */
21026
+ async getTierFeatureProgressForSpace(spaceId, featureNames) {
21027
+ var _resolve;
21028
+ var _promise = new Promise((_r) => {
21029
+ _resolve = _r;
21030
+ });
21031
+ var _callbackPtr;
21032
+ var _callback = (_stateObject__, result) => {
21033
+ var _resultPtr = getNativePointer(result);
21034
+ var _resultInstance = new Systems.FeaturesLimitResult(_resultPtr);
21035
+ if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
21036
+ return;
21037
+ }
21038
+ _resolve(_resultInstance);
21039
+ Module.removeFunction(_callbackPtr);
21040
+ };
21041
+ _callbackPtr = Module.addFunction(_callback, "vii");
21042
+ Module.ccall("csp_systems_QuotaSystem_GetTierFeatureProgressForSpace_void_StringRC_ArrayRC_FeaturesLimitCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, spaceId, featureNames.pointer, _callbackPtr, 0]);
21043
+ return _promise;
21044
+ }
21045
+ /**
21046
+ * @description Get current users tier information
21047
+ * @param callback - Callback when asynchronous task finishes
21048
+ */
21049
+ async getCurrentUserTier() {
21050
+ var _resolve;
21051
+ var _promise = new Promise((_r) => {
21052
+ _resolve = _r;
21053
+ });
21054
+ var _callbackPtr;
21055
+ var _callback = (_stateObject__, result) => {
21056
+ var _resultPtr = getNativePointer(result);
21057
+ var _resultInstance = new Systems.UserTierResult(_resultPtr);
21058
+ if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
21059
+ return;
21060
+ }
21061
+ _resolve(_resultInstance);
21062
+ Module.removeFunction(_callbackPtr);
21063
+ };
21064
+ _callbackPtr = Module.addFunction(_callback, "vii");
21065
+ Module.ccall("csp_systems_QuotaSystem_GetCurrentUserTier_void_UserTierCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21066
+ return _promise;
21067
+ }
21068
+ /**
21069
+ * @description Get current feature quota information
21070
+ * @param tierName - Name of the tier
21071
+ * @param featureName - Name of the feature
21072
+ * @param callback - Callback when asynchronous task finishes
21073
+ */
21074
+ async getTierFeatureQuota(tierName, featureName) {
21075
+ var _resolve;
21076
+ var _promise = new Promise((_r) => {
21077
+ _resolve = _r;
21078
+ });
21079
+ var _callbackPtr;
21080
+ var _callback = (_stateObject__, result) => {
21081
+ var _resultPtr = getNativePointer(result);
21082
+ var _resultInstance = new Systems.FeatureQuotaResult(_resultPtr);
21083
+ if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
21084
+ return;
21085
+ }
21086
+ _resolve(_resultInstance);
21087
+ Module.removeFunction(_callbackPtr);
21088
+ };
21089
+ _callbackPtr = Module.addFunction(_callback, "vii");
21090
+ Module.ccall("csp_systems_QuotaSystem_GetTierFeatureQuota_void_TierNames_TierFeatures_FeatureQuotaCallback", "void", ["number", "number", "number", "number", "number"], [this.pointer, tierName, featureName, _callbackPtr, 0]);
21091
+ return _promise;
21092
+ }
21093
+ /**
21094
+ * @description Get current array of current feature quota information inside a tier
21095
+ * @param tierName - Name of the tier
21096
+ * @param callback - Callback when asynchronous task finishes
21097
+ */
21098
+ async getTierFeaturesQuota(tierName) {
21099
+ var _resolve;
21100
+ var _promise = new Promise((_r) => {
21101
+ _resolve = _r;
21102
+ });
21103
+ var _callbackPtr;
21104
+ var _callback = (_stateObject__, result) => {
21105
+ var _resultPtr = getNativePointer(result);
21106
+ var _resultInstance = new Systems.FeaturesQuotaResult(_resultPtr);
21107
+ if (_resultInstance.getResultCode() == Services.EResultCode.InProgress) {
21108
+ return;
21109
+ }
21110
+ _resolve(_resultInstance);
21111
+ Module.removeFunction(_callbackPtr);
21112
+ };
21113
+ _callbackPtr = Module.addFunction(_callback, "vii");
21114
+ Module.ccall("csp_systems_QuotaSystem_GetTierFeaturesQuota_void_TierNames_FeaturesQuotaCallback", "void", ["number", "number", "number", "number"], [this.pointer, tierName, _callbackPtr, 0]);
21115
+ return _promise;
21116
+ }
21117
+ }
21118
+ Systems.QuotaSystem = QuotaSystem;
21119
+ })(Systems || (Systems = {}));
20461
21120
  (function (Systems) {
20462
21121
  /**
20463
21122
  @ingroup Settings System
@@ -24047,6 +24706,27 @@ export class CSPFoundation {
24047
24706
  Module._free(_ret);
24048
24707
  return _inst;
24049
24708
  }
24709
+ static ofcsp_systems_FeatureLimitInfo() {
24710
+ var _ret = Module._malloc(8);
24711
+ Module.ccall("csp_common_Array_Ctor_csp_systems_FeatureLimitInfo", "void", ["number"], [_ret]);
24712
+ var _inst = new Array(getNativePointer(_ret), csp_systems_FeatureLimitInfoFactory, "csp_systems_FeatureLimitInfo");
24713
+ Module._free(_ret);
24714
+ return _inst;
24715
+ }
24716
+ static ofcsp_systems_FeatureQuotaInfo() {
24717
+ var _ret = Module._malloc(8);
24718
+ Module.ccall("csp_common_Array_Ctor_csp_systems_FeatureQuotaInfo", "void", ["number"], [_ret]);
24719
+ var _inst = new Array(getNativePointer(_ret), csp_systems_FeatureQuotaInfoFactory, "csp_systems_FeatureQuotaInfo");
24720
+ Module._free(_ret);
24721
+ return _inst;
24722
+ }
24723
+ static ofcsp_systems_TierFeatures() {
24724
+ var _ret = Module._malloc(8);
24725
+ Module.ccall("csp_common_Array_Ctor_csp_systems_TierFeatures", "void", ["number"], [_ret]);
24726
+ var _inst = new Array(getNativePointer(_ret), csp_systems_TierFeaturesFactory, "csp_systems_TierFeatures");
24727
+ Module._free(_ret);
24728
+ return _inst;
24729
+ }
24050
24730
  static ofcsp_systems_Site() {
24051
24731
  var _ret = Module._malloc(8);
24052
24732
  Module.ccall("csp_common_Array_Ctor_csp_systems_Site", "void", ["number"], [_ret]);
@@ -24264,6 +24944,27 @@ export class CSPFoundation {
24264
24944
  Module._free(_ret);
24265
24945
  return _inst;
24266
24946
  }
24947
+ static ofcsp_systems_FeatureLimitInfo_number(size) {
24948
+ var _ret = Module._malloc(8);
24949
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_FeatureLimitInfo", "void", ["number", "number"], [_ret, size]);
24950
+ var _inst = new Array(getNativePointer(_ret), csp_systems_FeatureLimitInfoFactory, "csp_systems_FeatureLimitInfo");
24951
+ Module._free(_ret);
24952
+ return _inst;
24953
+ }
24954
+ static ofcsp_systems_FeatureQuotaInfo_number(size) {
24955
+ var _ret = Module._malloc(8);
24956
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_FeatureQuotaInfo", "void", ["number", "number"], [_ret, size]);
24957
+ var _inst = new Array(getNativePointer(_ret), csp_systems_FeatureQuotaInfoFactory, "csp_systems_FeatureQuotaInfo");
24958
+ Module._free(_ret);
24959
+ return _inst;
24960
+ }
24961
+ static ofcsp_systems_TierFeatures_number(size) {
24962
+ var _ret = Module._malloc(8);
24963
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_TierFeatures", "void", ["number", "number"], [_ret, size]);
24964
+ var _inst = new Array(getNativePointer(_ret), csp_systems_TierFeaturesFactory, "csp_systems_TierFeatures");
24965
+ Module._free(_ret);
24966
+ return _inst;
24967
+ }
24267
24968
  static ofcsp_systems_Site_number(size) {
24268
24969
  var _ret = Module._malloc(8);
24269
24970
  Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_Site", "void", ["number", "number"], [_ret, size]);