@24i/bigscreen-sdk 1.0.54-alpha.2822 → 1.0.54-alpha.2823

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.54-alpha.2822",
3
+ "version": "1.0.54-alpha.2823",
4
4
  "description": "SmartApps BIGscreen SDK monorepo",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,6 +26,7 @@ export class TwentyFourIQClient implements AnalyticsClient {
26
26
  deviceId: '',
27
27
  manufacturer: '',
28
28
  platform: '',
29
+ deviceModel: '',
29
30
  };
30
31
 
31
32
  sessionTimeout = createTimeout();
@@ -42,6 +43,7 @@ export class TwentyFourIQClient implements AnalyticsClient {
42
43
  this.constantPayload.deviceId = await device.getUuid();
43
44
  this.constantPayload.manufacturer = await device.getManufacturerName();
44
45
  this.constantPayload.platform = await device.getPlatformName();
46
+ this.constantPayload.deviceModel = await device.getModelName();
45
47
  this.constantPayload.appVersion = this.appVersion;
46
48
  await this.startSession();
47
49
  }
@@ -10,6 +10,7 @@ export const mapAdEvent = (
10
10
  action: triggerName,
11
11
  event_trigger: triggerName,
12
12
  ad_id: payload.adId || '',
13
+ ad_name: payload.adName || '',
13
14
  ad_position: payload.adType || '',
14
15
  ad_playback_position: payload.adPosition || '',
15
16
  ad_playback_duration: payload.adDuration || '',
@@ -6,11 +6,13 @@ export const mapBase = (payload: Payload): BaseResult => {
6
6
  const timestampDate = time.getCurrentTime();
7
7
  const formattedTimestamp = getTimezoneOffsetString();
8
8
  return {
9
+ application_version: payload.appVersion || '',
9
10
  session_id: payload.sessionId.toString(),
10
11
  timestamp_initiated: formatDateTime(timestampDate),
11
12
  device_id: payload.deviceId,
12
13
  device_type: 'SmartTV',
13
14
  device_platform: payload.platform || '',
15
+ device_model: payload.deviceModel || '',
14
16
  device_manufacturer: payload.manufacturer || '',
15
17
  device_timezone: formattedTimestamp,
16
18
  service_id: payload.serviceId || '',
@@ -29,6 +29,7 @@ export interface DeviceInfo {
29
29
  manufacturer: string,
30
30
  platform: string,
31
31
  deviceId: string,
32
+ deviceModel: string,
32
33
  }
33
34
 
34
35
  export interface SceneInfo {
@@ -39,6 +40,7 @@ export interface SceneInfo {
39
40
 
40
41
  export interface AdInfo {
41
42
  adId: string;
43
+ adName: string;
42
44
  adType: AdType;
43
45
  adDuration: string;
44
46
  adPosition: string;
@@ -60,12 +62,14 @@ export type EventMappingFunction = (
60
62
  ) => AnyPayload | void;
61
63
 
62
64
  export type BaseResult = {
65
+ application_version: string,
63
66
  session_id: string;
64
67
  timestamp_initiated: string;
65
68
  device_id: string;
66
69
  device_type: string;
67
70
  device_platform: string;
68
71
  device_manufacturer: string;
72
+ device_model: string;
69
73
  device_timezone: string;
70
74
  service_id: string;
71
75
  user_id?: string;
@@ -118,6 +122,7 @@ export type PlayerCloseResult = VideoBaseResult;
118
122
 
119
123
  export type AdEventResult = CoreResult & {
120
124
  ad_id: string;
125
+ ad_name: string;
121
126
  ad_position: AdType;
122
127
  ad_playback_position: string;
123
128
  ad_playback_duration: string;
@@ -1,25 +0,0 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
- "configurations": [
7
- {
8
- "name": "Tizen .NET Debug (netcoredbg)",
9
- "type": "tizen-netcoredbg",
10
- "request": "launch",
11
- "projectInfo": "${command:getProjectInfo}",
12
- "port": 4711
13
- },
14
- {
15
- "name": "Tizen Native Debug: Launch (gdb)",
16
- "type": "cppdbg",
17
- "request": "launch",
18
- "program": "${command:tizen-get-native-exec}",
19
- "MIMode": "gdb",
20
- "cwd": "${workspaceRoot}",
21
- "miDebuggerPath": "${command:tizen-get-gdb-path}",
22
- "miDebuggerServerAddress": ":1234"
23
- }
24
- ]
25
- }