@schibsted/pulse-sdk 8.0.0-rc.2 → 8.0.0-rc.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/dist/cjs/Tracker.js +582 -471
  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 -80
  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/session/store.js +96 -0
  37. package/dist/cjs/tpaas-builders/builders/catalogVersion.js +9 -0
  38. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/device.js +50 -72
  39. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/navigationType.js +2 -3
  40. package/dist/cjs/tpaas-builders/builders/pageContent.js +7 -0
  41. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/pageInfo.js +2 -3
  42. package/dist/cjs/tpaas-builders/builders/pageSports.js +7 -0
  43. package/dist/cjs/tpaas-builders/builders/provider.js +19 -0
  44. package/dist/cjs/tpaas-builders/builders/referrer.js +17 -0
  45. package/dist/cjs/tpaas-builders/builders/session.js +5 -0
  46. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/trackerBuilder.js +2 -3
  47. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/user.js +1 -1
  48. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/utm.js +3 -9
  49. package/dist/cjs/tpaas-builders/builders.js +326 -0
  50. package/dist/cjs/tpaas-builders/guards.js +7 -0
  51. package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/index.js +3 -0
  52. package/dist/cjs/tpaas-context/adapters.js +85 -0
  53. package/dist/cjs/tpaas-context/browser.js +51 -0
  54. package/dist/cjs/tpaas-context/index.js +6 -0
  55. package/dist/cjs/tpaas-context/prepare.js +177 -0
  56. package/dist/cjs/tpaas-context/session.js +23 -0
  57. package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/cjs/tpaas-context}/types.js +0 -1
  58. package/{node_modules/@schibsted/tpaas-schemas/dist/cjs → dist/cjs/tpaas-schemas}/constants.js +189 -158
  59. package/{node_modules/@schibsted/tpaas-schemas/dist/cjs → dist/cjs/tpaas-schemas}/index.js +1 -0
  60. package/dist/cjs/tpaas-schemas/types.js +2 -0
  61. package/dist/cjs/tracker-proxy/consts.js +29 -7
  62. package/dist/cjs/tracker-proxy/proxy-provider.js +2 -2
  63. package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/index.js +4 -1
  64. package/dist/cjs/utils/xDomainId.js +15 -0
  65. package/dist/cjs/version.js +1 -1
  66. package/dist/cjs/visibility-observer/index.js +9 -7
  67. package/dist/cjs/wrapper/types/event.js +5 -0
  68. package/dist/cjs/wrapper/utils/map-page-to-page-ref.js +13 -0
  69. package/dist/ejs/Tracker.js +558 -447
  70. package/dist/ejs/app-integration.js +1 -1
  71. package/dist/ejs/builders/actor.js +3 -3
  72. package/dist/ejs/builders/consents.js +4 -4
  73. package/dist/ejs/builders/device-browser.js +2 -2
  74. package/dist/ejs/builders/device-node.js +1 -1
  75. package/dist/ejs/builders/events-anonymous-node.js +1 -1
  76. package/dist/ejs/builders/events-node.js +4 -4
  77. package/dist/ejs/builders/experimentMetadata.js +1 -1
  78. package/dist/ejs/builders/experiments.js +1 -1
  79. package/dist/ejs/builders/objects/objects-anonymous-browser.js +1 -1
  80. package/dist/ejs/builders/objects/objects-anonymous-node.js +1 -1
  81. package/dist/ejs/builders/objects/objects-browser.js +1 -1
  82. package/dist/ejs/builders/objects/objects-node.js +1 -1
  83. package/dist/ejs/builders/objects/utils.js +1 -1
  84. package/dist/ejs/builders/origin-browser.js +1 -1
  85. package/dist/ejs/builders/origin-node.js +1 -1
  86. package/dist/ejs/builders/session-browser.js +5 -77
  87. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/cis-browser.js +17 -4
  88. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/cis.js +0 -1
  89. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/eventEmitter.js +0 -1
  90. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/index.js +0 -1
  91. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/pulse-cookie.js +1 -2
  92. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/storage/pulseStorage.js +12 -4
  93. package/{node_modules/@schibsted/pulse-cis-sync/dist/ejs → dist/ejs/cis-sync}/storage/storage.js +6 -2
  94. package/dist/ejs/createPulseTracker.js +1 -1
  95. package/dist/ejs/identity/actor.js +21 -9
  96. package/dist/ejs/identity/advertising.js +1 -1
  97. package/dist/ejs/identity/cis.js +4 -3
  98. package/dist/ejs/index.js +4 -3
  99. package/dist/ejs/leaveTracking/index.js +1 -1
  100. package/dist/ejs/leaveTrackingTpaas/constants.js +1 -5
  101. package/dist/ejs/leaveTrackingTpaas/index.js +65 -41
  102. package/dist/ejs/network-browser.js +1 -1
  103. package/dist/ejs/remoteConfig/index.js +1 -1
  104. package/dist/ejs/session/store.js +90 -0
  105. package/dist/ejs/tpaas-builders/builders/catalogVersion.js +6 -0
  106. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/device.js +50 -72
  107. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/navigationType.js +2 -3
  108. package/dist/ejs/tpaas-builders/builders/pageContent.js +3 -0
  109. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/pageInfo.js +2 -3
  110. package/dist/ejs/tpaas-builders/builders/pageSports.js +3 -0
  111. package/dist/ejs/tpaas-builders/builders/provider.js +16 -0
  112. package/dist/ejs/tpaas-builders/builders/referrer.js +13 -0
  113. package/dist/ejs/tpaas-builders/builders/session.js +1 -0
  114. package/dist/ejs/tpaas-builders/builders/trackerBuilder.js +10 -0
  115. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/user.js +1 -1
  116. package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/utm.js +3 -9
  117. package/dist/ejs/tpaas-builders/builders.js +259 -0
  118. package/dist/ejs/tpaas-builders/guards.js +4 -0
  119. package/dist/ejs/tpaas-builders/index.js +2 -0
  120. package/dist/ejs/tpaas-context/adapters.js +80 -0
  121. package/dist/ejs/tpaas-context/browser.js +47 -0
  122. package/dist/ejs/tpaas-context/index.js +1 -0
  123. package/dist/ejs/tpaas-context/prepare.js +137 -0
  124. package/dist/ejs/tpaas-context/session.js +19 -0
  125. package/{node_modules/@schibsted/tpaas-schemas/dist/ejs → dist/ejs/tpaas-schemas}/constants.js +187 -156
  126. package/{node_modules/@schibsted/tpaas-schemas/dist/ejs → dist/ejs/tpaas-schemas}/index.js +1 -0
  127. package/dist/ejs/tpaas-schemas/types.js +1 -0
  128. package/dist/ejs/tracker-proxy/consts.js +29 -7
  129. package/dist/ejs/tracker-proxy/proxy-provider.js +1 -1
  130. package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/index.js +1 -0
  131. package/dist/ejs/utils/xDomainId.js +11 -0
  132. package/dist/ejs/version.js +1 -1
  133. package/dist/ejs/visibility-observer/index.js +9 -7
  134. package/dist/ejs/wrapper/types/event.js +4 -1
  135. package/dist/ejs/wrapper/utils/map-page-to-page-ref.js +10 -0
  136. package/dist/types/Tracker.d.ts +198 -93
  137. package/dist/types/builders/actor.d.ts +3 -2
  138. package/dist/types/builders/consents.d.ts +3 -3
  139. package/dist/types/builders/device-node.d.ts +2 -2
  140. package/dist/types/builders/events-anonymous-node.d.ts +4 -4
  141. package/dist/types/builders/events-node.d.ts +5 -5
  142. package/dist/types/builders/experiments.d.ts +1 -0
  143. package/dist/types/builders/index.d.ts +1 -1
  144. package/dist/types/builders/objects/objects-anonymous-node.d.ts +1 -1
  145. package/dist/types/builders/objects/objects-node.d.ts +1 -1
  146. package/dist/types/builders/origin-node.d.ts +1 -1
  147. package/dist/types/builders/session-browser.d.ts +1 -13
  148. package/{node_modules/@schibsted/pulse-cis-sync/dist/types → dist/types/cis-sync}/cis-browser.d.ts +1 -0
  149. package/{node_modules/@schibsted/pulse-cis-sync/dist/types → dist/types/cis-sync}/storage/pulseStorage.d.ts +12 -4
  150. package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/storage/storage.d.ts +2 -1
  151. package/dist/types/config.d.ts +1 -1
  152. package/dist/types/createPulseTracker.d.ts +1 -1
  153. package/dist/types/identity/actor.d.ts +3 -3
  154. package/dist/types/identity/advertising.d.ts +2 -2
  155. package/dist/types/identity/cis.d.ts +4 -4
  156. package/dist/types/index.d.ts +7 -8
  157. package/dist/types/leaveTrackingTpaas/constants.d.ts +1 -5
  158. package/dist/types/leaveTrackingTpaas/index.d.ts +6 -6
  159. package/dist/types/leaveTrackingTpaas/types.d.ts +2 -10
  160. package/dist/types/session/store.d.ts +34 -0
  161. package/dist/types/tpaas-builders/builders/anonymous.d.ts +3 -0
  162. package/dist/types/tpaas-builders/builders/baseEvent.d.ts +3 -0
  163. package/dist/types/tpaas-builders/builders/catalogVersion.d.ts +3 -0
  164. package/dist/types/tpaas-builders/builders/consents.d.ts +5 -0
  165. package/dist/types/tpaas-builders/builders/device.d.ts +5 -0
  166. package/dist/types/tpaas-builders/builders/experiments.d.ts +9 -0
  167. package/dist/types/tpaas-builders/builders/navigationType.d.ts +6 -0
  168. package/dist/types/tpaas-builders/builders/pageContent.d.ts +6 -0
  169. package/dist/types/tpaas-builders/builders/pageInfo.d.ts +7 -0
  170. package/dist/types/tpaas-builders/builders/pageSports.d.ts +6 -0
  171. package/dist/types/tpaas-builders/builders/pageviewId.d.ts +6 -0
  172. package/dist/types/tpaas-builders/builders/provider.d.ts +5 -0
  173. package/dist/types/tpaas-builders/builders/referrer.d.ts +6 -0
  174. package/dist/types/tpaas-builders/builders/session.d.ts +4 -0
  175. package/dist/types/tpaas-builders/builders/time.d.ts +4 -0
  176. package/dist/types/tpaas-builders/builders/trackerBuilder.d.ts +5 -0
  177. package/dist/types/tpaas-builders/builders/user.d.ts +5 -0
  178. package/dist/types/tpaas-builders/builders/utm.d.ts +7 -0
  179. package/dist/types/tpaas-builders/builders.d.ts +141 -0
  180. package/dist/types/tpaas-builders/guards.d.ts +2 -0
  181. package/dist/types/tpaas-builders/index.d.ts +2 -0
  182. package/dist/types/tpaas-context/adapters.d.ts +26 -0
  183. package/dist/types/tpaas-context/browser.d.ts +8 -0
  184. package/dist/types/tpaas-context/index.d.ts +2 -0
  185. package/dist/types/tpaas-context/prepare.d.ts +38 -0
  186. package/dist/types/tpaas-context/session.d.ts +10 -0
  187. package/dist/types/tpaas-context/types.d.ts +66 -0
  188. package/dist/types/tpaas-schemas/constants.d.ts +471 -0
  189. package/dist/types/tpaas-schemas/index.d.ts +5 -0
  190. package/dist/types/tpaas-schemas/types/ITpaasEvent.d.ts +130 -0
  191. package/dist/types/tpaas-schemas/types/schemas/IAnonymousImpressionUIElement.d.ts +58 -0
  192. package/dist/types/tpaas-schemas/types/schemas/ICompletedHealthAction.d.ts +139 -0
  193. package/dist/types/tpaas-schemas/types/schemas/IEngagementAd.d.ts +117 -0
  194. package/dist/types/tpaas-schemas/types/schemas/IEngagementAffiliate.d.ts +144 -0
  195. package/dist/types/tpaas-schemas/types/schemas/IEngagementAudio.d.ts +213 -0
  196. package/dist/types/tpaas-schemas/types/schemas/IEngagementForm.d.ts +111 -0
  197. package/dist/types/tpaas-schemas/types/schemas/IEngagementHealthUIElement.d.ts +133 -0
  198. package/dist/types/tpaas-schemas/types/schemas/IEngagementOffer.d.ts +107 -0
  199. package/dist/types/tpaas-schemas/types/schemas/IEngagementSchoolUIElement.d.ts +107 -0
  200. package/dist/types/tpaas-schemas/types/schemas/IEngagementSportsUIElement.d.ts +157 -0
  201. package/dist/types/tpaas-schemas/types/schemas/IEngagementTeaser.d.ts +114 -0
  202. package/dist/types/tpaas-schemas/types/schemas/IEngagementTvModule.d.ts +133 -0
  203. package/dist/types/tpaas-schemas/types/schemas/IEngagementTvSearch.d.ts +142 -0
  204. package/dist/types/tpaas-schemas/types/schemas/IEngagementUIElement.d.ts +105 -0
  205. package/dist/types/tpaas-schemas/types/schemas/IEngagementVideo.d.ts +238 -0
  206. package/dist/types/tpaas-schemas/types/schemas/IEngagementVideoAd.d.ts +147 -0
  207. package/dist/types/tpaas-schemas/types/schemas/IEngagementWidget.d.ts +91 -0
  208. package/dist/types/tpaas-schemas/types/schemas/IHeartbeatCommercialArticle.d.ts +96 -0
  209. package/dist/types/tpaas-schemas/types/schemas/IImpressionAd.d.ts +115 -0
  210. package/dist/types/tpaas-schemas/types/schemas/IImpressionAdSlot.d.ts +89 -0
  211. package/dist/types/tpaas-schemas/types/schemas/IImpressionAffiliate.d.ts +142 -0
  212. package/dist/types/tpaas-schemas/types/schemas/IImpressionForm.d.ts +113 -0
  213. package/dist/types/tpaas-schemas/types/schemas/IImpressionHealthUIElement.d.ts +138 -0
  214. package/dist/types/tpaas-schemas/types/schemas/IImpressionOffer.d.ts +109 -0
  215. package/dist/types/tpaas-schemas/types/schemas/IImpressionPlayer.d.ts +108 -0
  216. package/dist/types/tpaas-schemas/types/schemas/IImpressionSchoolUIElement.d.ts +109 -0
  217. package/dist/types/tpaas-schemas/types/schemas/IImpressionSportsUIElement.d.ts +159 -0
  218. package/dist/types/tpaas-schemas/types/schemas/IImpressionTeaser.d.ts +112 -0
  219. package/dist/types/tpaas-schemas/types/schemas/IImpressionUIElement.d.ts +107 -0
  220. package/dist/types/tpaas-schemas/types/schemas/IImpressionWidget.d.ts +89 -0
  221. package/dist/types/tpaas-schemas/types/schemas/ILeaveArticle.d.ts +133 -0
  222. package/dist/types/tpaas-schemas/types/schemas/ILeaveAudioPage.d.ts +88 -0
  223. package/dist/types/tpaas-schemas/types/schemas/ILeaveError.d.ts +95 -0
  224. package/dist/types/tpaas-schemas/types/schemas/ILeaveFrontpage.d.ts +83 -0
  225. package/dist/types/tpaas-schemas/types/schemas/ILeaveLandingpage.d.ts +90 -0
  226. package/dist/types/tpaas-schemas/types/schemas/ILeaveListing.d.ts +123 -0
  227. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedArticle.d.ts +139 -0
  228. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedAudioPage.d.ts +97 -0
  229. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedPage.d.ts +90 -0
  230. package/dist/types/tpaas-schemas/types/schemas/ILeaveLockedVideoPage.d.ts +97 -0
  231. package/dist/types/tpaas-schemas/types/schemas/ILeavePage.d.ts +82 -0
  232. package/dist/types/tpaas-schemas/types/schemas/ILeaveSchoolPage.d.ts +84 -0
  233. package/dist/types/tpaas-schemas/types/schemas/ILeaveSportsPage.d.ts +137 -0
  234. package/dist/types/tpaas-schemas/types/schemas/ILeaveVideoPage.d.ts +91 -0
  235. package/dist/types/tpaas-schemas/types/schemas/ILeaveWeather.d.ts +96 -0
  236. package/dist/types/tpaas-schemas/types/schemas/ILoadAd.d.ts +119 -0
  237. package/dist/types/tpaas-schemas/types/schemas/IViewArticle.d.ts +133 -0
  238. package/dist/types/tpaas-schemas/types/schemas/IViewAudioPage.d.ts +87 -0
  239. package/dist/types/tpaas-schemas/types/schemas/IViewError.d.ts +90 -0
  240. package/dist/types/tpaas-schemas/types/schemas/IViewFrontpage.d.ts +80 -0
  241. package/dist/types/tpaas-schemas/types/schemas/IViewHealthPage.d.ts +119 -0
  242. package/dist/types/tpaas-schemas/types/schemas/IViewLandingpage.d.ts +76 -0
  243. package/dist/types/tpaas-schemas/types/schemas/IViewListing.d.ts +118 -0
  244. package/dist/types/tpaas-schemas/types/schemas/IViewLockedArticle.d.ts +139 -0
  245. package/dist/types/tpaas-schemas/types/schemas/IViewLockedAudioPage.d.ts +95 -0
  246. package/dist/types/tpaas-schemas/types/schemas/IViewLockedPage.d.ts +94 -0
  247. package/dist/types/tpaas-schemas/types/schemas/IViewLockedVideoPage.d.ts +95 -0
  248. package/dist/types/tpaas-schemas/types/schemas/IViewPage.d.ts +86 -0
  249. package/dist/types/tpaas-schemas/types/schemas/IViewSchoolPage.d.ts +88 -0
  250. package/dist/types/tpaas-schemas/types/schemas/IViewSportsPage.d.ts +135 -0
  251. package/dist/types/tpaas-schemas/types/schemas/IViewTitle.d.ts +92 -0
  252. package/dist/types/tpaas-schemas/types/schemas/IViewVideoPage.d.ts +87 -0
  253. package/dist/types/tpaas-schemas/types/schemas/IViewWeather.d.ts +94 -0
  254. package/dist/types/tpaas-schemas/types/schemas/index.d.ts +63 -0
  255. package/dist/types/tpaas-schemas/types/templates/IBranded.d.ts +42 -0
  256. package/dist/types/tpaas-schemas/types/templates/IConsents.d.ts +34 -0
  257. package/dist/types/tpaas-schemas/types/templates/IContent.d.ts +56 -0
  258. package/dist/types/tpaas-schemas/types/templates/IDevice.d.ts +62 -0
  259. package/dist/types/tpaas-schemas/types/templates/IEngagement.d.ts +21 -0
  260. package/dist/types/tpaas-schemas/types/templates/IExperiments.d.ts +35 -0
  261. package/dist/types/tpaas-schemas/types/templates/IHealthFood.d.ts +55 -0
  262. package/dist/types/tpaas-schemas/types/templates/IHealthOrigin.d.ts +27 -0
  263. package/dist/types/tpaas-schemas/types/templates/IHealthPhysicalActivity.d.ts +36 -0
  264. package/dist/types/tpaas-schemas/types/templates/IHealthTraining.d.ts +74 -0
  265. package/dist/types/tpaas-schemas/types/templates/IHealthUserData.d.ts +25 -0
  266. package/dist/types/tpaas-schemas/types/templates/ILeave.d.ts +54 -0
  267. package/dist/types/tpaas-schemas/types/templates/ILeaveAudio.d.ts +37 -0
  268. package/dist/types/tpaas-schemas/types/templates/ILeaveStories.d.ts +34 -0
  269. package/dist/types/tpaas-schemas/types/templates/ILocation.d.ts +21 -0
  270. package/dist/types/tpaas-schemas/types/templates/IMetrics.d.ts +32 -0
  271. package/dist/types/tpaas-schemas/types/templates/IPageRef.d.ts +46 -0
  272. package/dist/types/tpaas-schemas/types/templates/IPlacement.d.ts +45 -0
  273. package/dist/types/tpaas-schemas/types/templates/IProvider.d.ts +73 -0
  274. package/dist/types/tpaas-schemas/types/templates/ISchool.d.ts +74 -0
  275. package/dist/types/tpaas-schemas/types/templates/ISession.d.ts +33 -0
  276. package/dist/types/tpaas-schemas/types/templates/ISports.d.ts +98 -0
  277. package/dist/types/tpaas-schemas/types/templates/ISportsUserFeatures.d.ts +28 -0
  278. package/dist/types/tpaas-schemas/types/templates/ITime.d.ts +32 -0
  279. package/dist/types/tpaas-schemas/types/templates/ITracker.d.ts +37 -0
  280. package/dist/types/tpaas-schemas/types/templates/IUser.d.ts +34 -0
  281. package/dist/types/tpaas-schemas/types/templates/IUtmTags.d.ts +38 -0
  282. package/dist/types/tpaas-schemas/types/templates/index.d.ts +27 -0
  283. package/dist/types/tpaas-schemas/types.d.ts +42 -0
  284. package/dist/types/tracker-proxy/consts.d.ts +2 -2
  285. package/dist/types/types.d.ts +21 -17
  286. package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/index.d.ts +1 -0
  287. package/dist/types/utils/xDomainId.d.ts +2 -0
  288. package/dist/types/version.d.ts +1 -1
  289. package/dist/types/visibility-observer/index.d.ts +6 -1
  290. package/dist/types/wrapper/engagement/ui-element/types.d.ts +1 -1
  291. package/dist/types/wrapper/types/base-event.d.ts +1 -1
  292. package/dist/types/wrapper/types/event.d.ts +4 -2
  293. package/dist/types/wrapper/types/utils.d.ts +1 -1
  294. package/dist/types/wrapper/utils/map-page-to-page-ref.d.ts +3 -0
  295. package/dist/types/wrapper/view/article/types.d.ts +1 -1
  296. package/dist/types/wrapper/view/frontpage/types.d.ts +1 -1
  297. package/dist/types/wrapper/view/listing/types.d.ts +1 -1
  298. package/dist/types/wrapper/view/loginposter/types.d.ts +1 -1
  299. package/dist/types/wrapper/view/page/types.d.ts +1 -1
  300. package/dist/types/wrapper/view/salesposter/types.d.ts +1 -1
  301. package/dist/types/wrapper/view/ui-element/types.d.ts +1 -1
  302. package/package.json +21 -20
  303. package/dist/cjs/Tracker.test-d.js +0 -76
  304. package/dist/ejs/Tracker.test-d.js +0 -71
  305. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.d.ts +0 -26
  306. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.js +0 -273
  307. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis-browser.js.map +0 -1
  308. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/cis.js.map +0 -1
  309. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/eventEmitter.js +0 -39
  310. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/eventEmitter.js.map +0 -1
  311. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/index.js.map +0 -1
  312. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/pulse-cookie.js.map +0 -1
  313. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/pulseStorage.d.ts +0 -36
  314. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/pulseStorage.js.map +0 -1
  315. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/storage.js +0 -21
  316. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/storage/storage.js.map +0 -1
  317. package/node_modules/@schibsted/pulse-cis-sync/dist/cjs/types.js.map +0 -1
  318. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis-browser.d.ts +0 -26
  319. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis-browser.js.map +0 -1
  320. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis.d.ts +0 -10
  321. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/cis.js.map +0 -1
  322. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/eventEmitter.d.ts +0 -14
  323. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/eventEmitter.js.map +0 -1
  324. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/index.d.ts +0 -4
  325. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/index.js.map +0 -1
  326. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/pulse-cookie.d.ts +0 -55
  327. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/pulse-cookie.js.map +0 -1
  328. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/pulseStorage.d.ts +0 -36
  329. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/pulseStorage.js.map +0 -1
  330. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/storage.d.ts +0 -6
  331. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/storage/storage.js.map +0 -1
  332. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.d.ts +0 -24
  333. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.js +0 -2
  334. package/node_modules/@schibsted/pulse-cis-sync/dist/ejs/types.js.map +0 -1
  335. package/node_modules/@schibsted/pulse-cis-sync/dist/types/cis.d.ts +0 -10
  336. package/node_modules/@schibsted/pulse-cis-sync/dist/types/eventEmitter.d.ts +0 -14
  337. package/node_modules/@schibsted/pulse-cis-sync/dist/types/index.d.ts +0 -4
  338. package/node_modules/@schibsted/pulse-cis-sync/dist/types/pulse-cookie.d.ts +0 -55
  339. package/node_modules/@schibsted/pulse-cis-sync/dist/types/storage/storage.d.ts +0 -6
  340. package/node_modules/@schibsted/pulse-cis-sync/dist/types/types.d.ts +0 -24
  341. package/node_modules/@schibsted/pulse-cis-sync/package.json +0 -44
  342. package/node_modules/@schibsted/pulse-utils/package.json +0 -36
  343. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/provider.js +0 -12
  344. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/referrer.js +0 -19
  345. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders/session.js +0 -114
  346. package/node_modules/@schibsted/tpaas-event-builder/dist/cjs/builders.js +0 -272
  347. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/provider.js +0 -9
  348. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/referrer.js +0 -15
  349. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/session.js +0 -108
  350. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders/trackerBuilder.js +0 -11
  351. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/builders.js +0 -215
  352. package/node_modules/@schibsted/tpaas-event-builder/dist/ejs/index.js +0 -1
  353. package/node_modules/@schibsted/tpaas-event-builder/dist/index.d.ts +0 -5403
  354. package/node_modules/@schibsted/tpaas-event-builder/package.json +0 -40
  355. package/node_modules/@schibsted/tpaas-schemas/dist/index.d.ts +0 -6176
  356. package/node_modules/@schibsted/tpaas-schemas/package.json +0 -35
  357. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/cis-sync}/types.js +0 -0
  358. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/anonymous.js +0 -0
  359. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/baseEvent.js +0 -0
  360. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/consents.js +0 -0
  361. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/experiments.js +0 -0
  362. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/pageviewId.js +0 -0
  363. /package/{node_modules/@schibsted/tpaas-event-builder/dist/cjs → dist/cjs/tpaas-builders}/builders/time.js +0 -0
  364. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/cookie-config.js +0 -0
  365. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/cookie.js +0 -0
  366. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/events.js +0 -0
  367. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/get.js +0 -0
  368. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/getRootDomain.js +0 -0
  369. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/merge.js +0 -0
  370. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/objects.js +0 -0
  371. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/omit.js +0 -0
  372. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/randomString.js +0 -0
  373. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/throttle.js +0 -0
  374. /package/{node_modules/@schibsted/pulse-utils/dist/cjs → dist/cjs/utils}/webApi.js +0 -0
  375. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/cis-sync}/types.js +0 -0
  376. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/anonymous.js +0 -0
  377. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/baseEvent.js +0 -0
  378. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/consents.js +0 -0
  379. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/experiments.js +0 -0
  380. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/pageviewId.js +0 -0
  381. /package/{node_modules/@schibsted/tpaas-event-builder/dist/ejs → dist/ejs/tpaas-builders}/builders/time.js +0 -0
  382. /package/dist/{types/Tracker.test-d.d.ts → ejs/tpaas-context/types.js} +0 -0
  383. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/cookie-config.js +0 -0
  384. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/cookie.js +0 -0
  385. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/events.js +0 -0
  386. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/get.js +0 -0
  387. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/getRootDomain.js +0 -0
  388. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/merge.js +0 -0
  389. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/objects.js +0 -0
  390. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/omit.js +0 -0
  391. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/randomString.js +0 -0
  392. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/throttle.js +0 -0
  393. /package/{node_modules/@schibsted/pulse-utils/dist/ejs → dist/ejs/utils}/webApi.js +0 -0
  394. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/cis.d.ts +0 -0
  395. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/eventEmitter.d.ts +0 -0
  396. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/index.d.ts +0 -0
  397. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/pulse-cookie.d.ts +0 -0
  398. /package/{node_modules/@schibsted/pulse-cis-sync/dist/cjs → dist/types/cis-sync}/types.d.ts +0 -0
  399. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/cookie-config.d.ts +0 -0
  400. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/cookie.d.ts +0 -0
  401. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/events.d.ts +0 -0
  402. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/get.d.ts +0 -0
  403. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/getRootDomain.d.ts +0 -0
  404. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/merge.d.ts +0 -0
  405. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/objects.d.ts +0 -0
  406. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/omit.d.ts +0 -0
  407. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/randomString.d.ts +0 -0
  408. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/throttle.d.ts +0 -0
  409. /package/{node_modules/@schibsted/pulse-utils/dist/types → dist/types/utils}/webApi.d.ts +0 -0
