connected-spaces-platform.web 4.27.2 → 4.28.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.
@@ -486,6 +486,14 @@ function csp_multiplayer_AvatarComponentPropertyKeysFactory(
486
486
  ProxyClassFactories["csp_multiplayer_AvatarComponentPropertyKeys"] =
487
487
  csp_multiplayer_AvatarComponentPropertyKeysFactory;
488
488
 
489
+ function csp_multiplayer_BillboardModeFactory(
490
+ nativePointer: NativePointer,
491
+ ): Multiplayer.BillboardMode {
492
+ return nativePointer.pointer as Multiplayer.BillboardMode;
493
+ }
494
+ ProxyClassFactories["csp_multiplayer_BillboardMode"] =
495
+ csp_multiplayer_BillboardModeFactory;
496
+
489
497
  function csp_multiplayer_ButtonPropertyKeysFactory(
490
498
  nativePointer: NativePointer,
491
499
  ): Multiplayer.ButtonPropertyKeys {
@@ -597,14 +605,6 @@ function csp_multiplayer_ImagePropertyKeysFactory(
597
605
  ProxyClassFactories["csp_multiplayer_ImagePropertyKeys"] =
598
606
  csp_multiplayer_ImagePropertyKeysFactory;
599
607
 
600
- function csp_multiplayer_BillboardModeFactory(
601
- nativePointer: NativePointer,
602
- ): Multiplayer.BillboardMode {
603
- return nativePointer.pointer as Multiplayer.BillboardMode;
604
- }
605
- ProxyClassFactories["csp_multiplayer_BillboardMode"] =
606
- csp_multiplayer_BillboardModeFactory;
607
-
608
608
  function csp_multiplayer_DisplayModeFactory(
609
609
  nativePointer: NativePointer,
610
610
  ): Multiplayer.DisplayMode {
@@ -701,6 +701,14 @@ function csp_multiplayer_StaticModelPropertyKeysFactory(
701
701
  ProxyClassFactories["csp_multiplayer_StaticModelPropertyKeys"] =
702
702
  csp_multiplayer_StaticModelPropertyKeysFactory;
703
703
 
704
+ function csp_multiplayer_TextPropertyKeysFactory(
705
+ nativePointer: NativePointer,
706
+ ): Multiplayer.TextPropertyKeys {
707
+ return nativePointer.pointer as Multiplayer.TextPropertyKeys;
708
+ }
709
+ ProxyClassFactories["csp_multiplayer_TextPropertyKeys"] =
710
+ csp_multiplayer_TextPropertyKeysFactory;
711
+
704
712
  function csp_multiplayer_VideoPlayerPlaybackStateFactory(
705
713
  nativePointer: NativePointer,
706
714
  ): Multiplayer.VideoPlayerPlaybackState {
@@ -1622,6 +1630,14 @@ function csp_multiplayer_StaticModelSpaceComponentFactory(
1622
1630
  ProxyClassFactories["csp_multiplayer_StaticModelSpaceComponent"] =
1623
1631
  csp_multiplayer_StaticModelSpaceComponentFactory;
1624
1632
 
1633
+ function csp_multiplayer_TextSpaceComponentFactory(
1634
+ nativePointer: NativePointer,
1635
+ ): NativeClassWrapper {
1636
+ return new Multiplayer.TextSpaceComponent(nativePointer);
1637
+ }
1638
+ ProxyClassFactories["csp_multiplayer_TextSpaceComponent"] =
1639
+ csp_multiplayer_TextSpaceComponentFactory;
1640
+
1625
1641
  function csp_multiplayer_VideoPlayerSpaceComponentFactory(
1626
1642
  nativePointer: NativePointer,
1627
1643
  ): NativeClassWrapper {
@@ -2834,6 +2850,7 @@ export namespace Multiplayer {
2834
2850
  ECommerce,
2835
2851
  FiducialMarker,
2836
2852
  GaussianSplat,
2853
+ Text,
2837
2854
  }
2838
2855
  }
2839
2856
 
@@ -3092,6 +3109,14 @@ export namespace Multiplayer {
3092
3109
  }
3093
3110
  }
3094
3111
 
3112
+ export namespace Multiplayer {
3113
+ export enum BillboardMode {
3114
+ Off = 0,
3115
+ Billboard,
3116
+ YawLockedBillboard,
3117
+ }
3118
+ }
3119
+
3095
3120
  export namespace Multiplayer {
3096
3121
  /**
3097
3122
  * @description Enumerates the list of properties that can be replicated for a button component.
@@ -3307,17 +3332,6 @@ export namespace Multiplayer {
3307
3332
  }
3308
3333
  }
3309
3334
 
3310
- export namespace Multiplayer {
3311
- /**
3312
- * @description The billboard mode supported by this image space component.
3313
- */
3314
- export enum BillboardMode {
3315
- Off = 0,
3316
- Billboard,
3317
- YawLockedBillboard,
3318
- }
3319
- }
3320
-
3321
3335
  export namespace Multiplayer {
3322
3336
  /**
3323
3337
  * @description The display mode supported by this image space component.
@@ -3485,6 +3499,27 @@ export namespace Multiplayer {
3485
3499
  }
3486
3500
  }
3487
3501
 
3502
+ export namespace Multiplayer {
3503
+ /**
3504
+ * @description Enumerates the list of properties that can be replicated for an text space component.
3505
+ */
3506
+ export enum TextPropertyKeys {
3507
+ Position,
3508
+ Rotation,
3509
+ Scale,
3510
+ Text,
3511
+ TextColor,
3512
+ BackgroundColor,
3513
+ IsBackgroundVisible,
3514
+ Width,
3515
+ Height,
3516
+ BillboardMode,
3517
+ IsVisible,
3518
+ IsARVisible,
3519
+ Num,
3520
+ }
3521
+ }
3522
+
3488
3523
  export namespace Multiplayer {
3489
3524
  /**
3490
3525
  * @description Enumerates the possible playback states for a video player.
@@ -20344,13 +20379,13 @@ export namespace Common {
20344
20379
  }
20345
20380
 
20346
20381
  /**
20347
- * @description Construct a Variant based on a float type.
20382
+ * @description Construct a Variant based on a double-precision float type.
20348
20383
  * @param inFloatValue - In value
20349
20384
  */
20350
20385
  static create_floatValue(floatValue: number): Variant {
20351
20386
  var _ptr = Module._malloc(8);
20352
20387
  Module.ccall(
20353
- "csp_common_Variant_Ctor_float",
20388
+ "csp_common_Variant_Ctor_double",
20354
20389
  "void",
20355
20390
  ["number", "number"],
20356
20391
  [_ptr, floatValue],
@@ -20513,15 +20548,15 @@ export namespace Common {
20513
20548
  }
20514
20549
 
20515
20550
  /**
20516
- * @description Sets internal variant type as a float.
20551
+ * @description Sets internal variant type as a double-precision float.
20517
20552
  */
20518
20553
 
20519
20554
  setFloat(value: number): void {
20520
- assert(value >= Limits.FLOAT_MIN);
20521
- assert(value <= Limits.FLOAT_MAX);
20555
+ assert(value >= Limits.DOUBLE_MIN);
20556
+ assert(value <= Limits.DOUBLE_MAX);
20522
20557
 
20523
20558
  Module.ccall(
20524
- "csp_common_Variant_SetFloat_void_float",
20559
+ "csp_common_Variant_SetFloat_void_double",
20525
20560
  "void",
20526
20561
  ["number", "number"],
20527
20562
  [this.pointer, value],
@@ -20529,13 +20564,13 @@ export namespace Common {
20529
20564
  }
20530
20565
 
20531
20566
  /**
20532
- * @description Gets internal variant type as a float.
20533
- * @return Float
20567
+ * @description Gets internal variant type as a double-precision float.
20568
+ * @return Double
20534
20569
  */
20535
20570
 
20536
20571
  getFloat(): number {
20537
20572
  let _result = Module.ccall(
20538
- "csp_common_Variant_GetFloatC_float",
20573
+ "csp_common_Variant_GetFloatC_double",
20539
20574
  "number",
20540
20575
  ["number"],
20541
20576
  [this.pointer],
@@ -26810,6 +26845,26 @@ export namespace Systems {
26810
26845
  [this.pointer, value],
26811
26846
  );
26812
26847
  }
26848
+
26849
+ get organizationId(): string {
26850
+ let _result = Module.ccall(
26851
+ "csp_systems_AssetCollection__Get_OrganizationId",
26852
+ "string",
26853
+ ["number"],
26854
+ [this.pointer],
26855
+ );
26856
+
26857
+ return _result;
26858
+ }
26859
+
26860
+ set organizationId(value: string) {
26861
+ Module.ccall(
26862
+ "csp_systems_AssetCollection__Set_OrganizationId",
26863
+ "void",
26864
+ ["number", "string"],
26865
+ [this.pointer, value],
26866
+ );
26867
+ }
26813
26868
  }
26814
26869
  }
26815
26870
 
@@ -27460,6 +27515,26 @@ export namespace Systems {
27460
27515
  [this.pointer, value.pointer],
27461
27516
  );
27462
27517
  }
27518
+
27519
+ get availableStock(): number {
27520
+ let _result = Module.ccall(
27521
+ "csp_systems_ProductVariantInfo__Get_AvailableStock",
27522
+ "number",
27523
+ ["number"],
27524
+ [this.pointer],
27525
+ );
27526
+
27527
+ return _result;
27528
+ }
27529
+
27530
+ set availableStock(value: number) {
27531
+ Module.ccall(
27532
+ "csp_systems_ProductVariantInfo__Set_AvailableStock",
27533
+ "void",
27534
+ ["number", "number"],
27535
+ [this.pointer, value],
27536
+ );
27537
+ }
27463
27538
  }
27464
27539
  }
27465
27540
 
@@ -29337,26 +29412,6 @@ export namespace Systems {
29337
29412
  );
29338
29413
  }
29339
29414
 
29340
- get description(): string {
29341
- let _result = Module.ccall(
29342
- "csp_systems_Organization__Get_Description",
29343
- "string",
29344
- ["number"],
29345
- [this.pointer],
29346
- );
29347
-
29348
- return _result;
29349
- }
29350
-
29351
- set description(value: string) {
29352
- Module.ccall(
29353
- "csp_systems_Organization__Set_Description",
29354
- "void",
29355
- ["number", "string"],
29356
- [this.pointer, value],
29357
- );
29358
- }
29359
-
29360
29415
  get members(): Common.Array<Systems.OrganizationRoleInfo> {
29361
29416
  const _ptr = Module._malloc(8);
29362
29417
  Module.ccall(
@@ -39899,6 +39954,484 @@ export namespace Multiplayer {
39899
39954
  }
39900
39955
  }
39901
39956
 
39957
+ export namespace Multiplayer {
39958
+ /**
39959
+ @ingroup TextSpaceComponent
39960
+ * @description Data representation of an TextSpaceComponent.
39961
+ */
39962
+ export class TextSpaceComponent
39963
+ extends Multiplayer.ComponentBase
39964
+ implements
39965
+ Multiplayer.ITransformComponent,
39966
+ Multiplayer.IVisibleComponent,
39967
+ INativeResource
39968
+ {
39969
+ /** @internal */
39970
+ constructor(pointer: NativePointer) {
39971
+ super(pointer);
39972
+ }
39973
+
39974
+ static fromComponentBase(
39975
+ baseInstance: Multiplayer.ComponentBase,
39976
+ ): Multiplayer.TextSpaceComponent {
39977
+ const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
39978
+ return new Multiplayer.TextSpaceComponent(
39979
+ new NativePointer(
39980
+ nativeClassWrapper.pointer,
39981
+ nativeClassWrapper.ownsPointer,
39982
+ ),
39983
+ );
39984
+ }
39985
+
39986
+ /**
39987
+ * @description Constructs the text space component, and associates it with the specified Parent space entity.
39988
+ * @param parent - The Space entity that owns this component.
39989
+ */
39990
+ static create_parent(parent: Multiplayer.SpaceEntity): TextSpaceComponent {
39991
+ var _ptr = Module._malloc(8);
39992
+ Module.ccall(
39993
+ "csp_multiplayer_TextSpaceComponent_Ctor_SpaceEntityP",
39994
+ "void",
39995
+ ["number", "number"],
39996
+ [_ptr, parent.pointer],
39997
+ );
39998
+ var _nPtr = getNativePointer(_ptr);
39999
+
40000
+ return new TextSpaceComponent(_nPtr);
40001
+ }
40002
+
40003
+ /**
40004
+ * @description Gets the text this text component refers to.
40005
+ * @return The text this text component refers to.
40006
+ */
40007
+
40008
+ getText(): string {
40009
+ let _result = Module.ccall(
40010
+ "csp_multiplayer_TextSpaceComponent_GetTextC_StringRC",
40011
+ "number",
40012
+ ["number"],
40013
+ [this.pointer],
40014
+ );
40015
+
40016
+ const _resultString = Module.UTF8ToString(_result);
40017
+ free(_result);
40018
+
40019
+ _result = _resultString;
40020
+
40021
+ return _result;
40022
+ }
40023
+
40024
+ /**
40025
+ * @description Sets the text this text component refers to.
40026
+ * @param value - The text this text component refers to.
40027
+ */
40028
+
40029
+ setText(value: string): void {
40030
+ Module.ccall(
40031
+ "csp_multiplayer_TextSpaceComponent_SetText_void_StringRC",
40032
+ "void",
40033
+ ["number", "string"],
40034
+ [this.pointer, value],
40035
+ );
40036
+ }
40037
+
40038
+ /**
40039
+ * @description Gets the text color.
40040
+ * @return The text color, expected to be in RGB color space, with each value normalised between 0...1.
40041
+ */
40042
+
40043
+ getTextColor(): Common.Vector3 {
40044
+ var _ret = Module._malloc(8);
40045
+
40046
+ Module.ccall(
40047
+ "csp_multiplayer_TextSpaceComponent_GetTextColorC_Vector3RC",
40048
+ "void",
40049
+ ["number", "number"],
40050
+ [_ret, this.pointer],
40051
+ );
40052
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
40053
+ Module._free(_ret);
40054
+
40055
+ return _nPtr;
40056
+ }
40057
+
40058
+ /**
40059
+ * @description Sets the text color.
40060
+ * @param value - The text color, expected to be in RGB color space, with each value normalised between 0...1.
40061
+ */
40062
+
40063
+ setTextColor(value: Common.Vector3): void {
40064
+ Module.ccall(
40065
+ "csp_multiplayer_TextSpaceComponent_SetTextColor_void_Vector3RC",
40066
+ "void",
40067
+ ["number", "number"],
40068
+ [this.pointer, value.pointer],
40069
+ );
40070
+ }
40071
+
40072
+ /**
40073
+ * @description Gets the background color that should be globally applied text associated with this component.
40074
+ * @return The background color, expected to be in RGB color space, with each value normalised between 0...1.
40075
+ */
40076
+
40077
+ getBackgroundColor(): Common.Vector3 {
40078
+ var _ret = Module._malloc(8);
40079
+
40080
+ Module.ccall(
40081
+ "csp_multiplayer_TextSpaceComponent_GetBackgroundColorC_Vector3RC",
40082
+ "void",
40083
+ ["number", "number"],
40084
+ [_ret, this.pointer],
40085
+ );
40086
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
40087
+ Module._free(_ret);
40088
+
40089
+ return _nPtr;
40090
+ }
40091
+
40092
+ /**
40093
+ * @description Sets the background color.
40094
+ * @param value - The background color, expected to be in RGB color space, with each value normalised between 0...1.
40095
+ */
40096
+
40097
+ setBackgroundColor(value: Common.Vector3): void {
40098
+ Module.ccall(
40099
+ "csp_multiplayer_TextSpaceComponent_SetBackgroundColor_void_Vector3RC",
40100
+ "void",
40101
+ ["number", "number"],
40102
+ [this.pointer, value.pointer],
40103
+ );
40104
+ }
40105
+
40106
+ /**
40107
+ * @description Sets the background visibility.
40108
+ * @param value - The background visibility.
40109
+ */
40110
+
40111
+ getIsBackgroundVisible(): boolean {
40112
+ let _result = Module.ccall(
40113
+ "csp_multiplayer_TextSpaceComponent_GetIsBackgroundVisibleC_bool",
40114
+ "boolean",
40115
+ ["number"],
40116
+ [this.pointer],
40117
+ );
40118
+
40119
+ return _result;
40120
+ }
40121
+
40122
+ /**
40123
+ * @description Sets the background visibility.
40124
+ * @param value - The background visibility.
40125
+ */
40126
+
40127
+ setIsBackgroundVisible(value: boolean): void {
40128
+ Module.ccall(
40129
+ "csp_multiplayer_TextSpaceComponent_SetIsBackgroundVisible_void_bool",
40130
+ "void",
40131
+ ["number", "boolean"],
40132
+ [this.pointer, value],
40133
+ );
40134
+ }
40135
+
40136
+ /**
40137
+ * @description Sets the Text Width.
40138
+ * @param value - The Text Width.
40139
+ */
40140
+
40141
+ getWidth(): number {
40142
+ let _result = Module.ccall(
40143
+ "csp_multiplayer_TextSpaceComponent_GetWidthC_float",
40144
+ "number",
40145
+ ["number"],
40146
+ [this.pointer],
40147
+ );
40148
+
40149
+ return _result;
40150
+ }
40151
+
40152
+ /**
40153
+ * @description Sets the Text Width.
40154
+ * @param value - The Text Width.
40155
+ */
40156
+
40157
+ setWidth(value: number): void {
40158
+ assert(value >= Limits.FLOAT_MIN);
40159
+ assert(value <= Limits.FLOAT_MAX);
40160
+
40161
+ Module.ccall(
40162
+ "csp_multiplayer_TextSpaceComponent_SetWidth_void_float",
40163
+ "void",
40164
+ ["number", "number"],
40165
+ [this.pointer, value],
40166
+ );
40167
+ }
40168
+
40169
+ /**
40170
+ * @description Sets the Text Height.
40171
+ * @param value - The Text Height.
40172
+ */
40173
+
40174
+ getHeight(): number {
40175
+ let _result = Module.ccall(
40176
+ "csp_multiplayer_TextSpaceComponent_GetHeightC_float",
40177
+ "number",
40178
+ ["number"],
40179
+ [this.pointer],
40180
+ );
40181
+
40182
+ return _result;
40183
+ }
40184
+
40185
+ /**
40186
+ * @description Sets the Text Height.
40187
+ * @param value - The Text Height.
40188
+ */
40189
+
40190
+ setHeight(value: number): void {
40191
+ assert(value >= Limits.FLOAT_MIN);
40192
+ assert(value <= Limits.FLOAT_MAX);
40193
+
40194
+ Module.ccall(
40195
+ "csp_multiplayer_TextSpaceComponent_SetHeight_void_float",
40196
+ "void",
40197
+ ["number", "number"],
40198
+ [this.pointer, value],
40199
+ );
40200
+ }
40201
+
40202
+ /**
40203
+ * \addtogroup ITransformComponent
40204
+ @{
40205
+ @copydoc IPositionComponent::GetPosition()
40206
+ */
40207
+
40208
+ getPosition(): Common.Vector3 {
40209
+ var _ret = Module._malloc(8);
40210
+
40211
+ Module.ccall(
40212
+ "csp_multiplayer_TextSpaceComponent_GetPositionC_Vector3RC",
40213
+ "void",
40214
+ ["number", "number"],
40215
+ [_ret, this.pointer],
40216
+ );
40217
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
40218
+ Module._free(_ret);
40219
+
40220
+ return _nPtr;
40221
+ }
40222
+
40223
+ /**
40224
+ @copydoc IPositionComponent::SetPosition()
40225
+ */
40226
+
40227
+ setPosition(value: Common.Vector3): void {
40228
+ Module.ccall(
40229
+ "csp_multiplayer_TextSpaceComponent_SetPosition_void_Vector3RC",
40230
+ "void",
40231
+ ["number", "number"],
40232
+ [this.pointer, value.pointer],
40233
+ );
40234
+ }
40235
+
40236
+ /**
40237
+ @copydoc IRotationComponent::GetRotation()
40238
+ */
40239
+
40240
+ getRotation(): Common.Vector4 {
40241
+ var _ret = Module._malloc(8);
40242
+
40243
+ Module.ccall(
40244
+ "csp_multiplayer_TextSpaceComponent_GetRotationC_Vector4RC",
40245
+ "void",
40246
+ ["number", "number"],
40247
+ [_ret, this.pointer],
40248
+ );
40249
+ var _nPtr = new Common.Vector4(getNativePointer(_ret));
40250
+ Module._free(_ret);
40251
+
40252
+ return _nPtr;
40253
+ }
40254
+
40255
+ /**
40256
+ @copydoc IRotationComponent::SetRotation()
40257
+ */
40258
+
40259
+ setRotation(value: Common.Vector4): void {
40260
+ Module.ccall(
40261
+ "csp_multiplayer_TextSpaceComponent_SetRotation_void_Vector4RC",
40262
+ "void",
40263
+ ["number", "number"],
40264
+ [this.pointer, value.pointer],
40265
+ );
40266
+ }
40267
+
40268
+ /**
40269
+ @copydoc IScaleComponent::GetScale()
40270
+ */
40271
+
40272
+ getScale(): Common.Vector3 {
40273
+ var _ret = Module._malloc(8);
40274
+
40275
+ Module.ccall(
40276
+ "csp_multiplayer_TextSpaceComponent_GetScaleC_Vector3RC",
40277
+ "void",
40278
+ ["number", "number"],
40279
+ [_ret, this.pointer],
40280
+ );
40281
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
40282
+ Module._free(_ret);
40283
+
40284
+ return _nPtr;
40285
+ }
40286
+
40287
+ /**
40288
+ @copydoc IScaleComponent::SetScale()
40289
+ */
40290
+
40291
+ setScale(value: Common.Vector3): void {
40292
+ Module.ccall(
40293
+ "csp_multiplayer_TextSpaceComponent_SetScale_void_Vector3RC",
40294
+ "void",
40295
+ ["number", "number"],
40296
+ [this.pointer, value.pointer],
40297
+ );
40298
+ }
40299
+
40300
+ /**
40301
+ @copydoc ITransformComponent::GetTransform()
40302
+ */
40303
+
40304
+ getTransform(): Multiplayer.SpaceTransform {
40305
+ var _ret = Module._malloc(8);
40306
+
40307
+ Module.ccall(
40308
+ "csp_multiplayer_TextSpaceComponent_GetTransformC_SpaceTransform",
40309
+ "void",
40310
+ ["number", "number"],
40311
+ [_ret, this.pointer],
40312
+ );
40313
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
40314
+ Module._free(_ret);
40315
+ return _nPtr;
40316
+ }
40317
+
40318
+ /**
40319
+ @copydoc ITransformComonent::SetTransform()
40320
+ */
40321
+
40322
+ setTransform(value: Multiplayer.SpaceTransform): void {
40323
+ Module.ccall(
40324
+ "csp_multiplayer_TextSpaceComponent_SetTransform_void_SpaceTransformRC",
40325
+ "void",
40326
+ ["number", "number"],
40327
+ [this.pointer, value.pointer],
40328
+ );
40329
+ }
40330
+
40331
+ /**
40332
+ @}
40333
+ * @description Gets the billboard mode used by this text component.
40334
+ * @return The billboard mode used by this text component.
40335
+ */
40336
+
40337
+ getBillboardMode(): Multiplayer.BillboardMode {
40338
+ let _result = Module.ccall(
40339
+ "csp_multiplayer_TextSpaceComponent_GetBillboardModeC_BillboardMode",
40340
+ "number",
40341
+ ["number"],
40342
+ [this.pointer],
40343
+ );
40344
+
40345
+ return _result;
40346
+ }
40347
+
40348
+ /**
40349
+ * @description Sets the billboard mode used by this text component.
40350
+ * @param billboardMode - The billboard mode used by this text component.
40351
+ */
40352
+
40353
+ setBillboardMode(billboardMode: Multiplayer.BillboardMode): void {
40354
+ Module.ccall(
40355
+ "csp_multiplayer_TextSpaceComponent_SetBillboardMode_void_BillboardMode",
40356
+ "void",
40357
+ ["number", "number"],
40358
+ [this.pointer, billboardMode],
40359
+ );
40360
+ }
40361
+
40362
+ /**
40363
+ * \addtogroup IVisibleComponent
40364
+ @{
40365
+ @copydoc IVisibleComponent::GetIsVisible()
40366
+ */
40367
+
40368
+ getIsVisible(): boolean {
40369
+ let _result = Module.ccall(
40370
+ "csp_multiplayer_TextSpaceComponent_GetIsVisibleC_bool",
40371
+ "boolean",
40372
+ ["number"],
40373
+ [this.pointer],
40374
+ );
40375
+
40376
+ return _result;
40377
+ }
40378
+
40379
+ /**
40380
+ @copydoc IVisibleComponent::SetIsVisible()
40381
+ */
40382
+
40383
+ setIsVisible(value: boolean): void {
40384
+ Module.ccall(
40385
+ "csp_multiplayer_TextSpaceComponent_SetIsVisible_void_bool",
40386
+ "void",
40387
+ ["number", "boolean"],
40388
+ [this.pointer, value],
40389
+ );
40390
+ }
40391
+
40392
+ /**
40393
+ @copydoc IVisibleComponent::GetIsARVisible()
40394
+ */
40395
+
40396
+ getIsARVisible(): boolean {
40397
+ let _result = Module.ccall(
40398
+ "csp_multiplayer_TextSpaceComponent_GetIsARVisibleC_bool",
40399
+ "boolean",
40400
+ ["number"],
40401
+ [this.pointer],
40402
+ );
40403
+
40404
+ return _result;
40405
+ }
40406
+
40407
+ /**
40408
+ @copydoc IVisibleComponent::SetIsARVisible()
40409
+ */
40410
+
40411
+ setIsARVisible(value: boolean): void {
40412
+ Module.ccall(
40413
+ "csp_multiplayer_TextSpaceComponent_SetIsARVisible_void_bool",
40414
+ "void",
40415
+ ["number", "boolean"],
40416
+ [this.pointer, value],
40417
+ );
40418
+ }
40419
+
40420
+ delete(): void {
40421
+ if (this.ownsPointer && !this.disposed) {
40422
+ Module.ccall(
40423
+ "csp_multiplayer_TextSpaceComponent_Dtor",
40424
+ "void",
40425
+ ["number"],
40426
+ [this.pointer],
40427
+ );
40428
+
40429
+ this.disposed = true;
40430
+ }
40431
+ }
40432
+ }
40433
+ }
40434
+
39902
40435
  export namespace Multiplayer {
39903
40436
  /**
39904
40437
  @ingroup VideoPlayerSpaceComponent
@@ -45216,6 +45749,207 @@ export namespace Systems {
45216
45749
  );
45217
45750
  }
45218
45751
 
45752
+ /**
45753
+ * @description Create a new Organization.
45754
+ * Only a User with tenant admin permissions can create an Organization.
45755
+ * If the user does not have the required permissions their call will be rejected.
45756
+ * @param organizationOwnerId - Id of the Organization owner.
45757
+ * @param organizationName - The Organization name
45758
+ * @param callback - Callback when asynchronous task finishes.
45759
+ */
45760
+
45761
+ async createOrganization(
45762
+ organizationOwnerId: string,
45763
+ organizationName: string,
45764
+ ): Promise<Systems.OrganizationResult> {
45765
+ var _resolve;
45766
+
45767
+ var _promise = new Promise<Systems.OrganizationResult>((_r) => {
45768
+ _resolve = _r;
45769
+ });
45770
+
45771
+ var _callbackPtr: number;
45772
+ var _callback = (_stateObject__: number, result) => {
45773
+ var _resultPtr = getNativePointer(result);
45774
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
45775
+
45776
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45777
+ return;
45778
+ }
45779
+
45780
+ _resolve(_resultInstance);
45781
+
45782
+ Module.removeFunction(_callbackPtr);
45783
+ };
45784
+
45785
+ _callbackPtr = Module.addFunction(_callback, "vii");
45786
+
45787
+ Module.ccall(
45788
+ "csp_systems_OrganizationSystem_CreateOrganization_void_StringRC_StringRC_OrganizationResultCallback",
45789
+ "void",
45790
+ ["number", "string", "string", "number", "number"],
45791
+ [this.pointer, organizationOwnerId, organizationName, _callbackPtr, 0],
45792
+ );
45793
+
45794
+ return _promise;
45795
+ }
45796
+
45797
+ /**
45798
+ * @description Retrieves Organization info for the specified Organization.
45799
+ * If this request is made by a User with an Owner or Admin Organization role, the resultant Organization object will contain an array of
45800
+ * OrganizationRoleInfo objects for each Organization member. If the request is made by a User who does not have the Owner or Admin role, the
45801
+ * resultant Organization object will contain an array with a single OrganizationRoleInfo object which represents them.
45802
+ * @param organizationId - Id of the Organization to retrieve information on. If no Id is specified,
45803
+ * the Id of the Organization the user is currently authenticated against will be used.
45804
+ * @param callback - Callback when asynchronous task finishes.
45805
+ */
45806
+
45807
+ async getOrganization(
45808
+ organizationId: string | null,
45809
+ ): Promise<Systems.OrganizationResult> {
45810
+ var _resolve;
45811
+
45812
+ var _promise = new Promise<Systems.OrganizationResult>((_r) => {
45813
+ _resolve = _r;
45814
+ });
45815
+
45816
+ var _callbackPtr: number;
45817
+ var _callback = (_stateObject__: number, result) => {
45818
+ var _resultPtr = getNativePointer(result);
45819
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
45820
+
45821
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45822
+ return;
45823
+ }
45824
+
45825
+ _resolve(_resultInstance);
45826
+
45827
+ Module.removeFunction(_callbackPtr);
45828
+ };
45829
+
45830
+ _callbackPtr = Module.addFunction(_callback, "vii");
45831
+
45832
+ Module.ccall(
45833
+ "csp_systems_OrganizationSystem_GetOrganization_void_StringRC_OrganizationResultCallback",
45834
+ "void",
45835
+ ["number", "string", "number", "number"],
45836
+ [this.pointer, organizationId, _callbackPtr, 0],
45837
+ );
45838
+
45839
+ return _promise;
45840
+ }
45841
+
45842
+ /**
45843
+ * @description Get the Id of the Organization the user is authenticated against.
45844
+ * @return The Id of the Organization the User belongs to.
45845
+ */
45846
+
45847
+ getCurrentOrganizationId(): string {
45848
+ let _result = Module.ccall(
45849
+ "csp_systems_OrganizationSystem_GetCurrentOrganizationIdC_StringRC",
45850
+ "number",
45851
+ ["number"],
45852
+ [this.pointer],
45853
+ );
45854
+
45855
+ const _resultString = Module.UTF8ToString(_result);
45856
+ free(_result);
45857
+
45858
+ _result = _resultString;
45859
+
45860
+ return _result;
45861
+ }
45862
+
45863
+ /**
45864
+ * @description Updates the name and/or the description of the specified Organization.
45865
+ * Only a User with an Organization Owner role can update an Organization. If the user does not have the required Organization role
45866
+ * their call will be rejected.
45867
+ * @param organizationId - Id of the Organization to update. If no Id is specified,
45868
+ * the Id of the Organization the user is currently authenticated against will be used.
45869
+ * @param name - The new Organization name
45870
+ * @param callback - Callback when asynchronous task finishes.
45871
+ */
45872
+
45873
+ async updateOrganization(
45874
+ organizationId: string | null,
45875
+ name: string,
45876
+ ): Promise<Systems.OrganizationResult> {
45877
+ var _resolve;
45878
+
45879
+ var _promise = new Promise<Systems.OrganizationResult>((_r) => {
45880
+ _resolve = _r;
45881
+ });
45882
+
45883
+ var _callbackPtr: number;
45884
+ var _callback = (_stateObject__: number, result) => {
45885
+ var _resultPtr = getNativePointer(result);
45886
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
45887
+
45888
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45889
+ return;
45890
+ }
45891
+
45892
+ _resolve(_resultInstance);
45893
+
45894
+ Module.removeFunction(_callbackPtr);
45895
+ };
45896
+
45897
+ _callbackPtr = Module.addFunction(_callback, "vii");
45898
+
45899
+ Module.ccall(
45900
+ "csp_systems_OrganizationSystem_UpdateOrganization_void_StringRC_StringRC_OrganizationResultCallback",
45901
+ "void",
45902
+ ["number", "string", "string", "number", "number"],
45903
+ [this.pointer, organizationId, name, _callbackPtr, 0],
45904
+ );
45905
+
45906
+ return _promise;
45907
+ }
45908
+
45909
+ /**
45910
+ * @description Deactivates the specified Organization.
45911
+ * This call performs a soft-delete of the Organization and will allow for Organization reactivation in the future.
45912
+ * Only A User with owner-level permissions can deactivate an Organization. If the user does not have the required role their call will be
45913
+ * rejected.
45914
+ * @param organizationId - Id of the Organization to deactivate.
45915
+ * @param callback - Callback when asynchronous task finishes.
45916
+ */
45917
+
45918
+ async deactivateOrganization(
45919
+ organizationId: string,
45920
+ ): Promise<Systems.NullResult> {
45921
+ var _resolve;
45922
+
45923
+ var _promise = new Promise<Systems.NullResult>((_r) => {
45924
+ _resolve = _r;
45925
+ });
45926
+
45927
+ var _callbackPtr: number;
45928
+ var _callback = (_stateObject__: number, result) => {
45929
+ var _resultPtr = getNativePointer(result);
45930
+ var _resultInstance = new Systems.NullResult(_resultPtr);
45931
+
45932
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45933
+ return;
45934
+ }
45935
+
45936
+ _resolve(_resultInstance);
45937
+
45938
+ Module.removeFunction(_callbackPtr);
45939
+ };
45940
+
45941
+ _callbackPtr = Module.addFunction(_callback, "vii");
45942
+
45943
+ Module.ccall(
45944
+ "csp_systems_OrganizationSystem_DeactivateOrganization_void_StringRC_NullResultCallback",
45945
+ "void",
45946
+ ["number", "string", "number", "number"],
45947
+ [this.pointer, organizationId, _callbackPtr, 0],
45948
+ );
45949
+
45950
+ return _promise;
45951
+ }
45952
+
45219
45953
  /**
45220
45954
  * @description Invites a given email to the User's Organization.
45221
45955
  * 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
@@ -47192,6 +47926,26 @@ export namespace Systems {
47192
47926
  [this.pointer, value.pointer],
47193
47927
  );
47194
47928
  }
47929
+
47930
+ get organizationId(): string {
47931
+ let _result = Module.ccall(
47932
+ "csp_systems_Space__Get_OrganizationId",
47933
+ "string",
47934
+ ["number"],
47935
+ [this.pointer],
47936
+ );
47937
+
47938
+ return _result;
47939
+ }
47940
+
47941
+ set organizationId(value: string) {
47942
+ Module.ccall(
47943
+ "csp_systems_Space__Set_OrganizationId",
47944
+ "void",
47945
+ ["number", "string"],
47946
+ [this.pointer, value],
47947
+ );
47948
+ }
47195
47949
  }
47196
47950
  }
47197
47951