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

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 (31) hide show
  1. package/dist/cjs/Tracker.js +25 -4
  2. package/dist/cjs/tpaas-builders/builders.js +8 -0
  3. package/dist/cjs/tpaas-schemas/constants.js +67 -51
  4. package/dist/cjs/tracker-proxy/consts.js +3 -0
  5. package/dist/cjs/version.js +1 -1
  6. package/dist/ejs/Tracker.js +27 -6
  7. package/dist/ejs/tpaas-builders/builders.js +7 -1
  8. package/dist/ejs/tpaas-schemas/constants.js +65 -49
  9. package/dist/ejs/tracker-proxy/consts.js +3 -0
  10. package/dist/ejs/version.js +1 -1
  11. package/dist/types/Tracker.d.ts +12 -2
  12. package/dist/types/tpaas-builders/builders.d.ts +4 -2
  13. package/dist/types/tpaas-schemas/constants.d.ts +64 -50
  14. package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +4 -0
  15. package/dist/types/tpaas-schemas/types/schemas/IEngagementAffiliate.d.ts +138 -0
  16. package/dist/types/tpaas-schemas/types/schemas/IImpressionAffiliate.d.ts +136 -0
  17. package/dist/types/tpaas-schemas/types/schemas/ILeaveListing.d.ts +10 -1
  18. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedArticle.d.ts +1 -1
  19. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedAudioPage.d.ts +1 -1
  20. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedVideoPage.d.ts +1 -1
  21. package/dist/types/tpaas-schemas/types/schemas/IViewListing.d.ts +10 -1
  22. package/dist/types/tpaas-schemas/types/schemas/IViewLockedArticle.d.ts +1 -1
  23. package/dist/types/tpaas-schemas/types/schemas/IViewLockedAudioPage.d.ts +1 -1
  24. package/dist/types/tpaas-schemas/types/schemas/IViewLockedVideoPage.d.ts +1 -1
  25. package/dist/types/tpaas-schemas/types/schemas/index.d.ts +2 -0
  26. package/dist/types/tpaas-schemas/types/templates/IPageRef.d.ts +3 -1
  27. package/dist/types/tpaas-schemas/types/templates/IUtmTags.d.ts +0 -2
  28. package/dist/types/tpaas-schemas/types.d.ts +2 -2
  29. package/dist/types/tracker-proxy/consts.d.ts +1 -1
  30. package/dist/types/version.d.ts +1 -1
  31. package/package.json +1 -1
@@ -106,6 +106,7 @@ const anonymousEvents = {
106
106
  trackerEvent: events_anonymous_node_1.anonymousTrackerEvent,
107
107
  engagementEvent: events_anonymous_node_1.anonymousEngagementEvent,
108
108
  };
109
+ const ANONYMOUS_EVENT_FORBIDDEN_FIELDS = ['session', 'actor', 'device', 'location', 'pageViewId'];
109
110
  /**
110
111
  * @typeParam T Type of event to track
111
112
  * @param name
@@ -464,11 +465,11 @@ class Tracker {
464
465
  */
465
466
  async trackAnonymous(eventType, input, options) {
466
467
  // We must create the event as soon as possible, as it defines the creationDate.
467
- const newEvent = this.createAnonymousEvent(input);
468
+ const newEvent = (0, utils_1.omit)(this.createAnonymousEvent(input), ANONYMOUS_EVENT_FORBIDDEN_FIELDS);
468
469
  // Remote config values ----------------
469
470
  await this._applyRemoteConfigEndpoints();
470
471
  // Resolve all available properties ----------------
471
- const resolvedOutput = await Promise.all([this.resolveTrackInput(newEvent), this.resolveTrackGlobals()]);
472
+ const resolvedOutput = await Promise.all([this.resolveTrackInput(newEvent), this.resolveAnonymousTrackGlobals()]);
472
473
  let eventOutput = resolvedOutput.reduce((acc, p) => (0, utils_1.pulseMerge)(acc, p), {});
473
474
  eventOutput = this.applyAnonymousEventTypeDefaults(eventOutput, eventType);
474
475
  // Leave Events ----------------
@@ -482,6 +483,7 @@ class Tracker {
482
483
  eventInput: eventOutput,
483
484
  sdkConfig: this.state,
484
485
  });
