@schibsted/pulse-sdk 8.0.0-rc.16 → 8.0.0-rc.17

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 (28) hide show
  1. package/dist/cjs/Tracker.js +36 -0
  2. package/dist/cjs/tpaas-builders/builders.js +18 -0
  3. package/dist/cjs/tpaas-schemas/constants.js +81 -53
  4. package/dist/cjs/tracker-proxy/consts.js +4 -0
  5. package/dist/cjs/version.js +1 -1
  6. package/dist/ejs/Tracker.js +37 -1
  7. package/dist/ejs/tpaas-builders/builders.js +15 -1
  8. package/dist/ejs/tpaas-schemas/constants.js +79 -51
  9. package/dist/ejs/tracker-proxy/consts.js +4 -0
  10. package/dist/ejs/version.js +1 -1
  11. package/dist/types/Tracker.d.ts +21 -1
  12. package/dist/types/tpaas-builders/builders.d.ts +5 -1
  13. package/dist/types/tpaas-schemas/constants.d.ts +79 -51
  14. package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +8 -0
  15. package/dist/types/tpaas-schemas/types/schemas/IEngagementAd.d.ts +117 -0
  16. package/dist/types/tpaas-schemas/types/schemas/IEngagementAudio.d.ts +1 -1
  17. package/dist/types/tpaas-schemas/types/schemas/IEngagementVideo.d.ts +1 -1
  18. package/dist/types/tpaas-schemas/types/schemas/IImpressionAd.d.ts +115 -0
  19. package/dist/types/tpaas-schemas/types/schemas/ILeaveWeather.d.ts +4 -4
  20. package/dist/types/tpaas-schemas/types/schemas/ILoadAd.d.ts +119 -0
  21. package/dist/types/tpaas-schemas/types/schemas/IRequestAd.d.ts +95 -0
  22. package/dist/types/tpaas-schemas/types/schemas/IViewWeather.d.ts +4 -4
  23. package/dist/types/tpaas-schemas/types/schemas/index.d.ts +4 -0
  24. package/dist/types/tpaas-schemas/types/templates/IHealthTraining.d.ts +4 -0
  25. package/dist/types/tpaas-schemas/types.d.ts +2 -2
  26. package/dist/types/tracker-proxy/consts.d.ts +1 -1
  27. package/dist/types/version.d.ts +1 -1
  28. package/package.json +1 -1
@@ -989,6 +989,24 @@ class Tracker {
989
989
  const event = (0, tpaas_builders_1.buildImpressionWidgetEvent)(input, dependencies);
990
990
  return this.sendTpaasEvent(event);
991
991
  }
