fk-platform-sdk 1.0.46-beta2 → 1.0.46
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/dist/analytics/interfaces/AnalyticsModule.d.ts +14 -2
- package/dist/interfaces/modules/ErrorHandlerModule.d.ts +1 -0
- package/dist/modules/AnalyticsModuleImpl.d.ts +3 -3
- package/dist/modules/AnalyticsModuleImpl.js +2 -2
- package/dist/modules/PermissionsModuleImpl.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import { AnalyticsEvent } from "./AnalyticsEvent";
|
|
2
|
+
export interface EventInfo {
|
|
3
|
+
clientId: string;
|
|
4
|
+
pageUrl: string;
|
|
5
|
+
metricName: string;
|
|
6
|
+
metricValue: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ErrorInfo {
|
|
9
|
+
clientId: string;
|
|
10
|
+
pageUrl: string;
|
|
11
|
+
stackTrace: string;
|
|
12
|
+
statusCode: number;
|
|
13
|
+
}
|
|
2
14
|
export interface AnalyticsModule {
|
|
3
15
|
pushEvent: (event: AnalyticsEvent) => void;
|
|
4
16
|
forceFlushEvents: () => void;
|
|
5
|
-
logPerformanceMetrics: (eventInfo:
|
|
6
|
-
logPageError: (errorInfo:
|
|
17
|
+
logPerformanceMetrics: (eventInfo: EventInfo) => void;
|
|
18
|
+
logPageError: (errorInfo: ErrorInfo) => void;
|
|
7
19
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NativeModule, NativeModuleManager } from "../managers/NativeModuleHelper";
|
|
2
2
|
import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager";
|
|
3
3
|
import { AnalyticsEvent } from "../analytics/interfaces/AnalyticsEvent";
|
|
4
|
-
import { AnalyticsModule } from "../analytics/interfaces/AnalyticsModule";
|
|
4
|
+
import { AnalyticsModule, EventInfo, ErrorInfo } from "../analytics/interfaces/AnalyticsModule";
|
|
5
5
|
export declare class AnalyticsModuleImpl extends NativeModule<NativeModuleManager> implements AnalyticsModule {
|
|
6
6
|
constructor(nativeModuleCallbackManager: NativeModuleCallbackManager);
|
|
7
7
|
pushEvent(event: AnalyticsEvent): void;
|
|
8
8
|
forceFlushEvents(): void;
|
|
9
|
-
logPerformanceMetrics(eventInfo:
|
|
10
|
-
logPageError(errorInfo:
|
|
9
|
+
logPerformanceMetrics(eventInfo: EventInfo): void;
|
|
10
|
+
logPageError(errorInfo: ErrorInfo): void;
|
|
11
11
|
}
|
|
@@ -55,7 +55,7 @@ var AnalyticsModuleImpl = /** @class */ (function (_super) {
|
|
|
55
55
|
_this.postMessage({
|
|
56
56
|
methodName: "logPerformanceMetrics",
|
|
57
57
|
requestId: requestId,
|
|
58
|
-
eventInfo: eventInfo
|
|
58
|
+
eventInfo: JSON.stringify(eventInfo)
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
};
|
|
@@ -65,7 +65,7 @@ var AnalyticsModuleImpl = /** @class */ (function (_super) {
|
|
|
65
65
|
_this.postMessage({
|
|
66
66
|
methodName: "logPageError",
|
|
67
67
|
requestId: requestId,
|
|
68
|
-
errorInfo: errorInfo
|
|
68
|
+
errorInfo: JSON.stringify(errorInfo)
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
};
|
|
@@ -41,7 +41,7 @@ var PermissionsModuleImpl = /** @class */ (function (_super) {
|
|
|
41
41
|
var _this = this;
|
|
42
42
|
return this.nativeModuleCallbackManager.executeOnBridge(function (requestId) {
|
|
43
43
|
_this.postMessage({
|
|
44
|
-
methodName: "
|
|
44
|
+
methodName: "getUltraPlusToken",
|
|
45
45
|
requestId: requestId
|
|
46
46
|
});
|
|
47
47
|
});
|