connected-spaces-platform.web 5.9.4 → 5.11.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 +10 -172
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +14 -252
- package/connectedspacesplatform.js +48 -742
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +269 -1633
- package/package.json +1 -1
|
@@ -588,11 +588,6 @@ function csp_systems_LogLevelFactory(nativePointer) {
|
|
|
588
588
|
return nativePointer.pointer;
|
|
589
589
|
}
|
|
590
590
|
ProxyClassFactories["csp_systems_LogLevel"] = csp_systems_LogLevelFactory;
|
|
591
|
-
function csp_systems_EOrganizationRoleFactory(nativePointer) {
|
|
592
|
-
return nativePointer.pointer;
|
|
593
|
-
}
|
|
594
|
-
ProxyClassFactories["csp_systems_EOrganizationRole"] =
|
|
595
|
-
csp_systems_EOrganizationRoleFactory;
|
|
596
591
|
function csp_systems_PeriodEnumFactory(nativePointer) {
|
|
597
592
|
return nativePointer.pointer;
|
|
598
593
|
}
|
|
@@ -899,26 +894,6 @@ function csp_systems_MaintenanceInfoFactory(nativePointer) {
|
|
|
899
894
|
}
|
|
900
895
|
ProxyClassFactories["csp_systems_MaintenanceInfo"] =
|
|
901
896
|
csp_systems_MaintenanceInfoFactory;
|
|
902
|
-
function csp_systems_InviteOrganizationRoleInfoFactory(nativePointer) {
|
|
903
|
-
return new Systems.InviteOrganizationRoleInfo(nativePointer);
|
|
904
|
-
}
|
|
905
|
-
ProxyClassFactories["csp_systems_InviteOrganizationRoleInfo"] =
|
|
906
|
-
csp_systems_InviteOrganizationRoleInfoFactory;
|
|
907
|
-
function csp_systems_InviteOrganizationRoleCollectionFactory(nativePointer) {
|
|
908
|
-
return new Systems.InviteOrganizationRoleCollection(nativePointer);
|
|
909
|
-
}
|
|
910
|
-
ProxyClassFactories["csp_systems_InviteOrganizationRoleCollection"] =
|
|
911
|
-
csp_systems_InviteOrganizationRoleCollectionFactory;
|
|
912
|
-
function csp_systems_OrganizationRoleInfoFactory(nativePointer) {
|
|
913
|
-
return new Systems.OrganizationRoleInfo(nativePointer);
|
|
914
|
-
}
|
|
915
|
-
ProxyClassFactories["csp_systems_OrganizationRoleInfo"] =
|
|
916
|
-
csp_systems_OrganizationRoleInfoFactory;
|
|
917
|
-
function csp_systems_OrganizationFactory(nativePointer) {
|
|
918
|
-
return new Systems.Organization(nativePointer);
|
|
919
|
-
}
|
|
920
|
-
ProxyClassFactories["csp_systems_Organization"] =
|
|
921
|
-
csp_systems_OrganizationFactory;
|
|
922
897
|
function csp_systems_FeatureLimitInfoFactory(nativePointer) {
|
|
923
898
|
return new Systems.FeatureLimitInfo(nativePointer);
|
|
924
899
|
}
|
|
@@ -1362,21 +1337,6 @@ function csp_systems_MaintenanceSystemFactory(nativePointer) {
|
|
|
1362
1337
|
}
|
|
1363
1338
|
ProxyClassFactories["csp_systems_MaintenanceSystem"] =
|
|
1364
1339
|
csp_systems_MaintenanceSystemFactory;
|
|
1365
|
-
function csp_systems_OrganizationResultFactory(nativePointer) {
|
|
1366
|
-
return new Systems.OrganizationResult(nativePointer);
|
|
1367
|
-
}
|
|
1368
|
-
ProxyClassFactories["csp_systems_OrganizationResult"] =
|
|
1369
|
-
csp_systems_OrganizationResultFactory;
|
|
1370
|
-
function csp_systems_OrganizationRolesResultFactory(nativePointer) {
|
|
1371
|
-
return new Systems.OrganizationRolesResult(nativePointer);
|
|
1372
|
-
}
|
|
1373
|
-
ProxyClassFactories["csp_systems_OrganizationRolesResult"] =
|
|
1374
|
-
csp_systems_OrganizationRolesResultFactory;
|
|
1375
|
-
function csp_systems_OrganizationSystemFactory(nativePointer) {
|
|
1376
|
-
return new Systems.OrganizationSystem(nativePointer);
|
|
1377
|
-
}
|
|
1378
|
-
ProxyClassFactories["csp_systems_OrganizationSystem"] =
|
|
1379
|
-
csp_systems_OrganizationSystemFactory;
|
|
1380
1340
|
function csp_systems_FeaturesLimitResultFactory(nativePointer) {
|
|
1381
1341
|
return new Systems.FeaturesLimitResult(nativePointer);
|
|
1382
1342
|
}
|
|
@@ -1678,21 +1638,6 @@ function csp_common_Array_csp_systems_MaintenanceInfoFactory(nativePointer) {
|
|
|
1678
1638
|
}
|
|
1679
1639
|
ProxyClassFactories["csp_common_Array_csp_systems_MaintenanceInfo"] =
|
|
1680
1640
|
csp_common_Array_csp_systems_MaintenanceInfoFactory;
|
|
1681
|
-
function csp_common_Array_csp_systems_EOrganizationRoleFactory(nativePointer) {
|
|
1682
|
-
return new Common.Array(nativePointer, csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
1683
|
-
}
|
|
1684
|
-
ProxyClassFactories["csp_common_Array_csp_systems_EOrganizationRole"] =
|
|
1685
|
-
csp_common_Array_csp_systems_EOrganizationRoleFactory;
|
|
1686
|
-
function csp_common_Array_csp_systems_InviteOrganizationRoleInfoFactory(nativePointer) {
|
|
1687
|
-
return new Common.Array(nativePointer, csp_systems_InviteOrganizationRoleInfoFactory, "csp_systems_InviteOrganizationRoleInfo");
|
|
1688
|
-
}
|
|
1689
|
-
ProxyClassFactories["csp_common_Array_csp_systems_InviteOrganizationRoleInfo"] =
|
|
1690
|
-
csp_common_Array_csp_systems_InviteOrganizationRoleInfoFactory;
|
|
1691
|
-
function csp_common_Array_csp_systems_OrganizationRoleInfoFactory(nativePointer) {
|
|
1692
|
-
return new Common.Array(nativePointer, csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
1693
|
-
}
|
|
1694
|
-
ProxyClassFactories["csp_common_Array_csp_systems_OrganizationRoleInfo"] =
|
|
1695
|
-
csp_common_Array_csp_systems_OrganizationRoleInfoFactory;
|
|
1696
1641
|
function csp_common_Array_csp_systems_FeatureLimitInfoFactory(nativePointer) {
|
|
1697
1642
|
return new Common.Array(nativePointer, csp_systems_FeatureLimitInfoFactory, "csp_systems_FeatureLimitInfo");
|
|
1698
1643
|
}
|
|
@@ -2865,17 +2810,6 @@ export var Multiplayer;
|
|
|
2865
2810
|
LogLevel[LogLevel["All"] = 8] = "All";
|
|
2866
2811
|
})(LogLevel = Systems.LogLevel || (Systems.LogLevel = {}));
|
|
2867
2812
|
})(Systems || (Systems = {}));
|
|
2868
|
-
(function (Systems) {
|
|
2869
|
-
/**
|
|
2870
|
-
* @description Data representation of User Role in Organization.
|
|
2871
|
-
*/
|
|
2872
|
-
let EOrganizationRole;
|
|
2873
|
-
(function (EOrganizationRole) {
|
|
2874
|
-
EOrganizationRole[EOrganizationRole["Member"] = 0] = "Member";
|
|
2875
|
-
EOrganizationRole[EOrganizationRole["Administrator"] = 1] = "Administrator";
|
|
2876
|
-
EOrganizationRole[EOrganizationRole["Owner"] = 2] = "Owner";
|
|
2877
|
-
})(EOrganizationRole = Systems.EOrganizationRole || (Systems.EOrganizationRole = {}));
|
|
2878
|
-
})(Systems || (Systems = {}));
|
|
2879
2813
|
(function (Systems) {
|
|
2880
2814
|
/**
|
|
2881
2815
|
@ingroup Quota System
|
|
@@ -11733,17 +11667,6 @@ export class CSPFoundation {
|
|
|
11733
11667
|
Module._free(_ret);
|
|
11734
11668
|
return _nPtr;
|
|
11735
11669
|
}
|
|
11736
|
-
/**
|
|
11737
|
-
* @description Retrieves the Organization system.
|
|
11738
|
-
* @return Pointer to the organization system class
|
|
11739
|
-
*/
|
|
11740
|
-
getOrganizationSystem() {
|
|
11741
|
-
var _ret = Module._malloc(8);
|
|
11742
|
-
Module.ccall("csp_systems_SystemsManager_GetOrganizationSystem_OrganizationSystemP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
11743
|
-
var _nPtr = new Systems.OrganizationSystem(getNativePointer(_ret));
|
|
11744
|
-
Module._free(_ret);
|
|
11745
|
-
return _nPtr;
|
|
11746
|
-
}
|
|
11747
11670
|
/**
|
|
11748
11671
|
* @description Retrieves the Sequence system.
|
|
11749
11672
|
* @return Pointer to the sequence system class
|
|
@@ -12391,13 +12314,6 @@ export class CSPFoundation {
|
|
|
12391
12314
|
set version(value) {
|
|
12392
12315
|
Module.ccall("csp_systems_AssetCollection__Set_Version", "void", ["number", "string"], [this.pointer, value]);
|
|
12393
12316
|
}
|
|
12394
|
-
get organizationId() {
|
|
12395
|
-
let _result = Module.ccall("csp_systems_AssetCollection__Get_OrganizationId", "string", ["number"], [this.pointer]);
|
|
12396
|
-
return _result;
|
|
12397
|
-
}
|
|
12398
|
-
set organizationId(value) {
|
|
12399
|
-
Module.ccall("csp_systems_AssetCollection__Set_OrganizationId", "void", ["number", "string"], [this.pointer, value]);
|
|
12400
|
-
}
|
|
12401
12317
|
}
|
|
12402
12318
|
Systems.AssetCollection = AssetCollection;
|
|
12403
12319
|
})(Systems || (Systems = {}));
|
|
@@ -13674,218 +13590,6 @@ export class CSPFoundation {
|
|
|
13674
13590
|
}
|
|
13675
13591
|
Systems.MaintenanceInfo = MaintenanceInfo;
|
|
13676
13592
|
})(Systems || (Systems = {}));
|
|
13677
|
-
(function (Systems) {
|
|
13678
|
-
/**
|
|
13679
|
-
@ingroup Organization System
|
|
13680
|
-
* @description Data representation of a User's Organization invite.
|
|
13681
|
-
*/
|
|
13682
|
-
class InviteOrganizationRoleInfo extends NativeClassWrapper {
|
|
13683
|
-
/** @internal */
|
|
13684
|
-
constructor(pointer) {
|
|
13685
|
-
super(pointer);
|
|
13686
|
-
}
|
|
13687
|
-
static create() {
|
|
13688
|
-
var _ptr = Module._malloc(8);
|
|
13689
|
-
Module.ccall("csp_systems_InviteOrganizationRoleInfo_Ctor", "void", ["number"], [_ptr]);
|
|
13690
|
-
var _nPtr = getNativePointer(_ptr);
|
|
13691
|
-
return new InviteOrganizationRoleInfo(_nPtr);
|
|
13692
|
-
}
|
|
13693
|
-
delete() {
|
|
13694
|
-
if (this.ownsPointer && !this.disposed) {
|
|
13695
|
-
Module.ccall("csp_systems_InviteOrganizationRoleInfo_Dtor", "void", ["number"], [this.pointer]);
|
|
13696
|
-
this.disposed = true;
|
|
13697
|
-
}
|
|
13698
|
-
}
|
|
13699
|
-
get userEmail() {
|
|
13700
|
-
let _result = Module.ccall("csp_systems_InviteOrganizationRoleInfo__Get_UserEmail", "string", ["number"], [this.pointer]);
|
|
13701
|
-
return _result;
|
|
13702
|
-
}
|
|
13703
|
-
set userEmail(value) {
|
|
13704
|
-
Module.ccall("csp_systems_InviteOrganizationRoleInfo__Set_UserEmail", "void", ["number", "string"], [this.pointer, value]);
|
|
13705
|
-
}
|
|
13706
|
-
get organizationRoles() {
|
|
13707
|
-
const _ptr = Module._malloc(8);
|
|
13708
|
-
Module.ccall("csp_systems_InviteOrganizationRoleInfo__Get_OrganizationRoles", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
13709
|
-
const _nPtr = getNativePointer(_ptr);
|
|
13710
|
-
return new Common.Array(_nPtr, csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
13711
|
-
}
|
|
13712
|
-
set organizationRoles(value) {
|
|
13713
|
-
Module.ccall("csp_systems_InviteOrganizationRoleInfo__Set_OrganizationRoles", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
13714
|
-
}
|
|
13715
|
-
}
|
|
13716
|
-
Systems.InviteOrganizationRoleInfo = InviteOrganizationRoleInfo;
|
|
13717
|
-
})(Systems || (Systems = {}));
|
|
13718
|
-
(function (Systems) {
|
|
13719
|
-
/**
|
|
13720
|
-
@ingroup Organization System
|
|
13721
|
-
* @description Data representation of a collection of User Organization invites.
|
|
13722
|
-
*/
|
|
13723
|
-
class InviteOrganizationRoleCollection extends NativeClassWrapper {
|
|
13724
|
-
/** @internal */
|
|
13725
|
-
constructor(pointer) {
|
|
13726
|
-
super(pointer);
|
|
13727
|
-
}
|
|
13728
|
-
static create() {
|
|
13729
|
-
var _ptr = Module._malloc(8);
|
|
13730
|
-
Module.ccall("csp_systems_InviteOrganizationRoleCollection_Ctor", "void", ["number"], [_ptr]);
|
|
13731
|
-
var _nPtr = getNativePointer(_ptr);
|
|
13732
|
-
return new InviteOrganizationRoleCollection(_nPtr);
|
|
13733
|
-
}
|
|
13734
|
-
delete() {
|
|
13735
|
-
if (this.ownsPointer && !this.disposed) {
|
|
13736
|
-
Module.ccall("csp_systems_InviteOrganizationRoleCollection_Dtor", "void", ["number"], [this.pointer]);
|
|
13737
|
-
this.disposed = true;
|
|
13738
|
-
}
|
|
13739
|
-
}
|
|
13740
|
-
get emailLinkUrl() {
|
|
13741
|
-
let _result = Module.ccall("csp_systems_InviteOrganizationRoleCollection__Get_EmailLinkUrl", "string", ["number"], [this.pointer]);
|
|
13742
|
-
return _result;
|
|
13743
|
-
}
|
|
13744
|
-
set emailLinkUrl(value) {
|
|
13745
|
-
Module.ccall("csp_systems_InviteOrganizationRoleCollection__Set_EmailLinkUrl", "void", ["number", "string"], [this.pointer, value]);
|
|
13746
|
-
}
|
|
13747
|
-
get signupUrl() {
|
|
13748
|
-
let _result = Module.ccall("csp_systems_InviteOrganizationRoleCollection__Get_SignupUrl", "string", ["number"], [this.pointer]);
|
|
13749
|
-
return _result;
|
|
13750
|
-
}
|
|
13751
|
-
set signupUrl(value) {
|
|
13752
|
-
Module.ccall("csp_systems_InviteOrganizationRoleCollection__Set_SignupUrl", "void", ["number", "string"], [this.pointer, value]);
|
|
13753
|
-
}
|
|
13754
|
-
get invitedUserRoles() {
|
|
13755
|
-
const _ptr = Module._malloc(8);
|
|
13756
|
-
Module.ccall("csp_systems_InviteOrganizationRoleCollection__Get_InvitedUserRoles", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
13757
|
-
const _nPtr = getNativePointer(_ptr);
|
|
13758
|
-
return new Common.Array(_nPtr, csp_systems_InviteOrganizationRoleInfoFactory, "csp_systems_InviteOrganizationRoleInfo");
|
|
13759
|
-
}
|
|
13760
|
-
set invitedUserRoles(value) {
|
|
13761
|
-
Module.ccall("csp_systems_InviteOrganizationRoleCollection__Set_InvitedUserRoles", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
13762
|
-
}
|
|
13763
|
-
}
|
|
13764
|
-
Systems.InviteOrganizationRoleCollection = InviteOrganizationRoleCollection;
|
|
13765
|
-
})(Systems || (Systems = {}));
|
|
13766
|
-
(function (Systems) {
|
|
13767
|
-
/**
|
|
13768
|
-
@ingroup Organization System
|
|
13769
|
-
* @description Data representation of a User's role within an Organization.
|
|
13770
|
-
*/
|
|
13771
|
-
class OrganizationRoleInfo extends NativeClassWrapper {
|
|
13772
|
-
/** @internal */
|
|
13773
|
-
constructor(pointer) {
|
|
13774
|
-
super(pointer);
|
|
13775
|
-
}
|
|
13776
|
-
static create() {
|
|
13777
|
-
var _ptr = Module._malloc(8);
|
|
13778
|
-
Module.ccall("csp_systems_OrganizationRoleInfo_Ctor", "void", ["number"], [_ptr]);
|
|
13779
|
-
var _nPtr = getNativePointer(_ptr);
|
|
13780
|
-
return new OrganizationRoleInfo(_nPtr);
|
|
13781
|
-
}
|
|
13782
|
-
delete() {
|
|
13783
|
-
if (this.ownsPointer && !this.disposed) {
|
|
13784
|
-
Module.ccall("csp_systems_OrganizationRoleInfo_Dtor", "void", ["number"], [this.pointer]);
|
|
13785
|
-
this.disposed = true;
|
|
13786
|
-
}
|
|
13787
|
-
}
|
|
13788
|
-
get userId() {
|
|
13789
|
-
let _result = Module.ccall("csp_systems_OrganizationRoleInfo__Get_UserId", "string", ["number"], [this.pointer]);
|
|
13790
|
-
return _result;
|
|
13791
|
-
}
|
|
13792
|
-
set userId(value) {
|
|
13793
|
-
Module.ccall("csp_systems_OrganizationRoleInfo__Set_UserId", "void", ["number", "string"], [this.pointer, value]);
|
|
13794
|
-
}
|
|
13795
|
-
get organizationRoles() {
|
|
13796
|
-
const _ptr = Module._malloc(8);
|
|
13797
|
-
Module.ccall("csp_systems_OrganizationRoleInfo__Get_OrganizationRoles", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
13798
|
-
const _nPtr = getNativePointer(_ptr);
|
|
13799
|
-
return new Common.Array(_nPtr, csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
13800
|
-
}
|
|
13801
|
-
set organizationRoles(value) {
|
|
13802
|
-
Module.ccall("csp_systems_OrganizationRoleInfo__Set_OrganizationRoles", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
13803
|
-
}
|
|
13804
|
-
}
|
|
13805
|
-
Systems.OrganizationRoleInfo = OrganizationRoleInfo;
|
|
13806
|
-
})(Systems || (Systems = {}));
|
|
13807
|
-
(function (Systems) {
|
|
13808
|
-
/**
|
|
13809
|
-
@ingroup Organization System
|
|
13810
|
-
* @description Data representation of an Organization.
|
|
13811
|
-
*/
|
|
13812
|
-
class Organization extends NativeClassWrapper {
|
|
13813
|
-
/** @internal */
|
|
13814
|
-
constructor(pointer) {
|
|
13815
|
-
super(pointer);
|
|
13816
|
-
}
|
|
13817
|
-
static create() {
|
|
13818
|
-
var _ptr = Module._malloc(8);
|
|
13819
|
-
Module.ccall("csp_systems_Organization_Ctor", "void", ["number"], [_ptr]);
|
|
13820
|
-
var _nPtr = getNativePointer(_ptr);
|
|
13821
|
-
return new Organization(_nPtr);
|
|
13822
|
-
}
|
|
13823
|
-
static create_other(other) {
|
|
13824
|
-
var _ptr = Module._malloc(8);
|
|
13825
|
-
Module.ccall("csp_systems_Organization_Ctor_OrganizationRC", "void", ["number", "number"], [_ptr, other.pointer]);
|
|
13826
|
-
var _nPtr = getNativePointer(_ptr);
|
|
13827
|
-
return new Organization(_nPtr);
|
|
13828
|
-
}
|
|
13829
|
-
delete() {
|
|
13830
|
-
if (this.ownsPointer && !this.disposed) {
|
|
13831
|
-
Module.ccall("csp_systems_Organization_Dtor", "void", ["number"], [this.pointer]);
|
|
13832
|
-
this.disposed = true;
|
|
13833
|
-
}
|
|
13834
|
-
}
|
|
13835
|
-
get id() {
|
|
13836
|
-
let _result = Module.ccall("csp_systems_Organization__Get_Id", "string", ["number"], [this.pointer]);
|
|
13837
|
-
return _result;
|
|
13838
|
-
}
|
|
13839
|
-
set id(value) {
|
|
13840
|
-
Module.ccall("csp_systems_Organization__Set_Id", "void", ["number", "string"], [this.pointer, value]);
|
|
13841
|
-
}
|
|
13842
|
-
get ownerId() {
|
|
13843
|
-
let _result = Module.ccall("csp_systems_Organization__Get_OwnerId", "string", ["number"], [this.pointer]);
|
|
13844
|
-
return _result;
|
|
13845
|
-
}
|
|
13846
|
-
set ownerId(value) {
|
|
13847
|
-
Module.ccall("csp_systems_Organization__Set_OwnerId", "void", ["number", "string"], [this.pointer, value]);
|
|
13848
|
-
}
|
|
13849
|
-
get createdAt() {
|
|
13850
|
-
let _result = Module.ccall("csp_systems_Organization__Get_CreatedAt", "string", ["number"], [this.pointer]);
|
|
13851
|
-
return _result;
|
|
13852
|
-
}
|
|
13853
|
-
set createdAt(value) {
|
|
13854
|
-
Module.ccall("csp_systems_Organization__Set_CreatedAt", "void", ["number", "string"], [this.pointer, value]);
|
|
13855
|
-
}
|
|
13856
|
-
get createdBy() {
|
|
13857
|
-
let _result = Module.ccall("csp_systems_Organization__Get_CreatedBy", "string", ["number"], [this.pointer]);
|
|
13858
|
-
return _result;
|
|
13859
|
-
}
|
|
13860
|
-
set createdBy(value) {
|
|
13861
|
-
Module.ccall("csp_systems_Organization__Set_CreatedBy", "void", ["number", "string"], [this.pointer, value]);
|
|
13862
|
-
}
|
|
13863
|
-
get name() {
|
|
13864
|
-
let _result = Module.ccall("csp_systems_Organization__Get_Name", "string", ["number"], [this.pointer]);
|
|
13865
|
-
return _result;
|
|
13866
|
-
}
|
|
13867
|
-
set name(value) {
|
|
13868
|
-
Module.ccall("csp_systems_Organization__Set_Name", "void", ["number", "string"], [this.pointer, value]);
|
|
13869
|
-
}
|
|
13870
|
-
get members() {
|
|
13871
|
-
const _ptr = Module._malloc(8);
|
|
13872
|
-
Module.ccall("csp_systems_Organization__Get_Members", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
13873
|
-
const _nPtr = getNativePointer(_ptr);
|
|
13874
|
-
return new Common.Array(_nPtr, csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
13875
|
-
}
|
|
13876
|
-
set members(value) {
|
|
13877
|
-
Module.ccall("csp_systems_Organization__Set_Members", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
13878
|
-
}
|
|
13879
|
-
get spaceCount() {
|
|
13880
|
-
let _result = Module.ccall("csp_systems_Organization__Get_SpaceCount", "number", ["number"], [this.pointer]);
|
|
13881
|
-
return _result;
|
|
13882
|
-
}
|
|
13883
|
-
set spaceCount(value) {
|
|
13884
|
-
Module.ccall("csp_systems_Organization__Set_SpaceCount", "void", ["number", "number"], [this.pointer, value]);
|
|
13885
|
-
}
|
|
13886
|
-
}
|
|
13887
|
-
Systems.Organization = Organization;
|
|
13888
|
-
})(Systems || (Systems = {}));
|
|
13889
13593
|
(function (Systems) {
|
|
13890
13594
|
/**
|
|
13891
13595
|
@ingroup Quota System
|
|
@@ -14307,6 +14011,15 @@ export class CSPFoundation {
|
|
|
14307
14011
|
set attributes(value) {
|
|
14308
14012
|
Module.ccall("csp_systems_BasicSpace__Set_Attributes", "void", ["number", "number"], [this.pointer, value]);
|
|
14309
14013
|
}
|
|
14014
|
+
get tags() {
|
|
14015
|
+
const _ptr = Module._malloc(8);
|
|
14016
|
+
Module.ccall("csp_systems_BasicSpace__Get_Tags", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
14017
|
+
const _nPtr = getNativePointer(_ptr);
|
|
14018
|
+
return new Common.Array(_nPtr, StringFactory, "String");
|
|
14019
|
+
}
|
|
14020
|
+
set tags(value) {
|
|
14021
|
+
Module.ccall("csp_systems_BasicSpace__Set_Tags", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
14022
|
+
}
|
|
14310
14023
|
}
|
|
14311
14024
|
Systems.BasicSpace = BasicSpace;
|
|
14312
14025
|
})(Systems || (Systems = {}));
|
|
@@ -15061,15 +14774,6 @@ export class CSPFoundation {
|
|
|
15061
14774
|
set deviceId(value) {
|
|
15062
14775
|
Module.ccall("csp_systems_LoginState__Set_DeviceId", "void", ["number", "string"], [this.pointer, value]);
|
|
15063
14776
|
}
|
|
15064
|
-
get organizationIds() {
|
|
15065
|
-
const _ptr = Module._malloc(8);
|
|
15066
|
-
Module.ccall("csp_systems_LoginState__Get_OrganizationIds", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
15067
|
-
const _nPtr = getNativePointer(_ptr);
|
|
15068
|
-
return new Common.Array(_nPtr, StringFactory, "String");
|
|
15069
|
-
}
|
|
15070
|
-
set organizationIds(value) {
|
|
15071
|
-
Module.ccall("csp_systems_LoginState__Set_OrganizationIds", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
15072
|
-
}
|
|
15073
14777
|
}
|
|
15074
14778
|
Systems.LoginState = LoginState;
|
|
15075
14779
|
})(Systems || (Systems = {}));
|
|
@@ -15255,13 +14959,6 @@ export class CSPFoundation {
|
|
|
15255
14959
|
set avatarId(value) {
|
|
15256
14960
|
Module.ccall("csp_systems_BasicProfile__Set_AvatarId", "void", ["number", "string"], [this.pointer, value]);
|
|
15257
14961
|
}
|
|
15258
|
-
get lastPlatform() {
|
|
15259
|
-
let _result = Module.ccall("csp_systems_BasicProfile__Get_LastPlatform", "string", ["number"], [this.pointer]);
|
|
15260
|
-
return _result;
|
|
15261
|
-
}
|
|
15262
|
-
set lastPlatform(value) {
|
|
15263
|
-
Module.ccall("csp_systems_BasicProfile__Set_LastPlatform", "void", ["number", "string"], [this.pointer, value]);
|
|
15264
|
-
}
|
|
15265
14962
|
}
|
|
15266
14963
|
Systems.BasicProfile = BasicProfile;
|
|
15267
14964
|
})(Systems || (Systems = {}));
|
|
@@ -24082,365 +23779,6 @@ export class CSPFoundation {
|
|
|
24082
23779
|
}
|
|
24083
23780
|
Systems.MaintenanceSystem = MaintenanceSystem;
|
|
24084
23781
|
})(Systems || (Systems = {}));
|
|
24085
|
-
(function (Systems) {
|
|
24086
|
-
/**
|
|
24087
|
-
@ingroup Organization System
|
|
24088
|
-
* @description Data class used to contain Organization object.
|
|
24089
|
-
*/
|
|
24090
|
-
class OrganizationResult extends Systems.ResultBase {
|
|
24091
|
-
/** @internal */
|
|
24092
|
-
constructor(pointer) {
|
|
24093
|
-
super(pointer);
|
|
24094
|
-
}
|
|
24095
|
-
static fromResultBase(baseInstance) {
|
|
24096
|
-
const nativeClassWrapper = baseInstance;
|
|
24097
|
-
return new Systems.OrganizationResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
24098
|
-
}
|
|
24099
|
-
/**
|
|
24100
|
-
* @description Retrieves the Organization result.
|
|
24101
|
-
* @return Organization object.
|
|
24102
|
-
*/
|
|
24103
|
-
getOrganization() {
|
|
24104
|
-
var _ret = Module._malloc(8);
|
|
24105
|
-
Module.ccall("csp_systems_OrganizationResult_GetOrganizationC_OrganizationRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
24106
|
-
var _nPtr = new Systems.Organization(getNativePointer(_ret));
|
|
24107
|
-
Module._free(_ret);
|
|
24108
|
-
return _nPtr;
|
|
24109
|
-
}
|
|
24110
|
-
delete() {
|
|
24111
|
-
if (this.ownsPointer && !this.disposed) {
|
|
24112
|
-
Module.ccall("csp_systems_OrganizationResult_Dtor", "void", ["number"], [this.pointer]);
|
|
24113
|
-
this.disposed = true;
|
|
24114
|
-
}
|
|
24115
|
-
}
|
|
24116
|
-
}
|
|
24117
|
-
Systems.OrganizationResult = OrganizationResult;
|
|
24118
|
-
})(Systems || (Systems = {}));
|
|
24119
|
-
(function (Systems) {
|
|
24120
|
-
/**
|
|
24121
|
-
@ingroup Organization System
|
|
24122
|
-
* @description Data class used to contain a Users Organization Role Info object.
|
|
24123
|
-
*/
|
|
24124
|
-
class OrganizationRolesResult extends Systems.ResultBase {
|
|
24125
|
-
/** @internal */
|
|
24126
|
-
constructor(pointer) {
|
|
24127
|
-
super(pointer);
|
|
24128
|
-
}
|
|
24129
|
-
static fromResultBase(baseInstance) {
|
|
24130
|
-
const nativeClassWrapper = baseInstance;
|
|
24131
|
-
return new Systems.OrganizationRolesResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
24132
|
-
}
|
|
24133
|
-
/**
|
|
24134
|
-
* @description Retrieves the Organization Role Info result.
|
|
24135
|
-
* @return Array of Organization Role Info objects.
|
|
24136
|
-
*/
|
|
24137
|
-
getOrganizationRoleInfo() {
|
|
24138
|
-
var _ret = Module._malloc(8);
|
|
24139
|
-
Module.ccall("csp_systems_OrganizationRolesResult_GetOrganizationRoleInfoC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
24140
|
-
var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
24141
|
-
Module._free(_ret);
|
|
24142
|
-
return _nPtr;
|
|
24143
|
-
}
|
|
24144
|
-
delete() {
|
|
24145
|
-
if (this.ownsPointer && !this.disposed) {
|
|
24146
|
-
Module.ccall("csp_systems_OrganizationRolesResult_Dtor", "void", ["number"], [this.pointer]);
|
|
24147
|
-
this.disposed = true;
|
|
24148
|
-
}
|
|
24149
|
-
}
|
|
24150
|
-
}
|
|
24151
|
-
Systems.OrganizationRolesResult = OrganizationRolesResult;
|
|
24152
|
-
})(Systems || (Systems = {}));
|
|
24153
|
-
(function (Systems) {
|
|
24154
|
-
/**
|
|
24155
|
-
@ingroup Quota System
|
|
24156
|
-
* @description Public facing system that allows interfacing with the Organization System.
|
|
24157
|
-
* .
|
|
24158
|
-
*/
|
|
24159
|
-
class OrganizationSystem extends Systems.SystemBase {
|
|
24160
|
-
/** @internal */
|
|
24161
|
-
constructor(pointer) {
|
|
24162
|
-
super(pointer);
|
|
24163
|
-
}
|
|
24164
|
-
static fromSystemBase(baseInstance) {
|
|
24165
|
-
const nativeClassWrapper = baseInstance;
|
|
24166
|
-
return new Systems.OrganizationSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
24167
|
-
}
|
|
24168
|
-
/**
|
|
24169
|
-
* @description Sets a callback to be executed when a member joins an Organization.
|
|
24170
|
-
* Only one callback may be registered, calling this function again will override whatever was previously set.
|
|
24171
|
-
* @param callback - The callback to execute.
|
|
24172
|
-
*/
|
|
24173
|
-
setMemberJoinedOrganizationCallback(callback) {
|
|
24174
|
-
var _callback = (_stateObject__, arg1) => {
|
|
24175
|
-
{
|
|
24176
|
-
const _stringValue = Module.UTF8ToString(arg1);
|
|
24177
|
-
free(arg1);
|
|
24178
|
-
arg1 = _stringValue;
|
|
24179
|
-
}
|
|
24180
|
-
callback(arg1);
|
|
24181
|
-
};
|
|
24182
|
-
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
24183
|
-
Module.ccall("csp_systems_OrganizationSystem_SetMemberJoinedOrganizationCallback_void_MemberJoinedOrganizationCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
24184
|
-
}
|
|
24185
|
-
/**
|
|
24186
|
-
* @description Create a new Organization.
|
|
24187
|
-
* Only a User with tenant admin permissions can create an Organization.
|
|
24188
|
-
* If the user does not have the required permissions their call will be rejected.
|
|
24189
|
-
* @param organizationOwnerId - Id of the Organization owner.
|
|
24190
|
-
* @param organizationName - The Organization name
|
|
24191
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
24192
|
-
*/
|
|
24193
|
-
async createOrganization(organizationOwnerId, organizationName) {
|
|
24194
|
-
var _resolve;
|
|
24195
|
-
var _promise = new Promise((_r) => {
|
|
24196
|
-
_resolve = _r;
|
|
24197
|
-
});
|
|
24198
|
-
var _callbackPtr;
|
|
24199
|
-
var _callback = (_stateObject__, result) => {
|
|
24200
|
-
var _resultPtr = getNativePointer(result);
|
|
24201
|
-
var _resultInstance = new Systems.OrganizationResult(_resultPtr);
|
|
24202
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24203
|
-
return;
|
|
24204
|
-
}
|
|
24205
|
-
_resolve(_resultInstance);
|
|
24206
|
-
Module.removeFunction(_callbackPtr);
|
|
24207
|
-
};
|
|
24208
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24209
|
-
Module.ccall("csp_systems_OrganizationSystem_CreateOrganization_void_StringRC_StringRC_OrganizationResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, organizationOwnerId, organizationName, _callbackPtr, 0]);
|
|
24210
|
-
return _promise;
|
|
24211
|
-
}
|
|
24212
|
-
/**
|
|
24213
|
-
* @description Retrieves Organization info for the specified Organization.
|
|
24214
|
-
* If this request is made by a User with an Owner or Admin Organization role, the resultant Organization object will contain an array of
|
|
24215
|
-
* OrganizationRoleInfo objects for each Organization member. If the request is made by a User who does not have the Owner or Admin role, the
|
|
24216
|
-
* resultant Organization object will contain an array with a single OrganizationRoleInfo object which represents them.
|
|
24217
|
-
* @param organizationId - Id of the Organization to retrieve information on. If no Id is specified,
|
|
24218
|
-
* the Id of the Organization the user is currently authenticated against will be used.
|
|
24219
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
24220
|
-
*/
|
|
24221
|
-
async getOrganization(organizationId) {
|
|
24222
|
-
var _resolve;
|
|
24223
|
-
var _promise = new Promise((_r) => {
|
|
24224
|
-
_resolve = _r;
|
|
24225
|
-
});
|
|
24226
|
-
var _callbackPtr;
|
|
24227
|
-
var _callback = (_stateObject__, result) => {
|
|
24228
|
-
var _resultPtr = getNativePointer(result);
|
|
24229
|
-
var _resultInstance = new Systems.OrganizationResult(_resultPtr);
|
|
24230
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24231
|
-
return;
|
|
24232
|
-
}
|
|
24233
|
-
_resolve(_resultInstance);
|
|
24234
|
-
Module.removeFunction(_callbackPtr);
|
|
24235
|
-
};
|
|
24236
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24237
|
-
Module.ccall("csp_systems_OrganizationSystem_GetOrganization_void_StringRC_OrganizationResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, organizationId, _callbackPtr, 0]);
|
|
24238
|
-
return _promise;
|
|
24239
|
-
}
|
|
24240
|
-
/**
|
|
24241
|
-
* @description Get the Id of the Organization the user is authenticated against.
|
|
24242
|
-
* @return The Id of the Organization the User belongs to.
|
|
24243
|
-
*/
|
|
24244
|
-
getCurrentOrganizationId() {
|
|
24245
|
-
let _result = Module.ccall("csp_systems_OrganizationSystem_GetCurrentOrganizationIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
24246
|
-
const _resultString = Module.UTF8ToString(_result);
|
|
24247
|
-
free(_result);
|
|
24248
|
-
_result = _resultString;
|
|
24249
|
-
return _result;
|
|
24250
|
-
}
|
|
24251
|
-
/**
|
|
24252
|
-
* @description Updates the name and/or the description of the specified Organization.
|
|
24253
|
-
* Only a User with an Organization Owner role can update an Organization. If the user does not have the required Organization role
|
|
24254
|
-
* their call will be rejected.
|
|
24255
|
-
* @param organizationId - Id of the Organization to update. If no Id is specified,
|
|
24256
|
-
* the Id of the Organization the user is currently authenticated against will be used.
|
|
24257
|
-
* @param name - The new Organization name
|
|
24258
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
24259
|
-
*/
|
|
24260
|
-
async updateOrganization(organizationId, name) {
|
|
24261
|
-
var _resolve;
|
|
24262
|
-
var _promise = new Promise((_r) => {
|
|
24263
|
-
_resolve = _r;
|
|
24264
|
-
});
|
|
24265
|
-
var _callbackPtr;
|
|
24266
|
-
var _callback = (_stateObject__, result) => {
|
|
24267
|
-
var _resultPtr = getNativePointer(result);
|
|
24268
|
-
var _resultInstance = new Systems.OrganizationResult(_resultPtr);
|
|
24269
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24270
|
-
return;
|
|
24271
|
-
}
|
|
24272
|
-
_resolve(_resultInstance);
|
|
24273
|
-
Module.removeFunction(_callbackPtr);
|
|
24274
|
-
};
|
|
24275
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24276
|
-
Module.ccall("csp_systems_OrganizationSystem_UpdateOrganization_void_StringRC_StringRC_OrganizationResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, organizationId, name, _callbackPtr, 0]);
|
|
24277
|
-
return _promise;
|
|
24278
|
-
}
|
|
24279
|
-
/**
|
|
24280
|
-
* @description Deactivates the specified Organization.
|
|
24281
|
-
* This call performs a soft-delete of the Organization and will allow for Organization reactivation in the future.
|
|
24282
|
-
* Only A User with owner-level permissions can deactivate an Organization. If the user does not have the required role their call will be
|
|
24283
|
-
* rejected.
|
|
24284
|
-
* @param organizationId - Id of the Organization to deactivate.
|
|
24285
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
24286
|
-
*/
|
|
24287
|
-
async deactivateOrganization(organizationId) {
|
|
24288
|
-
var _resolve;
|
|
24289
|
-
var _promise = new Promise((_r) => {
|
|
24290
|
-
_resolve = _r;
|
|
24291
|
-
});
|
|
24292
|
-
var _callbackPtr;
|
|
24293
|
-
var _callback = (_stateObject__, result) => {
|
|
24294
|
-
var _resultPtr = getNativePointer(result);
|
|
24295
|
-
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
24296
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24297
|
-
return;
|
|
24298
|
-
}
|
|
24299
|
-
_resolve(_resultInstance);
|
|
24300
|
-
Module.removeFunction(_callbackPtr);
|
|
24301
|
-
};
|
|
24302
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24303
|
-
Module.ccall("csp_systems_OrganizationSystem_DeactivateOrganization_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, organizationId, _callbackPtr, 0]);
|
|
24304
|
-
return _promise;
|
|
24305
|
-
}
|
|
24306
|
-
/**
|
|
24307
|
-
* @description Invites a given email to the User's Organization.
|
|
24308
|
-
* Only a User with an Admin or Owner Organization role can invite people to the organization. If the User does not have the required role their
|
|
24309
|
-
* call will be rejected.
|
|
24310
|
-
* @param organizationId - Id of the Organization the user should be added to. If no Id is specified,
|
|
24311
|
-
* the Id of the Organization the user is currently authenticated against will be used.
|
|
24312
|
-
* @param email - Email to invite to the Organization.
|
|
24313
|
-
* @param organizationRoles - The role/s in the Organization the invited User is to have.
|
|
24314
|
-
* @param emailLinkUrl - Link that will be provided in the invite email
|
|
24315
|
-
* @param signupUrl - Destination link that will be provided in the invite email
|
|
24316
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
24317
|
-
*/
|
|
24318
|
-
async inviteToOrganization(organizationId, email, organizationRoles, emailLinkUrl, signupUrl) {
|
|
24319
|
-
var _resolve;
|
|
24320
|
-
var _promise = new Promise((_r) => {
|
|
24321
|
-
_resolve = _r;
|
|
24322
|
-
});
|
|
24323
|
-
var _callbackPtr;
|
|
24324
|
-
var _callback = (_stateObject__, result) => {
|
|
24325
|
-
var _resultPtr = getNativePointer(result);
|
|
24326
|
-
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
24327
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24328
|
-
return;
|
|
24329
|
-
}
|
|
24330
|
-
_resolve(_resultInstance);
|
|
24331
|
-
Module.removeFunction(_callbackPtr);
|
|
24332
|
-
};
|
|
24333
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24334
|
-
Module.ccall("csp_systems_OrganizationSystem_InviteToOrganization_void_StringRC_StringRC_ArrayRC_StringRC_StringRC_NullResultCallback", "void", [
|
|
24335
|
-
"number",
|
|
24336
|
-
"string",
|
|
24337
|
-
"string",
|
|
24338
|
-
"number",
|
|
24339
|
-
"string",
|
|
24340
|
-
"string",
|
|
24341
|
-
"number",
|
|
24342
|
-
"number",
|
|
24343
|
-
], [
|
|
24344
|
-
this.pointer,
|
|
24345
|
-
organizationId,
|
|
24346
|
-
email,
|
|
24347
|
-
organizationRoles.pointer,
|
|
24348
|
-
emailLinkUrl,
|
|
24349
|
-
signupUrl,
|
|
24350
|
-
_callbackPtr,
|
|
24351
|
-
0,
|
|
24352
|
-
]);
|
|
24353
|
-
return _promise;
|
|
24354
|
-
}
|
|
24355
|
-
/**
|
|
24356
|
-
* @description Invites all the given emails to the User's Organization.
|
|
24357
|
-
* Only a User with an Admin or Owner Organization role can invite people to the organization. If the User does not have the required role their
|
|
24358
|
-
* call will be rejected.
|
|
24359
|
-
* @param organizationId - Id of the Organization the users should be added to. If no Id is specified,
|
|
24360
|
-
* the Id of the Organization the user is currently authenticated against will be used.
|
|
24361
|
-
* @param inviteUsers - Collection containing the EmailLinkUrl and SignupUrl as well as the emails and
|
|
24362
|
-
* Organization role/s of the Users to be invited.
|
|
24363
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
24364
|
-
*/
|
|
24365
|
-
async bulkInviteToOrganization(organizationId, inviteUsers) {
|
|
24366
|
-
var _resolve;
|
|
24367
|
-
var _promise = new Promise((_r) => {
|
|
24368
|
-
_resolve = _r;
|
|
24369
|
-
});
|
|
24370
|
-
var _callbackPtr;
|
|
24371
|
-
var _callback = (_stateObject__, result) => {
|
|
24372
|
-
var _resultPtr = getNativePointer(result);
|
|
24373
|
-
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
24374
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24375
|
-
return;
|
|
24376
|
-
}
|
|
24377
|
-
_resolve(_resultInstance);
|
|
24378
|
-
Module.removeFunction(_callbackPtr);
|
|
24379
|
-
};
|
|
24380
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24381
|
-
Module.ccall("csp_systems_OrganizationSystem_BulkInviteToOrganization_void_StringRC_InviteOrganizationRoleCollectionRC_NullResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, organizationId, inviteUsers.pointer, _callbackPtr, 0]);
|
|
24382
|
-
return _promise;
|
|
24383
|
-
}
|
|
24384
|
-
/**
|
|
24385
|
-
* @description Retrieves the Organisation User Role information for the User Ids that have been passed in.
|
|
24386
|
-
* Only a User with an Admin or Owner Organization role can request the role information for other Organization members.
|
|
24387
|
-
* A User without these roles can only request information about their own Organization role and should pass an array containing only their own
|
|
24388
|
-
* User Id.
|
|
24389
|
-
* @param organizationId - Id of the Organization you want to get user roles for. If no Id is
|
|
24390
|
-
* specified, the Id of the Organization the user is currently authenticated against will be used.
|
|
24391
|
-
* @param userIds - Array of User Ids for which the Organization User Roles will be retrieved.
|
|
24392
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
24393
|
-
*/
|
|
24394
|
-
async getUserRolesInOrganization(organizationId, userIds) {
|
|
24395
|
-
var _resolve;
|
|
24396
|
-
var _promise = new Promise((_r) => {
|
|
24397
|
-
_resolve = _r;
|
|
24398
|
-
});
|
|
24399
|
-
var _callbackPtr;
|
|
24400
|
-
var _callback = (_stateObject__, result) => {
|
|
24401
|
-
var _resultPtr = getNativePointer(result);
|
|
24402
|
-
var _resultInstance = new Systems.OrganizationRolesResult(_resultPtr);
|
|
24403
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24404
|
-
return;
|
|
24405
|
-
}
|
|
24406
|
-
_resolve(_resultInstance);
|
|
24407
|
-
Module.removeFunction(_callbackPtr);
|
|
24408
|
-
};
|
|
24409
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24410
|
-
Module.ccall("csp_systems_OrganizationSystem_GetUserRolesInOrganization_void_StringRC_ArrayRC_OrganizationRolesResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, organizationId, userIds.pointer, _callbackPtr, 0]);
|
|
24411
|
-
return _promise;
|
|
24412
|
-
}
|
|
24413
|
-
/**
|
|
24414
|
-
* @description Removes a User from the Organization.
|
|
24415
|
-
* Only a User with an Admin or Owner Organization role can remove other Users from the Organization. If the user does not have the required role
|
|
24416
|
-
* their call will be rejected. Anyone can remove themselves from an Organization.
|
|
24417
|
-
* @param organizationId - Id of the Organization you want to remove a user from. If no Id is
|
|
24418
|
-
* specified, the Id of the Organization the user is currently authenticated against will be used.
|
|
24419
|
-
* @param userId - Unique ID of User.
|
|
24420
|
-
* @param callback - Callback when asynchronous task finishes.
|
|
24421
|
-
*/
|
|
24422
|
-
async removeUserFromOrganization(organizationId, userId) {
|
|
24423
|
-
var _resolve;
|
|
24424
|
-
var _promise = new Promise((_r) => {
|
|
24425
|
-
_resolve = _r;
|
|
24426
|
-
});
|
|
24427
|
-
var _callbackPtr;
|
|
24428
|
-
var _callback = (_stateObject__, result) => {
|
|
24429
|
-
var _resultPtr = getNativePointer(result);
|
|
24430
|
-
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
24431
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
24432
|
-
return;
|
|
24433
|
-
}
|
|
24434
|
-
_resolve(_resultInstance);
|
|
24435
|
-
Module.removeFunction(_callbackPtr);
|
|
24436
|
-
};
|
|
24437
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
24438
|
-
Module.ccall("csp_systems_OrganizationSystem_RemoveUserFromOrganization_void_StringRC_StringRC_NullResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, organizationId, userId, _callbackPtr, 0]);
|
|
24439
|
-
return _promise;
|
|
24440
|
-
}
|
|
24441
|
-
}
|
|
24442
|
-
Systems.OrganizationSystem = OrganizationSystem;
|
|
24443
|
-
})(Systems || (Systems = {}));
|
|
24444
23782
|
(function (Systems) {
|
|
24445
23783
|
/**
|
|
24446
23784
|
@ingroup Quota System
|
|
@@ -25797,13 +25135,6 @@ export class CSPFoundation {
|
|
|
25797
25135
|
set bannedUserIds(value) {
|
|
25798
25136
|
Module.ccall("csp_systems_Space__Set_BannedUserIds", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
25799
25137
|
}
|
|
25800
|
-
get organizationId() {
|
|
25801
|
-
let _result = Module.ccall("csp_systems_Space__Get_OrganizationId", "string", ["number"], [this.pointer]);
|
|
25802
|
-
return _result;
|
|
25803
|
-
}
|
|
25804
|
-
set organizationId(value) {
|
|
25805
|
-
Module.ccall("csp_systems_Space__Set_OrganizationId", "void", ["number", "string"], [this.pointer, value]);
|
|
25806
|
-
}
|
|
25807
25138
|
}
|
|
25808
25139
|
Systems.Space = Space;
|
|
25809
25140
|
})(Systems || (Systems = {}));
|
|
@@ -25984,13 +25315,6 @@ export class CSPFoundation {
|
|
|
25984
25315
|
Module._free(_ret);
|
|
25985
25316
|
return _nPtr;
|
|
25986
25317
|
}
|
|
25987
|
-
getTags() {
|
|
25988
|
-
var _ret = Module._malloc(8);
|
|
25989
|
-
Module.ccall("csp_systems_SpaceMetadataResult_GetTagsC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
25990
|
-
var _nPtr = new Common.Array(getNativePointer(_ret), StringFactory, "String");
|
|
25991
|
-
Module._free(_ret);
|
|
25992
|
-
return _nPtr;
|
|
25993
|
-
}
|
|
25994
25318
|
delete() {
|
|
25995
25319
|
if (this.ownsPointer && !this.disposed) {
|
|
25996
25320
|
Module.ccall("csp_systems_SpaceMetadataResult_Dtor", "void", ["number"], [this.pointer]);
|
|
@@ -26345,9 +25669,10 @@ export class CSPFoundation {
|
|
|
26345
25669
|
* @param description - If a new description is provided it will be used to update the space
|
|
26346
25670
|
* description
|
|
26347
25671
|
* @param type - If a new type is provided it will be used to update the space type
|
|
25672
|
+
* @param tags - If new tags are provided they will be used to update the Space
|
|
26348
25673
|
* @param callback - Callback when asynchronous task finishes
|
|
26349
25674
|
*/
|
|
26350
|
-
async updateSpace(spaceId, name, description, type) {
|
|
25675
|
+
async updateSpace(spaceId, name, description, type, tags) {
|
|
26351
25676
|
var _resolve;
|
|
26352
25677
|
var _promise = new Promise((_r) => {
|
|
26353
25678
|
_resolve = _r;
|
|
@@ -26368,12 +25693,22 @@ export class CSPFoundation {
|
|
|
26368
25693
|
typePointer = Module._malloc(4);
|
|
26369
25694
|
Module.setValue(typePointer, type, "i32");
|
|
26370
25695
|
}
|
|
26371
|
-
Module.ccall("
|
|
25696
|
+
Module.ccall("csp_systems_SpaceSystem_UpdateSpace_void_StringRC_StringRC_StringRC_SpaceAttributesRC_ArrayRC_BasicSpaceResultCallback", "void", [
|
|
25697
|
+
"number",
|
|
25698
|
+
"string",
|
|
25699
|
+
"string",
|
|
25700
|
+
"string",
|
|
25701
|
+
"number",
|
|
25702
|
+
"number",
|
|
25703
|
+
"number",
|
|
25704
|
+
"number",
|
|
25705
|
+
], [
|
|
26372
25706
|
this.pointer,
|
|
26373
25707
|
spaceId,
|
|
26374
25708
|
name,
|
|
26375
25709
|
description,
|
|
26376
25710
|
typePointer,
|
|
25711
|
+
tags != null ? tags.pointer : 0,
|
|
26377
25712
|
_callbackPtr,
|
|
26378
25713
|
0,
|
|
26379
25714
|
]);
|
|
@@ -26438,9 +25773,14 @@ export class CSPFoundation {
|
|
|
26438
25773
|
* @param resultsSkip - Number of result entries that will be skipped from the result. for no skip pass nullptr.
|
|
26439
25774
|
* @param resultsMax - Maximum number of result entries to be retrieved. for all available result entries pass
|
|
26440
25775
|
* nullptr.
|
|
25776
|
+
* @param mustContainTags - Array of tags that must be present in retrieved
|
|
25777
|
+
* spaces. For no mandatory tags pass nullptr.
|
|
25778
|
+
* @param mustExcludeTags - Array of tags that must not be present in retrieved
|
|
25779
|
+
* spaces. For no excluded tags pass nullptr.
|
|
25780
|
+
* @param mustIncludeAllTags - Whether all tags in @param MustContainTags must be present in retrieved spaces.
|
|
26441
25781
|
* @param callback - Callback when asynchronous task finishes
|
|
26442
25782
|
*/
|
|
26443
|
-
async getSpacesByAttributes(isDiscoverable, isArchived, requiresInvite, resultsSkip, resultsMax) {
|
|
25783
|
+
async getSpacesByAttributes(isDiscoverable, isArchived, requiresInvite, resultsSkip, resultsMax, mustContainTags, mustExcludeTags, mustIncludeAllTags) {
|
|
26444
25784
|
var _resolve;
|
|
26445
25785
|
var _promise = new Promise((_r) => {
|
|
26446
25786
|
_resolve = _r;
|
|
@@ -26481,7 +25821,12 @@ export class CSPFoundation {
|
|
|
26481
25821
|
resultsMaxPointer = Module._malloc(4);
|
|
26482
25822
|
Module.setValue(resultsMaxPointer, resultsMax, "i32");
|
|
26483
25823
|
}
|
|
26484
|
-
|
|
25824
|
+
var mustIncludeAllTagsPointer = 0;
|
|
25825
|
+
if (mustIncludeAllTags != null) {
|
|
25826
|
+
mustIncludeAllTagsPointer = Module._malloc(4);
|
|
25827
|
+
Module.setValue(mustIncludeAllTagsPointer, mustIncludeAllTags ? 1 : 0, "i32");
|
|
25828
|
+
}
|
|
25829
|
+
Module.ccall("csp_systems_SpaceSystem_GetSpacesByAttributes_void_boolRC_boolRC_boolRC_intRC_intRC_ArrayRC_ArrayRC_boolRC_BasicSpacesResultCallback", "void", [
|
|
26485
25830
|
"number",
|
|
26486
25831
|
"boolean",
|
|
26487
25832
|
"boolean",
|
|
@@ -26490,6 +25835,9 @@ export class CSPFoundation {
|
|
|
26490
25835
|
"number",
|
|
26491
25836
|
"number",
|
|
26492
25837
|
"number",
|
|
25838
|
+
"boolean",
|
|
25839
|
+
"number",
|
|
25840
|
+
"number",
|
|
26493
25841
|
], [
|
|
26494
25842
|
this.pointer,
|
|
26495
25843
|
isDiscoverablePointer,
|
|
@@ -26497,6 +25845,9 @@ export class CSPFoundation {
|
|
|
26497
25845
|
requiresInvitePointer,
|
|
26498
25846
|
resultsSkipPointer,
|
|
26499
25847
|
resultsMaxPointer,
|
|
25848
|
+
mustContainTags != null ? mustContainTags.pointer : 0,
|
|
25849
|
+
mustExcludeTags != null ? mustExcludeTags.pointer : 0,
|
|
25850
|
+
mustIncludeAllTagsPointer,
|
|
26500
25851
|
_callbackPtr,
|
|
26501
25852
|
0,
|
|
26502
25853
|
]);
|
|
@@ -26515,6 +25866,9 @@ export class CSPFoundation {
|
|
|
26515
25866
|
if (resultsMaxPointer) {
|
|
26516
25867
|
Module._free(resultsMaxPointer);
|
|
26517
25868
|
}
|
|
25869
|
+
if (mustIncludeAllTagsPointer) {
|
|
25870
|
+
Module._free(mustIncludeAllTagsPointer);
|
|
25871
|
+
}
|
|
26518
25872
|
return _promise;
|
|
26519
25873
|
}
|
|
26520
25874
|
/**
|
|
@@ -26895,11 +26249,9 @@ export class CSPFoundation {
|
|
|
26895
26249
|
* @description Updates the Space metadata information with the new one provided
|
|
26896
26250
|
* @param spaceId - ID of Space for which the metadata will be updated
|
|
26897
26251
|
* @param newMetadata - New metadata information that will replace the previous one
|
|
26898
|
-
* @param tags - Array of strings that will replace the tags on the space. If unset, the existing tags on
|
|
26899
|
-
* the AssetCollection will be unmodified.
|
|
26900
26252
|
* @param callback - Callback when asynchronous task finishes
|
|
26901
26253
|
*/
|
|
26902
|
-
async updateSpaceMetadata(spaceId, newMetadata
|
|
26254
|
+
async updateSpaceMetadata(spaceId, newMetadata) {
|
|
26903
26255
|
var _resolve;
|
|
26904
26256
|
var _promise = new Promise((_r) => {
|
|
26905
26257
|
_resolve = _r;
|
|
@@ -26915,14 +26267,7 @@ export class CSPFoundation {
|
|
|
26915
26267
|
Module.removeFunction(_callbackPtr);
|
|
26916
26268
|
};
|
|
26917
26269
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
26918
|
-
Module.ccall("
|
|
26919
|
-
this.pointer,
|
|
26920
|
-
spaceId,
|
|
26921
|
-
newMetadata.pointer,
|
|
26922
|
-
tags != null ? tags.pointer : 0,
|
|
26923
|
-
_callbackPtr,
|
|
26924
|
-
0,
|
|
26925
|
-
]);
|
|
26270
|
+
Module.ccall("csp_systems_SpaceSystem_UpdateSpaceMetadata_void_StringRC_MapRC_NullResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, spaceId, newMetadata.pointer, _callbackPtr, 0]);
|
|
26926
26271
|
return _promise;
|
|
26927
26272
|
}
|
|
26928
26273
|
/**
|
|
@@ -28276,6 +27621,8 @@ export class CSPFoundation {
|
|
|
28276
27621
|
* @param password - Csp::common::string
|
|
28277
27622
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
28278
27623
|
* @param callback - Callback to call when a response is received
|
|
27624
|
+
@pre One of either UserName or Email must not be empty.
|
|
27625
|
+
@pre Password must not be empty.
|
|
28279
27626
|
*/
|
|
28280
27627
|
async login(userName, email, password, userHasVerifiedAge) {
|
|
28281
27628
|
var _resolve;
|
|
@@ -28318,6 +27665,7 @@ export class CSPFoundation {
|
|
|
28318
27665
|
* @param userId - User ID for the previous session
|
|
28319
27666
|
* @param refreshToken - Refresh token to be used for refreshing the authentication token
|
|
28320
27667
|
* @param callback - Callback when asynchronous task finishes
|
|
27668
|
+
@pre UserId must not be empty.
|
|
28321
27669
|
*/
|
|
28322
27670
|
async loginWithRefreshToken(userId, refreshToken) {
|
|
28323
27671
|
var _resolve;
|
|
@@ -29067,27 +28415,6 @@ export class CSPFoundation {
|
|
|
29067
28415
|
Module._free(_ret);
|
|
29068
28416
|
return _inst;
|
|
29069
28417
|
}
|
|
29070
|
-
static ofcsp_systems_EOrganizationRole() {
|
|
29071
|
-
var _ret = Module._malloc(8);
|
|
29072
|
-
Module.ccall("csp_common_Array_Ctor_csp_systems_EOrganizationRole", "void", ["number"], [_ret]);
|
|
29073
|
-
var _inst = new Array(getNativePointer(_ret), csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
29074
|
-
Module._free(_ret);
|
|
29075
|
-
return _inst;
|
|
29076
|
-
}
|
|
29077
|
-
static ofcsp_systems_InviteOrganizationRoleInfo() {
|
|
29078
|
-
var _ret = Module._malloc(8);
|
|
29079
|
-
Module.ccall("csp_common_Array_Ctor_csp_systems_InviteOrganizationRoleInfo", "void", ["number"], [_ret]);
|
|
29080
|
-
var _inst = new Array(getNativePointer(_ret), csp_systems_InviteOrganizationRoleInfoFactory, "csp_systems_InviteOrganizationRoleInfo");
|
|
29081
|
-
Module._free(_ret);
|
|
29082
|
-
return _inst;
|
|
29083
|
-
}
|
|
29084
|
-
static ofcsp_systems_OrganizationRoleInfo() {
|
|
29085
|
-
var _ret = Module._malloc(8);
|
|
29086
|
-
Module.ccall("csp_common_Array_Ctor_csp_systems_OrganizationRoleInfo", "void", ["number"], [_ret]);
|
|
29087
|
-
var _inst = new Array(getNativePointer(_ret), csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
29088
|
-
Module._free(_ret);
|
|
29089
|
-
return _inst;
|
|
29090
|
-
}
|
|
29091
28418
|
static ofcsp_systems_FeatureLimitInfo() {
|
|
29092
28419
|
var _ret = Module._malloc(8);
|
|
29093
28420
|
Module.ccall("csp_common_Array_Ctor_csp_systems_FeatureLimitInfo", "void", ["number"], [_ret]);
|
|
@@ -29375,27 +28702,6 @@ export class CSPFoundation {
|
|
|
29375
28702
|
Module._free(_ret);
|
|
29376
28703
|
return _inst;
|
|
29377
28704
|
}
|
|
29378
|
-
static ofcsp_systems_EOrganizationRole_number(size) {
|
|
29379
|
-
var _ret = Module._malloc(8);
|
|
29380
|
-
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_EOrganizationRole", "void", ["number", "number"], [_ret, size]);
|
|
29381
|
-
var _inst = new Array(getNativePointer(_ret), csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
29382
|
-
Module._free(_ret);
|
|
29383
|
-
return _inst;
|
|
29384
|
-
}
|
|
29385
|
-
static ofcsp_systems_InviteOrganizationRoleInfo_number(size) {
|
|
29386
|
-
var _ret = Module._malloc(8);
|
|
29387
|
-
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_InviteOrganizationRoleInfo", "void", ["number", "number"], [_ret, size]);
|
|
29388
|
-
var _inst = new Array(getNativePointer(_ret), csp_systems_InviteOrganizationRoleInfoFactory, "csp_systems_InviteOrganizationRoleInfo");
|
|
29389
|
-
Module._free(_ret);
|
|
29390
|
-
return _inst;
|
|
29391
|
-
}
|
|
29392
|
-
static ofcsp_systems_OrganizationRoleInfo_number(size) {
|
|
29393
|
-
var _ret = Module._malloc(8);
|
|
29394
|
-
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_OrganizationRoleInfo", "void", ["number", "number"], [_ret, size]);
|
|
29395
|
-
var _inst = new Array(getNativePointer(_ret), csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
29396
|
-
Module._free(_ret);
|
|
29397
|
-
return _inst;
|
|
29398
|
-
}
|
|
29399
28705
|
static ofcsp_systems_FeatureLimitInfo_number(size) {
|
|
29400
28706
|
var _ret = Module._malloc(8);
|
|
29401
28707
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_FeatureLimitInfo", "void", ["number", "number"], [_ret, size]);
|