connected-spaces-platform.web 6.4.3 → 6.5.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/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +2 -2
- package/connectedspacesplatform.js +43 -11
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +57 -15
- package/package.json +1 -1
|
@@ -48278,45 +48278,85 @@ export namespace Systems {
|
|
|
48278
48278
|
);
|
|
48279
48279
|
}
|
|
48280
48280
|
|
|
48281
|
-
sendAnalyticsEvent(
|
|
48281
|
+
async sendAnalyticsEvent(
|
|
48282
48282
|
productContextSection: string,
|
|
48283
48283
|
category: string,
|
|
48284
48284
|
interactionType: string,
|
|
48285
|
-
subCategory: string,
|
|
48286
|
-
metadata: Common.Map<string, string
|
|
48287
|
-
|
|
48288
|
-
|
|
48285
|
+
subCategory: string | null,
|
|
48286
|
+
metadata: Common.Map<string, string> | null,
|
|
48287
|
+
): Promise<Systems.NullResult> {
|
|
48288
|
+
var _resolve;
|
|
48289
|
+
|
|
48290
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
48291
|
+
_resolve = _r;
|
|
48292
|
+
});
|
|
48293
|
+
|
|
48294
|
+
var _callbackPtr: number;
|
|
48289
48295
|
var _callback = (_stateObject__: number, result) => {
|
|
48290
|
-
var
|
|
48291
|
-
|
|
48296
|
+
var _resultPtr = getNativePointer(result);
|
|
48297
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
48298
|
+
|
|
48299
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
48300
|
+
return;
|
|
48301
|
+
}
|
|
48302
|
+
|
|
48303
|
+
_resolve(_resultInstance);
|
|
48304
|
+
|
|
48305
|
+
Module.removeFunction(_callbackPtr);
|
|
48292
48306
|
};
|
|
48293
48307
|
|
|
48294
|
-
|
|
48308
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
48295
48309
|
|
|
48296
48310
|
Module.ccall(
|
|
48297
48311
|
"csp_systems_AnalyticsSystem_SendAnalyticsEvent_void_StringRC_StringRC_StringRC_StringRC_MapRC_NullResultCallback",
|
|
48298
48312
|
"void",
|
|
48299
|
-
[
|
|
48313
|
+
[
|
|
48314
|
+
"number",
|
|
48315
|
+
"string",
|
|
48316
|
+
"string",
|
|
48317
|
+
"string",
|
|
48318
|
+
"string",
|
|
48319
|
+
"number",
|
|
48320
|
+
"number",
|
|
48321
|
+
"number",
|
|
48322
|
+
],
|
|
48300
48323
|
[
|
|
48301
48324
|
this.pointer,
|
|
48302
48325
|
productContextSection,
|
|
48303
48326
|
category,
|
|
48304
48327
|
interactionType,
|
|
48305
48328
|
subCategory,
|
|
48306
|
-
metadata.pointer,
|
|
48307
|
-
|
|
48329
|
+
metadata != null ? metadata.pointer : 0,
|
|
48330
|
+
_callbackPtr,
|
|
48331
|
+
0,
|
|
48308
48332
|
],
|
|
48309
48333
|
);
|
|
48334
|
+
|
|
48335
|
+
return _promise;
|
|
48310
48336
|
}
|
|
48311
48337
|
|
|
48312
|
-
flushAnalyticsEventsQueue(
|
|
48338
|
+
async flushAnalyticsEventsQueue(): Promise<Systems.NullResult> {
|
|
48339
|
+
var _resolve;
|
|
48340
|
+
|
|
48341
|
+
var _promise = new Promise<Systems.NullResult>((_r) => {
|
|
48342
|
+
_resolve = _r;
|
|
48343
|
+
});
|
|
48344
|
+
|
|
48345
|
+
var _callbackPtr: number;
|
|
48313
48346
|
var _callback = (_stateObject__: number, result) => {
|
|
48314
|
-
var
|
|
48347
|
+
var _resultPtr = getNativePointer(result);
|
|
48348
|
+
var _resultInstance = new Systems.NullResult(_resultPtr);
|
|
48315
48349
|
|
|
48316
|
-
|
|
48350
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
48351
|
+
return;
|
|
48352
|
+
}
|
|
48353
|
+
|
|
48354
|
+
_resolve(_resultInstance);
|
|
48355
|
+
|
|
48356
|
+
Module.removeFunction(_callbackPtr);
|
|
48317
48357
|
};
|
|
48318
48358
|
|
|
48319
|
-
|
|
48359
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
48320
48360
|
|
|
48321
48361
|
Module.ccall(
|
|
48322
48362
|
"csp_systems_AnalyticsSystem_FlushAnalyticsEventsQueue_void_NullResultCallback",
|
|
@@ -48324,6 +48364,8 @@ export namespace Systems {
|
|
|
48324
48364
|
["number", "number", "number"],
|
|
48325
48365
|
[this.pointer, _callbackPtr, 0],
|
|
48326
48366
|
);
|
|
48367
|
+
|
|
48368
|
+
return _promise;
|
|
48327
48369
|
}
|
|
48328
48370
|
}
|
|
48329
48371
|
}
|
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": "6.
|
|
4
|
+
"version": "6.5.0+620",
|
|
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": {
|