connected-spaces-platform.web 6.4.1 → 6.4.3
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 +7 -3
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +4 -1
- package/connectedspacesplatform.js +20 -1
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +41 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -10121,13 +10121,16 @@ export declare namespace Systems {
|
|
|
10121
10121
|
export declare namespace Systems {
|
|
10122
10122
|
/**
|
|
10123
10123
|
@ingroup Analytics System
|
|
10124
|
-
* @description Public facing system that allows AnalyticsRecords to be sent to
|
|
10124
|
+
* @description Public facing system that allows AnalyticsRecords to be sent to the backend services.
|
|
10125
|
+
@invariant Users must be logged in to send AnalyticsRecords to the backend services.
|
|
10125
10126
|
*/
|
|
10126
10127
|
class AnalyticsSystem extends Systems.SystemBase {
|
|
10127
10128
|
/** @internal */
|
|
10128
10129
|
constructor(pointer: NativePointer);
|
|
10129
10130
|
static fromSystemBase(baseInstance: Systems.SystemBase): Systems.AnalyticsSystem;
|
|
10131
|
+
queueAnalyticsEvent(productContextSection: string, category: string, interactionType: string, subCategory: string, metadata: Common.Map<string, string>): void;
|
|
10130
10132
|
sendAnalyticsEvent(productContextSection: string, category: string, interactionType: string, subCategory: string, metadata: Common.Map<string, string>, callback: (result: Systems.NullResult) => void): void;
|
|
10133
|
+
flushAnalyticsEventsQueue(callback: (result: Systems.NullResult) => void): void;
|
|
10131
10134
|
}
|
|
10132
10135
|
}
|
|
10133
10136
|
export declare namespace Systems {
|
|
@@ -22954,7 +22954,8 @@ export class CSPFoundation {
|
|
|
22954
22954
|
(function (Systems) {
|
|
22955
22955
|
/**
|
|
22956
22956
|
@ingroup Analytics System
|
|
22957
|
-
* @description Public facing system that allows AnalyticsRecords to be sent to
|
|
22957
|
+
* @description Public facing system that allows AnalyticsRecords to be sent to the backend services.
|
|
22958
|
+
@invariant Users must be logged in to send AnalyticsRecords to the backend services.
|
|
22958
22959
|
*/
|
|
22959
22960
|
class AnalyticsSystem extends Systems.SystemBase {
|
|
22960
22961
|
/** @internal */
|
|
@@ -22965,6 +22966,16 @@ export class CSPFoundation {
|
|
|
22965
22966
|
const nativeClassWrapper = baseInstance;
|
|
22966
22967
|
return new Systems.AnalyticsSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
22967
22968
|
}
|
|
22969
|
+
queueAnalyticsEvent(productContextSection, category, interactionType, subCategory, metadata) {
|
|
22970
|
+
Module.ccall("csp_systems_AnalyticsSystem_QueueAnalyticsEvent_void_StringRC_StringRC_StringRC_StringRC_MapRC", "void", ["number", "string", "string", "string", "string", "number"], [
|
|
22971
|
+
this.pointer,
|
|
22972
|
+
productContextSection,
|
|
22973
|
+
category,
|
|
22974
|
+
interactionType,
|
|
22975
|
+
subCategory,
|
|
22976
|
+
metadata.pointer,
|
|
22977
|
+
]);
|
|
22978
|
+
}
|
|
22968
22979
|
sendAnalyticsEvent(productContextSection, category, interactionType, subCategory, metadata, callback) {
|
|
22969
22980
|
var _callback = (_stateObject__, result) => {
|
|
22970
22981
|
var _result = new Systems.NullResult(getNativePointer(result));
|
|
@@ -22981,6 +22992,14 @@ export class CSPFoundation {
|
|
|
22981
22992
|
callbackPtr,
|
|
22982
22993
|
]);
|
|
22983
22994
|
}
|
|
22995
|
+
flushAnalyticsEventsQueue(callback) {
|
|
22996
|
+
var _callback = (_stateObject__, result) => {
|
|
22997
|
+
var _result = new Systems.NullResult(getNativePointer(result));
|
|
22998
|
+
callback(_result);
|
|
22999
|
+
};
|
|
23000
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
23001
|
+
Module.ccall("csp_systems_AnalyticsSystem_FlushAnalyticsEventsQueue_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
23002
|
+
}
|
|
22984
23003
|
}
|
|
22985
23004
|
Systems.AnalyticsSystem = AnalyticsSystem;
|
|
22986
23005
|
})(Systems || (Systems = {}));
|