@@ -0,0 +1,238 @@
1
+ /* eslint-disable */
2
+
3
+ import type { IBranded } from '../templates/IBranded.d.ts';
4
+ import type { IConsents } from '../templates/IConsents.d.ts';
5
+ import type { IContent } from '../templates/IContent.d.ts';
6
+ import type { IDevice } from '../templates/IDevice.d.ts';
7
+ import type { IExperiments } from '../templates/IExperiments.d.ts';
8
+ import type { IMetrics } from '../templates/IMetrics.d.ts';
9
+ import type { IPageRef } from '../templates/IPageRef.d.ts';
10
+ import type { IProvider } from '../templates/IProvider.d.ts';
11
+ import type { ISession } from '../templates/ISession.d.ts';
12
+ import type { ITime } from '../templates/ITime.d.ts';
13
+ import type { ITracker } from '../templates/ITracker.d.ts';
14
+ import type { IUser } from '../templates/IUser.d.ts';
15
+ import type { IUtmTags } from '../templates/IUtmTags.d.ts';
16
+
17
+ /**
18
+ * Video usage and heartbeats.
19
+ */
20
+ export interface IEngagementVideo {
21
+ branded?: IBranded;
22
+ /**
23
+ * The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
24
+ * @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
25
+ * @example "1.2.3"
26
+ */
27
+ catalogVersion: string;
28
+ consents: IConsents;
29
+ device: IDevice;
30
+ /**
31
+ * The type of interaction.
32
+ */
33
+ engagement?: {
34
+ /**
35
+ * Semantic event type (e.g. "start" (first start), “pause”. "next", "stop" etc.).
36
+ */
37
+ engagementType?: 'Start' | 'Pause' | 'Resume' | 'Stop' | 'Cancel' | 'Error' | 'Seek' | 'Watch' | 'Load';
38
+ };
39
+ /**
40
+ * The unique identifier for the event.
41
+ * @format uuid
42
+ */
43
+ eventId: string;
44
+ /**
45
+ * The type of the event.
46
+ */
47
+ eventType: 'Engagement';
48
+ experiments?: IExperiments;
49
+ /**
50
+ * Type of user interaction with the video
51
+ */
52
+ interaction?: {
53
+ /**
54
+ * Wether the user is actively viewing the application or consuming content while the application is in the background.
55
+ */
56
+ appState: 'Foreground' | 'Background';
57
+ /**
58
+ * How the content is displayed in the application
59
+ */
60
+ displayMode: 'Normal' | 'Sticky' | 'Fullscreen' | 'Overlay' | 'Minimized' | 'PictureInPicture' | 'Floating';
61
+ /**
62
+ * True if the video is muted.
63
+ */
64
+ isMuted: boolean;
65
+ /**
66
+ * The number of times the video has automatically repeated itself.
67
+ */
68
+ loopCount?: number;
69
+ /**
70
+ * Identifies the entry path that led to the playback. Examples include direct playback, next/previous navigation etc
71
+ */
72
+ playEntry: string;
73
+ /**
74
+ * Describes what triggered playback. `None` indicates automatic continuation of an ongoing playback flow, such as Play Next or Stories advancing without user interaction
75
+ */
76
+ playTrigger: 'Autoplay' | 'Click' | 'Scoll' | 'None';
77
+ /**
78
+ * Indicates how the video started.
79
+ */
80
+ playType: 'Automatic' | 'Manual';
81
+ /**
82
+ * How the content is being consumed by the user
83
+ */
84
+ playbackDevice: 'Device' | 'Chromecast' | 'Airplay' | 'Carplay';
85
+ /**
86
+ * The current playback speed.
87
+ * @exclusiveMinimum 0
88
+ */
89
+ playbackSpeed?: number;
90
+ /**
91
+ * The offset of the current playback from the start of the video in milliseconds.
92
+ */
93
+ positionMs: number;
94
+ /**
95
+ * The playback position in the video where the current play segment started. For the first segment it equals the start position, and after a seek it equals the seek-from position.
96
+ */
97
+ prevPositionMs: number;
98
+ /**
99
+ * The current playback quality. High quality equals 1080p or more, medium equals between 480p and up to 1080p and low quality equals below 480p. This definition applies for both vertical and horizontal content.
100
+ */
101
+ quality?: 'High' | 'Medium' | 'low' | 'Unknown';
102
+ /**
103
+ * The playback position (in milliseconds) the user initiated the seek (timeline jump) from. Only included when engagement.type = "seek"
104
+ */
105
+ seekFromMs?: number;
106
+ /**
107
+ * The playback position (in milliseconds) the user sought to. Only included when engagement.type = "seek"
108
+ */
109
+ seekToMs?: number;
110
+ /**
111
+ * How much time user has spent on the playback (in milliseconds) regardless of seeking, pausing etc
112
+ */
113
+ viewtimeMs: number;
114
+ };
115
+ metrics?: IMetrics;
116
+ object: {
117
+ /**
118
+ * Numeric value of the video aspect ratio
119
+ */
120
+ aspectRatio: number;
121
+ /**
122
+ * The editorial category of this video
123
+ */
124
+ category: string;
125
+ /**
126
+ * The total duration of the video in milliseconds. Use -1 for live streams with unknown duration.
127
+ */
128
+ durationMs: number;
129
+ /**
130
+ * The size of the player.
131
+ */
132
+ elementSize?: 'XS' | 'S' | 'M' | 'L' | 'XL';
133
+ /**
134
+ * Which episode
135
+ */
136
+ episode?: string;
137
+ /**
138
+ * Video thumbnail from Stream to use in (Kilkaya) dashboards
139
+ */
140
+ imageUrl: string;
141
+ /**
142
+ * True if the video is an ad published through editorial CMS and not Xandr. Typical Brand Studio and Partnerstudio.
143
+ */
144
+ isAd: boolean;
145
+ /**
146
+ * True if the video has loop
147
+ */
148
+ isLoop: boolean;
149
+ /**
150
+ * True if video is sponsored.
151
+ */
152
+ isSponsored: boolean;
153
+ /**
154
+ * The name of the video.
155
+ */
156
+ name: string;
157
+ /**
158
+ * The unique ID for this video.
159
+ */
160
+ objectId: string;
161
+ /**
162
+ * The Stream newsroom and provider where the video is published
163
+ */
164
+ objectNamespace: string;
165
+ /**
166
+ * The unique SDRN for this video.
167
+ */
168
+ objectSdrn: string;
169
+ /**
170
+ * The type of the object.
171
+ */
172
+ objectType: 'Video';
173
+ /**
174
+ * Indicates how the video is configured to start
175
+ */
176
+ playTypeIntent: 'Automatic' | 'Manual';
177
+ /**
178
+ * The type of player exposed to the user
179
+ */
180
+ player: 'VideoPlayer' | 'StoriesPlayer' | 'AudioPlayer' | 'TtsPlayer';
181
+ /**
182
+ * A unique ID for this player instance.
183
+ */
184
+ playerId: string;
185
+ /**
186
+ * The ID of the playlist.
187
+ */
188
+ playlistId?: string;
189
+ /**
190
+ * The position of the video in the playlist.
191
+ * @minimum 0
192
+ */
193
+ queuePosition?: number;
194
+ /**
195
+ * Indicates the type of queue or playlist the video belongs to, such as editorially curated, user-created, or automatically generated queues.
196
+ */
197
+ queueType: 'Automatic' | 'UserCreated' | 'EditorialQueue';
198
+ /**
199
+ * Which season
200
+ */
201
+ season?: string;
202
+ /**
203
+ * Follow accesslevel from Stream (viewer access). Where there is no access level it is set to "Free"
204
+ */
205
+ streamAccessLevel: string;
206
+ /**
207
+ * Reflects the stream type as defined in Stream at the time of playback (live, VOD, waslive etc).
208
+ */
209
+ streamType: string;
210
+ tags?: string[];
211
+ /**
212
+ * Type of video. Fetched from content type in Stream.
213
+ */
214
+ variant: string;
215
+ };
216
+ page: {
217
+ content?: IContent;
218
+ info: IPageRef;
219
+ /**
220
+ * The pageviewID.
221
+ * @format uuid
222
+ */
223
+ pageviewId: string;
224
+ referrer?: IPageRef;
225
+ utm?: IUtmTags;
226
+ };
227
+ provider: IProvider;
228
+ /**
229
+ * URL to the JSON schema for this event.
230
+ * @format uri
231
+ * @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
232
+ */
233
+ schema: string;
234
+ session: ISession;
235
+ time: ITime;
236
+ tracker: ITracker;
237
+ user?: IUser;
238
+ }
@@ -0,0 +1,147 @@
1
+ /* eslint-disable */
2
+
3
+ import type { IConsents } from '../templates/IConsents.d.ts';
4
+ import type { IContent } from '../templates/IContent.d.ts';
5
+ import type { IDevice } from '../templates/IDevice.d.ts';
6
+ import type { IExperiments } from '../templates/IExperiments.d.ts';
7
+ import type { IPageRef } from '../templates/IPageRef.d.ts';
8
+ import type { IProvider } from '../templates/IProvider.d.ts';
9
+ import type { ISession } from '../templates/ISession.d.ts';
10
+ import type { ITime } from '../templates/ITime.d.ts';
11
+ import type { ITracker } from '../templates/ITracker.d.ts';
12
+ import type { IUser } from '../templates/IUser.d.ts';
13
+ import type { IUtmTags } from '../templates/IUtmTags.d.ts';
14
+
15
+ /**
16
+ * Events for ads from Xandr.
17
+ */
18
+ export interface IEngagementVideoAd {
19
+ /**
20
+ * The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
21
+ * @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
22
+ * @example "1.2.3"
23
+ */
24
+ catalogVersion: string;
25
+ consents: IConsents;
26
+ device: IDevice;
27
+ /**
28
+ * The type of interaction.
29
+ */
30
+ engagement?: {
31
+ /**
32
+ * Semantic event type.
33
+ */
34
+ engagementType: 'AdStart' | 'AdSkip' | 'AdStop';
35
+ };
36
+ /**
37
+ * The unique identifier for the event.
38
+ * @format uuid
39
+ */
40
+ eventId: string;
41
+ /**
42
+ * The type of the event.
43
+ */
44
+ eventType: 'Engagement';
45
+ experiments?: IExperiments;
46
+ /**
47
+ * Type of user interaction with the video ad
48
+ *
49
+ */
50
+ interaction?: {
51
+ /**
52
+ * True if the ad is muted.
53
+ */
54
+ isMuted: boolean;
55
+ /**
56
+ * Indicates how the ad playback was initiated.
57
+ */
58
+ playType: 'Automatic' | 'Manual';
59
+ /**
60
+ * Position (in milliseconds) for when the ad is skipped, stopped or completed.
61
+ */
62
+ positionMs: number;
63
+ };
64
+ object: {
65
+ /**
66
+ * Duration of this specific ad in milliseconds. If the duration is unknown or not provided by the ad server, the fallback is -1.
67
+ */
68
+ adDurationMs: number;
69
+ /**
70
+ * Ad product name used by SMS
71
+ */
72
+ adFormat: string;
73
+ /**
74
+ * The unique ID of this ad from the ad server.
75
+ */
76
+ adId: string;
77
+ /**
78
+ * Ad position (index) in ad playlist
79
+ */
80
+ adSequencePosition: number;
81
+ /**
82
+ * Milliseconds until the ad can be skipped.
83
+ */
84
+ adSkipOffsetMs?: number;
85
+ /**
86
+ * True if the ad is skippable.
87
+ */
88
+ adSkippable: boolean;
89
+ /**
90
+ * Indicates where the ad appears in the playback sequence (e.g. preroll, midroll, postroll, overlay). Describes the ad position relative to the video, not the ad’s creative type.
91
+ */
92
+ adSlot: 'Preroll' | 'Midroll' | 'Postroll' | 'Overlay';
93
+ /**
94
+ * The identifier of the asset the ad belongs to.
95
+ */
96
+ mediaAssetId: string;
97
+ /**
98
+ * The unique SDRN of the embedded mediaAsset (not ads from Xandr) ready to play in the player.
99
+ */
100
+ mediaAssetSdrn: string;
101
+ /**
102
+ * The type of media product the ad belongs to. Fetched from content type in Stream.
103
+ */
104
+ mediaAssetVariant: string;
105
+ /**
106
+ * The unique SDRN for this ad.
107
+ */
108
+ objectSdrn: string;
109
+ /**
110
+ * The type of the object.
111
+ */
112
+ objectType: 'VideoAd';
113
+ /**
114
+ * The type of player exposed to the user
115
+ */
116
+ player: 'VideoPlayer' | 'StoriesPlayer';
117
+ /**
118
+ * A unique ID for this player instance.
119
+ */
120
+ playerId: string;
121
+ };
122
+ page: {
123
+ content?: IContent;
124
+ info: IPageRef;
125
+ /**
126
+ * The pageviewID.
127
+ * @format uuid
128
+ */
129
+ pageviewId: string;
130
+ referrer?: IPageRef;
131
+ utm?: IUtmTags;
132
+ };
133
+ provider: IProvider;
134
+ /**
135
+ * URL to the JSON schema for this event.
136
+ * @format uri
137
+ * @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
138
+ */
139
+ schema: string;
140
+ session: ISession;
141
+ target?: {
142
+ info?: IPageRef;
143
+ };
144
+ time: ITime;
145
+ tracker: ITracker;
146
+ user?: IUser;
147
+ }
@@ -0,0 +1,91 @@
1
+ /* eslint-disable */
2
+
3
+ import type { IConsents } from '../templates/IConsents.d.ts';
4
+ import type { IContent } from '../templates/IContent.d.ts';
5
+ import type { IDevice } from '../templates/IDevice.d.ts';
6
+ import type { IEngagement } from '../templates/IEngagement.d.ts';
7
+ import type { IExperiments } from '../templates/IExperiments.d.ts';
8
+ import type { IMetrics } from '../templates/IMetrics.d.ts';
9
+ import type { IPageRef } from '../templates/IPageRef.d.ts';
10
+ import type { IPlacement } from '../templates/IPlacement.d.ts';
11
+ import type { IProvider } from '../templates/IProvider.d.ts';
12
+ import type { ISession } from '../templates/ISession.d.ts';
13
+ import type { ITime } from '../templates/ITime.d.ts';
14
+ import type { ITracker } from '../templates/ITracker.d.ts';
15
+ import type { IUser } from '../templates/IUser.d.ts';
16
+ import type { IUtmTags } from '../templates/IUtmTags.d.ts';
17
+
18
+ /**
19
+ * Interaction with a widget component.
20
+ */
21
+ export interface IEngagementWidget {
22
+ /**
23
+ * The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
24
+ * @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
25
+ * @example "1.2.3"
26
+ */
27
+ catalogVersion: string;
28
+ consents: IConsents;
29
+ device: IDevice;
30
+ engagement: IEngagement;
31
+ /**
32
+ * Event ID
33
+ * @format uuid
34
+ */
35
+ eventId: string;
36
+ /**
37
+ * The type of event.
38
+ */
39
+ eventType: 'Engagement';
40
+ experiments?: IExperiments;
41
+ metrics?: IMetrics;
42
+ object: {
43
+ /**
44
+ * The size of the component.
45
+ */
46
+ elementSize?: 'XS' | 'S' | 'M' | 'L' | 'XL';
47
+ /**
48
+ * The name of the component.
49
+ */
50
+ name: string;
51
+ /**
52
+ * The unique ID for this component.
53
+ */
54
+ objectId: string;
55
+ /**
56
+ * The unique SDRN for this component.
57
+ */
58
+ objectSdrn: string;
59
+ /**
60
+ * The type of the component.
61
+ */
62
+ objectType: 'Widget';
63
+ };
64
+ page: {
65
+ content?: IContent;
66
+ info: IPageRef;
67
+ /**
68
+ * The pageviewID.
69
+ * @format uuid
70
+ */
71
+ pageviewId: string;
72
+ referrer?: IPageRef;
73
+ utm?: IUtmTags;
74
+ };
75
+ placement?: IPlacement;
76
+ provider: IProvider;
77
+ /**
78
+ * The schema of the event.
79
+ * @format uri
80
+ * @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
81
+ */
82
+ schema: string;
83
+ session: ISession;
84
+ target?: {
85
+ content?: IContent;
86
+ info?: IPageRef;
87
+ };
88
+ time: ITime;
89
+ tracker: ITracker;
90
+ user?: IUser;
91
+ }
@@ -0,0 +1,96 @@
1
+ /* eslint-disable */
2
+
3
+ import type { IBranded } from '../templates/IBranded.d.ts';
4
+ import type { IConsents } from '../templates/IConsents.d.ts';
5
+ import type { IContent } from '../templates/IContent.d.ts';
6
+ import type { IDevice } from '../templates/IDevice.d.ts';
7
+ import type { IExperiments } from '../templates/IExperiments.d.ts';
8
+ import type { IMetrics } from '../templates/IMetrics.d.ts';
9
+ import type { IPageRef } from '../templates/IPageRef.d.ts';
10
+ import type { IProvider } from '../templates/IProvider.d.ts';
11
+ import type { ISession } from '../templates/ISession.d.ts';
12
+ import type { ITime } from '../templates/ITime.d.ts';
13
+ import type { ITracker } from '../templates/ITracker.d.ts';
14
+ import type { IUser } from '../templates/IUser.d.ts';
15
+ import type { IUtmTags } from '../templates/IUtmTags.d.ts';
16
+
17
+ /**
18
+ * Periodic engagement heartbeat for a commercial (branded) article, emitted at a fixed cadence while the reader is active, to capture the interval retention a single Leave event cannot. The article is identified by page.info.pageId.
19
+ */
20
+ export interface IHeartbeatCommercialArticle {
21
+ branded?: IBranded;
22
+ /**
23
+ * The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
24
+ * @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
25
+ * @example "1.2.3"
26
+ */
27
+ catalogVersion: string;
28
+ consents: IConsents;
29
+ device: IDevice;
30
+ /**
31
+ * The unique identifier for the event.
32
+ * @format uuid
33
+ */
34
+ eventId: string;
35
+ /**
36
+ * The type of the event.
37
+ */
38
+ eventType: 'Heartbeat';
39
+ experiments?: IExperiments;
40
+ /**
41
+ * Cumulative active reading time and reading depth at this heartbeat tick. The counters reset when the single-page app re-initialises. Not flushed on unload and silent in a hidden tab, so the last tick before exit can be missing.
42
+ */
43
+ heartbeat: {
44
+ /**
45
+ * Cumulative active reading time in milliseconds at this tick, on a 5000 ms grid. Activity is window focus, resize and scroll plus document.body focus, mousemove, mousedown, keydown and beforeunload, throttled to 500 ms.
46
+ * @minimum 5000
47
+ */
48
+ activeTimeMs: number;
49
+ /**
50
+ * Maximum absolute scroll offset in pixels reached at this tick. Same name and semantics as leave.maxPageScrollPosition, which likewise carries no lower bound.
51
+ */
52
+ maxPageScrollPosition?: number;
53
+ /**
54
+ * Maximum reading depth at this tick, in hundredths: the value times 100 is a whole number 0 to 100. Element coverage of body main, falling back to document.body, not scroll progress. A tick above 1.0 is discarded, not clamped.
55
+ * @minimum 0
56
+ * @maximum 1
57
+ */
58
+ maxPageViewPercentage?: number;
59
+ };
60
+ metrics?: IMetrics;
61
+ /**
62
+ * The object associated with the Schema
63
+ */
64
+ object: {
65
+ /**
66
+ * The type of the object.
67
+ */
68
+ objectType: 'CommercialArticle';
69
+ };
70
+ page: {
71
+ content?: IContent;
72
+ info: IPageRef;
73
+ /**
74
+ * The browser navigation that got the user to the current page.
75
+ */
76
+ navigationType: 'Navigate' | 'Reload' | 'BackForward' | 'Prerender' | 'Scroll' | 'Swipe' | 'DeepLink' | 'Push';
77
+ /**
78
+ * The pageviewID.
79
+ * @format uuid
80
+ */
81
+ pageviewId: string;
82
+ referrer?: IPageRef;
83
+ utm?: IUtmTags;
84
+ };
85
+ provider: IProvider;
86
+ /**
87
+ * URL to the JSON schema for this event.
88
+ * @format uri
89
+ * @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
90
+ */
91
+ schema: string;
92
+ session: ISession;
93
+ time: ITime;
94
+ tracker: ITracker;
95
+ user?: IUser;
96
+ }
@@ -0,0 +1,115 @@
1
+ /* eslint-disable */
2
+
3
+ import type { IConsents } from '../templates/IConsents.d.ts';
4
+ import type { IContent } from '../templates/IContent.d.ts';
5
+ import type { IDevice } from '../templates/IDevice.d.ts';
6
+ import type { IExperiments } from '../templates/IExperiments.d.ts';
7
+ import type { IPageRef } from '../templates/IPageRef.d.ts';
8
+ import type { IProvider } from '../templates/IProvider.d.ts';
9
+ import type { ISession } from '../templates/ISession.d.ts';
10
+ import type { ITime } from '../templates/ITime.d.ts';
11
+ import type { ITracker } from '../templates/ITracker.d.ts';
12
+ import type { IUser } from '../templates/IUser.d.ts';
13
+ import type { IUtmTags } from '../templates/IUtmTags.d.ts';
14
+
15
+ /**
16
+ * An ad creative that has become viewable to the user for a previously requested ad opportunity.
17
+ */
18
+ export interface IImpressionAd {
19
+ /**
20
+ * The version of the TPaaS schemas catalog that this particular schema belongs to. Semver format.
21
+ * @pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$
22
+ * @example "1.2.3"
23
+ */
24
+ catalogVersion: string;
25
+ consents: IConsents;
26
+ device: IDevice;
27
+ /**
28
+ * The unique identifier for the event.
29
+ * @format uuid
30
+ */
31
+ eventId: string;
32
+ /**
33
+ * The type of the event.
34
+ */
35
+ eventType: 'Impression';
36
+ experiments?: IExperiments;
37
+ object: {
38
+ /**
39
+ * Commercial ad format identifier.
40
+ * @example "Topboard"
41
+ */
42
+ adFormat?: string;
43
+ /**
44
+ * Creative identifier.
45
+ * @example "cr-ab12cd"
46
+ */
47
+ creativeId?: string;
48
+ /**
49
+ * Channel of demand.
50
+ * @example "direct"
51
+ */
52
+ demandChannel?: string;
53
+ /**
54
+ * Type of creative.
55
+ * @example "banner"
56
+ */
57
+ mediaType?: string;
58
+ /**
59
+ * The unique ID for this component.
60
+ */
61
+ objectId: string;
62
+ /**
63
+ * The unique SDRN for this component.
64
+ */
65
+ objectSdrn: string;
66
+ /**
67
+ * The type of the object.
68
+ */
69
+ objectType: 'Ad';
70
+ /**
71
+ * ID for a single ad opportunity in a placement on a page view, shared across all related ad lifecycle events.
72
+ * @example "opp-12345"
73
+ */
74
+ opportunityId?: string;
75
+ /**
76
+ * Source system to render the ad.
77
+ * @example "microsoft"
78
+ */
79
+ platform: string;
80
+ /**
81
+ * Creative size.
82
+ * @example "320x250"
83
+ */
84
+ size?: string;
85
+ };
86
+ page: {
87
+ content?: IContent;
88
+ info: IPageRef;
89
+ /**
90
+ * The pageviewID.
91
+ * @format uuid
92
+ */
93
+ pageviewId: string;
94
+ referrer?: IPageRef;
95
+ utm?: IUtmTags;
96
+ };
97
+ placement: {
98
+ /**
99
+ * Placement identifier (string).
100
+ * @example "adserver-placement-id"
101
+ */
102
+ placementId: string;
103
+ };
104
+ provider: IProvider;
105
+ /**
106
+ * URL to the JSON schema for this event.
107
+ * @format uri
108
+ * @pattern ^https://tpaas-schemas.schibsted.media/.+\.json$
109
+ */
110
+ schema: string;
111
+ session: ISession;
112
+ time: ITime;
113
+ tracker: ITracker;
114
+ user?: IUser;
115
+ }