486
+ eventOutput = (0, utils_1.omit)(eventOutput, ANONYMOUS_EVENT_FORBIDDEN_FIELDS);
485
487
  if (options?.bookmarkKey) {
486
488
  this.bookmark.set(options.bookmarkKey, eventOutput);
487
489
  }
@@ -1121,6 +1123,15 @@ class Tracker {
1121
1123
  const event = (0, tpaas_builders_1.buildImpressionAdSlotEvent)(input, dependencies);
1122
1124
  return this.sendTpaasEvent(event);
1123
1125
  }
1126
+ /**
1127
+ * @param input
1128
+ * @category TPaaS Tracking
1129
+ */
1130
+ async trackImpressionAffiliate(input) {
1131
+ const dependencies = await this.prepareTpaasEvent();
1132
+ const event = (0, tpaas_builders_1.buildImpressionAffiliateEvent)(input, dependencies);
1133
+ return this.sendTpaasEvent(event);
1134
+ }
1124
1135
  /**
1125
1136
  * @param input
1126
1137
  * @category TPaaS Tracking
@@ -1535,6 +1546,15 @@ class Tracker {
1535
1546
  const event = (0, tpaas_builders_1.buildLeaveWeatherEvent)(input, dependencies);
1536
1547
  return this.sendTpaasEvent(event);
1537
1548
  }
1549
+ /**
1550
+ * @param input
1551
+ * @category TPaaS Tracking
1552
+ */
1553
+ async trackEngagementAffiliate(input) {
1554
+ const dependencies = await this.prepareTpaasEvent();
1555
+ const event = (0, tpaas_builders_1.buildEngagementAffiliateEvent)(input, dependencies);
1556
+ return this.sendTpaasEvent(event);
1557
+ }
1538
1558
  /**
1539
1559
  * @param input
1540
1560
  * @category TPaaS Tracking
@@ -2289,8 +2309,9 @@ class Tracker {
2289
2309
  /**
2290
2310
  * @private
2291
2311
  */
