@streamscloud/streams-analytics-collector 2.0.1 → 2.0.2
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppEventType, CommunityMessageStatus } from './types.js';
|
|
2
|
-
import
|
|
2
|
+
import ExternalTrackAppEvent from '../analytics.graphql.js';
|
|
3
3
|
import { ViewportVisibilityTracker } from './ViewportVisibilityTracker.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -277,7 +277,7 @@ class AppEventsTracker {
|
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
279
|
await this.client
|
|
280
|
-
.mutation(
|
|
280
|
+
.mutation(ExternalTrackAppEvent, { input })
|
|
281
281
|
.toPromise();
|
|
282
282
|
}
|
|
283
283
|
else {
|
|
@@ -285,7 +285,7 @@ class AppEventsTracker {
|
|
|
285
285
|
console.warn('An attempt to save app event without initializing GraphQL endpoint detected');
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
|
-
await this.queryGql(
|
|
288
|
+
await this.queryGql(ExternalTrackAppEvent, { input });
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
static queryGql = async (query, variables) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ExternalTrackAppEvent = "mutation ExternalTrackAppEvent($input: ExternalTrackAppEventInput!) {\n externalTrackAppEvent(input: $input) {\n void\n }\n}\n\nmutation TrackAppEvent($input: TrackAppEventInput!) {\n trackAppEvent(input: $input) {\n void\n }\n}\n";
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { ExternalTrackAppEvent as default };
|