@schibsted/pulse-sdk 8.0.0-rc.2 → 8.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Tracker.js +582 -471
- package/dist/cjs/app-integration.js +3 -3
- package/dist/cjs/builders/actor.js +6 -6
- package/dist/cjs/builders/consents.js +8 -8
- package/dist/cjs/builders/device-browser.js +8 -8
- package/dist/cjs/builders/device-node.js +3 -3
- package/dist/cjs/builders/events-anonymous-node.js +3 -3
- package/dist/cjs/builders/events-node.js +7 -7
- package/dist/cjs/builders/experimentMetadata.js +2 -2
- package/dist/cjs/builders/experiments.js +1 -0
- package/dist/cjs/builders/objects/objects-anonymous-browser.js +2 -2
- package/dist/cjs/builders/objects/objects-anonymous-node.js +9 -9
- package/dist/cjs/builders/objects/objects-browser.js +2 -2
- package/dist/cjs/builders/objects/objects-node.js +10 -10
- package/dist/cjs/builders/objects/utils.js +3 -3
- package/dist/cjs/builders/origin-browser.js +2 -2
- package/dist/cjs/builders/origin-node.js +4 -4
- package/dist/cjs/builders/session-browser.js +6 -80
- package/dist/cjs/cis-sync/cis-browser.js +219 -0
- package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/cis-sync}/cis.js +0 -1
- package/dist/cjs/cis-sync/eventEmitter.js +37 -0
- package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/cis-sync}/index.js +0 -1
- package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/cis-sync}/pulse-cookie.js +53 -63
- package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/cis-sync}/storage/pulseStorage.js +28 -21
- package/dist/cjs/cis-sync/storage/storage.js +24 -0
- package/dist/cjs/createPulseTracker.js +4 -4
- package/dist/cjs/identity/actor.js +20 -8
- package/dist/cjs/identity/advertising.js +1 -1
- package/dist/cjs/identity/cis.js +7 -6
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/leaveTracking/index.js +10 -10
- package/dist/cjs/leaveTrackingTpaas/constants.js +2 -7
- package/dist/cjs/leaveTrackingTpaas/index.js +70 -46
- package/dist/cjs/network-browser.js +3 -3
- package/dist/cjs/remoteConfig/index.js +5 -5
- package/dist/cjs/session/store.js +96 -0
- package/dist/cjs/tpaas-builders/builders/catalogVersion.js +9 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/device.js +50 -72
- package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/navigationType.js +2 -3
- package/dist/cjs/tpaas-builders/builders/pageContent.js +7 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/pageInfo.js +2 -3
- package/dist/cjs/tpaas-builders/builders/pageSports.js +7 -0
- package/dist/cjs/tpaas-builders/builders/provider.js +19 -0
- package/dist/cjs/tpaas-builders/builders/referrer.js +17 -0
- package/dist/cjs/tpaas-builders/builders/session.js +5 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/trackerBuilder.js +2 -3
- package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/user.js +1 -1
- package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/utm.js +3 -9
- package/dist/cjs/tpaas-builders/builders.js +326 -0
- package/dist/cjs/tpaas-builders/guards.js +7 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/index.js +3 -0
- package/dist/cjs/tpaas-context/adapters.js +85 -0
- package/dist/cjs/tpaas-context/browser.js +51 -0
- package/dist/cjs/tpaas-context/index.js +6 -0
- package/dist/cjs/tpaas-context/prepare.js +177 -0
- package/dist/cjs/tpaas-context/session.js +23 -0
- package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/tpaas-context}/types.js +0 -1
- package/{node_modules/@schibsted/tpaas-schemas/dist/cjs → dist/cjs/tpaas-schemas}/constants.js +189 -158
- package/{node_modules/@schibsted/tpaas-schemas/dist/cjs → dist/cjs/tpaas-schemas}/index.js +1 -0
- package/dist/cjs/tpaas-schemas/types.js +2 -0
- package/dist/cjs/tracker-proxy/consts.js +29 -7
- package/dist/cjs/tracker-proxy/proxy-provider.js +2 -2
- package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/index.js +4 -1
- package/dist/cjs/utils/xDomainId.js +15 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/visibility-observer/index.js +9 -7
- package/dist/cjs/wrapper/types/event.js +5 -0
- package/dist/cjs/wrapper/utils/map-page-to-page-ref.js +13 -0
- package/dist/ejs/Tracker.js +558 -447
- package/dist/ejs/app-integration.js +1 -1
- package/dist/ejs/builders/actor.js +3 -3
- package/dist/ejs/builders/consents.js +4 -4
- package/dist/ejs/builders/device-browser.js +2 -2
- package/dist/ejs/builders/device-node.js +1 -1
- package/dist/ejs/builders/events-anonymous-node.js +1 -1
- package/dist/ejs/builders/events-node.js +4 -4
- package/dist/ejs/builders/experimentMetadata.js +1 -1
- package/dist/ejs/builders/experiments.js +1 -1
- package/dist/ejs/builders/objects/objects-anonymous-browser.js +1 -1
- package/dist/ejs/builders/objects/objects-anonymous-node.js +1 -1
- package/dist/ejs/builders/objects/objects-browser.js +1 -1
- package/dist/ejs/builders/objects/objects-node.js +1 -1
- package/dist/ejs/builders/objects/utils.js +1 -1
- package/dist/ejs/builders/origin-browser.js +1 -1
- package/dist/ejs/builders/origin-node.js +1 -1
- package/dist/ejs/builders/session-browser.js +5 -77
- package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/cis-browser.js +17 -4
- package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/cis.js +0 -1
- package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/eventEmitter.js +0 -1
- package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/index.js +0 -1
- package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/pulse-cookie.js +1 -2
- package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/storage/pulseStorage.js +12 -4
- package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/storage/storage.js +6 -2
- package/dist/ejs/createPulseTracker.js +1 -1
- package/dist/ejs/identity/actor.js +21 -9
- package/dist/ejs/identity/advertising.js +1 -1
- package/dist/ejs/identity/cis.js +4 -3
- package/dist/ejs/index.js +4 -3
- package/dist/ejs/leaveTracking/index.js +1 -1
- package/dist/ejs/leaveTrackingTpaas/constants.js +1 -5
- package/dist/ejs/leaveTrackingTpaas/index.js +65 -41
- package/dist/ejs/network-browser.js +1 -1
- package/dist/ejs/remoteConfig/index.js +1 -1
- package/dist/ejs/session/store.js +90 -0
- package/dist/ejs/tpaas-builders/builders/catalogVersion.js +6 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/device.js +50 -72
- package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/navigationType.js +2 -3
- package/dist/ejs/tpaas-builders/builders/pageContent.js +3 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/pageInfo.js +2 -3
- package/dist/ejs/tpaas-builders/builders/pageSports.js +3 -0
- package/dist/ejs/tpaas-builders/builders/provider.js +16 -0
- package/dist/ejs/tpaas-builders/builders/referrer.js +13 -0
- package/dist/ejs/tpaas-builders/builders/session.js +1 -0
- package/dist/ejs/tpaas-builders/builders/trackerBuilder.js +10 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/user.js +1 -1
- package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/utm.js +3 -9
- package/dist/ejs/tpaas-builders/builders.js +259 -0
- package/dist/ejs/tpaas-builders/guards.js +4 -0
- package/dist/ejs/tpaas-builders/index.js +2 -0
- package/dist/ejs/tpaas-context/adapters.js +80 -0
- package/dist/ejs/tpaas-context/browser.js +47 -0
- package/dist/ejs/tpaas-context/index.js +1 -0
- package/dist/ejs/tpaas-context/prepare.js +137 -0
- package/dist/ejs/tpaas-context/session.js +19 -0
- package/{node_modules/@schibsted/tpaas-schemas/dist/ejs → dist/ejs/tpaas-schemas}/constants.js +187 -156
- package/{node_modules/@schibsted/tpaas-schemas/dist/ejs → dist/ejs/tpaas-schemas}/index.js +1 -0
- package/dist/ejs/tpaas-schemas/types.js +1 -0
- package/dist/ejs/tracker-proxy/consts.js +29 -7
- package/dist/ejs/tracker-proxy/proxy-provider.js +1 -1
- package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/index.js +1 -0
- package/dist/ejs/utils/xDomainId.js +11 -0
- package/dist/ejs/version.js +1 -1
- package/dist/ejs/visibility-observer/index.js +9 -7
- package/dist/ejs/wrapper/types/event.js +4 -1
- package/dist/ejs/wrapper/utils/map-page-to-page-ref.js +10 -0
- package/dist/types/Tracker.d.ts +198 -93
- package/dist/types/builders/actor.d.ts +3 -2
- package/dist/types/builders/consents.d.ts +3 -3
- 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/experiments.d.ts +1 -0
- package/dist/types/builders/index.d.ts +1 -1
- 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/builders/session-browser.d.ts +1 -13
- package/{node_modules/@schibsted/pulse-cis-sync/dist/types → dist/types/cis-sync}/cis-browser.d.ts +1 -0
- package/{node_modules/@schibsted/pulse-cis-sync/dist/types → dist/types/cis-sync}/storage/pulseStorage.d.ts +12 -4
- package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/storage/storage.d.ts +2 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/createPulseTracker.d.ts +1 -1
- package/dist/types/identity/actor.d.ts +3 -3
- package/dist/types/identity/advertising.d.ts +2 -2
- package/dist/types/identity/cis.d.ts +4 -4
- package/dist/types/index.d.ts +7 -8
- package/dist/types/leaveTrackingTpaas/constants.d.ts +1 -5
- package/dist/types/leaveTrackingTpaas/index.d.ts +6 -6
- package/dist/types/leaveTrackingTpaas/types.d.ts +2 -10
- package/dist/types/session/store.d.ts +34 -0
- package/dist/types/tpaas-builders/builders/anonymous.d.ts +3 -0
- package/dist/types/tpaas-builders/builders/baseEvent.d.ts +3 -0
- package/dist/types/tpaas-builders/builders/catalogVersion.d.ts +3 -0
- package/dist/types/tpaas-builders/builders/consents.d.ts +5 -0
- package/dist/types/tpaas-builders/builders/device.d.ts +5 -0
- package/dist/types/tpaas-builders/builders/experiments.d.ts +9 -0
- package/dist/types/tpaas-builders/builders/navigationType.d.ts +6 -0
- package/dist/types/tpaas-builders/builders/pageContent.d.ts +6 -0
- package/dist/types/tpaas-builders/builders/pageInfo.d.ts +7 -0
- package/dist/types/tpaas-builders/builders/pageSports.d.ts +6 -0
- package/dist/types/tpaas-builders/builders/pageviewId.d.ts +6 -0
- package/dist/types/tpaas-builders/builders/provider.d.ts +5 -0
- package/dist/types/tpaas-builders/builders/referrer.d.ts +6 -0
- package/dist/types/tpaas-builders/builders/session.d.ts +4 -0
- package/dist/types/tpaas-builders/builders/time.d.ts +4 -0
- package/dist/types/tpaas-builders/builders/trackerBuilder.d.ts +5 -0
- package/dist/types/tpaas-builders/builders/user.d.ts +5 -0
- package/dist/types/tpaas-builders/builders/utm.d.ts +7 -0
- package/dist/types/tpaas-builders/builders.d.ts +141 -0
- package/dist/types/tpaas-builders/guards.d.ts +2 -0
- package/dist/types/tpaas-builders/index.d.ts +2 -0
- package/dist/types/tpaas-context/adapters.d.ts +26 -0
- package/dist/types/tpaas-context/browser.d.ts +8 -0
- package/dist/types/tpaas-context/index.d.ts +2 -0
- package/dist/types/tpaas-context/prepare.d.ts +38 -0
- package/dist/types/tpaas-context/session.d.ts +10 -0
- package/dist/types/tpaas-context/types.d.ts +66 -0
- package/dist/types/tpaas-schemas/constants.d.ts +471 -0
- package/dist/types/tpaas-schemas/index.d.ts +5 -0
- package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +130 -0
- package/dist/types/tpaas-schemas/types/schemas/IAnonymousImpressionUIElement.d.ts +58 -0
- package/dist/types/tpaas-schemas/types/schemas/ICompletedHealthAction.d.ts +139 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementAd.d.ts +117 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementAffiliate.d.ts +144 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementAudio.d.ts +213 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementForm.d.ts +111 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementHealthUIElement.d.ts +133 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementOffer.d.ts +107 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementSchoolUIElement.d.ts +107 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementSportsUIElement.d.ts +157 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTeaser.d.ts +114 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTvModule.d.ts +133 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementTvSearch.d.ts +142 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementUIElement.d.ts +105 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementVideo.d.ts +238 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementVideoAd.d.ts +147 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementWidget.d.ts +91 -0
- package/dist/types/tpaas-schemas/types/schemas/IHeartbeatCommercialArticle.d.ts +96 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionAd.d.ts +115 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionAdSlot.d.ts +89 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionAffiliate.d.ts +142 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionForm.d.ts +113 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionHealthUIElement.d.ts +138 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionOffer.d.ts +109 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionPlayer.d.ts +108 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionSchoolUIElement.d.ts +109 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionSportsUIElement.d.ts +159 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionTeaser.d.ts +112 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionUIElement.d.ts +107 -0
- package/dist/types/tpaas-schemas/types/schemas/IImpressionWidget.d.ts +89 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveArticle.d.ts +133 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveAudioPage.d.ts +88 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveError.d.ts +95 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveFrontpage.d.ts +83 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveLandingpage.d.ts +90 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveListing.d.ts +123 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedArticle.d.ts +139 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedAudioPage.d.ts +97 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedPage.d.ts +90 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedVideoPage.d.ts +97 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeavePage.d.ts +82 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveSchoolPage.d.ts +84 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveSportsPage.d.ts +137 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveVideoPage.d.ts +91 -0
- package/dist/types/tpaas-schemas/types/schemas/ILeaveWeather.d.ts +96 -0
- package/dist/types/tpaas-schemas/types/schemas/ILoadAd.d.ts +119 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewArticle.d.ts +133 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewAudioPage.d.ts +87 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewError.d.ts +90 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewFrontpage.d.ts +80 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewHealthPage.d.ts +119 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewLandingpage.d.ts +76 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewListing.d.ts +118 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewLockedArticle.d.ts +139 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewLockedAudioPage.d.ts +95 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewLockedPage.d.ts +94 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewLockedVideoPage.d.ts +95 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewPage.d.ts +86 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewSchoolPage.d.ts +88 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewSportsPage.d.ts +135 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewTitle.d.ts +92 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewVideoPage.d.ts +87 -0
- package/dist/types/tpaas-schemas/types/schemas/IViewWeather.d.ts +94 -0
- package/dist/types/tpaas-schemas/types/schemas/index.d.ts +63 -0
- package/dist/types/tpaas-schemas/types/templates/IBranded.d.ts +42 -0
- package/dist/types/tpaas-schemas/types/templates/IConsents.d.ts +34 -0
- package/dist/types/tpaas-schemas/types/templates/IContent.d.ts +56 -0
- package/dist/types/tpaas-schemas/types/templates/IDevice.d.ts +62 -0
- package/dist/types/tpaas-schemas/types/templates/IEngagement.d.ts +21 -0
- package/dist/types/tpaas-schemas/types/templates/IExperiments.d.ts +35 -0
- package/dist/types/tpaas-schemas/types/templates/IHealthFood.d.ts +55 -0
- package/dist/types/tpaas-schemas/types/templates/IHealthOrigin.d.ts +27 -0
- package/dist/types/tpaas-schemas/types/templates/IHealthPhysicalActivity.d.ts +36 -0
- package/dist/types/tpaas-schemas/types/templates/IHealthTraining.d.ts +74 -0
- package/dist/types/tpaas-schemas/types/templates/IHealthUserData.d.ts +25 -0
- package/dist/types/tpaas-schemas/types/templates/ILeave.d.ts +54 -0
- package/dist/types/tpaas-schemas/types/templates/ILeaveAudio.d.ts +37 -0
- package/dist/types/tpaas-schemas/types/templates/ILeaveStories.d.ts +34 -0
- package/dist/types/tpaas-schemas/types/templates/ILocation.d.ts +21 -0
- package/dist/types/tpaas-schemas/types/templates/IMetrics.d.ts +32 -0
- package/dist/types/tpaas-schemas/types/templates/IPageRef.d.ts +46 -0
- package/dist/types/tpaas-schemas/types/templates/IPlacement.d.ts +45 -0
- package/dist/types/tpaas-schemas/types/templates/IProvider.d.ts +73 -0
- package/dist/types/tpaas-schemas/types/templates/ISchool.d.ts +74 -0
- package/dist/types/tpaas-schemas/types/templates/ISession.d.ts +33 -0
- package/dist/types/tpaas-schemas/types/templates/ISports.d.ts +98 -0
- package/dist/types/tpaas-schemas/types/templates/ISportsUserFeatures.d.ts +28 -0
- package/dist/types/tpaas-schemas/types/templates/ITime.d.ts +32 -0
- package/dist/types/tpaas-schemas/types/templates/ITracker.d.ts +37 -0
- package/dist/types/tpaas-schemas/types/templates/IUser.d.ts +34 -0
- package/dist/types/tpaas-schemas/types/templates/IUtmTags.d.ts +38 -0
- package/dist/types/tpaas-schemas/types/templates/index.d.ts +27 -0
- package/dist/types/tpaas-schemas/types.d.ts +42 -0
- package/dist/types/tracker-proxy/consts.d.ts +2 -2
- package/dist/types/types.d.ts +21 -17
- package/{node_modules/@schibsted/pulse-utils/dist/types → 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/dist/types/visibility-observer/index.d.ts +6 -1
- package/dist/types/wrapper/engagement/ui-element/types.d.ts +1 -1
- package/dist/types/wrapper/types/base-event.d.ts +1 -1
- package/dist/types/wrapper/types/event.d.ts +4 -2
- package/dist/types/wrapper/types/utils.d.ts +1 -1
- package/dist/types/wrapper/utils/map-page-to-page-ref.d.ts +3 -0
- package/dist/types/wrapper/view/article/types.d.ts +1 -1
- package/dist/types/wrapper/view/frontpage/types.d.ts +1 -1
- package/dist/types/wrapper/view/listing/types.d.ts +1 -1
- package/dist/types/wrapper/view/loginposter/types.d.ts +1 -1
- package/dist/types/wrapper/view/page/types.d.ts +1 -1
- package/dist/types/wrapper/view/salesposter/types.d.ts +1 -1
- package/dist/types/wrapper/view/ui-element/types.d.ts +1 -1
- package/package.json +21 -20
- package/dist/cjs/Tracker.test-d.js +0 -76
- package/dist/ejs/Tracker.test-d.js +0 -71
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.d.ts +0 -26
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.js +0 -273
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/eventEmitter.js +0 -39
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/eventEmitter.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/index.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/pulse-cookie.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/pulseStorage.d.ts +0 -36
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/pulseStorage.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/storage.js +0 -21
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/storage.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/types.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis-browser.d.ts +0 -26
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis-browser.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis.d.ts +0 -10
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/eventEmitter.d.ts +0 -14
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/eventEmitter.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/index.d.ts +0 -4
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/index.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/pulse-cookie.d.ts +0 -55
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/pulse-cookie.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/pulseStorage.d.ts +0 -36
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/pulseStorage.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/storage.d.ts +0 -6
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/storage.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.d.ts +0 -24
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.js +0 -2
- package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.js.map +0 -1
- package/node_modules/@schibsted/pulse-cis-sync/dist/types/cis.d.ts +0 -10
- package/node_modules/@schibsted/pulse-cis-sync/dist/types/eventEmitter.d.ts +0 -14
- package/node_modules/@schibsted/pulse-cis-sync/dist/types/index.d.ts +0 -4
- package/node_modules/@schibsted/pulse-cis-sync/dist/types/pulse-cookie.d.ts +0 -55
- package/node_modules/@schibsted/pulse-cis-sync/dist/types/storage/storage.d.ts +0 -6
- package/node_modules/@schibsted/pulse-cis-sync/dist/types/types.d.ts +0 -24
- package/node_modules/@schibsted/pulse-cis-sync/package.json +0 -44
- package/node_modules/@schibsted/pulse-utils/package.json +0 -36
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/provider.js +0 -12
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/referrer.js +0 -19
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/session.js +0 -114
- package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders.js +0 -272
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/provider.js +0 -9
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/referrer.js +0 -15
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/session.js +0 -108
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/trackerBuilder.js +0 -11
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders.js +0 -215
- package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/index.js +0 -1
- package/node_modules/@schibsted/tpaas-event-builder/dist/index.d.ts +0 -5403
- package/node_modules/@schibsted/tpaas-event-builder/package.json +0 -40
- package/node_modules/@schibsted/tpaas-schemas/dist/index.d.ts +0 -6176
- package/node_modules/@schibsted/tpaas-schemas/package.json +0 -35
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/cis-sync}/types.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/anonymous.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/baseEvent.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/consents.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/experiments.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/pageviewId.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/time.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/cookie-config.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/cookie.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/events.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/get.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/getRootDomain.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/merge.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/objects.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/omit.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/randomString.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/throttle.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/webApi.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/cis-sync}/types.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/anonymous.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/baseEvent.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/consents.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/experiments.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/pageviewId.js +0 -0
- /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/time.js +0 -0
- /package/dist/{types/Tracker.test-d.d.ts → ejs/tpaas-context/types.js} +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/cookie-config.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/cookie.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/events.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/get.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/getRootDomain.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/merge.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/objects.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/omit.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/randomString.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/throttle.js +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/webApi.js +0 -0
- /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/cis.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/eventEmitter.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/index.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/pulse-cookie.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/types.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/cookie-config.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/cookie.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/events.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/get.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/getRootDomain.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/merge.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/objects.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/omit.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/randomString.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/throttle.d.ts +0 -0
- /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/webApi.d.ts +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import type { IBranded } from '../templates/IBranded.d.ts';
|
|
4
|
+
import type { IConsents } from '../templates/IConsents.d.ts';
|
|
5
|
+
import type { IContent } from '../templates/IContent.d.ts';
|
|
6
|
+
import type { IDevice } from '../templates/IDevice.d.ts';
|
|
7
|
+
import type { IEngagement } from '../templates/IEngagement.d.ts';
|
|
8
|
+
import type { IExperiments } from '../templates/IExperiments.d.ts';
|
|
9
|
+
import type { IMetrics } from '../templates/IMetrics.d.ts';
|
|
10
|
+
import type { IPageRef } from '../templates/IPageRef.d.ts';
|
|
11
|
+
import type { IPlacement } from '../templates/IPlacement.d.ts';
|
|
12
|
+
import type { IProvider } from '../templates/IProvider.d.ts';
|
|
13
|
+
import type { ISession } from '../templates/ISession.d.ts';
|
|
14
|
+
import type { ITime } from '../templates/ITime.d.ts';
|
|
15
|
+
import type { ITracker } from '../templates/ITracker.d.ts';
|
|
16
|
+
import type { IUser } from '../templates/IUser.d.ts';
|
|
17
|
+
import type { IUtmTags } from '../templates/IUtmTags.d.ts';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* An interaction with a teaser component.
|
|
21
|
+
*/
|
|
22
|
+
export interface IEngagementTeaser {
|
|
23
|
+
branded?: IBranded;
|
|
24
|
+
/**
|
|
25
|
+
* The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
|
|
26
|
+
* @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
|
|
27
|
+
* @example "1.2.3"
|
|
28
|
+
*/
|
|
29
|
+
catalogVersion: string;
|
|
30
|
+
consents: IConsents;
|
|
31
|
+
device: IDevice;
|
|
32
|
+
engagement: IEngagement;
|
|
33
|
+
/**
|
|
34
|
+
* Event ID
|
|
35
|
+
* @format uuid
|
|
36
|
+
*/
|
|
37
|
+
eventId: string;
|
|
38
|
+
/**
|
|
39
|
+
* The type of event.
|
|
40
|
+
*/
|
|
41
|
+
eventType: 'Engagement';
|
|
42
|
+
experiments?: IExperiments;
|
|
43
|
+
metrics?: IMetrics;
|
|
44
|
+
object: {
|
|
45
|
+
/**
|
|
46
|
+
* The engine producing this teaser. Use “Editorial” for manually curated item.
|
|
47
|
+
*/
|
|
48
|
+
contentSource: 'Capi' | 'Curate' | 'ElasticSearch' | 'Editorial' | 'Stream' | 'Other';
|
|
49
|
+
/**
|
|
50
|
+
* The creative of the teaser.
|
|
51
|
+
*/
|
|
52
|
+
creativeURL?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The size of the component.
|
|
55
|
+
*/
|
|
56
|
+
elementSize?: 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
57
|
+
/**
|
|
58
|
+
* The URL to the teaser image.
|
|
59
|
+
* @example "https://akamai.vgc.no/v2/images/bf0b043a-beb4-382a-be20-89bba60bdc44?fit=crop&format=auto&w=1440&s=183a09a7662535f456fa261fb7cc4f8af6a55aa1"
|
|
60
|
+
*/
|
|
61
|
+
imageUrl?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The name of the component.
|
|
64
|
+
*/
|
|
65
|
+
name: string;
|
|
66
|
+
/**
|
|
67
|
+
* The unique ID for this component.
|
|
68
|
+
*/
|
|
69
|
+
objectId: string;
|
|
70
|
+
/**
|
|
71
|
+
* The unique SDRN for this component.
|
|
72
|
+
*/
|
|
73
|
+
objectSdrn: string;
|
|
74
|
+
/**
|
|
75
|
+
* The type of the component.
|
|
76
|
+
*/
|
|
77
|
+
objectType: 'Teaser';
|
|
78
|
+
/**
|
|
79
|
+
* The name of the company that sponsored the Teaser. Omitted if it was not sponsored.
|
|
80
|
+
*/
|
|
81
|
+
sponsor?: string;
|
|
82
|
+
/**
|
|
83
|
+
* The title of the teaser.
|
|
84
|
+
*/
|
|
85
|
+
title: string;
|
|
86
|
+
};
|
|
87
|
+
page: {
|
|
88
|
+
content?: IContent;
|
|
89
|
+
info: IPageRef;
|
|
90
|
+
/**
|
|
91
|
+
* The pageviewID.
|
|
92
|
+
* @format uuid
|
|
93
|
+
*/
|
|
94
|
+
pageviewId: string;
|
|
95
|
+
referrer?: IPageRef;
|
|
96
|
+
utm?: IUtmTags;
|
|
97
|
+
};
|
|
98
|
+
placement?: IPlacement;
|
|
99
|
+
provider: IProvider;
|
|
100
|
+
/**
|
|
101
|
+
* The schema of the event.
|
|
102
|
+
* @format uri
|
|
103
|
+
* @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
|
|
104
|
+
*/
|
|
105
|
+
schema: string;
|
|
106
|
+
session: ISession;
|
|
107
|
+
target: {
|
|
108
|
+
content?: IContent;
|
|
109
|
+
info: IPageRef;
|
|
110
|
+
};
|
|
111
|
+
time: ITime;
|
|
112
|
+
tracker: ITracker;
|
|
113
|
+
user?: IUser;
|
|
114
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import type { IConsents } from '../templates/IConsents.d.ts';
|
|
4
|
+
import type { IContent } from '../templates/IContent.d.ts';
|
|
5
|
+
import type { IDevice } from '../templates/IDevice.d.ts';
|
|
6
|
+
import type { IEngagement } from '../templates/IEngagement.d.ts';
|
|
7
|
+
import type { IExperiments } from '../templates/IExperiments.d.ts';
|
|
8
|
+
import type { IPageRef } from '../templates/IPageRef.d.ts';
|
|
9
|
+
import type { IProvider } from '../templates/IProvider.d.ts';
|
|
10
|
+
import type { ISession } from '../templates/ISession.d.ts';
|
|
11
|
+
import type { ITime } from '../templates/ITime.d.ts';
|
|
12
|
+
import type { ITracker } from '../templates/ITracker.d.ts';
|
|
13
|
+
import type { IUser } from '../templates/IUser.d.ts';
|
|
14
|
+
import type { IUtmTags } from '../templates/IUtmTags.d.ts';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Interaction with a TvModule element. (Note: currently only used by TVnu.)
|
|
18
|
+
*/
|
|
19
|
+
export interface IEngagementTvModule {
|
|
20
|
+
/**
|
|
21
|
+
* The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
|
|
22
|
+
* @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
|
|
23
|
+
* @example "1.2.3"
|
|
24
|
+
*/
|
|
25
|
+
catalogVersion: string;
|
|
26
|
+
consents: IConsents;
|
|
27
|
+
device: IDevice;
|
|
28
|
+
engagement: IEngagement;
|
|
29
|
+
/**
|
|
30
|
+
* The unique identifier for the event.
|
|
31
|
+
* @format uuid
|
|
32
|
+
*/
|
|
33
|
+
eventId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The type of the event.
|
|
36
|
+
*/
|
|
37
|
+
eventType: 'Engagement';
|
|
38
|
+
experiments?: IExperiments;
|
|
39
|
+
object: {
|
|
40
|
+
/**
|
|
41
|
+
* The size of the component.
|
|
42
|
+
*/
|
|
43
|
+
elementSize?: 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
44
|
+
/**
|
|
45
|
+
* The text of the element.
|
|
46
|
+
*/
|
|
47
|
+
elementText?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The type of UIElement (div, span, a, …).
|
|
50
|
+
*/
|
|
51
|
+
elementType: string;
|
|
52
|
+
/**
|
|
53
|
+
* Action taken on the module: Add module, remove module, change placement of module, etc.
|
|
54
|
+
* @example "moveTop"
|
|
55
|
+
*/
|
|
56
|
+
moduleAction?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Content interacted with in the module: Article teaser text, Title, List Name.
|
|
59
|
+
* @example "Ted Lasso"
|
|
60
|
+
*/
|
|
61
|
+
moduleContent?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Text set as header (or title) for the module.
|
|
64
|
+
* @example "Fotbolls-VM"
|
|
65
|
+
*/
|
|
66
|
+
moduleHeader: string;
|
|
67
|
+
/**
|
|
68
|
+
* Type of TV module users interact with.
|
|
69
|
+
* @example "Editorial"
|
|
70
|
+
*/
|
|
71
|
+
moduleType:
|
|
72
|
+
| 'Channel'
|
|
73
|
+
| 'Sport'
|
|
74
|
+
| 'PlayProvider'
|
|
75
|
+
| 'Editorial'
|
|
76
|
+
| 'ProgramList'
|
|
77
|
+
| 'SportListing'
|
|
78
|
+
| 'PremiereCalendar'
|
|
79
|
+
| 'UserCalendar'
|
|
80
|
+
| 'TrailerList'
|
|
81
|
+
| 'PlayListSet'
|
|
82
|
+
| 'PlayListFiltered'
|
|
83
|
+
| 'PlayUserFiltered';
|
|
84
|
+
/**
|
|
85
|
+
* The name of the component.
|
|
86
|
+
*/
|
|
87
|
+
name: string;
|
|
88
|
+
/**
|
|
89
|
+
* The unique ID for this component.
|
|
90
|
+
*/
|
|
91
|
+
objectId: string;
|
|
92
|
+
/**
|
|
93
|
+
* The unique SDRN for this component.
|
|
94
|
+
*/
|
|
95
|
+
objectSdrn: string;
|
|
96
|
+
/**
|
|
97
|
+
* The type of the object.
|
|
98
|
+
*/
|
|
99
|
+
objectType: 'TvModule';
|
|
100
|
+
};
|
|
101
|
+
page: {
|
|
102
|
+
content?: IContent;
|
|
103
|
+
info: IPageRef;
|
|
104
|
+
/**
|
|
105
|
+
* The pageviewID.
|
|
106
|
+
* @format uuid
|
|
107
|
+
*/
|
|
108
|
+
pageviewId: string;
|
|
109
|
+
referrer?: IPageRef;
|
|
110
|
+
utm?: IUtmTags;
|
|
111
|
+
};
|
|
112
|
+
placement: {
|
|
113
|
+
/**
|
|
114
|
+
* The closest parent container used for traffic attribution. When in doubt use “page”.
|
|
115
|
+
*/
|
|
116
|
+
containerName: string;
|
|
117
|
+
};
|
|
118
|
+
provider: IProvider;
|
|
119
|
+
/**
|
|
120
|
+
* URL to the JSON schema for this event.
|
|
121
|
+
* @format uri
|
|
122
|
+
* @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
|
|
123
|
+
*/
|
|
124
|
+
schema: string;
|
|
125
|
+
session: ISession;
|
|
126
|
+
target?: {
|
|
127
|
+
content?: IContent;
|
|
128
|
+
info?: IPageRef;
|
|
129
|
+
};
|
|
130
|
+
time: ITime;
|
|
131
|
+
tracker: ITracker;
|
|
132
|
+
user?: IUser;
|
|
133
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import type { IConsents } from '../templates/IConsents.d.ts';
|
|
4
|
+
import type { IContent } from '../templates/IContent.d.ts';
|
|
5
|
+
import type { IDevice } from '../templates/IDevice.d.ts';
|
|
6
|
+
import type { IExperiments } from '../templates/IExperiments.d.ts';
|
|
7
|
+
import type { IPageRef } from '../templates/IPageRef.d.ts';
|
|
8
|
+
import type { IProvider } from '../templates/IProvider.d.ts';
|
|
9
|
+
import type { ISession } from '../templates/ISession.d.ts';
|
|
10
|
+
import type { ITime } from '../templates/ITime.d.ts';
|
|
11
|
+
import type { ITracker } from '../templates/ITracker.d.ts';
|
|
12
|
+
import type { IUser } from '../templates/IUser.d.ts';
|
|
13
|
+
import type { IUtmTags } from '../templates/IUtmTags.d.ts';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Interaction with a tv.nu search functionality.
|
|
17
|
+
*/
|
|
18
|
+
export interface IEngagementTvSearch {
|
|
19
|
+
/**
|
|
20
|
+
* The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
|
|
21
|
+
* @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
|
|
22
|
+
* @example "1.2.3"
|
|
23
|
+
*/
|
|
24
|
+
catalogVersion: string;
|
|
25
|
+
consents: IConsents;
|
|
26
|
+
device: IDevice;
|
|
27
|
+
engagement: {
|
|
28
|
+
/**
|
|
29
|
+
* The action the user is performing.
|
|
30
|
+
*/
|
|
31
|
+
action: 'Search' | 'ClickResult';
|
|
32
|
+
/**
|
|
33
|
+
* The name of the UIElement being interacted with.
|
|
34
|
+
*/
|
|
35
|
+
elementName: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The unique identifier for the event.
|
|
39
|
+
* @format uuid
|
|
40
|
+
*/
|
|
41
|
+
eventId: string;
|
|
42
|
+
/**
|
|
43
|
+
* The type of the event.
|
|
44
|
+
*/
|
|
45
|
+
eventType: 'Engagement';
|
|
46
|
+
experiments?: IExperiments;
|
|
47
|
+
object: {
|
|
48
|
+
/**
|
|
49
|
+
* The size of the component.
|
|
50
|
+
*/
|
|
51
|
+
elementSize?: 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
52
|
+
/**
|
|
53
|
+
* The text of the element.
|
|
54
|
+
*/
|
|
55
|
+
elementText?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The type of UIElement (div, span, a, …).
|
|
58
|
+
*/
|
|
59
|
+
elementType: string;
|
|
60
|
+
/**
|
|
61
|
+
* The name of the component.
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
/**
|
|
65
|
+
* The unique ID for this component.
|
|
66
|
+
*/
|
|
67
|
+
objectId: string;
|
|
68
|
+
/**
|
|
69
|
+
* The unique SDRN for this component.
|
|
70
|
+
*/
|
|
71
|
+
objectSdrn: string;
|
|
72
|
+
/**
|
|
73
|
+
* The type of the object.
|
|
74
|
+
*/
|
|
75
|
+
objectType: 'TvSearch';
|
|
76
|
+
/**
|
|
77
|
+
* The clicked result.
|
|
78
|
+
*/
|
|
79
|
+
result?: {
|
|
80
|
+
/**
|
|
81
|
+
* The title of the clicked result.
|
|
82
|
+
*/
|
|
83
|
+
searchItemTitle: string;
|
|
84
|
+
searchResult: {
|
|
85
|
+
resultId: string;
|
|
86
|
+
resultType: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* UUID identifying the search.
|
|
91
|
+
* @format uuid
|
|
92
|
+
*/
|
|
93
|
+
searchId: string;
|
|
94
|
+
/**
|
|
95
|
+
* The search query used by the user.
|
|
96
|
+
*/
|
|
97
|
+
searchQuery: string;
|
|
98
|
+
/**
|
|
99
|
+
* Search results shown to the user.
|
|
100
|
+
*/
|
|
101
|
+
searchResults: {
|
|
102
|
+
resultId: string;
|
|
103
|
+
resultType: string;
|
|
104
|
+
}[];
|
|
105
|
+
/**
|
|
106
|
+
* The name of the company that sponsored the UIElement. Omitted if it was not sponsored.
|
|
107
|
+
*/
|
|
108
|
+
sponsor?: string;
|
|
109
|
+
};
|
|
110
|
+
page: {
|
|
111
|
+
content?: IContent;
|
|
112
|
+
info: IPageRef;
|
|
113
|
+
/**
|
|
114
|
+
* The pageviewID.
|
|
115
|
+
* @format uuid
|
|
116
|
+
*/
|
|
117
|
+
pageviewId: string;
|
|
118
|
+
referrer?: IPageRef;
|
|
119
|
+
utm?: IUtmTags;
|
|
120
|
+
};
|
|
121
|
+
placement: {
|
|
122
|
+
/**
|
|
123
|
+
* The closest parent container used for traffic attribution. When in doubt use “page”.
|
|
124
|
+
*/
|
|
125
|
+
containerName: string;
|
|
126
|
+
};
|
|
127
|
+
provider: IProvider;
|
|
128
|
+
/**
|
|
129
|
+
* URL to the JSON schema for this event.
|
|
130
|
+
* @format uri
|
|
131
|
+
* @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
|
|
132
|
+
*/
|
|
133
|
+
schema: string;
|
|
134
|
+
session: ISession;
|
|
135
|
+
target?: {
|
|
136
|
+
content?: IContent;
|
|
137
|
+
info?: IPageRef;
|
|
138
|
+
};
|
|
139
|
+
time: ITime;
|
|
140
|
+
tracker: ITracker;
|
|
141
|
+
user?: IUser;
|
|
142
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import type { IConsents } from '../templates/IConsents.d.ts';
|
|
4
|
+
import type { IContent } from '../templates/IContent.d.ts';
|
|
5
|
+
import type { IDevice } from '../templates/IDevice.d.ts';
|
|
6
|
+
import type { IEngagement } from '../templates/IEngagement.d.ts';
|
|
7
|
+
import type { IExperiments } from '../templates/IExperiments.d.ts';
|
|
8
|
+
import type { IPageRef } from '../templates/IPageRef.d.ts';
|
|
9
|
+
import type { IProvider } from '../templates/IProvider.d.ts';
|
|
10
|
+
import type { ISession } from '../templates/ISession.d.ts';
|
|
11
|
+
import type { ITime } from '../templates/ITime.d.ts';
|
|
12
|
+
import type { ITracker } from '../templates/ITracker.d.ts';
|
|
13
|
+
import type { IUser } from '../templates/IUser.d.ts';
|
|
14
|
+
import type { IUtmTags } from '../templates/IUtmTags.d.ts';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Interaction with a UIElement.
|
|
18
|
+
*/
|
|
19
|
+
export interface IEngagementUIElement {
|
|
20
|
+
/**
|
|
21
|
+
* The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
|
|
22
|
+
* @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
|
|
23
|
+
* @example "1.2.3"
|
|
24
|
+
*/
|
|
25
|
+
catalogVersion: string;
|
|
26
|
+
consents: IConsents;
|
|
27
|
+
device: IDevice;
|
|
28
|
+
engagement: IEngagement;
|
|
29
|
+
/**
|
|
30
|
+
* Event ID
|
|
31
|
+
* @format uuid
|
|
32
|
+
*/
|
|
33
|
+
eventId: string;
|
|
34
|
+
/**
|
|
35
|
+
* The type of event.
|
|
36
|
+
*/
|
|
37
|
+
eventType: 'Engagement';
|
|
38
|
+
experiments?: IExperiments;
|
|
39
|
+
object: {
|
|
40
|
+
/**
|
|
41
|
+
* The size of the component.
|
|
42
|
+
*/
|
|
43
|
+
elementSize?: 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
44
|
+
/**
|
|
45
|
+
* The text of the element.
|
|
46
|
+
*/
|
|
47
|
+
elementText?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The type of UIElement (div, span, a, …).
|
|
50
|
+
*/
|
|
51
|
+
elementType: string;
|
|
52
|
+
/**
|
|
53
|
+
* The name of the component.
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
* The unique ID for this component.
|
|
58
|
+
*/
|
|
59
|
+
objectId: string;
|
|
60
|
+
/**
|
|
61
|
+
* The unique SDRN for this component.
|
|
62
|
+
*/
|
|
63
|
+
objectSdrn: string;
|
|
64
|
+
/**
|
|
65
|
+
* The type of the component.
|
|
66
|
+
*/
|
|
67
|
+
objectType: 'UIElement';
|
|
68
|
+
/**
|
|
69
|
+
* The name of the company that sponsored the UIElement. Omitted if it was not sponsored.
|
|
70
|
+
*/
|
|
71
|
+
sponsor?: string;
|
|
72
|
+
};
|
|
73
|
+
page: {
|
|
74
|
+
content?: IContent;
|
|
75
|
+
info: IPageRef;
|
|
76
|
+
/**
|
|
77
|
+
* The pageviewID.
|
|
78
|
+
* @format uuid
|
|
79
|
+
*/
|
|
80
|
+
pageviewId: string;
|
|
81
|
+
referrer?: IPageRef;
|
|
82
|
+
utm?: IUtmTags;
|
|
83
|
+
};
|
|
84
|
+
placement: {
|
|
85
|
+
/**
|
|
86
|
+
* The closest parent container used for traffic attribution. When in doubt use “page”.
|
|
87
|
+
*/
|
|
88
|
+
containerName: string;
|
|
89
|
+
};
|
|
90
|
+
provider: IProvider;
|
|
91
|
+
/**
|
|
92
|
+
* The schema of the event.
|
|
93
|
+
* @format uri
|
|
94
|
+
* @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
|
|
95
|
+
*/
|
|
96
|
+
schema: string;
|
|
97
|
+
session: ISession;
|
|
98
|
+
target?: {
|
|
99
|
+
content?: IContent;
|
|
100
|
+
info?: IPageRef;
|
|
101
|
+
};
|
|
102
|
+
time: ITime;
|
|
103
|
+
tracker: ITracker;
|
|
104
|
+
user?: IUser;
|
|
105
|
+
}
|