@schibsted/pulse-sdk 8.0.0-rc.20 → 8.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Tracker.js +170 -334
- package/dist/cjs/builders/session-browser.js +4 -79
- package/dist/cjs/session/store.js +96 -0
- package/dist/cjs/tpaas-builders/builders/device.js +42 -70
- package/dist/cjs/tpaas-builders/builders/pageInfo.js +2 -3
- package/dist/cjs/tpaas-builders/builders/session.js +2 -114
- package/dist/cjs/tpaas-builders/builders/utm.js +2 -8
- package/dist/cjs/tpaas-builders/builders.js +135 -148
- package/dist/cjs/tpaas-context/adapters.js +85 -0
- package/dist/cjs/tpaas-context/browser.js +51 -0
- package/dist/cjs/tpaas-context/index.js +6 -0
- package/dist/cjs/tpaas-context/prepare.js +177 -0
- package/dist/cjs/tpaas-context/session.js +23 -0
- package/dist/cjs/tpaas-schemas/constants.js +68 -75
- package/dist/cjs/tracker-proxy/consts.js +1 -2
- package/dist/cjs/version.js +1 -1
- package/dist/ejs/Tracker.js +171 -335
- package/dist/ejs/builders/session-browser.js +4 -77
- package/dist/ejs/session/store.js +90 -0
- package/dist/ejs/tpaas-builders/builders/device.js +42 -70
- package/dist/ejs/tpaas-builders/builders/pageInfo.js +2 -3
- package/dist/ejs/tpaas-builders/builders/session.js +1 -111
- package/dist/ejs/tpaas-builders/builders/utm.js +2 -8
- package/dist/ejs/tpaas-builders/builders.js +135 -147
- package/dist/ejs/tpaas-context/adapters.js +80 -0
- package/dist/ejs/tpaas-context/browser.js +47 -0
- package/dist/ejs/tpaas-context/index.js +1 -0
- package/dist/ejs/tpaas-context/prepare.js +137 -0
- package/dist/ejs/tpaas-context/session.js +19 -0
- package/dist/ejs/tpaas-schemas/constants.js +66 -73
- package/dist/ejs/tracker-proxy/consts.js +1 -2
- package/dist/ejs/version.js +1 -1
- package/dist/types/Tracker.d.ts +27 -23
- package/dist/types/builders/session-browser.d.ts +0 -13
- package/dist/types/session/store.d.ts +34 -0
- package/dist/types/tpaas-builders/builders/consents.d.ts +2 -2
- package/dist/types/tpaas-builders/builders/device.d.ts +2 -2
- package/dist/types/tpaas-builders/builders/experiments.d.ts +2 -2
- package/dist/types/tpaas-builders/builders/pageInfo.d.ts +2 -1
- package/dist/types/tpaas-builders/builders/pageviewId.d.ts +2 -2
- package/dist/types/tpaas-builders/builders/provider.d.ts +2 -2
- package/dist/types/tpaas-builders/builders/session.d.ts +1 -12
- package/dist/types/tpaas-builders/builders/trackerBuilder.d.ts +2 -2
- package/dist/types/tpaas-builders/builders/user.d.ts +2 -2
- package/dist/types/tpaas-builders/builders/utm.d.ts +2 -1
- package/dist/types/tpaas-builders/builders.d.ts +70 -70
- package/dist/types/tpaas-builders/index.d.ts +0 -1
- package/dist/types/tpaas-context/adapters.d.ts +26 -0
- package/dist/types/tpaas-context/browser.d.ts +8 -0
- package/dist/types/tpaas-context/index.d.ts +2 -0
- package/dist/types/tpaas-context/prepare.d.ts +38 -0
- package/dist/types/tpaas-context/session.d.ts +10 -0
- package/dist/types/tpaas-context/types.d.ts +66 -0
- package/dist/types/tpaas-schemas/constants.d.ts +66 -73
- package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +2 -4
- package/dist/types/tpaas-schemas/types/schemas/{IAnonymousViewUIElement.d.ts → IAnonymousImpressionUIElement.d.ts} +2 -2
- package/dist/types/tpaas-schemas/types/schemas/IEngagementAudio.d.ts +6 -2
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTeaser.d.ts +2 -2
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTvModule.d.ts +4 -1
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTvSearch.d.ts +4 -4
- package/dist/types/tpaas-schemas/types/schemas/IEngagementVideo.d.ts +6 -2
- package/dist/types/tpaas-schemas/types/schemas/IEngagementVideoAd.d.ts +10 -8
- package/dist/types/tpaas-schemas/types/schemas/IImpressionTeaser.d.ts +2 -2
- package/dist/types/tpaas-schemas/types/schemas/ILeaveWeather.d.ts +2 -0
- package/dist/types/tpaas-schemas/types/schemas/index.d.ts +1 -2
- package/dist/types/tpaas-schemas/types.d.ts +2 -2
- package/dist/types/tracker-proxy/consts.d.ts +1 -1
- package/dist/types/types.d.ts +2 -4
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/tpaas-builders/types.d.ts +0 -36
- package/dist/types/tpaas-schemas/types/schemas/IRequestAd.d.ts +0 -95
- /package/dist/cjs/{tpaas-builders → tpaas-context}/types.js +0 -0
- /package/dist/ejs/{tpaas-builders → tpaas-context}/types.js +0 -0
|
@@ -1,451 +1,444 @@
|
|
|
1
|
-
export const
|
|
2
|
-
eventType: '
|
|
1
|
+
export const AnonymousImpressionUIElement = {
|
|
2
|
+
eventType: 'AnonymousImpression',
|
|
3
3
|
isAnonymous: true,
|
|
4
4
|
object: {
|
|
5
5
|
objectType: 'UIElement',
|
|
6
6
|
},
|
|
7
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
7
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/AnonymousImpressionUIElement.json',
|
|
8
8
|
};
|
|
9
9
|
export const CompletedHealthAction = {
|
|
10
10
|
eventType: 'Completed',
|
|
11
11
|
object: {
|
|
12
12
|
objectType: 'HealthAction',
|
|
13
13
|
},
|
|
14
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
14
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/CompletedHealthAction.json',
|
|
15
15
|
};
|
|
16
16
|
export const EngagementAd = {
|
|
17
17
|
eventType: 'Engagement',
|
|
18
18
|
object: {
|
|
19
19
|
objectType: 'Ad',
|
|
20
20
|
},
|
|
21
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
21
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAd.json',
|
|
22
22
|
};
|
|
23
23
|
export const EngagementAffiliate = {
|
|
24
24
|
eventType: 'Engagement',
|
|
25
25
|
object: {
|
|
26
26
|
objectType: 'Affiliate',
|
|
27
27
|
},
|
|
28
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
28
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAffiliate.json',
|
|
29
29
|
};
|
|
30
30
|
export const EngagementAudio = {
|
|
31
31
|
eventType: 'Engagement',
|
|
32
32
|
object: {
|
|
33
33
|
objectType: 'Audio',
|
|
34
34
|
},
|
|
35
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
35
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementAudio.json',
|
|
36
36
|
};
|
|
37
37
|
export const EngagementForm = {
|
|
38
38
|
eventType: 'Engagement',
|
|
39
39
|
object: {
|
|
40
40
|
objectType: 'Form',
|
|
41
41
|
},
|
|
42
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
42
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementForm.json',
|
|
43
43
|
};
|
|
44
44
|
export const EngagementHealthUIElement = {
|
|
45
45
|
eventType: 'Engagement',
|
|
46
46
|
object: {
|
|
47
47
|
objectType: 'HealthUIElement',
|
|
48
48
|
},
|
|
49
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
49
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementHealthUIElement.json',
|
|
50
50
|
};
|
|
51
51
|
export const EngagementOffer = {
|
|
52
52
|
eventType: 'Engagement',
|
|
53
53
|
object: {
|
|
54
54
|
objectType: 'Offer',
|
|
55
55
|
},
|
|
56
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
56
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementOffer.json',
|
|
57
57
|
};
|
|
58
58
|
export const EngagementSchoolUIElement = {
|
|
59
59
|
eventType: 'Engagement',
|
|
60
60
|
object: {
|
|
61
61
|
objectType: 'SchoolUIElement',
|
|
62
62
|
},
|
|
63
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
63
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementSchoolUIElement.json',
|
|
64
64
|
};
|
|
65
65
|
export const EngagementSportsUIElement = {
|
|
66
66
|
eventType: 'Engagement',
|
|
67
67
|
object: {
|
|
68
68
|
objectType: 'SportsUIElement',
|
|
69
69
|
},
|
|
70
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
70
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementSportsUIElement.json',
|
|
71
71
|
};
|
|
72
72
|
export const EngagementTeaser = {
|
|
73
73
|
eventType: 'Engagement',
|
|
74
74
|
object: {
|
|
75
75
|
objectType: 'Teaser',
|
|
76
76
|
},
|
|
77
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
77
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTeaser.json',
|
|
78
78
|
};
|
|
79
79
|
export const EngagementTvModule = {
|
|
80
80
|
eventType: 'Engagement',
|
|
81
81
|
object: {
|
|
82
82
|
objectType: 'TvModule',
|
|
83
83
|
},
|
|
84
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
84
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTvModule.json',
|
|
85
85
|
};
|
|
86
86
|
export const EngagementTvSearch = {
|
|
87
87
|
eventType: 'Engagement',
|
|
88
88
|
object: {
|
|
89
89
|
objectType: 'TvSearch',
|
|
90
90
|
},
|
|
91
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
91
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementTvSearch.json',
|
|
92
92
|
};
|
|
93
93
|
export const EngagementUIElement = {
|
|
94
94
|
eventType: 'Engagement',
|
|
95
95
|
object: {
|
|
96
96
|
objectType: 'UIElement',
|
|
97
97
|
},
|
|
98
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
98
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementUIElement.json',
|
|
99
99
|
};
|
|
100
100
|
export const EngagementVideo = {
|
|
101
101
|
eventType: 'Engagement',
|
|
102
102
|
object: {
|
|
103
103
|
objectType: 'Video',
|
|
104
104
|
},
|
|
105
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
105
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementVideo.json',
|
|
106
106
|
};
|
|
107
107
|
export const EngagementVideoAd = {
|
|
108
108
|
eventType: 'Engagement',
|
|
109
109
|
object: {
|
|
110
110
|
objectType: 'VideoAd',
|
|
111
111
|
},
|
|
112
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
112
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementVideoAd.json',
|
|
113
113
|
};
|
|
114
114
|
export const EngagementWidget = {
|
|
115
115
|
eventType: 'Engagement',
|
|
116
116
|
object: {
|
|
117
117
|
objectType: 'Widget',
|
|
118
118
|
},
|
|
119
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
119
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/EngagementWidget.json',
|
|
120
120
|
};
|
|
121
121
|
export const HeartbeatCommercialArticle = {
|
|
122
122
|
eventType: 'Heartbeat',
|
|
123
123
|
object: {
|
|
124
124
|
objectType: 'CommercialArticle',
|
|
125
125
|
},
|
|
126
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
126
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/HeartbeatCommercialArticle.json',
|
|
127
127
|
};
|
|
128
128
|
export const ImpressionAd = {
|
|
129
129
|
eventType: 'Impression',
|
|
130
130
|
object: {
|
|
131
131
|
objectType: 'Ad',
|
|
132
132
|
},
|
|
133
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
133
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAd.json',
|
|
134
134
|
};
|
|
135
135
|
export const ImpressionAdSlot = {
|
|
136
136
|
eventType: 'Impression',
|
|
137
137
|
object: {
|
|
138
138
|
objectType: 'AdSlot',
|
|
139
139
|
},
|
|
140
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
140
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAdSlot.json',
|
|
141
141
|
};
|
|
142
142
|
export const ImpressionAffiliate = {
|
|
143
143
|
eventType: 'Impression',
|
|
144
144
|
object: {
|
|
145
145
|
objectType: 'Affiliate',
|
|
146
146
|
},
|
|
147
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
147
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionAffiliate.json',
|
|
148
148
|
};
|
|
149
149
|
export const ImpressionForm = {
|
|
150
150
|
eventType: 'Impression',
|
|
151
151
|
object: {
|
|
152
152
|
objectType: 'Form',
|
|
153
153
|
},
|
|
154
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
154
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionForm.json',
|
|
155
155
|
};
|
|
156
156
|
export const ImpressionHealthUIElement = {
|
|
157
157
|
eventType: 'Impression',
|
|
158
158
|
object: {
|
|
159
159
|
objectType: 'HealthUIElement',
|
|
160
160
|
},
|
|
161
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
161
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionHealthUIElement.json',
|
|
162
162
|
};
|
|
163
163
|
export const ImpressionOffer = {
|
|
164
164
|
eventType: 'Impression',
|
|
165
165
|
object: {
|
|
166
166
|
objectType: 'Offer',
|
|
167
167
|
},
|
|
168
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
168
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionOffer.json',
|
|
169
169
|
};
|
|
170
170
|
export const ImpressionPlayer = {
|
|
171
171
|
eventType: 'Impression',
|
|
172
172
|
object: {
|
|
173
173
|
objectType: 'Player',
|
|
174
174
|
},
|
|
175
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
175
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionPlayer.json',
|
|
176
176
|
};
|
|
177
177
|
export const ImpressionSchoolUIElement = {
|
|
178
178
|
eventType: 'Impression',
|
|
179
179
|
object: {
|
|
180
180
|
objectType: 'SchoolUIElement',
|
|
181
181
|
},
|
|
182
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
182
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionSchoolUIElement.json',
|
|
183
183
|
};
|
|
184
184
|
export const ImpressionSportsUIElement = {
|
|
185
185
|
eventType: 'Impression',
|
|
186
186
|
object: {
|
|
187
187
|
objectType: 'SportsUIElement',
|
|
188
188
|
},
|
|
189
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
189
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionSportsUIElement.json',
|
|
190
190
|
};
|
|
191
191
|
export const ImpressionTeaser = {
|
|
192
192
|
eventType: 'Impression',
|
|
193
193
|
object: {
|
|
194
194
|
objectType: 'Teaser',
|
|
195
195
|
},
|
|
196
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
196
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionTeaser.json',
|
|
197
197
|
};
|
|
198
198
|
export const ImpressionUIElement = {
|
|
199
199
|
eventType: 'Impression',
|
|
200
200
|
object: {
|
|
201
201
|
objectType: 'UIElement',
|
|
202
202
|
},
|
|
203
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
203
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionUIElement.json',
|
|
204
204
|
};
|
|
205
205
|
export const ImpressionWidget = {
|
|
206
206
|
eventType: 'Impression',
|
|
207
207
|
object: {
|
|
208
208
|
objectType: 'Widget',
|
|
209
209
|
},
|
|
210
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
210
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ImpressionWidget.json',
|
|
211
211
|
};
|
|
212
212
|
export const LeaveArticle = {
|
|
213
213
|
eventType: 'Leave',
|
|
214
214
|
object: {
|
|
215
215
|
objectType: 'Article',
|
|
216
216
|
},
|
|
217
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
217
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveArticle.json',
|
|
218
218
|
};
|
|
219
219
|
export const LeaveAudioPage = {
|
|
220
220
|
eventType: 'Leave',
|
|
221
221
|
object: {
|
|
222
222
|
objectType: 'AudioPage',
|
|
223
223
|
},
|
|
224
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
224
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveAudioPage.json',
|
|
225
225
|
};
|
|
226
226
|
export const LeaveError = {
|
|
227
227
|
eventType: 'Leave',
|
|
228
228
|
object: {
|
|
229
229
|
objectType: 'Error',
|
|
230
230
|
},
|
|
231
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
231
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveError.json',
|
|
232
232
|
};
|
|
233
233
|
export const LeaveFrontpage = {
|
|
234
234
|
eventType: 'Leave',
|
|
235
235
|
object: {
|
|
236
236
|
objectType: 'Frontpage',
|
|
237
237
|
},
|
|
238
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
238
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveFrontpage.json',
|
|
239
239
|
};
|
|
240
240
|
export const LeaveLandingpage = {
|
|
241
241
|
eventType: 'Leave',
|
|
242
242
|
object: {
|
|
243
243
|
objectType: 'Landingpage',
|
|
244
244
|
},
|
|
245
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
245
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLandingpage.json',
|
|
246
246
|
};
|
|
247
247
|
export const LeaveListing = {
|
|
248
248
|
eventType: 'Leave',
|
|
249
249
|
object: {
|
|
250
250
|
objectType: 'Listing',
|
|
251
251
|
},
|
|
252
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
252
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveListing.json',
|
|
253
253
|
};
|
|
254
254
|
export const LeaveLockedArticle = {
|
|
255
255
|
eventType: 'Leave',
|
|
256
256
|
object: {
|
|
257
257
|
objectType: 'LockedArticle',
|
|
258
258
|
},
|
|
259
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
259
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedArticle.json',
|
|
260
260
|
};
|
|
261
261
|
export const LeaveLockedAudioPage = {
|
|
262
262
|
eventType: 'Leave',
|
|
263
263
|
object: {
|
|
264
264
|
objectType: 'LockedAudioPage',
|
|
265
265
|
},
|
|
266
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
266
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedAudioPage.json',
|
|
267
267
|
};
|
|
268
268
|
export const LeaveLockedPage = {
|
|
269
269
|
eventType: 'Leave',
|
|
270
270
|
object: {
|
|
271
271
|
objectType: 'LockedPage',
|
|
272
272
|
},
|
|
273
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
273
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedPage.json',
|
|
274
274
|
};
|
|
275
275
|
export const LeaveLockedVideoPage = {
|
|
276
276
|
eventType: 'Leave',
|
|
277
277
|
object: {
|
|
278
278
|
objectType: 'LockedVideoPage',
|
|
279
279
|
},
|
|
280
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
280
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveLockedVideoPage.json',
|
|
281
281
|
};
|
|
282
282
|
export const LeavePage = {
|
|
283
283
|
eventType: 'Leave',
|
|
284
284
|
object: {
|
|
285
285
|
objectType: 'Page',
|
|
286
286
|
},
|
|
287
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
287
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeavePage.json',
|
|
288
288
|
};
|
|
289
289
|
export const LeaveSchoolPage = {
|
|
290
290
|
eventType: 'Leave',
|
|
291
291
|
object: {
|
|
292
292
|
objectType: 'SchoolPage',
|
|
293
293
|
},
|
|
294
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
294
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveSchoolPage.json',
|
|
295
295
|
};
|
|
296
296
|
export const LeaveSportsPage = {
|
|
297
297
|
eventType: 'Leave',
|
|
298
298
|
object: {
|
|
299
299
|
objectType: 'SportsPage',
|
|
300
300
|
},
|
|
301
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
301
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveSportsPage.json',
|
|
302
302
|
};
|
|
303
303
|
export const LeaveVideoPage = {
|
|
304
304
|
eventType: 'Leave',
|
|
305
305
|
object: {
|
|
306
306
|
objectType: 'VideoPage',
|
|
307
307
|
},
|
|
308
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
308
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveVideoPage.json',
|
|
309
309
|
};
|
|
310
310
|
export const LeaveWeather = {
|
|
311
311
|
eventType: 'Leave',
|
|
312
312
|
object: {
|
|
313
313
|
objectType: 'Weather',
|
|
314
314
|
},
|
|
315
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
315
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LeaveWeather.json',
|
|
316
316
|
};
|
|
317
317
|
export const LoadAd = {
|
|
318
318
|
eventType: 'Load',
|
|
319
319
|
object: {
|
|
320
320
|
objectType: 'Ad',
|
|
321
321
|
},
|
|
322
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
323
|
-
};
|
|
324
|
-
export const RequestAd = {
|
|
325
|
-
eventType: 'Request',
|
|
326
|
-
object: {
|
|
327
|
-
objectType: 'Ad',
|
|
328
|
-
},
|
|
329
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/RequestAd.json',
|
|
322
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/LoadAd.json',
|
|
330
323
|
};
|
|
331
324
|
export const ViewArticle = {
|
|
332
325
|
eventType: 'View',
|
|
333
326
|
object: {
|
|
334
327
|
objectType: 'Article',
|
|
335
328
|
},
|
|
336
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
329
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewArticle.json',
|
|
337
330
|
};
|
|
338
331
|
export const ViewAudioPage = {
|
|
339
332
|
eventType: 'View',
|
|
340
333
|
object: {
|
|
341
334
|
objectType: 'AudioPage',
|
|
342
335
|
},
|
|
343
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
336
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewAudioPage.json',
|
|
344
337
|
};
|
|
345
338
|
export const ViewError = {
|
|
346
339
|
eventType: 'View',
|
|
347
340
|
object: {
|
|
348
341
|
objectType: 'Error',
|
|
349
342
|
},
|
|
350
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
343
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewError.json',
|
|
351
344
|
};
|
|
352
345
|
export const ViewFrontpage = {
|
|
353
346
|
eventType: 'View',
|
|
354
347
|
object: {
|
|
355
348
|
objectType: 'Frontpage',
|
|
356
349
|
},
|
|
357
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
350
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewFrontpage.json',
|
|
358
351
|
};
|
|
359
352
|
export const ViewHealthPage = {
|
|
360
353
|
eventType: 'View',
|
|
361
354
|
object: {
|
|
362
355
|
objectType: 'HealthPage',
|
|
363
356
|
},
|
|
364
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
357
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewHealthPage.json',
|
|
365
358
|
};
|
|
366
359
|
export const ViewLandingpage = {
|
|
367
360
|
eventType: 'View',
|
|
368
361
|
object: {
|
|
369
362
|
objectType: 'Landingpage',
|
|
370
363
|
},
|
|
371
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
364
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLandingpage.json',
|
|
372
365
|
};
|
|
373
366
|
export const ViewListing = {
|
|
374
367
|
eventType: 'View',
|
|
375
368
|
object: {
|
|
376
369
|
objectType: 'Listing',
|
|
377
370
|
},
|
|
378
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
371
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewListing.json',
|
|
379
372
|
};
|
|
380
373
|
export const ViewLockedArticle = {
|
|
381
374
|
eventType: 'View',
|
|
382
375
|
object: {
|
|
383
376
|
objectType: 'LockedArticle',
|
|
384
377
|
},
|
|
385
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
378
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedArticle.json',
|
|
386
379
|
};
|
|
387
380
|
export const ViewLockedAudioPage = {
|
|
388
381
|
eventType: 'View',
|
|
389
382
|
object: {
|
|
390
383
|
objectType: 'LockedAudioPage',
|
|
391
384
|
},
|
|
392
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
385
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedAudioPage.json',
|
|
393
386
|
};
|
|
394
387
|
export const ViewLockedPage = {
|
|
395
388
|
eventType: 'View',
|
|
396
389
|
object: {
|
|
397
390
|
objectType: 'LockedPage',
|
|
398
391
|
},
|
|
399
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
392
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedPage.json',
|
|
400
393
|
};
|
|
401
394
|
export const ViewLockedVideoPage = {
|
|
402
395
|
eventType: 'View',
|
|
403
396
|
object: {
|
|
404
397
|
objectType: 'LockedVideoPage',
|
|
405
398
|
},
|
|
406
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
399
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewLockedVideoPage.json',
|
|
407
400
|
};
|
|
408
401
|
export const ViewPage = {
|
|
409
402
|
eventType: 'View',
|
|
410
403
|
object: {
|
|
411
404
|
objectType: 'Page',
|
|
412
405
|
},
|
|
413
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
406
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewPage.json',
|
|
414
407
|
};
|
|
415
408
|
export const ViewSchoolPage = {
|
|
416
409
|
eventType: 'View',
|
|
417
410
|
object: {
|
|
418
411
|
objectType: 'SchoolPage',
|
|
419
412
|
},
|
|
420
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
413
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewSchoolPage.json',
|
|
421
414
|
};
|
|
422
415
|
export const ViewSportsPage = {
|
|
423
416
|
eventType: 'View',
|
|
424
417
|
object: {
|
|
425
418
|
objectType: 'SportsPage',
|
|
426
419
|
},
|
|
427
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
420
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewSportsPage.json',
|
|
428
421
|
};
|
|
429
422
|
export const ViewTitle = {
|
|
430
423
|
eventType: 'View',
|
|
431
424
|
object: {
|
|
432
425
|
objectType: 'Title',
|
|
433
426
|
},
|
|
434
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
427
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewTitle.json',
|
|
435
428
|
};
|
|
436
429
|
export const ViewVideoPage = {
|
|
437
430
|
eventType: 'View',
|
|
438
431
|
object: {
|
|
439
432
|
objectType: 'VideoPage',
|
|
440
433
|
},
|
|
441
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
434
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewVideoPage.json',
|
|
442
435
|
};
|
|
443
436
|
export const ViewWeather = {
|
|
444
437
|
eventType: 'View',
|
|
445
438
|
object: {
|
|
446
439
|
objectType: 'Weather',
|
|
447
440
|
},
|
|
448
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
441
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.16.0/schemas/ViewWeather.json',
|
|
449
442
|
};
|
|
450
443
|
export const ADVERTISING_VALUES = ['Accepted', 'Rejected', 'Unknown'];
|
|
451
444
|
export const ANALYTICS_VALUES = ['Accepted', 'Rejected', 'Unknown'];
|
|
@@ -538,4 +531,4 @@ export const UTM_MEDIUM_VALUES = [
|
|
|
538
531
|
'Video',
|
|
539
532
|
'Internal',
|
|
540
533
|
];
|
|
541
|
-
export const CATALOG_VERSION = '2.
|
|
534
|
+
export const CATALOG_VERSION = '2.16.0';
|
|
@@ -7,7 +7,7 @@ export const MESSAGE_TYPE_RETURN = `${MESSAGE_PREFIX}:return`;
|
|
|
7
7
|
export const MESSAGE_TYPE_RETURN_ERROR = `${MESSAGE_PREFIX}:return-error`;
|
|
8
8
|
export const ALLOWED_METHODS = ['track'];
|
|
9
9
|
export const TPAAS_ALLOWED_METHODS = [
|
|
10
|
-
'
|
|
10
|
+
'trackAnonymousImpressionUIElement',
|
|
11
11
|
'trackEngagementAd',
|
|
12
12
|
'trackEngagementAffiliate',
|
|
13
13
|
'trackEngagementAudio',
|
|
@@ -38,7 +38,6 @@ export const TPAAS_ALLOWED_METHODS = [
|
|
|
38
38
|
'trackImpressionUIElement',
|
|
39
39
|
'trackImpressionWidget',
|
|
40
40
|
'trackLoadAd',
|
|
41
|
-
'trackRequestAd',
|
|
42
41
|
'trackLeaveArticle',
|
|
43
42
|
'trackLeaveAudioPage',
|
|
44
43
|
'trackLeaveError',
|
package/dist/ejs/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated by bin/generate-version.js. Do not edit manually.
|
|
2
|
-
export const SDK_VERSION = '8.0.0-rc.
|
|
2
|
+
export const SDK_VERSION = '8.0.0-rc.21';
|