@schibsted/pulse-sdk 8.0.0-rc.20 → 8.0.0-rc.21

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.
Files changed (74) hide show
  1. package/dist/cjs/Tracker.js +170 -334
  2. package/dist/cjs/builders/session-browser.js +4 -79
  3. package/dist/cjs/session/store.js +96 -0
  4. package/dist/cjs/tpaas-builders/builders/device.js +42 -70
  5. package/dist/cjs/tpaas-builders/builders/pageInfo.js +2 -3
  6. package/dist/cjs/tpaas-builders/builders/session.js +2 -114
  7. package/dist/cjs/tpaas-builders/builders/utm.js +2 -8
  8. package/dist/cjs/tpaas-builders/builders.js +135 -148
  9. package/dist/cjs/tpaas-context/adapters.js +85 -0
  10. package/dist/cjs/tpaas-context/browser.js +51 -0
  11. package/dist/cjs/tpaas-context/index.js +6 -0
  12. package/dist/cjs/tpaas-context/prepare.js +177 -0
  13. package/dist/cjs/tpaas-context/session.js +23 -0
  14. package/dist/cjs/tpaas-schemas/constants.js +68 -75
  15. package/dist/cjs/tracker-proxy/consts.js +1 -2
  16. package/dist/cjs/version.js +1 -1
  17. package/dist/ejs/Tracker.js +171 -335
  18. package/dist/ejs/builders/session-browser.js +4 -77
  19. package/dist/ejs/session/store.js +90 -0
  20. package/dist/ejs/tpaas-builders/builders/device.js +42 -70
  21. package/dist/ejs/tpaas-builders/builders/pageInfo.js +2 -3
  22. package/dist/ejs/tpaas-builders/builders/session.js +1 -111
  23. package/dist/ejs/tpaas-builders/builders/utm.js +2 -8
  24. package/dist/ejs/tpaas-builders/builders.js +135 -147
  25. package/dist/ejs/tpaas-context/adapters.js +80 -0
  26. package/dist/ejs/tpaas-context/browser.js +47 -0
  27. package/dist/ejs/tpaas-context/index.js +1 -0
  28. package/dist/ejs/tpaas-context/prepare.js +137 -0
  29. package/dist/ejs/tpaas-context/session.js +19 -0
  30. package/dist/ejs/tpaas-schemas/constants.js +66 -73
  31. package/dist/ejs/tracker-proxy/consts.js +1 -2
  32. package/dist/ejs/version.js +1 -1
  33. package/dist/types/Tracker.d.ts +27 -23
  34. package/dist/types/builders/session-browser.d.ts +0 -13
  35. package/dist/types/session/store.d.ts +34 -0
  36. package/dist/types/tpaas-builders/builders/consents.d.ts +2 -2
  37. package/dist/types/tpaas-builders/builders/device.d.ts +2 -2
  38. package/dist/types/tpaas-builders/builders/experiments.d.ts +2 -2
  39. package/dist/types/tpaas-builders/builders/pageInfo.d.ts +2 -1
  40. package/dist/types/tpaas-builders/builders/pageviewId.d.ts +2 -2
  41. package/dist/types/tpaas-builders/builders/provider.d.ts +2 -2
  42. package/dist/types/tpaas-builders/builders/session.d.ts +1 -12
  43. package/dist/types/tpaas-builders/builders/trackerBuilder.d.ts +2 -2
  44. package/dist/types/tpaas-builders/builders/user.d.ts +2 -2
  45. package/dist/types/tpaas-builders/builders/utm.d.ts +2 -1
  46. package/dist/types/tpaas-builders/builders.d.ts +70 -70
  47. package/dist/types/tpaas-builders/index.d.ts +0 -1
  48. package/dist/types/tpaas-context/adapters.d.ts +26 -0
  49. package/dist/types/tpaas-context/browser.d.ts +8 -0
  50. package/dist/types/tpaas-context/index.d.ts +2 -0
  51. package/dist/types/tpaas-context/prepare.d.ts +38 -0
  52. package/dist/types/tpaas-context/session.d.ts +10 -0
  53. package/dist/types/tpaas-context/types.d.ts +66 -0
  54. package/dist/types/tpaas-schemas/constants.d.ts +66 -73
  55. package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +2 -4
  56. package/dist/types/tpaas-schemas/types/schemas/{IAnonymousViewUIElement.d.ts → IAnonymousImpressionUIElement.d.ts} +2 -2
  57. package/dist/types/tpaas-schemas/types/schemas/IEngagementAudio.d.ts +6 -2
  58. package/dist/types/tpaas-schemas/types/schemas/IEngagementTeaser.d.ts +2 -2
  59. package/dist/types/tpaas-schemas/types/schemas/IEngagementTvModule.d.ts +4 -1
  60. package/dist/types/tpaas-schemas/types/schemas/IEngagementTvSearch.d.ts +4 -4
  61. package/dist/types/tpaas-schemas/types/schemas/IEngagementVideo.d.ts +6 -2
  62. package/dist/types/tpaas-schemas/types/schemas/IEngagementVideoAd.d.ts +10 -8
  63. package/dist/types/tpaas-schemas/types/schemas/IImpressionTeaser.d.ts +2 -2
  64. package/dist/types/tpaas-schemas/types/schemas/ILeaveWeather.d.ts +2 -0
  65. package/dist/types/tpaas-schemas/types/schemas/index.d.ts +1 -2
  66. package/dist/types/tpaas-schemas/types.d.ts +2 -2
  67. package/dist/types/tracker-proxy/consts.d.ts +1 -1
  68. package/dist/types/types.d.ts +2 -4
  69. package/dist/types/version.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/dist/types/tpaas-builders/types.d.ts +0 -36
  72. package/dist/types/tpaas-schemas/types/schemas/IRequestAd.d.ts +0 -95
  73. /package/dist/cjs/{tpaas-builders → tpaas-context}/types.js +0 -0
  74. /package/dist/ejs/{tpaas-builders → tpaas-context}/types.js +0 -0
