@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.
Files changed (390) hide show
  1. package/dist/cjs/Tracker.js +578 -303
  2. package/dist/cjs/app-integration.js +3 -3
  3. package/dist/cjs/builders/actor.js +6 -6
  4. package/dist/cjs/builders/consents.js +8 -8
  5. package/dist/cjs/builders/device-browser.js +8 -8
  6. package/dist/cjs/builders/device-node.js +3 -3
  7. package/dist/cjs/builders/events-anonymous-node.js +3 -3
  8. package/dist/cjs/builders/events-node.js +7 -7
  9. package/dist/cjs/builders/experimentMetadata.js +2 -2
  10. package/dist/cjs/builders/experiments.js +1 -0
  11. package/dist/cjs/builders/objects/objects-anonymous-browser.js +2 -2
  12. package/dist/cjs/builders/objects/objects-anonymous-node.js +9 -9
  13. package/dist/cjs/builders/objects/objects-browser.js +2 -2
  14. package/dist/cjs/builders/objects/objects-node.js +10 -10
  15. package/dist/cjs/builders/objects/utils.js +3 -3
  16. package/dist/cjs/builders/origin-browser.js +2 -2
  17. package/dist/cjs/builders/origin-node.js +4 -4
  18. package/dist/cjs/builders/session-browser.js +6 -5
  19. package/dist/cjs/cis-sync/cis-browser.js +219 -0
  20. package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/cis-sync}/cis.js +0 -1
  21. package/dist/cjs/cis-sync/eventEmitter.js +37 -0
  22. package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/cis-sync}/index.js +0 -1
  23. package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/cis-sync}/pulse-cookie.js +53 -63
  24. package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/cis-sync}/storage/pulseStorage.js +28 -21
  25. package/dist/cjs/cis-sync/storage/storage.js +24 -0
  26. package/dist/cjs/createPulseTracker.js +4 -4
  27. package/dist/cjs/identity/actor.js +20 -8
  28. package/dist/cjs/identity/advertising.js +1 -1
  29. package/dist/cjs/identity/cis.js +7 -6
  30. package/dist/cjs/index.js +3 -3
  31. package/dist/cjs/leaveTracking/index.js +10 -10
  32. package/dist/cjs/leaveTrackingTpaas/constants.js +2 -7
  33. package/dist/cjs/leaveTrackingTpaas/index.js +70 -46
  34. package/dist/cjs/network-browser.js +3 -3
  35. package/dist/cjs/remoteConfig/index.js +5 -5
  36. package/dist/cjs/tpaas-builders/builders/catalogVersion.js +9 -0
  37. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/device.js +11 -5
  38. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/navigationType.js +2 -3
  39. package/dist/cjs/tpaas-builders/builders/pageContent.js +7 -0
  40. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/pageInfo.js +2 -2
  41. package/dist/cjs/tpaas-builders/builders/pageSports.js +7 -0
  42. package/dist/cjs/tpaas-builders/builders/provider.js +19 -0
  43. package/dist/cjs/tpaas-builders/builders/referrer.js +17 -0
  44. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/session.js +23 -20
  45. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/trackerBuilder.js +2 -3
  46. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/user.js +1 -1
  47. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/utm.js +3 -3
  48. package/dist/cjs/tpaas-builders/builders.js +339 -0
  49. package/dist/cjs/tpaas-builders/guards.js +7 -0
  50. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/index.js +3 -0
  51. package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/tpaas-builders}/types.js +0 -1
  52. package/{node_modules/@schibsted/tpaas-schemas/dist/cjs → dist/cjs/tpaas-schemas}/constants.js +193 -155
  53. package/{node_modules/@schibsted/tpaas-schemas/dist/cjs → dist/cjs/tpaas-schemas}/index.js +1 -0
  54. package/dist/cjs/tpaas-schemas/types.js +2 -0
  55. package/dist/cjs/tracker-proxy/consts.js +29 -6
  56. package/dist/cjs/tracker-proxy/proxy-provider.js +2 -2
  57. package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/index.js +4 -1
  58. package/dist/cjs/utils/xDomainId.js +15 -0
  59. package/dist/cjs/version.js +1 -1
  60. package/dist/cjs/visibility-observer/index.js +9 -7
  61. package/dist/cjs/wrapper/types/event.js +5 -0
  62. package/dist/cjs/wrapper/utils/map-page-to-page-ref.js +13 -0
  63. package/dist/ejs/Tracker.js +510 -235
  64. package/dist/ejs/app-integration.js +1 -1
  65. package/dist/ejs/builders/actor.js +3 -3
  66. package/dist/ejs/builders/consents.js +4 -4
  67. package/dist/ejs/builders/device-browser.js +2 -2
  68. package/dist/ejs/builders/device-node.js +1 -1
  69. package/dist/ejs/builders/events-anonymous-node.js +1 -1
  70. package/dist/ejs/builders/events-node.js +4 -4
  71. package/dist/ejs/builders/experimentMetadata.js +1 -1
  72. package/dist/ejs/builders/experiments.js +1 -1
  73. package/dist/ejs/builders/objects/objects-anonymous-browser.js +1 -1
  74. package/dist/ejs/builders/objects/objects-anonymous-node.js +1 -1
  75. package/dist/ejs/builders/objects/objects-browser.js +1 -1
  76. package/dist/ejs/builders/objects/objects-node.js +1 -1
  77. package/dist/ejs/builders/objects/utils.js +1 -1
  78. package/dist/ejs/builders/origin-browser.js +1 -1
  79. package/dist/ejs/builders/origin-node.js +1 -1
  80. package/dist/ejs/builders/session-browser.js +2 -1
  81. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/cis-browser.js +17 -4
  82. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/cis.js +0 -1
  83. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/eventEmitter.js +0 -1
  84. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/index.js +0 -1
  85. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/pulse-cookie.js +1 -2
  86. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/storage/pulseStorage.js +12 -4
  87. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/storage/storage.js +6 -2
  88. package/dist/ejs/createPulseTracker.js +1 -1
  89. package/dist/ejs/identity/actor.js +21 -9
  90. package/dist/ejs/identity/advertising.js +1 -1
  91. package/dist/ejs/identity/cis.js +4 -3
  92. package/dist/ejs/index.js +4 -3
  93. package/dist/ejs/leaveTracking/index.js +1 -1
  94. package/dist/ejs/leaveTrackingTpaas/constants.js +1 -5
  95. package/dist/ejs/leaveTrackingTpaas/index.js +65 -41
  96. package/dist/ejs/network-browser.js +1 -1
  97. package/dist/ejs/remoteConfig/index.js +1 -1
  98. package/dist/ejs/tpaas-builders/builders/catalogVersion.js +6 -0
  99. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/device.js +10 -4
  100. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/navigationType.js +2 -3
  101. package/dist/ejs/tpaas-builders/builders/pageContent.js +3 -0
  102. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/pageInfo.js +1 -1
  103. package/dist/ejs/tpaas-builders/builders/pageSports.js +3 -0
  104. package/dist/ejs/tpaas-builders/builders/provider.js +16 -0
  105. package/dist/ejs/tpaas-builders/builders/referrer.js +13 -0
  106. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/session.js +18 -15
  107. package/dist/ejs/tpaas-builders/builders/trackerBuilder.js +10 -0
  108. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/user.js +1 -1
  109. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/utm.js +2 -2
  110. package/dist/ejs/tpaas-builders/builders.js +271 -0
  111. package/dist/ejs/tpaas-builders/guards.js +4 -0
  112. package/dist/ejs/tpaas-builders/index.js +2 -0
  113. package/{node_modules/@schibsted/tpaas-schemas/dist/ejs → dist/ejs/tpaas-schemas}/constants.js +191 -153
  114. package/{node_modules/@schibsted/tpaas-schemas/dist/ejs → dist/ejs/tpaas-schemas}/index.js +1 -0
  115. package/dist/ejs/tpaas-schemas/types.js +1 -0
  116. package/dist/ejs/tracker-proxy/consts.js +29 -6
  117. package/dist/ejs/tracker-proxy/proxy-provider.js +1 -1
  118. package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/index.js +1 -0
  119. package/dist/ejs/utils/xDomainId.js +11 -0
  120. package/dist/ejs/version.js +1 -1
  121. package/dist/ejs/visibility-observer/index.js +9 -7
  122. package/dist/ejs/wrapper/types/event.js +4 -1
  123. package/dist/ejs/wrapper/utils/map-page-to-page-ref.js +10 -0
  124. package/dist/types/Tracker.d.ts +178 -77
  125. package/dist/types/builders/actor.d.ts +3 -2
  126. package/dist/types/builders/consents.d.ts +3 -3
  127. package/dist/types/builders/device-node.d.ts +2 -2
  128. package/dist/types/builders/events-anonymous-node.d.ts +4 -4
  129. package/dist/types/builders/events-node.d.ts +5 -5
  130. package/dist/types/builders/experiments.d.ts +1 -0
  131. package/dist/types/builders/index.d.ts +1 -1
  132. package/dist/types/builders/objects/objects-anonymous-node.d.ts +1 -1
  133. package/dist/types/builders/objects/objects-node.d.ts +1 -1
  134. package/dist/types/builders/origin-node.d.ts +1 -1
  135. package/dist/types/builders/session-browser.d.ts +1 -0
  136. package/{node_modules/@schibsted/pulse-cis-sync/dist/types → dist/types/cis-sync}/cis-browser.d.ts +1 -0
  137. package/{node_modules/@schibsted/pulse-cis-sync/dist/types → dist/types/cis-sync}/storage/pulseStorage.d.ts +12 -4
  138. package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/storage/storage.d.ts +2 -1
  139. package/dist/types/config.d.ts +1 -1
  140. package/dist/types/createPulseTracker.d.ts +1 -1
  141. package/dist/types/identity/actor.d.ts +3 -3
  142. package/dist/types/identity/advertising.d.ts +2 -2
  143. package/dist/types/identity/cis.d.ts +4 -4
  144. package/dist/types/index.d.ts +7 -8
  145. package/dist/types/leaveTrackingTpaas/constants.d.ts +1 -5
  146. package/dist/types/leaveTrackingTpaas/index.d.ts +6 -6
  147. package/dist/types/leaveTrackingTpaas/types.d.ts +2 -10
  148. package/dist/types/tpaas-builders/builders/anonymous.d.ts +3 -0
  149. package/dist/types/tpaas-builders/builders/baseEvent.d.ts +3 -0
  150. package/dist/types/tpaas-builders/builders/catalogVersion.d.ts +3 -0
  151. package/dist/types/tpaas-builders/builders/consents.d.ts +5 -0
  152. package/dist/types/tpaas-builders/builders/device.d.ts +5 -0
  153. package/dist/types/tpaas-builders/builders/experiments.d.ts +9 -0
  154. package/dist/types/tpaas-builders/builders/navigationType.d.ts +6 -0
  155. package/dist/types/tpaas-builders/builders/pageContent.d.ts +6 -0
  156. package/dist/types/tpaas-builders/builders/pageInfo.d.ts +6 -0
  157. package/dist/types/tpaas-builders/builders/pageSports.d.ts +6 -0
  158. package/dist/types/tpaas-builders/builders/pageviewId.d.ts +6 -0
  159. package/dist/types/tpaas-builders/builders/provider.d.ts +5 -0
  160. package/dist/types/tpaas-builders/builders/referrer.d.ts +6 -0
  161. package/dist/types/tpaas-builders/builders/session.d.ts +15 -0
  162. package/dist/types/tpaas-builders/builders/time.d.ts +4 -0
  163. package/dist/types/tpaas-builders/builders/trackerBuilder.d.ts +5 -0
  164. package/dist/types/tpaas-builders/builders/user.d.ts +5 -0
  165. package/dist/types/tpaas-builders/builders/utm.d.ts +6 -0
  166. package/dist/types/tpaas-builders/builders.d.ts +141 -0
  167. package/dist/types/tpaas-builders/guards.d.ts +2 -0
  168. package/dist/types/tpaas-builders/index.d.ts +3 -0
  169. package/dist/types/tpaas-builders/types.d.ts +36 -0
  170. package/dist/types/tpaas-schemas/constants.d.ts +478 -0
  171. package/dist/types/tpaas-schemas/index.d.ts +5 -0
  172. package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +132 -0
  173. package/dist/types/tpaas-schemas/types/schemas/IAnonymousViewUIElement.d.ts +58 -0
  174. package/dist/types/tpaas-schemas/types/schemas/ICompletedHealthAction.d.ts +139 -0
  175. package/dist/types/tpaas-schemas/types/schemas/IEngagementAd.d.ts +117 -0
  176. package/dist/types/tpaas-schemas/types/schemas/IEngagementAffiliate.d.ts +144 -0
  177. package/dist/types/tpaas-schemas/types/schemas/IEngagementAudio.d.ts +209 -0
  178. package/dist/types/tpaas-schemas/types/schemas/IEngagementForm.d.ts +111 -0
  179. package/dist/types/tpaas-schemas/types/schemas/IEngagementHealthUIElement.d.ts +133 -0
  180. package/dist/types/tpaas-schemas/types/schemas/IEngagementOffer.d.ts +107 -0
  181. package/dist/types/tpaas-schemas/types/schemas/IEngagementSchoolUIElement.d.ts +107 -0
  182. package/dist/types/tpaas-schemas/types/schemas/IEngagementSportsUIElement.d.ts +157 -0
  183. package/dist/types/tpaas-schemas/types/schemas/IEngagementTeaser.d.ts +114 -0
  184. package/dist/types/tpaas-schemas/types/schemas/IEngagementTvModule.d.ts +130 -0
  185. package/dist/types/tpaas-schemas/types/schemas/IEngagementTvSearch.d.ts +142 -0
  186. package/dist/types/tpaas-schemas/types/schemas/IEngagementUIElement.d.ts +105 -0
  187. package/dist/types/tpaas-schemas/types/schemas/IEngagementVideo.d.ts +234 -0
  188. package/dist/types/tpaas-schemas/types/schemas/IEngagementVideoAd.d.ts +145 -0
  189. package/dist/types/tpaas-schemas/types/schemas/IEngagementWidget.d.ts +91 -0
  190. package/dist/types/tpaas-schemas/types/schemas/IHeartbeatCommercialArticle.d.ts +96 -0
  191. package/dist/types/tpaas-schemas/types/schemas/IImpressionAd.d.ts +115 -0
  192. package/dist/types/tpaas-schemas/types/schemas/IImpressionAdSlot.d.ts +89 -0
  193. package/dist/types/tpaas-schemas/types/schemas/IImpressionAffiliate.d.ts +142 -0
  194. package/dist/types/tpaas-schemas/types/schemas/IImpressionForm.d.ts +113 -0
  195. package/dist/types/tpaas-schemas/types/schemas/IImpressionHealthUIElement.d.ts +138 -0
  196. package/dist/types/tpaas-schemas/types/schemas/IImpressionOffer.d.ts +109 -0
  197. package/dist/types/tpaas-schemas/types/schemas/IImpressionPlayer.d.ts +108 -0
  198. package/dist/types/tpaas-schemas/types/schemas/IImpressionSchoolUIElement.d.ts +109 -0
  199. package/dist/types/tpaas-schemas/types/schemas/IImpressionSportsUIElement.d.ts +159 -0
  200. package/dist/types/tpaas-schemas/types/schemas/IImpressionTeaser.d.ts +112 -0
  201. package/dist/types/tpaas-schemas/types/schemas/IImpressionUIElement.d.ts +107 -0
  202. package/dist/types/tpaas-schemas/types/schemas/IImpressionWidget.d.ts +89 -0
  203. package/dist/types/tpaas-schemas/types/schemas/ILeaveArticle.d.ts +133 -0
  204. package/dist/types/tpaas-schemas/types/schemas/ILeaveAudioPage.d.ts +88 -0
  205. package/dist/types/tpaas-schemas/types/schemas/ILeaveError.d.ts +95 -0
  206. package/dist/types/tpaas-schemas/types/schemas/ILeaveFrontpage.d.ts +83 -0
  207. package/dist/types/tpaas-schemas/types/schemas/ILeaveLandingpage.d.ts +90 -0
  208. package/dist/types/tpaas-schemas/types/schemas/ILeaveListing.d.ts +123 -0
  209. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedArticle.d.ts +139 -0
  210. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedAudioPage.d.ts +97 -0
  211. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedPage.d.ts +90 -0
  212. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedVideoPage.d.ts +97 -0
  213. package/dist/types/tpaas-schemas/types/schemas/ILeavePage.d.ts +82 -0
  214. package/dist/types/tpaas-schemas/types/schemas/ILeaveSchoolPage.d.ts +84 -0
  215. package/dist/types/tpaas-schemas/types/schemas/ILeaveSportsPage.d.ts +137 -0
  216. package/dist/types/tpaas-schemas/types/schemas/ILeaveVideoPage.d.ts +91 -0
  217. package/dist/types/tpaas-schemas/types/schemas/ILeaveWeather.d.ts +94 -0
  218. package/dist/types/tpaas-schemas/types/schemas/ILoadAd.d.ts +119 -0
  219. package/dist/types/tpaas-schemas/types/schemas/IRequestAd.d.ts +95 -0
  220. package/dist/types/tpaas-schemas/types/schemas/IViewArticle.d.ts +133 -0
  221. package/dist/types/tpaas-schemas/types/schemas/IViewAudioPage.d.ts +87 -0
  222. package/dist/types/tpaas-schemas/types/schemas/IViewError.d.ts +90 -0
  223. package/dist/types/tpaas-schemas/types/schemas/IViewFrontpage.d.ts +80 -0
  224. package/dist/types/tpaas-schemas/types/schemas/IViewHealthPage.d.ts +119 -0
  225. package/dist/types/tpaas-schemas/types/schemas/IViewLandingpage.d.ts +76 -0
  226. package/dist/types/tpaas-schemas/types/schemas/IViewListing.d.ts +118 -0
  227. package/dist/types/tpaas-schemas/types/schemas/IViewLockedArticle.d.ts +139 -0
  228. package/dist/types/tpaas-schemas/types/schemas/IViewLockedAudioPage.d.ts +95 -0
  229. package/dist/types/tpaas-schemas/types/schemas/IViewLockedPage.d.ts +94 -0
  230. package/dist/types/tpaas-schemas/types/schemas/IViewLockedVideoPage.d.ts +95 -0
  231. package/dist/types/tpaas-schemas/types/schemas/IViewPage.d.ts +86 -0
  232. package/dist/types/tpaas-schemas/types/schemas/IViewSchoolPage.d.ts +88 -0
  233. package/dist/types/tpaas-schemas/types/schemas/IViewSportsPage.d.ts +135 -0
  234. package/dist/types/tpaas-schemas/types/schemas/IViewTitle.d.ts +92 -0
  235. package/dist/types/tpaas-schemas/types/schemas/IViewVideoPage.d.ts +87 -0
  236. package/dist/types/tpaas-schemas/types/schemas/IViewWeather.d.ts +94 -0
  237. package/dist/types/tpaas-schemas/types/schemas/index.d.ts +64 -0
  238. package/dist/types/tpaas-schemas/types/templates/IBranded.d.ts +42 -0
  239. package/dist/types/tpaas-schemas/types/templates/IConsents.d.ts +34 -0
  240. package/dist/types/tpaas-schemas/types/templates/IContent.d.ts +56 -0
  241. package/dist/types/tpaas-schemas/types/templates/IDevice.d.ts +62 -0
  242. package/dist/types/tpaas-schemas/types/templates/IEngagement.d.ts +21 -0
  243. package/dist/types/tpaas-schemas/types/templates/IExperiments.d.ts +35 -0
  244. package/dist/types/tpaas-schemas/types/templates/IHealthFood.d.ts +55 -0
  245. package/dist/types/tpaas-schemas/types/templates/IHealthOrigin.d.ts +27 -0
  246. package/dist/types/tpaas-schemas/types/templates/IHealthPhysicalActivity.d.ts +36 -0
  247. package/dist/types/tpaas-schemas/types/templates/IHealthTraining.d.ts +74 -0
  248. package/dist/types/tpaas-schemas/types/templates/IHealthUserData.d.ts +25 -0
  249. package/dist/types/tpaas-schemas/types/templates/ILeave.d.ts +54 -0
  250. package/dist/types/tpaas-schemas/types/templates/ILeaveAudio.d.ts +37 -0
  251. package/dist/types/tpaas-schemas/types/templates/ILeaveStories.d.ts +34 -0
  252. package/dist/types/tpaas-schemas/types/templates/ILocation.d.ts +21 -0
  253. package/dist/types/tpaas-schemas/types/templates/IMetrics.d.ts +32 -0
  254. package/dist/types/tpaas-schemas/types/templates/IPageRef.d.ts +46 -0
  255. package/dist/types/tpaas-schemas/types/templates/IPlacement.d.ts +45 -0
  256. package/dist/types/tpaas-schemas/types/templates/IProvider.d.ts +73 -0
  257. package/dist/types/tpaas-schemas/types/templates/ISchool.d.ts +74 -0
  258. package/dist/types/tpaas-schemas/types/templates/ISession.d.ts +33 -0
  259. package/dist/types/tpaas-schemas/types/templates/ISports.d.ts +98 -0
  260. package/dist/types/tpaas-schemas/types/templates/ISportsUserFeatures.d.ts +28 -0
  261. package/dist/types/tpaas-schemas/types/templates/ITime.d.ts +32 -0
  262. package/dist/types/tpaas-schemas/types/templates/ITracker.d.ts +37 -0
  263. package/dist/types/tpaas-schemas/types/templates/IUser.d.ts +34 -0
  264. package/dist/types/tpaas-schemas/types/templates/IUtmTags.d.ts +38 -0
  265. package/dist/types/tpaas-schemas/types/templates/index.d.ts +27 -0
  266. package/dist/types/tpaas-schemas/types.d.ts +42 -0
  267. package/dist/types/tracker-proxy/consts.d.ts +2 -2
  268. package/dist/types/types.d.ts +19 -13
  269. package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/index.d.ts +1 -0
  270. package/dist/types/utils/xDomainId.d.ts +2 -0
  271. package/dist/types/version.d.ts +1 -1
  272. package/dist/types/visibility-observer/index.d.ts +6 -1
  273. package/dist/types/wrapper/engagement/ui-element/types.d.ts +1 -1
  274. package/dist/types/wrapper/types/base-event.d.ts +1 -1
  275. package/dist/types/wrapper/types/event.d.ts +4 -2
  276. package/dist/types/wrapper/types/utils.d.ts +1 -1
  277. package/dist/types/wrapper/utils/map-page-to-page-ref.d.ts +3 -0
  278. package/dist/types/wrapper/view/article/types.d.ts +1 -1
  279. package/dist/types/wrapper/view/frontpage/types.d.ts +1 -1
  280. package/dist/types/wrapper/view/listing/types.d.ts +1 -1
  281. package/dist/types/wrapper/view/loginposter/types.d.ts +1 -1
  282. package/dist/types/wrapper/view/page/types.d.ts +1 -1
  283. package/dist/types/wrapper/view/salesposter/types.d.ts +1 -1
  284. package/dist/types/wrapper/view/ui-element/types.d.ts +1 -1
  285. package/package.json +21 -20
  286. package/dist/cjs/Tracker.test-d.js +0 -76
  287. package/dist/ejs/Tracker.test-d.js +0 -71
  288. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.d.ts +0 -26
  289. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.js +0 -273
  290. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.js.map +0 -1
  291. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis.js.map +0 -1
  292. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/eventEmitter.js +0 -39
  293. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/eventEmitter.js.map +0 -1
  294. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/index.js.map +0 -1
  295. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/pulse-cookie.js.map +0 -1
  296. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/pulseStorage.d.ts +0 -36
  297. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/pulseStorage.js.map +0 -1
  298. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/storage.js +0 -21
  299. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/storage.js.map +0 -1
  300. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/types.js.map +0 -1
  301. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis-browser.d.ts +0 -26
  302. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis-browser.js.map +0 -1
  303. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis.d.ts +0 -10
  304. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis.js.map +0 -1
  305. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/eventEmitter.d.ts +0 -14
  306. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/eventEmitter.js.map +0 -1
  307. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/index.d.ts +0 -4
  308. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/index.js.map +0 -1
  309. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/pulse-cookie.d.ts +0 -55
  310. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/pulse-cookie.js.map +0 -1
  311. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/pulseStorage.d.ts +0 -36
  312. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/pulseStorage.js.map +0 -1
  313. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/storage.d.ts +0 -6
  314. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/storage.js.map +0 -1
  315. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.d.ts +0 -24
  316. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.js +0 -2
  317. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.js.map +0 -1
  318. package/node_modules/@schibsted/pulse-cis-sync/dist/types/cis.d.ts +0 -10
  319. package/node_modules/@schibsted/pulse-cis-sync/dist/types/eventEmitter.d.ts +0 -14
  320. package/node_modules/@schibsted/pulse-cis-sync/dist/types/index.d.ts +0 -4
  321. package/node_modules/@schibsted/pulse-cis-sync/dist/types/pulse-cookie.d.ts +0 -55
  322. package/node_modules/@schibsted/pulse-cis-sync/dist/types/storage/storage.d.ts +0 -6
  323. package/node_modules/@schibsted/pulse-cis-sync/dist/types/types.d.ts +0 -24
  324. package/node_modules/@schibsted/pulse-cis-sync/package.json +0 -44
  325. package/node_modules/@schibsted/pulse-utils/package.json +0 -36
  326. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/provider.js +0 -12
  327. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/referrer.js +0 -19
  328. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders.js +0 -272
  329. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/provider.js +0 -9
  330. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/referrer.js +0 -15
  331. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/trackerBuilder.js +0 -11
  332. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders.js +0 -215
  333. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/index.js +0 -1
  334. package/node_modules/@schibsted/tpaas-event-builder/dist/index.d.ts +0 -5403
  335. package/node_modules/@schibsted/tpaas-event-builder/package.json +0 -40
  336. package/node_modules/@schibsted/tpaas-schemas/dist/index.d.ts +0 -6176
  337. package/node_modules/@schibsted/tpaas-schemas/package.json +0 -35
  338. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/cis-sync}/types.js +0 -0
  339. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/anonymous.js +0 -0
  340. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/baseEvent.js +0 -0
  341. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/consents.js +0 -0
  342. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/experiments.js +0 -0
  343. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/pageviewId.js +0 -0
  344. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/time.js +0 -0
  345. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/cookie-config.js +0 -0
  346. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/cookie.js +0 -0
  347. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/events.js +0 -0
  348. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/get.js +0 -0
  349. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/getRootDomain.js +0 -0
  350. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/merge.js +0 -0
  351. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/objects.js +0 -0
  352. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/omit.js +0 -0
  353. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/randomString.js +0 -0
  354. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/throttle.js +0 -0
  355. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/webApi.js +0 -0
  356. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/cis-sync}/types.js +0 -0
  357. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/anonymous.js +0 -0
  358. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/baseEvent.js +0 -0
  359. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/consents.js +0 -0
  360. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/experiments.js +0 -0
  361. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/pageviewId.js +0 -0
  362. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/time.js +0 -0
  363. /package/dist/{types/Tracker.test-d.d.ts → ejs/tpaas-builders/types.js} +0 -0
  364. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/cookie-config.js +0 -0
  365. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/cookie.js +0 -0
  366. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/events.js +0 -0
  367. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/get.js +0 -0
  368. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/getRootDomain.js +0 -0
  369. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/merge.js +0 -0
  370. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/objects.js +0 -0
  371. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/omit.js +0 -0
  372. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/randomString.js +0 -0
  373. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/throttle.js +0 -0
  374. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/webApi.js +0 -0
  375. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/cis.d.ts +0 -0
  376. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/eventEmitter.d.ts +0 -0
  377. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/index.d.ts +0 -0
  378. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/pulse-cookie.d.ts +0 -0
  379. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/types.d.ts +0 -0
  380. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/cookie-config.d.ts +0 -0
  381. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/cookie.d.ts +0 -0
  382. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/events.d.ts +0 -0
  383. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/get.d.ts +0 -0
  384. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/getRootDomain.d.ts +0 -0
  385. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/merge.d.ts +0 -0
  386. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/objects.d.ts +0 -0
  387. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/omit.d.ts +0 -0
  388. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/randomString.d.ts +0 -0
  389. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/throttle.d.ts +0 -0
  390. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/webApi.d.ts +0 -0
