connected-spaces-platform.web 4.25.0 → 4.26.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.
@@ -3162,6 +3162,7 @@ export namespace Multiplayer {
3162
3162
  IsVisible,
3163
3163
  IsARVisible,
3164
3164
  IsShadowCaster,
3165
+ Tint,
3165
3166
  Num,
3166
3167
  }
3167
3168
  }
@@ -3509,6 +3510,7 @@ export namespace Systems {
3509
3510
  HOLOCAP_VIDEO,
3510
3511
  HOLOCAP_AUDIO,
3511
3512
  AUDIO,
3513
+ GAUSSIAN_SPLAT,
3512
3514
  }
3513
3515
  }
3514
3516
 
@@ -36953,6 +36955,42 @@ export namespace Multiplayer {
36953
36955
  );
36954
36956
  }
36955
36957
 
36958
+ /**
36959
+ @}
36960
+ * @description Gets the tint that should be globally applied to the Gaussian Splat associated with this component.
36961
+ * @return The global tint value, expected to be in RGB color space, with each value normalised between 0...1.
36962
+ */
36963
+
36964
+ getTint(): Common.Vector3 {
36965
+ var _ret = Module._malloc(8);
36966
+
36967
+ Module.ccall(
36968
+ "csp_multiplayer_GaussianSplatSpaceComponent_GetTintC_Vector3RC",
36969
+ "void",
36970
+ ["number", "number"],
36971
+ [_ret, this.pointer],
36972
+ );
36973
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
36974
+ Module._free(_ret);
36975
+
36976
+ return _nPtr;
36977
+ }
36978
+
36979
+ /**
36980
+ * @description Sets the tint that should be globally applied to the Gaussian Splat.
36981
+ * @param value - The tint value, expected to be in RGB color space, with each value normalised between 0...1.
36982
+ * Defaults to 1,1,1.
36983
+ */
36984
+
36985
+ setTint(tintValue: Common.Vector3): void {
36986
+ Module.ccall(
36987
+ "csp_multiplayer_GaussianSplatSpaceComponent_SetTint_void_Vector3RC",
36988
+ "void",
36989
+ ["number", "number"],
36990
+ [this.pointer, tintValue.pointer],
36991
+ );
36992
+ }
36993
+
36956
36994
  delete(): void {
36957
36995
  if (this.ownsPointer && !this.disposed) {
36958
36996
  Module.ccall(
@@ -42975,6 +43013,51 @@ export namespace Systems {
42975
43013
  return _promise;
42976
43014
  }
42977
43015
 
43016
+ /**
43017
+ * @description Sets a store to be enabled or disabled in a space.
43018
+ * @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
43019
+ * @param spaceId - ID of the space the store links to.
43020
+ * @param isEcommerceActive - Bool to set the ecommerce system status to.
43021
+ * @param callback - Callback when asynchronous task finishes
43022
+ */
43023
+
43024
+ async setECommerceActiveInSpace(
43025
+ storeName: string,
43026
+ spaceId: string,
43027
+ isEcommerceActive: boolean,
43028
+ ): Promise<Systems.AddShopifyStoreResult> {
43029
+ var _resolve;
43030
+
43031
+ var _promise = new Promise<Systems.AddShopifyStoreResult>((_r) => {
43032
+ _resolve = _r;
43033
+ });
43034
+
43035
+ var _callbackPtr: number;
43036
+ var _callback = (_stateObject__: number, result) => {
43037
+ var _resultPtr = getNativePointer(result);
43038
+ var _resultInstance = new Systems.AddShopifyStoreResult(_resultPtr);
43039
+
43040
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
43041
+ return;
43042
+ }
43043
+
43044
+ _resolve(_resultInstance);
43045
+
43046
+ Module.removeFunction(_callbackPtr);
43047
+ };
43048
+
43049
+ _callbackPtr = Module.addFunction(_callback, "vii");
43050
+
43051
+ Module.ccall(
43052
+ "csp_systems_ECommerceSystem_SetECommerceActiveInSpace_void_StringRC_StringRC_boolC_SetECommerceActiveResultCallback",
43053
+ "void",
43054
+ ["number", "string", "string", "boolean", "number", "number"],
43055
+ [this.pointer, storeName, spaceId, isEcommerceActive, _callbackPtr, 0],
43056
+ );
43057
+
43058
+ return _promise;
43059
+ }
43060
+
42978
43061
  /**
42979
43062
  * @description Validates a shopify store given a store name and an access token.
42980
43063
  * @param storeName - The store name (URL) to the Shopify store. Do not include the '.shopify.com' part of the url.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "connected-spaces-platform.web",
3
3
  "displayName": "connected-spaces-platform.web",
4
- "version": "4.25.0+507",
4
+ "version": "4.26.0+508",
5
5
  "description": "This package provides the binaries required to interface with the Connected Spaces Platform API.",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {