@24i/bigscreen-sdk 1.0.35-alpha.2591 → 1.0.35-alpha.2592

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/bigscreen-sdk",
3
- "version": "1.0.35-alpha.2591",
3
+ "version": "1.0.35-alpha.2592",
4
4
  "description": "SmartApps BIGscreen SDK monorepo",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,6 +30,15 @@ export const MEDIA_PAYLOAD: Payload = {
30
30
  subcontentType: '',
31
31
  };
32
32
 
33
+ export const TEALIUM_PAGEINFO_PAYLOAD = {
34
+ categories: '',
35
+ content_type: 'video',
36
+ page_name: '',
37
+ page_title: '',
38
+ section: '',
39
+ subcontent_type: '',
40
+ };
41
+
33
42
  export const TEALIUM_STATIC_CORE_PAYLOAD = {
34
43
  tealium_account: 'bbg',
35
44
  tealium_profile: 'main',
@@ -4,7 +4,16 @@ export const mapMediaPayload = (
4
4
  payload: Payload,
5
5
  ): TeaMediaResult => {
6
6
  const {
7
- duration, currentTime, title, url, contentType, assetId, seriesTitle,
7
+ duration,
8
+ currentTime,
9
+ title,
10
+ url,
11
+ contentType,
12
+ assetId,
13
+ pubDate,
14
+ seriesTitle,
15
+ sceneName,
16
+ sceneId,
8
17
  } = payload;
9
18
  return {
10
19
  video_name: title || '',
@@ -13,9 +22,15 @@ export const mapMediaPayload = (
13
22
  media_type: contentType,
14
23
  canonical_url: url || '',
15
24
  byline: 'N/A',
16
- pub_date: '',
25
+ pub_date: pubDate || '',
17
26
  article_uid: assetId,
18
27
  video_series_title: seriesTitle || '',
19
28
  tags: '',
29
+ page_title: sceneName || '',
30
+ page_name: sceneName || '',
31
+ content_type: 'video',
32
+ section: seriesTitle || '',
33
+ categories: sceneId,
34
+ subcontent_type: seriesTitle || '',
20
35
  };
21
36
  };
@@ -58,6 +58,7 @@ export type SearchInfo = {
58
58
  export type SubPageInfo = {
59
59
  section: string,
60
60
  subcontentType?: string,
61
+ pubDate?: string,
61
62
  };
62
63
 
63
64
  export type Payload = CorePayload &
@@ -100,7 +101,16 @@ export type TeaCoreResult = {
100
101
  track_event_type: TeaTrackEventType,
101
102
  };
102
103
 
103
- export type TeaMediaResult = {
104
+ export type TeaPageResult = {
105
+ page_title: string,
106
+ page_name: string,
107
+ content_type: string,
108
+ section: string,
109
+ categories: string,
110
+ subcontent_type?: string;
111
+ };
112
+
113
+ export type TeaMediaResult = TeaPageResult & {
104
114
  video_name: string,
105
115
  video_length: number,
106
116
  video_position: number,
@@ -113,14 +123,7 @@ export type TeaMediaResult = {
113
123
  tags: string,
114
124
  };
115
125
 
116
- export type TeaSceneViewResult = TeaCoreResult & {
117
- page_title: string,
118
- page_name: string,
119
- content_type: string,
120
- section: string,
121
- categories: string,
122
- subcontent_type?: string;
123
- };
126
+ export type TeaSceneViewResult = TeaCoreResult & TeaPageResult;
124
127
 
125
128
  export type TeaVideoResult = TeaCoreResult & TeaMediaResult & {
126
129
  video_event?: string,