@schibsted/pulse-sdk 8.0.0-rc.19 → 8.0.0-rc.20
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 +18 -0
- package/dist/cjs/builders/session-browser.js +1 -0
- package/dist/cjs/tpaas-builders/builders/session.js +3 -13
- package/dist/cjs/tpaas-builders/builders.js +10 -0
- package/dist/cjs/tpaas-schemas/constants.js +82 -66
- package/dist/cjs/tracker-proxy/consts.js +2 -0
- package/dist/cjs/utils/index.js +4 -1
- package/dist/cjs/utils/xDomainId.js +15 -0
- package/dist/cjs/version.js +1 -1
- package/dist/ejs/Tracker.js +19 -1
- package/dist/ejs/builders/session-browser.js +2 -1
- package/dist/ejs/tpaas-builders/builders/session.js +3 -13
- package/dist/ejs/tpaas-builders/builders.js +9 -1
- package/dist/ejs/tpaas-schemas/constants.js +80 -64
- package/dist/ejs/tracker-proxy/consts.js +2 -0
- package/dist/ejs/utils/index.js +1 -0
- package/dist/ejs/utils/xDomainId.js +11 -0
- package/dist/ejs/version.js +1 -1
- package/dist/types/Tracker.d.ts +13 -3
- package/dist/types/builders/session-browser.d.ts +1 -0
- package/dist/types/tpaas-builders/builders/provider.d.ts +1 -1
- package/dist/types/tpaas-builders/builders.d.ts +7 -5
- package/dist/types/tpaas-builders/types.d.ts +2 -2
- package/dist/types/tpaas-schemas/constants.d.ts +79 -65
- package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +4 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementAffiliate.d.ts +2 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementAudio.d.ts +3 -11
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTeaser.d.ts +4 -2
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTvSearch.d.ts +142 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementVideo.d.ts +5 -11
- package/dist/types/tpaas-schemas/types/schemas/IEngagementVideoAd.d.ts +1 -9
- package/dist/types/tpaas-schemas/types/schemas/IEngagementWidget.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IHeartbeatCommercialArticle.d.ts +96 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionAdSlot.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IImpressionAffiliate.d.ts +2 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionTeaser.d.ts +4 -2
- package/dist/types/tpaas-schemas/types/schemas/IImpressionWidget.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/ILeaveArticle.d.ts +2 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewArticle.d.ts +2 -0
- package/dist/types/tpaas-schemas/types/schemas/index.d.ts +2 -0
- package/dist/types/tpaas-schemas/types/templates/IBranded.d.ts +42 -0
- package/dist/types/tpaas-schemas/types/templates/IDevice.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/templates/IPageRef.d.ts +3 -1
- package/dist/types/tpaas-schemas/types/templates/ISchool.d.ts +2 -1
- package/dist/types/tpaas-schemas/types/templates/ISports.d.ts +6 -6
- package/dist/types/tpaas-schemas/types/templates/index.d.ts +1 -0
- package/dist/types/tpaas-schemas/types.d.ts +2 -2
- package/dist/types/tracker-proxy/consts.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/xDomainId.d.ts +2 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,441 +1,455 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.CATALOG_VERSION = exports.UTM_MEDIUM_VALUES = exports.REGION_VALUES = exports.TRACKER_TYPE_VALUES = exports.ROUTING_STAGE_VALUES = exports.COLOR_SCHEME_VALUES = exports.SPORT_EVENT_STATUS_VALUES = exports.SPORT_EVENT_COVERAGE_VALUES = exports.STAGE_VALUES = exports.PRIMARY_AXIS_VALUES = exports.FOLD_POSITION_VALUES = exports.COLUMN_NAME_VALUES = exports.PAGE_TYPE_VALUES = exports.PHYSICAL_ACTIVITY_TYPE_VALUES = exports.UNIT_TYPE_VALUES = exports.FOOD_TYPE_VALUES = exports.ACTION_VALUES = exports.VIEWPORT_SIZE_VALUES = exports.SCREEN_ORIENTATION_VALUES = exports.OPERATING_SYSTEM_VALUES = exports.DEVICE_TYPE_VALUES = exports.CLIENT_TYPE_VALUES = exports.FORMAT_SUBTYPE_VALUES = exports.FORMAT_VALUES = exports.ACCESS_LEVEL_VALUES = exports.PERSONALIZATION_VALUES = exports.MARKETING_VALUES = exports.ANALYTICS_VALUES = exports.ADVERTISING_VALUES = exports.ViewWeather = exports.ViewVideoPage = exports.ViewTitle = exports.ViewSportsPage = exports.ViewSchoolPage = exports.ViewPage = exports.ViewLockedVideoPage = exports.ViewLockedPage = exports.ViewLockedAudioPage = exports.ViewLockedArticle = exports.ViewListing = exports.ViewLandingpage = void 0;
|
|
3
|
+
exports.ViewError = exports.ViewAudioPage = exports.ViewArticle = exports.RequestAd = exports.LoadAd = exports.LeaveWeather = exports.LeaveVideoPage = exports.LeaveSportsPage = exports.LeaveSchoolPage = exports.LeavePage = exports.LeaveLockedVideoPage = exports.LeaveLockedPage = exports.LeaveLockedAudioPage = exports.LeaveLockedArticle = exports.LeaveListing = exports.LeaveLandingpage = exports.LeaveFrontpage = exports.LeaveError = exports.LeaveAudioPage = exports.LeaveArticle = exports.ImpressionWidget = exports.ImpressionUIElement = exports.ImpressionTeaser = exports.ImpressionSportsUIElement = exports.ImpressionSchoolUIElement = exports.ImpressionPlayer = exports.ImpressionOffer = exports.ImpressionHealthUIElement = exports.ImpressionForm = exports.ImpressionAffiliate = exports.ImpressionAdSlot = exports.ImpressionAd = exports.HeartbeatCommercialArticle = exports.EngagementWidget = exports.EngagementVideoAd = exports.EngagementVideo = exports.EngagementUIElement = exports.EngagementTvSearch = exports.EngagementTvModule = exports.EngagementTeaser = exports.EngagementSportsUIElement = exports.EngagementSchoolUIElement = exports.EngagementOffer = exports.EngagementHealthUIElement = exports.EngagementForm = exports.EngagementAudio = exports.EngagementAffiliate = exports.EngagementAd = exports.CompletedHealthAction = exports.AnonymousViewUIElement = void 0;
|
|
4
|
+
exports.CATALOG_VERSION = exports.UTM_MEDIUM_VALUES = exports.REGION_VALUES = exports.TRACKER_TYPE_VALUES = exports.ROUTING_STAGE_VALUES = exports.COLOR_SCHEME_VALUES = exports.SPORT_EVENT_STATUS_VALUES = exports.SPORT_EVENT_COVERAGE_VALUES = exports.STAGE_VALUES = exports.PRIMARY_AXIS_VALUES = exports.FOLD_POSITION_VALUES = exports.COLUMN_NAME_VALUES = exports.PAGE_TYPE_VALUES = exports.PHYSICAL_ACTIVITY_TYPE_VALUES = exports.UNIT_TYPE_VALUES = exports.FOOD_TYPE_VALUES = exports.ACTION_VALUES = exports.VIEWPORT_SIZE_VALUES = exports.SCREEN_ORIENTATION_VALUES = exports.OPERATING_SYSTEM_VALUES = exports.DEVICE_TYPE_VALUES = exports.CLIENT_TYPE_VALUES = exports.FORMAT_SUBTYPE_VALUES = exports.FORMAT_VALUES = exports.ACCESS_LEVEL_VALUES = exports.PERSONALIZATION_VALUES = exports.MARKETING_VALUES = exports.ANALYTICS_VALUES = exports.ADVERTISING_VALUES = exports.ViewWeather = exports.ViewVideoPage = exports.ViewTitle = exports.ViewSportsPage = exports.ViewSchoolPage = exports.ViewPage = exports.ViewLockedVideoPage = exports.ViewLockedPage = exports.ViewLockedAudioPage = exports.ViewLockedArticle = exports.ViewListing = exports.ViewLandingpage = exports.ViewHealthPage = exports.ViewFrontpage = void 0;
|
|
5
5
|
exports.AnonymousViewUIElement = {
|
|
6
6
|
eventType: 'AnonymousView',
|
|
7
7
|
isAnonymous: true,
|
|
8
8
|
object: {
|
|
9
9
|
objectType: 'UIElement',
|
|
10
10
|
},
|
|
11
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
11
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/AnonymousViewUIElement.json',
|
|
12
12
|
};
|
|
13
13
|
exports.CompletedHealthAction = {
|
|
14
14
|
eventType: 'Completed',
|
|
15
15
|
object: {
|
|
16
16
|
objectType: 'HealthAction',
|
|
17
17
|
},
|
|
18
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
18
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/CompletedHealthAction.json',
|
|
19
19
|
};
|
|
20
20
|
exports.EngagementAd = {
|
|
21
21
|
eventType: 'Engagement',
|
|
22
22
|
object: {
|
|
23
23
|
objectType: 'Ad',
|
|
24
24
|
},
|
|
25
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
25
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAd.json',
|
|
26
26
|
};
|
|
27
27
|
exports.EngagementAffiliate = {
|
|
28
28
|
eventType: 'Engagement',
|
|
29
29
|
object: {
|
|
30
30
|
objectType: 'Affiliate',
|
|
31
31
|
},
|
|
32
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
32
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAffiliate.json',
|
|
33
33
|
};
|
|
34
34
|
exports.EngagementAudio = {
|
|
35
35
|
eventType: 'Engagement',
|
|
36
36
|
object: {
|
|
37
37
|
objectType: 'Audio',
|
|
38
38
|
},
|
|
39
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
39
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementAudio.json',
|
|
40
40
|
};
|
|
41
41
|
exports.EngagementForm = {
|
|
42
42
|
eventType: 'Engagement',
|
|
43
43
|
object: {
|
|
44
44
|
objectType: 'Form',
|
|
45
45
|
},
|
|
46
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
46
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementForm.json',
|
|
47
47
|
};
|
|
48
48
|
exports.EngagementHealthUIElement = {
|
|
49
49
|
eventType: 'Engagement',
|
|
50
50
|
object: {
|
|
51
51
|
objectType: 'HealthUIElement',
|
|
52
52
|
},
|
|
53
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
53
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementHealthUIElement.json',
|
|
54
54
|
};
|
|
55
55
|
exports.EngagementOffer = {
|
|
56
56
|
eventType: 'Engagement',
|
|
57
57
|
object: {
|
|
58
58
|
objectType: 'Offer',
|
|
59
59
|
},
|
|
60
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
60
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementOffer.json',
|
|
61
61
|
};
|
|
62
62
|
exports.EngagementSchoolUIElement = {
|
|
63
63
|
eventType: 'Engagement',
|
|
64
64
|
object: {
|
|
65
65
|
objectType: 'SchoolUIElement',
|
|
66
66
|
},
|
|
67
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
67
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementSchoolUIElement.json',
|
|
68
68
|
};
|
|
69
69
|
exports.EngagementSportsUIElement = {
|
|
70
70
|
eventType: 'Engagement',
|
|
71
71
|
object: {
|
|
72
72
|
objectType: 'SportsUIElement',
|
|
73
73
|
},
|
|
74
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
74
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementSportsUIElement.json',
|
|
75
75
|
};
|
|
76
76
|
exports.EngagementTeaser = {
|
|
77
77
|
eventType: 'Engagement',
|
|
78
78
|
object: {
|
|
79
79
|
objectType: 'Teaser',
|
|
80
80
|
},
|
|
81
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
81
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTeaser.json',
|
|
82
82
|
};
|
|
83
83
|
exports.EngagementTvModule = {
|
|
84
84
|
eventType: 'Engagement',
|
|
85
85
|
object: {
|
|
86
86
|
objectType: 'TvModule',
|
|
87
87
|
},
|
|
88
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
88
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTvModule.json',
|
|
89
|
+
};
|
|
90
|
+
exports.EngagementTvSearch = {
|
|
91
|
+
eventType: 'Engagement',
|
|
92
|
+
object: {
|
|
93
|
+
objectType: 'TvSearch',
|
|
94
|
+
},
|
|
95
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementTvSearch.json',
|
|
89
96
|
};
|
|
90
97
|
exports.EngagementUIElement = {
|
|
91
98
|
eventType: 'Engagement',
|
|
92
99
|
object: {
|
|
93
100
|
objectType: 'UIElement',
|
|
94
101
|
},
|
|
95
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
102
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementUIElement.json',
|
|
96
103
|
};
|
|
97
104
|
exports.EngagementVideo = {
|
|
98
105
|
eventType: 'Engagement',
|
|
99
106
|
object: {
|
|
100
107
|
objectType: 'Video',
|
|
101
108
|
},
|
|
102
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
109
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementVideo.json',
|
|
103
110
|
};
|
|
104
111
|
exports.EngagementVideoAd = {
|
|
105
112
|
eventType: 'Engagement',
|
|
106
113
|
object: {
|
|
107
114
|
objectType: 'VideoAd',
|
|
108
115
|
},
|
|
109
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
116
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementVideoAd.json',
|
|
110
117
|
};
|
|
111
118
|
exports.EngagementWidget = {
|
|
112
119
|
eventType: 'Engagement',
|
|
113
120
|
object: {
|
|
114
121
|
objectType: 'Widget',
|
|
115
122
|
},
|
|
116
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
123
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/EngagementWidget.json',
|
|
124
|
+
};
|
|
125
|
+
exports.HeartbeatCommercialArticle = {
|
|
126
|
+
eventType: 'Heartbeat',
|
|
127
|
+
object: {
|
|
128
|
+
objectType: 'CommercialArticle',
|
|
129
|
+
},
|
|
130
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/HeartbeatCommercialArticle.json',
|
|
117
131
|
};
|
|
118
132
|
exports.ImpressionAd = {
|
|
119
133
|
eventType: 'Impression',
|
|
120
134
|
object: {
|
|
121
135
|
objectType: 'Ad',
|
|
122
136
|
},
|
|
123
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
137
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAd.json',
|
|
124
138
|
};
|
|
125
139
|
exports.ImpressionAdSlot = {
|
|
126
140
|
eventType: 'Impression',
|
|
127
141
|
object: {
|
|
128
142
|
objectType: 'AdSlot',
|
|
129
143
|
},
|
|
130
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
144
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAdSlot.json',
|
|
131
145
|
};
|
|
132
146
|
exports.ImpressionAffiliate = {
|
|
133
147
|
eventType: 'Impression',
|
|
134
148
|
object: {
|
|
135
149
|
objectType: 'Affiliate',
|
|
136
150
|
},
|
|
137
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
151
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionAffiliate.json',
|
|
138
152
|
};
|
|
139
153
|
exports.ImpressionForm = {
|
|
140
154
|
eventType: 'Impression',
|
|
141
155
|
object: {
|
|
142
156
|
objectType: 'Form',
|
|
143
157
|
},
|
|
144
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
158
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionForm.json',
|
|
145
159
|
};
|
|
146
160
|
exports.ImpressionHealthUIElement = {
|
|
147
161
|
eventType: 'Impression',
|
|
148
162
|
object: {
|
|
149
163
|
objectType: 'HealthUIElement',
|
|
150
164
|
},
|
|
151
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
165
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionHealthUIElement.json',
|
|
152
166
|
};
|
|
153
167
|
exports.ImpressionOffer = {
|
|
154
168
|
eventType: 'Impression',
|
|
155
169
|
object: {
|
|
156
170
|
objectType: 'Offer',
|
|
157
171
|
},
|
|
158
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
172
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionOffer.json',
|
|
159
173
|
};
|
|
160
174
|
exports.ImpressionPlayer = {
|
|
161
175
|
eventType: 'Impression',
|
|
162
176
|
object: {
|
|
163
177
|
objectType: 'Player',
|
|
164
178
|
},
|
|
165
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
179
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionPlayer.json',
|
|
166
180
|
};
|
|
167
181
|
exports.ImpressionSchoolUIElement = {
|
|
168
182
|
eventType: 'Impression',
|
|
169
183
|
object: {
|
|
170
184
|
objectType: 'SchoolUIElement',
|
|
171
185
|
},
|
|
172
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
186
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionSchoolUIElement.json',
|
|
173
187
|
};
|
|
174
188
|
exports.ImpressionSportsUIElement = {
|
|
175
189
|
eventType: 'Impression',
|
|
176
190
|
object: {
|
|
177
191
|
objectType: 'SportsUIElement',
|
|
178
192
|
},
|
|
179
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
193
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionSportsUIElement.json',
|
|
180
194
|
};
|
|
181
195
|
exports.ImpressionTeaser = {
|
|
182
196
|
eventType: 'Impression',
|
|
183
197
|
object: {
|
|
184
198
|
objectType: 'Teaser',
|
|
185
199
|
},
|
|
186
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
200
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionTeaser.json',
|
|
187
201
|
};
|
|
188
202
|
exports.ImpressionUIElement = {
|
|
189
203
|
eventType: 'Impression',
|
|
190
204
|
object: {
|
|
191
205
|
objectType: 'UIElement',
|
|
192
206
|
},
|
|
193
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
207
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionUIElement.json',
|
|
194
208
|
};
|
|
195
209
|
exports.ImpressionWidget = {
|
|
196
210
|
eventType: 'Impression',
|
|
197
211
|
object: {
|
|
198
212
|
objectType: 'Widget',
|
|
199
213
|
},
|
|
200
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
214
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ImpressionWidget.json',
|
|
201
215
|
};
|
|
202
216
|
exports.LeaveArticle = {
|
|
203
217
|
eventType: 'Leave',
|
|
204
218
|
object: {
|
|
205
219
|
objectType: 'Article',
|
|
206
220
|
},
|
|
207
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
221
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveArticle.json',
|
|
208
222
|
};
|
|
209
223
|
exports.LeaveAudioPage = {
|
|
210
224
|
eventType: 'Leave',
|
|
211
225
|
object: {
|
|
212
226
|
objectType: 'AudioPage',
|
|
213
227
|
},
|
|
214
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
228
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveAudioPage.json',
|
|
215
229
|
};
|
|
216
230
|
exports.LeaveError = {
|
|
217
231
|
eventType: 'Leave',
|
|
218
232
|
object: {
|
|
219
233
|
objectType: 'Error',
|
|
220
234
|
},
|
|
221
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
235
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveError.json',
|
|
222
236
|
};
|
|
223
237
|
exports.LeaveFrontpage = {
|
|
224
238
|
eventType: 'Leave',
|
|
225
239
|
object: {
|
|
226
240
|
objectType: 'Frontpage',
|
|
227
241
|
},
|
|
228
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
242
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveFrontpage.json',
|
|
229
243
|
};
|
|
230
244
|
exports.LeaveLandingpage = {
|
|
231
245
|
eventType: 'Leave',
|
|
232
246
|
object: {
|
|
233
247
|
objectType: 'Landingpage',
|
|
234
248
|
},
|
|
235
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
249
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLandingpage.json',
|
|
236
250
|
};
|
|
237
251
|
exports.LeaveListing = {
|
|
238
252
|
eventType: 'Leave',
|
|
239
253
|
object: {
|
|
240
254
|
objectType: 'Listing',
|
|
241
255
|
},
|
|
242
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
256
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveListing.json',
|
|
243
257
|
};
|
|
244
258
|
exports.LeaveLockedArticle = {
|
|
245
259
|
eventType: 'Leave',
|
|
246
260
|
object: {
|
|
247
261
|
objectType: 'LockedArticle',
|
|
248
262
|
},
|
|
249
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
263
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedArticle.json',
|
|
250
264
|
};
|
|
251
265
|
exports.LeaveLockedAudioPage = {
|
|
252
266
|
eventType: 'Leave',
|
|
253
267
|
object: {
|
|
254
268
|
objectType: 'LockedAudioPage',
|
|
255
269
|
},
|
|
256
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
270
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedAudioPage.json',
|
|
257
271
|
};
|
|
258
272
|
exports.LeaveLockedPage = {
|
|
259
273
|
eventType: 'Leave',
|
|
260
274
|
object: {
|
|
261
275
|
objectType: 'LockedPage',
|
|
262
276
|
},
|
|
263
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
277
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedPage.json',
|
|
264
278
|
};
|
|
265
279
|
exports.LeaveLockedVideoPage = {
|
|
266
280
|
eventType: 'Leave',
|
|
267
281
|
object: {
|
|
268
282
|
objectType: 'LockedVideoPage',
|
|
269
283
|
},
|
|
270
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
284
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveLockedVideoPage.json',
|
|
271
285
|
};
|
|
272
286
|
exports.LeavePage = {
|
|
273
287
|
eventType: 'Leave',
|
|
274
288
|
object: {
|
|
275
289
|
objectType: 'Page',
|
|
276
290
|
},
|
|
277
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
291
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeavePage.json',
|
|
278
292
|
};
|
|
279
293
|
exports.LeaveSchoolPage = {
|
|
280
294
|
eventType: 'Leave',
|
|
281
295
|
object: {
|
|
282
296
|
objectType: 'SchoolPage',
|
|
283
297
|
},
|
|
284
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
298
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveSchoolPage.json',
|
|
285
299
|
};
|
|
286
300
|
exports.LeaveSportsPage = {
|
|
287
301
|
eventType: 'Leave',
|
|
288
302
|
object: {
|
|
289
303
|
objectType: 'SportsPage',
|
|
290
304
|
},
|
|
291
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
305
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveSportsPage.json',
|
|
292
306
|
};
|
|
293
307
|
exports.LeaveVideoPage = {
|
|
294
308
|
eventType: 'Leave',
|
|
295
309
|
object: {
|
|
296
310
|
objectType: 'VideoPage',
|
|
297
311
|
},
|
|
298
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
312
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveVideoPage.json',
|
|
299
313
|
};
|
|
300
314
|
exports.LeaveWeather = {
|
|
301
315
|
eventType: 'Leave',
|
|
302
316
|
object: {
|
|
303
317
|
objectType: 'Weather',
|
|
304
318
|
},
|
|
305
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
319
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LeaveWeather.json',
|
|
306
320
|
};
|
|
307
321
|
exports.LoadAd = {
|
|
308
322
|
eventType: 'Load',
|
|
309
323
|
object: {
|
|
310
324
|
objectType: 'Ad',
|
|
311
325
|
},
|
|
312
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
326
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/LoadAd.json',
|
|
313
327
|
};
|
|
314
328
|
exports.RequestAd = {
|
|
315
329
|
eventType: 'Request',
|
|
316
330
|
object: {
|
|
317
331
|
objectType: 'Ad',
|
|
318
332
|
},
|
|
319
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
333
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/RequestAd.json',
|
|
320
334
|
};
|
|
321
335
|
exports.ViewArticle = {
|
|
322
336
|
eventType: 'View',
|
|
323
337
|
object: {
|
|
324
338
|
objectType: 'Article',
|
|
325
339
|
},
|
|
326
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
340
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewArticle.json',
|
|
327
341
|
};
|
|
328
342
|
exports.ViewAudioPage = {
|
|
329
343
|
eventType: 'View',
|
|
330
344
|
object: {
|
|
331
345
|
objectType: 'AudioPage',
|
|
332
346
|
},
|
|
333
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
347
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewAudioPage.json',
|
|
334
348
|
};
|
|
335
349
|
exports.ViewError = {
|
|
336
350
|
eventType: 'View',
|
|
337
351
|
object: {
|
|
338
352
|
objectType: 'Error',
|
|
339
353
|
},
|
|
340
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
354
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewError.json',
|
|
341
355
|
};
|
|
342
356
|
exports.ViewFrontpage = {
|
|
343
357
|
eventType: 'View',
|
|
344
358
|
object: {
|
|
345
359
|
objectType: 'Frontpage',
|
|
346
360
|
},
|
|
347
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
361
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewFrontpage.json',
|
|
348
362
|
};
|
|
349
363
|
exports.ViewHealthPage = {
|
|
350
364
|
eventType: 'View',
|
|
351
365
|
object: {
|
|
352
366
|
objectType: 'HealthPage',
|
|
353
367
|
},
|
|
354
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
368
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewHealthPage.json',
|
|
355
369
|
};
|
|
356
370
|
exports.ViewLandingpage = {
|
|
357
371
|
eventType: 'View',
|
|
358
372
|
object: {
|
|
359
373
|
objectType: 'Landingpage',
|
|
360
374
|
},
|
|
361
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
375
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLandingpage.json',
|
|
362
376
|
};
|
|
363
377
|
exports.ViewListing = {
|
|
364
378
|
eventType: 'View',
|
|
365
379
|
object: {
|
|
366
380
|
objectType: 'Listing',
|
|
367
381
|
},
|
|
368
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
382
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewListing.json',
|
|
369
383
|
};
|
|
370
384
|
exports.ViewLockedArticle = {
|
|
371
385
|
eventType: 'View',
|
|
372
386
|
object: {
|
|
373
387
|
objectType: 'LockedArticle',
|
|
374
388
|
},
|
|
375
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
389
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedArticle.json',
|
|
376
390
|
};
|
|
377
391
|
exports.ViewLockedAudioPage = {
|
|
378
392
|
eventType: 'View',
|
|
379
393
|
object: {
|
|
380
394
|
objectType: 'LockedAudioPage',
|
|
381
395
|
},
|
|
382
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
396
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedAudioPage.json',
|
|
383
397
|
};
|
|
384
398
|
exports.ViewLockedPage = {
|
|
385
399
|
eventType: 'View',
|
|
386
400
|
object: {
|
|
387
401
|
objectType: 'LockedPage',
|
|
388
402
|
},
|
|
389
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
403
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedPage.json',
|
|
390
404
|
};
|
|
391
405
|
exports.ViewLockedVideoPage = {
|
|
392
406
|
eventType: 'View',
|
|
393
407
|
object: {
|
|
394
408
|
objectType: 'LockedVideoPage',
|
|
395
409
|
},
|
|
396
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
410
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewLockedVideoPage.json',
|
|
397
411
|
};
|
|
398
412
|
exports.ViewPage = {
|
|
399
413
|
eventType: 'View',
|
|
400
414
|
object: {
|
|
401
415
|
objectType: 'Page',
|
|
402
416
|
},
|
|
403
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
417
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewPage.json',
|
|
404
418
|
};
|
|
405
419
|
exports.ViewSchoolPage = {
|
|
406
420
|
eventType: 'View',
|
|
407
421
|
object: {
|
|
408
422
|
objectType: 'SchoolPage',
|
|
409
423
|
},
|
|
410
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
424
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewSchoolPage.json',
|
|
411
425
|
};
|
|
412
426
|
exports.ViewSportsPage = {
|
|
413
427
|
eventType: 'View',
|
|
414
428
|
object: {
|
|
415
429
|
objectType: 'SportsPage',
|
|
416
430
|
},
|
|
417
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
431
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewSportsPage.json',
|
|
418
432
|
};
|
|
419
433
|
exports.ViewTitle = {
|
|
420
434
|
eventType: 'View',
|
|
421
435
|
object: {
|
|
422
436
|
objectType: 'Title',
|
|
423
437
|
},
|
|
424
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
438
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewTitle.json',
|
|
425
439
|
};
|
|
426
440
|
exports.ViewVideoPage = {
|
|
427
441
|
eventType: 'View',
|
|
428
442
|
object: {
|
|
429
443
|
objectType: 'VideoPage',
|
|
430
444
|
},
|
|
431
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
445
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewVideoPage.json',
|
|
432
446
|
};
|
|
433
447
|
exports.ViewWeather = {
|
|
434
448
|
eventType: 'View',
|
|
435
449
|
object: {
|
|
436
450
|
objectType: 'Weather',
|
|
437
451
|
},
|
|
438
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
452
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.15.1/schemas/ViewWeather.json',
|
|
439
453
|
};
|
|
440
454
|
exports.ADVERTISING_VALUES = ['Accepted', 'Rejected', 'Unknown'];
|
|
441
455
|
exports.ANALYTICS_VALUES = ['Accepted', 'Rejected', 'Unknown'];
|
|
@@ -470,7 +484,7 @@ exports.CLIENT_TYPE_VALUES = [
|
|
|
470
484
|
exports.DEVICE_TYPE_VALUES = ['Desktop', 'Mobile', 'Tablet', 'SmartTv', 'Other'];
|
|
471
485
|
exports.OPERATING_SYSTEM_VALUES = ['Windows', 'Mac', 'Linux', 'iOS', 'Android', 'Other'];
|
|
472
486
|
exports.SCREEN_ORIENTATION_VALUES = ['Portrait', 'Landscape'];
|
|
473
|
-
exports.VIEWPORT_SIZE_VALUES = ['XS', 'S', 'M', 'L', 'XL'];
|
|
487
|
+
exports.VIEWPORT_SIZE_VALUES = ['XS', 'S', 'M', 'L', 'XL', 'Unknown'];
|
|
474
488
|
exports.ACTION_VALUES = ['Click', 'Scroll', 'Drag', 'Drop', 'DoubleClick'];
|
|
475
489
|
exports.FOOD_TYPE_VALUES = ['Foodstuff', 'Recipe', 'Calories', 'FoodItemCombo'];
|
|
476
490
|
exports.UNIT_TYPE_VALUES = ['Weight', 'Volume', 'Custom'];
|
|
@@ -489,12 +503,14 @@ exports.PAGE_TYPE_VALUES = [
|
|
|
489
503
|
'Login',
|
|
490
504
|
'Page',
|
|
491
505
|
'LockedPage',
|
|
506
|
+
'SchoolPage',
|
|
492
507
|
'SportsPage',
|
|
493
508
|
'Title',
|
|
494
509
|
'VideoPage',
|
|
495
510
|
'Weather',
|
|
496
511
|
'AppWidget',
|
|
497
512
|
'Notification',
|
|
513
|
+
'Purchase',
|
|
498
514
|
];
|
|
499
515
|
exports.COLUMN_NAME_VALUES = ['main', 'aside'];
|
|
500
516
|
exports.FOLD_POSITION_VALUES = ['Above', 'Below', 'Unknown'];
|
|
@@ -526,4 +542,4 @@ exports.UTM_MEDIUM_VALUES = [
|
|
|
526
542
|
'Video',
|
|
527
543
|
'Internal',
|
|
528
544
|
];
|
|
529
|
-
exports.CATALOG_VERSION = '2.
|
|
545
|
+
exports.CATALOG_VERSION = '2.15.1';
|
|
@@ -22,10 +22,12 @@ exports.TPAAS_ALLOWED_METHODS = [
|
|
|
22
22
|
'trackEngagementSportsUIElement',
|
|
23
23
|
'trackEngagementTeaser',
|
|
24
24
|
'trackEngagementTvModule',
|
|
25
|
+
'trackEngagementTvSearch',
|
|
25
26
|
'trackEngagementUIElement',
|
|
26
27
|
'trackEngagementVideo',
|
|
27
28
|
'trackEngagementVideoAd',
|
|
28
29
|
'trackEngagementWidget',
|
|
30
|
+
'trackHeartbeatCommercialArticle',
|
|
29
31
|
'trackCompletedHealthAction',
|
|
30
32
|
'trackImpressionAd',
|
|
31
33
|
'trackImpressionAdSlot',
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webApi = exports.isBrowser = exports.initializeStorage = exports.throttle = exports.randomString = exports.omit = exports.isString = exports.isPromise = exports.isPlainObject = exports.isObjectEmpty = exports.isObject = exports.isFunction = exports.pulseMerge = exports.resetGetRootDomain = exports.getRootDomain = exports.get = exports.evaluateEventInput = exports.evaluateAndFlatten = exports.deviceType = exports.dateTime = exports.cookieConfig = exports.writeCookie = exports.readCookie = exports.deleteCookie = void 0;
|
|
3
|
+
exports.SESSION_SDRN_PREFIX = exports.getXDomainId = exports.webApi = exports.isBrowser = exports.initializeStorage = exports.throttle = exports.randomString = exports.omit = exports.isString = exports.isPromise = exports.isPlainObject = exports.isObjectEmpty = exports.isObject = exports.isFunction = exports.pulseMerge = exports.resetGetRootDomain = exports.getRootDomain = exports.get = exports.evaluateEventInput = exports.evaluateAndFlatten = exports.deviceType = exports.dateTime = exports.cookieConfig = exports.writeCookie = exports.readCookie = exports.deleteCookie = void 0;
|
|
4
4
|
var cookie_1 = require("./cookie");
|
|
5
5
|
Object.defineProperty(exports, "deleteCookie", { enumerable: true, get: function () { return cookie_1.deleteCookie; } });
|
|
6
6
|
Object.defineProperty(exports, "readCookie", { enumerable: true, get: function () { return cookie_1.readCookie; } });
|
|
@@ -36,3 +36,6 @@ var webApi_1 = require("./webApi");
|
|
|
36
36
|
Object.defineProperty(exports, "initializeStorage", { enumerable: true, get: function () { return webApi_1.initializeStorage; } });
|
|
37
37
|
Object.defineProperty(exports, "isBrowser", { enumerable: true, get: function () { return webApi_1.isBrowser; } });
|
|
38
38
|
Object.defineProperty(exports, "webApi", { enumerable: true, get: function () { return webApi_1.webApi; } });
|
|
39
|
+
var xDomainId_1 = require("./xDomainId");
|
|
40
|
+
Object.defineProperty(exports, "getXDomainId", { enumerable: true, get: function () { return xDomainId_1.getXDomainId; } });
|
|
41
|
+
Object.defineProperty(exports, "SESSION_SDRN_PREFIX", { enumerable: true, get: function () { return xDomainId_1.SESSION_SDRN_PREFIX; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getXDomainId = exports.SESSION_SDRN_PREFIX = void 0;
|
|
4
|
+
const webApi_1 = require("./webApi");
|
|
5
|
+
exports.SESSION_SDRN_PREFIX = 'sdrn:schibsted:session:';
|
|
6
|
+
// TODO: do we need to save this in the session, as part of the localStorage?
|
|
7
|
+
// or should we just read it from the URL params every time?
|
|
8
|
+
const getXDomainId = () => {
|
|
9
|
+
if (!webApi_1.isBrowser) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const urlParams = new URLSearchParams(window?.location?.search ?? '');
|
|
13
|
+
return urlParams.get('x_domain_id')?.replace(exports.SESSION_SDRN_PREFIX, '');
|
|
14
|
+
};
|
|
15
|
+
exports.getXDomainId = getXDomainId;
|
package/dist/cjs/version.js
CHANGED