@metamask-previews/notification-services-controller 0.0.0-preview-b09c2ed

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 (391) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE +20 -0
  3. package/README.md +15 -0
  4. package/dist/NotificationServicesController/NotificationServicesController.js +18 -0
  5. package/dist/NotificationServicesController/NotificationServicesController.js.map +1 -0
  6. package/dist/NotificationServicesController/NotificationServicesController.mjs +18 -0
  7. package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -0
  8. package/dist/NotificationServicesController/constants/constants.js +10 -0
  9. package/dist/NotificationServicesController/constants/constants.js.map +1 -0
  10. package/dist/NotificationServicesController/constants/constants.mjs +10 -0
  11. package/dist/NotificationServicesController/constants/constants.mjs.map +1 -0
  12. package/dist/NotificationServicesController/constants/index.js +27 -0
  13. package/dist/NotificationServicesController/constants/index.js.map +1 -0
  14. package/dist/NotificationServicesController/constants/index.mjs +27 -0
  15. package/dist/NotificationServicesController/constants/index.mjs.map +1 -0
  16. package/dist/NotificationServicesController/constants/notification-schema.js +20 -0
  17. package/dist/NotificationServicesController/constants/notification-schema.js.map +1 -0
  18. package/dist/NotificationServicesController/constants/notification-schema.mjs +20 -0
  19. package/dist/NotificationServicesController/constants/notification-schema.mjs.map +1 -0
  20. package/dist/NotificationServicesController/index.js +44 -0
  21. package/dist/NotificationServicesController/index.js.map +1 -0
  22. package/dist/NotificationServicesController/index.mjs +44 -0
  23. package/dist/NotificationServicesController/index.mjs.map +1 -0
  24. package/dist/NotificationServicesController/processors/index.js +22 -0
  25. package/dist/NotificationServicesController/processors/index.js.map +1 -0
  26. package/dist/NotificationServicesController/processors/index.mjs +22 -0
  27. package/dist/NotificationServicesController/processors/index.mjs.map +1 -0
  28. package/dist/NotificationServicesController/processors/process-feature-announcement.js +10 -0
  29. package/dist/NotificationServicesController/processors/process-feature-announcement.js.map +1 -0
  30. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs +10 -0
  31. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs.map +1 -0
  32. package/dist/NotificationServicesController/processors/process-notifications.js +13 -0
  33. package/dist/NotificationServicesController/processors/process-notifications.js.map +1 -0
  34. package/dist/NotificationServicesController/processors/process-notifications.mjs +13 -0
  35. package/dist/NotificationServicesController/processors/process-notifications.mjs.map +1 -0
  36. package/dist/NotificationServicesController/processors/process-onchain-notifications.js +8 -0
  37. package/dist/NotificationServicesController/processors/process-onchain-notifications.js.map +1 -0
  38. package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs +8 -0
  39. package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs.map +1 -0
  40. package/dist/NotificationServicesController/services/feature-announcements.js +14 -0
  41. package/dist/NotificationServicesController/services/feature-announcements.js.map +1 -0
  42. package/dist/NotificationServicesController/services/feature-announcements.mjs +14 -0
  43. package/dist/NotificationServicesController/services/feature-announcements.mjs.map +1 -0
  44. package/dist/NotificationServicesController/services/onchain-notifications.js +29 -0
  45. package/dist/NotificationServicesController/services/onchain-notifications.js.map +1 -0
  46. package/dist/NotificationServicesController/services/onchain-notifications.mjs +29 -0
  47. package/dist/NotificationServicesController/services/onchain-notifications.mjs.map +1 -0
  48. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js +2 -0
  49. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js.map +1 -0
  50. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs +2 -0
  51. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs.map +1 -0
  52. package/dist/NotificationServicesController/types/feature-announcement/index.js +5 -0
  53. package/dist/NotificationServicesController/types/feature-announcement/index.js.map +1 -0
  54. package/dist/NotificationServicesController/types/feature-announcement/index.mjs +5 -0
  55. package/dist/NotificationServicesController/types/feature-announcement/index.mjs.map +1 -0
  56. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js +2 -0
  57. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js.map +1 -0
  58. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs +2 -0
  59. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs.map +1 -0
  60. package/dist/NotificationServicesController/types/feature-announcement/type-links.js +2 -0
  61. package/dist/NotificationServicesController/types/feature-announcement/type-links.js.map +1 -0
  62. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs +2 -0
  63. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs.map +1 -0
  64. package/dist/NotificationServicesController/types/index.js +12 -0
  65. package/dist/NotificationServicesController/types/index.js.map +1 -0
  66. package/dist/NotificationServicesController/types/index.mjs +12 -0
  67. package/dist/NotificationServicesController/types/index.mjs.map +1 -0
  68. package/dist/NotificationServicesController/types/notification/index.js +3 -0
  69. package/dist/NotificationServicesController/types/notification/index.js.map +1 -0
  70. package/dist/NotificationServicesController/types/notification/index.mjs +3 -0
  71. package/dist/NotificationServicesController/types/notification/index.mjs.map +1 -0
  72. package/dist/NotificationServicesController/types/notification/notification.js +2 -0
  73. package/dist/NotificationServicesController/types/notification/notification.js.map +1 -0
  74. package/dist/NotificationServicesController/types/notification/notification.mjs +2 -0
  75. package/dist/NotificationServicesController/types/notification/notification.mjs.map +1 -0
  76. package/dist/NotificationServicesController/types/on-chain-notification/index.js +3 -0
  77. package/dist/NotificationServicesController/types/on-chain-notification/index.js.map +1 -0
  78. package/dist/NotificationServicesController/types/on-chain-notification/index.mjs +3 -0
  79. package/dist/NotificationServicesController/types/on-chain-notification/index.mjs.map +1 -0
  80. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.js +2 -0
  81. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.js.map +1 -0
  82. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs +2 -0
  83. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs.map +1 -0
  84. package/dist/NotificationServicesController/types/on-chain-notification/schema.js +1 -0
  85. package/dist/NotificationServicesController/types/on-chain-notification/schema.js.map +1 -0
  86. package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs +1 -0
  87. package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs.map +1 -0
  88. package/dist/NotificationServicesController/types/type-utils.js +1 -0
  89. package/dist/NotificationServicesController/types/type-utils.js.map +1 -0
  90. package/dist/NotificationServicesController/types/type-utils.mjs +1 -0
  91. package/dist/NotificationServicesController/types/type-utils.mjs.map +1 -0
  92. package/dist/NotificationServicesController/types/user-storage/index.js +3 -0
  93. package/dist/NotificationServicesController/types/user-storage/index.js.map +1 -0
  94. package/dist/NotificationServicesController/types/user-storage/index.mjs +3 -0
  95. package/dist/NotificationServicesController/types/user-storage/index.mjs.map +1 -0
  96. package/dist/NotificationServicesController/types/user-storage/user-storage.js +2 -0
  97. package/dist/NotificationServicesController/types/user-storage/user-storage.js.map +1 -0
  98. package/dist/NotificationServicesController/types/user-storage/user-storage.mjs +2 -0
  99. package/dist/NotificationServicesController/types/user-storage/user-storage.mjs.map +1 -0
  100. package/dist/NotificationServicesController/utils/utils.js +32 -0
  101. package/dist/NotificationServicesController/utils/utils.js.map +1 -0
  102. package/dist/NotificationServicesController/utils/utils.mjs +32 -0
  103. package/dist/NotificationServicesController/utils/utils.mjs.map +1 -0
  104. package/dist/NotificationServicesPushController/NotificationServicesPushController.js +34 -0
  105. package/dist/NotificationServicesPushController/NotificationServicesPushController.js.map +1 -0
  106. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +34 -0
  107. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -0
  108. package/dist/NotificationServicesPushController/constants.js +26 -0
  109. package/dist/NotificationServicesPushController/constants.js.map +1 -0
  110. package/dist/NotificationServicesPushController/constants.mjs +26 -0
  111. package/dist/NotificationServicesPushController/constants.mjs.map +1 -0
  112. package/dist/NotificationServicesPushController/index.js +49 -0
  113. package/dist/NotificationServicesPushController/index.js.map +1 -0
  114. package/dist/NotificationServicesPushController/index.mjs +49 -0
  115. package/dist/NotificationServicesPushController/index.mjs.map +1 -0
  116. package/dist/NotificationServicesPushController/services/endpoints.js +8 -0
  117. package/dist/NotificationServicesPushController/services/endpoints.js.map +1 -0
  118. package/dist/NotificationServicesPushController/services/endpoints.mjs +8 -0
  119. package/dist/NotificationServicesPushController/services/endpoints.mjs.map +1 -0
  120. package/dist/NotificationServicesPushController/services/push/index.js +1 -0
  121. package/dist/NotificationServicesPushController/services/push/index.js.map +1 -0
  122. package/dist/NotificationServicesPushController/services/push/index.mjs +1 -0
  123. package/dist/NotificationServicesPushController/services/push/index.mjs.map +1 -0
  124. package/dist/NotificationServicesPushController/services/push/push-web.js +37 -0
  125. package/dist/NotificationServicesPushController/services/push/push-web.js.map +1 -0
  126. package/dist/NotificationServicesPushController/services/push/push-web.mjs +37 -0
  127. package/dist/NotificationServicesPushController/services/push/push-web.mjs.map +1 -0
  128. package/dist/NotificationServicesPushController/services/services.js +43 -0
  129. package/dist/NotificationServicesPushController/services/services.js.map +1 -0
  130. package/dist/NotificationServicesPushController/services/services.mjs +43 -0
  131. package/dist/NotificationServicesPushController/services/services.mjs.map +1 -0
  132. package/dist/NotificationServicesPushController/types/firebase.js +2 -0
  133. package/dist/NotificationServicesPushController/types/firebase.js.map +1 -0
  134. package/dist/NotificationServicesPushController/types/firebase.mjs +2 -0
  135. package/dist/NotificationServicesPushController/types/firebase.mjs.map +1 -0
  136. package/dist/NotificationServicesPushController/types/index.js +3 -0
  137. package/dist/NotificationServicesPushController/types/index.js.map +1 -0
  138. package/dist/NotificationServicesPushController/types/index.mjs +3 -0
  139. package/dist/NotificationServicesPushController/types/index.mjs.map +1 -0
  140. package/dist/NotificationServicesPushController/utils/get-notification-data.js +14 -0
  141. package/dist/NotificationServicesPushController/utils/get-notification-data.js.map +1 -0
  142. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs +14 -0
  143. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +1 -0
  144. package/dist/NotificationServicesPushController/utils/get-notification-message.js +36 -0
  145. package/dist/NotificationServicesPushController/utils/get-notification-message.js.map +1 -0
  146. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +36 -0
  147. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +1 -0
  148. package/dist/NotificationServicesPushController/utils/index.js +46 -0
  149. package/dist/NotificationServicesPushController/utils/index.js.map +1 -0
  150. package/dist/NotificationServicesPushController/utils/index.mjs +46 -0
  151. package/dist/NotificationServicesPushController/utils/index.mjs.map +1 -0
  152. package/dist/chunk-232HZSEV.js +7 -0
  153. package/dist/chunk-232HZSEV.js.map +1 -0
  154. package/dist/chunk-26CCETCM.mjs +70 -0
  155. package/dist/chunk-26CCETCM.mjs.map +1 -0
  156. package/dist/chunk-3F4M3OUO.mjs +119 -0
  157. package/dist/chunk-3F4M3OUO.mjs.map +1 -0
  158. package/dist/chunk-3ZS2HAEG.js +1 -0
  159. package/dist/chunk-3ZS2HAEG.js.map +1 -0
  160. package/dist/chunk-4BTNTREI.mjs +1 -0
  161. package/dist/chunk-4BTNTREI.mjs.map +1 -0
  162. package/dist/chunk-4QXAPVW3.mjs +1 -0
  163. package/dist/chunk-4QXAPVW3.mjs.map +1 -0
  164. package/dist/chunk-52CALMRA.js +28 -0
  165. package/dist/chunk-52CALMRA.js.map +1 -0
  166. package/dist/chunk-52NKJDI2.mjs +93 -0
  167. package/dist/chunk-52NKJDI2.mjs.map +1 -0
  168. package/dist/chunk-5OYPOYXZ.mjs +802 -0
  169. package/dist/chunk-5OYPOYXZ.mjs.map +1 -0
  170. package/dist/chunk-5WWCWQCE.js +214 -0
  171. package/dist/chunk-5WWCWQCE.js.map +1 -0
  172. package/dist/chunk-6B5FOWRH.js +119 -0
  173. package/dist/chunk-6B5FOWRH.js.map +1 -0
  174. package/dist/chunk-6ZDVTRRT.mjs +9 -0
  175. package/dist/chunk-6ZDVTRRT.mjs.map +1 -0
  176. package/dist/chunk-7LWR54U7.js +7 -0
  177. package/dist/chunk-7LWR54U7.js.map +1 -0
  178. package/dist/chunk-7RM3YNTD.mjs +1 -0
  179. package/dist/chunk-7RM3YNTD.mjs.map +1 -0
  180. package/dist/chunk-A2RPVX47.mjs +1 -0
  181. package/dist/chunk-A2RPVX47.mjs.map +1 -0
  182. package/dist/chunk-B25TJ7KS.js +8 -0
  183. package/dist/chunk-B25TJ7KS.js.map +1 -0
  184. package/dist/chunk-B4ECJJ5C.mjs +7 -0
  185. package/dist/chunk-B4ECJJ5C.mjs.map +1 -0
  186. package/dist/chunk-BONB66A2.mjs +14 -0
  187. package/dist/chunk-BONB66A2.mjs.map +1 -0
  188. package/dist/chunk-CQ6CGSKZ.js +35 -0
  189. package/dist/chunk-CQ6CGSKZ.js.map +1 -0
  190. package/dist/chunk-D42BBXBM.mjs +28 -0
  191. package/dist/chunk-D42BBXBM.mjs.map +1 -0
  192. package/dist/chunk-DMH4NSLF.js +1 -0
  193. package/dist/chunk-DMH4NSLF.js.map +1 -0
  194. package/dist/chunk-DNTK4U5M.js +4300 -0
  195. package/dist/chunk-DNTK4U5M.js.map +1 -0
  196. package/dist/chunk-DY4ELDRQ.js +176 -0
  197. package/dist/chunk-DY4ELDRQ.js.map +1 -0
  198. package/dist/chunk-EJ52BDLB.js +55 -0
  199. package/dist/chunk-EJ52BDLB.js.map +1 -0
  200. package/dist/chunk-EQWVJX6K.mjs +91 -0
  201. package/dist/chunk-EQWVJX6K.mjs.map +1 -0
  202. package/dist/chunk-FFQNSBPU.js +31 -0
  203. package/dist/chunk-FFQNSBPU.js.map +1 -0
  204. package/dist/chunk-G52DNXFH.mjs +1 -0
  205. package/dist/chunk-G52DNXFH.mjs.map +1 -0
  206. package/dist/chunk-GETQWOTI.js +1 -0
  207. package/dist/chunk-GETQWOTI.js.map +1 -0
  208. package/dist/chunk-GFAESVZA.js +48 -0
  209. package/dist/chunk-GFAESVZA.js.map +1 -0
  210. package/dist/chunk-HPUQYDVC.js +1 -0
  211. package/dist/chunk-HPUQYDVC.js.map +1 -0
  212. package/dist/chunk-IDO4JFV5.mjs +1 -0
  213. package/dist/chunk-IDO4JFV5.mjs.map +1 -0
  214. package/dist/chunk-IKWNHNJQ.mjs +8 -0
  215. package/dist/chunk-IKWNHNJQ.mjs.map +1 -0
  216. package/dist/chunk-IOMDG67D.mjs +7 -0
  217. package/dist/chunk-IOMDG67D.mjs.map +1 -0
  218. package/dist/chunk-IPI7BAW3.js +1 -0
  219. package/dist/chunk-IPI7BAW3.js.map +1 -0
  220. package/dist/chunk-JLHFZ2UG.mjs +31 -0
  221. package/dist/chunk-JLHFZ2UG.mjs.map +1 -0
  222. package/dist/chunk-JQ7WKFCI.mjs +1 -0
  223. package/dist/chunk-JQ7WKFCI.mjs.map +1 -0
  224. package/dist/chunk-KTQP5UDT.mjs +4300 -0
  225. package/dist/chunk-KTQP5UDT.mjs.map +1 -0
  226. package/dist/chunk-LYEXYTOI.js +14 -0
  227. package/dist/chunk-LYEXYTOI.js.map +1 -0
  228. package/dist/chunk-NJBJIZLR.js +93 -0
  229. package/dist/chunk-NJBJIZLR.js.map +1 -0
  230. package/dist/chunk-NMLYB3XT.js +149 -0
  231. package/dist/chunk-NMLYB3XT.js.map +1 -0
  232. package/dist/chunk-ODI2BTKS.mjs +55 -0
  233. package/dist/chunk-ODI2BTKS.mjs.map +1 -0
  234. package/dist/chunk-OUPWMPLU.mjs +214 -0
  235. package/dist/chunk-OUPWMPLU.mjs.map +1 -0
  236. package/dist/chunk-PGMXFZ6Y.js +207 -0
  237. package/dist/chunk-PGMXFZ6Y.js.map +1 -0
  238. package/dist/chunk-PIZCE3JD.js +243 -0
  239. package/dist/chunk-PIZCE3JD.js.map +1 -0
  240. package/dist/chunk-PNCS6GEX.mjs +1 -0
  241. package/dist/chunk-PNCS6GEX.mjs.map +1 -0
  242. package/dist/chunk-PROWNV4M.js +1 -0
  243. package/dist/chunk-PROWNV4M.js.map +1 -0
  244. package/dist/chunk-QB5IFRLA.mjs +1 -0
  245. package/dist/chunk-QB5IFRLA.mjs.map +1 -0
  246. package/dist/chunk-QTK2RMF7.mjs +29 -0
  247. package/dist/chunk-QTK2RMF7.mjs.map +1 -0
  248. package/dist/chunk-RAUV5UV4.mjs +1 -0
  249. package/dist/chunk-RAUV5UV4.mjs.map +1 -0
  250. package/dist/chunk-RQWUD2FB.mjs +48 -0
  251. package/dist/chunk-RQWUD2FB.mjs.map +1 -0
  252. package/dist/chunk-SMKJEA45.mjs +243 -0
  253. package/dist/chunk-SMKJEA45.mjs.map +1 -0
  254. package/dist/chunk-SSWX2N73.mjs +207 -0
  255. package/dist/chunk-SSWX2N73.mjs.map +1 -0
  256. package/dist/chunk-TLX5QQK5.js +9 -0
  257. package/dist/chunk-TLX5QQK5.js.map +1 -0
  258. package/dist/chunk-TT56I53C.mjs +149 -0
  259. package/dist/chunk-TT56I53C.mjs.map +1 -0
  260. package/dist/chunk-U74Q3BRP.mjs +1 -0
  261. package/dist/chunk-U74Q3BRP.mjs.map +1 -0
  262. package/dist/chunk-UIRZIKC3.mjs +187 -0
  263. package/dist/chunk-UIRZIKC3.mjs.map +1 -0
  264. package/dist/chunk-UPVIT75F.js +29 -0
  265. package/dist/chunk-UPVIT75F.js.map +1 -0
  266. package/dist/chunk-V46WVGWN.js +70 -0
  267. package/dist/chunk-V46WVGWN.js.map +1 -0
  268. package/dist/chunk-V5HMYDWE.js +1 -0
  269. package/dist/chunk-V5HMYDWE.js.map +1 -0
  270. package/dist/chunk-VC6J62JI.mjs +176 -0
  271. package/dist/chunk-VC6J62JI.mjs.map +1 -0
  272. package/dist/chunk-VE4DTN4R.mjs +35 -0
  273. package/dist/chunk-VE4DTN4R.mjs.map +1 -0
  274. package/dist/chunk-VOZ7Y2OO.js +187 -0
  275. package/dist/chunk-VOZ7Y2OO.js.map +1 -0
  276. package/dist/chunk-WRYFIWNK.js +1 -0
  277. package/dist/chunk-WRYFIWNK.js.map +1 -0
  278. package/dist/chunk-XNBTOK6G.js +802 -0
  279. package/dist/chunk-XNBTOK6G.js.map +1 -0
  280. package/dist/chunk-XZEVRYUE.js +1 -0
  281. package/dist/chunk-XZEVRYUE.js.map +1 -0
  282. package/dist/chunk-ZBNBZN5H.js +1 -0
  283. package/dist/chunk-ZBNBZN5H.js.map +1 -0
  284. package/dist/chunk-ZMNXLHAC.js +91 -0
  285. package/dist/chunk-ZMNXLHAC.js.map +1 -0
  286. package/dist/chunk-ZV3DFBO4.js +1 -0
  287. package/dist/chunk-ZV3DFBO4.js.map +1 -0
  288. package/dist/index.js +43 -0
  289. package/dist/index.js.map +1 -0
  290. package/dist/index.mjs +43 -0
  291. package/dist/index.mjs.map +1 -0
  292. package/dist/tsconfig.build.tsbuildinfo +1 -0
  293. package/dist/types/NotificationServicesController/NotificationServicesController.d.ts +222 -0
  294. package/dist/types/NotificationServicesController/NotificationServicesController.d.ts.map +1 -0
  295. package/dist/types/NotificationServicesController/__fixtures__/index.d.ts +7 -0
  296. package/dist/types/NotificationServicesController/__fixtures__/index.d.ts.map +1 -0
  297. package/dist/types/NotificationServicesController/__fixtures__/mock-feature-announcements.d.ts +15 -0
  298. package/dist/types/NotificationServicesController/__fixtures__/mock-feature-announcements.d.ts.map +1 -0
  299. package/dist/types/NotificationServicesController/__fixtures__/mock-notification-trigger.d.ts +9 -0
  300. package/dist/types/NotificationServicesController/__fixtures__/mock-notification-trigger.d.ts.map +1 -0
  301. package/dist/types/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.ts +35 -0
  302. package/dist/types/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.ts.map +1 -0
  303. package/dist/types/NotificationServicesController/__fixtures__/mock-raw-notifications.d.ts +82 -0
  304. package/dist/types/NotificationServicesController/__fixtures__/mock-raw-notifications.d.ts.map +1 -0
  305. package/dist/types/NotificationServicesController/__fixtures__/mockResponses.d.ts +28 -0
  306. package/dist/types/NotificationServicesController/__fixtures__/mockResponses.d.ts.map +1 -0
  307. package/dist/types/NotificationServicesController/__fixtures__/mockServices.d.ts +12 -0
  308. package/dist/types/NotificationServicesController/__fixtures__/mockServices.d.ts.map +1 -0
  309. package/dist/types/NotificationServicesController/__fixtures__/test-utils.d.ts +14 -0
  310. package/dist/types/NotificationServicesController/__fixtures__/test-utils.d.ts.map +1 -0
  311. package/dist/types/NotificationServicesController/constants/constants.d.ts +3 -0
  312. package/dist/types/NotificationServicesController/constants/constants.d.ts.map +1 -0
  313. package/dist/types/NotificationServicesController/constants/index.d.ts +3 -0
  314. package/dist/types/NotificationServicesController/constants/index.d.ts.map +1 -0
  315. package/dist/types/NotificationServicesController/constants/notification-schema.d.ts +42 -0
  316. package/dist/types/NotificationServicesController/constants/notification-schema.d.ts.map +1 -0
  317. package/dist/types/NotificationServicesController/index.d.ts +6 -0
  318. package/dist/types/NotificationServicesController/index.d.ts.map +1 -0
  319. package/dist/types/NotificationServicesController/processors/index.d.ts +4 -0
  320. package/dist/types/NotificationServicesController/processors/index.d.ts.map +1 -0
  321. package/dist/types/NotificationServicesController/processors/process-feature-announcement.d.ts +19 -0
  322. package/dist/types/NotificationServicesController/processors/process-feature-announcement.d.ts.map +1 -0
  323. package/dist/types/NotificationServicesController/processors/process-notifications.d.ts +19 -0
  324. package/dist/types/NotificationServicesController/processors/process-notifications.d.ts.map +1 -0
  325. package/dist/types/NotificationServicesController/processors/process-onchain-notifications.d.ts +10 -0
  326. package/dist/types/NotificationServicesController/processors/process-onchain-notifications.d.ts.map +1 -0
  327. package/dist/types/NotificationServicesController/services/feature-announcements.d.ts +28 -0
  328. package/dist/types/NotificationServicesController/services/feature-announcements.d.ts.map +1 -0
  329. package/dist/types/NotificationServicesController/services/onchain-notifications.d.ts +62 -0
  330. package/dist/types/NotificationServicesController/services/onchain-notifications.d.ts.map +1 -0
  331. package/dist/types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts +30 -0
  332. package/dist/types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts.map +1 -0
  333. package/dist/types/NotificationServicesController/types/feature-announcement/index.d.ts +4 -0
  334. package/dist/types/NotificationServicesController/types/feature-announcement/index.d.ts.map +1 -0
  335. package/dist/types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts +38 -0
  336. package/dist/types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts.map +1 -0
  337. package/dist/types/NotificationServicesController/types/feature-announcement/type-links.d.ts +24 -0
  338. package/dist/types/NotificationServicesController/types/feature-announcement/type-links.d.ts.map +1 -0
  339. package/dist/types/NotificationServicesController/types/index.d.ts +5 -0
  340. package/dist/types/NotificationServicesController/types/index.d.ts.map +1 -0
  341. package/dist/types/NotificationServicesController/types/notification/index.d.ts +2 -0
  342. package/dist/types/NotificationServicesController/types/notification/index.d.ts.map +1 -0
  343. package/dist/types/NotificationServicesController/types/notification/notification.d.ts +25 -0
  344. package/dist/types/NotificationServicesController/types/notification/notification.d.ts.map +1 -0
  345. package/dist/types/NotificationServicesController/types/on-chain-notification/index.d.ts +2 -0
  346. package/dist/types/NotificationServicesController/types/on-chain-notification/index.d.ts.map +1 -0
  347. package/dist/types/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.ts +42 -0
  348. package/dist/types/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.ts.map +1 -0
  349. package/dist/types/NotificationServicesController/types/on-chain-notification/schema.d.ts +283 -0
  350. package/dist/types/NotificationServicesController/types/on-chain-notification/schema.d.ts.map +1 -0
  351. package/dist/types/NotificationServicesController/types/type-utils.d.ts +7 -0
  352. package/dist/types/NotificationServicesController/types/type-utils.d.ts.map +1 -0
  353. package/dist/types/NotificationServicesController/types/user-storage/index.d.ts +2 -0
  354. package/dist/types/NotificationServicesController/types/user-storage/index.d.ts.map +1 -0
  355. package/dist/types/NotificationServicesController/types/user-storage/user-storage.d.ts +26 -0
  356. package/dist/types/NotificationServicesController/types/user-storage/user-storage.d.ts.map +1 -0
  357. package/dist/types/NotificationServicesController/utils/utils.d.ts +144 -0
  358. package/dist/types/NotificationServicesController/utils/utils.d.ts.map +1 -0
  359. package/dist/types/NotificationServicesPushController/NotificationServicesPushController.d.ts +103 -0
  360. package/dist/types/NotificationServicesPushController/NotificationServicesPushController.d.ts.map +1 -0
  361. package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts +3 -0
  362. package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts.map +1 -0
  363. package/dist/types/NotificationServicesPushController/__fixtures__/mockResponse.d.ts +43 -0
  364. package/dist/types/NotificationServicesPushController/__fixtures__/mockResponse.d.ts.map +1 -0
  365. package/dist/types/NotificationServicesPushController/__fixtures__/mockServices.d.ts +9 -0
  366. package/dist/types/NotificationServicesPushController/__fixtures__/mockServices.d.ts.map +1 -0
  367. package/dist/types/NotificationServicesPushController/constants.d.ts +11 -0
  368. package/dist/types/NotificationServicesPushController/constants.d.ts.map +1 -0
  369. package/dist/types/NotificationServicesPushController/index.d.ts +5 -0
  370. package/dist/types/NotificationServicesPushController/index.d.ts.map +1 -0
  371. package/dist/types/NotificationServicesPushController/services/endpoints.d.ts +2 -0
  372. package/dist/types/NotificationServicesPushController/services/endpoints.d.ts.map +1 -0
  373. package/dist/types/NotificationServicesPushController/services/push/index.d.ts +6 -0
  374. package/dist/types/NotificationServicesPushController/services/push/index.d.ts.map +1 -0
  375. package/dist/types/NotificationServicesPushController/services/push/push-web.d.ts +32 -0
  376. package/dist/types/NotificationServicesPushController/services/push/push-web.d.ts.map +1 -0
  377. package/dist/types/NotificationServicesPushController/services/services.d.ts +95 -0
  378. package/dist/types/NotificationServicesPushController/services/services.d.ts.map +1 -0
  379. package/dist/types/NotificationServicesPushController/types/firebase.d.ts +53 -0
  380. package/dist/types/NotificationServicesPushController/types/firebase.d.ts.map +1 -0
  381. package/dist/types/NotificationServicesPushController/types/index.d.ts +2 -0
  382. package/dist/types/NotificationServicesPushController/types/index.d.ts.map +1 -0
  383. package/dist/types/NotificationServicesPushController/utils/get-notification-data.d.ts +42 -0
  384. package/dist/types/NotificationServicesPushController/utils/get-notification-data.d.ts.map +1 -0
  385. package/dist/types/NotificationServicesPushController/utils/get-notification-message.d.ts +67 -0
  386. package/dist/types/NotificationServicesPushController/utils/get-notification-message.d.ts.map +1 -0
  387. package/dist/types/NotificationServicesPushController/utils/index.d.ts +3 -0
  388. package/dist/types/NotificationServicesPushController/utils/index.d.ts.map +1 -0
  389. package/dist/types/index.d.ts +3 -0
  390. package/dist/types/index.d.ts.map +1 -0
  391. package/package.json +80 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+ var _chunkNMLYB3XTjs = require('../../chunk-NMLYB3XT.js');
