@24i/bigscreen-sdk 1.0.51 → 1.0.52
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/package.json +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapAdLoaded.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapAdSkipped.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapBuffering.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapPlayerClose.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapPlayerOpen.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapSceneView.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapScroll.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoComplete.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoPause.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoProgress.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoStart.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoStop.ts +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/types.ts +7 -7
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export const mapAdLoaded = (triggerName: AnalyticsTriggers, payload: Payload): A
|
|
|
7
7
|
action: triggerName,
|
|
8
8
|
event_trigger: triggerName,
|
|
9
9
|
thing_id: payload.assetId || '',
|
|
10
|
-
attribution_id: payload.attributionId ||
|
|
10
|
+
attribution_id: payload.attributionId || '',
|
|
11
11
|
player_advertisment_name: '', // TODO: adPayload?.adName,
|
|
12
12
|
player_advertisment_position: 0, // TODO: adPayload?.adPosition,
|
|
13
13
|
});
|
|
@@ -10,7 +10,7 @@ export const mapAdSkipped = (
|
|
|
10
10
|
action: triggerName,
|
|
11
11
|
event_trigger: triggerName,
|
|
12
12
|
thing_id: payload.assetId || '',
|
|
13
|
-
attribution_id: payload.attributionId ||
|
|
13
|
+
attribution_id: payload.attributionId || '',
|
|
14
14
|
player_advertisment_name: '', // TODO: adPayload?.adName,
|
|
15
15
|
player_advertisment_position: 0, // TODO: adPayload?.adPosition,
|
|
16
16
|
});
|
|
@@ -17,7 +17,7 @@ export const mapPlayerClose = (
|
|
|
17
17
|
action: EVENTS.PLAYER_CLOSE,
|
|
18
18
|
event_trigger: triggerName,
|
|
19
19
|
thing_id: payload.assetId || '',
|
|
20
|
-
attribution_id: payload.attributionId ||
|
|
20
|
+
attribution_id: payload.attributionId || '',
|
|
21
21
|
duration,
|
|
22
22
|
progress_pct: progressPercent,
|
|
23
23
|
};
|
|
@@ -12,6 +12,6 @@ export const mapPlayerOpen = (
|
|
|
12
12
|
event_trigger: triggerName,
|
|
13
13
|
source_page: DefaultScreens.PLAYBACK,
|
|
14
14
|
thing_id: payload.assetId || '',
|
|
15
|
-
attribution_id: payload.attributionId ||
|
|
15
|
+
attribution_id: payload.attributionId || '',
|
|
16
16
|
source_rail: '', // TODO: payload.payload.asset.sectionLabel,
|
|
17
17
|
});
|
|
@@ -11,7 +11,7 @@ export const mapScroll = (triggerName: AnalyticsTriggers, payload: Payload): Scr
|
|
|
11
11
|
event_trigger: triggerName,
|
|
12
12
|
source_page: payload.sceneName,
|
|
13
13
|
thing_id: payload.assetId || '',
|
|
14
|
-
attribution_id: payload.attributionId ||
|
|
14
|
+
attribution_id: payload.attributionId || '',
|
|
15
15
|
percent_scrolled: percentScrolled,
|
|
16
16
|
};
|
|
17
17
|
};
|
|
@@ -14,7 +14,7 @@ export const mapVideoComplete = (
|
|
|
14
14
|
action: EVENTS.VIDEO_COMPLETE,
|
|
15
15
|
event_trigger: triggerName,
|
|
16
16
|
thing_id: payload.assetId || '',
|
|
17
|
-
attribution_id: payload.attributionId ||
|
|
17
|
+
attribution_id: payload.attributionId || '',
|
|
18
18
|
progress_pct: 90,
|
|
19
19
|
duration: assetDuration,
|
|
20
20
|
};
|
|
@@ -17,7 +17,7 @@ export const mapVideoPause = (
|
|
|
17
17
|
action: EVENTS.VIDEO_PAUSE,
|
|
18
18
|
event_trigger: triggerName,
|
|
19
19
|
thing_id: payload.assetId || '',
|
|
20
|
-
attribution_id: payload.attributionId ||
|
|
20
|
+
attribution_id: payload.attributionId || '',
|
|
21
21
|
duration: overallDuration,
|
|
22
22
|
progress_pct: progressPercent,
|
|
23
23
|
};
|
|
@@ -17,7 +17,7 @@ export const mapVideoProgress = (
|
|
|
17
17
|
action: EVENTS.VIDEO_PROGRESS,
|
|
18
18
|
event_trigger: triggerName,
|
|
19
19
|
thing_id: payload.assetId || '',
|
|
20
|
-
attribution_id: payload.attributionId ||
|
|
20
|
+
attribution_id: payload.attributionId || '',
|
|
21
21
|
progress_pct: progressPercent,
|
|
22
22
|
duration: durationInSeconds,
|
|
23
23
|
};
|
|
@@ -25,7 +25,7 @@ export const mapVideoStart = (
|
|
|
25
25
|
action: EVENTS.VIDEO_START,
|
|
26
26
|
event_trigger: triggerName,
|
|
27
27
|
thing_id: payload.assetId || '',
|
|
28
|
-
attribution_id: payload.attributionId ||
|
|
28
|
+
attribution_id: payload.attributionId || '',
|
|
29
29
|
duration: assetDuration,
|
|
30
30
|
progress_pct: progressPercent,
|
|
31
31
|
source_page: DefaultScreens.PLAYBACK,
|
|
@@ -23,7 +23,7 @@ export const mapVideoStop = (
|
|
|
23
23
|
action: EVENTS.VIDEO_STOP,
|
|
24
24
|
event_trigger: triggerName,
|
|
25
25
|
thing_id: payload.assetId || '',
|
|
26
|
-
attribution_id: payload.attributionId ||
|
|
26
|
+
attribution_id: payload.attributionId || '',
|
|
27
27
|
progress_pct: progressPercent,
|
|
28
28
|
duration,
|
|
29
29
|
source_page: DefaultScreens.PLAYBACK,
|
|
@@ -67,7 +67,7 @@ export type CoreResult = BaseResult & {
|
|
|
67
67
|
export type SceneViewResult = CoreResult & {
|
|
68
68
|
source_page: string;
|
|
69
69
|
thing_id: string;
|
|
70
|
-
attribution_id: string
|
|
70
|
+
attribution_id: string;
|
|
71
71
|
};
|
|
72
72
|
export type BufferingResult = SceneViewResult;
|
|
73
73
|
|
|
@@ -76,21 +76,21 @@ export type ScrollResult = SceneViewResult & {
|
|
|
76
76
|
};
|
|
77
77
|
export type VideoProgressResult = CoreResult & {
|
|
78
78
|
thing_id: string;
|
|
79
|
-
attribution_id: string
|
|
79
|
+
attribution_id: string;
|
|
80
80
|
progress_pct: number;
|
|
81
81
|
duration: number;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
84
|
export type PlayerOpenResult = CoreResult & {
|
|
85
85
|
thing_id: string;
|
|
86
|
-
attribution_id: string
|
|
86
|
+
attribution_id: string;
|
|
87
87
|
source_page: string;
|
|
88
88
|
source_rail?: string | null;
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
export type VideoStartResult = CoreResult & {
|
|
92
92
|
thing_id: string;
|
|
93
|
-
attribution_id: string
|
|
93
|
+
attribution_id: string;
|
|
94
94
|
duration: number;
|
|
95
95
|
progress_pct: number;
|
|
96
96
|
source_page: string;
|
|
@@ -99,21 +99,21 @@ export type VideoStartResult = CoreResult & {
|
|
|
99
99
|
|
|
100
100
|
export type VideoPauseResult = CoreResult & {
|
|
101
101
|
thing_id: string;
|
|
102
|
-
attribution_id: string
|
|
102
|
+
attribution_id: string;
|
|
103
103
|
duration: number;
|
|
104
104
|
progress_pct: number;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
export type AdLoadedResult = CoreResult & {
|
|
108
108
|
thing_id: string;
|
|
109
|
-
attribution_id: string
|
|
109
|
+
attribution_id: string;
|
|
110
110
|
player_advertisment_name: string;
|
|
111
111
|
player_advertisment_position: number;
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
export type AdSkippedResult = CoreResult & {
|
|
115
115
|
thing_id: string;
|
|
116
|
-
attribution_id: string
|
|
116
|
+
attribution_id: string;
|
|
117
117
|
player_advertisment_name: string;
|
|
118
118
|
player_advertisment_position: number;
|
|
119
119
|
};
|