2292
- async resolveTrackGlobals() {
2293
- return (0, utils_1.evaluateAndFlatten)({ ...this.builders });
2312
+ async resolveAnonymousTrackGlobals() {
2313
+ // Omit before evaluation so forbidden promise/function builders cannot delay or fail anonymous tracking.
2314
+ return (0, utils_1.evaluateAndFlatten)((0, utils_1.omit)(this.builders, ANONYMOUS_EVENT_FORBIDDEN_FIELDS));
2294
2315
  }
2295
2316
  /**
2296
2317
  * Send all anonymous events that are in the internal anonymous event queue.
@@ -29,6 +29,7 @@ exports.buildLeavePageEvent = buildLeavePageEvent;
29
29
  exports.buildLeaveSportsPageEvent = buildLeaveSportsPageEvent;
30
30
  exports.buildLeaveVideoPageEvent = buildLeaveVideoPageEvent;
31
31
  exports.buildLeaveWeatherEvent = buildLeaveWeatherEvent;
32
+ exports.buildEngagementAffiliateEvent = buildEngagementAffiliateEvent;
32
33
  exports.buildEngagementAudioEvent = buildEngagementAudioEvent;
33
34
  exports.buildEngagementFormEvent = buildEngagementFormEvent;
34
35
  exports.buildEngagementOfferEvent = buildEngagementOfferEvent;
@@ -43,6 +44,7 @@ exports.buildEngagementHealthUIElementEvent = buildEngagementHealthUIElementEven
43
44
  exports.buildViewHealthPageEvent = buildViewHealthPageEvent;
44
45
  exports.buildImpressionHealthUIElementEvent = buildImpressionHealthUIElementEvent;
45
46
  exports.buildImpressionAdSlotEvent = buildImpressionAdSlotEvent;
47
+ exports.buildImpressionAffiliateEvent = buildImpressionAffiliateEvent;
46
48
  exports.buildImpressionFormEvent = buildImpressionFormEvent;
47
49
  exports.buildImpressionOfferEvent = buildImpressionOfferEvent;
48
50
  exports.buildImpressionPlayerEvent = buildImpressionPlayerEvent;
@@ -200,6 +202,9 @@ function buildLeaveWeatherEvent(input, dependencies) {
200
202
  }
201
203
  // #endregion
202
204
  // #region Engagement Event Builders
205
+ function buildEngagementAffiliateEvent(input, dependencies) {
206
+ return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.EngagementAffiliate, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
207
+ }
203
208
  function buildEngagementAudioEvent(input, dependencies) {
204
209
  return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.EngagementAudio, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
205
210
  }
@@ -246,6 +251,9 @@ function buildImpressionHealthUIElementEvent(input, dependencies) {
246
251
  function buildImpressionAdSlotEvent(input, dependencies) {
247
252
  return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.ImpressionAdSlot, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
248
253
  }
254
+ function buildImpressionAffiliateEvent(input, dependencies) {
255
+ return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.ImpressionAffiliate, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
256
+ }
249
257
  function buildImpressionFormEvent(input, dependencies) {
250
258
  return (0, ts_deepmerge_1.merge)(tpaas_schemas_1.ImpressionForm, (0, exports.getCommonBuildersOutput)(new Date(), dependencies, input), normalizePageInput(input));
251
259
  }
@@ -1,343 +1,357 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ANALYTICS_VALUES = exports.ADVERTISING_VALUES = 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.ImpressionAdSlot = exports.EngagementWidget = exports.EngagementVideoAd = exports.EngagementVideo = exports.EngagementUIElement = exports.EngagementTvModule = exports.EngagementTeaser = exports.EngagementOffer = exports.EngagementHealthUIElement = exports.EngagementForm = exports.EngagementAudio = 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 = void 0;
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;
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.10.0/schemas/AnonymousViewUIElement.json',
11
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.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.10.0/schemas/CompletedHealthAction.json',
18
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/CompletedHealthAction.json',
19
+ };
20
+ exports.EngagementAffiliate = {
21
+ eventType: 'Engagement',
22
+ object: {
23
+ objectType: 'Affiliate',
24
+ },
25
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementAffiliate.json',
19
26
  };
20
27
  exports.EngagementAudio = {
21
28
  eventType: 'Engagement',
22
29
  object: {
23
30
  objectType: 'Audio',
24
31
  },
25
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementAudio.json',
32
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementAudio.json',
26
33
  };
27
34
  exports.EngagementForm = {
28
35
  eventType: 'Engagement',
29
36
  object: {
30
37
  objectType: 'Form',
31
38
  },
32
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementForm.json',
39
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementForm.json',
33
40
  };
34
41
  exports.EngagementHealthUIElement = {
35
42
  eventType: 'Engagement',
36
43
  object: {
37
44
  objectType: 'HealthUIElement',
38
45
  },
39
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementHealthUIElement.json',
46
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementHealthUIElement.json',
40
47
  };
41
48
  exports.EngagementOffer = {
42
49
  eventType: 'Engagement',
43
50
  object: {
44
51
  objectType: 'Offer',
45
52
  },
46
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementOffer.json',
53
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementOffer.json',
47
54
  };
48
55
  exports.EngagementTeaser = {
49
56
  eventType: 'Engagement',
50
57
  object: {
51
58
  objectType: 'Teaser',
52
59
  },
53
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementTeaser.json',
60
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementTeaser.json',
54
61
  };
55
62
  exports.EngagementTvModule = {
56
63
  eventType: 'Engagement',
57
64
  object: {
58
65
  objectType: 'TvModule',
59
66
  },
60
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementTvModule.json',
67
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementTvModule.json',
61
68
  };
62
69
  exports.EngagementUIElement = {
63
70
  eventType: 'Engagement',
64
71
  object: {
65
72
  objectType: 'UIElement',
66
73
  },
67
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementUIElement.json',
74
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementUIElement.json',
68
75
  };
69
76
  exports.EngagementVideo = {
70
77
  eventType: 'Engagement',
71
78
  object: {
72
79
  objectType: 'Video',
73
80
  },
74
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementVideo.json',
81
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementVideo.json',
75
82
  };
76
83
  exports.EngagementVideoAd = {
77
84
  eventType: 'Engagement',
78
85
  object: {
79
86
  objectType: 'VideoAd',
80
87
  },
81
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementVideoAd.json',
88
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementVideoAd.json',
82
89
  };
83
90
  exports.EngagementWidget = {
84
91
  eventType: 'Engagement',
85
92
  object: {
86
93
  objectType: 'Widget',
87
94
  },
88
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/EngagementWidget.json',
95
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementWidget.json',
89
96
  };
90
97
  exports.ImpressionAdSlot = {
91
98
  eventType: 'Impression',
92
99
  object: {
93
100
  objectType: 'AdSlot',
94
101
  },
95
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ImpressionAdSlot.json',
102
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionAdSlot.json',
103
+ };
104
+ exports.ImpressionAffiliate = {
105
+ eventType: 'Impression',
106
+ object: {
107
+ objectType: 'Affiliate',
108
+ },
109
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionAffiliate.json',
96
110
  };
97
111
  exports.ImpressionForm = {
98
112
  eventType: 'Impression',
99
113
  object: {
100
114
  objectType: 'Form',
101
115
  },
102
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ImpressionForm.json',
116
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionForm.json',
103
117
  };
104
118
  exports.ImpressionHealthUIElement = {
105
119
  eventType: 'Impression',
106
120
  object: {
107
121
  objectType: 'HealthUIElement',
108
122
  },
109
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ImpressionHealthUIElement.json',
123
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionHealthUIElement.json',
110
124
  };
111
125
  exports.ImpressionOffer = {
112
126
  eventType: 'Impression',
113
127
  object: {
114
128
  objectType: 'Offer',
115
129
  },
116
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ImpressionOffer.json',
130
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionOffer.json',
117
131
  };
118
132
  exports.ImpressionPlayer = {
119
133
  eventType: 'Impression',
120
134
  object: {
121
135
  objectType: 'Player',
122
136
  },
123
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ImpressionPlayer.json',
137
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionPlayer.json',
124
138
  };
125
139
  exports.ImpressionTeaser = {
126
140
  eventType: 'Impression',
127
141
  object: {
128
142
  objectType: 'Teaser',
129
143
  },
130
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ImpressionTeaser.json',
144
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionTeaser.json',
131
145
  };
132
146
  exports.ImpressionUIElement = {
133
147
  eventType: 'Impression',
134
148
  object: {
135
149
  objectType: 'UIElement',
136
150
  },
137
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ImpressionUIElement.json',
151
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionUIElement.json',
138
152
  };
139
153
  exports.ImpressionWidget = {
140
154
  eventType: 'Impression',
141
155
  object: {
142
156
  objectType: 'Widget',
143
157
  },
144
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ImpressionWidget.json',
158
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionWidget.json',
145
159
  };
146
160
  exports.LeaveArticle = {
147
161
  eventType: 'Leave',
148
162
  object: {
149
163
  objectType: 'Article',
150
164
  },
151
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveArticle.json',
165
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveArticle.json',
152
166
  };
153
167
  exports.LeaveAudioPage = {
154
168
  eventType: 'Leave',
155
169
  object: {
156
170
  objectType: 'AudioPage',
157
171
  },
158
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveAudioPage.json',
172
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveAudioPage.json',
159
173
  };
160
174
  exports.LeaveError = {
161
175
  eventType: 'Leave',
162
176
  object: {
163
177
  objectType: 'Error',
164
178
  },
165
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveError.json',
179
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveError.json',
166
180
  };
167
181
  exports.LeaveFrontpage = {
168
182
  eventType: 'Leave',
169
183
  object: {
170
184
  objectType: 'Frontpage',
171
185
  },
172
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveFrontpage.json',
186
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveFrontpage.json',
173
187
  };
174
188
  exports.LeaveLandingpage = {
175
189
  eventType: 'Leave',
176
190
  object: {
177
191
  objectType: 'Landingpage',
178
192
  },
179
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveLandingpage.json',
193
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLandingpage.json',
180
194
  };
181
195
  exports.LeaveListing = {
182
196
  eventType: 'Leave',
183
197
  object: {
184
198
  objectType: 'Listing',
185
199
  },
186
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveListing.json',
200
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveListing.json',
187
201
  };
188
202
  exports.LeaveLockedArticle = {
189
203
  eventType: 'Leave',
190
204
  object: {
191
205
  objectType: 'LockedArticle',
192
206
  },
193
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveLockedArticle.json',
207
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedArticle.json',
194
208
  };
195
209
  exports.LeaveLockedAudioPage = {
196
210
  eventType: 'Leave',
197
211
  object: {
198
212
  objectType: 'LockedAudioPage',
199
213
  },
200
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveLockedAudioPage.json',
214
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedAudioPage.json',
201
215
  };
202
216
  exports.LeaveLockedVideoPage = {
203
217
  eventType: 'Leave',
204
218
  object: {
205
219
  objectType: 'LockedVideoPage',
206
220
  },
207
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveLockedVideoPage.json',
221
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedVideoPage.json',
208
222
  };
209
223
  exports.LeavePage = {
210
224
  eventType: 'Leave',
211
225
  object: {
212
226
  objectType: 'Page',
213
227
  },
214
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeavePage.json',
228
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeavePage.json',
215
229
  };
216
230
  exports.LeaveSportsPage = {
217
231
  eventType: 'Leave',
218
232
  object: {
219
233
  objectType: 'SportsPage',
220
234
  },
221
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveSportsPage.json',
235
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveSportsPage.json',
222
236
  };
223
237
  exports.LeaveVideoPage = {
224
238
  eventType: 'Leave',
225
239
  object: {
226
240
  objectType: 'VideoPage',
227
241
  },
228
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveVideoPage.json',
242
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveVideoPage.json',
229
243
  };
230
244
  exports.LeaveWeather = {
231
245
  eventType: 'Leave',
232
246
  object: {
233
247
  objectType: 'Weather',
234
248
  },
235
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/LeaveWeather.json',
249
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveWeather.json',
236
250
  };
237
251
  exports.ViewArticle = {
238
252
  eventType: 'View',
239
253
  object: {
240
254
  objectType: 'Article',
241
255
  },
242
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewArticle.json',
256
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewArticle.json',
243
257
  };
244
258
  exports.ViewAudioPage = {
245
259
  eventType: 'View',
246
260
  object: {
247
261
  objectType: 'AudioPage',
248
262
  },
249
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewAudioPage.json',
263
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewAudioPage.json',
250
264
  };
251
265
  exports.ViewError = {
252
266
  eventType: 'View',
253
267
  object: {
254
268
  objectType: 'Error',
255
269
  },
256
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewError.json',
270
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewError.json',
257
271
  };
258
272
  exports.ViewFrontpage = {
259
273
  eventType: 'View',
260
274
  object: {
261
275
  objectType: 'Frontpage',
262
276
  },
263
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewFrontpage.json',
277
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewFrontpage.json',
264
278
  };
265
279
  exports.ViewHealthPage = {
266
280
  eventType: 'View',
267
281
  object: {
268
282
  objectType: 'HealthPage',
269
283
  },
270
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewHealthPage.json',
284
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewHealthPage.json',
271
285
  };
272
286
  exports.ViewLandingpage = {
273
287
  eventType: 'View',
274
288
  object: {
275
289
  objectType: 'Landingpage',
276
290
  },
277
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewLandingpage.json',
291
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLandingpage.json',
278
292
  };
279
293
  exports.ViewListing = {
280
294
  eventType: 'View',
281
295
  object: {
282
296
  objectType: 'Listing',
283
297
  },
284
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewListing.json',
298
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewListing.json',
285
299
  };
286
300
  exports.ViewLockedArticle = {
287
301
  eventType: 'View',
288
302
  object: {
289
303
  objectType: 'LockedArticle',
290
304
  },
291
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewLockedArticle.json',
305
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedArticle.json',
292
306
  };
293
307
  exports.ViewLockedAudioPage = {
294
308
  eventType: 'View',
295
309
  object: {
296
310
  objectType: 'LockedAudioPage',
297
311
  },
298
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewLockedAudioPage.json',
312
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedAudioPage.json',
299
313
  };
300
314
  exports.ViewLockedVideoPage = {
301
315
  eventType: 'View',
302
316
  object: {
303
317
  objectType: 'LockedVideoPage',
304
318
  },
305
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewLockedVideoPage.json',
319
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedVideoPage.json',
306
320
  };
307
321
  exports.ViewPage = {
308
322
  eventType: 'View',
309
323
  object: {
310
324
  objectType: 'Page',
311
325
  },
312
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewPage.json',
326
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewPage.json',
313
327
  };
314
328
  exports.ViewSportsPage = {
315
329
  eventType: 'View',
316
330
  object: {
317
331
  objectType: 'SportsPage',
318
332
  },
319
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewSportsPage.json',
333
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewSportsPage.json',
320
334
  };
321
335
  exports.ViewTitle = {
322
336
  eventType: 'View',
323
337
  object: {
324
338
  objectType: 'Title',
325
339
  },
326
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewTitle.json',
340
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewTitle.json',
327
341
  };
328
342
  exports.ViewVideoPage = {
329
343
  eventType: 'View',
330
344
  object: {
331
345
  objectType: 'VideoPage',
332
346
  },
333
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewVideoPage.json',
347
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewVideoPage.json',
334
348
  };
335
349
  exports.ViewWeather = {
336
350
  eventType: 'View',
337
351
  object: {
338
352
  objectType: 'Weather',
339
353
  },
340
- schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.10.0/schemas/ViewWeather.json',
354
+ schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewWeather.json',
341
355
  };
342
356
  exports.ADVERTISING_VALUES = ['Accepted', 'Rejected', 'Unknown'];
343
357
  exports.ANALYTICS_VALUES = ['Accepted', 'Rejected', 'Unknown'];
@@ -394,6 +408,8 @@ exports.PAGE_TYPE_VALUES = [
394
408
  'Title',
395
409
  'VideoPage',
396
410
  'Weather',
411
+ 'AppWidget',
412
+ 'Notification',
397
413
  ];
398
414
  exports.COLUMN_NAME_VALUES = ['main', 'aside'];
399
415
  exports.FOLD_POSITION_VALUES = ['Above', 'Below', 'Unknown'];
@@ -462,4 +478,4 @@ exports.UTM_MEDIUM_VALUES = [
462
478
  'Video',
463
479
  'Internal',
464
480
  ];
465
- exports.CATALOG_VERSION = '2.10.0';
481
+ exports.CATALOG_VERSION = '2.11.0';
@@ -12,17 +12,20 @@ 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
+ 'trackEngagementAffiliate',
15
16
  'trackEngagementAudio',
16
17
  'trackEngagementForm',
17
18
  'trackEngagementHealthUIElement',
18
19
  'trackEngagementOffer',
19
20
  'trackEngagementTeaser',
21
+ 'trackEngagementTvModule',
20
22
  'trackEngagementUIElement',
21
23
  'trackEngagementVideo',
22
24
  'trackEngagementVideoAd',
23
25
  'trackEngagementWidget',
24
26
  'trackCompletedHealthAction',
25
27
  'trackImpressionAdSlot',
28
+ 'trackImpressionAffiliate',
26
29
  'trackImpressionForm',
27
30
  'trackImpressionHealthUIElement',
28
31
  'trackImpressionOffer',
@@ -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.14';
5
+ exports.SDK_VERSION = '8.0.0-rc.16';