@@ -1,455 +1,448 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViewError = exports.ViewAudioPage = exports.ViewArticle = exports.RequestAd = exports.LoadAd = exports.LeaveWeather = exports.LeaveVideoPage = exports.LeaveSportsPage = exports.LeaveSchoolPage = exports.LeavePage = exports.LeaveLockedVideoPage = exports.LeaveLockedPage = exports.LeaveLockedAudioPage = exports.LeaveLockedArticle = exports.LeaveListing = exports.LeaveLandingpage = exports.LeaveFrontpage = exports.LeaveError = exports.LeaveAudioPage = exports.LeaveArticle = exports.ImpressionWidget = exports.ImpressionUIElement = exports.ImpressionTeaser = exports.ImpressionSportsUIElement = exports.ImpressionSchoolUIElement = exports.ImpressionPlayer = exports.ImpressionOffer = exports.ImpressionHealthUIElement = exports.ImpressionForm = exports.ImpressionAffiliate = exports.ImpressionAdSlot = exports.ImpressionAd = exports.HeartbeatCommercialArticle = exports.EngagementWidget = exports.EngagementVideoAd = exports.EngagementVideo = exports.EngagementUIElement = exports.EngagementTvSearch = exports.EngagementTvModule = exports.EngagementTeaser = exports.EngagementSportsUIElement = exports.EngagementSchoolUIElement = exports.EngagementOffer = exports.EngagementHealthUIElement = exports.EngagementForm = exports.EngagementAudio = exports.EngagementAffiliate = exports.EngagementAd = exports.CompletedHealthAction = exports.AnonymousViewUIElement = void 0;
4
- exports.CATALOG_VERSION = exports.UTM_MEDIUM_VALUES = exports.REGION_VALUES = exports.TRACKER_TYPE_VALUES = exports.ROUTING_STAGE_VALUES = exports.COLOR_SCHEME_VALUES = exports.SPORT_EVENT_STATUS_VALUES = exports.SPORT_EVENT_COVERAGE_VALUES = exports.STAGE_VALUES = exports.PRIMARY_AXIS_VALUES = exports.FOLD_POSITION_VALUES = exports.COLUMN_NAME_VALUES = exports.PAGE_TYPE_VALUES = exports.PHYSICAL_ACTIVITY_TYPE_VALUES = exports.UNIT_TYPE_VALUES = exports.FOOD_TYPE_VALUES = exports.ACTION_VALUES = exports.VIEWPORT_SIZE_VALUES = exports.SCREEN_ORIENTATION_VALUES = exports.OPERATING_SYSTEM_VALUES = exports.DEVICE_TYPE_VALUES = exports.CLIENT_TYPE_VALUES = exports.FORMAT_SUBTYPE_VALUES = exports.FORMAT_VALUES = exports.ACCESS_LEVEL_VALUES = exports.PERSONALIZATION_VALUES = exports.MARKETING_VALUES = exports.ANALYTICS_VALUES = exports.ADVERTISING_VALUES = exports.ViewWeather = exports.ViewVideoPage = exports.ViewTitle = exports.ViewSportsPage = exports.ViewSchoolPage = exports.ViewPage = exports.ViewLockedVideoPage = exports.ViewLockedPage = exports.ViewLockedAudioPage = exports.ViewLockedArticle = exports.ViewListing = exports.ViewLandingpage = exports.ViewHealthPage = exports.ViewFrontpage = void 0;
5
- exports.AnonymousViewUIElement = {
6
- eventType: 'AnonymousView',
3
+ exports.ViewFrontpage = exports.ViewError = exports.ViewAudioPage = exports.ViewArticle = exports.LoadAd = exports.LeaveWeather = exports.LeaveVideoPage = exports.LeaveSportsPage = exports.LeaveSchoolPage = exports.LeavePage = exports.LeaveLockedVideoPage = exports.LeaveLockedPage = exports.LeaveLockedAudioPage = exports.LeaveLockedArticle = exports.LeaveListing = exports.LeaveLandingpage = exports.LeaveFrontpage = exports.LeaveError = exports.LeaveAudioPage = exports.LeaveArticle = exports.ImpressionWidget = exports.ImpressionUIElement = exports.ImpressionTeaser = exports.ImpressionSportsUIElement = exports.ImpressionSchoolUIElement = exports.ImpressionPlayer = exports.ImpressionOffer = exports.ImpressionHealthUIElement = exports.ImpressionForm = exports.ImpressionAffiliate = exports.ImpressionAdSlot = exports.ImpressionAd = exports.HeartbeatCommercialArticle = exports.EngagementWidget = exports.EngagementVideoAd = exports.EngagementVideo = exports.EngagementUIElement = exports.EngagementTvSearch = exports.EngagementTvModule = exports.EngagementTeaser = exports.EngagementSportsUIElement = exports.EngagementSchoolUIElement = exports.EngagementOffer = exports.EngagementHealthUIElement = exports.EngagementForm = exports.EngagementAudio = exports.EngagementAffiliate = exports.EngagementAd = exports.CompletedHealthAction = exports.AnonymousImpressionUIElement = void 0;
4
+ exports.CATALOG_VERSION = exports.UTM_MEDIUM_VALUES = exports.REGION_VALUES = exports.TRACKER_TYPE_VALUES = exports.ROUTING_STAGE_VALUES = exports.COLOR_SCHEME_VALUES = exports.SPORT_EVENT_STATUS_VALUES = exports.SPORT_EVENT_COVERAGE_VALUES = exports.STAGE_VALUES = exports.PRIMARY_AXIS_VALUES = exports.FOLD_POSITION_VALUES = exports.COLUMN_NAME_VALUES = exports.PAGE_TYPE_VALUES = exports.PHYSICAL_ACTIVITY_TYPE_VALUES = exports.UNIT_TYPE_VALUES = exports.FOOD_TYPE_VALUES = exports.ACTION_VALUES = exports.VIEWPORT_SIZE_VALUES = exports.SCREEN_ORIENTATION_VALUES = exports.OPERATING_SYSTEM_VALUES = exports.DEVICE_TYPE_VALUES = exports.CLIENT_TYPE_VALUES = exports.FORMAT_SUBTYPE_VALUES = exports.FORMAT_VALUES = exports.ACCESS_LEVEL_VALUES = exports.PERSONALIZATION_VALUES = exports.MARKETING_VALUES = exports.ANALYTICS_VALUES = exports.ADVERTISING_VALUES = exports.ViewWeather = exports.ViewVideoPage = exports.ViewTitle = exports.ViewSportsPage = exports.ViewSchoolPage = exports.ViewPage = exports.ViewLockedVideoPage = exports.ViewLockedPage = exports.ViewLockedAudioPage = exports.ViewLockedArticle = exports.ViewListing = exports.ViewLandingpage = exports.ViewHealthPage = void 0;
5
+ exports.AnonymousImpressionUIElement = {
6
+ eventType: 'AnonymousImpression',
7
7
  isAnonymous: true,
8
8
  object: {
9
9
  objectType: 'UIElement',
10
10
  },
11
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/AnonymousViewUIElement.json',
11
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/AnonymousImpressionUIElement.json',
12
12
  };
13
13
  exports.CompletedHealthAction = {
14
14
  eventType: 'Completed',
15
15
  object: {
16
16
  objectType: 'HealthAction',
17
17
  },
18
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/CompletedHealthAction.json',
18
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/CompletedHealthAction.json',
19
19
  };
20
20
  exports.EngagementAd = {
21
21
  eventType: 'Engagement',
22
22
  object: {
23
23
  objectType: 'Ad',
24
24
  },
25
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAd.json',
25
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAd.json',
26
26
  };
27
27
  exports.EngagementAffiliate = {
28
28
  eventType: 'Engagement',
29
29
  object: {
30
30
  objectType: 'Affiliate',
31
31
  },
32
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAffiliate.json',
32
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAffiliate.json',
33
33
  };
34
34
  exports.EngagementAudio = {
35
35
  eventType: 'Engagement',
36
36
  object: {
37
37
  objectType: 'Audio',
38
38
  },
39
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAudio.json',
39
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAudio.json',
40
40
  };
41
41
  exports.EngagementForm = {
42
42
  eventType: 'Engagement',
43
43
  object: {
44
44
  objectType: 'Form',
45
45
  },
46
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementForm.json',
46
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementForm.json',
47
47
  };
48
48
  exports.EngagementHealthUIElement = {
49
49
  eventType: 'Engagement',
50
50
  object: {
51
51
  objectType: 'HealthUIElement',
52
52
  },
53
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementHealthUIElement.json',
53
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementHealthUIElement.json',
54
54
  };
55
55
  exports.EngagementOffer = {
56
56
  eventType: 'Engagement',
57
57
  object: {
58
58
  objectType: 'Offer',
59
59
  },
60
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementOffer.json',
60
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementOffer.json',
61
61
  };
62
62
  exports.EngagementSchoolUIElement = {
63
63
  eventType: 'Engagement',
64
64
  object: {
65
65
  objectType: 'SchoolUIElement',
66
66
  },
67
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementSchoolUIElement.json',
67
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementSchoolUIElement.json',
68
68
  };
69
69
  exports.EngagementSportsUIElement = {
70
70
  eventType: 'Engagement',
71
71
  object: {
72
72
  objectType: 'SportsUIElement',
73
73
  },
74
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementSportsUIElement.json',
74
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementSportsUIElement.json',
75
75
  };
76
76
  exports.EngagementTeaser = {
77
77
  eventType: 'Engagement',
78
78
  object: {
79
79
  objectType: 'Teaser',
80
80
  },
81
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTeaser.json',
81
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTeaser.json',
82
82
  };
83
83
  exports.EngagementTvModule = {
84
84
  eventType: 'Engagement',
85
85
  object: {
86
86
  objectType: 'TvModule',
87
87
  },
88
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTvModule.json',
88
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTvModule.json',
89
89
  };
90
90
  exports.EngagementTvSearch = {
91
91
  eventType: 'Engagement',
92
92
  object: {
93
93
  objectType: 'TvSearch',
94
94
  },
95
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTvSearch.json',
95
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTvSearch.json',
96
96
  };
97
97
  exports.EngagementUIElement = {
98
98
  eventType: 'Engagement',
99
99
  object: {
100
100
  objectType: 'UIElement',
101
101
  },
102
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementUIElement.json',
102
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementUIElement.json',
103
103
  };
104
104
  exports.EngagementVideo = {
105
105
  eventType: 'Engagement',
106
106
  object: {
107
107
  objectType: 'Video',
108
108
  },
109
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementVideo.json',
109
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementVideo.json',
110
110
  };
111
111
  exports.EngagementVideoAd = {
112
112
  eventType: 'Engagement',
113
113
  object: {
114
114
  objectType: 'VideoAd',
115
115
  },
116
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementVideoAd.json',
116
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementVideoAd.json',
117
117
  };
118
118
  exports.EngagementWidget = {
119
119
  eventType: 'Engagement',
120
120
  object: {
121
121
  objectType: 'Widget',
122
122
  },
123
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementWidget.json',
123
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementWidget.json',
124
124
  };
125
125
  exports.HeartbeatCommercialArticle = {
126
126
  eventType: 'Heartbeat',
127
127
  object: {
128
128
  objectType: 'CommercialArticle',
129
129
  },
130
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/HeartbeatCommercialArticle.json',
130
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/HeartbeatCommercialArticle.json',
131
131
  };
132
132
  exports.ImpressionAd = {
133
133
  eventType: 'Impression',
134
134
  object: {
135
135
  objectType: 'Ad',
136
136
  },
137
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAd.json',
137
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAd.json',
138
138
  };
139
139
  exports.ImpressionAdSlot = {
140
140
  eventType: 'Impression',
141
141
  object: {
142
142
  objectType: 'AdSlot',
143
143
  },
144
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAdSlot.json',
144
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAdSlot.json',
145
145
  };
146
146
  exports.ImpressionAffiliate = {
147
147
  eventType: 'Impression',
148
148
  object: {
149
149
  objectType: 'Affiliate',
150
150
  },
151
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAffiliate.json',
151
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAffiliate.json',
152
152
  };
153
153
  exports.ImpressionForm = {
154
154
  eventType: 'Impression',
155
155
  object: {
156
156
  objectType: 'Form',
157
157
  },
158
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionForm.json',
158
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionForm.json',
159
159
  };
160
160
  exports.ImpressionHealthUIElement = {
161
161
  eventType: 'Impression',
162
162
  object: {
163
163
  objectType: 'HealthUIElement',
164
164
  },
165
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionHealthUIElement.json',
165
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionHealthUIElement.json',
166
166
  };
167
167
  exports.ImpressionOffer = {
168
168
  eventType: 'Impression',
169
169
  object: {
170
170
  objectType: 'Offer',
171
171
  },
172
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionOffer.json',
172
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionOffer.json',
173
173
  };
174
174
  exports.ImpressionPlayer = {
175
175
  eventType: 'Impression',
176
176
  object: {
177
177
  objectType: 'Player',
178
178
  },
179
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionPlayer.json',
179
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionPlayer.json',
180
180
  };
181
181
  exports.ImpressionSchoolUIElement = {
182
182
  eventType: 'Impression',
183
183
  object: {
184
184
  objectType: 'SchoolUIElement',
185
185
  },
186
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionSchoolUIElement.json',
186
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionSchoolUIElement.json',
187
187
  };
188
188
  exports.ImpressionSportsUIElement = {
189
189
  eventType: 'Impression',
190
190
  object: {
191
191
  objectType: 'SportsUIElement',
192
192
  },
193
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionSportsUIElement.json',
193
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionSportsUIElement.json',
194
194
  };
195
195
  exports.ImpressionTeaser = {
196
196
  eventType: 'Impression',
197
197
  object: {
198
198
  objectType: 'Teaser',
199
199
  },
200
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionTeaser.json',
200
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionTeaser.json',
201
201
  };
202
202
  exports.ImpressionUIElement = {
203
203
  eventType: 'Impression',
204
204
  object: {
205
205
  objectType: 'UIElement',
206
206
  },
207
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionUIElement.json',
207
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionUIElement.json',
208
208
  };
209
209
  exports.ImpressionWidget = {
210
210
  eventType: 'Impression',
211
211
  object: {
212
212
  objectType: 'Widget',
213
213
  },
214
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionWidget.json',
214
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionWidget.json',
215
215
  };
216
216
  exports.LeaveArticle = {
217
217
  eventType: 'Leave',
218
218
  object: {
219
219
  objectType: 'Article',
220
220
  },
221
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveArticle.json',
221
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveArticle.json',
222
222
  };
223
223
  exports.LeaveAudioPage = {
224
224
  eventType: 'Leave',
225
225
  object: {
226
226
  objectType: 'AudioPage',
227
227
  },
228
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveAudioPage.json',
228
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveAudioPage.json',
229
229
  };
230
230
  exports.LeaveError = {
231
231
  eventType: 'Leave',
232
232
  object: {
233
233
  objectType: 'Error',
234
234
  },
235
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveError.json',
235
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveError.json',
236
236
  };
237
237
  exports.LeaveFrontpage = {
238
238
  eventType: 'Leave',
239
239
  object: {
240
240
  objectType: 'Frontpage',
241
241
  },
242
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveFrontpage.json',
242
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveFrontpage.json',
243
243
  };
244
244
  exports.LeaveLandingpage = {
245
245
  eventType: 'Leave',
246
246
  object: {
247
247
  objectType: 'Landingpage',
248
248
  },
249
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLandingpage.json',
249
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLandingpage.json',
250
250
  };
251
251
  exports.LeaveListing = {
252
252
  eventType: 'Leave',
253
253
  object: {
254
254
  objectType: 'Listing',
255
255
  },
256
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveListing.json',
256
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveListing.json',
257
257
  };
258
258
  exports.LeaveLockedArticle = {
259
259
  eventType: 'Leave',
260
260
  object: {
261
261
  objectType: 'LockedArticle',
262
262
  },
263
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedArticle.json',
263
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedArticle.json',
264
264
  };
265
265
  exports.LeaveLockedAudioPage = {
266
266
  eventType: 'Leave',
267
267
  object: {
268
268
  objectType: 'LockedAudioPage',
269
269
  },
270
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedAudioPage.json',
270
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedAudioPage.json',
271
271
  };
272
272
  exports.LeaveLockedPage = {
273
273
  eventType: 'Leave',
274
274
  object: {
275
275
  objectType: 'LockedPage',
276
276
  },
277
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedPage.json',
277
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedPage.json',
278
278
  };
279
279
  exports.LeaveLockedVideoPage = {
280
280
  eventType: 'Leave',
281
281
  object: {
282
282
  objectType: 'LockedVideoPage',
283
283
  },
284
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedVideoPage.json',
284
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedVideoPage.json',
285
285
  };
286
286
  exports.LeavePage = {
287
287
  eventType: 'Leave',
288
288
  object: {
289
289
  objectType: 'Page',
290
290
  },
291
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeavePage.json',
291
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeavePage.json',
292
292
  };
293
293
  exports.LeaveSchoolPage = {
294
294
  eventType: 'Leave',
295
295
  object: {
296
296
  objectType: 'SchoolPage',
297
297
  },
298
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveSchoolPage.json',
298
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveSchoolPage.json',
299
299
  };
300
300
  exports.LeaveSportsPage = {
301
301
  eventType: 'Leave',
302
302
  object: {
303
303
  objectType: 'SportsPage',
304
304
  },
305
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveSportsPage.json',
305
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveSportsPage.json',
306
306
  };
307
307
  exports.LeaveVideoPage = {
308
308
  eventType: 'Leave',
309
309
  object: {
310
310
  objectType: 'VideoPage',
311
311
  },
312
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveVideoPage.json',
312
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveVideoPage.json',
313
313
  };
314
314
  exports.LeaveWeather = {
315
315
  eventType: 'Leave',
316
316
  object: {
317
317
  objectType: 'Weather',
318
318
  },
319
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveWeather.json',
319
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveWeather.json',
320
320
  };
321
321
  exports.LoadAd = {
322
322
  eventType: 'Load',
323
323
  object: {
324
324
  objectType: 'Ad',
325
325
  },
326
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LoadAd.json',
327
- };
328
- exports.RequestAd = {
329
- eventType: 'Request',
330
- object: {
331
- objectType: 'Ad',
332
- },
333
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/RequestAd.json',
326
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LoadAd.json',
334
327
  };
335
328
  exports.ViewArticle = {
336
329
  eventType: 'View',
337
330
  object: {
338
331
  objectType: 'Article',
339
332
  },
340
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewArticle.json',
333
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewArticle.json',
341
334
  };
342
335
  exports.ViewAudioPage = {
343
336
  eventType: 'View',
344
337
  object: {
345
338
  objectType: 'AudioPage',
346
339
  },
347
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewAudioPage.json',
340
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewAudioPage.json',
348
341
  };
349
342
  exports.ViewError = {
350
343
  eventType: 'View',
351
344
  object: {
352
345
  objectType: 'Error',
353
346
  },
354
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewError.json',
347
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewError.json',
355
348
  };
356
349
  exports.ViewFrontpage = {
357
350
  eventType: 'View',
358
351
  object: {
359
352
  objectType: 'Frontpage',
360
353
  },
361
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewFrontpage.json',
354
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewFrontpage.json',
362
355
  };
363
356
  exports.ViewHealthPage = {
364
357
  eventType: 'View',
365
358
  object: {
366
359
  objectType: 'HealthPage',
367
360
  },
368
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewHealthPage.json',
361
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewHealthPage.json',
369
362
  };
370
363
  exports.ViewLandingpage = {
371
364
  eventType: 'View',
372
365
  object: {
373
366
  objectType: 'Landingpage',
374
367
  },
375
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLandingpage.json',
368
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLandingpage.json',
376
369
  };
377
370
  exports.ViewListing = {
378
371
  eventType: 'View',
379
372
  object: {
380
373
  objectType: 'Listing',
381
374
  },
382
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewListing.json',
375
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewListing.json',
383
376
  };
384
377
  exports.ViewLockedArticle = {
385
378
  eventType: 'View',
386
379
  object: {
387
380
  objectType: 'LockedArticle',
388
381
  },
389
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedArticle.json',
382
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedArticle.json',
390
383
  };
391
384
  exports.ViewLockedAudioPage = {
392
385
  eventType: 'View',
393
386
  object: {
394
387
  objectType: 'LockedAudioPage',
395
388
  },
396
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedAudioPage.json',
389
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedAudioPage.json',
397
390
  };
398
391
  exports.ViewLockedPage = {
399
392
  eventType: 'View',
400
393
  object: {
401
394
  objectType: 'LockedPage',
402
395
  },
403
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedPage.json',
396
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedPage.json',
404
397
  };
405
398
  exports.ViewLockedVideoPage = {
406
399
  eventType: 'View',
407
400
  object: {
408
401
  objectType: 'LockedVideoPage',
409
402
  },
410
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedVideoPage.json',
403
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedVideoPage.json',
411
404
  };
412
405
  exports.ViewPage = {
413
406
  eventType: 'View',
414
407
  object: {
415
408
  objectType: 'Page',
416
409
  },
417
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewPage.json',
410
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewPage.json',
418
411
  };
419
412
  exports.ViewSchoolPage = {
420
413
  eventType: 'View',
421
414
  object: {
422
415
  objectType: 'SchoolPage',
423
416
  },
424
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewSchoolPage.json',
417
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewSchoolPage.json',
425
418
  };
426
419
  exports.ViewSportsPage = {
427
420
  eventType: 'View',
428
421
  object: {
429
422
  objectType: 'SportsPage',
430
423
  },
431
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewSportsPage.json',
424
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewSportsPage.json',
432
425
  };
433
426
  exports.ViewTitle = {
434
427
  eventType: 'View',
435
428
  object: {
436
429
  objectType: 'Title',
437
430
  },
438
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewTitle.json',
431
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewTitle.json',
439
432
  };
440
433
  exports.ViewVideoPage = {
441
434
  eventType: 'View',
442
435
  object: {
443
436
  objectType: 'VideoPage',
444
437
  },
445
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewVideoPage.json',
438
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewVideoPage.json',
446
439
  };
447
440
  exports.ViewWeather = {
448
441
  eventType: 'View',
449
442
  object: {
450
443
  objectType: 'Weather',
451
444
  },
452
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewWeather.json',
445
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewWeather.json',
453
446
  };
454
447
  exports.ADVERTISING_VALUES = ['Accepted', 'Rejected', 'Unknown'];
455
448
  exports.ANALYTICS_VALUES = ['Accepted', 'Rejected', 'Unknown'];
@@ -542,4 +535,4 @@ exports.UTM_MEDIUM_VALUES = [
542
535
  'Video',
543
536
  'Internal',
544
537
  ];
545
- exports.CATALOG_VERSION = '2.15.1';
538
+ exports.CATALOG_VERSION = '2.16.0';
@@ -11,7 +11,7 @@ exports.MESSAGE_TYPE_RETURN = `${exports.MESSAGE_PREFIX}:return`;
11
11
  exports.MESSAGE_TYPE_RETURN_ERROR = `${exports.MESSAGE_PREFIX}:return-error`;
12
12
  exports.ALLOWED_METHODS = ['track'];
13
13
  exports.TPAAS_ALLOWED_METHODS = [
14
- 'trackAnonymousViewUIElement',
14
+ 'trackAnonymousImpressionUIElement',
15
15
  'trackEngagementAd',
16
16
  'trackEngagementAffiliate',
17
17
  'trackEngagementAudio',
@@ -42,7 +42,6 @@ exports.TPAAS_ALLOWED_METHODS = [
42
42
  'trackImpressionUIElement',
43
43
  'trackImpressionWidget',
44
44
  'trackLoadAd',
45
- 'trackRequestAd',
46
45
  'trackLeaveArticle',
47
46
  'trackLeaveAudioPage',
48
47
  'trackLeaveError',
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
4
  // This file is auto-generated by bin/generate-version.js. Do not edit manually.
5
- exports.SDK_VERSION = '8.0.0-rc.20';
5
+ exports.SDK_VERSION = '8.0.0-rc.21';