@@ -0,0 +1,64 @@
1
+ export type { IAnonymousViewUIElement } from './IAnonymousViewUIElement.d.ts';
2
+ export type { ICompletedHealthAction } from './ICompletedHealthAction.d.ts';
3
+ export type { IEngagementAd } from './IEngagementAd.d.ts';
4
+ export type { IEngagementAffiliate } from './IEngagementAffiliate.d.ts';
5
+ export type { IEngagementAudio } from './IEngagementAudio.d.ts';
6
+ export type { IEngagementForm } from './IEngagementForm.d.ts';
7
+ export type { IEngagementHealthUIElement } from './IEngagementHealthUIElement.d.ts';
8
+ export type { IEngagementOffer } from './IEngagementOffer.d.ts';
9
+ export type { IEngagementSchoolUIElement } from './IEngagementSchoolUIElement.d.ts';
10
+ export type { IEngagementSportsUIElement } from './IEngagementSportsUIElement.d.ts';
11
+ export type { IEngagementTeaser } from './IEngagementTeaser.d.ts';
12
+ export type { IEngagementTvModule } from './IEngagementTvModule.d.ts';
13
+ export type { IEngagementTvSearch } from './IEngagementTvSearch.d.ts';
14
+ export type { IEngagementUIElement } from './IEngagementUIElement.d.ts';
15
+ export type { IEngagementVideo } from './IEngagementVideo.d.ts';
16
+ export type { IEngagementVideoAd } from './IEngagementVideoAd.d.ts';
17
+ export type { IEngagementWidget } from './IEngagementWidget.d.ts';
18
+ export type { IHeartbeatCommercialArticle } from './IHeartbeatCommercialArticle.d.ts';
19
+ export type { IImpressionAd } from './IImpressionAd.d.ts';
20
+ export type { IImpressionAdSlot } from './IImpressionAdSlot.d.ts';
21
+ export type { IImpressionAffiliate } from './IImpressionAffiliate.d.ts';
22
+ export type { IImpressionForm } from './IImpressionForm.d.ts';
23
+ export type { IImpressionHealthUIElement } from './IImpressionHealthUIElement.d.ts';
24
+ export type { IImpressionOffer } from './IImpressionOffer.d.ts';
25
+ export type { IImpressionPlayer } from './IImpressionPlayer.d.ts';
26
+ export type { IImpressionSchoolUIElement } from './IImpressionSchoolUIElement.d.ts';
27
+ export type { IImpressionSportsUIElement } from './IImpressionSportsUIElement.d.ts';
28
+ export type { IImpressionTeaser } from './IImpressionTeaser.d.ts';
29
+ export type { IImpressionUIElement } from './IImpressionUIElement.d.ts';
30
+ export type { IImpressionWidget } from './IImpressionWidget.d.ts';
31
+ export type { ILeaveArticle } from './ILeaveArticle.d.ts';
32
+ export type { ILeaveAudioPage } from './ILeaveAudioPage.d.ts';
33
+ export type { ILeaveError } from './ILeaveError.d.ts';
34
+ export type { ILeaveFrontpage } from './ILeaveFrontpage.d.ts';
35
+ export type { ILeaveLandingpage } from './ILeaveLandingpage.d.ts';
36
+ export type { ILeaveListing } from './ILeaveListing.d.ts';
37
+ export type { ILeaveLockedArticle } from './ILeaveLockedArticle.d.ts';
38
+ export type { ILeaveLockedAudioPage } from './ILeaveLockedAudioPage.d.ts';
39
+ export type { ILeaveLockedPage } from './ILeaveLockedPage.d.ts';
40
+ export type { ILeaveLockedVideoPage } from './ILeaveLockedVideoPage.d.ts';
41
+ export type { ILeavePage } from './ILeavePage.d.ts';
42
+ export type { ILeaveSchoolPage } from './ILeaveSchoolPage.d.ts';
43
+ export type { ILeaveSportsPage } from './ILeaveSportsPage.d.ts';
44
+ export type { ILeaveVideoPage } from './ILeaveVideoPage.d.ts';
45
+ export type { ILeaveWeather } from './ILeaveWeather.d.ts';
46
+ export type { ILoadAd } from './ILoadAd.d.ts';
47
+ export type { IRequestAd } from './IRequestAd.d.ts';
48
+ export type { IViewArticle } from './IViewArticle.d.ts';
49
+ export type { IViewAudioPage } from './IViewAudioPage.d.ts';
50
+ export type { IViewError } from './IViewError.d.ts';
51
+ export type { IViewFrontpage } from './IViewFrontpage.d.ts';
52
+ export type { IViewHealthPage } from './IViewHealthPage.d.ts';
53
+ export type { IViewLandingpage } from './IViewLandingpage.d.ts';
54
+ export type { IViewListing } from './IViewListing.d.ts';
55
+ export type { IViewLockedArticle } from './IViewLockedArticle.d.ts';
56
+ export type { IViewLockedAudioPage } from './IViewLockedAudioPage.d.ts';
57
+ export type { IViewLockedPage } from './IViewLockedPage.d.ts';
58
+ export type { IViewLockedVideoPage } from './IViewLockedVideoPage.d.ts';
59
+ export type { IViewPage } from './IViewPage.d.ts';
60
+ export type { IViewSchoolPage } from './IViewSchoolPage.d.ts';
61
+ export type { IViewSportsPage } from './IViewSportsPage.d.ts';
62
+ export type { IViewTitle } from './IViewTitle.d.ts';
63
+ export type { IViewVideoPage } from './IViewVideoPage.d.ts';
64
+ export type { IViewWeather } from './IViewWeather.d.ts';
@@ -0,0 +1,42 @@
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
+ * Commercial (branded content) attribution. Optional root block, present only on events emitted by or for branded content. The owning team is branded.team and the paying customer is branded.advertiserName, not object.sponsor, which stays editorial.
10
+ */
11
+ export interface IBranded {
12
+ /**
13
+ * he advertiser that commissioned the content, that is, the paying customer. Not a team marker (that is branded.team) and, on Affiliate events, not the shop (that is object.storeName). Omit when there is no single advertiser.
14
+ * @example "Norsk Luftambulanse"
15
+ */
16
+ advertiserName?: string;
17
+ /**
18
+ * Stable identifier of the commercial campaign or booking that the content belongs to.
19
+ * @example "NLA-2026-Q3"
20
+ */
21
+ campaignId?: string;
22
+ /**
23
+ * Stable identifier of the creative variant shown. An id, not the asset URL (that is object.creativeURL).
24
+ * @example "nla-lofoten-v2"
25
+ */
26
+ creativeId?: string;
27
+ /**
28
+ * Human readable label for the creative variant, so it can be recognised in a list. A short tag chosen by the team, not the teaser headline and not an identifier (that is branded.creativeId).
29
+ * @example "Soevn4"
30
+ */
31
+ creativeName?: string;
32
+ /**
33
+ * Name of the sold commercial placement (inventory slot) the content was booked into, in the team's own naming. Stable per booking. Distinct from placement.*, which describes where the front engine rendered the teaser.
34
+ * @example "vg-partnerstudio--front-1"
35
+ */
36
+ placementName?: string;
37
+ /**
38
+ * The commercial content team that owns the content. Convention: Partnerstudio, Affiliate, BrandStudio, one canonical spelling per team. Market and site come from provider.
39
+ * @example "Partnerstudio"
40
+ */
41
+ team: string;
42
+ }
@@ -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's TCF/CMP choices.
10
+ */
11
+ export interface IConsents {
12
+ /**
13
+ * Indicates if this data can be used for advertising.
14
+ */
15
+ advertising: 'Accepted' | 'Rejected' | 'Unknown';
16
+ /**
17
+ * Indicates if this data can be used for analytics and product improvement.
18
+ */
19
+ analytics: 'Accepted' | 'Rejected' | 'Unknown';
20
+ /**
21
+ * Indicates if this data can be used for marketing.
22
+ */
23
+ marketing: 'Accepted' | 'Rejected' | 'Unknown';
24
+ /**
25
+ * Indicates if this data can be used for personalization.
26
+ */
27
+ personalization: 'Accepted' | 'Rejected' | 'Unknown';
28
+ /**
29
+ * The source of consent information
30
+ * @pattern ^[a-zA-Z-_]+$
31
+ * @example "cache"
32
+ */
33
+ source: string;
34
+ }
@@ -0,0 +1,56 @@
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
+ * Metadata about the content of a pageview.
10
+ */
11
+ export interface IContent {
12
+ /**
13
+ * The access restriction placed on the content.
14
+ * @example "Free"
15
+ */
16
+ accessLevel: 'Free' | 'Login' | 'Meter' | 'Paid';
17
+ /**
18
+ * The identifier of the content.
19
+ * @example "QMkj9q"
20
+ */
21
+ contentId: string;
22
+ /**
23
+ * The canonical title of the content.
24
+ * @example "Norge vinner 3-0 mot Italia i VM-kvalifiseringen."
25
+ */
26
+ contentTitle: string;
27
+ /**
28
+ * High-level classification describing how the content is presented to the user. Should be simple, stable, and consistently populated.
29
+ */
30
+ format: 'Article' | 'Audio' | 'Video' | 'Weather' | 'Title' | 'Other';
31
+ /**
32
+ * More specific classification within a given content.format. Intended for more granular use cases and may be optional or "Unknown" if unavailable.
33
+ */
34
+ formatSubtype:
35
+ | 'Article'
36
+ | 'LiveArticle'
37
+ | 'SpecialArticle'
38
+ | 'Podcast'
39
+ | 'Episode'
40
+ | 'Audiobook'
41
+ | 'AudiobookSample'
42
+ | 'Movie'
43
+ | 'Series'
44
+ | 'Story'
45
+ | 'Unknown'
46
+ | 'Video';
47
+ /**
48
+ * The namespace that the target content belongs to, for example its newsroom
49
+ */
50
+ namespace: string;
51
+ /**
52
+ * A list of product features that give access to this content. (Uses OR, i.e., having one is enough for access.)
53
+ */
54
+ requiredProductFeatures?: string[];
55
+ tags?: string[];
56
+ }
@@ -0,0 +1,62 @@
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 device.
10
+ */
11
+ export interface IDevice {
12
+ /**
13
+ * The version of the browser.
14
+ */
15
+ browserVersion?: string;
16
+ /**
17
+ * The client used to render the site
18
+ */
19
+ clientType: 'Chrome' | 'Safari' | 'Edge' | 'Firefox' | 'Samsung' | 'NativeScreen' | 'Webview' | 'Other';
20
+ /**
21
+ * The device’s hardware category.
22
+ */
23
+ deviceType: 'Desktop' | 'Mobile' | 'Tablet' | 'SmartTv' | 'Other';
24
+ /**
25
+ * The environmentId.
26
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[47][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
27
+ * @example "42401e1f-7e04-4b73-8bed-1ceffc0ed8cc"
28
+ */
29
+ environmentId: string;
30
+ ipAddress?: string;
31
+ /**
32
+ * DEPRECATED: Backwards compatibility with ads.
33
+ */
34
+ jweIds?: string;
35
+ /**
36
+ * Mobile only: The brand name of the device.
37
+ * @example "Samsung"
38
+ */
39
+ mobileBrand?: string;
40
+ /**
41
+ * Mobile only: The model of the device.
42
+ * @example "SM-S918B"
43
+ */
44
+ mobileModel?: string;
45
+ /**
46
+ * The device’s operating system.
47
+ */
48
+ operatingSystem: 'Windows' | 'Mac' | 'Linux' | 'iOS' | 'Android' | 'Other';
49
+ /**
50
+ * The format of the screen.
51
+ */
52
+ screenOrientation: 'Portrait' | 'Landscape';
53
+ /**
54
+ * The raw userAgent string, if it exists.
55
+ * @example "Mozilla/5.0 (Linux; Android 13; SM-S918B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36"
56
+ */
57
+ userAgent?: string;
58
+ /**
59
+ * The breakpoint corresponding to the window's viewport size.
60
+ */
61
+ viewportSize: 'XS' | 'S' | 'M' | 'L' | 'XL' | 'Unknown';
62
+ }
@@ -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
+ * Details about the user interaction.
10
+ */
11
+ export interface IEngagement {
12
+ /**
13
+ * The action the user is performing.
14
+ */
15
+ action: 'Click' | 'Scroll' | 'Drag' | 'Drop' | 'DoubleClick';
16
+ /**
17
+ * The name of the UIElement being interacted with.
18
+ * @example "AwesomeButton"
19
+ */
20
+ elementName: string;
21
+ }
@@ -0,0 +1,35 @@
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 A/B testing groups.
10
+ */
11
+ export type IExperiments = {
12
+ /**
13
+ * Unique experiment identifier.
14
+ */
15
+ experimentSdrn: string;
16
+ /**
17
+ * The name of the experiment
18
+ * @example "login-ab-test"
19
+ */
20
+ name: string;
21
+ /**
22
+ * The name of the experimentation platform.
23
+ * @example "curate"
24
+ */
25
+ platform: string;
26
+ /**
27
+ * A UUIDV5 hash of a combination of variant IDs.
28
+ */
29
+ testId?: string;
30
+ /**
31
+ * The level of the experiment variant.
32
+ * @example "control"
33
+ */
34
+ variant: string;
35
+ }[];
@@ -0,0 +1,55 @@
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
+ * Reusable template for food related properties to be used in Health schemas.
10
+ */
11
+ export interface IHealthFood {
12
+ /**
13
+ * Identifier of food in our DB.
14
+ * @example 12345
15
+ */
16
+ foodId?: number;
17
+ /**
18
+ * @example "Foodstuff"
19
+ */
20
+ foodType?: 'Foodstuff' | 'Recipe' | 'Calories' | 'FoodItemCombo';
21
+ /**
22
+ * Whether food has custom units available.
23
+ */
24
+ hasCustomUnit?: boolean;
25
+ /**
26
+ * Whether selected unit is the default one
27
+ */
28
+ isDefaultUnit?: boolean;
29
+ /**
30
+ * Whether user has this food added to favourites.
31
+ */
32
+ isFavourite?: boolean;
33
+ /**
34
+ * Whether foodstuff is generic (non-branded) foodstuff.
35
+ */
36
+ isGenericFoodstuff?: boolean;
37
+ /**
38
+ * Whether it is user created food or not.
39
+ */
40
+ isUserFood?: boolean;
41
+ /**
42
+ * Name of food.
43
+ * @example "Tomato soup"
44
+ */
45
+ name?: string;
46
+ /**
47
+ * Name of the unit.
48
+ * @example "kg"
49
+ */
50
+ unit?: string;
51
+ /**
52
+ * @example "Weight"
53
+ */
54
+ unitType?: 'Weight' | 'Volume' | 'Custom';
55
+ }
@@ -0,0 +1,27 @@
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 origin of the health page content. Only used by the Vektklubb/Wellobe projects.
10
+ */
11
+ export interface IHealthOrigin {
12
+ /**
13
+ * The specific UI element or component that navigated to this page.
14
+ * @example "logging_hq_button"
15
+ */
16
+ content?: string;
17
+ /**
18
+ * The feature area that navigated to this page
19
+ * @example "meal_logging"
20
+ */
21
+ feature?: string;
22
+ /**
23
+ * The origin name / place that the user navigated from.
24
+ * @example "logbook"
25
+ */
26
+ name?: string;
27
+ }
@@ -0,0 +1,36 @@
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
+ * Reusable template for physical activity related properties to be used in Health schemas.
10
+ */
11
+ export interface IHealthPhysicalActivity {
12
+ /**
13
+ * Name of third party app that activity was imported from.
14
+ * @example "Garmin Connect"
15
+ */
16
+ externalAppName?: string;
17
+ /**
18
+ * Name of activity.
19
+ * @example "Jogging"
20
+ */
21
+ name?: string;
22
+ /**
23
+ * Identifier of food in our DB.
24
+ * @example 12345
25
+ */
26
+ physicalActivityId?: number;
27
+ /**
28
+ * Type of activity.
29
+ * @example "Activity"
30
+ */
31
+ physicalActivityType?: 'Activity' | 'Calories' | 'ExternalActivity';
32
+ /**
33
+ * Whether this activity should increase user’s daily kcal intake.
34
+ */
35
+ raiseKcalBudget?: boolean;
36
+ }
@@ -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
+ * Reusable template for training related properties to be used in Health schemas.
10
+ */
11
+ export interface IHealthTraining {
12
+ /**
13
+ * Number of completed workouts in the program.
14
+ * @example 2
15
+ */
16
+ completedWorkoutsProgress?: number;
17
+ /**
18
+ * Name of a single exercise within a workout.
19
+ * @example "Squats"
20
+ */
21
+ exerciseName?: string;
22
+ /**
23
+ * Whether this training program is active or not.
24
+ */
25
+ isActive?: boolean;
26
+ /**
27
+ * Number of workouts in the entire program.
28
+ * @example 4
29
+ */
30
+ numberOfWorkouts?: number;
31
+ /**
32
+ * Duration of program in weeks.
33
+ * @example 5
34
+ */
35
+ programDuration?: number;
36
+ /**
37
+ * List of equipment used in this program.
38
+ */
39
+ programEquipment?: string[];
40
+ /**
41
+ * Difficulty of a program.
42
+ * @example "hard"
43
+ */
44
+ programLevel?: string;
45
+ /**
46
+ * Backend name of training program.
47
+ * @example "LEILA_WALKING_8_WEEKS"
48
+ */
49
+ programName?: string;
50
+ /**
51
+ * Aggregate info about duration (in minutes) of a workout within program.
52
+ * @example "30-60"
53
+ */
54
+ programWorkoutDuration?: string;
55
+ /**
56
+ * Short string describing type of training program.
57
+ * @example "Circuit training"
58
+ */
59
+ typeOfTraining?: string;
60
+ /**
61
+ * Duration (in minutes) of specific workout.
62
+ * @example "30-60"
63
+ */
64
+ workoutDuration?: string;
65
+ /**
66
+ * List of equipment used in this workout.
67
+ */
68
+ workoutEquipment?: string[];
69
+ /**
70
+ * Name of the workout.
71
+ * @example "Upper body training"
72
+ */
73
+ workoutName?: string;
74
+ }
@@ -0,0 +1,25 @@
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
+ * Additional user related properties to be used in Health schemas.
10
+ */
11
+ export interface IHealthUserData {
12
+ /**
13
+ * User age.
14
+ */
15
+ age?: number;
16
+ /**
17
+ * User gender.
18
+ */
19
+ gender?: string;
20
+ /**
21
+ * Name of the program user is on currently.
22
+ * @example "keep weight"
23
+ */
24
+ programType?: string;
25
+ }
@@ -0,0 +1,54 @@
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
+ * engagement metrics for leave events.
10
+ */
11
+ export interface ILeave {
12
+ /**
13
+ * The total active time a user spends on the page in milliseconds. Active implies a timespan of less than 30 sec since triggering one of the following browser events(On web): 'mousedown', 'mousemove', 'keydown', 'scroll', 'touchstart'.
14
+ * @exclusiveMinimum 0
15
+ */
16
+ activityDurationMs: number;
17
+ /**
18
+ * The total time the user spent on the page in milliseconds.
19
+ * @exclusiveMinimum 0
20
+ */
21
+ durationMs: number;
22
+ /**
23
+ * The maximum relative scroll position of the article when the user leaves it.
24
+ * @minimum 0
25
+ * @maximum 1
26
+ */
27
+ maxObjectViewPercentage: number;
28
+ /**
29
+ * The maximum absolute scroll position of the top of the users' viewport on the page when the user left it, in pixels.
30
+ */
31
+ maxPageScrollPosition: number;
32
+ /**
33
+ * The maximum relative scroll position of the page when the user leaves it.
34
+ * @minimum 0
35
+ * @maximum 1
36
+ */
37
+ maxPageViewPercentage: number;
38
+ /**
39
+ * The relative scroll position of the article when the user leaves it.
40
+ * @minimum 0
41
+ * @maximum 1
42
+ */
43
+ objectViewPercentage: number;
44
+ /**
45
+ * The absolute scroll position of the top of the users' viewport on the page when the user left it, in pixels.
46
+ */
47
+ pageScrollPosition: number;
48
+ /**
49
+ * The relative scroll position of the page when the user leaves it.
50
+ * @minimum 0
51
+ * @maximum 1
52
+ */
53
+ pageViewPercentage: number;
54
+ }
@@ -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
+ export interface ILeaveAudio {
9
+ /**
10
+ * The total active time a user spends on the page in milliseconds. Active implies a timespan of less than 30 sec since triggering one of the following browser events(On web): 'mousedown', 'mousemove', 'keydown', 'scroll', 'touchstart'.
11
+ * @exclusiveMinimum 0
12
+ */
13
+ activityDurationMs: number;
14
+ /**
15
+ * Number of audio completed since the page load or since the pageview.
16
+ */
17
+ audioCompleted: number;
18
+ /**
19
+ * Number of audio completed since the page load or since the pageview.
20
+ */
21
+ audioStarted: number;
22
+ /**
23
+ * The total time the user spent on the page in milliseconds.
24
+ * @exclusiveMinimum 0
25
+ */
26
+ durationMs: number;
27
+ /**
28
+ * Which audio (placement in the playlist) was the last one started by the user.
29
+ */
30
+ maxPlaylistPosition?: number;
31
+ /**
32
+ * How far the user came into the playlist shown in percentage.
33
+ * @minimum 0
34
+ * @maximum 1
35
+ */
36
+ playlistPositionPercentage?: number;
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
+ * Engagement statistics for the story carousel.
10
+ */
11
+ export interface ILeaveStories {
12
+ /**
13
+ * Number of ads (both content marketing and regular video ads) shown to the user.
14
+ */
15
+ adCount: number;
16
+ /**
17
+ * Which video (placement in the playlist) was the last one started by the user.
18
+ */
19
+ maxPlaylistPosition: number;
20
+ /**
21
+ * How far the user came into the playlist shown in percentage.
22
+ * @minimum 0
23
+ * @maximum 1
24
+ */
25
+ playlistPositionPercentage: number;
26
+ /**
27
+ * Number of stories completed since the page load or since the pageview.
28
+ */
29
+ storiesCompleted: number;
30
+ /**
31
+ * Number of stories completed since the page load or since the pageview.
32
+ */
33
+ storiesStarted: number;
34
+ }