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

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.2591",
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,14 @@ export const MEDIA_PAYLOAD: Payload = {
26
26
  searchTerm: '',
27
27
  itemId: '',
28
28
  message: 'error message',
29
+ section: 'BROWSE',
30
+ subcontentType: '',
29
31
  };
30
32
 
31
33
  export const TEALIUM_STATIC_CORE_PAYLOAD = {
32
34
  tealium_account: 'bbg',
33
35
  tealium_profile: 'main',
36
+ tealium_environment: 'dev',
34
37
  tealium_datasource: 'abc',
35
38
  app_id: 'rfe russian v1.0-test',
36
39
  app_type: 'HTML5',
@@ -42,7 +45,7 @@ export const TEALIUM_STATIC_CORE_PAYLOAD = {
42
45
  platform_short: 'o',
43
46
  platform_type: 'ott',
44
47
  property_id: '414',
45
- short_language_service: 'russian',
48
+ short_language_service: 'rus',
46
49
  };
47
50
 
48
51
  export const TEALIUM_MEDIA_PAYLOAD = {
@@ -4,7 +4,7 @@ export const mapMediaPayload = (
4
4
  payload: Payload,
5
5
  ): TeaMediaResult => {
6
6
  const {
7
- duration, currentTime, title, url, contentType, assetId,
7
+ duration, currentTime, title, url, contentType, assetId, seriesTitle,
8
8
  } = payload;
9
9
  return {
10
10
  video_name: title || '',
@@ -12,10 +12,10 @@ export const mapMediaPayload = (
12
12
  video_position: currentTime,
13
13
  media_type: contentType,
14
14
  canonical_url: url || '',
15
- video_series_title: '',
16
15
  byline: 'N/A',
17
16
  pub_date: '',
18
17
  article_uid: assetId,
18
+ video_series_title: seriesTitle || '',
19
19
  tags: '',
20
20
  };
21
21
  };
@@ -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,15 @@ export type SearchInfo = {
55
55
  searchSuccess?: boolean,
56
56
  };
57
57
 
58
+ export type SubPageInfo = {
59
+ section: string,
60
+ subcontentType?: string,
61
+ };
62
+
58
63
  export type Payload = CorePayload &
59
64
  AppInfo &
60
65
  SceneInfo &
66
+ SubPageInfo &
61
67
  PlayerSession &
62
68
  VideoProgress &
63
69
  SessionInfo &
@@ -73,6 +79,7 @@ export type EventMappingFunction = (
73
79
  export type TeaStaticCoreResult = {
74
80
  tealium_account: string,
75
81
  tealium_profile: string,
82
+ tealium_environment?: string,
76
83
  tealium_datasource?: string,
77
84
  instance?: string,
78
85
  app_id: string;
@@ -112,6 +119,7 @@ export type TeaSceneViewResult = TeaCoreResult & {
112
119
  content_type: string,
113
120
  section: string,
114
121
  categories: string,
122
+ subcontent_type?: string;
115
123
  };
116
124
 
117
125
  export type TeaVideoResult = TeaCoreResult & TeaMediaResult & {