992
+ /**
993
+ * @param input
994
+ * @category TPaaS Tracking
995
+ */
996
+ async trackLoadAd(input) {
997
+ const dependencies = await this.prepareTpaasEvent();
998
+ const event = (0, tpaas_builders_1.buildLoadAdEvent)(input, dependencies);
999
+ return this.sendTpaasEvent(event);
1000
+ }
1001
+ /**
1002
+ * @param input
1003
+ * @category TPaaS Tracking
1004
+ */
1005
+ async trackRequestAd(input) {
1006
+ const dependencies = await this.prepareTpaasEvent();
1007
+ const event = (0, tpaas_builders_1.buildRequestAdEvent)(input, dependencies);
1008
+ return this.sendTpaasEvent(event);
1009
+ }
992
1010
  /**
993
1011
  * @param input
994
1012
  * @param options
@@ -1114,6 +1132,15 @@ class Tracker {
1114
1132
  }
1115
1133
  return result;
1116
1134
  }
1135
+ /**
1136
+ * @param input
1137
+ * @category TPaaS Tracking
1138
+ */
1139
+ async trackImpressionAd(input) {
1140
+ const dependencies = await this.prepareTpaasEvent();
1141
+ const event = (0, tpaas_builders_1.buildImpressionAdEvent)(input, dependencies);
1142
+ return this.sendTpaasEvent(event);
1143
+ }
1117
1144
  /**
1118
1145
  * @param input
1119
1146
  * @category TPaaS Tracking
@@ -1546,6 +1573,15 @@ class Tracker {
1546
1573
  const event = (0, tpaas_builders_1.buildLeaveWeatherEvent)(input, dependencies);
1547
1574
  return this.sendTpaasEvent(event);
1548
1575
  }
1576
+ /**
1577
+ * @param input
1578
+ * @category TPaaS Tracking
1579
+ */
1580
+ async trackEngagementAd(input) {
1581
+ const dependencies = await this.prepareTpaasEvent();
1582
+ const event = (0, tpaas_builders_1.buildEngagementAdEvent)(input, dependencies);
1583
+ return this.sendTpaasEvent(event);
1584
+ }
1549
1585
  /**
1550
1586
  * @param input
1551
1587
  * @category TPaaS Tracking
@@ -29,6 +29,7 @@ exports.buildLeavePageEvent = buildLeavePageEvent;
29
29
  exports.buildLeaveSportsPageEvent = buildLeaveSportsPageEvent;
30
30
  exports.buildLeaveVideoPageEvent = buildLeaveVideoPageEvent;
31
31
  exports.buildLeaveWeatherEvent = buildLeaveWeatherEvent;
32
+ exports.buildEngagementAdEvent = buildEngagementAdEvent;
32
33
  exports.buildEngagementAffiliateEvent = buildEngagementAffiliateEvent;
33
34
  exports.buildEngagementAudioEvent = buildEngagementAudioEvent;
34
35
  exports.buildEngagementFormEvent = buildEngagementFormEvent;
@@ -43,6 +44,7 @@ exports.buildCompletedHealthActionEvent = buildCompletedHealthActionEvent;
43
44
  exports.buildEngagementHealthUIElementEvent = buildEngagementHealthUIElementEvent;
44
45
  exports.buildViewHealthPageEvent = buildViewHealthPageEvent;
45
46
  exports.buildImpressionHealthUIElementEvent = buildImpressionHealthUIElementEvent;
47
+ exports.buildImpressionAdEvent = buildImpressionAdEvent;
46
48
  exports.buildImpressionAdSlotEvent = buildImpressionAdSlotEvent;
47
49
  exports.buildImpressionAffiliateEvent = buildImpressionAffiliateEvent;
48
50
  exports.buildImpressionFormEvent = buildImpressionFormEvent;
@@ -51,6 +53,8 @@ exports.buildImpressionPlayerEvent = buildImpressionPlayerEvent;
51
53
  exports.buildImpressionTeaserEvent = buildImpressionTeaserEvent;
52
54
  exports.buildImpressionUIElementEvent = buildImpressionUIElementEvent;
53
55
  exports.buildImpressionWidgetEvent = buildImpressionWidgetEvent;
56
+ exports.buildLoadAdEvent = buildLoadAdEvent;
57
+ exports.buildRequestAdEvent = buildRequestAdEvent;
54
58
  const ts_deepmerge_1 = require("ts-deepmerge");
55
59
  const tpaas_schemas_1 = require("../tpaas-schemas");
56
60
  const anonymous_1 = require("./builders/anonymous");
@@ -202,6 +206,9 @@ function buildLeaveWeatherEvent(input, dependencies) {
202
206
  }
203
207
  // #endregion
204
208
  // #region Engagement Event Builders
209
+ function buildEngagementAdEvent(input, dependencies) {
210
+ return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.EngagementAd, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
211
+ }
205
212
  function buildEngagementAffiliateEvent(input, dependencies) {
206
213
  return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.EngagementAffiliate, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
207
214
  }
@@ -248,6 +255,9 @@ function buildImpressionHealthUIElementEvent(input, dependencies) {
248
255
  }
249
256
  // #endregion
250
257
  // #region Impression Event Builders
258
+ function buildImpressionAdEvent(input, dependencies) {
259
+ return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.ImpressionAd, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
260
+ }
251
261
  function buildImpressionAdSlotEvent(input, dependencies) {
252
262
  return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.ImpressionAdSlot, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
253
263
  }
@@ -273,3 +283,11 @@ function buildImpressionWidgetEvent(input, dependencies) {
273
283
  return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.ImpressionWidget, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
274
284
  }
275
285
  // #endregion
286
+ // #region Ad Lifecycle Event Builders
287
+ function buildLoadAdEvent(input, dependencies) {
288
+ return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.LoadAd, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
289
+ }
290
+ function buildRequestAdEvent(input, dependencies) {
291
+ return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.RequestAd, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
292
+ }
293
+ // #endregion
@@ -1,357 +1,385 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViewWeather = exports.ViewVideoPage = exports.ViewTitle = exports.ViewSportsPage = exports.ViewPage = exports.ViewLockedVideoPage = exports.ViewLockedAudioPage = exports.ViewLockedArticle = exports.ViewListing = exports.ViewLandingpage = exports.ViewHealthPage = exports.ViewFrontpage = exports.ViewError = exports.ViewAudioPage = exports.ViewArticle = exports.LeaveWeather = exports.LeaveVideoPage = exports.LeaveSportsPage = exports.LeavePage = exports.LeaveLockedVideoPage = exports.LeaveLockedAudioPage = exports.LeaveLockedArticle = exports.LeaveListing = exports.LeaveLandingpage = exports.LeaveFrontpage = exports.LeaveError = exports.LeaveAudioPage = exports.LeaveArticle = exports.ImpressionWidget = exports.ImpressionUIElement = exports.ImpressionTeaser = exports.ImpressionPlayer = exports.ImpressionOffer = exports.ImpressionHealthUIElement = exports.ImpressionForm = exports.ImpressionAffiliate = exports.ImpressionAdSlot = exports.EngagementWidget = exports.EngagementVideoAd = exports.EngagementVideo = exports.EngagementUIElement = exports.EngagementTvModule = exports.EngagementTeaser = exports.EngagementOffer = exports.EngagementHealthUIElement = exports.EngagementForm = exports.EngagementAudio = exports.EngagementAffiliate = 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.USER_THEME_VALUES = exports.SPORT_VIEW_VALUES = exports.SPORT_SUBVIEW_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 = void 0;
3
+ exports.ViewPage = exports.ViewLockedVideoPage = exports.ViewLockedAudioPage = exports.ViewLockedArticle = exports.ViewListing = exports.ViewLandingpage = exports.ViewHealthPage = exports.ViewFrontpage = exports.ViewError = exports.ViewAudioPage = exports.ViewArticle = exports.RequestAd = exports.LoadAd = exports.LeaveWeather = exports.LeaveVideoPage = exports.LeaveSportsPage = exports.LeavePage = exports.LeaveLockedVideoPage = exports.LeaveLockedAudioPage = exports.LeaveLockedArticle = exports.LeaveListing = exports.LeaveLandingpage = exports.LeaveFrontpage = exports.LeaveError = exports.LeaveAudioPage = exports.LeaveArticle = exports.ImpressionWidget = exports.ImpressionUIElement = exports.ImpressionTeaser = exports.ImpressionPlayer = exports.ImpressionOffer = exports.ImpressionHealthUIElement = exports.ImpressionForm = exports.ImpressionAffiliate = exports.ImpressionAdSlot = exports.ImpressionAd = exports.EngagementWidget = exports.EngagementVideoAd = exports.EngagementVideo = exports.EngagementUIElement = exports.EngagementTvModule = exports.EngagementTeaser = 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.USER_THEME_VALUES = exports.SPORT_VIEW_VALUES = exports.SPORT_SUBVIEW_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 = void 0;
5
5
  exports.AnonymousViewUIElement = {
6
6
  eventType: 'AnonymousView',
7
7
  isAnonymous: true,
8
8
  object: {
9
9
  objectType: 'UIElement',
10
10
  },
11
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/AnonymousViewUIElement.json',
11
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/AnonymousViewUIElement.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.11.0/schemas/CompletedHealthAction.json',
18
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/CompletedHealthAction.json',
19
+ };
20
+ exports.EngagementAd = {
21
+ eventType: 'Engagement',
22
+ object: {
23
+ objectType: 'Ad',
24
+ },
25
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementAd.json',
19
26
  };
20
27
  exports.EngagementAffiliate = {
21
28
  eventType: 'Engagement',
22
29
  object: {
23
30
  objectType: 'Affiliate',
24
31
  },
25
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementAffiliate.json',
32
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementAffiliate.json',
26
33
  };
27
34
  exports.EngagementAudio = {
28
35
  eventType: 'Engagement',
29
36
  object: {
30
37
  objectType: 'Audio',
31
38
  },
32
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementAudio.json',
39
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementAudio.json',
33
40
  };
34
41
  exports.EngagementForm = {
35
42
  eventType: 'Engagement',
36
43
  object: {
37
44
  objectType: 'Form',
38
45
  },
39
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementForm.json',
46
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementForm.json',
40
47
  };
41
48
  exports.EngagementHealthUIElement = {
42
49
  eventType: 'Engagement',
43
50
  object: {
44
51
  objectType: 'HealthUIElement',
45
52
  },
46
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementHealthUIElement.json',
53
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementHealthUIElement.json',
47
54
  };
48
55
  exports.EngagementOffer = {
49
56
  eventType: 'Engagement',
50
57
  object: {
51
58
  objectType: 'Offer',
52
59
  },
53
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementOffer.json',
60
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementOffer.json',
54
61
  };
55
62
  exports.EngagementTeaser = {
56
63
  eventType: 'Engagement',
57
64
  object: {
58
65
  objectType: 'Teaser',
59
66
  },
60
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementTeaser.json',
67
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementTeaser.json',
61
68
  };
62
69
  exports.EngagementTvModule = {
63
70
  eventType: 'Engagement',
64
71
  object: {
65
72
  objectType: 'TvModule',
66
73
  },
67
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementTvModule.json',
74
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementTvModule.json',
68
75
  };
69
76
  exports.EngagementUIElement = {
70
77
  eventType: 'Engagement',
71
78
  object: {
72
79
  objectType: 'UIElement',
73
80
  },
74
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementUIElement.json',
81
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementUIElement.json',
75
82
  };
76
83
  exports.EngagementVideo = {
77
84
  eventType: 'Engagement',
78
85
  object: {
79
86
  objectType: 'Video',
80
87
  },
81
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementVideo.json',
88
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementVideo.json',
82
89
  };
83
90
  exports.EngagementVideoAd = {
84
91
  eventType: 'Engagement',
85
92
  object: {
86
93
  objectType: 'VideoAd',
87
94
  },
88
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementVideoAd.json',
95
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementVideoAd.json',
89
96
  };
90
97
  exports.EngagementWidget = {
91
98
  eventType: 'Engagement',
92
99
  object: {
93
100
  objectType: 'Widget',
94
101
  },
95
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementWidget.json',
102
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/EngagementWidget.json',
103
+ };
104
+ exports.ImpressionAd = {
105
+ eventType: 'Impression',
106
+ object: {
107
+ objectType: 'Ad',
108
+ },
109
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionAd.json',
96
110
  };
97
111
  exports.ImpressionAdSlot = {
98
112
  eventType: 'Impression',
99
113
  object: {
100
114
  objectType: 'AdSlot',
101
115
  },
102
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionAdSlot.json',
116
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionAdSlot.json',
103
117
  };
104
118
  exports.ImpressionAffiliate = {
105
119
  eventType: 'Impression',
106
120
  object: {
107
121
  objectType: 'Affiliate',
108
122
  },
109
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionAffiliate.json',
123
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionAffiliate.json',
110
124
  };
111
125
  exports.ImpressionForm = {
112
126
  eventType: 'Impression',
113
127
  object: {
114
128
  objectType: 'Form',
115
129
  },
116
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionForm.json',
130
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionForm.json',
117
131
  };
118
132
  exports.ImpressionHealthUIElement = {
119
133
  eventType: 'Impression',
120
134
  object: {
121
135
  objectType: 'HealthUIElement',
122
136
  },
123
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionHealthUIElement.json',
137
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionHealthUIElement.json',
124
138
  };
125
139
  exports.ImpressionOffer = {
126
140
  eventType: 'Impression',
127
141
  object: {
128
142
  objectType: 'Offer',
129
143
  },
130
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionOffer.json',
144
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionOffer.json',
131
145
  };
132
146
  exports.ImpressionPlayer = {
133
147
  eventType: 'Impression',
134
148
  object: {
135
149
  objectType: 'Player',
136
150
  },
137
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionPlayer.json',
151
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionPlayer.json',
138
152
  };
139
153
  exports.ImpressionTeaser = {
140
154
  eventType: 'Impression',
141
155
  object: {
142
156
  objectType: 'Teaser',
143
157
  },
144
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionTeaser.json',
158
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionTeaser.json',
145
159
  };
146
160
  exports.ImpressionUIElement = {
147
161
  eventType: 'Impression',
148
162
  object: {
149
163
  objectType: 'UIElement',
150
164
  },
151
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionUIElement.json',
165
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionUIElement.json',
152
166
  };
153
167
  exports.ImpressionWidget = {
154
168
  eventType: 'Impression',
155
169
  object: {
156
170
  objectType: 'Widget',
157
171
  },
158
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionWidget.json',
172
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ImpressionWidget.json',
159
173
  };
160
174
  exports.LeaveArticle = {
161
175
  eventType: 'Leave',
162
176
  object: {
163
177
  objectType: 'Article',
164
178
  },
165
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveArticle.json',
179
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveArticle.json',
166
180
  };
167
181
  exports.LeaveAudioPage = {
168
182
  eventType: 'Leave',
169
183
  object: {
170
184
  objectType: 'AudioPage',
171
185
  },
172
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveAudioPage.json',
186
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveAudioPage.json',
173
187
  };
174
188
  exports.LeaveError = {
175
189
  eventType: 'Leave',
176
190
  object: {
177
191
  objectType: 'Error',
178
192
  },
179
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveError.json',
193
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveError.json',
180
194
  };
181
195
  exports.LeaveFrontpage = {
182
196
  eventType: 'Leave',
183
197
  object: {
184
198
  objectType: 'Frontpage',
185
199
  },
186
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveFrontpage.json',
200
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveFrontpage.json',
187
201
  };
188
202
  exports.LeaveLandingpage = {
189
203
  eventType: 'Leave',
190
204
  object: {
191
205
  objectType: 'Landingpage',
192
206
  },
193
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLandingpage.json',
207
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveLandingpage.json',
194
208
  };
195
209
  exports.LeaveListing = {
196
210
  eventType: 'Leave',
197
211
  object: {
198
212
  objectType: 'Listing',
199
213
  },
200
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveListing.json',
214
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveListing.json',
201
215
  };
202
216
  exports.LeaveLockedArticle = {
203
217
  eventType: 'Leave',
204
218
  object: {
205
219
  objectType: 'LockedArticle',
206
220
  },
207
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedArticle.json',
221
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveLockedArticle.json',
208
222
  };
209
223
  exports.LeaveLockedAudioPage = {
210
224
  eventType: 'Leave',
211
225
  object: {
212
226
  objectType: 'LockedAudioPage',
213
227
  },
214
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedAudioPage.json',
228
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveLockedAudioPage.json',
215
229
  };
216
230
  exports.LeaveLockedVideoPage = {
217
231
  eventType: 'Leave',
218
232
  object: {
219
233
  objectType: 'LockedVideoPage',
220
234
  },
221
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedVideoPage.json',
235
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveLockedVideoPage.json',
222
236
  };
223
237
  exports.LeavePage = {
224
238
  eventType: 'Leave',
225
239
  object: {
226
240
  objectType: 'Page',
227
241
  },
228
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeavePage.json',
242
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeavePage.json',
229
243
  };
230
244
  exports.LeaveSportsPage = {
231
245
  eventType: 'Leave',
232
246
  object: {
233
247
  objectType: 'SportsPage',
234
248
  },
235
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveSportsPage.json',
249
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveSportsPage.json',
236
250
  };
237
251
  exports.LeaveVideoPage = {
238
252
  eventType: 'Leave',
239
253
  object: {
240
254
  objectType: 'VideoPage',
241
255
  },
242
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveVideoPage.json',
256
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveVideoPage.json',
243
257
  };
244
258
  exports.LeaveWeather = {
245
259
  eventType: 'Leave',
246
260
  object: {
247
261
  objectType: 'Weather',
248
262
  },
249
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveWeather.json',
263
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LeaveWeather.json',
264
+ };
265
+ exports.LoadAd = {
266
+ eventType: 'Load',
267
+ object: {
268
+ objectType: 'Ad',
269
+ },
270
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/LoadAd.json',
271
+ };
272
+ exports.RequestAd = {
273
+ eventType: 'Request',
274
+ object: {
275
+ objectType: 'Ad',
276
+ },
277
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/RequestAd.json',
250
278
  };
251
279
  exports.ViewArticle = {
252
280
  eventType: 'View',
253
281
  object: {
254
282
  objectType: 'Article',
255
283
  },
256
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewArticle.json',
284
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewArticle.json',
257
285
  };
258
286
  exports.ViewAudioPage = {
259
287
  eventType: 'View',
260
288
  object: {
261
289
  objectType: 'AudioPage',
262
290
  },
263
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewAudioPage.json',
291
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewAudioPage.json',
264
292
  };
265
293
  exports.ViewError = {
266
294
  eventType: 'View',
267
295
  object: {
268
296
  objectType: 'Error',
269
297
  },
270
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewError.json',
298
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewError.json',
271
299
  };
272
300
  exports.ViewFrontpage = {
273
301
  eventType: 'View',
274
302
  object: {
275
303
  objectType: 'Frontpage',
276
304
  },
277
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewFrontpage.json',
305
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewFrontpage.json',
278
306
  };
279
307
  exports.ViewHealthPage = {
280
308
  eventType: 'View',
281
309
  object: {
282
310
  objectType: 'HealthPage',
283
311
  },
284
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewHealthPage.json',
312
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewHealthPage.json',
285
313
  };
286
314
  exports.ViewLandingpage = {
287
315
  eventType: 'View',
288
316
  object: {
289
317
  objectType: 'Landingpage',
290
318
  },
291
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLandingpage.json',
319
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewLandingpage.json',
292
320
  };
293
321
  exports.ViewListing = {
294
322
  eventType: 'View',
295
323
  object: {
296
324
  objectType: 'Listing',
297
325
  },
298
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewListing.json',
326
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewListing.json',
299
327
  };
300
328
  exports.ViewLockedArticle = {
301
329
  eventType: 'View',
302
330
  object: {
303
331
  objectType: 'LockedArticle',
304
332
  },
305
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedArticle.json',
333
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewLockedArticle.json',
306
334
  };
307
335
  exports.ViewLockedAudioPage = {
308
336
  eventType: 'View',
309
337
  object: {
310
338
  objectType: 'LockedAudioPage',
311
339
  },
312
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedAudioPage.json',
340
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewLockedAudioPage.json',
313
341
  };
314
342
  exports.ViewLockedVideoPage = {
315
343
  eventType: 'View',
316
344
  object: {
317
345
  objectType: 'LockedVideoPage',
318
346
  },
319
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedVideoPage.json',
347
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewLockedVideoPage.json',
320
348
  };
321
349
  exports.ViewPage = {
322
350
  eventType: 'View',
323
351
  object: {
324
352
  objectType: 'Page',
325
353
  },
326
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewPage.json',
354
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewPage.json',
327
355
  };
328
356
  exports.ViewSportsPage = {
329
357
  eventType: 'View',
330
358
  object: {
331
359
  objectType: 'SportsPage',
332
360
  },
333
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewSportsPage.json',
361
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewSportsPage.json',
334
362
  };
335
363
  exports.ViewTitle = {
336
364
  eventType: 'View',
337
365
  object: {
338
366
  objectType: 'Title',
339
367
  },
340
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewTitle.json',
368
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewTitle.json',
341
369
  };
342
370
  exports.ViewVideoPage = {
343
371
  eventType: 'View',
344
372
  object: {
345
373
  objectType: 'VideoPage',
346
374
  },
347
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewVideoPage.json',
375
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewVideoPage.json',
348
376
  };
349
377
  exports.ViewWeather = {
350
378
  eventType: 'View',
351
379
  object: {
352
380
  objectType: 'Weather',
353
381
  },
354
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewWeather.json',
382
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.12.0/schemas/ViewWeather.json',
355
383
  };
356
384
  exports.ADVERTISING_VALUES = ['Accepted', 'Rejected', 'Unknown'];
357
385
  exports.ANALYTICS_VALUES = ['Accepted', 'Rejected', 'Unknown'];
@@ -478,4 +506,4 @@ exports.UTM_MEDIUM_VALUES = [
478
506
  'Video',
479
507
  'Internal',
480
508
  ];
481
- exports.CATALOG_VERSION = '2.11.0';
509
+ exports.CATALOG_VERSION = '2.12.0';
@@ -12,6 +12,7 @@ exports.MESSAGE_TYPE_RETURN_ERROR = `${exports.MESSAGE_PREFIX}:return-error`;
12
12
  exports.ALLOWED_METHODS = ['track'];
13
13
  exports.TPAAS_ALLOWED_METHODS = [
14
14
  'trackAnonymousViewUIElement',
15
+ 'trackEngagementAd',
15
16
  'trackEngagementAffiliate',
16
17
  'trackEngagementAudio',
17
18
  'trackEngagementForm',
@@ -24,6 +25,7 @@ exports.TPAAS_ALLOWED_METHODS = [
24
25
  'trackEngagementVideoAd',
25
26
  'trackEngagementWidget',
26
27
  'trackCompletedHealthAction',
28
+ 'trackImpressionAd',
27
29
  'trackImpressionAdSlot',
28
30
  'trackImpressionAffiliate',
29
31
  'trackImpressionForm',
@@ -33,6 +35,8 @@ exports.TPAAS_ALLOWED_METHODS = [
33
35
  'trackImpressionTeaser',
34
36
  'trackImpressionUIElement',
35
37
  'trackImpressionWidget',
38
+ 'trackLoadAd',
39
+ 'trackRequestAd',
36
40
  'trackLeaveArticle',
37
41
  'trackLeaveAudioPage',
38
42
  '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.16';
5
+ exports.SDK_VERSION = '8.0.0-rc.17';