9
+ require('../../chunk-NJBJIZLR.js');
10
+ require('../../chunk-B25TJ7KS.js');
11
+ require('../../chunk-DNTK4U5M.js');
12
+ require('../../chunk-UPVIT75F.js');
13
+ require('../../chunk-232HZSEV.js');
14
+ require('../../chunk-IPI7BAW3.js');
15
+ require('../../chunk-HPUQYDVC.js');
16
+ require('../../chunk-WRYFIWNK.js');
17
+ require('../../chunk-V5HMYDWE.js');
18
+ require('../../chunk-ZBNBZN5H.js');
19
+ require('../../chunk-PROWNV4M.js');
20
+ require('../../chunk-XZEVRYUE.js');
21
+ require('../../chunk-3ZS2HAEG.js');
22
+ require('../../chunk-ZV3DFBO4.js');
23
+ require('../../chunk-DMH4NSLF.js');
24
+ require('../../chunk-XNBTOK6G.js');
25
+ require('../../chunk-GFAESVZA.js');
26
+ require('../../chunk-LYEXYTOI.js');
27
+ require('../../chunk-ZMNXLHAC.js');
28
+ require('../../chunk-52CALMRA.js');
29
+ require('../../chunk-VOZ7Y2OO.js');
30
+ require('../../chunk-PIZCE3JD.js');
31
+ require('../../chunk-CQ6CGSKZ.js');
32
+ require('../../chunk-DY4ELDRQ.js');
33
+ require('../../chunk-TLX5QQK5.js');
34
+ require('../../chunk-V46WVGWN.js');
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+ exports.activatePushNotifications = _chunkNMLYB3XTjs.activatePushNotifications; exports.deactivatePushNotifications = _chunkNMLYB3XTjs.deactivatePushNotifications; exports.getPushNotificationLinks = _chunkNMLYB3XTjs.getPushNotificationLinks; exports.listenToPushNotifications = _chunkNMLYB3XTjs.listenToPushNotifications; exports.updateLinksAPI = _chunkNMLYB3XTjs.updateLinksAPI; exports.updateTriggerPushNotifications = _chunkNMLYB3XTjs.updateTriggerPushNotifications;
43
+ //# sourceMappingURL=services.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ import {
2
+ activatePushNotifications,
3
+ deactivatePushNotifications,
4
+ getPushNotificationLinks,
5
+ listenToPushNotifications,
6
+ updateLinksAPI,
7
+ updateTriggerPushNotifications
8
+ } from "../../chunk-TT56I53C.mjs";
9
+ import "../../chunk-52NKJDI2.mjs";
10
+ import "../../chunk-IKWNHNJQ.mjs";
11
+ import "../../chunk-KTQP5UDT.mjs";
12
+ import "../../chunk-QTK2RMF7.mjs";
13
+ import "../../chunk-B4ECJJ5C.mjs";
14
+ import "../../chunk-4QXAPVW3.mjs";
15
+ import "../../chunk-JQ7WKFCI.mjs";
16
+ import "../../chunk-IDO4JFV5.mjs";
17
+ import "../../chunk-A2RPVX47.mjs";
18
+ import "../../chunk-4BTNTREI.mjs";
19
+ import "../../chunk-QB5IFRLA.mjs";
20
+ import "../../chunk-U74Q3BRP.mjs";
21
+ import "../../chunk-G52DNXFH.mjs";
22
+ import "../../chunk-7RM3YNTD.mjs";
23
+ import "../../chunk-PNCS6GEX.mjs";
24
+ import "../../chunk-5OYPOYXZ.mjs";
25
+ import "../../chunk-RQWUD2FB.mjs";
26
+ import "../../chunk-BONB66A2.mjs";
27
+ import "../../chunk-EQWVJX6K.mjs";
28
+ import "../../chunk-D42BBXBM.mjs";
29
+ import "../../chunk-UIRZIKC3.mjs";
30
+ import "../../chunk-SMKJEA45.mjs";
31
+ import "../../chunk-VE4DTN4R.mjs";
32
+ import "../../chunk-VC6J62JI.mjs";
33
+ import "../../chunk-6ZDVTRRT.mjs";
34
+ import "../../chunk-26CCETCM.mjs";
35
+ export {
36
+ activatePushNotifications,
37
+ deactivatePushNotifications,
38
+ getPushNotificationLinks,
39
+ listenToPushNotifications,
40
+ updateLinksAPI,
41
+ updateTriggerPushNotifications
42
+ };
43
+ //# sourceMappingURL=services.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";require('../../chunk-GETQWOTI.js');
2
+ //# sourceMappingURL=firebase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import "../../chunk-RAUV5UV4.mjs";
2
+ //# sourceMappingURL=firebase.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,3 @@
1
+ "use strict";require('../../chunk-7LWR54U7.js');
2
+ require('../../chunk-GETQWOTI.js');
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import "../../chunk-IOMDG67D.mjs";
2
+ import "../../chunk-RAUV5UV4.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkEJ52BDLBjs = require('../../chunk-EJ52BDLB.js');
7
+ require('../../chunk-V46WVGWN.js');
8
+
9
+
10
+
11
+
12
+
13
+ exports.calcTokenAmount = _chunkEJ52BDLBjs.calcTokenAmount; exports.formatAmount = _chunkEJ52BDLBjs.formatAmount; exports.getAmount = _chunkEJ52BDLBjs.getAmount; exports.getLeadingZeroCount = _chunkEJ52BDLBjs.getLeadingZeroCount;
14
+ //# sourceMappingURL=get-notification-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import {
2
+ calcTokenAmount,
3
+ formatAmount,
4
+ getAmount,
5
+ getLeadingZeroCount
6
+ } from "../../chunk-ODI2BTKS.mjs";
7
+ import "../../chunk-26CCETCM.mjs";
8
+ export {
9
+ calcTokenAmount,
10
+ formatAmount,
11
+ getAmount,
12
+ getLeadingZeroCount
13
+ };
14
+ //# sourceMappingURL=get-notification-data.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,36 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkPGMXFZ6Yjs = require('../../chunk-PGMXFZ6Y.js');
6
+ require('../../chunk-EJ52BDLB.js');
7
+ require('../../chunk-DNTK4U5M.js');
8
+ require('../../chunk-UPVIT75F.js');
9
+ require('../../chunk-232HZSEV.js');
10
+ require('../../chunk-IPI7BAW3.js');
11
+ require('../../chunk-HPUQYDVC.js');
12
+ require('../../chunk-WRYFIWNK.js');
13
+ require('../../chunk-V5HMYDWE.js');
14
+ require('../../chunk-ZBNBZN5H.js');
15
+ require('../../chunk-PROWNV4M.js');
16
+ require('../../chunk-XZEVRYUE.js');
17
+ require('../../chunk-3ZS2HAEG.js');
18
+ require('../../chunk-ZV3DFBO4.js');
19
+ require('../../chunk-DMH4NSLF.js');
20
+ require('../../chunk-XNBTOK6G.js');
21
+ require('../../chunk-GFAESVZA.js');
22
+ require('../../chunk-LYEXYTOI.js');
23
+ require('../../chunk-ZMNXLHAC.js');
24
+ require('../../chunk-52CALMRA.js');
25
+ require('../../chunk-VOZ7Y2OO.js');
26
+ require('../../chunk-PIZCE3JD.js');
27
+ require('../../chunk-CQ6CGSKZ.js');
28
+ require('../../chunk-DY4ELDRQ.js');
29
+ require('../../chunk-TLX5QQK5.js');
30
+ require('../../chunk-V46WVGWN.js');
31
+
32
+
33
+
34
+
35
+ exports.createOnChainPushNotificationMessage = _chunkPGMXFZ6Yjs.createOnChainPushNotificationMessage; exports.createOnChainPushNotificationMessages = _chunkPGMXFZ6Yjs.createOnChainPushNotificationMessages; exports.isOnChainNotification = _chunkPGMXFZ6Yjs.isOnChainNotification;
36
+ //# sourceMappingURL=get-notification-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import {
2
+ createOnChainPushNotificationMessage,
3
+ createOnChainPushNotificationMessages,
4
+ isOnChainNotification
5
+ } from "../../chunk-SSWX2N73.mjs";
6
+ import "../../chunk-ODI2BTKS.mjs";
7
+ import "../../chunk-KTQP5UDT.mjs";
8
+ import "../../chunk-QTK2RMF7.mjs";
9
+ import "../../chunk-B4ECJJ5C.mjs";
10
+ import "../../chunk-4QXAPVW3.mjs";
11
+ import "../../chunk-JQ7WKFCI.mjs";
12
+ import "../../chunk-IDO4JFV5.mjs";
13
+ import "../../chunk-A2RPVX47.mjs";
14
+ import "../../chunk-4BTNTREI.mjs";
15
+ import "../../chunk-QB5IFRLA.mjs";
16
+ import "../../chunk-U74Q3BRP.mjs";
17
+ import "../../chunk-G52DNXFH.mjs";
18
+ import "../../chunk-7RM3YNTD.mjs";
19
+ import "../../chunk-PNCS6GEX.mjs";
20
+ import "../../chunk-5OYPOYXZ.mjs";
21
+ import "../../chunk-RQWUD2FB.mjs";
22
+ import "../../chunk-BONB66A2.mjs";
23
+ import "../../chunk-EQWVJX6K.mjs";
24
+ import "../../chunk-D42BBXBM.mjs";
25
+ import "../../chunk-UIRZIKC3.mjs";
26
+ import "../../chunk-SMKJEA45.mjs";
27
+ import "../../chunk-VE4DTN4R.mjs";
28
+ import "../../chunk-VC6J62JI.mjs";
29
+ import "../../chunk-6ZDVTRRT.mjs";
30
+ import "../../chunk-26CCETCM.mjs";
31
+ export {
32
+ createOnChainPushNotificationMessage,
33
+ createOnChainPushNotificationMessages,
34
+ isOnChainNotification
35
+ };
36
+ //# sourceMappingURL=get-notification-message.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,46 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-FFQNSBPU.js');
2
+
3
+
4
+
5
+
6
+ var _chunkPGMXFZ6Yjs = require('../../chunk-PGMXFZ6Y.js');
7
+
8
+
9
+
10
+
11
+
12
+ var _chunkEJ52BDLBjs = require('../../chunk-EJ52BDLB.js');
13
+ require('../../chunk-DNTK4U5M.js');
14
+ require('../../chunk-UPVIT75F.js');
15
+ require('../../chunk-232HZSEV.js');
16
+ require('../../chunk-IPI7BAW3.js');
17
+ require('../../chunk-HPUQYDVC.js');
18
+ require('../../chunk-WRYFIWNK.js');
19
+ require('../../chunk-V5HMYDWE.js');
20
+ require('../../chunk-ZBNBZN5H.js');
21
+ require('../../chunk-PROWNV4M.js');
22
+ require('../../chunk-XZEVRYUE.js');
23
+ require('../../chunk-3ZS2HAEG.js');
24
+ require('../../chunk-ZV3DFBO4.js');
25
+ require('../../chunk-DMH4NSLF.js');
26
+ require('../../chunk-XNBTOK6G.js');
27
+ require('../../chunk-GFAESVZA.js');
28
+ require('../../chunk-LYEXYTOI.js');
29
+ require('../../chunk-ZMNXLHAC.js');
30
+ require('../../chunk-52CALMRA.js');
31
+ require('../../chunk-VOZ7Y2OO.js');
32
+ require('../../chunk-PIZCE3JD.js');
33
+ require('../../chunk-CQ6CGSKZ.js');
34
+ require('../../chunk-DY4ELDRQ.js');
35
+ require('../../chunk-TLX5QQK5.js');
36
+ require('../../chunk-V46WVGWN.js');
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+ exports.calcTokenAmount = _chunkEJ52BDLBjs.calcTokenAmount; exports.createOnChainPushNotificationMessage = _chunkPGMXFZ6Yjs.createOnChainPushNotificationMessage; exports.createOnChainPushNotificationMessages = _chunkPGMXFZ6Yjs.createOnChainPushNotificationMessages; exports.formatAmount = _chunkEJ52BDLBjs.formatAmount; exports.getAmount = _chunkEJ52BDLBjs.getAmount; exports.getLeadingZeroCount = _chunkEJ52BDLBjs.getLeadingZeroCount; exports.isOnChainNotification = _chunkPGMXFZ6Yjs.isOnChainNotification;
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ import "../../chunk-JLHFZ2UG.mjs";
2
+ import {
3
+ createOnChainPushNotificationMessage,
4
+ createOnChainPushNotificationMessages,
5
+ isOnChainNotification
6
+ } from "../../chunk-SSWX2N73.mjs";
7
+ import {
8
+ calcTokenAmount,
9
+ formatAmount,
10
+ getAmount,
11
+ getLeadingZeroCount
12
+ } from "../../chunk-ODI2BTKS.mjs";
13
+ import "../../chunk-KTQP5UDT.mjs";
14
+ import "../../chunk-QTK2RMF7.mjs";
15
+ import "../../chunk-B4ECJJ5C.mjs";
16
+ import "../../chunk-4QXAPVW3.mjs";
17
+ import "../../chunk-JQ7WKFCI.mjs";
18
+ import "../../chunk-IDO4JFV5.mjs";
19
+ import "../../chunk-A2RPVX47.mjs";
20
+ import "../../chunk-4BTNTREI.mjs";
21
+ import "../../chunk-QB5IFRLA.mjs";
22
+ import "../../chunk-U74Q3BRP.mjs";
23
+ import "../../chunk-G52DNXFH.mjs";
24
+ import "../../chunk-7RM3YNTD.mjs";
25
+ import "../../chunk-PNCS6GEX.mjs";
26
+ import "../../chunk-5OYPOYXZ.mjs";
27
+ import "../../chunk-RQWUD2FB.mjs";
28
+ import "../../chunk-BONB66A2.mjs";
29
+ import "../../chunk-EQWVJX6K.mjs";
30
+ import "../../chunk-D42BBXBM.mjs";
31
+ import "../../chunk-UIRZIKC3.mjs";
32
+ import "../../chunk-SMKJEA45.mjs";
33
+ import "../../chunk-VE4DTN4R.mjs";
34
+ import "../../chunk-VC6J62JI.mjs";
35
+ import "../../chunk-6ZDVTRRT.mjs";
36
+ import "../../chunk-26CCETCM.mjs";
37
+ export {
38
+ calcTokenAmount,
39
+ createOnChainPushNotificationMessage,
40
+ createOnChainPushNotificationMessages,
41
+ formatAmount,
42
+ getAmount,
43
+ getLeadingZeroCount,
44
+ isOnChainNotification
45
+ };
46
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/NotificationServicesController/types/index.ts
2
+ var types_exports = {};
3
+
4
+
5
+
6
+ exports.types_exports = types_exports;
7
+ //# sourceMappingURL=chunk-232HZSEV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/NotificationServicesController/types/index.ts"],"names":[],"mappings":";AAAA","sourcesContent":["export * from './feature-announcement';\nexport * from './notification';\nexport * from './on-chain-notification';\nexport * from './user-storage';\n"]}
@@ -0,0 +1,70 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined")
11
+ return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __commonJS = (cb, mod) => function __require2() {
15
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ };
17
+ var __export = (target, all) => {
18
+ for (var name in all)
19
+ __defProp(target, name, { get: all[name], enumerable: true });
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (let key of __getOwnPropNames(from))
24
+ if (!__hasOwnProp.call(to, key) && key !== except)
25
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
+ }
27
+ return to;
28
+ };
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
30
+ // If the importer is in node compatibility mode or this is not an ESM
31
+ // file that has been converted to a CommonJS file using a Babel-
32
+ // compatible transform (i.e. "__esModule" has not been set), then set
33
+ // "default" to the CommonJS "module.exports" for node compatibility.
34
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
35
+ mod
36
+ ));
37
+ var __accessCheck = (obj, member, msg) => {
38
+ if (!member.has(obj))
39
+ throw TypeError("Cannot " + msg);
40
+ };
41
+ var __privateGet = (obj, member, getter) => {
42
+ __accessCheck(obj, member, "read from private field");
43
+ return getter ? getter.call(obj) : member.get(obj);
44
+ };
45
+ var __privateAdd = (obj, member, value) => {
46
+ if (member.has(obj))
47
+ throw TypeError("Cannot add the same private member more than once");
48
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
49
+ };
50
+ var __privateSet = (obj, member, value, setter) => {
51
+ __accessCheck(obj, member, "write to private field");
52
+ setter ? setter.call(obj, value) : member.set(obj, value);
53
+ return value;
54
+ };
55
+ var __privateMethod = (obj, member, method) => {
56
+ __accessCheck(obj, member, "access private method");
57
+ return method;
58
+ };
59
+
60
+ export {
61
+ __require,
62
+ __commonJS,
63
+ __export,
64
+ __toESM,
65
+ __privateGet,
66
+ __privateAdd,
67
+ __privateSet,
68
+ __privateMethod
69
+ };
70
+ //# sourceMappingURL=chunk-26CCETCM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,119 @@
1
+ import {
2
+ utils_exports
3
+ } from "./chunk-JLHFZ2UG.mjs";
4
+ import {
5
+ types_exports
6
+ } from "./chunk-IOMDG67D.mjs";
7
+ import {
8
+ NotificationServicesPushController
9
+ } from "./chunk-OUPWMPLU.mjs";
10
+ import {
11
+ REGISTRATION_TOKENS_ENDPOINT
12
+ } from "./chunk-IKWNHNJQ.mjs";
13
+ import {
14
+ require_nock
15
+ } from "./chunk-KTQP5UDT.mjs";
16
+ import {
17
+ __export,
18
+ __toESM
19
+ } from "./chunk-26CCETCM.mjs";
20
+
21
+ // src/NotificationServicesPushController/index.ts
22
+ var NotificationServicesPushController_exports = {};
23
+ __export(NotificationServicesPushController_exports, {
24
+ Mocks: () => fixtures_exports,
25
+ NotificationServicesPushController: () => NotificationServicesPushController,
26
+ Types: () => types_exports,
27
+ Utils: () => utils_exports
28
+ });
29
+
30
+ // src/NotificationServicesPushController/__fixtures__/index.ts
31
+ var fixtures_exports = {};
32
+ __export(fixtures_exports, {
33
+ MOCK_FCM_RESPONSE: () => MOCK_FCM_RESPONSE,
34
+ MOCK_LINKS_RESPONSE: () => MOCK_LINKS_RESPONSE,
35
+ MOCK_REG_TOKEN: () => MOCK_REG_TOKEN,
36
+ getMockCreateFCMRegistrationTokenResponse: () => getMockCreateFCMRegistrationTokenResponse,
37
+ getMockDeleteFCMRegistrationTokenResponse: () => getMockDeleteFCMRegistrationTokenResponse,
38
+ getMockRetrievePushNotificationLinksResponse: () => getMockRetrievePushNotificationLinksResponse,
39
+ getMockUpdatePushNotificationLinksResponse: () => getMockUpdatePushNotificationLinksResponse,
40
+ mockEndpointGetPushNotificationLinks: () => mockEndpointGetPushNotificationLinks,
41
+ mockEndpointUpdatePushNotificationLinks: () => mockEndpointUpdatePushNotificationLinks
42
+ });
43
+
44
+ // src/NotificationServicesPushController/__fixtures__/mockResponse.ts
45
+ var MOCK_REG_TOKEN = "REG_TOKEN";
46
+ var MOCK_LINKS_RESPONSE = {
47
+ // eslint-disable-next-line @typescript-eslint/naming-convention
48
+ trigger_ids: ["1", "2", "3"],
49
+ // eslint-disable-next-line @typescript-eslint/naming-convention
50
+ registration_tokens: [
51
+ { token: "reg_token_1", platform: "portfolio" },
52
+ { token: "reg_token_2", platform: "extension" }
53
+ ]
54
+ };
55
+ var getMockRetrievePushNotificationLinksResponse = () => {
56
+ return {
57
+ url: REGISTRATION_TOKENS_ENDPOINT,
58
+ requestMethod: "GET",
59
+ response: MOCK_LINKS_RESPONSE
60
+ };
61
+ };
62
+ var getMockUpdatePushNotificationLinksResponse = () => {
63
+ return {
64
+ url: REGISTRATION_TOKENS_ENDPOINT,
65
+ requestMethod: "POST",
66
+ response: null
67
+ };
68
+ };
69
+ var MOCK_FCM_RESPONSE = {
70
+ name: "",
71
+ token: "fcm-token",
72
+ web: {
73
+ endpoint: "",
74
+ p256dh: "",
75
+ auth: "",
76
+ applicationPubKey: ""
77
+ }
78
+ };
79
+ var getMockCreateFCMRegistrationTokenResponse = () => {
80
+ return {
81
+ url: /^https:\/\/fcmregistrations\.googleapis\.com\/v1\/projects\/.*$/u,
82
+ requestMethod: "POST",
83
+ response: MOCK_FCM_RESPONSE
84
+ };
85
+ };
86
+ var getMockDeleteFCMRegistrationTokenResponse = () => {
87
+ return {
88
+ url: /^https:\/\/fcmregistrations\.googleapis\.com\/v1\/projects\/.*$/u,
89
+ requestMethod: "POST",
90
+ response: {}
91
+ };
92
+ };
93
+
94
+ // src/NotificationServicesPushController/__fixtures__/mockServices.ts
95
+ var import_nock = __toESM(require_nock());
96
+ var mockEndpointGetPushNotificationLinks = (mockReply) => {
97
+ const mockResponse = getMockRetrievePushNotificationLinksResponse();
98
+ const reply = mockReply ?? {
99
+ status: 200,
100
+ body: mockResponse.response
101
+ };
102
+ const mockEndpoint = (0, import_nock.default)(mockResponse.url).get("").reply(reply.status, reply.body);
103
+ return mockEndpoint;
104
+ };
105
+ var mockEndpointUpdatePushNotificationLinks = (mockReply) => {
106
+ const mockResponse = getMockUpdatePushNotificationLinksResponse();
107
+ const reply = mockReply ?? {
108
+ status: 200,
109
+ body: mockResponse.response
110
+ };
111
+ const mockEndpoint = (0, import_nock.default)(mockResponse.url).post("").reply(reply.status);
112
+ return mockEndpoint;
113
+ };
114
+
115
+ export {
116
+ fixtures_exports,
117
+ NotificationServicesPushController_exports
118
+ };
119
+ //# sourceMappingURL=chunk-3F4M3OUO.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/NotificationServicesPushController/index.ts","../src/NotificationServicesPushController/__fixtures__/index.ts","../src/NotificationServicesPushController/__fixtures__/mockResponse.ts","../src/NotificationServicesPushController/__fixtures__/mockServices.ts"],"sourcesContent":["export * from './NotificationServicesPushController';\nexport * as Types from './types';\nexport * as Utils from './utils';\nexport * as Mocks from './__fixtures__';\n","export * from './mockResponse';\nexport * from './mockServices';\n","import { REGISTRATION_TOKENS_ENDPOINT } from '../services/endpoints';\nimport type { LinksResult } from '../services/services';\n\ntype MockResponse = {\n url: string | RegExp;\n requestMethod: 'GET' | 'POST' | 'PUT';\n response: unknown;\n};\n\nexport const MOCK_REG_TOKEN = 'REG_TOKEN';\nexport const MOCK_LINKS_RESPONSE: LinksResult = {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n trigger_ids: ['1', '2', '3'],\n // eslint-disable-next-line @typescript-eslint/naming-convention\n registration_tokens: [\n { token: 'reg_token_1', platform: 'portfolio' },\n { token: 'reg_token_2', platform: 'extension' },\n ],\n};\n\nexport const getMockRetrievePushNotificationLinksResponse = () => {\n return {\n url: REGISTRATION_TOKENS_ENDPOINT,\n requestMethod: 'GET',\n response: MOCK_LINKS_RESPONSE,\n } satisfies MockResponse;\n};\n\nexport const getMockUpdatePushNotificationLinksResponse = () => {\n return {\n url: REGISTRATION_TOKENS_ENDPOINT,\n requestMethod: 'POST',\n response: null,\n } satisfies MockResponse;\n};\n\nexport const MOCK_FCM_RESPONSE = {\n name: '',\n token: 'fcm-token',\n web: {\n endpoint: '',\n p256dh: '',\n auth: '',\n applicationPubKey: '',\n },\n};\n\nexport const getMockCreateFCMRegistrationTokenResponse = () => {\n return {\n url: /^https:\\/\\/fcmregistrations\\.googleapis\\.com\\/v1\\/projects\\/.*$/u,\n requestMethod: 'POST',\n response: MOCK_FCM_RESPONSE,\n } satisfies MockResponse;\n};\n\nexport const getMockDeleteFCMRegistrationTokenResponse = () => {\n return {\n url: /^https:\\/\\/fcmregistrations\\.googleapis\\.com\\/v1\\/projects\\/.*$/u,\n requestMethod: 'POST',\n response: {},\n } satisfies MockResponse;\n};\n","import nock from 'nock';\n\nimport {\n getMockRetrievePushNotificationLinksResponse,\n getMockUpdatePushNotificationLinksResponse,\n} from './mockResponse';\n\ntype MockReply = {\n status: nock.StatusCode;\n body?: nock.Body;\n};\n\nexport const mockEndpointGetPushNotificationLinks = (mockReply?: MockReply) => {\n const mockResponse = getMockRetrievePushNotificationLinksResponse();\n const reply = mockReply ?? {\n status: 200,\n body: mockResponse.response,\n };\n\n const mockEndpoint = nock(mockResponse.url)\n .get('')\n .reply(reply.status, reply.body);\n\n return mockEndpoint;\n};\n\nexport const mockEndpointUpdatePushNotificationLinks = (\n mockReply?: MockReply,\n) => {\n const mockResponse = getMockUpdatePushNotificationLinksResponse();\n const reply = mockReply ?? {\n status: 200,\n body: mockResponse.response,\n };\n\n const mockEndpoint = nock(mockResponse.url).post('').reply(reply.status);\n\n return mockEndpoint;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSO,IAAM,iBAAiB;AACvB,IAAM,sBAAmC;AAAA;AAAA,EAE9C,aAAa,CAAC,KAAK,KAAK,GAAG;AAAA;AAAA,EAE3B,qBAAqB;AAAA,IACnB,EAAE,OAAO,eAAe,UAAU,YAAY;AAAA,IAC9C,EAAE,OAAO,eAAe,UAAU,YAAY;AAAA,EAChD;AACF;AAEO,IAAM,+CAA+C,MAAM;AAChE,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,6CAA6C,MAAM;AAC9D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,oBAAoB;AAAA,EAC/B,MAAM;AAAA,EACN,OAAO;AAAA,EACP,KAAK;AAAA,IACH,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,mBAAmB;AAAA,EACrB;AACF;AAEO,IAAM,4CAA4C,MAAM;AAC7D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU;AAAA,EACZ;AACF;AAEO,IAAM,4CAA4C,MAAM;AAC7D,SAAO;AAAA,IACL,KAAK;AAAA,IACL,eAAe;AAAA,IACf,UAAU,CAAC;AAAA,EACb;AACF;;;AC7DA,kBAAiB;AAYV,IAAM,uCAAuC,CAAC,cAA0B;AAC7E,QAAM,eAAe,6CAA6C;AAClE,QAAM,QAAQ,aAAa;AAAA,IACzB,QAAQ;AAAA,IACR,MAAM,aAAa;AAAA,EACrB;AAEA,QAAM,mBAAe,YAAAA,SAAK,aAAa,GAAG,EACvC,IAAI,EAAE,EACN,MAAM,MAAM,QAAQ,MAAM,IAAI;AAEjC,SAAO;AACT;AAEO,IAAM,0CAA0C,CACrD,cACG;AACH,QAAM,eAAe,2CAA2C;AAChE,QAAM,QAAQ,aAAa;AAAA,IACzB,QAAQ;AAAA,IACR,MAAM,aAAa;AAAA,EACrB;AAEA,QAAM,mBAAe,YAAAA,SAAK,aAAa,GAAG,EAAE,KAAK,EAAE,EAAE,MAAM,MAAM,MAAM;AAEvE,SAAO;AACT;","names":["nock"]}
@@ -0,0 +1 @@
1
+ "use strict";//# sourceMappingURL=chunk-3ZS2HAEG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-4BTNTREI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-4QXAPVW3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,28 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/NotificationServicesController/processors/process-feature-announcement.ts
2
+ var ONE_DAY_MS = 1e3 * 60 * 60 * 24;
3
+ var shouldAutoExpire = (oldDate) => {
4
+ const differenceInTime = Date.now() - oldDate.getTime();
5
+ const differenceInDays = differenceInTime / ONE_DAY_MS;
6
+ return differenceInDays >= 90;
7
+ };
8
+ function isFeatureAnnouncementRead(notification, readPlatformNotificationsList) {
9
+ if (readPlatformNotificationsList.includes(notification.id)) {
10
+ return true;
11
+ }
12
+ return shouldAutoExpire(new Date(notification.createdAt));
13
+ }
14
+ function processFeatureAnnouncement(notification) {
15
+ return {
16
+ type: notification.type,
17
+ id: notification.data.id,
18
+ createdAt: new Date(notification.createdAt).toISOString(),
19
+ data: notification.data,
20
+ isRead: false
21
+ };
22
+ }
23
+
24
+
25
+
26
+
27
+ exports.isFeatureAnnouncementRead = isFeatureAnnouncementRead; exports.processFeatureAnnouncement = processFeatureAnnouncement;
28
+ //# sourceMappingURL=chunk-52CALMRA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/NotificationServicesController/processors/process-feature-announcement.ts"],"names":[],"mappings":";AAGA,IAAM,aAAa,MAAO,KAAK,KAAK;AAEpC,IAAM,mBAAmB,CAAC,YAAkB;AAC1C,QAAM,mBAAmB,KAAK,IAAI,IAAI,QAAQ,QAAQ;AACtD,QAAM,mBAAmB,mBAAmB;AAC5C,SAAO,oBAAoB;AAC7B;AAUO,SAAS,0BACd,cACA,+BACS;AACT,MAAI,8BAA8B,SAAS,aAAa,EAAE,GAAG;AAC3D,WAAO;AAAA,EACT;AACA,SAAO,iBAAiB,IAAI,KAAK,aAAa,SAAS,CAAC;AAC1D;AAQO,SAAS,2BACd,cACe;AACf,SAAO;AAAA,IACL,MAAM,aAAa;AAAA,IACnB,IAAI,aAAa,KAAK;AAAA,IACtB,WAAW,IAAI,KAAK,aAAa,SAAS,EAAE,YAAY;AAAA,IACxD,MAAM,aAAa;AAAA,IACnB,QAAQ;AAAA,EACV;AACF","sourcesContent":["import type { FeatureAnnouncementRawNotification } from '../types/feature-announcement/feature-announcement';\nimport type { INotification } from '../types/notification/notification';\n\nconst ONE_DAY_MS = 1000 * 60 * 60 * 24;\n\nconst shouldAutoExpire = (oldDate: Date) => {\n const differenceInTime = Date.now() - oldDate.getTime();\n const differenceInDays = differenceInTime / ONE_DAY_MS;\n return differenceInDays >= 90;\n};\n\n/**\n * Checks if a feature announcement should be read.\n * Checks feature announcement state (from param), as well as if the notification is \"expired\"\n *\n * @param notification - notification to check\n * @param readPlatformNotificationsList - list of read notifications\n * @returns boolean if notification should be marked as read or unread\n */\nexport function isFeatureAnnouncementRead(\n notification: Pick<INotification, 'id' | 'createdAt'>,\n readPlatformNotificationsList: string[],\n): boolean {\n if (readPlatformNotificationsList.includes(notification.id)) {\n return true;\n }\n return shouldAutoExpire(new Date(notification.createdAt));\n}\n\n/**\n * Processes a feature announcement into a shared/normalised notification shape.\n *\n * @param notification - raw feature announcement\n * @returns a normalised feature announcement\n */\nexport function processFeatureAnnouncement(\n notification: FeatureAnnouncementRawNotification,\n): INotification {\n return {\n type: notification.type,\n id: notification.data.id,\n createdAt: new Date(notification.createdAt).toISOString(),\n data: notification.data,\n isRead: false,\n };\n}\n"]}