@schibsted/pulse-sdk 8.0.0-rc.8 → 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.
- package/dist/cjs/Tracker.js +9 -0
- package/dist/cjs/Tracker.test-d.js +0 -2
- package/dist/cjs/builders/consents.js +2 -2
- package/dist/cjs/builders/events-node.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/ejs/Tracker.js +9 -0
- package/dist/ejs/Tracker.test-d.js +0 -2
- package/dist/ejs/builders/consents.js +2 -2
- package/dist/ejs/builders/events-node.js +3 -3
- package/dist/ejs/version.js +1 -1
- package/dist/types/Tracker.d.ts +11 -1
- package/dist/types/builders/consents.d.ts +2 -2
- package/dist/types/builders/index.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/provider.js +3 -1
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders.js +51 -51
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/provider.js +3 -1
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders.js +51 -51
- package/node_modules/@schibsted/tpaas-event-builder/dist/index.d.ts +24 -13
- package/node_modules/@schibsted/tpaas-schemas/dist/cjs/constants.js +56 -56
- package/node_modules/@schibsted/tpaas-schemas/dist/ejs/constants.js +56 -56
- package/node_modules/@schibsted/tpaas-schemas/dist/index.d.ts +77 -68
- package/package.json +4 -4
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
@@ -1263,9 +1263,9 @@ export interface IContent {
|
|
|
1263
1263
|
*/
|
|
1264
1264
|
contentType: "Article" | "LiveArticle" | "SpecialArticle" | "Podcast" | "Episode" | "Audiobook" | "AudiobookSample" | "Movie" | "Series" | "Story";
|
|
1265
1265
|
/**
|
|
1266
|
-
* The
|
|
1266
|
+
* The namespace that the target content belongs to, for example its newsroom
|
|
1267
1267
|
*/
|
|
1268
|
-
|
|
1268
|
+
namespace: string;
|
|
1269
1269
|
/**
|
|
1270
1270
|
* A list of product features that give access to this content. (Uses OR, i.e., having one is enough for access.)
|
|
1271
1271
|
*/
|
|
@@ -1989,15 +1989,11 @@ export interface IPlacement {
|
|
|
1989
1989
|
* The context in which the recommendation was made.
|
|
1990
1990
|
*/
|
|
1991
1991
|
curateContext?: string;
|
|
1992
|
-
/**
|
|
1993
|
-
* The source of the impression/engagement.
|
|
1994
|
-
*/
|
|
1995
|
-
curateSource?: string;
|
|
1996
1992
|
/**
|
|
1997
1993
|
* Indicator if the player was visible at pageload (“above”) or if the user had to scroll to it (“below”).
|
|
1998
1994
|
*/
|
|
1999
1995
|
foldPosition: "Above" | "Below" | "Unknown";
|
|
2000
|
-
positionInBundle
|
|
1996
|
+
positionInBundle?: number;
|
|
2001
1997
|
/**
|
|
2002
1998
|
* The parent’s primary direction along which components are laid out.
|
|
2003
1999
|
*/
|
|
@@ -3468,6 +3464,18 @@ export interface IInternalAccessDecision {
|
|
|
3468
3464
|
*/
|
|
3469
3465
|
config: {
|
|
3470
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
|
+
};
|
|
3471
3479
|
version: string;
|
|
3472
3480
|
/**
|
|
3473
3481
|
* @minimum 0
|
|
@@ -3552,10 +3560,6 @@ export interface IInternalAccessDecision {
|
|
|
3552
3560
|
schema: string;
|
|
3553
3561
|
target: {
|
|
3554
3562
|
content: {
|
|
3555
|
-
/**
|
|
3556
|
-
* The access restriction placed on the content.
|
|
3557
|
-
*/
|
|
3558
|
-
accessLevel?: "Free" | "Login" | "Meter" | "Paid" | "Dynamic";
|
|
3559
3563
|
/**
|
|
3560
3564
|
* The format that this content is presented in.
|
|
3561
3565
|
*/
|
|
@@ -3568,6 +3572,11 @@ export interface IInternalAccessDecision {
|
|
|
3568
3572
|
* The subtype of the content.
|
|
3569
3573
|
*/
|
|
3570
3574
|
contentType?: "Article" | "LiveArticle" | "SpecialArticle" | "Podcast" | "Episode" | "Audiobook" | "AudiobookSample" | "Movie" | "Series" | "Story";
|
|
3575
|
+
layout?: string;
|
|
3576
|
+
/**
|
|
3577
|
+
* @minimum 1
|
|
3578
|
+
*/
|
|
3579
|
+
layoutPosition?: number;
|
|
3571
3580
|
/**
|
|
3572
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.
|
|
3573
3582
|
*/
|
|
@@ -6436,7 +6445,7 @@ export interface IViewWeather {
|
|
|
6436
6445
|
user?: IUser;
|
|
6437
6446
|
}
|
|
6438
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;
|
|
6439
|
-
export type OmittedProperties = "user" | "eventId" | "consents" | "device" | "time" | "tracker" | "session" | "eventType" | "schema" | "object.objectType" | "isAnonymous" | "provider.providerId" | "provider.providerSdrn" | "page.pageviewId" | "page.utm" | "page.info" | "page.referrer.url" | "catalogVersion";
|
|
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";
|
|
6440
6449
|
export type TpaasSchemasWithNavigationType = Extract<ITpaasEvent, {
|
|
6441
6450
|
page: {
|
|
6442
6451
|
navigationType?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schibsted/pulse-sdk",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.9",
|
|
4
4
|
"description": "Node.js / Browser Pulse SDK",
|
|
5
5
|
"author": "Schibsted Data&Tech",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"ts-deepmerge": "7.0.3",
|
|
43
43
|
"ua-parser-js": "2.0.9",
|
|
44
44
|
"uuid": "14.0.0",
|
|
45
|
-
"@schibsted/
|
|
45
|
+
"@schibsted/pulse-utils": "1.0.2",
|
|
46
46
|
"@schibsted/tpaas-schemas": "1.0.0",
|
|
47
47
|
"@schibsted/pulse-cis-sync": "2.0.18",
|
|
48
|
-
"@schibsted/
|
|
48
|
+
"@schibsted/tpaas-event-builder": "1.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/dom": "10.4.1",
|
|
52
52
|
"@types/debounce": "1.2.4",
|
|
53
53
|
"@types/node": "24.10.13",
|
|
54
|
-
"@vitest/browser-playwright": "^4.
|
|
54
|
+
"@vitest/browser-playwright": "^4.1.8",
|
|
55
55
|
"msw": "2.12.10",
|
|
56
56
|
"typescript": "5.9.3"
|
|
57
57
|
},
|