@24i/bigscreen-sdk 1.0.35-alpha.2590 → 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.2590",
3
+ "version": "1.0.35-alpha.2592",
4
4
  "description": "SmartApps BIGscreen SDK monorepo",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -68,18 +68,26 @@ export class TealiumAnalytics implements AnalyticsClient {
68
68
  return;
69
69
  }
70
70
  const {
71
- datasource, entity, language, account, profile, property_id: propertyId,
71
+ datasource,
72
+ entity,
73
+ language,
74
+ account,
75
+ profile,
76
+ environment,
77
+ property_id: propertyId,
78
+ short_language_service: shortLanguageService,
72
79
  } = options;
73
80
  this.constantPayload = {
74
81
  tealium_account: account,
75
82
  tealium_profile: profile,
83
+ tealium_environment: environment,
76
84
  tealium_datasource: datasource,
77
85
  instance: TEALIUM_INSTANCE,
78
86
  language,
79
87
  language_service: `${entity} ${language}`,
80
88
  entity,
81
89
  property_id: `${propertyId}`,
82
- short_language_service: language,
90
+ short_language_service: shortLanguageService,
83
91
  platform_short: BIGSCREEN_PLATFORM_SHORT,
84
92
  platform_type: BIGSCREEN_PLATFORM_TYPE,
85
93
  app_type: BIGSCREEN_APP_TYPE,
@@ -26,11 +26,23 @@ export const MEDIA_PAYLOAD: Payload = {
26
26
  searchTerm: '',
27
27
  itemId: '',
28
28
  message: 'error message',
29
+ section: 'BROWSE',
30
+ subcontentType: '',
31
+ };
32
+
33
+ export const TEALIUM_PAGEINFO_PAYLOAD = {
34
+ categories: '',
35
+ content_type: 'video',
36
+ page_name: '',
37
+ page_title: '',
38
+ section: '',
39
+ subcontent_type: '',
29
40
  };
30
41
 
31
42
  export const TEALIUM_STATIC_CORE_PAYLOAD = {
32
43
  tealium_account: 'bbg',
33
44
  tealium_profile: 'main',
45
+ tealium_environment: 'dev',
34
46
  tealium_datasource: 'abc',
35
47
  app_id: 'rfe russian v1.0-test',
36
48
  app_type: 'HTML5',
@@ -42,7 +54,7 @@ export const TEALIUM_STATIC_CORE_PAYLOAD = {
42
54
  platform_short: 'o',
43
55
  platform_type: 'ott',
44
56
  property_id: '414',
45
- short_language_service: 'russian',
57
+ short_language_service: 'rus',
46
58
  };
47
59
 
48
60
  export const TEALIUM_MEDIA_PAYLOAD = {
@@ -4,7 +4,16 @@ export const mapMediaPayload = (
4
4
  payload: Payload,
5
5
  ): TeaMediaResult => {
6
6
  const {
7
- duration, currentTime, title, url, contentType, assetId,
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 || '',
@@ -12,10 +21,16 @@ export const mapMediaPayload = (
12
21
  video_position: currentTime,
13
22
  media_type: contentType,
14
23
  canonical_url: url || '',
15
- video_series_title: '',
16
24
  byline: 'N/A',
17
- pub_date: '',
25
+ pub_date: pubDate || '',
18
26
  article_uid: assetId,
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
  };
@@ -12,6 +12,7 @@ export const mapSceneView = (
12
12
  page_title: payload.sceneName || '',
13
13
  page_name: payload.sceneName || '',
14
14
  content_type: payload.sceneType || '',
15
- section: payload.sceneType || '',
16
- categories: payload.sceneName,
15
+ section: payload.section || '',
16
+ categories: payload.sceneId,
17
+ subcontent_type: payload.subcontentType || '',
17
18
  });
@@ -55,9 +55,16 @@ export type SearchInfo = {
55
55
  searchSuccess?: boolean,
56
56
  };
57
57
 
58
+ export type SubPageInfo = {
59
+ section: string,
60
+ subcontentType?: string,
61
+ pubDate?: string,
62
+ };
63
+
58
64
  export type Payload = CorePayload &
59
65
  AppInfo &
60
66
  SceneInfo &
67
+ SubPageInfo &
61
68
  PlayerSession &
62
69
  VideoProgress &
63
70
  SessionInfo &
@@ -73,6 +80,7 @@ export type EventMappingFunction = (
73
80
  export type TeaStaticCoreResult = {
74
81
  tealium_account: string,
75
82
  tealium_profile: string,
83
+ tealium_environment?: string,
76
84
  tealium_datasource?: string,
77
85
  instance?: string,
78
86
  app_id: string;
@@ -93,7 +101,16 @@ export type TeaCoreResult = {
93
101
  track_event_type: TeaTrackEventType,
94
102
  };
95
103
 
96
- 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 & {
97
114
  video_name: string,
98
115
  video_length: number,
99
116
  video_position: number,
@@ -106,13 +123,7 @@ export type TeaMediaResult = {
106
123
  tags: string,
107
124
  };
108
125
 
109
- export type TeaSceneViewResult = TeaCoreResult & {
110
- page_title: string,
111
- page_name: string,
112
- content_type: string,
113
- section: string,
114
- categories: string,
115
- };
126
+ export type TeaSceneViewResult = TeaCoreResult & TeaPageResult;
116
127
 
117
128
  export type TeaVideoResult = TeaCoreResult & TeaMediaResult & {
118
129
  video_event?: string,