@schibsted/pulse-sdk 8.0.0-rc.7 → 8.0.0-rc.8
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 +7 -21
- package/dist/cjs/builders/experiments.js +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/ejs/Tracker.js +8 -22
- package/dist/ejs/builders/experiments.js +1 -1
- package/dist/ejs/version.js +1 -1
- package/dist/types/Tracker.d.ts +1 -15
- package/dist/types/builders/experiments.d.ts +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/version.d.ts +1 -1
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders.js +49 -47
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders.js +49 -47
- package/node_modules/@schibsted/tpaas-event-builder/dist/index.d.ts +42 -36
- package/node_modules/@schibsted/tpaas-event-builder/package.json +1 -0
- package/node_modules/@schibsted/tpaas-schemas/dist/cjs/constants.js +56 -56
- package/node_modules/@schibsted/tpaas-schemas/dist/cjs/index.js +1 -0
- package/node_modules/@schibsted/tpaas-schemas/dist/cjs/types.js +2 -0
- package/node_modules/@schibsted/tpaas-schemas/dist/ejs/constants.js +56 -56
- package/node_modules/@schibsted/tpaas-schemas/dist/ejs/index.js +1 -0
- package/node_modules/@schibsted/tpaas-schemas/dist/ejs/types.js +1 -0
- package/node_modules/@schibsted/tpaas-schemas/dist/index.d.ts +109 -61
- package/package.json +3 -3
|
@@ -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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1";
|
|
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
|
}
|
|
@@ -3427,6 +3431,7 @@ export interface IInternalAccessDecision {
|
|
|
3427
3431
|
deviceType?: "Desktop" | "Mobile" | "Tablet" | "SmartTv" | "Other";
|
|
3428
3432
|
/**
|
|
3429
3433
|
* The environment ID.
|
|
3434
|
+
* @example "42401e1f-7e04-4b73-8bed-1ceffc0ed8cc"
|
|
3430
3435
|
*/
|
|
3431
3436
|
environmentId: string;
|
|
3432
3437
|
/**
|
|
@@ -3449,7 +3454,7 @@ export interface IInternalAccessDecision {
|
|
|
3449
3454
|
eventType: "Internal";
|
|
3450
3455
|
experiments?: IExperiments;
|
|
3451
3456
|
object: {
|
|
3452
|
-
arm
|
|
3457
|
+
arm?: {
|
|
3453
3458
|
/**
|
|
3454
3459
|
* Unique ID of the experimental arm the user is assigned to.
|
|
3455
3460
|
*/
|
|
@@ -3506,7 +3511,7 @@ export interface IInternalAccessDecision {
|
|
|
3506
3511
|
* Categorization of how the decision was made.
|
|
3507
3512
|
*/
|
|
3508
3513
|
decisionType: "Policy" | "Replay" | "Fallback";
|
|
3509
|
-
episode
|
|
3514
|
+
episode?: {
|
|
3510
3515
|
/**
|
|
3511
3516
|
* End time of the episode in UTC.
|
|
3512
3517
|
* @format date-time
|
|
@@ -3522,6 +3527,10 @@ export interface IInternalAccessDecision {
|
|
|
3522
3527
|
*/
|
|
3523
3528
|
startAt: string;
|
|
3524
3529
|
};
|
|
3530
|
+
/**
|
|
3531
|
+
* Internal Decision System error that caused the fallback.
|
|
3532
|
+
*/
|
|
3533
|
+
fallbackReason?: "EngineTimeout" | "EpisodeReadError" | "EpisodeWriteError" | "RequestCountError" | "ArmReadError" | "ArmWriteError";
|
|
3525
3534
|
/**
|
|
3526
3535
|
* The type of the object.
|
|
3527
3536
|
*/
|
|
@@ -4222,9 +4231,8 @@ export interface ILeaveListing {
|
|
|
4222
4231
|
itemsTotal: number;
|
|
4223
4232
|
/**
|
|
4224
4233
|
* The type of listing page, e.g. 'tag', 'section' etc.
|
|
4225
|
-
* @pattern Tag,Story,Section,Search,Author,Other
|
|
4226
4234
|
*/
|
|
4227
|
-
listingType:
|
|
4235
|
+
listingType: "Tag" | "Story" | "Section" | "Search" | "Author" | "Other";
|
|
4228
4236
|
/**
|
|
4229
4237
|
* The unique ID of this page.
|
|
4230
4238
|
*/
|
|
@@ -5039,6 +5047,7 @@ export interface IPurchaseSubscription {
|
|
|
5039
5047
|
/**
|
|
5040
5048
|
* The environmentId.
|
|
5041
5049
|
* @pattern ^[0-9a-fA-F-]+$
|
|
5050
|
+
* @example "42401e1f-7e04-4b73-8bed-1ceffc0ed8cc"
|
|
5042
5051
|
*/
|
|
5043
5052
|
environmentId?: string;
|
|
5044
5053
|
};
|
|
@@ -5133,6 +5142,7 @@ export interface IPurchaseSubscription {
|
|
|
5133
5142
|
utm?: IUtmTags;
|
|
5134
5143
|
/**
|
|
5135
5144
|
* 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.
|
|
5145
|
+
* @example "079bc17a-4ee8-42ab-a29f-2fbba4cd403f"
|
|
5136
5146
|
*/
|
|
5137
5147
|
xDomainId?: string;
|
|
5138
5148
|
};
|
|
@@ -6426,5 +6436,43 @@ export interface IViewWeather {
|
|
|
6426
6436
|
user?: IUser;
|
|
6427
6437
|
}
|
|
6428
6438
|
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";
|
|
6440
|
+
export type TpaasSchemasWithNavigationType = Extract<ITpaasEvent, {
|
|
6441
|
+
page: {
|
|
6442
|
+
navigationType?: string;
|
|
6443
|
+
};
|
|
6444
|
+
}>;
|
|
6445
|
+
type NavigationType$1 = TpaasSchemasWithNavigationType["page"]["navigationType"];
|
|
6446
|
+
export type DeepOmit<T, K extends string> = T extends readonly unknown[] ? T : T extends object ? {
|
|
6447
|
+
[P in keyof T as P extends K ? never : P]: DeepOmit<T[P], K extends `${Exclude<P, symbol>}.${infer R}` ? R : never>;
|
|
6448
|
+
} extends infer Result ? {
|
|
6449
|
+
[P in keyof Result as Result[P] extends Record<string, never> ? never : P]: Result[P];
|
|
6450
|
+
} : never : T;
|
|
6451
|
+
type OptionalNavigationType<T> = T extends {
|
|
6452
|
+
page: {
|
|
6453
|
+
navigationType: infer N;
|
|
6454
|
+
};
|
|
6455
|
+
} ? Omit<T, "page"> & {
|
|
6456
|
+
page: Omit<T["page"], "navigationType"> & {
|
|
6457
|
+
navigationType?: N;
|
|
6458
|
+
};
|
|
6459
|
+
} : T extends {
|
|
6460
|
+
page?: {
|
|
6461
|
+
navigationType: infer N;
|
|
6462
|
+
};
|
|
6463
|
+
} ? Omit<T, "page"> & {
|
|
6464
|
+
page?: Omit<NonNullable<T["page"]>, "navigationType"> & {
|
|
6465
|
+
navigationType?: N;
|
|
6466
|
+
};
|
|
6467
|
+
} : T;
|
|
6468
|
+
type WithOptionalPage<T> = T extends TpaasOptionalPageSchemas ? Omit<T, "page"> & {
|
|
6469
|
+
page?: T["page"];
|
|
6470
|
+
} : T;
|
|
6471
|
+
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;
|
|
6472
|
+
export type InputParams<T extends ITpaasEvent> = DeepOmit<OptionalNavigationType<WithOptionalPage<T>>, OmittedProperties>;
|
|
6473
|
+
|
|
6474
|
+
export {
|
|
6475
|
+
NavigationType$1 as NavigationType,
|
|
6476
|
+
};
|
|
6429
6477
|
|
|
6430
6478
|
export {};
|
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.8",
|
|
4
4
|
"description": "Node.js / Browser Pulse SDK",
|
|
5
5
|
"author": "Schibsted Data&Tech",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"ts-deepmerge": "7.0.3",
|
|
43
43
|
"ua-parser-js": "2.0.9",
|
|
44
44
|
"uuid": "14.0.0",
|
|
45
|
-
"@schibsted/pulse-cis-sync": "2.0.18",
|
|
46
|
-
"@schibsted/tpaas-schemas": "1.0.0",
|
|
47
45
|
"@schibsted/tpaas-event-builder": "1.0.0",
|
|
46
|
+
"@schibsted/tpaas-schemas": "1.0.0",
|
|
47
|
+
"@schibsted/pulse-cis-sync": "2.0.18",
|
|
48
48
|
"@schibsted/pulse-utils": "1.0.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|