@schibsted/pulse-sdk 8.0.0-rc.2 → 8.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Tracker.js +578 -303
- 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 -5
- 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/tpaas-builders/builders/catalogVersion.js +9 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/device.js +11 -5
- 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 -2
- 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/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/session.js +23 -20
- 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 -3
- package/dist/cjs/tpaas-builders/builders.js +339 -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/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/tpaas-builders}/types.js +0 -1
- package/{node_modules/@schibsted/tpaas-schemas/dist/cjs → dist/cjs/tpaas-schemas}/constants.js +193 -155
- 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 -6
- 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 +510 -235
- 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 +2 -1
- 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/tpaas-builders/builders/catalogVersion.js +6 -0
- package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/device.js +10 -4
- 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 +1 -1
- 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/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/session.js +18 -15
- 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 +2 -2
- package/dist/ejs/tpaas-builders/builders.js +271 -0
- package/dist/ejs/tpaas-builders/guards.js +4 -0
- package/dist/ejs/tpaas-builders/index.js +2 -0
- package/{node_modules/@schibsted/tpaas-schemas/dist/ejs → dist/ejs/tpaas-schemas}/constants.js +191 -153
- 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 -6
- 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 +178 -77
- 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 -0
- 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/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 +6 -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 +15 -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 +6 -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 +3 -0
- package/dist/types/tpaas-builders/types.d.ts +36 -0
- package/dist/types/tpaas-schemas/constants.d.ts +478 -0
- package/dist/types/tpaas-schemas/index.d.ts +5 -0
- package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +132 -0
- package/dist/types/tpaas-schemas/types/schemas/IAnonymousViewUIElement.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 +209 -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 +130 -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 +234 -0
- package/dist/types/tpaas-schemas/types/schemas/IEngagementVideoAd.d.ts +145 -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 +94 -0
- package/dist/types/tpaas-schemas/types/schemas/ILoadAd.d.ts +119 -0
- package/dist/types/tpaas-schemas/types/schemas/IRequestAd.d.ts +95 -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 +64 -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 +19 -13
- 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.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/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-builders/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,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Location data populated by the Apps.
|
|
10
|
+
*/
|
|
11
|
+
export interface ILocation {
|
|
12
|
+
accuracy: number;
|
|
13
|
+
/**
|
|
14
|
+
* @pattern ^-?\d+(\.\d{1,3})?$
|
|
15
|
+
*/
|
|
16
|
+
latitude: string;
|
|
17
|
+
/**
|
|
18
|
+
* @pattern ^-?\d+(\.\d{1,3})?$
|
|
19
|
+
*/
|
|
20
|
+
longitude: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Long-lived performance metrics.
|
|
10
|
+
*/
|
|
11
|
+
export type IMetrics = {
|
|
12
|
+
/**
|
|
13
|
+
* A grouping key for the metric, e.g. curate’s blendId.
|
|
14
|
+
* @example "front-ranker-v7"
|
|
15
|
+
*/
|
|
16
|
+
key: string;
|
|
17
|
+
/**
|
|
18
|
+
* Name of the metric, e.g., "topKScore".
|
|
19
|
+
* @example "topKScore"
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
* Source of the metric, e.g., "Curate".
|
|
24
|
+
* @example "curate"
|
|
25
|
+
*/
|
|
26
|
+
source: string;
|
|
27
|
+
/**
|
|
28
|
+
* The value of the template.
|
|
29
|
+
* @example 42
|
|
30
|
+
*/
|
|
31
|
+
value: number;
|
|
32
|
+
}[];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A reference to a page.
|
|
10
|
+
*/
|
|
11
|
+
export interface IPageRef {
|
|
12
|
+
/**
|
|
13
|
+
* The unique ID of the referred page.
|
|
14
|
+
*/
|
|
15
|
+
pageId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The object type of the base pageview.
|
|
18
|
+
*/
|
|
19
|
+
pageType?:
|
|
20
|
+
| 'Article'
|
|
21
|
+
| 'AudioPage'
|
|
22
|
+
| 'Error'
|
|
23
|
+
| 'Frontpage'
|
|
24
|
+
| 'HealthPage'
|
|
25
|
+
| 'Landingpage'
|
|
26
|
+
| 'Listing'
|
|
27
|
+
| 'LockedArticle'
|
|
28
|
+
| 'LockedAudioPage'
|
|
29
|
+
| 'LockedVideoPage'
|
|
30
|
+
| 'Login'
|
|
31
|
+
| 'Page'
|
|
32
|
+
| 'LockedPage'
|
|
33
|
+
| 'SchoolPage'
|
|
34
|
+
| 'SportsPage'
|
|
35
|
+
| 'Title'
|
|
36
|
+
| 'VideoPage'
|
|
37
|
+
| 'Weather'
|
|
38
|
+
| 'AppWidget'
|
|
39
|
+
| 'Notification'
|
|
40
|
+
| 'Purchase';
|
|
41
|
+
/**
|
|
42
|
+
* The URL of the page.
|
|
43
|
+
* @format uri
|
|
44
|
+
*/
|
|
45
|
+
url?: string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* It describes where a teaser was shown on a page and in what structural context at the moment an Impression or Click event was fired.
|
|
10
|
+
*/
|
|
11
|
+
export interface IPlacement {
|
|
12
|
+
columnName: 'main' | 'aside';
|
|
13
|
+
/**
|
|
14
|
+
* The closest parent container used for traffic attribution. When in doubt use “page”.
|
|
15
|
+
*/
|
|
16
|
+
containerName: string;
|
|
17
|
+
/**
|
|
18
|
+
* The context in which the recommendation was made.
|
|
19
|
+
*/
|
|
20
|
+
curateContext?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Indicator if the player was visible at pageload (“above”) or if the user had to scroll to it (“below”).
|
|
23
|
+
*/
|
|
24
|
+
foldPosition: 'Above' | 'Below' | 'Unknown';
|
|
25
|
+
positionInBundle?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The parent’s primary direction along which components are laid out.
|
|
28
|
+
*/
|
|
29
|
+
primaryAxis: 'Horizontal' | 'Vertical';
|
|
30
|
+
/**
|
|
31
|
+
* The position of this component along the primary axis.
|
|
32
|
+
* @minimum 1
|
|
33
|
+
*/
|
|
34
|
+
primaryPosition: number;
|
|
35
|
+
/**
|
|
36
|
+
* The position of this component along the secondary axis.
|
|
37
|
+
* @minimum 1
|
|
38
|
+
*/
|
|
39
|
+
secondaryPosition: number;
|
|
40
|
+
/**
|
|
41
|
+
* The source of the impression/engagement.
|
|
42
|
+
* @example "bundle"
|
|
43
|
+
*/
|
|
44
|
+
source?: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Information about the team tracking the event.
|
|
10
|
+
*/
|
|
11
|
+
export interface IProvider {
|
|
12
|
+
/**
|
|
13
|
+
* The equivalent of .product for Apps
|
|
14
|
+
* @pattern ^[a-zA-Z0-9-_]+$
|
|
15
|
+
*/
|
|
16
|
+
appProduct?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The equivalent of .version for Apps
|
|
19
|
+
*/
|
|
20
|
+
appVersion?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the component. Used to contact owners of the event. This should be a recognized name within the product.
|
|
23
|
+
* @pattern ^[a-zA-Z0-9-_]+$
|
|
24
|
+
* @example "liveWidget"
|
|
25
|
+
*/
|
|
26
|
+
component?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The version of the component used.
|
|
29
|
+
* @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
|
|
30
|
+
* @example "2.3.4"
|
|
31
|
+
*/
|
|
32
|
+
componentVersion?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The group or owner of the provider, used for aggregates and benchmark reports.
|
|
35
|
+
* @pattern ^[a-z0-9-:]+$
|
|
36
|
+
* @example "schibsted:vg"
|
|
37
|
+
*/
|
|
38
|
+
group?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The name of the provider, used for readable reports and contact info.
|
|
41
|
+
* @pattern ^[a-z0-9-]+$
|
|
42
|
+
* @example "vestnytt"
|
|
43
|
+
*/
|
|
44
|
+
name?: string;
|
|
45
|
+
/**
|
|
46
|
+
* The name of the product. Used to contact owners of the event. This should be a recognized name within the organization of the provider.
|
|
47
|
+
* @pattern ^[a-zA-Z0-9-_]+$
|
|
48
|
+
* @example "Feeds"
|
|
49
|
+
*/
|
|
50
|
+
product?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The providerID.
|
|
53
|
+
* @pattern ^[a-z][a-z0-9-]+$
|
|
54
|
+
* @example "aftonbladet"
|
|
55
|
+
*/
|
|
56
|
+
providerId: string;
|
|
57
|
+
/**
|
|
58
|
+
* The provider SDRN.
|
|
59
|
+
* @pattern ^sdrn:schibsted:client:[a-z][a-z0-9-]+$
|
|
60
|
+
* @example "sdrn:schibsted:client:aftonbladet"
|
|
61
|
+
*/
|
|
62
|
+
providerSdrn: string;
|
|
63
|
+
/**
|
|
64
|
+
* The deployment stage of the event.
|
|
65
|
+
*/
|
|
66
|
+
stage: 'Dev' | 'Pre' | 'Pro';
|
|
67
|
+
/**
|
|
68
|
+
* Version of the product.
|
|
69
|
+
* @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
|
|
70
|
+
* @example "2.3.4"
|
|
71
|
+
*/
|
|
72
|
+
version?: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Aftenposten Skole/JuniorSkole custom tracking properties.
|
|
10
|
+
*/
|
|
11
|
+
export interface ISchool {
|
|
12
|
+
/**
|
|
13
|
+
* The content categories associated with an article.
|
|
14
|
+
*/
|
|
15
|
+
categories?: string[];
|
|
16
|
+
/**
|
|
17
|
+
* The content types associated with an article or search filter.
|
|
18
|
+
*/
|
|
19
|
+
contentTypes?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* True if the event happened in the student-facing view.
|
|
22
|
+
*/
|
|
23
|
+
isStudentView?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The total number of listed items.
|
|
26
|
+
* @minimum 0
|
|
27
|
+
*/
|
|
28
|
+
itemsTotal?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The selected article or content language.
|
|
31
|
+
*/
|
|
32
|
+
language?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The identifier of the user's school municipality.
|
|
35
|
+
*/
|
|
36
|
+
municipalityId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The name of the user's school municipality.
|
|
39
|
+
*/
|
|
40
|
+
municipalityName?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The total number of search results.
|
|
43
|
+
* @minimum 0
|
|
44
|
+
*/
|
|
45
|
+
resultsTotal?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The role of the authenticated user.
|
|
48
|
+
*/
|
|
49
|
+
role?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The identifier of the user's school.
|
|
52
|
+
*/
|
|
53
|
+
schoolId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the user's school.
|
|
56
|
+
*/
|
|
57
|
+
schoolName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The content subcategories associated with an article.
|
|
60
|
+
*/
|
|
61
|
+
subcategories?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* The article, card, or component template.
|
|
64
|
+
*/
|
|
65
|
+
template?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The article, element, or component title.
|
|
68
|
+
*/
|
|
69
|
+
title?: string;
|
|
70
|
+
/**
|
|
71
|
+
* The tracked listing or page view.
|
|
72
|
+
*/
|
|
73
|
+
view?: string;
|
|
74
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Information about the current session.
|
|
10
|
+
*/
|
|
11
|
+
export interface ISession {
|
|
12
|
+
/**
|
|
13
|
+
* True if the event is the first to fire in a this session.
|
|
14
|
+
*/
|
|
15
|
+
isFirstEvent: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The sessionID.
|
|
18
|
+
* @pattern ^[0-9a-f-]+$
|
|
19
|
+
* @example "079bc17a-4ee8-42ab-a29f-2fbba4cd403f"
|
|
20
|
+
*/
|
|
21
|
+
sessionId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Timestamp of when the session started. (UTC)
|
|
24
|
+
* @format date-time
|
|
25
|
+
*/
|
|
26
|
+
startTime: string;
|
|
27
|
+
/**
|
|
28
|
+
* The session ID on a partner domain (set via query parameter), else the current session ID. This value is used to connect cross-domain events such as behavior events to purchase events.
|
|
29
|
+
* @pattern ^[0-9a-f-]+$
|
|
30
|
+
* @example "079bc17a-4ee8-42ab-a29f-2fbba4cd403f"
|
|
31
|
+
*/
|
|
32
|
+
xDomainId?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface ISports {
|
|
9
|
+
/**
|
|
10
|
+
* Unique ID of the person.
|
|
11
|
+
*/
|
|
12
|
+
personId?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Name of the person.
|
|
15
|
+
*/
|
|
16
|
+
personName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The unique ID of the predictions game league.
|
|
19
|
+
*/
|
|
20
|
+
predictionsGameLeagueId?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The unique ID of the predictions game season.
|
|
23
|
+
*/
|
|
24
|
+
predictionsGameSeasonId?: number;
|
|
25
|
+
/**
|
|
26
|
+
* True if the user is a member of the predictions game league.
|
|
27
|
+
*/
|
|
28
|
+
predictionsGameUserIsMemberOfThisLeague?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Specify the type of journalistic coverage within the sport event.
|
|
31
|
+
*/
|
|
32
|
+
sportEventCoverage?: 'Manual' | 'SemiAutomatic' | 'Automatic';
|
|
33
|
+
/**
|
|
34
|
+
* Date (yyyy-mm-dd) of the sport event.
|
|
35
|
+
* @format date
|
|
36
|
+
*/
|
|
37
|
+
sportEventDate?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Timestamp of when the sport event starts.
|
|
40
|
+
* @format date-time
|
|
41
|
+
*/
|
|
42
|
+
sportEventDatetime?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Unique ID of the sport event.
|
|
45
|
+
*/
|
|
46
|
+
sportEventId?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the sport event.
|
|
49
|
+
*/
|
|
50
|
+
sportEventName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Unique ID of the teams participating in the event.
|
|
53
|
+
*/
|
|
54
|
+
sportEventParticipantIds?: number[];
|
|
55
|
+
/**
|
|
56
|
+
* Names of the teams participating in the event.
|
|
57
|
+
*/
|
|
58
|
+
sportEventParticipantNames?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* Status of the sport event.
|
|
61
|
+
*/
|
|
62
|
+
sportEventStatus?:
|
|
63
|
+
| 'NotStarted'
|
|
64
|
+
| 'InProgress'
|
|
65
|
+
| 'Finished'
|
|
66
|
+
| 'Postponed'
|
|
67
|
+
| 'Canceled'
|
|
68
|
+
| 'StartDelayed'
|
|
69
|
+
| 'Interrupted'
|
|
70
|
+
| 'Abandoned';
|
|
71
|
+
/**
|
|
72
|
+
* Unique ID of the team.
|
|
73
|
+
*/
|
|
74
|
+
teamId?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Name of the team.
|
|
77
|
+
* @example "Manchester United"
|
|
78
|
+
*/
|
|
79
|
+
teamName?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Unique ID of the tournament.
|
|
82
|
+
*/
|
|
83
|
+
tournamentId?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Name of the tournament.
|
|
86
|
+
* @example "Premier League"
|
|
87
|
+
*/
|
|
88
|
+
tournamentName?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Unique ID of the tournament season.
|
|
91
|
+
*/
|
|
92
|
+
tournamentSeasonId?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the tournament season.
|
|
95
|
+
* @example "Premier League 2025/2026"
|
|
96
|
+
*/
|
|
97
|
+
tournamentSeasonName?: string;
|
|
98
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Track sports feature usage for a user in sports schemas.
|
|
10
|
+
*/
|
|
11
|
+
export interface ISportsUserFeatures {
|
|
12
|
+
/**
|
|
13
|
+
* Describe the user's selected theme preference.
|
|
14
|
+
*/
|
|
15
|
+
colorScheme?: 'Light' | 'Dark' | 'System' | 'Other';
|
|
16
|
+
/**
|
|
17
|
+
* True if the user has marked at least one person as a favorite.
|
|
18
|
+
*/
|
|
19
|
+
hasFavouritePerson?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* True if the user has marked at least one team as a favorite.
|
|
22
|
+
*/
|
|
23
|
+
hasFavouriteTeam?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* True if the user has marked at least one tournament as a favorite.
|
|
26
|
+
*/
|
|
27
|
+
hasFavouriteTournament?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Timings of different stages of the event lifecycle.
|
|
10
|
+
*/
|
|
11
|
+
export interface ITime {
|
|
12
|
+
/**
|
|
13
|
+
* Timestamp at event creation (in UTC).
|
|
14
|
+
* @format date-time
|
|
15
|
+
*/
|
|
16
|
+
createdAt: string;
|
|
17
|
+
/**
|
|
18
|
+
* Estimate of actual time of event creation. (UTC)
|
|
19
|
+
* @format date-time
|
|
20
|
+
*/
|
|
21
|
+
publishedAt?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Timestamp at event re-publish. (UTC)
|
|
24
|
+
* @format date-time
|
|
25
|
+
*/
|
|
26
|
+
republishedAt?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Timestamp at event transmission. (UTC, client-side)
|
|
29
|
+
* @format date-time
|
|
30
|
+
*/
|
|
31
|
+
sentAt: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Information about the SDK used for tracking.
|
|
10
|
+
*/
|
|
11
|
+
export interface ITracker {
|
|
12
|
+
/**
|
|
13
|
+
* True if the event was produced in webview and intercepted by a mobile tracker.
|
|
14
|
+
*/
|
|
15
|
+
isHybrid: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The version of the proxy.
|
|
18
|
+
* @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
|
|
19
|
+
* @example "2.3.4"
|
|
20
|
+
*/
|
|
21
|
+
proxyVersion?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Allows apps to pick up collector destination correctly.
|
|
24
|
+
*/
|
|
25
|
+
routingStage: 'Dev' | 'Pre' | 'Pro';
|
|
26
|
+
/**
|
|
27
|
+
* The SDK being used. If no SDK was used, use “backend”.
|
|
28
|
+
* @example "JS"
|
|
29
|
+
*/
|
|
30
|
+
trackerType: 'JS' | 'IOS' | 'Android' | 'Backend';
|
|
31
|
+
/**
|
|
32
|
+
* The version of the tracker.
|
|
33
|
+
* @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
|
|
34
|
+
* @example "2.3.4"
|
|
35
|
+
*/
|
|
36
|
+
version: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Information about the user.
|
|
10
|
+
*/
|
|
11
|
+
export interface IUser {
|
|
12
|
+
/**
|
|
13
|
+
* True if the user has an active subscription
|
|
14
|
+
* @example true
|
|
15
|
+
*/
|
|
16
|
+
hasAnySubscription: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The region of primary belonging
|
|
19
|
+
* @example "Norway"
|
|
20
|
+
*/
|
|
21
|
+
region?: 'Norway' | 'Sweden' | 'Finland';
|
|
22
|
+
/**
|
|
23
|
+
* The user ID.
|
|
24
|
+
* @pattern ^[a-zA-Z0-9-]+$
|
|
25
|
+
* @example "12345678"
|
|
26
|
+
*/
|
|
27
|
+
userId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The user SDRN.
|
|
30
|
+
* @pattern ^sdrn:[a-z.-]+:user:[a-zA-Z0-9-]+$
|
|
31
|
+
* @example "sdrn:schibsted.com:user:12345678"
|
|
32
|
+
*/
|
|
33
|
+
userSdrn: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A block of UTM tags used for origin/referrer tracking and attribution.
|
|
10
|
+
*/
|
|
11
|
+
export interface IUtmTags {
|
|
12
|
+
/**
|
|
13
|
+
* The marketing campaign that brought the user to this page, if present.
|
|
14
|
+
* @example "fotball-league-25"
|
|
15
|
+
*/
|
|
16
|
+
utmCampaign?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The UIElement a user engaged with to be sent here.
|
|
19
|
+
* @example "viewNowButton"
|
|
20
|
+
*/
|
|
21
|
+
utmContent?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The channel that provided the traffic.
|
|
24
|
+
* @example "Social"
|
|
25
|
+
*/
|
|
26
|
+
utmMedium?: 'Organic' | 'Cpc' | 'Email' | 'Social' | 'Referral' | 'Display' | 'Affiliate' | 'Video' | 'Internal';
|
|
27
|
+
/**
|
|
28
|
+
* The domain the user came from.
|
|
29
|
+
* @example "https://vg.no"
|
|
30
|
+
*/
|
|
31
|
+
utmSource?: string;
|
|
32
|
+
/**
|
|
33
|
+
* If paid medium: The keywords triggering the ad. Else: The keywords used by the search engine.
|
|
34
|
+
* @pattern ^[^+]+(?:\+[^+]+)*$
|
|
35
|
+
* @example "fotball+now+free"
|
|
36
|
+
*/
|
|
37
|
+
utmTerms?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type { IBranded } from './IBranded.d.ts';
|
|
2
|
+
export type { IConsents } from './IConsents.d.ts';
|
|
3
|
+
export type { IContent } from './IContent.d.ts';
|
|
4
|
+
export type { IDevice } from './IDevice.d.ts';
|
|
5
|
+
export type { IEngagement } from './IEngagement.d.ts';
|
|
6
|
+
export type { IExperiments } from './IExperiments.d.ts';
|
|
7
|
+
export type { IHealthFood } from './IHealthFood.d.ts';
|
|
8
|
+
export type { IHealthOrigin } from './IHealthOrigin.d.ts';
|
|
9
|
+
export type { IHealthPhysicalActivity } from './IHealthPhysicalActivity.d.ts';
|
|
10
|
+
export type { IHealthTraining } from './IHealthTraining.d.ts';
|
|
11
|
+
export type { IHealthUserData } from './IHealthUserData.d.ts';
|
|
12
|
+
export type { ILeave } from './ILeave.d.ts';
|
|
13
|
+
export type { ILeaveAudio } from './ILeaveAudio.d.ts';
|
|
14
|
+
export type { ILeaveStories } from './ILeaveStories.d.ts';
|
|
15
|
+
export type { ILocation } from './ILocation.d.ts';
|
|
16
|
+
export type { IMetrics } from './IMetrics.d.ts';
|
|
17
|
+
export type { IPageRef } from './IPageRef.d.ts';
|
|
18
|
+
export type { IPlacement } from './IPlacement.d.ts';
|
|
19
|
+
export type { IProvider } from './IProvider.d.ts';
|
|
20
|
+
export type { ISchool } from './ISchool.d.ts';
|
|
21
|
+
export type { ISession } from './ISession.d.ts';
|
|
22
|
+
export type { ISports } from './ISports.d.ts';
|
|
23
|
+
export type { ISportsUserFeatures } from './ISportsUserFeatures.d.ts';
|
|
24
|
+
export type { ITime } from './ITime.d.ts';
|
|
25
|
+
export type { ITracker } from './ITracker.d.ts';
|
|
26
|
+
export type { IUser } from './IUser.d.ts';
|
|
27
|
+
export type { IUtmTags } from './IUtmTags.d.ts';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ITpaasEvent } from './types/ITpaasEvent.d.ts';
|
|
2
|
+
import type { IAnonymousViewUIElement, ICompletedHealthAction, IEngagementAd, IEngagementAffiliate, IEngagementAudio, IEngagementForm, IEngagementHealthUIElement, IEngagementOffer, IEngagementSchoolUIElement, IEngagementSportsUIElement, IEngagementTeaser, IEngagementTvModule, IEngagementTvSearch, IEngagementUIElement, IEngagementVideo, IEngagementVideoAd, IEngagementWidget, IImpressionAd, IImpressionAdSlot, IImpressionAffiliate, IImpressionForm, IImpressionHealthUIElement, IImpressionOffer, IImpressionPlayer, IImpressionSchoolUIElement, IImpressionSportsUIElement, IImpressionTeaser, IImpressionUIElement, IImpressionWidget, ILeaveAudioPage, ILeaveError, ILeaveFrontpage, ILeaveLandingpage, ILeaveListing, ILeaveLockedAudioPage, ILeaveLockedPage, ILeaveLockedVideoPage, ILeavePage, ILeaveSchoolPage, ILeaveSportsPage, ILeaveVideoPage, ILeaveWeather, ILoadAd, IRequestAd, IViewAudioPage, IViewError, IViewFrontpage, IViewHealthPage, IViewLandingpage, IViewListing, IViewLockedAudioPage, IViewLockedPage, IViewLockedVideoPage, IViewPage, IViewSchoolPage, IViewSportsPage, IViewTitle, IViewVideoPage, IViewWeather } from './types/schemas/index.d.ts';
|
|
3
|
+
export type OmittedProperties = 'user' | 'eventId' | 'consents' | 'device' | 'time' | 'tracker' | 'session' | 'eventType' | 'schema' | 'object.objectType' | 'isAnonymous' | 'provider' | 'page.pageviewId' | 'page.utm' | 'page.info' | 'page.sportName' | 'page.sportSubview' | 'page.sportView' | 'page.sports' | 'catalogVersion';
|
|
4
|
+
export type TpaasSchemasWithNavigationType = Extract<ITpaasEvent, {
|
|
5
|
+
page: {
|
|
6
|
+
navigationType?: string;
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
export type NavigationType = Exclude<TpaasSchemasWithNavigationType['page']['navigationType'], 'DeepLink' | 'Push' | 'Swipe'>;
|
|
10
|
+
export type DeepOmit<T, K extends string> = T extends readonly unknown[] ? T : T extends object ? {
|
|
11
|
+
[P in keyof T as P extends K ? never : P]: DeepOmit<T[P], K extends `${Exclude<P, symbol>}.${infer R}` ? R : never>;
|
|
12
|
+
} extends infer Result ? {
|
|
13
|
+
[P in keyof Result as Result[P] extends Record<string, never> ? never : P]: Result[P];
|
|
14
|
+
} : never : T;
|
|
15
|
+
type OptionalNavigationType<T> = T extends {
|
|
16
|
+
page: {
|
|
17
|
+
navigationType: infer N;
|
|
18
|
+
};
|
|
19
|
+
} ? Omit<T, 'page'> & {
|
|
20
|
+
page: Omit<T['page'], 'navigationType'> & {
|
|
21
|
+
navigationType?: N;
|
|
22
|
+
};
|
|
23
|
+
} : T extends {
|
|
24
|
+
page?: {
|
|
25
|
+
navigationType: infer N;
|
|
26
|
+
};
|
|
27
|
+
} ? Omit<T, 'page'> & {
|
|
28
|
+
page?: Omit<NonNullable<T['page']>, 'navigationType'> & {
|
|
29
|
+
navigationType?: N;
|
|
30
|
+
};
|
|
31
|
+
} : T;
|
|
32
|
+
type WithOptionalPage<T> = T extends TpaasOptionalPageSchemas ? Omit<T, 'page'> & {
|
|
33
|
+
page?: T['page'];
|
|
34
|
+
} : T;
|
|
35
|
+
type WithOmittedReferrer<T> = T extends Exclude<ITpaasEvent, {
|
|
36
|
+
eventType: 'View';
|
|
37
|
+
}> ? Omit<T, 'page'> & {
|
|
38
|
+
page: Omit<T['page'], 'referrer'>;
|
|
39
|
+
} : T;
|
|
40
|
+
export type TpaasOptionalPageSchemas = IAnonymousViewUIElement | ICompletedHealthAction | IEngagementAd | IEngagementAffiliate | IEngagementAudio | IEngagementForm | IEngagementHealthUIElement | IEngagementOffer | IEngagementSchoolUIElement | IEngagementSportsUIElement | IEngagementTeaser | IEngagementTvModule | IEngagementTvSearch | IEngagementUIElement | IEngagementVideo | IEngagementVideoAd | IEngagementWidget | IImpressionAd | IImpressionAdSlot | IImpressionAffiliate | IImpressionForm | IImpressionHealthUIElement | IImpressionOffer | IImpressionPlayer | IImpressionSchoolUIElement | IImpressionSportsUIElement | IImpressionTeaser | IImpressionUIElement | IImpressionWidget | ILeaveAudioPage | ILeaveError | ILeaveFrontpage | ILeaveLandingpage | ILeaveListing | ILeaveLockedAudioPage | ILeaveLockedPage | ILeaveLockedVideoPage | ILeavePage | ILeaveSchoolPage | ILeaveSportsPage | ILeaveVideoPage | ILeaveWeather | ILoadAd | IRequestAd | IViewAudioPage | IViewError | IViewFrontpage | IViewHealthPage | IViewLandingpage | IViewListing | IViewLockedAudioPage | IViewLockedPage | IViewLockedVideoPage | IViewPage | IViewSchoolPage | IViewSportsPage | IViewTitle | IViewVideoPage | IViewWeather;
|
|
41
|
+
export type InputParams<T extends ITpaasEvent> = DeepOmit<OptionalNavigationType<WithOptionalPage<WithOmittedReferrer<T>>>, OmittedProperties>;
|
|
42
|
+
export {};
|