@schibsted/pulse-sdk 8.0.0-rc.7 → 8.0.0-rc.9

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 (32) hide show
  1. package/dist/cjs/Tracker.js +16 -21
  2. package/dist/cjs/Tracker.test-d.js +0 -2
  3. package/dist/cjs/builders/consents.js +2 -2
  4. package/dist/cjs/builders/events-node.js +3 -3
  5. package/dist/cjs/builders/experiments.js +1 -0
  6. package/dist/cjs/version.js +1 -1
  7. package/dist/ejs/Tracker.js +17 -22
  8. package/dist/ejs/Tracker.test-d.js +0 -2
  9. package/dist/ejs/builders/consents.js +2 -2
  10. package/dist/ejs/builders/events-node.js +3 -3
  11. package/dist/ejs/builders/experiments.js +1 -1
  12. package/dist/ejs/version.js +1 -1
  13. package/dist/types/Tracker.d.ts +11 -15
  14. package/dist/types/builders/consents.d.ts +2 -2
  15. package/dist/types/builders/experiments.d.ts +1 -0
  16. package/dist/types/builders/index.d.ts +1 -1
  17. package/dist/types/index.d.ts +0 -1
  18. package/dist/types/version.d.ts +1 -1
  19. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/provider.js +3 -1
  20. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders.js +53 -51
  21. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/provider.js +3 -1
  22. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders.js +53 -51
  23. package/node_modules/@schibsted/tpaas-event-builder/dist/index.d.ts +66 -49
  24. package/node_modules/@schibsted/tpaas-event-builder/package.json +1 -0
  25. package/node_modules/@schibsted/tpaas-schemas/dist/cjs/constants.js +56 -56
  26. package/node_modules/@schibsted/tpaas-schemas/dist/cjs/index.js +1 -0
  27. package/node_modules/@schibsted/tpaas-schemas/dist/cjs/types.js +2 -0
  28. package/node_modules/@schibsted/tpaas-schemas/dist/ejs/constants.js +56 -56
  29. package/node_modules/@schibsted/tpaas-schemas/dist/ejs/index.js +1 -0
  30. package/node_modules/@schibsted/tpaas-schemas/dist/ejs/types.js +1 -0
  31. package/node_modules/@schibsted/tpaas-schemas/dist/index.d.ts +129 -72
  32. package/package.json +5 -5
@@ -6,119 +6,119 @@ export declare const AnonymousViewUIElement: {
6
6
  readonly object: {
7
7
  readonly objectType: "UIElement";
8
8
  };
9
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/AnonymousViewUIElement.json";
9
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/AnonymousViewUIElement.json";
10
10
  };
11
11
  export declare const CancelSubscription: {
12
12
  readonly eventType: "Cancel";
13
13
  readonly object: {
14
14
  readonly objectType: "Subscription";
15
15
  };
16
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/CancelSubscription.json";
16
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/CancelSubscription.json";
17
17
  };
18
18
  export declare const ChangePushNotificationSettings: {
19
19
  readonly eventType: "Change";
20
20
  readonly object: {
21
21
  readonly objectType: "PushNotificationSettings";
22
22
  };
23
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ChangePushNotificationSettings.json";
23
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ChangePushNotificationSettings.json";
24
24
  };
25
25
  export declare const CompletedHealthAction: {
26
26
  readonly eventType: "Completed";
27
27
  readonly object: {
28
28
  readonly objectType: "HealthAction";
29
29
  };
30
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/CompletedHealthAction.json";
30
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/CompletedHealthAction.json";
31
31
  };
32
32
  export declare const EngagementAudio: {
33
33
  readonly eventType: "Engagement";
34
34
  readonly object: {
35
35
  readonly objectType: "Audio";
36
36
  };
37
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementAudio.json";
37
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementAudio.json";
38
38
  };
39
39
  export declare const EngagementForm: {
40
40
  readonly eventType: "Engagement";
41
41
  readonly object: {
42
42
  readonly objectType: "Form";
43
43
  };
44
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementForm.json";
44
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementForm.json";
45
45
  };
46
46
  export declare const EngagementHealthUIElement: {
47
47
  readonly eventType: "Engagement";
48
48
  readonly object: {
49
49
  readonly objectType: "HealthUIElement";
50
50
  };
51
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementHealthUIElement.json";
51
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementHealthUIElement.json";
52
52
  };
