connected-spaces-platform.web 4.29.1 → 4.30.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/ConnectedSpacesPlatform_WASM.d.ts +2 -0
- package/Debug/ConnectedSpacesPlatform_WASM.js +83 -5
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +2 -15
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +156 -15
- package/connectedspacesplatform.js +389 -23
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +737 -25
- package/package.json +1 -1
|
@@ -284,6 +284,11 @@ function csp_multiplayer_EPermissionChangeTypeFactory(nativePointer) {
|
|
|
284
284
|
}
|
|
285
285
|
ProxyClassFactories["csp_multiplayer_EPermissionChangeType"] =
|
|
286
286
|
csp_multiplayer_EPermissionChangeTypeFactory;
|
|
287
|
+
function csp_multiplayer_ESequenceUpdateTypeFactory(nativePointer) {
|
|
288
|
+
return nativePointer.pointer;
|
|
289
|
+
}
|
|
290
|
+
ProxyClassFactories["csp_multiplayer_ESequenceUpdateType"] =
|
|
291
|
+
csp_multiplayer_ESequenceUpdateTypeFactory;
|
|
287
292
|
function csp_multiplayer_ConnectionStateFactory(nativePointer) {
|
|
288
293
|
return nativePointer.pointer;
|
|
289
294
|
}
|
|
@@ -428,11 +433,6 @@ function csp_multiplayer_GaussianSplatPropertyKeysFactory(nativePointer) {
|
|
|
428
433
|
}
|
|
429
434
|
ProxyClassFactories["csp_multiplayer_GaussianSplatPropertyKeys"] =
|
|
430
435
|
csp_multiplayer_GaussianSplatPropertyKeysFactory;
|
|
431
|
-
function csp_multiplayer_HotspotTypeFactory(nativePointer) {
|
|
432
|
-
return nativePointer.pointer;
|
|
433
|
-
}
|
|
434
|
-
ProxyClassFactories["csp_multiplayer_HotspotType"] =
|
|
435
|
-
csp_multiplayer_HotspotTypeFactory;
|
|
436
436
|
function csp_multiplayer_HotspotPropertyKeysFactory(nativePointer) {
|
|
437
437
|
return nativePointer.pointer;
|
|
438
438
|
}
|
|
@@ -684,6 +684,11 @@ function csp_multiplayer_UserPermissionsParamsFactory(nativePointer) {
|
|
|
684
684
|
}
|
|
685
685
|
ProxyClassFactories["csp_multiplayer_UserPermissionsParams"] =
|
|
686
686
|
csp_multiplayer_UserPermissionsParamsFactory;
|
|
687
|
+
function csp_multiplayer_SequenceChangedParamsFactory(nativePointer) {
|
|
688
|
+
return new Multiplayer.SequenceChangedParams(nativePointer);
|
|
689
|
+
}
|
|
690
|
+
ProxyClassFactories["csp_multiplayer_SequenceChangedParams"] =
|
|
691
|
+
csp_multiplayer_SequenceChangedParamsFactory;
|
|
687
692
|
function csp_multiplayer_MultiplayerConnectionFactory(nativePointer) {
|
|
688
693
|
return new Multiplayer.MultiplayerConnection(nativePointer);
|
|
689
694
|
}
|
|
@@ -889,6 +894,10 @@ function csp_systems_ScriptSystemFactory(nativePointer) {
|
|
|
889
894
|
}
|
|
890
895
|
ProxyClassFactories["csp_systems_ScriptSystem"] =
|
|
891
896
|
csp_systems_ScriptSystemFactory;
|
|
897
|
+
function csp_systems_SequenceFactory(nativePointer) {
|
|
898
|
+
return new Systems.Sequence(nativePointer);
|
|
899
|
+
}
|
|
900
|
+
ProxyClassFactories["csp_systems_Sequence"] = csp_systems_SequenceFactory;
|
|
892
901
|
function csp_systems_SettingsCollectionFactory(nativePointer) {
|
|
893
902
|
return new Systems.SettingsCollection(nativePointer);
|
|
894
903
|
}
|
|
@@ -1312,6 +1321,21 @@ function csp_systems_QuotaSystemFactory(nativePointer) {
|
|
|
1312
1321
|
return new Systems.QuotaSystem(nativePointer);
|
|
1313
1322
|
}
|
|
1314
1323
|
ProxyClassFactories["csp_systems_QuotaSystem"] = csp_systems_QuotaSystemFactory;
|
|
1324
|
+
function csp_systems_SequenceResultFactory(nativePointer) {
|
|
1325
|
+
return new Systems.SequenceResult(nativePointer);
|
|
1326
|
+
}
|
|
1327
|
+
ProxyClassFactories["csp_systems_SequenceResult"] =
|
|
1328
|
+
csp_systems_SequenceResultFactory;
|
|
1329
|
+
function csp_systems_SequencesResultFactory(nativePointer) {
|
|
1330
|
+
return new Systems.SequencesResult(nativePointer);
|
|
1331
|
+
}
|
|
1332
|
+
ProxyClassFactories["csp_systems_SequencesResult"] =
|
|
1333
|
+
csp_systems_SequencesResultFactory;
|
|
1334
|
+
function csp_systems_SequenceSystemFactory(nativePointer) {
|
|
1335
|
+
return new Systems.SequenceSystem(nativePointer);
|
|
1336
|
+
}
|
|
1337
|
+
ProxyClassFactories["csp_systems_SequenceSystem"] =
|
|
1338
|
+
csp_systems_SequenceSystemFactory;
|
|
1315
1339
|
function csp_systems_SettingsCollectionResultFactory(nativePointer) {
|
|
1316
1340
|
return new Systems.SettingsCollectionResult(nativePointer);
|
|
1317
1341
|
}
|
|
@@ -1584,6 +1608,11 @@ function csp_common_Array_csp_systems_TierFeaturesFactory(nativePointer) {
|
|
|
1584
1608
|
}
|
|
1585
1609
|
ProxyClassFactories["csp_common_Array_csp_systems_TierFeatures"] =
|
|
1586
1610
|
csp_common_Array_csp_systems_TierFeaturesFactory;
|
|
1611
|
+
function csp_common_Array_csp_systems_SequenceFactory(nativePointer) {
|
|
1612
|
+
return new Common.Array(nativePointer, csp_systems_SequenceFactory, "csp_systems_Sequence");
|
|
1613
|
+
}
|
|
1614
|
+
ProxyClassFactories["csp_common_Array_csp_systems_Sequence"] =
|
|
1615
|
+
csp_common_Array_csp_systems_SequenceFactory;
|
|
1587
1616
|
function csp_common_Array_csp_systems_SiteFactory(nativePointer) {
|
|
1588
1617
|
return new Common.Array(nativePointer, csp_systems_SiteFactory, "csp_systems_Site");
|
|
1589
1618
|
}
|
|
@@ -1778,6 +1807,14 @@ export var Multiplayer;
|
|
|
1778
1807
|
EPermissionChangeType[EPermissionChangeType["Invalid"] = 3] = "Invalid";
|
|
1779
1808
|
})(EPermissionChangeType = Multiplayer.EPermissionChangeType || (Multiplayer.EPermissionChangeType = {}));
|
|
1780
1809
|
})(Multiplayer || (Multiplayer = {}));
|
|
1810
|
+
(function (Multiplayer) {
|
|
1811
|
+
let ESequenceUpdateType;
|
|
1812
|
+
(function (ESequenceUpdateType) {
|
|
1813
|
+
ESequenceUpdateType[ESequenceUpdateType["Create"] = 0] = "Create";
|
|
1814
|
+
ESequenceUpdateType[ESequenceUpdateType["Update"] = 1] = "Update";
|
|
1815
|
+
ESequenceUpdateType[ESequenceUpdateType["Delete"] = 2] = "Delete";
|
|
1816
|
+
})(ESequenceUpdateType = Multiplayer.ESequenceUpdateType || (Multiplayer.ESequenceUpdateType = {}));
|
|
1817
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
1781
1818
|
(function (Multiplayer) {
|
|
1782
1819
|
/**
|
|
1783
1820
|
* @description Enum used to specify the current state of the multiplayer connection.
|
|
@@ -2210,13 +2247,6 @@ export var Multiplayer;
|
|
|
2210
2247
|
GaussianSplatPropertyKeys[GaussianSplatPropertyKeys["Num"] = 10] = "Num";
|
|
2211
2248
|
})(GaussianSplatPropertyKeys = Multiplayer.GaussianSplatPropertyKeys || (Multiplayer.GaussianSplatPropertyKeys = {}));
|
|
2212
2249
|
})(Multiplayer || (Multiplayer = {}));
|
|
2213
|
-
(function (Multiplayer) {
|
|
2214
|
-
let HotspotType;
|
|
2215
|
-
(function (HotspotType) {
|
|
2216
|
-
HotspotType[HotspotType["TeleportHotspot"] = 0] = "TeleportHotspot";
|
|
2217
|
-
HotspotType[HotspotType["SpawnHotspot"] = 1] = "SpawnHotspot";
|
|
2218
|
-
})(HotspotType = Multiplayer.HotspotType || (Multiplayer.HotspotType = {}));
|
|
2219
|
-
})(Multiplayer || (Multiplayer = {}));
|
|
2220
2250
|
(function (Multiplayer) {
|
|
2221
2251
|
/**
|
|
2222
2252
|
* @description Enumerates the list of properties that can be replicated for an Hotspot space component.
|
|
@@ -2226,10 +2256,11 @@ export var Multiplayer;
|
|
|
2226
2256
|
HotspotPropertyKeys[HotspotPropertyKeys["Position"] = 0] = "Position";
|
|
2227
2257
|
HotspotPropertyKeys[HotspotPropertyKeys["Rotation"] = 1] = "Rotation";
|
|
2228
2258
|
HotspotPropertyKeys[HotspotPropertyKeys["Name"] = 2] = "Name";
|
|
2229
|
-
HotspotPropertyKeys[HotspotPropertyKeys["
|
|
2230
|
-
HotspotPropertyKeys[HotspotPropertyKeys["
|
|
2231
|
-
HotspotPropertyKeys[HotspotPropertyKeys["
|
|
2232
|
-
HotspotPropertyKeys[HotspotPropertyKeys["
|
|
2259
|
+
HotspotPropertyKeys[HotspotPropertyKeys["IsTeleportPoint"] = 3] = "IsTeleportPoint";
|
|
2260
|
+
HotspotPropertyKeys[HotspotPropertyKeys["IsSpawnPoint"] = 4] = "IsSpawnPoint";
|
|
2261
|
+
HotspotPropertyKeys[HotspotPropertyKeys["IsVisible"] = 5] = "IsVisible";
|
|
2262
|
+
HotspotPropertyKeys[HotspotPropertyKeys["IsARVisible"] = 6] = "IsARVisible";
|
|
2263
|
+
HotspotPropertyKeys[HotspotPropertyKeys["Num"] = 7] = "Num";
|
|
2233
2264
|
})(HotspotPropertyKeys = Multiplayer.HotspotPropertyKeys || (Multiplayer.HotspotPropertyKeys = {}));
|
|
2234
2265
|
})(Multiplayer || (Multiplayer = {}));
|
|
2235
2266
|
(function (Multiplayer) {
|
|
@@ -9177,6 +9208,48 @@ export class CSPFoundation {
|
|
|
9177
9208
|
}
|
|
9178
9209
|
Multiplayer.UserPermissionsParams = UserPermissionsParams;
|
|
9179
9210
|
})(Multiplayer || (Multiplayer = {}));
|
|
9211
|
+
(function (Multiplayer) {
|
|
9212
|
+
class SequenceChangedParams extends NativeClassWrapper {
|
|
9213
|
+
/** @internal */
|
|
9214
|
+
constructor(pointer) {
|
|
9215
|
+
super(pointer);
|
|
9216
|
+
}
|
|
9217
|
+
static create() {
|
|
9218
|
+
var _ptr = Module._malloc(8);
|
|
9219
|
+
Module.ccall("csp_multiplayer_SequenceChangedParams_Ctor", "void", ["number"], [_ptr]);
|
|
9220
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9221
|
+
return new SequenceChangedParams(_nPtr);
|
|
9222
|
+
}
|
|
9223
|
+
delete() {
|
|
9224
|
+
if (this.ownsPointer && !this.disposed) {
|
|
9225
|
+
Module.ccall("csp_multiplayer_SequenceChangedParams_Dtor", "void", ["number"], [this.pointer]);
|
|
9226
|
+
this.disposed = true;
|
|
9227
|
+
}
|
|
9228
|
+
}
|
|
9229
|
+
get updateType() {
|
|
9230
|
+
let _result = Module.ccall("csp_multiplayer_SequenceChangedParams__Get_UpdateType", "number", ["number"], [this.pointer]);
|
|
9231
|
+
return _result;
|
|
9232
|
+
}
|
|
9233
|
+
set updateType(value) {
|
|
9234
|
+
Module.ccall("csp_multiplayer_SequenceChangedParams__Set_UpdateType", "void", ["number", "number"], [this.pointer, value]);
|
|
9235
|
+
}
|
|
9236
|
+
get key() {
|
|
9237
|
+
let _result = Module.ccall("csp_multiplayer_SequenceChangedParams__Get_Key", "string", ["number"], [this.pointer]);
|
|
9238
|
+
return _result;
|
|
9239
|
+
}
|
|
9240
|
+
set key(value) {
|
|
9241
|
+
Module.ccall("csp_multiplayer_SequenceChangedParams__Set_Key", "void", ["number", "string"], [this.pointer, value]);
|
|
9242
|
+
}
|
|
9243
|
+
get newKey() {
|
|
9244
|
+
let _result = Module.ccall("csp_multiplayer_SequenceChangedParams__Get_NewKey", "string", ["number"], [this.pointer]);
|
|
9245
|
+
return _result;
|
|
9246
|
+
}
|
|
9247
|
+
set newKey(value) {
|
|
9248
|
+
Module.ccall("csp_multiplayer_SequenceChangedParams__Set_NewKey", "void", ["number", "string"], [this.pointer, value]);
|
|
9249
|
+
}
|
|
9250
|
+
}
|
|
9251
|
+
Multiplayer.SequenceChangedParams = SequenceChangedParams;
|
|
9252
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
9180
9253
|
(function (Multiplayer) {
|
|
9181
9254
|
/**
|
|
9182
9255
|
@ingroup Multiplayer
|
|
@@ -9321,6 +9394,18 @@ export class CSPFoundation {
|
|
|
9321
9394
|
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
9322
9395
|
Module.ccall("csp_multiplayer_MultiplayerConnection_SetUserPermissionsChangedCallback_void_UserPermissionsChangedCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
9323
9396
|
}
|
|
9397
|
+
/**
|
|
9398
|
+
* @description Sets a callback for a sequence changed event.
|
|
9399
|
+
* @param callback - Callback to receive data for the sequence that has been changed.
|
|
9400
|
+
*/
|
|
9401
|
+
setSequenceChangedCallback(callback) {
|
|
9402
|
+
var _callback = (_stateObject__, arg1) => {
|
|
9403
|
+
var _arg1 = new Multiplayer.SequenceChangedParams(getNativePointer(arg1));
|
|
9404
|
+
callback(_arg1);
|
|
9405
|
+
};
|
|
9406
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
9407
|
+
Module.ccall("csp_multiplayer_MultiplayerConnection_SetSequenceChangedCallback_void_SequenceChangedCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
9408
|
+
}
|
|
9324
9409
|
/**
|
|
9325
9410
|
* @description Registers a callback to listen for the named event.
|
|
9326
9411
|
* @param eventName - The identifying name for the event to listen for.
|
|
@@ -11327,6 +11412,17 @@ export class CSPFoundation {
|
|
|
11327
11412
|
Module._free(_ret);
|
|
11328
11413
|
return _nPtr;
|
|
11329
11414
|
}
|
|
11415
|
+
/**
|
|
11416
|
+
* @description Retrieves the Sequence system.
|
|
11417
|
+
* @return Pointer to the sequence system class
|
|
11418
|
+
*/
|
|
11419
|
+
getSequenceSystem() {
|
|
11420
|
+
var _ret = Module._malloc(8);
|
|
11421
|
+
Module.ccall("csp_systems_SystemsManager_GetSequenceSystem_SequenceSystemP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
11422
|
+
var _nPtr = new Systems.SequenceSystem(getNativePointer(_ret));
|
|
11423
|
+
Module._free(_ret);
|
|
11424
|
+
return _nPtr;
|
|
11425
|
+
}
|
|
11330
11426
|
getSpaceEntitySystem() {
|
|
11331
11427
|
var _ret = Module._malloc(8);
|
|
11332
11428
|
Module.ccall("csp_systems_SystemsManager_GetSpaceEntitySystem_SpaceEntitySystemP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
@@ -13344,6 +13440,61 @@ export class CSPFoundation {
|
|
|
13344
13440
|
}
|
|
13345
13441
|
Systems.ScriptSystem = ScriptSystem;
|
|
13346
13442
|
})(Systems || (Systems = {}));
|
|
13443
|
+
(function (Systems) {
|
|
13444
|
+
/**
|
|
13445
|
+
@ingroup Sequence System
|
|
13446
|
+
* @description A basic class abstraction for a sequence, including key, and reference variables, and items.
|
|
13447
|
+
*/
|
|
13448
|
+
class Sequence extends NativeClassWrapper {
|
|
13449
|
+
/** @internal */
|
|
13450
|
+
constructor(pointer) {
|
|
13451
|
+
super(pointer);
|
|
13452
|
+
}
|
|
13453
|
+
static create() {
|
|
13454
|
+
var _ptr = Module._malloc(8);
|
|
13455
|
+
Module.ccall("csp_systems_Sequence_Ctor", "void", ["number"], [_ptr]);
|
|
13456
|
+
var _nPtr = getNativePointer(_ptr);
|
|
13457
|
+
return new Sequence(_nPtr);
|
|
13458
|
+
}
|
|
13459
|
+
delete() {
|
|
13460
|
+
if (this.ownsPointer && !this.disposed) {
|
|
13461
|
+
Module.ccall("csp_systems_Sequence_Dtor", "void", ["number"], [this.pointer]);
|
|
13462
|
+
this.disposed = true;
|
|
13463
|
+
}
|
|
13464
|
+
}
|
|
13465
|
+
get key() {
|
|
13466
|
+
let _result = Module.ccall("csp_systems_Sequence__Get_Key", "string", ["number"], [this.pointer]);
|
|
13467
|
+
return _result;
|
|
13468
|
+
}
|
|
13469
|
+
set key(value) {
|
|
13470
|
+
Module.ccall("csp_systems_Sequence__Set_Key", "void", ["number", "string"], [this.pointer, value]);
|
|
13471
|
+
}
|
|
13472
|
+
get referenceType() {
|
|
13473
|
+
let _result = Module.ccall("csp_systems_Sequence__Get_ReferenceType", "string", ["number"], [this.pointer]);
|
|
13474
|
+
return _result;
|
|
13475
|
+
}
|
|
13476
|
+
set referenceType(value) {
|
|
13477
|
+
Module.ccall("csp_systems_Sequence__Set_ReferenceType", "void", ["number", "string"], [this.pointer, value]);
|
|
13478
|
+
}
|
|
13479
|
+
get referenceId() {
|
|
13480
|
+
let _result = Module.ccall("csp_systems_Sequence__Get_ReferenceId", "string", ["number"], [this.pointer]);
|
|
13481
|
+
return _result;
|
|
13482
|
+
}
|
|
13483
|
+
set referenceId(value) {
|
|
13484
|
+
Module.ccall("csp_systems_Sequence__Set_ReferenceId", "void", ["number", "string"], [this.pointer, value]);
|
|
13485
|
+
}
|
|
13486
|
+
get items() {
|
|
13487
|
+
const _ptr = Module._malloc(8);
|
|
13488
|
+
Module.ccall("csp_systems_Sequence__Get_Items", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
13489
|
+
const _nPtr = getNativePointer(_ptr);
|
|
13490
|
+
return new Common.Array(_nPtr, StringFactory, "String");
|
|
13491
|
+
}
|
|
13492
|
+
set items(value) {
|
|
13493
|
+
Module.ccall("csp_systems_Sequence__Set_Items", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
13494
|
+
}
|
|
13495
|
+
}
|
|
13496
|
+
Systems.Sequence = Sequence;
|
|
13497
|
+
})(Systems || (Systems = {}));
|
|
13347
13498
|
(function (Systems) {
|
|
13348
13499
|
/**
|
|
13349
13500
|
@ingroup Settings System
|
|
@@ -17312,18 +17463,32 @@ export class CSPFoundation {
|
|
|
17312
17463
|
Module.ccall("csp_multiplayer_HotspotSpaceComponent_SetName_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
17313
17464
|
}
|
|
17314
17465
|
/**
|
|
17315
|
-
* @description Gets the
|
|
17466
|
+
* @description Gets the IsTeleportPoint of this Hotspot.
|
|
17316
17467
|
*/
|
|
17317
|
-
|
|
17318
|
-
let _result = Module.ccall("
|
|
17468
|
+
getIsTeleportPoint() {
|
|
17469
|
+
let _result = Module.ccall("csp_multiplayer_HotspotSpaceComponent_GetIsTeleportPointC_bool", "boolean", ["number"], [this.pointer]);
|
|
17319
17470
|
return _result;
|
|
17320
17471
|
}
|
|
17321
17472
|
/**
|
|
17322
|
-
* @description Sets
|
|
17323
|
-
* @param
|
|
17473
|
+
* @description Sets this Hotspot to be a teleport point.
|
|
17474
|
+
* @param inValue - The teleport point state flag value.
|
|
17475
|
+
*/
|
|
17476
|
+
setIsTeleportPoint(value) {
|
|
17477
|
+
Module.ccall("csp_multiplayer_HotspotSpaceComponent_SetIsTeleportPoint_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
17478
|
+
}
|
|
17479
|
+
/**
|
|
17480
|
+
* @description Gets the IsSpawnPoint of this Hotspot.
|
|
17324
17481
|
*/
|
|
17325
|
-
|
|
17326
|
-
Module.ccall("
|
|
17482
|
+
getIsSpawnPoint() {
|
|
17483
|
+
let _result = Module.ccall("csp_multiplayer_HotspotSpaceComponent_GetIsSpawnPointC_bool", "boolean", ["number"], [this.pointer]);
|
|
17484
|
+
return _result;
|
|
17485
|
+
}
|
|
17486
|
+
/**
|
|
17487
|
+
* @description Sets this Hotspot to be a spawn point.
|
|
17488
|
+
* @param inValue - The spawn point state flag value.
|
|
17489
|
+
*/
|
|
17490
|
+
setIsSpawnPoint(value) {
|
|
17491
|
+
Module.ccall("csp_multiplayer_HotspotSpaceComponent_SetIsSpawnPoint_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
17327
17492
|
}
|
|
17328
17493
|
/**
|
|
17329
17494
|
* @description Gets a unique identifier for this component in the hierarchy.
|
|
@@ -22461,6 +22626,193 @@ export class CSPFoundation {
|
|
|
22461
22626
|
}
|
|
22462
22627
|
Systems.QuotaSystem = QuotaSystem;
|
|
22463
22628
|
})(Systems || (Systems = {}));
|
|
22629
|
+
(function (Systems) {
|
|
22630
|
+
/**
|
|
22631
|
+
@ingroup Sequence System
|
|
22632
|
+
* @description Result structure for a sequence result
|
|
22633
|
+
*/
|
|
22634
|
+
class SequenceResult extends Systems.ResultBase {
|
|
22635
|
+
/** @internal */
|
|
22636
|
+
constructor(pointer) {
|
|
22637
|
+
super(pointer);
|
|
22638
|
+
}
|
|
22639
|
+
static fromResultBase(baseInstance) {
|
|
22640
|
+
const nativeClassWrapper = baseInstance;
|
|
22641
|
+
return new Systems.SequenceResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
22642
|
+
}
|
|
22643
|
+
getSequence() {
|
|
22644
|
+
var _ret = Module._malloc(8);
|
|
22645
|
+
Module.ccall("csp_systems_SequenceResult_GetSequenceC_SequenceRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
22646
|
+
var _nPtr = new Systems.Sequence(getNativePointer(_ret));
|
|
22647
|
+
Module._free(_ret);
|
|
22648
|
+
return _nPtr;
|
|
22649
|
+
}
|
|
22650
|
+
delete() {
|
|
22651
|
+
if (this.ownsPointer && !this.disposed) {
|
|
22652
|
+
Module.ccall("csp_systems_SequenceResult_Dtor", "void", ["number"], [this.pointer]);
|
|
22653
|
+
this.disposed = true;
|
|
22654
|
+
}
|
|
22655
|
+
}
|
|
22656
|
+
}
|
|
22657
|
+
Systems.SequenceResult = SequenceResult;
|
|
22658
|
+
})(Systems || (Systems = {}));
|
|
22659
|
+
(function (Systems) {
|
|
22660
|
+
/**
|
|
22661
|
+
@ingroup Sequence System
|
|
22662
|
+
* @description Data class used to contain information when attempting to get an array of sequences.
|
|
22663
|
+
*/
|
|
22664
|
+
class SequencesResult extends Systems.ResultBase {
|
|
22665
|
+
/** @internal */
|
|
22666
|
+
constructor(pointer) {
|
|
22667
|
+
super(pointer);
|
|
22668
|
+
}
|
|
22669
|
+
static fromResultBase(baseInstance) {
|
|
22670
|
+
const nativeClassWrapper = baseInstance;
|
|
22671
|
+
return new Systems.SequencesResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
22672
|
+
}
|
|
22673
|
+
getSequences() {
|
|
22674
|
+
var _ret = Module._malloc(8);
|
|
22675
|
+
Module.ccall("csp_systems_SequencesResult_GetSequencesC_ArrayRC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
22676
|
+
var _nPtr = new Common.Array(getNativePointer(_ret), csp_systems_SequenceFactory, "csp_systems_Sequence");
|
|
22677
|
+
Module._free(_ret);
|
|
22678
|
+
return _nPtr;
|
|
22679
|
+
}
|
|
22680
|
+
delete() {
|
|
22681
|
+
if (this.ownsPointer && !this.disposed) {
|
|
22682
|
+
Module.ccall("csp_systems_SequencesResult_Dtor", "void", ["number"], [this.pointer]);
|
|
22683
|
+
this.disposed = true;
|
|
22684
|
+
}
|
|
22685
|
+
}
|
|
22686
|
+
}
|
|
22687
|
+
Systems.SequencesResult = SequencesResult;
|
|
22688
|
+
})(Systems || (Systems = {}));
|
|
22689
|
+
(function (Systems) {
|
|
22690
|
+
/**
|
|
22691
|
+
@ingroup Sequence System
|
|
22692
|
+
* @description Public facing system that allows the management of groupings of items in a space.
|
|
22693
|
+
*/
|
|
22694
|
+
class SequenceSystem extends Systems.SystemBase {
|
|
22695
|
+
/** @internal */
|
|
22696
|
+
constructor(pointer) {
|
|
22697
|
+
super(pointer);
|
|
22698
|
+
}
|
|
22699
|
+
static fromSystemBase(baseInstance) {
|
|
22700
|
+
const nativeClassWrapper = baseInstance;
|
|
22701
|
+
return new Systems.SequenceSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
22702
|
+
}
|
|
22703
|
+
/**
|
|
22704
|
+
* @description Creates a new sequence. If a sequence already exists with this key, it will overwrite the current one. This call will fail if the user
|
|
22705
|
+
* isn't a creator of the space.
|
|
22706
|
+
* @param sequenceKey - The unique grouping name. The suggested convention is: Type:[Id]
|
|
22707
|
+
* @param referenceType - The type of reference (GroupId, SpaceId etc.)
|
|
22708
|
+
* @param referenceId - The id of the reference
|
|
22709
|
+
* @param items - An ordered array of members
|
|
22710
|
+
* @param callback - Callback to call when a response is received
|
|
22711
|
+
*/
|
|
22712
|
+
createSequence(sequenceKey, referenceType, referenceId, items, callback) {
|
|
22713
|
+
var _callback = (_stateObject__, result) => {
|
|
22714
|
+
var _result = new Systems.SequenceResult(getNativePointer(result));
|
|
22715
|
+
callback(_result);
|
|
22716
|
+
};
|
|
22717
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
22718
|
+
Module.ccall("csp_systems_SequenceSystem_CreateSequence_void_StringRC_StringRC_StringRC_ArrayRC_SequenceResultCallback", "void", ["number", "string", "string", "string", "number", "number"], [
|
|
22719
|
+
this.pointer,
|
|
22720
|
+
sequenceKey,
|
|
22721
|
+
referenceType,
|
|
22722
|
+
referenceId,
|
|
22723
|
+
items.pointer,
|
|
22724
|
+
callbackPtr,
|
|
22725
|
+
]);
|
|
22726
|
+
}
|
|
22727
|
+
/**
|
|
22728
|
+
* @description Updates an existing sequence. This call will fail if the user isn't a creator of the space.
|
|
22729
|
+
* @param sequenceKey - The unique grouping name. The suggested convention is: Type:[Id]
|
|
22730
|
+
* @param referenceType - The type of reference (GroupId, SpaceId etc.)
|
|
22731
|
+
* @param referenceId - The id of the reference
|
|
22732
|
+
* @param items - An ordered array of members
|
|
22733
|
+
* @param callback - Callback to call when a response is received
|
|
22734
|
+
*/
|
|
22735
|
+
updateSequence(sequenceKey, referenceType, referenceId, items, callback) {
|
|
22736
|
+
var _callback = (_stateObject__, result) => {
|
|
22737
|
+
var _result = new Systems.SequenceResult(getNativePointer(result));
|
|
22738
|
+
callback(_result);
|
|
22739
|
+
};
|
|
22740
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
22741
|
+
Module.ccall("csp_systems_SequenceSystem_UpdateSequence_void_StringRC_StringRC_StringRC_ArrayRC_SequenceResultCallback", "void", ["number", "string", "string", "string", "number", "number"], [
|
|
22742
|
+
this.pointer,
|
|
22743
|
+
sequenceKey,
|
|
22744
|
+
referenceType,
|
|
22745
|
+
referenceId,
|
|
22746
|
+
items.pointer,
|
|
22747
|
+
callbackPtr,
|
|
22748
|
+
]);
|
|
22749
|
+
}
|
|
22750
|
+
/**
|
|
22751
|
+
* @description Renames a given sequence. This call will fail if the user isn't a creator of the space.
|
|
22752
|
+
* @param oldSequenceKey - The current sequence key name
|
|
22753
|
+
* @param newSequenceKey - The new sequence key name
|
|
22754
|
+
* @param callback - Callback to call when a response is received
|
|
22755
|
+
*/
|
|
22756
|
+
renameSequence(oldSequenceKey, newSequenceKey, callback) {
|
|
22757
|
+
var _callback = (_stateObject__, result) => {
|
|
22758
|
+
var _result = new Systems.SequenceResult(getNativePointer(result));
|
|
22759
|
+
callback(_result);
|
|
22760
|
+
};
|
|
22761
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
22762
|
+
Module.ccall("csp_systems_SequenceSystem_RenameSequence_void_StringRC_StringRC_SequenceResultCallback", "void", ["number", "string", "string", "number"], [this.pointer, oldSequenceKey, newSequenceKey, callbackPtr]);
|
|
22763
|
+
}
|
|
22764
|
+
/**
|
|
22765
|
+
* @description Finds sequences based on the given criteria
|
|
22766
|
+
* @param sequenceKeys - An array of sequence keys to search for
|
|
22767
|
+
* @param sequenceKeys - An optional regex string for searching keys
|
|
22768
|
+
* @param referenceType - The type of reference (GroupId, SpaceId etc.). Must be used with ReferenceIds
|
|
22769
|
+
* @param referenceIds - The ids of the reference. Must be used with ReferenceType
|
|
22770
|
+
* @param callback - Callback to call when a response is received
|
|
22771
|
+
*/
|
|
22772
|
+
getSequencesByCriteria(sequenceKeys, keyRegex, referenceType, referenceIds, callback) {
|
|
22773
|
+
var _callback = (_stateObject__, result) => {
|
|
22774
|
+
var _result = new Systems.SequencesResult(getNativePointer(result));
|
|
22775
|
+
callback(_result);
|
|
22776
|
+
};
|
|
22777
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
22778
|
+
Module.ccall("csp_systems_SequenceSystem_GetSequencesByCriteria_void_ArrayRC_StringRC_StringRC_ArrayRC_SequencesResultCallback", "void", ["number", "number", "string", "string", "number", "number"], [
|
|
22779
|
+
this.pointer,
|
|
22780
|
+
sequenceKeys.pointer,
|
|
22781
|
+
keyRegex,
|
|
22782
|
+
referenceType,
|
|
22783
|
+
referenceIds.pointer,
|
|
22784
|
+
callbackPtr,
|
|
22785
|
+
]);
|
|
22786
|
+
}
|
|
22787
|
+
/**
|
|
22788
|
+
* @description Gets a sequence by it's key
|
|
22789
|
+
* @param sequenceKey - The unique grouping name
|
|
22790
|
+
* @param callback - Callback to call when a response is received
|
|
22791
|
+
*/
|
|
22792
|
+
getSequence(sequenceKey, callback) {
|
|
22793
|
+
var _callback = (_stateObject__, result) => {
|
|
22794
|
+
var _result = new Systems.SequenceResult(getNativePointer(result));
|
|
22795
|
+
callback(_result);
|
|
22796
|
+
};
|
|
22797
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
22798
|
+
Module.ccall("csp_systems_SequenceSystem_GetSequence_void_StringRC_SequenceResultCallback", "void", ["number", "string", "number"], [this.pointer, sequenceKey, callbackPtr]);
|
|
22799
|
+
}
|
|
22800
|
+
/**
|
|
22801
|
+
* @description Deletes the given sequences. This call will fail if the user isn't a creator of the space
|
|
22802
|
+
* @param sequenceKeys - An array of sequence keys to delete
|
|
22803
|
+
* @param callback - Callback to call when a response is received
|
|
22804
|
+
*/
|
|
22805
|
+
deleteSequences(sequenceKeys, callback) {
|
|
22806
|
+
var _callback = (_stateObject__, result) => {
|
|
22807
|
+
var _result = new Systems.NullResult(getNativePointer(result));
|
|
22808
|
+
callback(_result);
|
|
22809
|
+
};
|
|
22810
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
22811
|
+
Module.ccall("csp_systems_SequenceSystem_DeleteSequences_void_ArrayRC_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, sequenceKeys.pointer, callbackPtr]);
|
|
22812
|
+
}
|
|
22813
|
+
}
|
|
22814
|
+
Systems.SequenceSystem = SequenceSystem;
|
|
22815
|
+
})(Systems || (Systems = {}));
|
|
22464
22816
|
(function (Systems) {
|
|
22465
22817
|
/**
|
|
22466
22818
|
@ingroup Settings System
|
|
@@ -26181,6 +26533,13 @@ export class CSPFoundation {
|
|
|
26181
26533
|
Module._free(_ret);
|
|
26182
26534
|
return _inst;
|
|
26183
26535
|
}
|
|
26536
|
+
static ofcsp_systems_Sequence() {
|
|
26537
|
+
var _ret = Module._malloc(8);
|
|
26538
|
+
Module.ccall("csp_common_Array_Ctor_csp_systems_Sequence", "void", ["number"], [_ret]);
|
|
26539
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_SequenceFactory, "csp_systems_Sequence");
|
|
26540
|
+
Module._free(_ret);
|
|
26541
|
+
return _inst;
|
|
26542
|
+
}
|
|
26184
26543
|
static ofcsp_systems_Site() {
|
|
26185
26544
|
var _ret = Module._malloc(8);
|
|
26186
26545
|
Module.ccall("csp_common_Array_Ctor_csp_systems_Site", "void", ["number"], [_ret]);
|
|
@@ -26461,6 +26820,13 @@ export class CSPFoundation {
|
|
|
26461
26820
|
Module._free(_ret);
|
|
26462
26821
|
return _inst;
|
|
26463
26822
|
}
|
|
26823
|
+
static ofcsp_systems_Sequence_number(size) {
|
|
26824
|
+
var _ret = Module._malloc(8);
|
|
26825
|
+
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_Sequence", "void", ["number", "number"], [_ret, size]);
|
|
26826
|
+
var _inst = new Array(getNativePointer(_ret), csp_systems_SequenceFactory, "csp_systems_Sequence");
|
|
26827
|
+
Module._free(_ret);
|
|
26828
|
+
return _inst;
|
|
26829
|
+
}
|
|
26464
26830
|
static ofcsp_systems_Site_number(size) {
|
|
26465
26831
|
var _ret = Module._malloc(8);
|
|
26466
26832
|
Module.ccall("csp_common_Array_Conv_size_tC_csp_systems_Site", "void", ["number", "number"], [_ret, size]);
|