@schibsted/pulse-sdk 8.0.0-rc.8 → 8.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Tracker.js +9 -0
- package/dist/cjs/Tracker.test-d.js +0 -2
- package/dist/cjs/builders/consents.js +2 -2
- package/dist/cjs/builders/events-node.js +3 -3
- package/dist/cjs/version.js +1 -1
- package/dist/ejs/Tracker.js +9 -0
- package/dist/ejs/Tracker.test-d.js +0 -2
- package/dist/ejs/builders/consents.js +2 -2
- package/dist/ejs/builders/events-node.js +3 -3
- package/dist/ejs/version.js +1 -1
- package/dist/types/Tracker.d.ts +11 -1
- package/dist/types/builders/consents.d.ts +2 -2
- package/dist/types/builders/index.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/provider.js +3 -1
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders.js +51 -51
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/provider.js +3 -1
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders.js +51 -51
- package/node_modules/@schibsted/tpaas-event-builder/dist/index.d.ts +24 -13
- package/node_modules/@schibsted/tpaas-schemas/dist/cjs/constants.js +56 -56
- package/node_modules/@schibsted/tpaas-schemas/dist/ejs/constants.js +56 -56
- package/node_modules/@schibsted/tpaas-schemas/dist/index.d.ts +77 -68
- package/package.json +4 -4
|
@@ -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, pageviewId, currentPage, } = dependencies;
|
|
26
|
+
const { autoTrackerVersion, isHybrid, version, environmentId, jwe, user, consents, providerId, component, componentVersion, pageviewId, currentPage, } = 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), pageInfoBuilder(currentPage), pageviewIdBuilder(pageviewId), utmBuilder(), referrerBuilder(), catalogVersionBuilder(), experimentsBuilder(dependencies.experiments, experiments));
|
|
28
|
+
return merge(trackerBuilder(autoTrackerVersion, isHybrid, version), timeBuilder(createdAt), sessionBuilder(createdAt), deviceBuilder(environmentId, jwe), userBuilder(user), baseEventBuilder(), consentsBuilder(consents), providerBuilder(providerId, component, componentVersion), pageInfoBuilder(currentPage), pageviewIdBuilder(pageviewId), utmBuilder(), referrerBuilder(), 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,157 +56,157 @@ 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 } = dependencies;
|
|
60
|
-
return merge(
|
|
59
|
+
const { autoTrackerVersion, isHybrid, version, pageviewId, providerId, component, componentVersion } = dependencies;
|
|
60
|
+
return merge(AnonymousViewUIElement, baseEventBuilder(), trackerBuilder(autoTrackerVersion, isHybrid, version), timeBuilder(createdAt), pageviewIdBuilder(pageviewId), utmBuilder(), anonymousBuilder(), providerBuilder(providerId, component, componentVersion), referrerBuilder(), experimentsBuilder(dependencies.experiments, input.experiments), catalogVersionBuilder(), normalizePageInput(input));
|
|
61
61
|
}
|
|
62
62
|
// #endregion
|
|
63
63
|
// #region View Event Builders
|
|
64
64
|
export function buildViewArticleEvent(input, dependencies) {
|
|
65
|
-
return merge(
|
|
65
|
+
return merge(ViewArticle, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
66
66
|
}
|
|
67
67
|
export function buildViewAudioPageEvent(input, dependencies) {
|
|
68
|
-
return merge(
|
|
68
|
+
return merge(ViewAudioPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
69
69
|
}
|
|
70
70
|
export function buildViewErrorEvent(input, dependencies) {
|
|
71
|
-
return merge(
|
|
71
|
+
return merge(ViewError, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
72
72
|
}
|
|
73
73
|
export function buildViewFrontpageEvent(input, dependencies) {
|
|
74
|
-
return merge(
|
|
74
|
+
return merge(ViewFrontpage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
75
75
|
}
|
|
76
76
|
export function buildViewLandingpageEvent(input, dependencies) {
|
|
77
|
-
return merge(
|
|
77
|
+
return merge(ViewLandingpage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
78
78
|
}
|
|
79
79
|
export function buildViewListingEvent(input, dependencies) {
|
|
80
|
-
return merge(
|
|
80
|
+
return merge(ViewListing, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
81
81
|
}
|
|
82
82
|
export function buildViewLockedArticleEvent(input, dependencies) {
|
|
83
|
-
return merge(
|
|
83
|
+
return merge(ViewLockedArticle, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
84
84
|
}
|
|
85
85
|
export function buildViewLockedAudioPageEvent(input, dependencies) {
|
|
86
|
-
return merge(
|
|
86
|
+
return merge(ViewLockedAudioPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
87
87
|
}
|
|
88
88
|
export function buildViewLockedVideoPageEvent(input, dependencies) {
|
|
89
|
-
return merge(
|
|
89
|
+
return merge(ViewLockedVideoPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
90
90
|
}
|
|
91
91
|
export function buildLeaveLockedVideoPageEvent(input, dependencies) {
|
|
92
|
-
return merge(
|
|
92
|
+
return merge(LeaveLockedVideoPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
93
93
|
}
|
|
94
94
|
export function buildViewPageEvent(input, dependencies) {
|
|
95
|
-
return merge(
|
|
95
|
+
return merge(ViewPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
96
96
|
}
|
|
97
97
|
export function buildViewSportsPageEvent(input, dependencies) {
|
|
98
|
-
return merge(
|
|
98
|
+
return merge(ViewSportsPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
99
99
|
}
|
|
100
100
|
export function buildViewTitleEvent(input, dependencies) {
|
|
101
|
-
return merge(
|
|
101
|
+
return merge(ViewTitle, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
102
102
|
}
|
|
103
103
|
export function buildViewVideoPageEvent(input, dependencies) {
|
|
104
|
-
return merge(
|
|
104
|
+
return merge(ViewVideoPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
105
105
|
}
|
|
106
106
|
export function buildViewWeatherEvent(input, dependencies) {
|
|
107
|
-
return merge(
|
|
107
|
+
return merge(ViewWeather, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
108
108
|
}
|
|
109
109
|
// #endregion
|
|
110
110
|
// #region Leave Event Builders
|
|
111
111
|
export function buildLeaveArticleEvent(input, dependencies) {
|
|
112
|
-
return merge(
|
|
112
|
+
return merge(LeaveArticle, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
113
113
|
}
|
|
114
114
|
export function buildLeaveAudioPageEvent(input, dependencies) {
|
|
115
|
-
return merge(
|
|
115
|
+
return merge(LeaveAudioPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
116
116
|
}
|
|
117
117
|
export function buildLeaveErrorEvent(input, dependencies) {
|
|
118
|
-
return merge(
|
|
118
|
+
return merge(LeaveError, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
119
119
|
}
|
|
120
120
|
export function buildLeaveFrontpageEvent(input, dependencies) {
|
|
121
|
-
return merge(
|
|
121
|
+
return merge(LeaveFrontpage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
122
122
|
}
|
|
123
123
|
export function buildLeaveLandingpageEvent(input, dependencies) {
|
|
124
|
-
return merge(
|
|
124
|
+
return merge(LeaveLandingpage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
125
125
|
}
|
|
126
126
|
export function buildLeaveListingEvent(input, dependencies) {
|
|
127
|
-
return merge(
|
|
127
|
+
return merge(LeaveListing, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
128
128
|
}
|
|
129
129
|
export function buildLeaveLockedArticleEvent(input, dependencies) {
|
|
130
|
-
return merge(
|
|
130
|
+
return merge(LeaveLockedArticle, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
131
131
|
}
|
|
132
132
|
export function buildLeaveLockedAudioPageEvent(input, dependencies) {
|
|
133
|
-
return merge(
|
|
133
|
+
return merge(LeaveLockedAudioPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
134
134
|
}
|
|
135
135
|
export function buildLeavePageEvent(input, dependencies) {
|
|
136
|
-
return merge(
|
|
136
|
+
return merge(LeavePage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
137
137
|
}
|
|
138
138
|
export function buildLeaveSportsPageEvent(input, dependencies) {
|
|
139
|
-
return merge(
|
|
139
|
+
return merge(LeaveSportsPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
140
140
|
}
|
|
141
141
|
export function buildLeaveVideoPageEvent(input, dependencies) {
|
|
142
|
-
return merge(
|
|
142
|
+
return merge(LeaveVideoPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
143
143
|
}
|
|
144
144
|
export function buildLeaveWeatherEvent(input, dependencies) {
|
|
145
145
|
const createdAt = new Date();
|
|
146
|
-
const { autoTrackerVersion, isHybrid, version, providerId, user, experiments } = dependencies;
|
|
147
|
-
return merge(normalizePageInput(input), LeaveWeather, timeBuilder(createdAt), trackerBuilder(autoTrackerVersion, isHybrid, version), baseEventBuilder(), providerBuilder(providerId), 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));
|
|
146
|
+
const { autoTrackerVersion, isHybrid, version, providerId, component, componentVersion, user, experiments } = dependencies;
|
|
147
|
+
return merge(normalizePageInput(input), LeaveWeather, timeBuilder(createdAt), trackerBuilder(autoTrackerVersion, isHybrid, version), baseEventBuilder(), providerBuilder(providerId, component, componentVersion), 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));
|
|
148
148
|
}
|
|
149
149
|
// #endregion
|
|
150
150
|
// #region Engagement Event Builders
|
|
151
151
|
export function buildEngagementAudioEvent(input, dependencies) {
|
|
152
|
-
return merge(
|
|
152
|
+
return merge(EngagementAudio, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
153
153
|
}
|
|
154
154
|
export function buildEngagementFormEvent(input, dependencies) {
|
|
155
|
-
return merge(
|
|
155
|
+
return merge(EngagementForm, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
156
156
|
}
|
|
157
157
|
export function buildEngagementOfferEvent(input, dependencies) {
|
|
158
|
-
return merge(
|
|
158
|
+
return merge(EngagementOffer, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
159
159
|
}
|
|
160
160
|
export function buildEngagementTeaserEvent(input, dependencies) {
|
|
161
|
-
return merge(
|
|
161
|
+
return merge(EngagementTeaser, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
162
162
|
}
|
|
163
163
|
export function buildEngagementUIElementEvent(input, dependencies) {
|
|
164
|
-
return merge(
|
|
164
|
+
return merge(EngagementUIElement, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
165
165
|
}
|
|
166
166
|
export function buildEngagementVideoEvent(input, dependencies) {
|
|
167
|
-
return merge(
|
|
167
|
+
return merge(EngagementVideo, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
168
168
|
}
|
|
169
169
|
export function buildEngagementVideoAdEvent(input, dependencies) {
|
|
170
|
-
return merge(
|
|
170
|
+
return merge(EngagementVideoAd, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
171
171
|
}
|
|
172
172
|
export function buildEngagementWidgetEvent(input, dependencies) {
|
|
173
|
-
return merge(
|
|
173
|
+
return merge(EngagementWidget, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
174
174
|
}
|
|
175
175
|
// #endregion
|
|
176
176
|
// #region Health Event Builders
|
|
177
177
|
export function buildCompletedHealthActionEvent(input, dependencies) {
|
|
178
|
-
return merge(
|
|
178
|
+
return merge(CompletedHealthAction, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
179
179
|
}
|
|
180
180
|
export function buildEngagementHealthUIElementEvent(input, dependencies) {
|
|
181
|
-
return merge(
|
|
181
|
+
return merge(EngagementHealthUIElement, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
182
182
|
}
|
|
183
183
|
export function buildViewHealthPageEvent(input, dependencies) {
|
|
184
|
-
return merge(
|
|
184
|
+
return merge(ViewHealthPage, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input), navigationTypeBuilder(input.page?.navigationType));
|
|
185
185
|
}
|
|
186
186
|
export function buildImpressionHealthUIElementEvent(input, dependencies) {
|
|
187
|
-
return merge(
|
|
187
|
+
return merge(ImpressionHealthUIElement, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
188
188
|
}
|
|
189
189
|
// #endregion
|
|
190
190
|
// #region Impression Event Builders
|
|
191
191
|
export function buildImpressionAdSlotEvent(input, dependencies) {
|
|
192
|
-
return merge(
|
|
192
|
+
return merge(ImpressionAdSlot, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
193
193
|
}
|
|
194
194
|
export function buildImpressionFormEvent(input, dependencies) {
|
|
195
|
-
return merge(
|
|
195
|
+
return merge(ImpressionForm, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
196
196
|
}
|
|
197
197
|
export function buildImpressionOfferEvent(input, dependencies) {
|
|
198
|
-
return merge(
|
|
198
|
+
return merge(ImpressionOffer, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
199
199
|
}
|
|
200
200
|
export function buildImpressionPlayerEvent(input, dependencies) {
|
|
201
|
-
return merge(
|
|
201
|
+
return merge(ImpressionPlayer, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
202
202
|
}
|
|
203
203
|
export function buildImpressionTeaserEvent(input, dependencies) {
|
|
204
|
-
return merge(
|
|
204
|
+
return merge(ImpressionTeaser, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
205
205
|
}
|
|
206
206
|
export function buildImpressionUIElementEvent(input, dependencies) {
|
|
207
|
-
return merge(
|
|
207
|
+
return merge(ImpressionUIElement, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
208
208
|
}
|
|
209
209
|
export function buildImpressionWidgetEvent(input, dependencies) {
|
|
210
|
-
return merge(
|
|
210
|
+
return merge(ImpressionWidget, getCommonBuildersOutput(new Date(), dependencies, input), normalizePageInput(input));
|
|
211
211
|
}
|
|
212
212
|
// #endregion
|
|
@@ -579,9 +579,9 @@ interface IContent {
|
|
|
579
579
|
*/
|
|
580
580
|
contentType: "Article" | "LiveArticle" | "SpecialArticle" | "Podcast" | "Episode" | "Audiobook" | "AudiobookSample" | "Movie" | "Series" | "Story";
|
|
581
581
|
/**
|
|
582
|
-
* The
|
|
582
|
+
* The namespace that the target content belongs to, for example its newsroom
|
|
583
583
|
*/
|
|
584
|
-
|
|
584
|
+
namespace: string;
|
|
585
585
|
/**
|
|
586
586
|
* A list of product features that give access to this content. (Uses OR, i.e., having one is enough for access.)
|
|
587
587
|
*/
|
|
@@ -1269,15 +1269,11 @@ interface IPlacement {
|
|
|
1269
1269
|
* The context in which the recommendation was made.
|
|
1270
1270
|
*/
|
|
1271
1271
|
curateContext?: string;
|
|
1272
|
-
/**
|
|
1273
|
-
* The source of the impression/engagement.
|
|
1274
|
-
*/
|
|
1275
|
-
curateSource?: string;
|
|
1276
1272
|
/**
|
|
1277
1273
|
* Indicator if the player was visible at pageload (“above”) or if the user had to scroll to it (“below”).
|
|
1278
1274
|
*/
|
|
1279
1275
|
foldPosition: "Above" | "Below" | "Unknown";
|
|
1280
|
-
positionInBundle
|
|
1276
|
+
positionInBundle?: number;
|
|
1281
1277
|
/**
|
|
1282
1278
|
* The parent’s primary direction along which components are laid out.
|
|
1283
1279
|
*/
|
|
@@ -2703,6 +2699,18 @@ interface IInternalAccessDecision {
|
|
|
2703
2699
|
*/
|
|
2704
2700
|
config: {
|
|
2705
2701
|
armId: string;
|
|
2702
|
+
rctProbabilities?: {
|
|
2703
|
+
/**
|
|
2704
|
+
* @minimum 0
|
|
2705
|
+
* @maximum 1
|
|
2706
|
+
*/
|
|
2707
|
+
close: number;
|
|
2708
|
+
/**
|
|
2709
|
+
* @minimum 0
|
|
2710
|
+
* @maximum 1
|
|
2711
|
+
*/
|
|
2712
|
+
open: number;
|
|
2713
|
+
};
|
|
2706
2714
|
version: string;
|
|
2707
2715
|
/**
|
|
2708
2716
|
* @minimum 0
|
|
@@ -2787,10 +2795,6 @@ interface IInternalAccessDecision {
|
|
|
2787
2795
|
schema: string;
|
|
2788
2796
|
target: {
|
|
2789
2797
|
content: {
|
|
2790
|
-
/**
|
|
2791
|
-
* The access restriction placed on the content.
|
|
2792
|
-
*/
|
|
2793
|
-
accessLevel?: "Free" | "Login" | "Meter" | "Paid" | "Dynamic";
|
|
2794
2798
|
/**
|
|
2795
2799
|
* The format that this content is presented in.
|
|
2796
2800
|
*/
|
|
@@ -2803,6 +2807,11 @@ interface IInternalAccessDecision {
|
|
|
2803
2807
|
* The subtype of the content.
|
|
2804
2808
|
*/
|
|
2805
2809
|
contentType?: "Article" | "LiveArticle" | "SpecialArticle" | "Podcast" | "Episode" | "Audiobook" | "AudiobookSample" | "Movie" | "Series" | "Story";
|
|
2810
|
+
layout?: string;
|
|
2811
|
+
/**
|
|
2812
|
+
* @minimum 1
|
|
2813
|
+
*/
|
|
2814
|
+
layoutPosition?: number;
|
|
2806
2815
|
/**
|
|
2807
2816
|
* The id of the provider that requested the access decision and where the result will be shown (svdse). Note: Not the same as .provider.providerId.
|
|
2808
2817
|
*/
|
|
@@ -5537,7 +5546,7 @@ interface IViewWeather {
|
|
|
5537
5546
|
user?: IUser;
|
|
5538
5547
|
}
|
|
5539
5548
|
type ITpaasEvent = IAnonymousViewUIElement | ICancelSubscription | IChangePushNotificationSettings | ICompletedHealthAction | IEngagementAudio | IEngagementForm | IEngagementHealthUIElement | IEngagementNotification | IEngagementOffer | IEngagementTeaser | IEngagementUIElement | IEngagementVideo | IEngagementVideoAd | IEngagementWidget | IImpressionAdSlot | IImpressionForm | IImpressionHealthUIElement | IImpressionNotification | IImpressionOffer | IImpressionPlayer | IImpressionTeaser | IImpressionUIElement | IImpressionWidget | IInternalAccessDecision | IInternalProbe | ILaunchApp | ILeaveArticle | ILeaveAudioPage | ILeaveError | ILeaveFrontpage | ILeaveLandingpage | ILeaveListing | ILeaveLockedArticle | ILeaveLockedAudioPage | ILeaveLockedVideoPage | ILeavePage | ILeaveSportsPage | ILeaveVideoPage | ILeaveWeather | IPurchaseSubscription | IViewArticle | IViewAudioPage | IViewError | IViewFrontpage | IViewHealthPage | IViewLandingpage | IViewListing | IViewLockedArticle | IViewLockedAudioPage | IViewLockedVideoPage | IViewPage | IViewSportsPage | IViewTitle | IViewVideoPage | IViewWeather;
|
|
5540
|
-
type OmittedProperties = "user" | "eventId" | "consents" | "device" | "time" | "tracker" | "session" | "eventType" | "schema" | "object.objectType" | "isAnonymous" | "provider.providerId" | "provider.providerSdrn" | "page.pageviewId" | "page.utm" | "page.info" | "page.referrer.url" | "catalogVersion";
|
|
5549
|
+
type OmittedProperties = "user" | "eventId" | "consents" | "device" | "time" | "tracker" | "session" | "eventType" | "schema" | "object.objectType" | "isAnonymous" | "provider.providerId" | "provider.providerSdrn" | "provider.component" | "provider.componentVersion" | "page.pageviewId" | "page.utm" | "page.info" | "page.referrer.url" | "catalogVersion";
|
|
5541
5550
|
type DeepOmit<T, K extends string> = T extends readonly unknown[] ? T : T extends object ? {
|
|
5542
5551
|
[P in keyof T as P extends K ? never : P]: DeepOmit<T[P], K extends `${Exclude<P, symbol>}.${infer R}` ? R : never>;
|
|
5543
5552
|
} extends infer Result ? {
|
|
@@ -5583,6 +5592,8 @@ export interface TpaasEventBuilderDependencies {
|
|
|
5583
5592
|
isHybrid: ITracker["isHybrid"];
|
|
5584
5593
|
consents?: IConsents;
|
|
5585
5594
|
providerId: IProvider["providerId"];
|
|
5595
|
+
component?: IProvider["component"];
|
|
5596
|
+
componentVersion?: IProvider["componentVersion"];
|
|
5586
5597
|
environmentId: IDevice["environmentId"];
|
|
5587
5598
|
jwe: IDevice["jweIds"];
|
|
5588
5599
|
pageviewId: string;
|
|
@@ -5658,7 +5669,7 @@ export declare const getCommonBuildersOutput: (createdAt: Date, dependencies: Tp
|
|
|
5658
5669
|
providerSdrn: string;
|
|
5659
5670
|
};
|
|
5660
5671
|
};
|
|
5661
|
-
export declare function buildAnonymousViewUIElementEvent(input: InputParams<IAnonymousViewUIElement>, dependencies: Pick<TpaasEventBuilderDependencies, "autoTrackerVersion" | "isHybrid" | "version" | "pageviewId" | "providerId" | "experiments">): IAnonymousViewUIElement;
|
|
5672
|
+
export declare function buildAnonymousViewUIElementEvent(input: InputParams<IAnonymousViewUIElement>, dependencies: Pick<TpaasEventBuilderDependencies, "autoTrackerVersion" | "isHybrid" | "version" | "pageviewId" | "providerId" | "experiments" | "component" | "componentVersion">): IAnonymousViewUIElement;
|
|
5662
5673
|
export declare function buildViewArticleEvent(input: InputParams<IViewArticle>, dependencies: TpaasEventBuilderDependencies): IViewArticle;
|
|
5663
5674
|
export declare function buildViewAudioPageEvent(input: InputParams<IViewAudioPage>, dependencies: TpaasEventBuilderDependencies): IViewAudioPage;
|
|
5664
5675
|
export declare function buildViewErrorEvent(input: InputParams<IViewError>, dependencies: TpaasEventBuilderDependencies): IViewError;
|