53
53
  export declare const EngagementNotification: {
54
54
  readonly eventType: "Engagement";
55
55
  readonly object: {
56
56
  readonly objectType: "Notification";
57
57
  };
58
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementNotification.json";
58
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementNotification.json";
59
59
  };
60
60
  export declare const EngagementOffer: {
61
61
  readonly eventType: "Engagement";
62
62
  readonly object: {
63
63
  readonly objectType: "Offer";
64
64
  };
65
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementOffer.json";
65
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementOffer.json";
66
66
  };
67
67
  export declare const EngagementTeaser: {
68
68
  readonly eventType: "Engagement";
69
69
  readonly object: {
70
70
  readonly objectType: "Teaser";
71
71
  };
72
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementTeaser.json";
72
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementTeaser.json";
73
73
  };
74
74
  export declare const EngagementUIElement: {
75
75
  readonly eventType: "Engagement";
76
76
  readonly object: {
77
77
  readonly objectType: "UIElement";
78
78
  };
79
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementUIElement.json";
79
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementUIElement.json";
80
80
  };
81
81
  export declare const EngagementVideo: {
82
82
  readonly eventType: "Engagement";
83
83
  readonly object: {
84
84
  readonly objectType: "Video";
85
85
  };
86
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementVideo.json";
86
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementVideo.json";
87
87
  };
88
88
  export declare const EngagementVideoAd: {
89
89
  readonly eventType: "Engagement";
90
90
  readonly object: {
91
91
  readonly objectType: "VideoAd";
92
92
  };
93
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementVideoAd.json";
93
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementVideoAd.json";
94
94
  };
95
95
  export declare const EngagementWidget: {
96
96
  readonly eventType: "Engagement";
97
97
  readonly object: {
98
98
  readonly objectType: "Widget";
99
99
  };
100
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/EngagementWidget.json";
100
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/EngagementWidget.json";
101
101
  };
102
102
  export declare const ImpressionAdSlot: {
103
103
  readonly eventType: "Impression";
104
104
  readonly object: {
105
105
  readonly objectType: "AdSlot";
106
106
  };
107
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionAdSlot.json";
107
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionAdSlot.json";
108
108
  };
109
109
  export declare const ImpressionForm: {
110
110
  readonly eventType: "Impression";
111
111
  readonly object: {
112
112
  readonly objectType: "Form";
113
113
  };
114
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionForm.json";
114
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionForm.json";
115
115
  };
116
116
  export declare const ImpressionHealthUIElement: {
117
117
  readonly eventType: "Impression";
118
118
  readonly object: {
119
119
  readonly objectType: "HealthUIElement";
120
120
  };
121
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionHealthUIElement.json";
121
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionHealthUIElement.json";
122
122
  };
123
123
  export declare const ImpressionNotification: {
124
124
  readonly eventType: "Impression";
@@ -126,266 +126,266 @@ export declare const ImpressionNotification: {
126
126
  readonly name: "PushNotification";
127
127
  readonly objectType: "Notification";
128
128
  };
129
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionNotification.json";
129
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionNotification.json";
130
130
  };
131
131
  export declare const ImpressionOffer: {
132
132
  readonly eventType: "Impression";
133
133
  readonly object: {
134
134
  readonly objectType: "Offer";
135
135
  };
136
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionOffer.json";
136
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionOffer.json";
137
137
  };
138
138
  export declare const ImpressionPlayer: {
139
139
  readonly eventType: "Impression";
140
140
  readonly object: {
141
141
  readonly objectType: "Player";
142
142
  };
143
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionPlayer.json";
143
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionPlayer.json";
144
144
  };
145
145
  export declare const ImpressionTeaser: {
146
146
  readonly eventType: "Impression";
147
147
  readonly object: {
148
148
  readonly objectType: "Teaser";
149
149
  };
150
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionTeaser.json";
150
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionTeaser.json";
151
151
  };
152
152
  export declare const ImpressionUIElement: {
153
153
  readonly eventType: "Impression";
154
154
  readonly object: {
155
155
  readonly objectType: "UIElement";
156
156
  };
157
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionUIElement.json";
157
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionUIElement.json";
158
158
  };
159
159
  export declare const ImpressionWidget: {
160
160
  readonly eventType: "Impression";
161
161
  readonly object: {
162
162
  readonly objectType: "Widget";
163
163
  };
164
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ImpressionWidget.json";
164
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ImpressionWidget.json";
165
165
  };
