connected-spaces-platform.web 4.26.2 → 4.27.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 +170 -4
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +5 -9
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +233 -8
- package/connectedspacesplatform.js +702 -10
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +1370 -14
- package/package.json +1 -1
|
@@ -555,6 +555,11 @@ function csp_systems_LogLevelFactory(nativePointer) {
|
|
|
555
555
|
return nativePointer.pointer;
|
|
556
556
|
}
|
|
557
557
|
ProxyClassFactories["csp_systems_LogLevel"] = csp_systems_LogLevelFactory;
|
|
558
|
+
function csp_systems_EOrganizationRoleFactory(nativePointer) {
|
|
559
|
+
return nativePointer.pointer;
|
|
560
|
+
}
|
|
561
|
+
ProxyClassFactories["csp_systems_EOrganizationRole"] =
|
|
562
|
+
csp_systems_EOrganizationRoleFactory;
|
|
558
563
|
function csp_systems_PeriodEnumFactory(nativePointer) {
|
|
559
564
|
return nativePointer.pointer;
|
|
560
565
|
}
|
|
@@ -829,6 +834,26 @@ function csp_systems_MaintenanceInfoFactory(nativePointer) {
|
|
|
829
834
|
}
|
|
830
835
|
ProxyClassFactories["csp_systems_MaintenanceInfo"] =
|
|
831
836
|
csp_systems_MaintenanceInfoFactory;
|
|
837
|
+
function csp_systems_InviteOrganizationRoleInfoFactory(nativePointer) {
|
|
838
|
+
return new Systems.InviteOrganizationRoleInfo(nativePointer);
|
|
839
|
+
}
|
|
840
|
+
ProxyClassFactories["csp_systems_InviteOrganizationRoleInfo"] =
|
|
841
|
+
csp_systems_InviteOrganizationRoleInfoFactory;
|
|
842
|
+
function csp_systems_InviteOrganizationRoleCollectionFactory(nativePointer) {
|
|
843
|
+
return new Systems.InviteOrganizationRoleCollection(nativePointer);
|
|
844
|
+
}
|
|
845
|
+
ProxyClassFactories["csp_systems_InviteOrganizationRoleCollection"] =
|
|
846
|
+
csp_systems_InviteOrganizationRoleCollectionFactory;
|
|
847
|
+
function csp_systems_OrganizationRoleInfoFactory(nativePointer) {
|
|
848
|
+
return new Systems.OrganizationRoleInfo(nativePointer);
|
|
849
|
+
}
|
|
850
|
+
ProxyClassFactories["csp_systems_OrganizationRoleInfo"] =
|
|
851
|
+
csp_systems_OrganizationRoleInfoFactory;
|
|
852
|
+
function csp_systems_OrganizationFactory(nativePointer) {
|
|
853
|
+
return new Systems.Organization(nativePointer);
|
|
854
|
+
}
|
|
855
|
+
ProxyClassFactories["csp_systems_Organization"] =
|
|
856
|
+
csp_systems_OrganizationFactory;
|
|
832
857
|
function csp_systems_FeatureLimitInfoFactory(nativePointer) {
|
|
833
858
|
return new Systems.FeatureLimitInfo(nativePointer);
|
|
834
859
|
}
|
|
@@ -1153,6 +1178,11 @@ function csp_systems_AddShopifyStoreResultFactory(nativePointer) {
|
|
|
1153
1178
|
}
|
|
1154
1179
|
ProxyClassFactories["csp_systems_AddShopifyStoreResult"] =
|
|
1155
1180
|
csp_systems_AddShopifyStoreResultFactory;
|
|
1181
|
+
function csp_systems_GetShopifyStoresResultFactory(nativePointer) {
|
|
1182
|
+
return new Systems.GetShopifyStoresResult(nativePointer);
|
|
1183
|
+
}
|
|
1184
|
+
ProxyClassFactories["csp_systems_GetShopifyStoresResult"] =
|
|
1185
|
+
csp_systems_GetShopifyStoresResultFactory;
|
|
1156
1186
|
function csp_systems_ValidateShopifyStoreResultFactory(nativePointer) {
|
|
1157
1187
|
return new Systems.ValidateShopifyStoreResult(nativePointer);
|
|
1158
1188
|
}
|
|
@@ -1213,6 +1243,21 @@ function csp_systems_MaintenanceSystemFactory(nativePointer) {
|
|
|
1213
1243
|
}
|
|
1214
1244
|
ProxyClassFactories["csp_systems_MaintenanceSystem"] =
|
|
1215
1245
|
csp_systems_MaintenanceSystemFactory;
|
|
1246
|
+
function csp_systems_OrganizationResultFactory(nativePointer) {
|
|
1247
|
+
return new Systems.OrganizationResult(nativePointer);
|
|
1248
|
+
}
|
|
1249
|
+
ProxyClassFactories["csp_systems_OrganizationResult"] =
|
|
1250
|
+
csp_systems_OrganizationResultFactory;
|
|
1251
|
+
function csp_systems_OrganizationRolesResultFactory(nativePointer) {
|
|
1252
|
+
return new Systems.OrganizationRolesResult(nativePointer);
|
|
1253
|
+
}
|
|
1254
|
+
ProxyClassFactories["csp_systems_OrganizationRolesResult"] =
|
|
1255
|
+
csp_systems_OrganizationRolesResultFactory;
|
|
1256
|
+
function csp_systems_OrganizationSystemFactory(nativePointer) {
|
|
1257
|
+
return new Systems.OrganizationSystem(nativePointer);
|
|
1258
|
+
}
|
|
1259
|
+
ProxyClassFactories["csp_systems_OrganizationSystem"] =
|
|
1260
|
+
csp_systems_OrganizationSystemFactory;
|
|
1216
1261
|
function csp_systems_FeaturesLimitResultFactory(nativePointer) {
|
|
1217
1262
|
return new Systems.FeaturesLimitResult(nativePointer);
|
|
1218
1263
|
}
|
|
@@ -1469,6 +1514,11 @@ function csp_common_Array_csp_systems_ProductInfoFactory(nativePointer) {
|
|
|
1469
1514
|
}
|
|
1470
1515
|
ProxyClassFactories["csp_common_Array_csp_systems_ProductInfo"] =
|
|
1471
1516
|
csp_common_Array_csp_systems_ProductInfoFactory;
|
|
1517
|
+
function csp_common_Array_csp_systems_ShopifyStoreInfoFactory(nativePointer) {
|
|
1518
|
+
return new Common.Array(nativePointer, csp_systems_ShopifyStoreInfoFactory, "csp_systems_ShopifyStoreInfo");
|
|
1519
|
+
}
|
|
1520
|
+
ProxyClassFactories["csp_common_Array_csp_systems_ShopifyStoreInfo"] =
|
|
1521
|
+
csp_common_Array_csp_systems_ShopifyStoreInfoFactory;
|
|
1472
1522
|
function csp_common_Array_csp_systems_TicketedEventFactory(nativePointer) {
|
|
1473
1523
|
return new Common.Array(nativePointer, csp_systems_TicketedEventFactory, "csp_systems_TicketedEvent");
|
|
1474
1524
|
}
|
|
@@ -1479,6 +1529,21 @@ function csp_common_Array_csp_systems_MaintenanceInfoFactory(nativePointer) {
|
|
|
1479
1529
|
}
|
|
1480
1530
|
ProxyClassFactories["csp_common_Array_csp_systems_MaintenanceInfo"] =
|
|
1481
1531
|
csp_common_Array_csp_systems_MaintenanceInfoFactory;
|
|
1532
|
+
function csp_common_Array_csp_systems_EOrganizationRoleFactory(nativePointer) {
|
|
1533
|
+
return new Common.Array(nativePointer, csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
1534
|
+
}
|
|
1535
|
+
ProxyClassFactories["csp_common_Array_csp_systems_EOrganizationRole"] =
|
|
1536
|
+
csp_common_Array_csp_systems_EOrganizationRoleFactory;
|
|
1537
|
+
function csp_common_Array_csp_systems_InviteOrganizationRoleInfoFactory(nativePointer) {
|
|
1538
|
+
return new Common.Array(nativePointer, csp_systems_InviteOrganizationRoleInfoFactory, "csp_systems_InviteOrganizationRoleInfo");
|
|
1539
|
+
}
|
|
1540
|
+
ProxyClassFactories["csp_common_Array_csp_systems_InviteOrganizationRoleInfo"] =
|
|
1541
|
+
csp_common_Array_csp_systems_InviteOrganizationRoleInfoFactory;
|
|
1542
|
+
function csp_common_Array_csp_systems_OrganizationRoleInfoFactory(nativePointer) {
|
|
1543
|
+
return new Common.Array(nativePointer, csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
1544
|
+
}
|
|
1545
|
+
ProxyClassFactories["csp_common_Array_csp_systems_OrganizationRoleInfo"] =
|
|
1546
|
+
csp_common_Array_csp_systems_OrganizationRoleInfoFactory;
|
|
1482
1547
|
function csp_common_Array_csp_systems_FeatureLimitInfoFactory(nativePointer) {
|
|
1483
1548
|
return new Common.Array(nativePointer, csp_systems_FeatureLimitInfoFactory, "csp_systems_FeatureLimitInfo");
|
|
1484
1549
|
}
|
|
@@ -2511,6 +2576,17 @@ export var Multiplayer;
|
|
|
2511
2576
|
LogLevel[LogLevel["All"] = 8] = "All";
|
|
2512
2577
|
})(LogLevel = Systems.LogLevel || (Systems.LogLevel = {}));
|
|
2513
2578
|
})(Systems || (Systems = {}));
|
|
2579
|
+
(function (Systems) {
|
|
2580
|
+
/**
|
|
2581
|
+
* @description Data representation of User Role in Organization.
|
|
2582
|
+
*/
|
|
2583
|
+
let EOrganizationRole;
|
|
2584
|
+
(function (EOrganizationRole) {
|
|
2585
|
+
EOrganizationRole[EOrganizationRole["Member"] = 0] = "Member";
|
|
2586
|
+
EOrganizationRole[EOrganizationRole["Administrator"] = 1] = "Administrator";
|
|
2587
|
+
EOrganizationRole[EOrganizationRole["Owner"] = 2] = "Owner";
|
|
2588
|
+
})(EOrganizationRole = Systems.EOrganizationRole || (Systems.EOrganizationRole = {}));
|
|
2589
|
+
})(Systems || (Systems = {}));
|
|
2514
2590
|
(function (Systems) {
|
|
2515
2591
|
/**
|
|
2516
2592
|
@ingroup Quota System
|
|
@@ -11166,6 +11242,17 @@ export class CSPFoundation {
|
|
|
11166
11242
|
Module._free(_ret);
|
|
11167
11243
|
return _nPtr;
|
|
11168
11244
|
}
|
|
11245
|
+
/**
|
|
11246
|
+
* @description Retrieves the Organization system.
|
|
11247
|
+
* @return Pointer to the organization system class
|
|
11248
|
+
*/
|
|
11249
|
+
getOrganizationSystem() {
|
|
11250
|
+
var _ret = Module._malloc(8);
|
|
11251
|
+
Module.ccall("csp_systems_SystemsManager_GetOrganizationSystem_OrganizationSystemP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
11252
|
+
var _nPtr = new Systems.OrganizationSystem(getNativePointer(_ret));
|
|
11253
|
+
Module._free(_ret);
|
|
11254
|
+
return _nPtr;
|
|
11255
|
+
}
|
|
11169
11256
|
getSpaceEntitySystem() {
|
|
11170
11257
|
var _ret = Module._malloc(8);
|
|
11171
11258
|
Module.ccall("csp_systems_SystemsManager_GetSpaceEntitySystem_SpaceEntitySystemP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
@@ -12762,6 +12849,225 @@ export class CSPFoundation {
|
|
|
12762
12849
|
}
|
|
12763
12850
|
Systems.MaintenanceInfo = MaintenanceInfo;
|
|
12764
12851
|
})(Systems || (Systems = {}));
|
|
12852
|
+
(function (Systems) {
|
|
12853
|
+
/**
|
|
12854
|
+
@ingroup Organization System
|
|
12855
|
+
* @description Data representation of a User's Organization invite.
|
|
12856
|
+
*/
|
|
12857
|
+
class InviteOrganizationRoleInfo extends NativeClassWrapper {
|
|
12858
|
+
/** @internal */
|
|
12859
|
+
constructor(pointer) {
|
|
12860
|
+
super(pointer);
|
|
12861
|
+
}
|
|
12862
|
+
static create() {
|
|
12863
|
+
var _ptr = Module._malloc(8);
|
|
12864
|
+
Module.ccall("csp_systems_InviteOrganizationRoleInfo_Ctor", "void", ["number"], [_ptr]);
|
|
12865
|
+
var _nPtr = getNativePointer(_ptr);
|
|
12866
|
+
return new InviteOrganizationRoleInfo(_nPtr);
|
|
12867
|
+
}
|
|
12868
|
+
delete() {
|
|
12869
|
+
if (this.ownsPointer && !this.disposed) {
|
|
12870
|
+
Module.ccall("csp_systems_InviteOrganizationRoleInfo_Dtor", "void", ["number"], [this.pointer]);
|
|
12871
|
+
this.disposed = true;
|
|
12872
|
+
}
|
|
12873
|
+
}
|
|
12874
|
+
get userEmail() {
|
|
12875
|
+
let _result = Module.ccall("csp_systems_InviteOrganizationRoleInfo__Get_UserEmail", "string", ["number"], [this.pointer]);
|
|
12876
|
+
return _result;
|
|
12877
|
+
}
|
|
12878
|
+
set userEmail(value) {
|
|
12879
|
+
Module.ccall("csp_systems_InviteOrganizationRoleInfo__Set_UserEmail", "void", ["number", "string"], [this.pointer, value]);
|
|
12880
|
+
}
|
|
12881
|
+
get organizationRoles() {
|
|
12882
|
+
const _ptr = Module._malloc(8);
|
|
12883
|
+
Module.ccall("csp_systems_InviteOrganizationRoleInfo__Get_OrganizationRoles", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
12884
|
+
const _nPtr = getNativePointer(_ptr);
|
|
12885
|
+
return new Common.Array(_nPtr, csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
12886
|
+
}
|
|
12887
|
+
set organizationRoles(value) {
|
|
12888
|
+
Module.ccall("csp_systems_InviteOrganizationRoleInfo__Set_OrganizationRoles", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
12889
|
+
}
|
|
12890
|
+
}
|
|
12891
|
+
Systems.InviteOrganizationRoleInfo = InviteOrganizationRoleInfo;
|
|
12892
|
+
})(Systems || (Systems = {}));
|
|
12893
|
+
(function (Systems) {
|
|
12894
|
+
/**
|
|
12895
|
+
@ingroup Organization System
|
|
12896
|
+
* @description Data representation of a collection of User Organization invites.
|
|
12897
|
+
*/
|
|
12898
|
+
class InviteOrganizationRoleCollection extends NativeClassWrapper {
|
|
12899
|
+
/** @internal */
|
|
12900
|
+
constructor(pointer) {
|
|
12901
|
+
super(pointer);
|
|
12902
|
+
}
|
|
12903
|
+
static create() {
|
|
12904
|
+
var _ptr = Module._malloc(8);
|
|
12905
|
+
Module.ccall("csp_systems_InviteOrganizationRoleCollection_Ctor", "void", ["number"], [_ptr]);
|
|
12906
|
+
var _nPtr = getNativePointer(_ptr);
|
|
12907
|
+
return new InviteOrganizationRoleCollection(_nPtr);
|
|
12908
|
+
}
|
|
12909
|
+
delete() {
|
|
12910
|
+
if (this.ownsPointer && !this.disposed) {
|
|
12911
|
+
Module.ccall("csp_systems_InviteOrganizationRoleCollection_Dtor", "void", ["number"], [this.pointer]);
|
|
12912
|
+
this.disposed = true;
|
|
12913
|
+
}
|
|
12914
|
+
}
|
|
12915
|
+
get emailLinkUrl() {
|
|
12916
|
+
let _result = Module.ccall("csp_systems_InviteOrganizationRoleCollection__Get_EmailLinkUrl", "string", ["number"], [this.pointer]);
|
|
12917
|
+
return _result;
|
|
12918
|
+
}
|
|
12919
|
+
set emailLinkUrl(value) {
|
|
12920
|
+
Module.ccall("csp_systems_InviteOrganizationRoleCollection__Set_EmailLinkUrl", "void", ["number", "string"], [this.pointer, value]);
|
|
12921
|
+
}
|
|
12922
|
+
get signupUrl() {
|
|
12923
|
+
let _result = Module.ccall("csp_systems_InviteOrganizationRoleCollection__Get_SignupUrl", "string", ["number"], [this.pointer]);
|
|
12924
|
+
return _result;
|
|
12925
|
+
}
|
|
12926
|
+
set signupUrl(value) {
|
|
12927
|
+
Module.ccall("csp_systems_InviteOrganizationRoleCollection__Set_SignupUrl", "void", ["number", "string"], [this.pointer, value]);
|
|
12928
|
+
}
|
|
12929
|
+
get invitedUserRoles() {
|
|
12930
|
+
const _ptr = Module._malloc(8);
|
|
12931
|
+
Module.ccall("csp_systems_InviteOrganizationRoleCollection__Get_InvitedUserRoles", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
12932
|
+
const _nPtr = getNativePointer(_ptr);
|
|
12933
|
+
return new Common.Array(_nPtr, csp_systems_InviteOrganizationRoleInfoFactory, "csp_systems_InviteOrganizationRoleInfo");
|
|
12934
|
+
}
|
|
12935
|
+
set invitedUserRoles(value) {
|
|
12936
|
+
Module.ccall("csp_systems_InviteOrganizationRoleCollection__Set_InvitedUserRoles", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
12937
|
+
}
|
|
12938
|
+
}
|
|
12939
|
+
Systems.InviteOrganizationRoleCollection = InviteOrganizationRoleCollection;
|
|
12940
|
+
})(Systems || (Systems = {}));
|
|
12941
|
+
(function (Systems) {
|
|
12942
|
+
/**
|
|
12943
|
+
@ingroup Organization System
|
|
12944
|
+
* @description Data representation of a User's role within an Organization.
|
|
12945
|
+
*/
|
|
12946
|
+
class OrganizationRoleInfo extends NativeClassWrapper {
|
|
12947
|
+
/** @internal */
|
|
12948
|
+
constructor(pointer) {
|
|
12949
|
+
super(pointer);
|
|
12950
|
+
}
|
|
12951
|
+
static create() {
|
|
12952
|
+
var _ptr = Module._malloc(8);
|
|
12953
|
+
Module.ccall("csp_systems_OrganizationRoleInfo_Ctor", "void", ["number"], [_ptr]);
|
|
12954
|
+
var _nPtr = getNativePointer(_ptr);
|
|
12955
|
+
return new OrganizationRoleInfo(_nPtr);
|
|
12956
|
+
}
|
|
12957
|
+
delete() {
|
|
12958
|
+
if (this.ownsPointer && !this.disposed) {
|
|
12959
|
+
Module.ccall("csp_systems_OrganizationRoleInfo_Dtor", "void", ["number"], [this.pointer]);
|
|
12960
|
+
this.disposed = true;
|
|
12961
|
+
}
|
|
12962
|
+
}
|
|
12963
|
+
get userId() {
|
|
12964
|
+
let _result = Module.ccall("csp_systems_OrganizationRoleInfo__Get_UserId", "string", ["number"], [this.pointer]);
|
|
12965
|
+
return _result;
|
|
12966
|
+
}
|
|
12967
|
+
set userId(value) {
|
|
12968
|
+
Module.ccall("csp_systems_OrganizationRoleInfo__Set_UserId", "void", ["number", "string"], [this.pointer, value]);
|
|
12969
|
+
}
|
|
12970
|
+
get organizationRoles() {
|
|
12971
|
+
const _ptr = Module._malloc(8);
|
|
12972
|
+
Module.ccall("csp_systems_OrganizationRoleInfo__Get_OrganizationRoles", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
12973
|
+
const _nPtr = getNativePointer(_ptr);
|
|
12974
|
+
return new Common.Array(_nPtr, csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
12975
|
+
}
|
|
12976
|
+
set organizationRoles(value) {
|
|
12977
|
+
Module.ccall("csp_systems_OrganizationRoleInfo__Set_OrganizationRoles", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
12978
|
+
}
|
|
12979
|
+
}
|
|
12980
|
+
Systems.OrganizationRoleInfo = OrganizationRoleInfo;
|
|
12981
|
+
})(Systems || (Systems = {}));
|
|
12982
|
+
(function (Systems) {
|
|
12983
|
+
/**
|
|
12984
|
+
@ingroup Organization System
|
|
12985
|
+
* @description Data representation of an Organization.
|
|
12986
|
+
*/
|
|
12987
|
+
class Organization extends NativeClassWrapper {
|
|
12988
|
+
/** @internal */
|
|
12989
|
+
constructor(pointer) {
|
|
12990
|
+
super(pointer);
|
|
12991
|
+
}
|
|
12992
|
+
static create() {
|
|
12993
|
+
var _ptr = Module._malloc(8);
|
|
12994
|
+
Module.ccall("csp_systems_Organization_Ctor", "void", ["number"], [_ptr]);
|
|
12995
|
+
var _nPtr = getNativePointer(_ptr);
|
|
12996
|
+
return new Organization(_nPtr);
|
|
12997
|
+
}
|
|
12998
|
+
static create_other(other) {
|
|
12999
|
+
var _ptr = Module._malloc(8);
|
|
13000
|
+
Module.ccall("csp_systems_Organization_Ctor_OrganizationRC", "void", ["number", "number"], [_ptr, other.pointer]);
|
|
13001
|
+
var _nPtr = getNativePointer(_ptr);
|
|
13002
|
+
return new Organization(_nPtr);
|
|
13003
|
+
}
|
|
13004
|
+
delete() {
|
|
13005
|
+
if (this.ownsPointer && !this.disposed) {
|
|
13006
|
+
Module.ccall("csp_systems_Organization_Dtor", "void", ["number"], [this.pointer]);
|
|
13007
|
+
this.disposed = true;
|
|
13008
|
+
}
|
|
13009
|
+
}
|
|
13010
|
+
get id() {
|
|
13011
|
+
let _result = Module.ccall("csp_systems_Organization__Get_Id", "string", ["number"], [this.pointer]);
|
|
13012
|
+
return _result;
|
|
13013
|
+
}
|
|
13014
|
+
set id(value) {
|
|
13015
|
+
Module.ccall("csp_systems_Organization__Set_Id", "void", ["number", "string"], [this.pointer, value]);
|
|
13016
|
+
}
|
|
13017
|
+
get ownerId() {
|
|
13018
|
+
let _result = Module.ccall("csp_systems_Organization__Get_OwnerId", "string", ["number"], [this.pointer]);
|
|
13019
|
+
return _result;
|
|
13020
|
+
}
|
|
13021
|
+
set ownerId(value) {
|
|
13022
|
+
Module.ccall("csp_systems_Organization__Set_OwnerId", "void", ["number", "string"], [this.pointer, value]);
|
|
13023
|
+
}
|
|
13024
|
+
get createdAt() {
|
|
13025
|
+
let _result = Module.ccall("csp_systems_Organization__Get_CreatedAt", "string", ["number"], [this.pointer]);
|
|
13026
|
+
return _result;
|
|
13027
|
+
}
|
|
13028
|
+
set createdAt(value) {
|
|
13029
|
+
Module.ccall("csp_systems_Organization__Set_CreatedAt", "void", ["number", "string"], [this.pointer, value]);
|
|
13030
|
+
}
|
|
13031
|
+
get createdBy() {
|
|
13032
|
+
let _result = Module.ccall("csp_systems_Organization__Get_CreatedBy", "string", ["number"], [this.pointer]);
|
|
13033
|
+
return _result;
|
|
13034
|
+
}
|
|
13035
|
+
set createdBy(value) {
|
|
13036
|
+
Module.ccall("csp_systems_Organization__Set_CreatedBy", "void", ["number", "string"], [this.pointer, value]);
|
|
13037
|
+
}
|
|
13038
|
+
get name() {
|
|
13039
|
+
let _result = Module.ccall("csp_systems_Organization__Get_Name", "string", ["number"], [this.pointer]);
|
|
13040
|
+
return _result;
|
|
13041
|
+
}
|
|
13042
|
+
set name(value) {
|
|
13043
|
+
Module.ccall("csp_systems_Organization__Set_Name", "void", ["number", "string"], [this.pointer, value]);
|
|
13044
|
+
}
|
|
13045
|
+
get description() {
|
|
13046
|
+
let _result = Module.ccall("csp_systems_Organization__Get_Description", "string", ["number"], [this.pointer]);
|
|
13047
|
+
return _result;
|
|
13048
|
+
}
|
|
13049
|
+
set description(value) {
|
|
13050
|
+
Module.ccall("csp_systems_Organization__Set_Description", "void", ["number", "string"], [this.pointer, value]);
|
|
13051
|
+
}
|
|
13052
|
+
get members() {
|
|
13053
|
+
const _ptr = Module._malloc(8);
|
|
13054
|
+
Module.ccall("csp_systems_Organization__Get_Members", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
13055
|
+
const _nPtr = getNativePointer(_ptr);
|
|
13056
|
+
return new Common.Array(_nPtr, csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
13057
|
+
}
|
|
13058
|
+
set members(value) {
|
|
13059
|
+
Module.ccall("csp_systems_Organization__Set_Members", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
13060
|
+
}
|
|
13061
|
+
get spaceCount() {
|
|
13062
|
+
let _result = Module.ccall("csp_systems_Organization__Get_SpaceCount", "number", ["number"], [this.pointer]);
|
|
13063
|
+
return _result;
|
|
13064
|
+
}
|
|
13065
|
+
set spaceCount(value) {
|
|
13066
|
+
Module.ccall("csp_systems_Organization__Set_SpaceCount", "void", ["number", "number"], [this.pointer, value]);
|
|
13067
|
+
}
|
|
13068
|
+
}
|
|
13069
|
+
Systems.Organization = Organization;
|
|
13070
|
+
})(Systems || (Systems = {}));
|
|
12765
13071
|
(function (Systems) {
|
|
12766
13072
|
/**
|
|
12767
13073
|
@ingroup Quota System
|
|
@@ -13866,6 +14172,15 @@ export class CSPFoundation {
|
|
|
13866
14172
|
set deviceId(value) {
|
|
13867
14173
|
Module.ccall("csp_systems_LoginState__Set_DeviceId", "void", ["number", "string"], [this.pointer, value]);
|
|
13868
14174
|
}
|
|
14175
|
+
get organizationIds() {
|
|
14176
|
+
const _ptr = Module._malloc(8);
|
|
14177
|
+
Module.ccall("csp_systems_LoginState__Get_OrganizationIds", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
14178
|
+
const _nPtr = getNativePointer(_ptr);
|
|
14179
|
+
return new Common.Array(_nPtr, StringFactory, "String");
|
|
14180
|
+
}
|
|
14181
|
+
set organizationIds(value) {
|
|
14182
|
+
Module.ccall("csp_systems_LoginState__Set_OrganizationIds", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
14183
|
+
}
|
|
13869
14184
|
}
|
|
13870
14185
|
Systems.LoginState = LoginState;
|
|
13871
14186
|
})(Systems || (Systems = {}));
|
|
@@ -16665,9 +16980,10 @@ export class CSPFoundation {
|
|
|
16665
16980
|
/**
|
|
16666
16981
|
@ingroup GaussianSplatSpaceComponent
|
|
16667
16982
|
* @description Data representation of a GaussianSplatSpaceComponent.
|
|
16668
|
-
* Gaussian Splatting is a technique for real-time 3D reconstruction and rendering of an object or environment using images taken from multiple
|
|
16669
|
-
* Rather than representing the object as a mesh of triangles, which has a surface but nothing inside, it is instead represented as a
|
|
16670
|
-
* comprising a point cloud of splats (like coloured dots), each of which has a position, colour (with alpha) and covariance (scale on 3
|
|
16983
|
+
* Gaussian Splatting is a technique for real-time 3D reconstruction and rendering of an object or environment using images taken from multiple
|
|
16984
|
+
* points of view. Rather than representing the object as a mesh of triangles, which has a surface but nothing inside, it is instead represented as a
|
|
16985
|
+
* volume, comprising a point cloud of splats (like coloured dots), each of which has a position, colour (with alpha) and covariance (scale on 3
|
|
16986
|
+
* axis).
|
|
16671
16987
|
*/
|
|
16672
16988
|
class GaussianSplatSpaceComponent extends Multiplayer.ComponentBase {
|
|
16673
16989
|
/** @internal */
|
|
@@ -16829,6 +17145,8 @@ export class CSPFoundation {
|
|
|
16829
17145
|
@{
|
|
16830
17146
|
@copydoc IShadowCasterComponent::GetIsShadowCaster()
|
|
16831
17147
|
*/
|
|
17148
|
+
/** @deprecated
|
|
17149
|
+
*/
|
|
16832
17150
|
getIsShadowCaster() {
|
|
16833
17151
|
let _result = Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_GetIsShadowCasterC_bool", "boolean", ["number"], [this.pointer]);
|
|
16834
17152
|
return _result;
|
|
@@ -16836,6 +17154,8 @@ export class CSPFoundation {
|
|
|
16836
17154
|
/**
|
|
16837
17155
|
@copydoc IShadowCasterComponent::SetIsShadowCaster()
|
|
16838
17156
|
*/
|
|
17157
|
+
/** @deprecated
|
|
17158
|
+
*/
|
|
16839
17159
|
setIsShadowCaster(value) {
|
|
16840
17160
|
Module.ccall("csp_multiplayer_GaussianSplatSpaceComponent_SetIsShadowCaster_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
16841
17161
|
}
|
|
@@ -19933,6 +20253,36 @@ export class CSPFoundation {
|
|
|
19933
20253
|
}
|
|
19934
20254
|
Systems.AddShopifyStoreResult = AddShopifyStoreResult;
|
|
19935
20255
|
})(Systems || (Systems = {}));
|
|
20256
|
+
(function (Systems) {
|
|
20257
|
+
class GetShopifyStoresResult extends Systems.ResultBase {
|
|
20258
|
+
/** @internal */
|
|
20259
|
+
constructor(pointer) {
|
|
20260
|
+
super(pointer);
|
|
20261
|
+
}
|
|
20262
|
+
static fromResultBase(baseInstance) {
|
|
20263
|
+
const nativeClassWrapper = baseInstance;
|
|
20264
|
+
return new Systems.GetShopifyStoresResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
20265
|
+
}
|
|
20266
|
+
/**
|
|
20267
|
+
* @description Retrieves the ShopifyStoreInfo Array being stored.
|
|
20268
|
+
* @return Reference to the shopifystoreinfos
|
|
20269
|
+
*/
|
|
20270
|
+
getShopifyStores() {
|
|
20271
|
+
var _ret = Module._malloc(8);
|
|
20272
|
+
Module.ccall("csp_systems_GetShopifyStoresResult_GetShopifyStoresC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
20273
|
+
var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_ShopifyStoreInfoFactory, "csp_systems_ShopifyStoreInfo");
|
|
20274
|
+
Module._free(_ret);
|
|
20275
|
+
return _nPtr;
|
|
20276
|
+
}
|
|
20277
|
+
delete() {
|
|
20278
|
+
if (this.ownsPointer && !this.disposed) {
|
|
20279
|
+
Module.ccall("csp_systems_GetShopifyStoresResult_Dtor", "void", ["number"], [this.pointer]);
|
|
20280
|
+
this.disposed = true;
|
|
20281
|
+
}
|
|
20282
|
+
}
|
|
20283
|
+
}
|
|
20284
|
+
Systems.GetShopifyStoresResult = GetShopifyStoresResult;
|
|
20285
|
+
})(Systems || (Systems = {}));
|
|
19936
20286
|
(function (Systems) {
|
|
19937
20287
|
class ValidateShopifyStoreResult extends Systems.ResultBase {
|
|
19938
20288
|
/** @internal */
|
|
@@ -20098,6 +20448,38 @@ export class CSPFoundation {
|
|
|
20098
20448
|
Module.ccall("csp_systems_ECommerceSystem_GetCart_void_StringRC_StringRC_CartInfoResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, spaceId, cartId, _callbackPtr, 0]);
|
|
20099
20449
|
return _promise;
|
|
20100
20450
|
}
|
|
20451
|
+
/**
|
|
20452
|
+
* @description Gets all shopify stores for the given user.
|
|
20453
|
+
* @param isActive - Optional bool for filtering returned stores by active status.
|
|
20454
|
+
* @param callback - Callback when asynchronous task finishes
|
|
20455
|
+
*/
|
|
20456
|
+
async getShopifyStores(isActive) {
|
|
20457
|
+
var _resolve;
|
|
20458
|
+
var _promise = new Promise((_r) => {
|
|
20459
|
+
_resolve = _r;
|
|
20460
|
+
});
|
|
20461
|
+
var _callbackPtr;
|
|
20462
|
+
var _callback = (_stateObject__, result) => {
|
|
20463
|
+
var _resultPtr = getNativePointer(result);
|
|
20464
|
+
var _resultInstance = new Systems.GetShopifyStoresResult(_resultPtr);
|
|
20465
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
20466
|
+
return;
|
|
20467
|
+
}
|
|
20468
|
+
_resolve(_resultInstance);
|
|
20469
|
+
Module.removeFunction(_callbackPtr);
|
|
20470
|
+
};
|
|
20471
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
20472
|
+
var isActivePointer = 0;
|
|
20473
|
+
if (isActive != null) {
|
|
20474
|
+
isActivePointer = Module._malloc(4);
|
|
20475
|
+
Module.setValue(isActivePointer, isActive ? 1 : 0, "i32");
|
|
20476
|
+
}
|
|
20477
|
+
Module.ccall("csp_systems_ECommerceSystem_GetShopifyStores_void_boolRC_GetShopifyStoresResultCallback", "void", ["number", "boolean", "number", "number"], [this.pointer, isActivePointer, _callbackPtr, 0]);
|
|
20478
|
+
if (isActivePointer) {
|
|
20479
|
+
Module._free(isActivePointer);
|
|
20480
|
+
}
|
|
20481
|
+
return _promise;
|
|
20482
|
+
}
|
|
20101
20483
|
/**
|
|
20102
20484
|
* @description Adds a Shopify store to a space.
|
|
20103
20485
|
* @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
|
|
@@ -20440,10 +20822,10 @@ export class CSPFoundation {
|
|
|
20440
20822
|
* existing values to be empty.
|
|
20441
20823
|
* /// @param SpaceId csp::common::String : ID of the space the event belongs to.
|
|
20442
20824
|
* @param eventId - ID of the Event to update.
|
|
20443
|
-
* @param vendor -
|
|
20444
|
-
* @param vendorEventId -
|
|
20445
|
-
* @param vendorEventUri -
|
|
20446
|
-
* @param isTicketingActive -
|
|
20825
|
+
* @param vendor - Optional enum representing the vendor that the event should be updated with.
|
|
20826
|
+
* @param vendorEventId - Optional value to update the event ID in the vendors system with.
|
|
20827
|
+
* @param vendorEventUri - Optional value to update the URI for the event in the vendors system with.
|
|
20828
|
+
* @param isTicketingActive - Optional value to update whether ticketing is currently active for this event.
|
|
20447
20829
|
* @param callback - Callback providing the TicketedEvent once created.
|
|
20448
20830
|
*/
|
|
20449
20831
|
async updateTicketedEvent(spaceId, eventId, vendor, vendorEventId, vendorEventUri, isTicketingActive) {
|
|
@@ -20462,7 +20844,17 @@ export class CSPFoundation {
|
|
|
20462
20844
|
Module.removeFunction(_callbackPtr);
|
|
20463
20845
|
};
|
|
20464
20846
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
20465
|
-
|
|
20847
|
+
var vendorPointer = 0;
|
|
20848
|
+
if (vendor != null) {
|
|
20849
|
+
vendorPointer = Module._malloc(4);
|
|
20850
|
+
Module.setValue(vendorPointer, vendor, "i32");
|
|
20851
|
+
}
|
|
20852
|
+
var isTicketingActivePointer = 0;
|
|
20853
|
+
if (isTicketingActive != null) {
|
|
20854
|
+
isTicketingActivePointer = Module._malloc(4);
|
|
20855
|
+
Module.setValue(isTicketingActivePointer, isTicketingActive ? 1 : 0, "i32");
|
|
20856
|
+
}
|
|
20857
|
+
Module.ccall("csp_systems_EventTicketingSystem_UpdateTicketedEvent_void_StringRC_StringRC_EventTicketingVendorRC_StringRC_StringRC_boolRC_TicketedEventResultCallback", "void", [
|
|
20466
20858
|
"number",
|
|
20467
20859
|
"string",
|
|
20468
20860
|
"string",
|
|
@@ -20476,13 +20868,19 @@ export class CSPFoundation {
|
|
|
20476
20868
|
this.pointer,
|
|
20477
20869
|
spaceId,
|
|
20478
20870
|
eventId,
|
|
20479
|
-
|
|
20871
|
+
vendorPointer,
|
|
20480
20872
|
vendorEventId,
|
|
20481
20873
|
vendorEventUri,
|
|
20482
|
-
|
|
20874
|
+
isTicketingActivePointer,
|
|
20483
20875
|
_callbackPtr,
|
|
20484
20876
|
0,
|
|
20485
20877
|
]);
|
|
20878
|
+
if (vendorPointer) {
|
|
20879
|
+
Module._free(vendorPointer);
|
|
20880
|
+
}
|
|
20881
|
+
if (isTicketingActivePointer) {
|
|
20882
|
+
Module._free(isTicketingActivePointer);
|
|
20883
|
+
}
|
|
20486
20884
|
return _promise;
|
|
20487
20885
|
}
|
|
20488
20886
|
/**
|
|
@@ -20854,6 +21252,244 @@ export class CSPFoundation {
|
|
|
20854
21252
|
}
|
|
20855
21253
|
Systems.MaintenanceSystem = MaintenanceSystem;
|
|
20856
21254
|
})(Systems || (Systems = {}));
|
|
21255
|
+
(function (Systems) {
|
|
21256
|
+
/**
|
|
21257
|
+
@ingroup Organization System
|
|
21258
|
+
* @description Data class used to contain Organization object.
|
|
21259
|
+
*/
|
|
21260
|
+
class OrganizationResult extends Systems.ResultBase {
|
|
21261
|
+
/** @internal */
|
|
21262
|
+
constructor(pointer) {
|
|
21263
|
+
super(pointer);
|
|
21264
|
+
}
|
|
21265
|
+
static fromResultBase(baseInstance) {
|
|
21266
|
+
const nativeClassWrapper = baseInstance;
|
|
21267
|
+
return new Systems.OrganizationResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
21268
|
+
}
|
|
21269
|
+
/**
|
|
21270
|
+
* @description Retrieves the Organization result.
|
|
21271
|
+
* @return Organization object.
|
|
21272
|
+
*/
|
|
21273
|
+
getOrganization() {
|
|
21274
|
+
var _ret = Module._malloc(8);
|
|
21275
|
+
Module.ccall("csp_systems_OrganizationResult_GetOrganizationC_OrganizationRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
21276
|
+
var _nPtr = new Systems.Organization(getNativePointer(_ret));
|
|
21277
|
+
Module._free(_ret);
|
|
21278
|
+
return _nPtr;
|
|
21279
|
+
}
|
|
21280
|
+
delete() {
|
|
21281
|
+
if (this.ownsPointer && !this.disposed) {
|
|
21282
|
+
Module.ccall("csp_systems_OrganizationResult_Dtor", "void", ["number"], [this.pointer]);
|
|
21283
|
+
this.disposed = true;
|
|
21284
|
+
}
|
|
21285
|
+
}
|
|
21286
|
+
}
|
|
21287
|
+
Systems.OrganizationResult = OrganizationResult;
|
|
21288
|
+
})(Systems || (Systems = {}));
|
|
21289
|
+
(function (Systems) {
|
|
21290
|
+
/**
|
|
21291
|
+
@ingroup Organization System
|
|
21292
|
+
* @description Data class used to contain a Users Organization Role Info object.
|
|
21293
|
+
*/
|
|
21294
|
+
class OrganizationRolesResult extends Systems.ResultBase {
|
|
21295
|
+
/** @internal */
|
|
21296
|
+
constructor(pointer) {
|
|
21297
|
+
super(pointer);
|
|
21298
|
+
}
|
|
21299
|
+
static fromResultBase(baseInstance) {
|
|
21300
|
+
const nativeClassWrapper = baseInstance;
|
|
21301
|
+
return new Systems.OrganizationRolesResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
21302
|
+
}
|
|
21303
|
+
/**
|
|
21304
|
+
* @description Retrieves the Organization Role Info result.
|
|
21305
|
+
* @return Array of Organization Role Info objects.
|
|
21306
|
+
*/
|
|
21307
|
+
getOrganizationRoleInfo() {
|
|
21308
|
+
var _ret = Module._malloc(8);
|
|
21309
|
+
Module.ccall("csp_systems_OrganizationRolesResult_GetOrganizationRoleInfoC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
21310
|
+
var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
21311
|
+
Module._free(_ret);
|
|
21312
|
+
return _nPtr;
|
|
21313
|
+
}
|
|
21314
|
+
delete() {
|
|
21315
|
+
if (this.ownsPointer && !this.disposed) {
|
|
21316
|
+
Module.ccall("csp_systems_OrganizationRolesResult_Dtor", "void", ["number"], [this.pointer]);
|
|
21317
|
+
this.disposed = true;
|
|
21318
|
+
}
|
|
21319
|
+
}
|
|
21320
|
+
}
|
|
21321
|
+
Systems.OrganizationRolesResult = OrganizationRolesResult;
|
|
21322
|
+
})(Systems || (Systems = {}));
|
|
21323
|
+
(function (Systems) {
|
|
21324
|
+
/**
|
|
21325
|
+
@ingroup Quota System
|
|
21326
|
+
* @description Public facing system that allows interfacing with the Organization System.
|
|
21327
|
+
* .
|
|
21328
|
+
*/
|
|
21329
|
+
class OrganizationSystem extends Systems.SystemBase {
|
|
21330
|
+
/** @internal */
|
|
21331
|
+
constructor(pointer) {
|
|
21332
|
+
super(pointer);
|
|
21333
|
+
}
|
|
21334
|
+
static fromSystemBase(baseInstance) {
|
|
21335
|
+
const nativeClassWrapper = baseInstance;
|
|
21336
|
+
return new Systems.OrganizationSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
21337
|
+
}
|
|
21338
|
+
/**
|
|
21339
|
+
* @description Sets a callback to be executed when a member joins an Organization.
|
|
21340
|
+
* Only one callback may be registered, calling this function again will override whatever was previously set.
|
|
21341
|
+
* @param callback - The callback to execute.
|
|
21342
|
+
*/
|
|
21343
|
+
setMemberJoinedOrganizationCallback(callback) {
|
|
21344
|
+
var _callback = (_stateObject__, arg1) => {
|
|
21345
|
+
{
|
|
21346
|
+
const _stringValue = Module.UTF8ToString(arg1);
|
|
21347
|
+
free(arg1);
|
|
21348
|
+
arg1 = _stringValue;
|
|
21349
|
+
}
|
|
21350
|
+
callback(arg1);
|
|
21351
|
+
};
|
|
21352
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
21353
|
+
Module.ccall("csp_systems_OrganizationSystem_SetMemberJoinedOrganizationCallback_void_MemberJoinedOrganizationCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
21354
|
+
}
|
|
21355
|
+
/**
|
|
21356
|
+
* @description Invites a given email to the User's Organization.
|
|
21357
|
+
* 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
|
|
21358
|
+
* call will be rejected.
|
|
21359
|
+
* @param organizationId - Id of the Organization the user should be added to. If no Id is specified,
|
|
21360
|
+
* the Id of the Organization the user is currently authenticated against will be used.
|
|
21361
|
+
* @param email - Email to invite to the Organization.
|
|
21362
|
+
* @param organizationRoles - The role/s in the Organization the invited User is to have.
|
|
21363
|
+
* @param emailLinkUrl - Link that will be provided in the invite email
|
|
21364
|
+
* @param signupUrl - Destination link that will be provided in the invite email
|
|
21365
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
21366
|
+
*/
|
|
21367
|
+
async inviteToOrganization(organizationId, email, organizationRoles, emailLinkUrl, signupUrl) {
|
|
21368
|
+
var _resolve;
|
|
21369
|
+
var _promise = new Promise((_r) => {
|
|
21370
|
+
_resolve = _r;
|
|
21371
|
+
});
|
|
21372
|
+
var _callbackPtr;
|
|
21373
|
+
var _callback = (_stateObject__, result) => {
|
|
21374
|
+
var _resultPtr = getNativePointer(result);
|
|
21375
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
21376
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21377
|
+
return;
|
|
21378
|
+
}
|
|
21379
|
+
_resolve(_resultInstance);
|
|
21380
|
+
Module.removeFunction(_callbackPtr);
|
|
21381
|
+
};
|
|
21382
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21383
|
+
Module.ccall("csp_systems_OrganizationSystem_InviteToOrganization_void_StringRC_StringRC_ArrayRC_StringRC_StringRC_NullResultCallback", "void", [
|
|
21384
|
+
"number",
|
|
21385
|
+
"string",
|
|
21386
|
+
"string",
|
|
21387
|
+
"number",
|
|
21388
|
+
"string",
|
|
21389
|
+
"string",
|
|
21390
|
+
"number",
|
|
21391
|
+
"number",
|
|
21392
|
+
], [
|
|
21393
|
+
this.pointer,
|
|
21394
|
+
organizationId,
|
|
21395
|
+
email,
|
|
21396
|
+
organizationRoles.pointer,
|
|
21397
|
+
emailLinkUrl,
|
|
21398
|
+
signupUrl,
|
|
21399
|
+
_callbackPtr,
|
|
21400
|
+
0,
|
|
21401
|
+
]);
|
|
21402
|
+
return _promise;
|
|
21403
|
+
}
|
|
21404
|
+
/**
|
|
21405
|
+
* @description Invites all the given emails to the User's Organization.
|
|
21406
|
+
* 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
|
|
21407
|
+
* call will be rejected.
|
|
21408
|
+
* @param organizationId - Id of the Organization the users should be added to. If no Id is specified,
|
|
21409
|
+
* the Id of the Organization the user is currently authenticated against will be used.
|
|
21410
|
+
* @param inviteUsers - Collection containing the EmailLinkUrl and SignupUrl as well as the emails and
|
|
21411
|
+
* Organization role/s of the Users to be invited.
|
|
21412
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
21413
|
+
*/
|
|
21414
|
+
async bulkInviteToOrganization(organizationId, inviteUsers) {
|
|
21415
|
+
var _resolve;
|
|
21416
|
+
var _promise = new Promise((_r) => {
|
|
21417
|
+
_resolve = _r;
|
|
21418
|
+
});
|
|
21419
|
+
var _callbackPtr;
|
|
21420
|
+
var _callback = (_stateObject__, result) => {
|
|
21421
|
+
var _resultPtr = getNativePointer(result);
|
|
21422
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
21423
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21424
|
+
return;
|
|
21425
|
+
}
|
|
21426
|
+
_resolve(_resultInstance);
|
|
21427
|
+
Module.removeFunction(_callbackPtr);
|
|
21428
|
+
};
|
|
21429
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21430
|
+
Module.ccall("csp_systems_OrganizationSystem_BulkInviteToOrganization_void_StringRC_InviteOrganizationRoleCollectionRC_NullResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, organizationId, inviteUsers.pointer, _callbackPtr, 0]);
|
|
21431
|
+
return _promise;
|
|
21432
|
+
}
|
|
21433
|
+
/**
|
|
21434
|
+
* @description Retrieves the Organisation User Role information for the User Ids that have been passed in.
|
|
21435
|
+
* Only a User with an Admin or Owner Organization role can request the role information for other Organization members.
|
|
21436
|
+
* A User without these roles can only request information about their own Organization role and should pass an array containing only their own
|
|
21437
|
+
* User Id.
|
|
21438
|
+
* @param organizationId - Id of the Organization you want to get user roles for. If no Id is
|
|
21439
|
+
* specified, the Id of the Organization the user is currently authenticated against will be used.
|
|
21440
|
+
* @param userIds - Array of User Ids for which the Organization User Roles will be retrieved.
|
|
21441
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
21442
|
+
*/
|
|
21443
|
+
async getUserRolesInOrganization(organizationId, userIds) {
|
|
21444
|
+
var _resolve;
|
|
21445
|
+
var _promise = new Promise((_r) => {
|
|
21446
|
+
_resolve = _r;
|
|
21447
|
+
});
|
|
21448
|
+
var _callbackPtr;
|
|
21449
|
+
var _callback = (_stateObject__, result) => {
|
|
21450
|
+
var _resultPtr = getNativePointer(result);
|
|
21451
|
+
var _resultInstance = new Systems.OrganizationRolesResult(_resultPtr);
|
|
21452
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21453
|
+
return;
|
|
21454
|
+
}
|
|
21455
|
+
_resolve(_resultInstance);
|
|
21456
|
+
Module.removeFunction(_callbackPtr);
|
|
21457
|
+
};
|
|
21458
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21459
|
+
Module.ccall("csp_systems_OrganizationSystem_GetUserRolesInOrganization_void_StringRC_ArrayRC_OrganizationRolesResultCallback", "void", ["number", "string", "number", "number", "number"], [this.pointer, organizationId, userIds.pointer, _callbackPtr, 0]);
|
|
21460
|
+
return _promise;
|
|
21461
|
+
}
|
|
21462
|
+
/**
|
|
21463
|
+
* @description Removes a User from the Organization.
|
|
21464
|
+
* 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
|
|
21465
|
+
* their call will be rejected. Anyone can remove themselves from an Organization.
|
|
21466
|
+
* @param organizationId - Id of the Organization you want to remove a user from. If no Id is
|
|
21467
|
+
* specified, the Id of the Organization the user is currently authenticated against will be used.
|
|
21468
|
+
* @param userId - Unique ID of User.
|
|
21469
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
21470
|
+
*/
|
|
21471
|
+
async removeUserFromOrganization(organizationId, userId) {
|
|
21472
|
+
var _resolve;
|
|
21473
|
+
var _promise = new Promise((_r) => {
|
|
21474
|
+
_resolve = _r;
|
|
21475
|
+
});
|
|
21476
|
+
var _callbackPtr;
|
|
21477
|
+
var _callback = (_stateObject__, result) => {
|
|
21478
|
+
var _resultPtr = getNativePointer(result);
|
|
21479
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
21480
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
21481
|
+
return;
|
|
21482
|
+
}
|
|
21483
|
+
_resolve(_resultInstance);
|
|
21484
|
+
Module.removeFunction(_callbackPtr);
|
|
21485
|
+
};
|
|
21486
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
21487
|
+
Module.ccall("csp_systems_OrganizationSystem_RemoveUserFromOrganization_void_StringRC_StringRC_NullResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, organizationId, userId, _callbackPtr, 0]);
|
|
21488
|
+
return _promise;
|
|
21489
|
+
}
|
|
21490
|
+
}
|
|
21491
|
+
Systems.OrganizationSystem = OrganizationSystem;
|
|
21492
|
+
})(Systems || (Systems = {}));
|
|
20857
21493
|
(function (Systems) {
|
|
20858
21494
|
/**
|
|
20859
21495
|
@ingroup Quota System
|
|
@@ -24884,6 +25520,13 @@ export class CSPFoundation {
|
|
|
24884
25520
|
Module._free(_ret);
|
|
24885
25521
|
return _inst;
|
|
24886
25522
|
}
|
|
25523
|
+
static ofcsp_systems_ShopifyStoreInfo() {
|
|
25524
|
+
var _ret = Module._malloc(8);
|
|
25525
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_ShopifyStoreInfo", "void", ["number"], [_ret]);
|
|
25526
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_ShopifyStoreInfoFactory, "csp_systems_ShopifyStoreInfo");
|
|
25527
|
+
Module._free(_ret);
|
|
25528
|
+
return _inst;
|
|
25529
|
+
}
|
|
24887
25530
|
static ofcsp_systems_TicketedEvent() {
|
|
24888
25531
|
var _ret = Module._malloc(8);
|
|
24889
25532
|
Module.ccall("csp_common_Array_Ctor_csp_systems_TicketedEvent", "void", ["number"], [_ret]);
|
|
@@ -24898,6 +25541,27 @@ export class CSPFoundation {
|
|
|
24898
25541
|
Module._free(_ret);
|
|
24899
25542
|
return _inst;
|
|
24900
25543
|
}
|
|
25544
|
+
static ofcsp_systems_EOrganizationRole() {
|
|
25545
|
+
var _ret = Module._malloc(8);
|
|
25546
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_EOrganizationRole", "void", ["number"], [_ret]);
|
|
25547
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
25548
|
+
Module._free(_ret);
|
|
25549
|
+
return _inst;
|
|
25550
|
+
}
|
|
25551
|
+
static ofcsp_systems_InviteOrganizationRoleInfo() {
|
|
25552
|
+
var _ret = Module._malloc(8);
|
|
25553
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_InviteOrganizationRoleInfo", "void", ["number"], [_ret]);
|
|
25554
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_InviteOrganizationRoleInfoFactory, "csp_systems_InviteOrganizationRoleInfo");
|
|
25555
|
+
Module._free(_ret);
|
|
25556
|
+
return _inst;
|
|
25557
|
+
}
|
|
25558
|
+
static ofcsp_systems_OrganizationRoleInfo() {
|
|
25559
|
+
var _ret = Module._malloc(8);
|
|
25560
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_OrganizationRoleInfo", "void", ["number"], [_ret]);
|
|
25561
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
25562
|
+
Module._free(_ret);
|
|
25563
|
+
return _inst;
|
|
25564
|
+
}
|
|
24901
25565
|
static ofcsp_systems_FeatureLimitInfo() {
|
|
24902
25566
|
var _ret = Module._malloc(8);
|
|
24903
25567
|
Module.ccall("csp_common_Array_Ctor_csp_systems_FeatureLimitInfo", "void", ["number"], [_ret]);
|
|
@@ -25136,6 +25800,13 @@ export class CSPFoundation {
|
|
|
25136
25800
|
Module._free(_ret);
|
|
25137
25801
|
return _inst;
|
|
25138
25802
|
}
|
|
25803
|
+
static ofcsp_systems_ShopifyStoreInfo_number(size) {
|
|
25804
|
+
var _ret = Module._malloc(8);
|
|
25805
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_ShopifyStoreInfo", "void", ["number", "number"], [_ret, size]);
|
|
25806
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_ShopifyStoreInfoFactory, "csp_systems_ShopifyStoreInfo");
|
|
25807
|
+
Module._free(_ret);
|
|
25808
|
+
return _inst;
|
|
25809
|
+
}
|
|
25139
25810
|
static ofcsp_systems_TicketedEvent_number(size) {
|
|
25140
25811
|
var _ret = Module._malloc(8);
|
|
25141
25812
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_TicketedEvent", "void", ["number", "number"], [_ret, size]);
|
|
@@ -25150,6 +25821,27 @@ export class CSPFoundation {
|
|
|
25150
25821
|
Module._free(_ret);
|
|
25151
25822
|
return _inst;
|
|
25152
25823
|
}
|
|
25824
|
+
static ofcsp_systems_EOrganizationRole_number(size) {
|
|
25825
|
+
var _ret = Module._malloc(8);
|
|
25826
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_EOrganizationRole", "void", ["number", "number"], [_ret, size]);
|
|
25827
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_EOrganizationRoleFactory, "csp_systems_EOrganizationRole");
|
|
25828
|
+
Module._free(_ret);
|
|
25829
|
+
return _inst;
|
|
25830
|
+
}
|
|
25831
|
+
static ofcsp_systems_InviteOrganizationRoleInfo_number(size) {
|
|
25832
|
+
var _ret = Module._malloc(8);
|
|
25833
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_InviteOrganizationRoleInfo", "void", ["number", "number"], [_ret, size]);
|
|
25834
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_InviteOrganizationRoleInfoFactory, "csp_systems_InviteOrganizationRoleInfo");
|
|
25835
|
+
Module._free(_ret);
|
|
25836
|
+
return _inst;
|
|
25837
|
+
}
|
|
25838
|
+
static ofcsp_systems_OrganizationRoleInfo_number(size) {
|
|
25839
|
+
var _ret = Module._malloc(8);
|
|
25840
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_OrganizationRoleInfo", "void", ["number", "number"], [_ret, size]);
|
|
25841
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_OrganizationRoleInfoFactory, "csp_systems_OrganizationRoleInfo");
|
|
25842
|
+
Module._free(_ret);
|
|
25843
|
+
return _inst;
|
|
25844
|
+
}
|
|
25153
25845
|
static ofcsp_systems_FeatureLimitInfo_number(size) {
|
|
25154
25846
|
var _ret = Module._malloc(8);
|
|
25155
25847
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_FeatureLimitInfo", "void", ["number", "number"], [_ret, size]);
|