@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,451 +1,444 @@
1
- export declare const AnonymousViewUIElement: {
2
- readonly eventType: 'AnonymousView';
1
+ export declare const AnonymousImpressionUIElement: {
2
+ readonly eventType: 'AnonymousImpression';
3
3
  readonly isAnonymous: true;
4
4
  readonly object: {
5
5
  readonly objectType: 'UIElement';
6
6
  };
7
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/AnonymousViewUIElement.json';
7
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/AnonymousImpressionUIElement.json';
8
8
  };
9
9
  export declare const CompletedHealthAction: {
10
10
  readonly eventType: 'Completed';
11
11
  readonly object: {
12
12
  readonly objectType: 'HealthAction';
13
13
  };
14
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/CompletedHealthAction.json';
14
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/CompletedHealthAction.json';
15
15
  };
16
16
  export declare const EngagementAd: {
17
17
  readonly eventType: 'Engagement';
18
18
  readonly object: {
19
19
  readonly objectType: 'Ad';
20
20
  };
21
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAd.json';
21
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAd.json';
22
22
  };
23
23
  export declare const EngagementAffiliate: {
24
24
  readonly eventType: 'Engagement';
25
25
  readonly object: {
26
26
  readonly objectType: 'Affiliate';
27
27
  };
28
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAffiliate.json';
28
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAffiliate.json';
29
29
  };
30
30
  export declare const EngagementAudio: {
31
31
  readonly eventType: 'Engagement';
32
32
  readonly object: {
33
33
  readonly objectType: 'Audio';
34
34
  };
35
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAudio.json';
35
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAudio.json';
36
36
  };
37
37
  export declare const EngagementForm: {
38
38
  readonly eventType: 'Engagement';
39
39
  readonly object: {
40
40
  readonly objectType: 'Form';
41
41
  };
42
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementForm.json';
42
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementForm.json';
43
43
  };
44
44
  export declare const EngagementHealthUIElement: {
45
45
  readonly eventType: 'Engagement';
46
46
  readonly object: {
47
47
  readonly objectType: 'HealthUIElement';
48
48
  };
49
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementHealthUIElement.json';
49
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementHealthUIElement.json';
50
50
  };
51
51
  export declare const EngagementOffer: {
52
52
  readonly eventType: 'Engagement';
53
53
  readonly object: {
54
54
  readonly objectType: 'Offer';
55
55
  };
56
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementOffer.json';
56
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementOffer.json';
57
57
  };
58
58
  export declare const EngagementSchoolUIElement: {
59
59
  readonly eventType: 'Engagement';
60
60
  readonly object: {
61
61
  readonly objectType: 'SchoolUIElement';
62
62
  };
63
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementSchoolUIElement.json';
63
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementSchoolUIElement.json';
64
64
  };
65
65
  export declare const EngagementSportsUIElement: {
66
66
  readonly eventType: 'Engagement';
67
67
  readonly object: {
68
68
  readonly objectType: 'SportsUIElement';
69
69
  };
70
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementSportsUIElement.json';
70
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementSportsUIElement.json';
71
71
  };
72
72
  export declare const EngagementTeaser: {
73
73
  readonly eventType: 'Engagement';
74
74
  readonly object: {
75
75
  readonly objectType: 'Teaser';
76
76
  };
77
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTeaser.json';
77
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTeaser.json';
78
78
  };
79
79
  export declare const EngagementTvModule: {
80
80
  readonly eventType: 'Engagement';
81
81
  readonly object: {
82
82
  readonly objectType: 'TvModule';
83
83
  };
84
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTvModule.json';
84
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTvModule.json';
85
85
  };
86
86
  export declare const EngagementTvSearch: {
87
87
  readonly eventType: 'Engagement';
88
88
  readonly object: {
89
89
  readonly objectType: 'TvSearch';
90
90
  };
91
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTvSearch.json';
91
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTvSearch.json';
92
92
  };
93
93
  export declare const EngagementUIElement: {
94
94
  readonly eventType: 'Engagement';
95
95
  readonly object: {
96
96
  readonly objectType: 'UIElement';
97
97
  };
98
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementUIElement.json';
98
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementUIElement.json';
99
99
  };
100
100
  export declare const EngagementVideo: {
101
101
  readonly eventType: 'Engagement';
102
102
  readonly object: {
103
103
  readonly objectType: 'Video';
104
104
  };
105
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementVideo.json';
105
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementVideo.json';
106
106
  };
107
107
  export declare const EngagementVideoAd: {
108
108
  readonly eventType: 'Engagement';
109
109
  readonly object: {
110
110
  readonly objectType: 'VideoAd';
111
111
  };
112
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementVideoAd.json';
112
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementVideoAd.json';
113
113
  };
114
114
  export declare const EngagementWidget: {
115
115
  readonly eventType: 'Engagement';
116
116
  readonly object: {
117
117
  readonly objectType: 'Widget';
118
118
  };
119
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementWidget.json';
119
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementWidget.json';
120
120
  };
121
121
  export declare const HeartbeatCommercialArticle: {
122
122
  readonly eventType: 'Heartbeat';
123
123
  readonly object: {
124
124
  readonly objectType: 'CommercialArticle';
125
125
  };
126
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/HeartbeatCommercialArticle.json';
126
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/HeartbeatCommercialArticle.json';
127
127
  };
128
128
  export declare const ImpressionAd: {
129
129
  readonly eventType: 'Impression';
130
130
  readonly object: {
131
131
  readonly objectType: 'Ad';
132
132
  };
133
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAd.json';
133
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAd.json';
134
134
  };
135
135
  export declare const ImpressionAdSlot: {
136
136
  readonly eventType: 'Impression';
137
137
  readonly object: {
138
138
  readonly objectType: 'AdSlot';
139
139
  };
140
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAdSlot.json';
140
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAdSlot.json';
141
141
  };
142
142
  export declare const ImpressionAffiliate: {
143
143
  readonly eventType: 'Impression';
144
144
  readonly object: {
145
145
  readonly objectType: 'Affiliate';
146
146
  };
147
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAffiliate.json';
147
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAffiliate.json';
148
148
  };
149
149
  export declare const ImpressionForm: {
150
150
  readonly eventType: 'Impression';
151
151
  readonly object: {
152
152
  readonly objectType: 'Form';
153
153
  };
154
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionForm.json';
154
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionForm.json';
155
155
  };
156
156
  export declare const ImpressionHealthUIElement: {
157
157
  readonly eventType: 'Impression';
158
158
  readonly object: {
159
159
  readonly objectType: 'HealthUIElement';
160
160
  };
161
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionHealthUIElement.json';
161
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionHealthUIElement.json';
162
162
  };
163
163
  export declare const ImpressionOffer: {
164
164
  readonly eventType: 'Impression';
165
165
  readonly object: {
166
166
  readonly objectType: 'Offer';
167
167
  };
168
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionOffer.json';
168
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionOffer.json';
169
169
  };
170
170
  export declare const ImpressionPlayer: {
171
171
  readonly eventType: 'Impression';
172
172
  readonly object: {
173
173
  readonly objectType: 'Player';
174
174
  };
175
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionPlayer.json';
175
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionPlayer.json';
176
176
  };
177
177
  export declare const ImpressionSchoolUIElement: {
178
178
  readonly eventType: 'Impression';
179
179
  readonly object: {
180
180
  readonly objectType: 'SchoolUIElement';
181
181
  };
182
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionSchoolUIElement.json';
182
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionSchoolUIElement.json';
183
183
  };
184
184
  export declare const ImpressionSportsUIElement: {
185
185
  readonly eventType: 'Impression';
186
186
  readonly object: {
187
187
  readonly objectType: 'SportsUIElement';
188
188
  };
189
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionSportsUIElement.json';
189
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionSportsUIElement.json';
190
190
  };
191
191
  export declare const ImpressionTeaser: {
192
192
  readonly eventType: 'Impression';
193
193
  readonly object: {
194
194
  readonly objectType: 'Teaser';
195
195
  };
196
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionTeaser.json';
196
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionTeaser.json';
197
197
  };
198
198
  export declare const ImpressionUIElement: {
199
199
  readonly eventType: 'Impression';
200
200
  readonly object: {
201
201
  readonly objectType: 'UIElement';
202
202
  };
203
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionUIElement.json';
203
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionUIElement.json';
204
204
  };
205
205
  export declare const ImpressionWidget: {
206
206
  readonly eventType: 'Impression';
207
207
  readonly object: {
208
208
  readonly objectType: 'Widget';
209
209
  };
210
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionWidget.json';
210
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionWidget.json';
211
211
  };
212
212
  export declare const LeaveArticle: {
213
213
  readonly eventType: 'Leave';
214
214
  readonly object: {
215
215
  readonly objectType: 'Article';
216
216
  };
217
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveArticle.json';
217
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveArticle.json';
218
218
  };
219
219
  export declare const LeaveAudioPage: {
220
220
  readonly eventType: 'Leave';
221
221
  readonly object: {
222
222
  readonly objectType: 'AudioPage';
223
223
  };
224
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveAudioPage.json';
224
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveAudioPage.json';
225
225
  };
226
226
  export declare const LeaveError: {
227
227
  readonly eventType: 'Leave';
228
228
  readonly object: {
229
229
  readonly objectType: 'Error';
230
230
  };
231
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveError.json';
231
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveError.json';
232
232
  };
233
233
  export declare const LeaveFrontpage: {
234
234
  readonly eventType: 'Leave';
235
235
  readonly object: {
236
236
  readonly objectType: 'Frontpage';
237
237
  };
238
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveFrontpage.json';
238
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveFrontpage.json';
239
239
  };
240
240
  export declare const LeaveLandingpage: {
241
241
  readonly eventType: 'Leave';
242
242
  readonly object: {
243
243
  readonly objectType: 'Landingpage';
244
244
  };
245
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLandingpage.json';
245
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLandingpage.json';
246
246
  };
247
247
  export declare const LeaveListing: {
248
248
  readonly eventType: 'Leave';
249
249
  readonly object: {
250
250
  readonly objectType: 'Listing';
251
251
  };
252
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveListing.json';
252
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveListing.json';
253
253
  };
254
254
  export declare const LeaveLockedArticle: {
255
255
  readonly eventType: 'Leave';
256
256
  readonly object: {
257
257
  readonly objectType: 'LockedArticle';
258
258
  };
259
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedArticle.json';
259
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedArticle.json';
260
260
  };
261
261
  export declare const LeaveLockedAudioPage: {
262
262
  readonly eventType: 'Leave';
263
263
  readonly object: {
264
264
  readonly objectType: 'LockedAudioPage';
265
265
  };
266
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedAudioPage.json';
266
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedAudioPage.json';
267
267
  };
268
268
  export declare const LeaveLockedPage: {
269
269
  readonly eventType: 'Leave';
270
270
  readonly object: {
271
271
  readonly objectType: 'LockedPage';
272
272
  };
273
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedPage.json';
273
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedPage.json';
274
274
  };
275
275
  export declare const LeaveLockedVideoPage: {
276
276
  readonly eventType: 'Leave';
277
277
  readonly object: {
278
278
  readonly objectType: 'LockedVideoPage';
279
279
  };
280
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedVideoPage.json';
280
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedVideoPage.json';
281
281
  };
282
282
  export declare const LeavePage: {
283
283
  readonly eventType: 'Leave';
284
284
  readonly object: {
285
285
  readonly objectType: 'Page';
286
286
  };
287
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeavePage.json';
287
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeavePage.json';
288
288
  };
289
289
  export declare const LeaveSchoolPage: {
290
290
  readonly eventType: 'Leave';
291
291
  readonly object: {
292
292
  readonly objectType: 'SchoolPage';
293
293
  };
294
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveSchoolPage.json';
294
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveSchoolPage.json';
295
295
  };
296
296
  export declare const LeaveSportsPage: {
297
297
  readonly eventType: 'Leave';
298
298
  readonly object: {
299
299
  readonly objectType: 'SportsPage';
300
300
  };
301
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveSportsPage.json';
301
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveSportsPage.json';
302
302
  };
303
303
  export declare const LeaveVideoPage: {
304
304
  readonly eventType: 'Leave';
305
305
  readonly object: {
306
306
  readonly objectType: 'VideoPage';
307
307
  };
308
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveVideoPage.json';
308
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveVideoPage.json';
309
309
  };
310
310
  export declare const LeaveWeather: {
311
311
  readonly eventType: 'Leave';
312
312
  readonly object: {
313
313
  readonly objectType: 'Weather';
314
314
  };
315
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveWeather.json';
315
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveWeather.json';
316
316
  };
317
317
  export declare const LoadAd: {
318
318
  readonly eventType: 'Load';
319
319
  readonly object: {
320
320
  readonly objectType: 'Ad';
321
321
  };
322
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LoadAd.json';
323
- };
324
- export declare const RequestAd: {
325
- readonly eventType: 'Request';
326
- readonly object: {
327
- readonly objectType: 'Ad';
328
- };
329
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/RequestAd.json';
322
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LoadAd.json';
330
323
  };
331
324
  export declare const ViewArticle: {
332
325
  readonly eventType: 'View';
333
326
  readonly object: {
334
327
  readonly objectType: 'Article';
335
328
  };
336
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewArticle.json';
329
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewArticle.json';
337
330
  };
338
331
  export declare const ViewAudioPage: {
339
332
  readonly eventType: 'View';
340
333
  readonly object: {
341
334
  readonly objectType: 'AudioPage';
342
335
  };
343
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewAudioPage.json';
336
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewAudioPage.json';
344
337
  };
345
338
  export declare const ViewError: {
346
339
  readonly eventType: 'View';
347
340
  readonly object: {
348
341
  readonly objectType: 'Error';
349
342
  };
350
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewError.json';
343
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewError.json';
351
344
  };
352
345
  export declare const ViewFrontpage: {
353
346
  readonly eventType: 'View';
354
347
  readonly object: {
355
348
  readonly objectType: 'Frontpage';
356
349
  };
357
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewFrontpage.json';
350
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewFrontpage.json';
358
351
  };
359
352
  export declare const ViewHealthPage: {
360
353
  readonly eventType: 'View';
361
354
  readonly object: {
362
355
  readonly objectType: 'HealthPage';
363
356
  };
364
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewHealthPage.json';
357
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewHealthPage.json';
365
358
  };
366
359
  export declare const ViewLandingpage: {
367
360
  readonly eventType: 'View';
368
361
  readonly object: {
369
362
  readonly objectType: 'Landingpage';
370
363
  };
371
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLandingpage.json';
364
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLandingpage.json';
372
365
  };
373
366
  export declare const ViewListing: {
374
367
  readonly eventType: 'View';
375
368
  readonly object: {
376
369
  readonly objectType: 'Listing';
377
370
  };
378
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewListing.json';
371
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewListing.json';
379
372
  };
380
373
  export declare const ViewLockedArticle: {
381
374
  readonly eventType: 'View';
382
375
  readonly object: {
383
376
  readonly objectType: 'LockedArticle';
384
377
  };
385
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedArticle.json';
378
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedArticle.json';
386
379
  };
387
380
  export declare const ViewLockedAudioPage: {
388
381
  readonly eventType: 'View';
389
382
  readonly object: {
390
383
  readonly objectType: 'LockedAudioPage';
391
384
  };
392
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedAudioPage.json';
385
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedAudioPage.json';
393
386
  };
394
387
  export declare const ViewLockedPage: {
395
388
  readonly eventType: 'View';
396
389
  readonly object: {
397
390
  readonly objectType: 'LockedPage';
398
391
  };
399
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedPage.json';
392
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedPage.json';
400
393
  };
401
394
  export declare const ViewLockedVideoPage: {
402
395
  readonly eventType: 'View';
403
396
  readonly object: {
404
397
  readonly objectType: 'LockedVideoPage';
405
398
  };
406
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedVideoPage.json';
399
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedVideoPage.json';
407
400
  };
408
401
  export declare const ViewPage: {
409
402
  readonly eventType: 'View';
410
403
  readonly object: {
411
404
  readonly objectType: 'Page';
412
405
  };
413
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewPage.json';
406
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewPage.json';
414
407
  };
415
408
  export declare const ViewSchoolPage: {
416
409
  readonly eventType: 'View';
417
410
  readonly object: {
418
411
  readonly objectType: 'SchoolPage';
419
412
  };
420
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewSchoolPage.json';
413
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewSchoolPage.json';
421
414
  };
422
415
  export declare const ViewSportsPage: {
423
416
  readonly eventType: 'View';
424
417
  readonly object: {
425
418
  readonly objectType: 'SportsPage';
426
419
  };
427
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewSportsPage.json';
420
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewSportsPage.json';
428
421
  };
429
422
  export declare const ViewTitle: {
430
423
  readonly eventType: 'View';
431
424
  readonly object: {
432
425
  readonly objectType: 'Title';
433
426
  };
434
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewTitle.json';
427
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewTitle.json';
435
428
  };
436
429
  export declare const ViewVideoPage: {
437
430
  readonly eventType: 'View';
438
431
  readonly object: {
439
432
  readonly objectType: 'VideoPage';
440
433
  };
441
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewVideoPage.json';
434
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewVideoPage.json';
442
435
  };
443
436
  export declare const ViewWeather: {
444
437
  readonly eventType: 'View';
445
438
  readonly object: {
446
439
  readonly objectType: 'Weather';
447
440
  };
448
- readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewWeather.json';
441
+ readonly schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewWeather.json';
449
442
  };
450
443
  export declare const ADVERTISING_VALUES: readonly ['Accepted', 'Rejected', 'Unknown'];
451
444
  export declare const ANALYTICS_VALUES: readonly ['Accepted', 'Rejected', 'Unknown'];
@@ -475,4 +468,4 @@ export declare const ROUTING_STAGE_VALUES: readonly ['Dev', 'Pre', 'Pro'];
475
468
  export declare const TRACKER_TYPE_VALUES: readonly ['JS', 'IOS', 'Android', 'Backend'];
476
469
  export declare const REGION_VALUES: readonly ['Norway', 'Sweden', 'Finland'];
477
470
  export declare const UTM_MEDIUM_VALUES: readonly ['Organic', 'Cpc', 'Email', 'Social', 'Referral', 'Display', 'Affiliate', 'Video', 'Internal'];
478
- export declare const CATALOG_VERSION: '2.15.1';
471
+ export declare const CATALOG_VERSION: '2.16.0';
@@ -1,5 +1,5 @@
1
1
  import type {
2
- IAnonymousViewUIElement,
2
+ IAnonymousImpressionUIElement,
3
3
  ICompletedHealthAction,
4
4
  IEngagementAd,
5
5
  IEngagementAffiliate,
@@ -45,7 +45,6 @@ import type {
45
45
  ILeaveVideoPage,
46
46
  ILeaveWeather,
47
47
  ILoadAd,
48
- IRequestAd,
49
48
  IViewArticle,
50
49
  IViewAudioPage,
51
50
  IViewError,
@@ -66,7 +65,7 @@ import type {
66
65
  } from './schemas/index.d.ts';
67
66
 
68
67
  export type ITpaasEvent =
69
- | IAnonymousViewUIElement
68
+ | IAnonymousImpressionUIElement
70
69
  | ICompletedHealthAction
71
70
  | IEngagementAd
72
71
  | IEngagementAffiliate
@@ -112,7 +111,6 @@ export type ITpaasEvent =
112
111
  | ILeaveVideoPage
113
112
  | ILeaveWeather
114
113
  | ILoadAd
115
- | IRequestAd
116
114
  | IViewArticle
117
115
  | IViewAudioPage
118
116
  | IViewError
@@ -9,7 +9,7 @@ import type { IUtmTags } from '../templates/IUtmTags.d.ts';
9
9
  /**
10
10
  * A view event when Consents are not yet decided (example: tracking the view of a cookie consent popup). Note: currently only used on Web. In this case, the SDK has restrictions on storage/cookies and is unable to provide user or device related fields.
11
11
  */
12
- export interface IAnonymousViewUIElement {
12
+ export interface IAnonymousImpressionUIElement {
13
13
  /**
14
14
  * The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
15
15
  * @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
@@ -24,7 +24,7 @@ export interface IAnonymousViewUIElement {
24
24
  /**
25
25
  * The type of the event.
26
26
  */
27
- eventType: 'AnonymousView';
27
+ eventType: 'AnonymousImpression';
28
28
  experiments?: IExperiments;
29
29
  isAnonymous: true;
30
30
  object: {
@@ -64,10 +64,14 @@ export interface IEngagementAudio {
64
64
  * Identifies the entry path that led to the playback. Examples include direct playback, next navigation etc
65
65
  */
66
66
  playEntry: string;
67
+ /**
68
+ * Describes what triggered playback. None indicates automatic continuation of an ongoing playback flow, such as Play Next or Stories advancing without user interaction
69
+ */
70
+ playTrigger: 'Autoplay' | 'Click' | 'Scroll' | 'None';
67
71
  /**
68
72
  * Indicates how the audio started
69
73
  */
70
- playType: 'Autoplay' | 'ClickToPlay' | 'ScrollToPlay';
74
+ playType: 'Automatic' | 'Manual';
71
75
  /**
72
76
  * How the content is being consumed by the user
73
77
  */
@@ -140,7 +144,7 @@ export interface IEngagementAudio {
140
144
  /**
141
145
  * Indicates how the audio is configured to start
142
146
  */
143
- playTypeIntent: 'Autoplay' | 'ClickToPlay' | 'ScrollToPlay';
147
+ playTypeIntent: 'Automatic' | 'Manual';
144
148
  /**
145
149
  * The type of player exposed to the user
146
150
  */
@@ -43,9 +43,9 @@ export interface IEngagementTeaser {
43
43
  metrics?: IMetrics;
44
44
  object: {
45
45
  /**
46
- * The engine producing this teaser. Use “editorial” for manually curated item.
46
+ * The engine producing this teaser. Use “Editorial” for manually curated item.
47
47
  */
48
- contentSource: 'Capi' | 'Curate' | 'ElasticSearch' | 'Editorial' | 'Stream';
48
+ contentSource: 'Capi' | 'Curate' | 'ElasticSearch' | 'Editorial' | 'Stream' | 'Other';
49
49
  /**
50
50
  * The creative of the teaser.
51
51
  */
@@ -77,7 +77,10 @@ export interface IEngagementTvModule {
77
77
  | 'SportListing'
78
78
  | 'PremiereCalendar'
79
79
  | 'UserCalendar'
80
- | 'TrailerList';
80
+ | 'TrailerList'
81
+ | 'PlayListSet'
82
+ | 'PlayListFiltered'
83
+ | 'PlayUserFiltered';
81
84
  /**
82
85
  * The name of the component.
83
86
  */