166
166
  export declare const InternalAccessDecision: {
167
167
  readonly eventType: "Internal";
168
168
  readonly object: {
169
169
  readonly objectType: "AccessDecision";
170
170
  };
171
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/InternalAccessDecision.json";
171
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/InternalAccessDecision.json";
172
172
  };
173
173
  export declare const InternalProbe: {
174
174
  readonly eventType: "Internal";
175
175
  readonly object: {
176
176
  readonly objectType: "Probe";
177
177
  };
178
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/InternalProbe.json";
178
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/InternalProbe.json";
179
179
  };
180
180
  export declare const LaunchApp: {
181
181
  readonly eventType: "Launch";
182
182
  readonly object: {
183
183
  readonly objectType: "App";
184
184
  };
185
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LaunchApp.json";
185
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LaunchApp.json";
186
186
  };
187
187
  export declare const LeaveArticle: {
188
188
  readonly eventType: "Leave";
189
189
  readonly object: {
190
190
  readonly objectType: "Article";
191
191
  };
192
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveArticle.json";
192
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveArticle.json";
193
193
  };
194
194
  export declare const LeaveAudioPage: {
195
195
  readonly eventType: "Leave";
196
196
  readonly object: {
197
197
  readonly objectType: "AudioPage";
198
198
  };
199
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveAudioPage.json";
199
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveAudioPage.json";
200
200
  };
201
201
  export declare const LeaveError: {
202
202
  readonly eventType: "Leave";
203
203
  readonly object: {
204
204
  readonly objectType: "Error";
205
205
  };
206
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveError.json";
206
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveError.json";
207
207
  };
208
208
  export declare const LeaveFrontpage: {
209
209
  readonly eventType: "Leave";
210
210
  readonly object: {
211
211
  readonly objectType: "Frontpage";
212
212
  };
213
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveFrontpage.json";
213
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveFrontpage.json";
214
214
  };
215
215
  export declare const LeaveLandingpage: {
216
216
  readonly eventType: "Leave";
217
217
  readonly object: {
218
218
  readonly objectType: "Landingpage";
219
219
  };
220
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveLandingpage.json";
220
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveLandingpage.json";
221
221
  };
222
222
  export declare const LeaveListing: {
223
223
  readonly eventType: "Leave";
224
224
  readonly object: {
225
225
  readonly objectType: "Listing";
226
226
  };
227
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveListing.json";
227
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveListing.json";
228
228
  };
229
229
  export declare const LeaveLockedArticle: {
230
230
  readonly eventType: "Leave";
231
231
  readonly object: {
232
232
  readonly objectType: "LockedArticle";
233
233
  };
234
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveLockedArticle.json";
234
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveLockedArticle.json";
235
235
  };
236
236
  export declare const LeaveLockedAudioPage: {
237
237
  readonly eventType: "Leave";
238
238
  readonly object: {
239
239
  readonly objectType: "LockedAudioPage";
240
240
  };
241
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveLockedAudioPage.json";
241
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveLockedAudioPage.json";
242
242
  };
243
243
  export declare const LeaveLockedVideoPage: {
244
244
  readonly eventType: "Leave";
245
245
  readonly object: {
246
246
  readonly objectType: "LockedVideoPage";
247
247
  };
248
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveLockedVideoPage.json";
248
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveLockedVideoPage.json";
249
249
  };
250
250
  export declare const LeavePage: {
251
251
  readonly eventType: "Leave";
252
252
  readonly object: {
253
253
  readonly objectType: "Page";
254
254
  };
255
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeavePage.json";
255
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeavePage.json";
256
256
  };
257
257
  export declare const LeaveSportsPage: {
258
258
  readonly eventType: "Leave";
259
259
  readonly object: {
260
260
  readonly objectType: "SportsPage";
261
261
  };
262
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveSportsPage.json";
262
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveSportsPage.json";
263
263
  };
264
264
  export declare const LeaveVideoPage: {
265
265
  readonly eventType: "Leave";
266
266
  readonly object: {
267
267
  readonly objectType: "VideoPage";
268
268
  };
269
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveVideoPage.json";
269
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveVideoPage.json";
270
270
  };
271
271
  export declare const LeaveWeather: {
272
272
  readonly eventType: "Leave";
273
273
  readonly object: {
274
274
  readonly objectType: "Weather";
275
275
  };
276
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/LeaveWeather.json";
276
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/LeaveWeather.json";
277
277
  };
