@schibsted/pulse-sdk 8.0.0-rc.13 → 8.0.0-rc.15
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 +40 -0
- package/dist/cjs/leaveTrackingTpaas/index.js +18 -6
- package/dist/cjs/tpaas-builders/builders/device.js +1 -1
- package/dist/cjs/tpaas-builders/builders/trackerBuilder.js +2 -1
- package/dist/cjs/tpaas-builders/builders.js +18 -6
- package/dist/cjs/tpaas-schemas/constants.js +75 -51
- package/dist/cjs/tracker-proxy/consts.js +3 -0
- package/dist/cjs/version.js +1 -1
- package/dist/ejs/Tracker.js +41 -1
- package/dist/ejs/leaveTrackingTpaas/index.js +18 -6
- package/dist/ejs/tpaas-builders/builders/device.js +1 -1
- package/dist/ejs/tpaas-builders/builders/trackerBuilder.js +2 -1
- package/dist/ejs/tpaas-builders/builders.js +16 -7
- package/dist/ejs/tpaas-schemas/constants.js +73 -49
- package/dist/ejs/tracker-proxy/consts.js +3 -0
- package/dist/ejs/version.js +1 -1
- package/dist/types/Tracker.d.ts +16 -1
- package/dist/types/builders/consents.d.ts +2 -2
- package/dist/types/builders/device-node.d.ts +2 -2
- package/dist/types/builders/events-anonymous-node.d.ts +4 -4
- package/dist/types/builders/events-node.d.ts +5 -5
- package/dist/types/builders/objects/objects-anonymous-node.d.ts +1 -1
- package/dist/types/builders/objects/objects-node.d.ts +1 -1
- package/dist/types/builders/origin-node.d.ts +1 -1
- package/dist/types/cis-sync/storage/pulseStorage.d.ts +8 -4
- package/dist/types/config.d.ts +1 -1
- package/dist/types/tpaas-builders/builders/device.d.ts +1 -1
- package/dist/types/tpaas-builders/builders/experiments.d.ts +1 -1
- package/dist/types/tpaas-builders/builders/navigationType.d.ts +2 -2
- package/dist/types/tpaas-builders/builders/pageviewId.d.ts +1 -1
- package/dist/types/tpaas-builders/builders/trackerBuilder.d.ts +1 -1
- package/dist/types/tpaas-builders/builders/user.d.ts +1 -1
- package/dist/types/tpaas-builders/builders.d.ts +43 -39
- package/dist/types/tpaas-builders/index.d.ts +1 -1
- package/dist/types/tpaas-builders/types.d.ts +2 -0
- package/dist/types/tpaas-schemas/constants.d.ts +196 -174
- package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +6 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementAffiliate.d.ts +138 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementAudio.d.ts +0 -6
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTeaser.d.ts +9 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTvModule.d.ts +130 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementUIElement.d.ts +4 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementVideo.d.ts +1 -7
- package/dist/types/tpaas-schemas/types/schemas/IImpressionAffiliate.d.ts +136 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionForm.d.ts +2 -2
- package/dist/types/tpaas-schemas/types/schemas/IImpressionTeaser.d.ts +9 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveArticle.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/ILeaveAudioPage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/ILeaveFrontpage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/ILeaveListing.d.ts +10 -1
- package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedArticle.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedAudioPage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedVideoPage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/ILeaveVideoPage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IViewArticle.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IViewAudioPage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IViewFrontpage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IViewListing.d.ts +10 -1
- package/dist/types/tpaas-schemas/types/schemas/IViewLockedArticle.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IViewLockedAudioPage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IViewLockedVideoPage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/IViewVideoPage.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/schemas/index.d.ts +3 -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/IProvider.d.ts +1 -1
- package/dist/types/tpaas-schemas/types/templates/ITracker.d.ts +4 -0
- package/dist/types/tpaas-schemas/types/templates/IUtmTags.d.ts +0 -2
- package/dist/types/tpaas-schemas/types.d.ts +3 -3
- package/dist/types/tracker-proxy/consts.d.ts +2 -2
- package/dist/types/version.d.ts +1 -1
- package/dist/types/wrapper/types/event.d.ts +1 -1
- package/package.json +8 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { merge } from 'ts-deepmerge';
|
|
2
|
-
import { AnonymousViewUIElement, CompletedHealthAction, EngagementAudio, EngagementForm, EngagementHealthUIElement, EngagementOffer, EngagementTeaser, EngagementUIElement, EngagementVideo, EngagementVideoAd, EngagementWidget, ImpressionAdSlot, ImpressionForm, ImpressionHealthUIElement, ImpressionOffer, ImpressionPlayer, ImpressionTeaser, ImpressionUIElement, ImpressionWidget, LeaveArticle, LeaveAudioPage, LeaveError, LeaveFrontpage, LeaveLandingpage, LeaveListing, LeaveLockedArticle, LeaveLockedAudioPage, LeaveLockedVideoPage, LeavePage, LeaveSportsPage, LeaveVideoPage, LeaveWeather, ViewArticle, ViewAudioPage, ViewError, ViewFrontpage, ViewHealthPage, ViewLandingpage, ViewListing, ViewLockedArticle, ViewLockedAudioPage, ViewLockedVideoPage, ViewPage, ViewSportsPage, ViewTitle, ViewVideoPage, ViewWeather, } from '../tpaas-schemas';
|
|
2
|
+
import { AnonymousViewUIElement, CompletedHealthAction, EngagementAffiliate, EngagementAudio, EngagementForm, EngagementHealthUIElement, EngagementOffer, EngagementTeaser, EngagementTvModule, EngagementUIElement, EngagementVideo, EngagementVideoAd, EngagementWidget, ImpressionAdSlot, ImpressionAffiliate, ImpressionForm, ImpressionHealthUIElement, ImpressionOffer, ImpressionPlayer, ImpressionTeaser, ImpressionUIElement, ImpressionWidget, LeaveArticle, LeaveAudioPage, LeaveError, LeaveFrontpage, LeaveLandingpage, LeaveListing, LeaveLockedArticle, LeaveLockedAudioPage, LeaveLockedVideoPage, LeavePage, LeaveSportsPage, LeaveVideoPage, LeaveWeather, ViewArticle, ViewAudioPage, ViewError, ViewFrontpage, ViewHealthPage, ViewLandingpage, ViewListing, ViewLockedArticle, ViewLockedAudioPage, ViewLockedVideoPage, ViewPage, ViewSportsPage, ViewTitle, ViewVideoPage, ViewWeather, } from '../tpaas-schemas';
|
|
3
3
|
import { builder as anonymousBuilder } from './builders/anonymous';
|
|
4
4
|
import { builder as baseEventBuilder } from './builders/baseEvent';
|
|
5
5
|
import { builder as catalogVersionBuilder } from './builders/catalogVersion';
|
|
@@ -23,9 +23,9 @@ import { builder as utmBuilder } from './builders/utm';
|
|
|
23
23
|
* @private
|
|
24
24
|
*/
|
|
25
25
|
export const getCommonBuildersOutput = (createdAt, dependencies, input) => {
|
|
26
|
-
const { autoTrackerVersion, isHybrid, version, environmentId, jwe, user, consents, providerId, providerName, providerGroup, component, componentVersion, pageviewId, currentPage, currentPageReferrer, } = dependencies;
|
|
26
|
+
const { autoTrackerVersion, isHybrid, version, environmentId, jwe, user, consents, providerId, providerName, providerGroup, component, componentVersion, pageviewId, currentPage, currentPageReferrer, routingStage, } = dependencies;
|
|
27
27
|
const { experiments } = input;
|
|
28
|
-
return merge(trackerBuilder(autoTrackerVersion, isHybrid, version), timeBuilder(createdAt), sessionBuilder(createdAt), deviceBuilder(environmentId, jwe), userBuilder(user), baseEventBuilder(), consentsBuilder(consents), providerBuilder(providerId, component, componentVersion, providerName, providerGroup), pageInfoBuilder(currentPage), pageviewIdBuilder(pageviewId), utmBuilder(), referrerBuilder(currentPageReferrer), catalogVersionBuilder(), experimentsBuilder(dependencies.experiments, experiments));
|
|
28
|
+
return merge(trackerBuilder({ autoTrackerVersion, isHybrid, version, routingStage }), timeBuilder(createdAt), sessionBuilder(createdAt), deviceBuilder(environmentId, jwe), userBuilder(user), baseEventBuilder(), consentsBuilder(consents), providerBuilder(providerId, component, componentVersion, providerName, providerGroup), pageInfoBuilder(currentPage), pageviewIdBuilder(pageviewId), utmBuilder(), referrerBuilder(currentPageReferrer), catalogVersionBuilder(), experimentsBuilder(dependencies.experiments, experiments));
|
|
29
29
|
};
|
|
30
30
|
// there's a bug in the ts-deepmerge library that doesn't properly resolve merging optionals with required properties
|
|
31
31
|
// due to this, we need to do 2 things:
|
|
@@ -56,8 +56,8 @@ const normalizePageInput = (input) => {
|
|
|
56
56
|
// #region AnonymousView Event Builders
|
|
57
57
|
export function buildAnonymousViewUIElementEvent(input, dependencies) {
|
|
58
58
|
const createdAt = new Date();
|
|
59
|
-
const { autoTrackerVersion, isHybrid, version, pageviewId, providerId, providerName, providerGroup, component, componentVersion, currentPageReferrer, } = dependencies;
|
|
60
|
-
return merge(AnonymousViewUIElement, baseEventBuilder(), trackerBuilder(autoTrackerVersion, isHybrid, version), timeBuilder(createdAt), pageviewIdBuilder(pageviewId), utmBuilder(), anonymousBuilder(), providerBuilder(providerId, component, componentVersion, providerName, providerGroup), referrerBuilder(currentPageReferrer), experimentsBuilder(dependencies.experiments, input.experiments), catalogVersionBuilder(), normalizePageInput(input));
|
|
59
|
+
const { autoTrackerVersion, isHybrid, version, pageviewId, providerId, providerName, providerGroup, component, componentVersion, currentPageReferrer, routingStage, } = dependencies;
|
|
60
|
+
return merge(AnonymousViewUIElement, baseEventBuilder(), trackerBuilder({ autoTrackerVersion, isHybrid, version, routingStage }), timeBuilder(createdAt), pageviewIdBuilder(pageviewId), utmBuilder(), anonymousBuilder(), providerBuilder(providerId, component, componentVersion, providerName, providerGroup), referrerBuilder(currentPageReferrer), experimentsBuilder(dependencies.experiments, input.experiments), catalogVersionBuilder(), normalizePageInput(input));
|
|
61
61
|
}
|
|
62
62
|
// #endregion
|
|
63
63
|
// #region View Event Builders
|
|
@@ -143,11 +143,14 @@ export function buildLeaveVideoPageEvent(input, dependencies) {
|
|
|
143
143
|
}
|
|
144
144
|
export function buildLeaveWeatherEvent(input, dependencies) {
|
|
145
145
|
const createdAt = new Date();
|
|
146
|
-
const { autoTrackerVersion, isHybrid, version, providerId, providerName, providerGroup, component, componentVersion, user, experiments, } = dependencies;
|
|
147
|
-
return merge(normalizePageInput(input), LeaveWeather, timeBuilder(createdAt), trackerBuilder(autoTrackerVersion, isHybrid, version), baseEventBuilder(), providerBuilder(providerId, component, componentVersion, providerName, providerGroup), userBuilder(user), experimentsBuilder(experiments, input.experiments), consentsBuilder(dependencies.consents), deviceBuilder(dependencies.environmentId, dependencies.jwe), catalogVersionBuilder(), navigationTypeBuilder(input.page?.navigationType), pageviewIdBuilder(dependencies.pageviewId), pageInfoBuilder(dependencies.currentPage), referrerBuilder(dependencies.currentPageReferrer));
|
|
146
|
+
const { autoTrackerVersion, isHybrid, version, providerId, providerName, providerGroup, component, componentVersion, user, experiments, routingStage, } = dependencies;
|
|
147
|
+
return merge(normalizePageInput(input), LeaveWeather, timeBuilder(createdAt), trackerBuilder({ autoTrackerVersion, isHybrid, version, routingStage }), baseEventBuilder(), providerBuilder(providerId, component, componentVersion, providerName, providerGroup), userBuilder(user), experimentsBuilder(experiments, input.experiments), consentsBuilder(dependencies.consents), deviceBuilder(dependencies.environmentId, dependencies.jwe), catalogVersionBuilder(), navigationTypeBuilder(input.page?.navigationType), pageviewIdBuilder(dependencies.pageviewId), pageInfoBuilder(dependencies.currentPage), referrerBuilder(dependencies.currentPageReferrer));
|
|
148
148
|
}
|
|
149
149
|
// #endregion
|
|
150
150
|
// #region Engagement Event Builders
|
|
151
|
+
export function buildEngagementAffiliateEvent(input, dependencies) {
|
|
152
|
+
return merge(EngagementAffiliate, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
153
|
+
}
|
|
151
154
|
export function buildEngagementAudioEvent(input, dependencies) {
|
|
152
155
|
return merge(EngagementAudio, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
153
156
|
}
|
|
@@ -160,6 +163,9 @@ export function buildEngagementOfferEvent(input, dependencies) {
|
|
|
160
163
|
export function buildEngagementTeaserEvent(input, dependencies) {
|
|
161
164
|
return merge(EngagementTeaser, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
162
165
|
}
|
|
166
|
+
export function buildEngagementTvModuleEvent(input, dependencies) {
|
|
167
|
+
return merge(EngagementTvModule, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
168
|
+
}
|
|
163
169
|
export function buildEngagementUIElementEvent(input, dependencies) {
|
|
164
170
|
return merge(EngagementUIElement, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
165
171
|
}
|
|
@@ -191,6 +197,9 @@ export function buildImpressionHealthUIElementEvent(input, dependencies) {
|
|
|
191
197
|
export function buildImpressionAdSlotEvent(input, dependencies) {
|
|
192
198
|
return merge(ImpressionAdSlot, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
193
199
|
}
|
|
200
|
+
export function buildImpressionAffiliateEvent(input, dependencies) {
|
|
201
|
+
return merge(ImpressionAffiliate, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
202
|
+
}
|
|
194
203
|
export function buildImpressionFormEvent(input, dependencies) {
|
|
195
204
|
return merge(ImpressionForm, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
196
205
|
}
|
|
@@ -4,329 +4,350 @@ export const AnonymousViewUIElement = {
|
|
|
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.11.0/schemas/AnonymousViewUIElement.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.11.0/schemas/CompletedHealthAction.json',
|
|
15
|
+
};
|
|
16
|
+
export const EngagementAffiliate = {
|
|
17
|
+
eventType: 'Engagement',
|
|
18
|
+
object: {
|
|
19
|
+
objectType: 'Affiliate',
|
|
20
|
+
},
|
|
21
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementAffiliate.json',
|
|
15
22
|
};
|
|
16
23
|
export const EngagementAudio = {
|
|
17
24
|
eventType: 'Engagement',
|
|
18
25
|
object: {
|
|
19
26
|
objectType: 'Audio',
|
|
20
27
|
},
|
|
21
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
28
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementAudio.json',
|
|
22
29
|
};
|
|
23
30
|
export const EngagementForm = {
|
|
24
31
|
eventType: 'Engagement',
|
|
25
32
|
object: {
|
|
26
33
|
objectType: 'Form',
|
|
27
34
|
},
|
|
28
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
35
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementForm.json',
|
|
29
36
|
};
|
|
30
37
|
export const EngagementHealthUIElement = {
|
|
31
38
|
eventType: 'Engagement',
|
|
32
39
|
object: {
|
|
33
40
|
objectType: 'HealthUIElement',
|
|
34
41
|
},
|
|
35
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
42
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementHealthUIElement.json',
|
|
36
43
|
};
|
|
37
44
|
export const EngagementOffer = {
|
|
38
45
|
eventType: 'Engagement',
|
|
39
46
|
object: {
|
|
40
47
|
objectType: 'Offer',
|
|
41
48
|
},
|
|
42
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
49
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementOffer.json',
|
|
43
50
|
};
|
|
44
51
|
export const EngagementTeaser = {
|
|
45
52
|
eventType: 'Engagement',
|
|
46
53
|
object: {
|
|
47
54
|
objectType: 'Teaser',
|
|
48
55
|
},
|
|
49
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
56
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementTeaser.json',
|
|
57
|
+
};
|
|
58
|
+
export const EngagementTvModule = {
|
|
59
|
+
eventType: 'Engagement',
|
|
60
|
+
object: {
|
|
61
|
+
objectType: 'TvModule',
|
|
62
|
+
},
|
|
63
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementTvModule.json',
|
|
50
64
|
};
|
|
51
65
|
export const EngagementUIElement = {
|
|
52
66
|
eventType: 'Engagement',
|
|
53
67
|
object: {
|
|
54
68
|
objectType: 'UIElement',
|
|
55
69
|
},
|
|
56
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
70
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementUIElement.json',
|
|
57
71
|
};
|
|
58
72
|
export const EngagementVideo = {
|
|
59
73
|
eventType: 'Engagement',
|
|
60
74
|
object: {
|
|
61
75
|
objectType: 'Video',
|
|
62
76
|
},
|
|
63
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
77
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementVideo.json',
|
|
64
78
|
};
|
|
65
79
|
export const EngagementVideoAd = {
|
|
66
80
|
eventType: 'Engagement',
|
|
67
81
|
object: {
|
|
68
82
|
objectType: 'VideoAd',
|
|
69
83
|
},
|
|
70
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
84
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementVideoAd.json',
|
|
71
85
|
};
|
|
72
86
|
export const EngagementWidget = {
|
|
73
87
|
eventType: 'Engagement',
|
|
74
88
|
object: {
|
|
75
89
|
objectType: 'Widget',
|
|
76
90
|
},
|
|
77
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
91
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/EngagementWidget.json',
|
|
78
92
|
};
|
|
79
93
|
export const ImpressionAdSlot = {
|
|
80
94
|
eventType: 'Impression',
|
|
81
95
|
object: {
|
|
82
96
|
objectType: 'AdSlot',
|
|
83
97
|
},
|
|
84
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
98
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionAdSlot.json',
|
|
99
|
+
};
|
|
100
|
+
export const ImpressionAffiliate = {
|
|
101
|
+
eventType: 'Impression',
|
|
102
|
+
object: {
|
|
103
|
+
objectType: 'Affiliate',
|
|
104
|
+
},
|
|
105
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionAffiliate.json',
|
|
85
106
|
};
|
|
86
107
|
export const ImpressionForm = {
|
|
87
108
|
eventType: 'Impression',
|
|
88
109
|
object: {
|
|
89
110
|
objectType: 'Form',
|
|
90
111
|
},
|
|
91
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
112
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionForm.json',
|
|
92
113
|
};
|
|
93
114
|
export const ImpressionHealthUIElement = {
|
|
94
115
|
eventType: 'Impression',
|
|
95
116
|
object: {
|
|
96
117
|
objectType: 'HealthUIElement',
|
|
97
118
|
},
|
|
98
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
119
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionHealthUIElement.json',
|
|
99
120
|
};
|
|
100
121
|
export const ImpressionOffer = {
|
|
101
122
|
eventType: 'Impression',
|
|
102
123
|
object: {
|
|
103
124
|
objectType: 'Offer',
|
|
104
125
|
},
|
|
105
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
126
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionOffer.json',
|
|
106
127
|
};
|
|
107
128
|
export const ImpressionPlayer = {
|
|
108
129
|
eventType: 'Impression',
|
|
109
130
|
object: {
|
|
110
131
|
objectType: 'Player',
|
|
111
132
|
},
|
|
112
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
133
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionPlayer.json',
|
|
113
134
|
};
|
|
114
135
|
export const ImpressionTeaser = {
|
|
115
136
|
eventType: 'Impression',
|
|
116
137
|
object: {
|
|
117
138
|
objectType: 'Teaser',
|
|
118
139
|
},
|
|
119
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
140
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionTeaser.json',
|
|
120
141
|
};
|
|
121
142
|
export const ImpressionUIElement = {
|
|
122
143
|
eventType: 'Impression',
|
|
123
144
|
object: {
|
|
124
145
|
objectType: 'UIElement',
|
|
125
146
|
},
|
|
126
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
147
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionUIElement.json',
|
|
127
148
|
};
|
|
128
149
|
export const ImpressionWidget = {
|
|
129
150
|
eventType: 'Impression',
|
|
130
151
|
object: {
|
|
131
152
|
objectType: 'Widget',
|
|
132
153
|
},
|
|
133
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
154
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ImpressionWidget.json',
|
|
134
155
|
};
|
|
135
156
|
export const LeaveArticle = {
|
|
136
157
|
eventType: 'Leave',
|
|
137
158
|
object: {
|
|
138
159
|
objectType: 'Article',
|
|
139
160
|
},
|
|
140
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
161
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveArticle.json',
|
|
141
162
|
};
|
|
142
163
|
export const LeaveAudioPage = {
|
|
143
164
|
eventType: 'Leave',
|
|
144
165
|
object: {
|
|
145
166
|
objectType: 'AudioPage',
|
|
146
167
|
},
|
|
147
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
168
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveAudioPage.json',
|
|
148
169
|
};
|
|
149
170
|
export const LeaveError = {
|
|
150
171
|
eventType: 'Leave',
|
|
151
172
|
object: {
|
|
152
173
|
objectType: 'Error',
|
|
153
174
|
},
|
|
154
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
175
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveError.json',
|
|
155
176
|
};
|
|
156
177
|
export const LeaveFrontpage = {
|
|
157
178
|
eventType: 'Leave',
|
|
158
179
|
object: {
|
|
159
180
|
objectType: 'Frontpage',
|
|
160
181
|
},
|
|
161
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
182
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveFrontpage.json',
|
|
162
183
|
};
|
|
163
184
|
export const LeaveLandingpage = {
|
|
164
185
|
eventType: 'Leave',
|
|
165
186
|
object: {
|
|
166
187
|
objectType: 'Landingpage',
|
|
167
188
|
},
|
|
168
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
189
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLandingpage.json',
|
|
169
190
|
};
|
|
170
191
|
export const LeaveListing = {
|
|
171
192
|
eventType: 'Leave',
|
|
172
193
|
object: {
|
|
173
194
|
objectType: 'Listing',
|
|
174
195
|
},
|
|
175
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
196
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveListing.json',
|
|
176
197
|
};
|
|
177
198
|
export const LeaveLockedArticle = {
|
|
178
199
|
eventType: 'Leave',
|
|
179
200
|
object: {
|
|
180
201
|
objectType: 'LockedArticle',
|
|
181
202
|
},
|
|
182
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
203
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedArticle.json',
|
|
183
204
|
};
|
|
184
205
|
export const LeaveLockedAudioPage = {
|
|
185
206
|
eventType: 'Leave',
|
|
186
207
|
object: {
|
|
187
208
|
objectType: 'LockedAudioPage',
|
|
188
209
|
},
|
|
189
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
210
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedAudioPage.json',
|
|
190
211
|
};
|
|
191
212
|
export const LeaveLockedVideoPage = {
|
|
192
213
|
eventType: 'Leave',
|
|
193
214
|
object: {
|
|
194
215
|
objectType: 'LockedVideoPage',
|
|
195
216
|
},
|
|
196
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
217
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveLockedVideoPage.json',
|
|
197
218
|
};
|
|
198
219
|
export const LeavePage = {
|
|
199
220
|
eventType: 'Leave',
|
|
200
221
|
object: {
|
|
201
222
|
objectType: 'Page',
|
|
202
223
|
},
|
|
203
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
224
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeavePage.json',
|
|
204
225
|
};
|
|
205
226
|
export const LeaveSportsPage = {
|
|
206
227
|
eventType: 'Leave',
|
|
207
228
|
object: {
|
|
208
229
|
objectType: 'SportsPage',
|
|
209
230
|
},
|
|
210
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
231
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveSportsPage.json',
|
|
211
232
|
};
|
|
212
233
|
export const LeaveVideoPage = {
|
|
213
234
|
eventType: 'Leave',
|
|
214
235
|
object: {
|
|
215
236
|
objectType: 'VideoPage',
|
|
216
237
|
},
|
|
217
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
238
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveVideoPage.json',
|
|
218
239
|
};
|
|
219
240
|
export const LeaveWeather = {
|
|
220
241
|
eventType: 'Leave',
|
|
221
242
|
object: {
|
|
222
243
|
objectType: 'Weather',
|
|
223
244
|
},
|
|
224
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
245
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/LeaveWeather.json',
|
|
225
246
|
};
|
|
226
247
|
export const ViewArticle = {
|
|
227
248
|
eventType: 'View',
|
|
228
249
|
object: {
|
|
229
250
|
objectType: 'Article',
|
|
230
251
|
},
|
|
231
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
252
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewArticle.json',
|
|
232
253
|
};
|
|
233
254
|
export const ViewAudioPage = {
|
|
234
255
|
eventType: 'View',
|
|
235
256
|
object: {
|
|
236
257
|
objectType: 'AudioPage',
|
|
237
258
|
},
|
|
238
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
259
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewAudioPage.json',
|
|
239
260
|
};
|
|
240
261
|
export const ViewError = {
|
|
241
262
|
eventType: 'View',
|
|
242
263
|
object: {
|
|
243
264
|
objectType: 'Error',
|
|
244
265
|
},
|
|
245
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
266
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewError.json',
|
|
246
267
|
};
|
|
247
268
|
export const ViewFrontpage = {
|
|
248
269
|
eventType: 'View',
|
|
249
270
|
object: {
|
|
250
271
|
objectType: 'Frontpage',
|
|
251
272
|
},
|
|
252
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
273
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewFrontpage.json',
|
|
253
274
|
};
|
|
254
275
|
export const ViewHealthPage = {
|
|
255
276
|
eventType: 'View',
|
|
256
277
|
object: {
|
|
257
278
|
objectType: 'HealthPage',
|
|
258
279
|
},
|
|
259
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
280
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewHealthPage.json',
|
|
260
281
|
};
|
|
261
282
|
export const ViewLandingpage = {
|
|
262
283
|
eventType: 'View',
|
|
263
284
|
object: {
|
|
264
285
|
objectType: 'Landingpage',
|
|
265
286
|
},
|
|
266
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
287
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLandingpage.json',
|
|
267
288
|
};
|
|
268
289
|
export const ViewListing = {
|
|
269
290
|
eventType: 'View',
|
|
270
291
|
object: {
|
|
271
292
|
objectType: 'Listing',
|
|
272
293
|
},
|
|
273
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
294
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewListing.json',
|
|
274
295
|
};
|
|
275
296
|
export const ViewLockedArticle = {
|
|
276
297
|
eventType: 'View',
|
|
277
298
|
object: {
|
|
278
299
|
objectType: 'LockedArticle',
|
|
279
300
|
},
|
|
280
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
301
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedArticle.json',
|
|
281
302
|
};
|
|
282
303
|
export const ViewLockedAudioPage = {
|
|
283
304
|
eventType: 'View',
|
|
284
305
|
object: {
|
|
285
306
|
objectType: 'LockedAudioPage',
|
|
286
307
|
},
|
|
287
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
308
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedAudioPage.json',
|
|
288
309
|
};
|
|
289
310
|
export const ViewLockedVideoPage = {
|
|
290
311
|
eventType: 'View',
|
|
291
312
|
object: {
|
|
292
313
|
objectType: 'LockedVideoPage',
|
|
293
314
|
},
|
|
294
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
315
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewLockedVideoPage.json',
|
|
295
316
|
};
|
|
296
317
|
export const ViewPage = {
|
|
297
318
|
eventType: 'View',
|
|
298
319
|
object: {
|
|
299
320
|
objectType: 'Page',
|
|
300
321
|
},
|
|
301
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
322
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewPage.json',
|
|
302
323
|
};
|
|
303
324
|
export const ViewSportsPage = {
|
|
304
325
|
eventType: 'View',
|
|
305
326
|
object: {
|
|
306
327
|
objectType: 'SportsPage',
|
|
307
328
|
},
|
|
308
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
329
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewSportsPage.json',
|
|
309
330
|
};
|
|
310
331
|
export const ViewTitle = {
|
|
311
332
|
eventType: 'View',
|
|
312
333
|
object: {
|
|
313
334
|
objectType: 'Title',
|
|
314
335
|
},
|
|
315
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
336
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewTitle.json',
|
|
316
337
|
};
|
|
317
338
|
export const ViewVideoPage = {
|
|
318
339
|
eventType: 'View',
|
|
319
340
|
object: {
|
|
320
341
|
objectType: 'VideoPage',
|
|
321
342
|
},
|
|
322
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
343
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewVideoPage.json',
|
|
323
344
|
};
|
|
324
345
|
export const ViewWeather = {
|
|
325
346
|
eventType: 'View',
|
|
326
347
|
object: {
|
|
327
348
|
objectType: 'Weather',
|
|
328
349
|
},
|
|
329
|
-
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.
|
|
350
|
+
schema: 'https://tpaas-schemas.schibsted.media/catalogs/versions/2.11.0/schemas/ViewWeather.json',
|
|
330
351
|
};
|
|
331
352
|
export const ADVERTISING_VALUES = ['Accepted', 'Rejected', 'Unknown'];
|
|
332
353
|
export const ANALYTICS_VALUES = ['Accepted', 'Rejected', 'Unknown'];
|
|
@@ -383,11 +404,13 @@ export const PAGE_TYPE_VALUES = [
|
|
|
383
404
|
'Title',
|
|
384
405
|
'VideoPage',
|
|
385
406
|
'Weather',
|
|
407
|
+
'AppWidget',
|
|
408
|
+
'Notification',
|
|
386
409
|
];
|
|
387
410
|
export const COLUMN_NAME_VALUES = ['main', 'aside'];
|
|
388
411
|
export const FOLD_POSITION_VALUES = ['Above', 'Below', 'Unknown'];
|
|
389
412
|
export const PRIMARY_AXIS_VALUES = ['Horizontal', 'Vertical'];
|
|
390
|
-
export const STAGE_VALUES = ['Dev', '
|
|
413
|
+
export const STAGE_VALUES = ['Dev', 'Pre', 'Pro'];
|
|
391
414
|
export const SPORT_EVENT_COVERAGE_VALUES = ['Manual', 'SemiAutomatic', 'Automatic'];
|
|
392
415
|
export const SPORT_EVENT_STATUS_VALUES = [
|
|
393
416
|
'NotStarted',
|
|
@@ -437,6 +460,7 @@ export const SPORT_VIEW_VALUES = [
|
|
|
437
460
|
'Studio',
|
|
438
461
|
];
|
|
439
462
|
export const USER_THEME_VALUES = ['Light', 'Dark', 'System', 'Other'];
|
|
463
|
+
export const ROUTING_STAGE_VALUES = ['Dev', 'Pre', 'Pro'];
|
|
440
464
|
export const TRACKER_TYPE_VALUES = ['JS', 'IOS', 'Android', 'Backend'];
|
|
441
465
|
export const REGION_VALUES = ['Norway', 'Sweden', 'Finland'];
|
|
442
466
|
export const UTM_MEDIUM_VALUES = [
|
|
@@ -450,4 +474,4 @@ export const UTM_MEDIUM_VALUES = [
|
|
|
450
474
|
'Video',
|
|
451
475
|
'Internal',
|
|
452
476
|
];
|
|
453
|
-
export const CATALOG_VERSION = '2.
|
|
477
|
+
export const CATALOG_VERSION = '2.11.0';
|
|
@@ -8,17 +8,20 @@ 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
|
'trackAnonymousViewUIElement',
|
|
11
|
+
'trackEngagementAffiliate',
|
|
11
12
|
'trackEngagementAudio',
|
|
12
13
|
'trackEngagementForm',
|
|
13
14
|
'trackEngagementHealthUIElement',
|
|
14
15
|
'trackEngagementOffer',
|
|
15
16
|
'trackEngagementTeaser',
|
|
17
|
+
'trackEngagementTvModule',
|
|
16
18
|
'trackEngagementUIElement',
|
|
17
19
|
'trackEngagementVideo',
|
|
18
20
|
'trackEngagementVideoAd',
|
|
19
21
|
'trackEngagementWidget',
|
|
20
22
|
'trackCompletedHealthAction',
|
|
21
23
|
'trackImpressionAdSlot',
|
|
24
|
+
'trackImpressionAffiliate',
|
|
22
25
|
'trackImpressionForm',
|
|
23
26
|
'trackImpressionHealthUIElement',
|
|
24
27
|
'trackImpressionOffer',
|
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.15';
|
package/dist/types/Tracker.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type AdvertisingIdentifiers, type AdvertisingVendor } from './cis-sync'
|
|
|
6
6
|
import type { Deferred, ResolvedInput } from './defer';
|
|
7
7
|
import { type Listener } from './EventBus/EventBus';
|
|
8
8
|
import type { LeaveEvent, LeaveEventBuilder, LeaveEventOptions } from './leaveTracking/types';
|
|
9
|
-
import { type IAnonymousViewUIElement, type ICompletedHealthAction, type IEngagementAudio, type IEngagementForm, type IEngagementHealthUIElement, type IEngagementOffer, type IEngagementTeaser, type IEngagementUIElement, type IEngagementVideo, type IEngagementVideoAd, type IEngagementWidget, type IImpressionAdSlot, type IImpressionForm, type IImpressionHealthUIElement, type IImpressionOffer, type IImpressionPlayer, type IImpressionTeaser, type IImpressionUIElement, type IImpressionWidget, type ILeave, type ILeaveArticle, type ILeaveAudioPage, type ILeaveError, type ILeaveFrontpage, type ILeaveLandingpage, type ILeaveListing, type ILeaveLockedArticle, type ILeaveLockedAudioPage, type ILeaveLockedVideoPage, type ILeavePage, type ILeaveSportsPage, type ILeaveVideoPage, type ILeaveWeather, type InputParams, type IProvider, type ITpaasEvent, type IViewArticle, type IViewAudioPage, type IViewError, type IViewFrontpage, type IViewHealthPage, type IViewLandingpage, type IViewListing, type IViewLockedArticle, type IViewLockedAudioPage, type IViewLockedVideoPage, type IViewPage, type IViewSportsPage, type IViewTitle, type IViewVideoPage, type IViewWeather } from './tpaas-schemas';
|
|
9
|
+
import { type IAnonymousViewUIElement, type ICompletedHealthAction, type IEngagementAffiliate, type IEngagementAudio, type IEngagementForm, type IEngagementHealthUIElement, type IEngagementOffer, type IEngagementTeaser, type IEngagementTvModule, type IEngagementUIElement, type IEngagementVideo, type IEngagementVideoAd, type IEngagementWidget, type IImpressionAdSlot, type IImpressionAffiliate, type IImpressionForm, type IImpressionHealthUIElement, type IImpressionOffer, type IImpressionPlayer, type IImpressionTeaser, type IImpressionUIElement, type IImpressionWidget, type ILeave, type ILeaveArticle, type ILeaveAudioPage, type ILeaveError, type ILeaveFrontpage, type ILeaveLandingpage, type ILeaveListing, type ILeaveLockedArticle, type ILeaveLockedAudioPage, type ILeaveLockedVideoPage, type ILeavePage, type ILeaveSportsPage, type ILeaveVideoPage, type ILeaveWeather, type InputParams, type IProvider, type ITpaasEvent, type IViewArticle, type IViewAudioPage, type IViewError, type IViewFrontpage, type IViewHealthPage, type IViewLandingpage, type IViewListing, type IViewLockedArticle, type IViewLockedAudioPage, type IViewLockedVideoPage, type IViewPage, type IViewSportsPage, type IViewTitle, type IViewVideoPage, type IViewWeather } from './tpaas-schemas';
|
|
10
10
|
import type { AnonymousEventInputTypesByTrackingMethod, EventInput, EventInputTypesByTrackingMethod, TrackViewEventOptions } from './types';
|
|
11
11
|
import { type ObserverOptions } from './visibility-observer';
|
|
12
12
|
import type { ClickUIElementInputProperties } from './wrapper/engagement/ui-element/types';
|
|
@@ -679,6 +679,11 @@ export default class Tracker {
|
|
|
679
679
|
* @category TPaaS Tracking
|
|
680
680
|
*/
|
|
681
681
|
trackImpressionAdSlot(input: InputParams<IImpressionAdSlot>): Promise<unknown>;
|
|
682
|
+
/**
|
|
683
|
+
* @param input
|
|
684
|
+
* @category TPaaS Tracking
|
|
685
|
+
*/
|
|
686
|
+
trackImpressionAffiliate(input: InputParams<IImpressionAffiliate>): Promise<unknown>;
|
|
682
687
|
/**
|
|
683
688
|
* @param input
|
|
684
689
|
* @category TPaaS Tracking
|
|
@@ -854,6 +859,11 @@ export default class Tracker {
|
|
|
854
859
|
* @category TPaaS Tracking
|
|
855
860
|
*/
|
|
856
861
|
trackLeaveWeather(input: InputParams<ILeaveWeather>): Promise<unknown>;
|
|
862
|
+
/**
|
|
863
|
+
* @param input
|
|
864
|
+
* @category TPaaS Tracking
|
|
865
|
+
*/
|
|
866
|
+
trackEngagementAffiliate(input: InputParams<IEngagementAffiliate>): Promise<unknown>;
|
|
857
867
|
/**
|
|
858
868
|
* @param input
|
|
859
869
|
* @category TPaaS Tracking
|
|
@@ -874,6 +884,11 @@ export default class Tracker {
|
|
|
874
884
|
* @category TPaaS Tracking
|
|
875
885
|
*/
|
|
876
886
|
trackEngagementTeaser(input: InputParams<IEngagementTeaser>): Promise<unknown>;
|
|
887
|
+
/**
|
|
888
|
+
* @param input
|
|
889
|
+
* @category TPaaS Tracking
|
|
890
|
+
*/
|
|
891
|
+
trackEngagementTvModule(input: InputParams<IEngagementTvModule>): Promise<unknown>;
|
|
877
892
|
/**
|
|
878
893
|
* @param input
|
|
879
894
|
* @category TPaaS Tracking
|
|
@@ -8,9 +8,9 @@ export declare enum ConsentsCategory {
|
|
|
8
8
|
CMP_ADVERTISING = "CMP_ADVERTISING",
|
|
9
9
|
CMP_PERSONALIZATION = "CMP_PERSONALIZATION"
|
|
10
10
|
}
|
|
11
|
-
export declare const ConsentsSourceValues: readonly [
|
|
11
|
+
export declare const ConsentsSourceValues: readonly ['default', 'cmp', 'cache', 'url'];
|
|
12
12
|
export type ConsentsSource = (typeof ConsentsSourceValues)[number];
|
|
13
|
-
export declare const ConsentsPurposeCategoryStatusValues: readonly [
|
|
13
|
+
export declare const ConsentsPurposeCategoryStatusValues: readonly ['accepted', 'rejected', 'unknown'];
|
|
14
14
|
export type ConsentsPurposeCategoryStatus = (typeof ConsentsPurposeCategoryStatusValues)[number];
|
|
15
15
|
export interface ConsentsBase {
|
|
16
16
|
source?: ConsentsSource;
|
|
@@ -53,7 +53,7 @@ export type Device = {
|
|
|
53
53
|
*
|
|
54
54
|
* @internal
|
|
55
55
|
*/
|
|
56
|
-
export declare const device: (defaultValueHandler: () => unknown) => (input?: Pick<TrackerEventInput,
|
|
56
|
+
export declare const device: (defaultValueHandler: () => unknown) => (input?: Pick<TrackerEventInput, 'device'>) => Device | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* @internal
|
|
59
59
|
*/
|
|
@@ -61,5 +61,5 @@ export declare const defaultValue: () => {};
|
|
|
61
61
|
/**
|
|
62
62
|
* Builder for Device objects.
|
|
63
63
|
*/
|
|
64
|
-
declare const _default: (input?: Pick<TrackerEventInput,
|
|
64
|
+
declare const _default: (input?: Pick<TrackerEventInput, 'device'>) => Device | undefined;
|
|
65
65
|
export default _default;
|
|
@@ -38,8 +38,8 @@ export declare function anonymousTrackerEvent({ eventInput, sdkConfig }?: EventP
|
|
|
38
38
|
experimentMetadata: ExperimentMetadata | undefined;
|
|
39
39
|
object: Record<string, unknown> | undefined;
|
|
40
40
|
origin: {
|
|
41
|
-
'@type'?: string | undefined;
|
|
42
41
|
'@id'?: string | number | undefined;
|
|
42
|
+
'@type'?: string | undefined;
|
|
43
43
|
} & {
|
|
44
44
|
[k: string]: unknown;
|
|
45
45
|
url?: string;
|
|
@@ -50,7 +50,7 @@ export declare function anonymousTrackerEvent({ eventInput, sdkConfig }?: EventP
|
|
|
50
50
|
isAnonymous: boolean;
|
|
51
51
|
};
|
|
52
52
|
export declare namespace anonymousTrackerEvent {
|
|
53
|
-
|
|
53
|
+
export { trackerAnonymousEventInput as defaults };
|
|
54
54
|
}
|
|
55
55
|
export declare function anonymousEngagementEvent({ eventInput, sdkConfig }?: EventParams<AnonymousTrackerEventInput>): {
|
|
56
56
|
[k: string]: any;
|
|
@@ -62,8 +62,8 @@ export declare function anonymousEngagementEvent({ eventInput, sdkConfig }?: Eve
|
|
|
62
62
|
experimentMetadata: ExperimentMetadata | undefined;
|
|
63
63
|
object: Record<string, unknown> | undefined;
|
|
64
64
|
origin: {
|
|
65
|
-
'@type'?: string | undefined;
|
|
66
65
|
'@id'?: string | number | undefined;
|
|
66
|
+
'@type'?: string | undefined;
|
|
67
67
|
} & {
|
|
68
68
|
[k: string]: unknown;
|
|
69
69
|
url?: string;
|
|
@@ -77,6 +77,6 @@ export declare function anonymousEngagementEvent({ eventInput, sdkConfig }?: Eve
|
|
|
77
77
|
'@type': string;
|
|
78
78
|
};
|
|
79
79
|
export declare namespace anonymousEngagementEvent {
|
|
80
|
-
|
|
80
|
+
export { trackerAnonymousEventInput as defaults };
|
|
81
81
|
}
|
|
82
82
|
export {};
|