278
278
  export declare const PurchaseSubscription: {
279
279
  readonly eventType: "Purchase";
280
280
  readonly object: {
281
281
  readonly objectType: "Subscription";
282
282
  };
283
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/PurchaseSubscription.json";
283
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/PurchaseSubscription.json";
284
284
  };
285
285
  export declare const ViewArticle: {
286
286
  readonly eventType: "View";
287
287
  readonly object: {
288
288
  readonly objectType: "Article";
289
289
  };
290
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewArticle.json";
290
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewArticle.json";
291
291
  };
292
292
  export declare const ViewAudioPage: {
293
293
  readonly eventType: "View";
294
294
  readonly object: {
295
295
  readonly objectType: "AudioPage";
296
296
  };
297
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewAudioPage.json";
297
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewAudioPage.json";
298
298
  };
299
299
  export declare const ViewError: {
300
300
  readonly eventType: "View";
301
301
  readonly object: {
302
302
  readonly objectType: "Error";
303
303
  };
304
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewError.json";
304
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewError.json";
305
305
  };
306
306
  export declare const ViewFrontpage: {
307
307
  readonly eventType: "View";
308
308
  readonly object: {
309
309
  readonly objectType: "Frontpage";
310
310
  };
311
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewFrontpage.json";
311
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewFrontpage.json";
312
312
  };
313
313
  export declare const ViewHealthPage: {
314
314
  readonly eventType: "View";
315
315
  readonly object: {
316
316
  readonly objectType: "HealthPage";
317
317
  };
318
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewHealthPage.json";
318
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewHealthPage.json";
319
319
  };
320
320
  export declare const ViewLandingpage: {
321
321
  readonly eventType: "View";
322
322
  readonly object: {
323
323
  readonly objectType: "Landingpage";
324
324
  };
325
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewLandingpage.json";
325
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewLandingpage.json";
326
326
  };
327
327
  export declare const ViewListing: {
328
328
  readonly eventType: "View";
329
329
  readonly object: {
330
330
  readonly objectType: "Listing";
331
331
  };
332
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewListing.json";
332
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewListing.json";
333
333
  };
334
334
  export declare const ViewLockedArticle: {
335
335
  readonly eventType: "View";
336
336
  readonly object: {
337
337
  readonly objectType: "LockedArticle";
338
338
  };
339
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewLockedArticle.json";
339
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewLockedArticle.json";
340
340
  };
341
341
  export declare const ViewLockedAudioPage: {
342
342
  readonly eventType: "View";
343
343
  readonly object: {
344
344
  readonly objectType: "LockedAudioPage";
345
345
  };
346
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewLockedAudioPage.json";
346
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewLockedAudioPage.json";
347
347
  };
348
348
  export declare const ViewLockedVideoPage: {
349
349
  readonly eventType: "View";
350
350
  readonly object: {
351
351
  readonly objectType: "LockedVideoPage";
352
352
  };
353
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewLockedVideoPage.json";
353
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewLockedVideoPage.json";
354
354
  };
355
355
  export declare const ViewPage: {
356
356
  readonly eventType: "View";
357
357
  readonly object: {
358
358
  readonly objectType: "Page";
359
359
  };
360
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewPage.json";
360
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewPage.json";
361
361
  };
362
362
  export declare const ViewSportsPage: {
363
363
  readonly eventType: "View";
364
364
  readonly object: {
365
365
  readonly objectType: "SportsPage";
366
366
  };
367
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewSportsPage.json";
367
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewSportsPage.json";
368
368
  };
369
369
  export declare const ViewTitle: {
370
370
  readonly eventType: "View";
371
371
  readonly object: {
372
372
  readonly objectType: "Title";
373
373
  };
374
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewTitle.json";
374
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewTitle.json";
375
375
  };
376
376
  export declare const ViewVideoPage: {
377
377
  readonly eventType: "View";
378
378
  readonly object: {
379
379
  readonly objectType: "VideoPage";
380
380
  };
381
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewVideoPage.json";
381
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewVideoPage.json";
382
382
  };
383
383
  export declare const ViewWeather: {
384
384
  readonly eventType: "View";
385
385
  readonly object: {
386
386
  readonly objectType: "Weather";
387
387
  };
388
- readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.0/schemas/ViewWeather.json";
388
+ readonly schema: "https://tpaas-schemas.schibsted.media/catalogs/versions/2.7.3/schemas/ViewWeather.json";
389
389
  };
390
390
  export declare const ADVERTISING_VALUES: readonly [
391
391
  "Accepted",
@@ -575,7 +575,7 @@ export declare const UTM_MEDIUM_VALUES: readonly [
575
575
  "Video",
576
576
  "Internal"
577
577
  ];
578
- export declare const CATALOG_VERSION: "2.7.0";
578
+ export declare const CATALOG_VERSION: "2.7.3";
579
579
  /* eslint-disable */
580
580
  /**
581
581
  * This file was automatically generated by json-schema-to-typescript.
@@ -952,6 +952,7 @@ export interface ICancelSubscription {
952
952
  /**
953
953
  * The environmentId.
954
954
  * @pattern ^[0-9a-fA-F-]+$
955
+ * @example "42401e1f-7e04-4b73-8bed-1ceffc0ed8cc"
955
956
  */
956
957
  environmentId: string;
957
958
  };
@@ -1209,19 +1210,22 @@ export interface IChangePushNotificationSettings {
1209
1210
  * and run json-schema-to-typescript to regenerate this file.
1210
1211
  */
1211
1212
  /**
1212
- * Information about the origin of the health page content.
1213
+ * Information about the origin of the health page content. Only used by the Vektklubb/Wellobe projects.
1213
1214
  */
1214
1215
  export interface IHealthOrigin {
1215
1216
  /**
1216
1217
  * The specific UI element or component that navigated to this page.
1218
+ * @example "logging_hq_button"
1217
1219
  */
1218
1220
  content?: string;
1219
1221
  /**
1220
1222
  * The feature area that navigated to this page
1223
+ * @example "meal_logging"
1221
1224
  */
1222
1225
  feature?: string;
1223
1226
  /**
1224
1227
  * The origin name / place that the user navigated from.
1228
+ * @example "logbook"
1225
1229
  */
1226
1230
  name?: string;
1227
1231
  }
@@ -1259,9 +1263,9 @@ export interface IContent {
1259
1263
  */
1260
1264
  contentType: "Article" | "LiveArticle" | "SpecialArticle" | "Podcast" | "Episode" | "Audiobook" | "AudiobookSample" | "Movie" | "Series" | "Story";
1261
1265
  /**
1262
- * The newsroom that the target content belongs to.
1266
+ * The namespace that the target content belongs to, for example its newsroom
1263
1267
  */
1264
- newsroom: string;
1268
+ namespace: string;
1265
1269
  /**
1266
1270
  * A list of product features that give access to this content. (Uses OR, i.e., having one is enough for access.)
1267
1271
  */
@@ -1985,15 +1989,11 @@ export interface IPlacement {
1985
1989
  * The context in which the recommendation was made.
1986
1990
  */
1987
1991
  curateContext?: string;
1988
- /**
1989
- * The source of the impression/engagement.
1990
- */
1991
- curateSource?: string;
1992
1992
  /**
1993
1993
  * Indicator if the player was visible at pageload (“above”) or if the user had to scroll to it (“below”).
1994
1994
  */
1995
1995
  foldPosition: "Above" | "Below" | "Unknown";
1996
- positionInBundle: number;
1996
+ positionInBundle?: number;
1997
1997
  /**
1998
1998
  * The parent’s primary direction along which components are laid out.
1999
1999
  */
@@ -3427,6 +3427,7 @@ export interface IInternalAccessDecision {
3427
3427
  deviceType?: "Desktop" | "Mobile" | "Tablet" | "SmartTv" | "Other";
3428
3428
  /**
3429
3429
  * The environment ID.
3430
+ * @example "42401e1f-7e04-4b73-8bed-1ceffc0ed8cc"
3430
3431
  */
3431
3432
  environmentId: string;
3432
3433
  /**
@@ -3449,7 +3450,7 @@ export interface IInternalAccessDecision {
3449
3450
  eventType: "Internal";
3450
3451
  experiments?: IExperiments;
3451
3452
  object: {
3452
- arm: {
3453
+ arm?: {
3453
3454
  /**
3454
3455
  * Unique ID of the experimental arm the user is assigned to.
3455
3456
  */
@@ -3463,6 +3464,18 @@ export interface IInternalAccessDecision {
3463
3464
  */
3464
3465
  config: {
3465
3466
  armId: string;
3467
+ rctProbabilities?: {
3468
+ /**
3469
+ * @minimum 0
3470
+ * @maximum 1
3471
+ */
3472
+ close: number;
3473
+ /**
3474
+ * @minimum 0
3475
+ * @maximum 1
3476
+ */
3477
+ open: number;
3478
+ };
3466
3479
  version: string;
3467
3480
  /**
3468
3481
  * @minimum 0
@@ -3506,7 +3519,7 @@ export interface IInternalAccessDecision {
3506
3519
  * Categorization of how the decision was made.
3507
3520
  */
3508
3521
  decisionType: "Policy" | "Replay" | "Fallback";
3509
- episode: {
3522
+ episode?: {
3510
3523
  /**
3511
3524
  * End time of the episode in UTC.
3512
3525
  * @format date-time
@@ -3522,6 +3535,10 @@ export interface IInternalAccessDecision {
3522
3535
  */
3523
3536
  startAt: string;
3524
3537
  };
3538
+ /**
3539
+ * Internal Decision System error that caused the fallback.
3540
+ */
3541
+ fallbackReason?: "EngineTimeout" | "EpisodeReadError" | "EpisodeWriteError" | "RequestCountError" | "ArmReadError" | "ArmWriteError";
3525
3542
  /**
3526
3543
  * The type of the object.
3527
3544
  */
@@ -3543,10 +3560,6 @@ export interface IInternalAccessDecision {
3543
3560
  schema: string;
3544
3561
  target: {
3545
3562
  content: {
3546
- /**
3547
- * The access restriction placed on the content.
3548
- */
3549
- accessLevel?: "Free" | "Login" | "Meter" | "Paid" | "Dynamic";
3550
3563
  /**
3551
3564
  * The format that this content is presented in.
3552
3565
  */
@@ -3559,6 +3572,11 @@ export interface IInternalAccessDecision {
3559
3572
  * The subtype of the content.
3560
3573
  */
3561
3574
  contentType?: "Article" | "LiveArticle" | "SpecialArticle" | "Podcast" | "Episode" | "Audiobook" | "AudiobookSample" | "Movie" | "Series" | "Story";
3575
+ layout?: string;
3576
+ /**
3577
+ * @minimum 1
3578
+ */
3579
+ layoutPosition?: number;
3562
3580
  /**
3563
3581
  * The id of the provider that requested the access decision and where the result will be shown (svdse). Note: Not the same as .provider.providerId.
3564
3582
  */
@@ -4222,9 +4240,8 @@ export interface ILeaveListing {
4222
4240
  itemsTotal: number;
4223
4241
  /**
4224
4242
  * The type of listing page, e.g. 'tag', 'section' etc.
4225
- * @pattern Tag,Story,Section,Search,Author,Other
4226
4243
  */
4227
- listingType: string;
4244
+ listingType: "Tag" | "Story" | "Section" | "Search" | "Author" | "Other";
4228
4245
  /**
4229
4246
  * The unique ID of this page.
4230
4247
  */
@@ -5039,6 +5056,7 @@ export interface IPurchaseSubscription {
5039
5056
  /**
5040
5057
  * The environmentId.
5041
5058
  * @pattern ^[0-9a-fA-F-]+$
5059
+ * @example "42401e1f-7e04-4b73-8bed-1ceffc0ed8cc"
5042
5060
  */
5043
5061
  environmentId?: string;
5044
5062
  };
@@ -5133,6 +5151,7 @@ export interface IPurchaseSubscription {
5133
5151
  utm?: IUtmTags;
5134
5152
  /**
5135
5153
  * The session ID on a partner domain (set via query parameter), else the current session ID. This value is used to connect cross-domain events such as behavior events to purchase events.
5154
+ * @example "079bc17a-4ee8-42ab-a29f-2fbba4cd403f"
5136
5155
  */
5137
5156
  xDomainId?: string;
5138
5157
  };
@@ -6426,5 +6445,43 @@ export interface IViewWeather {
6426
6445
  user?: IUser;
6427
6446
  }
6428
6447
  export type ITpaasEvent = IAnonymousViewUIElement | ICancelSubscription | IChangePushNotificationSettings | ICompletedHealthAction | IEngagementAudio | IEngagementForm | IEngagementHealthUIElement | IEngagementNotification | IEngagementOffer | IEngagementTeaser | IEngagementUIElement | IEngagementVideo | IEngagementVideoAd | IEngagementWidget | IImpressionAdSlot | IImpressionForm | IImpressionHealthUIElement | IImpressionNotification | IImpressionOffer | IImpressionPlayer | IImpressionTeaser | IImpressionUIElement | IImpressionWidget | IInternalAccessDecision | IInternalProbe | ILaunchApp | ILeaveArticle | ILeaveAudioPage | ILeaveError | ILeaveFrontpage | ILeaveLandingpage | ILeaveListing | ILeaveLockedArticle | ILeaveLockedAudioPage | ILeaveLockedVideoPage | ILeavePage | ILeaveSportsPage | ILeaveVideoPage | ILeaveWeather | IPurchaseSubscription | IViewArticle | IViewAudioPage | IViewError | IViewFrontpage | IViewHealthPage | IViewLandingpage | IViewListing | IViewLockedArticle | IViewLockedAudioPage | IViewLockedVideoPage | IViewPage | IViewSportsPage | IViewTitle | IViewVideoPage | IViewWeather;
6448
+ export type OmittedProperties = "user" | "eventId" | "consents" | "device" | "time" | "tracker" | "session" | "eventType" | "schema" | "object.objectType" | "isAnonymous" | "provider.providerId" | "provider.providerSdrn" | "provider.component" | "provider.componentVersion" | "page.pageviewId" | "page.utm" | "page.info" | "page.referrer.url" | "catalogVersion";
6449
+ export type TpaasSchemasWithNavigationType = Extract<ITpaasEvent, {
6450
+ page: {
6451
+ navigationType?: string;
6452
+ };
6453
+ }>;
6454
+ type NavigationType$1 = TpaasSchemasWithNavigationType["page"]["navigationType"];
6455
+ export type DeepOmit<T, K extends string> = T extends readonly unknown[] ? T : T extends object ? {
6456
+ [P in keyof T as P extends K ? never : P]: DeepOmit<T[P], K extends `${Exclude<P, symbol>}.${infer R}` ? R : never>;
6457
+ } extends infer Result ? {
6458
+ [P in keyof Result as Result[P] extends Record<string, never> ? never : P]: Result[P];
6459
+ } : never : T;
6460
+ type OptionalNavigationType<T> = T extends {
6461
+ page: {
6462
+ navigationType: infer N;
6463
+ };
6464
+ } ? Omit<T, "page"> & {
6465
+ page: Omit<T["page"], "navigationType"> & {
6466
+ navigationType?: N;
6467
+ };
6468
+ } : T extends {
6469
+ page?: {
6470
+ navigationType: infer N;
6471
+ };
6472
+ } ? Omit<T, "page"> & {
6473
+ page?: Omit<NonNullable<T["page"]>, "navigationType"> & {
6474
+ navigationType?: N;
6475
+ };
6476
+ } : T;
6477
+ type WithOptionalPage<T> = T extends TpaasOptionalPageSchemas ? Omit<T, "page"> & {
6478
+ page?: T["page"];
6479
+ } : T;
6480
+ export type TpaasOptionalPageSchemas = IAnonymousViewUIElement | ICompletedHealthAction | IEngagementAudio | IEngagementForm | IEngagementHealthUIElement | IEngagementOffer | IEngagementTeaser | IEngagementUIElement | IEngagementVideo | IEngagementVideoAd | IEngagementWidget | IImpressionAdSlot | IImpressionForm | IImpressionHealthUIElement | IImpressionOffer | IImpressionPlayer | IImpressionTeaser | IImpressionUIElement | IImpressionWidget | ILeaveAudioPage | ILeaveError | ILeaveFrontpage | ILeaveLandingpage | ILeaveListing | ILeaveLockedAudioPage | ILeaveLockedVideoPage | ILeavePage | ILeaveSportsPage | ILeaveVideoPage | ILeaveWeather | IViewAudioPage | IViewError | IViewFrontpage | IViewHealthPage | IViewLandingpage | IViewListing | IViewLockedAudioPage | IViewLockedVideoPage | IViewPage | IViewSportsPage | IViewTitle | IViewVideoPage | IViewWeather;
6481
+ export type InputParams<T extends ITpaasEvent> = DeepOmit<OptionalNavigationType<WithOptionalPage<T>>, OmittedProperties>;
6482
+
6483
+ export {
6484
+ NavigationType$1 as NavigationType,
6485
+ };
6429
6486
 
6430
6487
  export {};