@metamask-previews/notification-services-controller 0.5.0-preview-9edcf0e0 → 0.5.0-preview-9d310688

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 (714) hide show
  1. package/dist/NotificationServicesController/NotificationServicesController.cjs +803 -0
  2. package/dist/NotificationServicesController/NotificationServicesController.cjs.map +1 -0
  3. package/dist/{types/NotificationServicesController/NotificationServicesController.d.ts → NotificationServicesController/NotificationServicesController.d.cts} +7 -7
  4. package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +1 -0
  5. package/dist/NotificationServicesController/NotificationServicesController.d.mts +238 -0
  6. package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +1 -0
  7. package/dist/NotificationServicesController/NotificationServicesController.mjs +779 -17
  8. package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -1
  9. package/dist/NotificationServicesController/__fixtures__/index.cjs +22 -0
  10. package/dist/NotificationServicesController/__fixtures__/index.cjs.map +1 -0
  11. package/dist/NotificationServicesController/__fixtures__/index.d.cts +6 -0
  12. package/dist/NotificationServicesController/__fixtures__/index.d.cts.map +1 -0
  13. package/dist/NotificationServicesController/__fixtures__/index.d.mts +6 -0
  14. package/dist/NotificationServicesController/__fixtures__/index.d.mts.map +1 -0
  15. package/dist/NotificationServicesController/__fixtures__/index.mjs +6 -0
  16. package/dist/NotificationServicesController/__fixtures__/index.mjs.map +1 -0
  17. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.cjs +210 -0
  18. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.cjs.map +1 -0
  19. package/dist/{types/NotificationServicesController/__fixtures__/mock-feature-announcements.d.ts → NotificationServicesController/__fixtures__/mock-feature-announcements.d.cts} +3 -3
  20. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.cts.map +1 -0
  21. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.mts +15 -0
  22. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.mts.map +1 -0
  23. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.mjs +205 -0
  24. package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.mjs.map +1 -0
  25. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.cjs +22 -0
  26. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.cjs.map +1 -0
  27. package/dist/{types/NotificationServicesController/__fixtures__/mock-notification-trigger.d.ts → NotificationServicesController/__fixtures__/mock-notification-trigger.d.cts} +2 -2
  28. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.cts.map +1 -0
  29. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.mts +9 -0
  30. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.mts.map +1 -0
  31. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.mjs +18 -0
  32. package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.mjs.map +1 -0
  33. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.cjs +82 -0
  34. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.cjs.map +1 -0
  35. package/dist/{types/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.ts → NotificationServicesController/__fixtures__/mock-notification-user-storage.d.cts} +3 -3
  36. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.cts.map +1 -0
  37. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.mts +35 -0
  38. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.mts.map +1 -0
  39. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.mjs +76 -0
  40. package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.mjs.map +1 -0
  41. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.cjs +624 -0
  42. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.cjs.map +1 -0
  43. package/dist/{types/NotificationServicesController/__fixtures__/mock-raw-notifications.d.ts → NotificationServicesController/__fixtures__/mock-raw-notifications.d.cts} +2 -2
  44. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.cts.map +1 -0
  45. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.mts +82 -0
  46. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.mts.map +1 -0
  47. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.mjs +605 -0
  48. package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.mjs.map +1 -0
  49. package/dist/NotificationServicesController/__fixtures__/mockResponses.cjs +50 -0
  50. package/dist/NotificationServicesController/__fixtures__/mockResponses.cjs.map +1 -0
  51. package/dist/{types/NotificationServicesController/__fixtures__/mockResponses.d.ts → NotificationServicesController/__fixtures__/mockResponses.d.cts} +5 -5
  52. package/dist/NotificationServicesController/__fixtures__/mockResponses.d.cts.map +1 -0
  53. package/dist/NotificationServicesController/__fixtures__/mockResponses.d.mts +28 -0
  54. package/dist/NotificationServicesController/__fixtures__/mockResponses.d.mts.map +1 -0
  55. package/dist/NotificationServicesController/__fixtures__/mockResponses.mjs +42 -0
  56. package/dist/NotificationServicesController/__fixtures__/mockResponses.mjs.map +1 -0
  57. package/dist/NotificationServicesController/__fixtures__/mockServices.cjs +56 -0
  58. package/dist/NotificationServicesController/__fixtures__/mockServices.cjs.map +1 -0
  59. package/dist/{types/NotificationServicesController/__fixtures__/mockServices.d.ts → NotificationServicesController/__fixtures__/mockServices.d.cts} +2 -2
  60. package/dist/NotificationServicesController/__fixtures__/mockServices.d.cts.map +1 -0
  61. package/dist/NotificationServicesController/__fixtures__/mockServices.d.mts +12 -0
  62. package/dist/NotificationServicesController/__fixtures__/mockServices.d.mts.map +1 -0
  63. package/dist/NotificationServicesController/__fixtures__/mockServices.mjs +52 -0
  64. package/dist/NotificationServicesController/__fixtures__/mockServices.mjs.map +1 -0
  65. package/dist/NotificationServicesController/__fixtures__/test-utils.cjs +31 -0
  66. package/dist/NotificationServicesController/__fixtures__/test-utils.cjs.map +1 -0
  67. package/dist/{types/NotificationServicesController/__fixtures__/test-utils.d.ts → NotificationServicesController/__fixtures__/test-utils.d.cts} +1 -1
  68. package/dist/NotificationServicesController/__fixtures__/test-utils.d.cts.map +1 -0
  69. package/dist/NotificationServicesController/__fixtures__/test-utils.d.mts +14 -0
  70. package/dist/NotificationServicesController/__fixtures__/test-utils.d.mts.map +1 -0
  71. package/dist/NotificationServicesController/__fixtures__/test-utils.mjs +27 -0
  72. package/dist/NotificationServicesController/__fixtures__/test-utils.mjs.map +1 -0
  73. package/dist/NotificationServicesController/constants/constants.cjs +7 -0
  74. package/dist/NotificationServicesController/constants/constants.cjs.map +1 -0
  75. package/dist/{types/NotificationServicesController/constants/constants.d.ts → NotificationServicesController/constants/constants.d.cts} +1 -1
  76. package/dist/NotificationServicesController/constants/constants.d.cts.map +1 -0
  77. package/dist/NotificationServicesController/constants/constants.d.mts +3 -0
  78. package/dist/NotificationServicesController/constants/constants.d.mts.map +1 -0
  79. package/dist/NotificationServicesController/constants/constants.mjs +3 -9
  80. package/dist/NotificationServicesController/constants/constants.mjs.map +1 -1
  81. package/dist/NotificationServicesController/constants/index.cjs +19 -0
  82. package/dist/NotificationServicesController/constants/index.cjs.map +1 -0
  83. package/dist/NotificationServicesController/constants/index.d.cts +3 -0
  84. package/dist/NotificationServicesController/constants/index.d.cts.map +1 -0
  85. package/dist/NotificationServicesController/constants/index.d.mts +3 -0
  86. package/dist/NotificationServicesController/constants/index.d.mts.map +1 -0
  87. package/dist/NotificationServicesController/constants/index.mjs +2 -28
  88. package/dist/NotificationServicesController/constants/index.mjs.map +1 -1
  89. package/dist/NotificationServicesController/constants/notification-schema.cjs +170 -0
  90. package/dist/NotificationServicesController/constants/notification-schema.cjs.map +1 -0
  91. package/dist/{types/NotificationServicesController/constants/notification-schema.d.ts → NotificationServicesController/constants/notification-schema.d.cts} +2 -2
  92. package/dist/NotificationServicesController/constants/notification-schema.d.cts.map +1 -0
  93. package/dist/NotificationServicesController/constants/notification-schema.d.mts +48 -0
  94. package/dist/NotificationServicesController/constants/notification-schema.d.mts.map +1 -0
  95. package/dist/NotificationServicesController/constants/notification-schema.mjs +165 -20
  96. package/dist/NotificationServicesController/constants/notification-schema.mjs.map +1 -1
  97. package/dist/NotificationServicesController/index.cjs +46 -0
  98. package/dist/NotificationServicesController/index.cjs.map +1 -0
  99. package/dist/NotificationServicesController/index.d.cts +14 -0
  100. package/dist/NotificationServicesController/index.d.cts.map +1 -0
  101. package/dist/NotificationServicesController/index.d.mts +14 -0
  102. package/dist/NotificationServicesController/index.d.mts.map +1 -0
  103. package/dist/NotificationServicesController/index.mjs +13 -86
  104. package/dist/NotificationServicesController/index.mjs.map +1 -1
  105. package/dist/NotificationServicesController/processors/index.cjs +20 -0
  106. package/dist/NotificationServicesController/processors/index.cjs.map +1 -0
  107. package/dist/NotificationServicesController/processors/index.d.cts +4 -0
  108. package/dist/NotificationServicesController/processors/index.d.cts.map +1 -0
  109. package/dist/NotificationServicesController/processors/index.d.mts +4 -0
  110. package/dist/NotificationServicesController/processors/index.d.mts.map +1 -0
  111. package/dist/NotificationServicesController/processors/index.mjs +3 -21
  112. package/dist/NotificationServicesController/processors/index.mjs.map +1 -1
  113. package/dist/NotificationServicesController/processors/process-feature-announcement.cjs +41 -0
  114. package/dist/{chunk-52CALMRA.js.map → NotificationServicesController/processors/process-feature-announcement.cjs.map} +1 -1
  115. package/dist/{types/NotificationServicesController/processors/process-feature-announcement.d.ts → NotificationServicesController/processors/process-feature-announcement.d.cts} +3 -3
  116. package/dist/NotificationServicesController/processors/process-feature-announcement.d.cts.map +1 -0
  117. package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts +19 -0
  118. package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts.map +1 -0
  119. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs +34 -8
  120. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs.map +1 -1
  121. package/dist/NotificationServicesController/processors/process-notifications.cjs +50 -0
  122. package/dist/NotificationServicesController/processors/process-notifications.cjs.map +1 -0
  123. package/dist/{types/NotificationServicesController/processors/process-notifications.d.ts → NotificationServicesController/processors/process-notifications.d.cts} +2 -2
  124. package/dist/NotificationServicesController/processors/process-notifications.d.cts.map +1 -0
  125. package/dist/NotificationServicesController/processors/process-notifications.d.mts +19 -0
  126. package/dist/NotificationServicesController/processors/process-notifications.d.mts.map +1 -0
  127. package/dist/NotificationServicesController/processors/process-notifications.mjs +44 -12
  128. package/dist/NotificationServicesController/processors/process-notifications.mjs.map +1 -1
  129. package/dist/NotificationServicesController/processors/process-onchain-notifications.cjs +19 -0
  130. package/dist/NotificationServicesController/processors/process-onchain-notifications.cjs.map +1 -0
  131. package/dist/{types/NotificationServicesController/processors/process-onchain-notifications.d.ts → NotificationServicesController/processors/process-onchain-notifications.d.cts} +3 -3
  132. package/dist/NotificationServicesController/processors/process-onchain-notifications.d.cts.map +1 -0
  133. package/dist/NotificationServicesController/processors/process-onchain-notifications.d.mts +10 -0
  134. package/dist/NotificationServicesController/processors/process-onchain-notifications.d.mts.map +1 -0
  135. package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs +14 -7
  136. package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs.map +1 -1
  137. package/dist/NotificationServicesController/services/feature-announcements.cjs +97 -0
  138. package/dist/NotificationServicesController/services/feature-announcements.cjs.map +1 -0
  139. package/dist/{types/NotificationServicesController/services/feature-announcements.d.ts → NotificationServicesController/services/feature-announcements.d.cts} +4 -4
  140. package/dist/NotificationServicesController/services/feature-announcements.d.cts.map +1 -0
  141. package/dist/NotificationServicesController/services/feature-announcements.d.mts +28 -0
  142. package/dist/NotificationServicesController/services/feature-announcements.d.mts.map +1 -0
  143. package/dist/NotificationServicesController/services/feature-announcements.mjs +91 -12
  144. package/dist/NotificationServicesController/services/feature-announcements.mjs.map +1 -1
  145. package/dist/NotificationServicesController/services/onchain-notifications.cjs +195 -0
  146. package/dist/NotificationServicesController/services/onchain-notifications.cjs.map +1 -0
  147. package/dist/{types/NotificationServicesController/services/onchain-notifications.d.ts → NotificationServicesController/services/onchain-notifications.d.cts} +3 -3
  148. package/dist/NotificationServicesController/services/onchain-notifications.d.cts.map +1 -0
  149. package/dist/NotificationServicesController/services/onchain-notifications.d.mts +62 -0
  150. package/dist/NotificationServicesController/services/onchain-notifications.d.mts.map +1 -0
  151. package/dist/NotificationServicesController/services/onchain-notifications.mjs +190 -29
  152. package/dist/NotificationServicesController/services/onchain-notifications.mjs.map +1 -1
  153. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs +3 -0
  154. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs.map +1 -0
  155. package/dist/{types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts → NotificationServicesController/types/feature-announcement/feature-announcement.d.cts} +3 -3
  156. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.cts.map +1 -0
  157. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts +32 -0
  158. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts.map +1 -0
  159. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs +1 -1
  160. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs.map +1 -1
  161. package/dist/NotificationServicesController/types/feature-announcement/index.cjs +20 -0
  162. package/dist/NotificationServicesController/types/feature-announcement/index.cjs.map +1 -0
  163. package/dist/NotificationServicesController/types/feature-announcement/index.d.cts +4 -0
  164. package/dist/NotificationServicesController/types/feature-announcement/index.d.cts.map +1 -0
  165. package/dist/NotificationServicesController/types/feature-announcement/index.d.mts +4 -0
  166. package/dist/NotificationServicesController/types/feature-announcement/index.d.mts.map +1 -0
  167. package/dist/NotificationServicesController/types/feature-announcement/index.mjs +3 -4
  168. package/dist/NotificationServicesController/types/feature-announcement/index.mjs.map +1 -1
  169. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs +3 -0
  170. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs.map +1 -0
  171. package/dist/{types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts → NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts} +3 -3
  172. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts.map +1 -0
  173. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts +39 -0
  174. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts.map +1 -0
  175. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs +1 -1
  176. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs.map +1 -1
  177. package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs +3 -0
  178. package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs.map +1 -0
  179. package/dist/{types/NotificationServicesController/types/feature-announcement/type-links.d.ts → NotificationServicesController/types/feature-announcement/type-links.d.cts} +1 -1
  180. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.cts.map +1 -0
  181. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts +29 -0
  182. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts.map +1 -0
  183. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs +1 -1
  184. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs.map +1 -1
  185. package/dist/NotificationServicesController/types/index.cjs +21 -0
  186. package/dist/NotificationServicesController/types/index.cjs.map +1 -0
  187. package/dist/NotificationServicesController/types/index.d.cts +5 -0
  188. package/dist/NotificationServicesController/types/index.d.cts.map +1 -0
  189. package/dist/NotificationServicesController/types/index.d.mts +5 -0
  190. package/dist/NotificationServicesController/types/index.d.mts.map +1 -0
  191. package/dist/NotificationServicesController/types/index.mjs +4 -11
  192. package/dist/NotificationServicesController/types/index.mjs.map +1 -1
  193. package/dist/NotificationServicesController/types/notification/index.cjs +18 -0
  194. package/dist/NotificationServicesController/types/notification/index.cjs.map +1 -0
  195. package/dist/NotificationServicesController/types/notification/index.d.cts +2 -0
  196. package/dist/NotificationServicesController/types/notification/index.d.cts.map +1 -0
  197. package/dist/NotificationServicesController/types/notification/index.d.mts +2 -0
  198. package/dist/NotificationServicesController/types/notification/index.d.mts.map +1 -0
  199. package/dist/NotificationServicesController/types/notification/index.mjs +1 -2
  200. package/dist/NotificationServicesController/types/notification/index.mjs.map +1 -1
  201. package/dist/NotificationServicesController/types/notification/notification.cjs +3 -0
  202. package/dist/NotificationServicesController/types/notification/notification.cjs.map +1 -0
  203. package/dist/{types/NotificationServicesController/types/notification/notification.d.ts → NotificationServicesController/types/notification/notification.d.cts} +4 -4
  204. package/dist/NotificationServicesController/types/notification/notification.d.cts.map +1 -0
  205. package/dist/NotificationServicesController/types/notification/notification.d.mts +25 -0
  206. package/dist/NotificationServicesController/types/notification/notification.d.mts.map +1 -0
  207. package/dist/NotificationServicesController/types/notification/notification.mjs +1 -1
  208. package/dist/NotificationServicesController/types/notification/notification.mjs.map +1 -1
  209. package/dist/NotificationServicesController/types/on-chain-notification/index.cjs +18 -0
  210. package/dist/NotificationServicesController/types/on-chain-notification/index.cjs.map +1 -0
  211. package/dist/NotificationServicesController/types/on-chain-notification/index.d.cts +2 -0
  212. package/dist/NotificationServicesController/types/on-chain-notification/index.d.cts.map +1 -0
  213. package/dist/NotificationServicesController/types/on-chain-notification/index.d.mts +2 -0
  214. package/dist/NotificationServicesController/types/on-chain-notification/index.d.mts.map +1 -0
  215. package/dist/NotificationServicesController/types/on-chain-notification/index.mjs +1 -2
  216. package/dist/NotificationServicesController/types/on-chain-notification/index.mjs.map +1 -1
  217. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.cjs +3 -0
  218. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.cjs.map +1 -0
  219. package/dist/{types/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.ts → NotificationServicesController/types/on-chain-notification/on-chain-notification.d.cts} +4 -4
  220. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.cts.map +1 -0
  221. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.mts +43 -0
  222. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.mts.map +1 -0
  223. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs +1 -1
  224. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs.map +1 -1
  225. package/dist/NotificationServicesController/types/on-chain-notification/schema.cjs +9 -0
  226. package/dist/NotificationServicesController/types/on-chain-notification/schema.cjs.map +1 -0
  227. package/dist/{types/NotificationServicesController/types/on-chain-notification/schema.d.ts → NotificationServicesController/types/on-chain-notification/schema.d.cts} +1 -1
  228. package/dist/NotificationServicesController/types/on-chain-notification/schema.d.cts.map +1 -0
  229. package/dist/NotificationServicesController/types/on-chain-notification/schema.d.mts +283 -0
  230. package/dist/NotificationServicesController/types/on-chain-notification/schema.d.mts.map +1 -0
  231. package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs +7 -0
  232. package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs.map +1 -1
  233. package/dist/NotificationServicesController/types/type-utils.cjs +3 -0
  234. package/dist/NotificationServicesController/types/type-utils.cjs.map +1 -0
  235. package/dist/{types/NotificationServicesController/types/type-utils.d.ts → NotificationServicesController/types/type-utils.d.cts} +1 -1
  236. package/dist/NotificationServicesController/types/type-utils.d.cts.map +1 -0
  237. package/dist/NotificationServicesController/types/type-utils.d.mts +7 -0
  238. package/dist/NotificationServicesController/types/type-utils.d.mts.map +1 -0
  239. package/dist/NotificationServicesController/types/type-utils.mjs +1 -0
  240. package/dist/NotificationServicesController/types/type-utils.mjs.map +1 -1
  241. package/dist/NotificationServicesController/types/user-storage/index.cjs +18 -0
  242. package/dist/NotificationServicesController/types/user-storage/index.cjs.map +1 -0
  243. package/dist/NotificationServicesController/types/user-storage/index.d.cts +2 -0
  244. package/dist/NotificationServicesController/types/user-storage/index.d.cts.map +1 -0
  245. package/dist/NotificationServicesController/types/user-storage/index.d.mts +2 -0
  246. package/dist/NotificationServicesController/types/user-storage/index.d.mts.map +1 -0
  247. package/dist/NotificationServicesController/types/user-storage/index.mjs +1 -2
  248. package/dist/NotificationServicesController/types/user-storage/index.mjs.map +1 -1
  249. package/dist/NotificationServicesController/types/user-storage/user-storage.cjs +3 -0
  250. package/dist/NotificationServicesController/types/user-storage/user-storage.cjs.map +1 -0
  251. package/dist/{types/NotificationServicesController/types/user-storage/user-storage.d.ts → NotificationServicesController/types/user-storage/user-storage.d.cts} +3 -3
  252. package/dist/NotificationServicesController/types/user-storage/user-storage.d.cts.map +1 -0
  253. package/dist/NotificationServicesController/types/user-storage/user-storage.d.mts +26 -0
  254. package/dist/NotificationServicesController/types/user-storage/user-storage.d.mts.map +1 -0
  255. package/dist/NotificationServicesController/types/user-storage/user-storage.mjs +1 -1
  256. package/dist/NotificationServicesController/types/user-storage/user-storage.mjs.map +1 -1
  257. package/dist/NotificationServicesController/ui/constants.cjs +62 -0
  258. package/dist/NotificationServicesController/ui/constants.cjs.map +1 -0
  259. package/dist/{types/NotificationServicesController/ui/constants.d.ts → NotificationServicesController/ui/constants.d.cts} +2 -2
  260. package/dist/NotificationServicesController/ui/constants.d.cts.map +1 -0
  261. package/dist/NotificationServicesController/ui/constants.d.mts +54 -0
  262. package/dist/NotificationServicesController/ui/constants.d.mts.map +1 -0
  263. package/dist/NotificationServicesController/ui/constants.mjs +56 -14
  264. package/dist/NotificationServicesController/ui/constants.mjs.map +1 -1
  265. package/dist/NotificationServicesController/ui/index.cjs +18 -0
  266. package/dist/NotificationServicesController/ui/index.cjs.map +1 -0
  267. package/dist/NotificationServicesController/ui/index.d.cts +2 -0
  268. package/dist/NotificationServicesController/ui/index.d.cts.map +1 -0
  269. package/dist/NotificationServicesController/ui/index.d.mts +2 -0
  270. package/dist/NotificationServicesController/ui/index.d.mts.map +1 -0
  271. package/dist/NotificationServicesController/ui/index.mjs +1 -16
  272. package/dist/NotificationServicesController/ui/index.mjs.map +1 -1
  273. package/dist/NotificationServicesController/utils/utils.cjs +348 -0
  274. package/dist/NotificationServicesController/utils/utils.cjs.map +1 -0
  275. package/dist/{types/NotificationServicesController/utils/utils.d.ts → NotificationServicesController/utils/utils.d.cts} +3 -3
  276. package/dist/NotificationServicesController/utils/utils.d.cts.map +1 -0
  277. package/dist/NotificationServicesController/utils/utils.d.mts +142 -0
  278. package/dist/NotificationServicesController/utils/utils.d.mts.map +1 -0
  279. package/dist/NotificationServicesController/utils/utils.mjs +332 -31
  280. package/dist/NotificationServicesController/utils/utils.mjs.map +1 -1
  281. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs +215 -0
  282. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +1 -0
  283. package/dist/{types/NotificationServicesPushController/NotificationServicesPushController.d.ts → NotificationServicesPushController/NotificationServicesPushController.d.cts} +6 -6
  284. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts.map +1 -0
  285. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts +112 -0
  286. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts.map +1 -0
  287. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +214 -37
  288. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -1
  289. package/dist/NotificationServicesPushController/__fixtures__/index.cjs +18 -0
  290. package/dist/NotificationServicesPushController/__fixtures__/index.cjs.map +1 -0
  291. package/dist/NotificationServicesPushController/__fixtures__/index.d.cts +2 -0
  292. package/dist/NotificationServicesPushController/__fixtures__/index.d.cts.map +1 -0
  293. package/dist/NotificationServicesPushController/__fixtures__/index.d.mts +2 -0
  294. package/dist/NotificationServicesPushController/__fixtures__/index.d.mts.map +1 -0
  295. package/dist/NotificationServicesPushController/__fixtures__/index.mjs +2 -0
  296. package/dist/NotificationServicesPushController/__fixtures__/index.mjs.map +1 -0
  297. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.cjs +57 -0
  298. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.cjs.map +1 -0
  299. package/dist/{types/NotificationServicesPushController/__fixtures__/mockResponse.d.ts → NotificationServicesPushController/__fixtures__/mockResponse.d.cts} +2 -2
  300. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.cts.map +1 -0
  301. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.mts +43 -0
  302. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.mts.map +1 -0
  303. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.mjs +50 -0
  304. package/dist/NotificationServicesPushController/__fixtures__/mockResponse.mjs.map +1 -0
  305. package/dist/NotificationServicesPushController/__fixtures__/mockServices.cjs +31 -0
  306. package/dist/NotificationServicesPushController/__fixtures__/mockServices.cjs.map +1 -0
  307. package/dist/{types/NotificationServicesPushController/__fixtures__/mockServices.d.ts → NotificationServicesPushController/__fixtures__/mockServices.d.cts} +2 -2
  308. package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.cts.map +1 -0
  309. package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.mts +9 -0
  310. package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.mts.map +1 -0
  311. package/dist/NotificationServicesPushController/__fixtures__/mockServices.mjs +30 -0
  312. package/dist/NotificationServicesPushController/__fixtures__/mockServices.mjs.map +1 -0
  313. package/dist/NotificationServicesPushController/constants.cjs +14 -0
  314. package/dist/NotificationServicesPushController/constants.cjs.map +1 -0
  315. package/dist/{types/NotificationServicesPushController/constants.d.ts → NotificationServicesPushController/constants.d.cts} +1 -1
  316. package/dist/NotificationServicesPushController/constants.d.cts.map +1 -0
  317. package/dist/NotificationServicesPushController/constants.d.mts +11 -0
  318. package/dist/NotificationServicesPushController/constants.d.mts.map +1 -0
  319. package/dist/NotificationServicesPushController/constants.mjs +10 -25
  320. package/dist/NotificationServicesPushController/constants.mjs.map +1 -1
  321. package/dist/NotificationServicesPushController/index.cjs +43 -0
  322. package/dist/NotificationServicesPushController/index.cjs.map +1 -0
  323. package/dist/NotificationServicesPushController/index.d.cts +11 -0
  324. package/dist/NotificationServicesPushController/index.d.cts.map +1 -0
  325. package/dist/NotificationServicesPushController/index.d.mts +11 -0
  326. package/dist/NotificationServicesPushController/index.d.mts.map +1 -0
  327. package/dist/NotificationServicesPushController/index.mjs +10 -71
  328. package/dist/NotificationServicesPushController/index.mjs.map +1 -1
  329. package/dist/NotificationServicesPushController/services/endpoints.cjs +6 -0
  330. package/dist/NotificationServicesPushController/services/endpoints.cjs.map +1 -0
  331. package/dist/{types/NotificationServicesPushController/services/endpoints.d.ts → NotificationServicesPushController/services/endpoints.d.cts} +1 -1
  332. package/dist/NotificationServicesPushController/services/endpoints.d.cts.map +1 -0
  333. package/dist/NotificationServicesPushController/services/endpoints.d.mts +2 -0
  334. package/dist/NotificationServicesPushController/services/endpoints.d.mts.map +1 -0
  335. package/dist/NotificationServicesPushController/services/endpoints.mjs +2 -7
  336. package/dist/NotificationServicesPushController/services/endpoints.mjs.map +1 -1
  337. package/dist/NotificationServicesPushController/services/push/index.cjs +3 -0
  338. package/dist/NotificationServicesPushController/services/push/index.cjs.map +1 -0
  339. package/dist/{types/NotificationServicesPushController/services/push/index.d.ts → NotificationServicesPushController/services/push/index.d.cts} +2 -2
  340. package/dist/NotificationServicesPushController/services/push/index.d.cts.map +1 -0
  341. package/dist/NotificationServicesPushController/services/push/index.d.mts +6 -0
  342. package/dist/NotificationServicesPushController/services/push/index.d.mts.map +1 -0
  343. package/dist/NotificationServicesPushController/services/push/index.mjs +1 -0
  344. package/dist/NotificationServicesPushController/services/push/index.mjs.map +1 -1
  345. package/dist/NotificationServicesPushController/services/push/push-web.cjs +121 -0
  346. package/dist/NotificationServicesPushController/services/push/push-web.cjs.map +1 -0
  347. package/dist/{types/NotificationServicesPushController/services/push/push-web.d.ts → NotificationServicesPushController/services/push/push-web.d.cts} +3 -3
  348. package/dist/NotificationServicesPushController/services/push/push-web.d.cts.map +1 -0
  349. package/dist/NotificationServicesPushController/services/push/push-web.d.mts +32 -0
  350. package/dist/NotificationServicesPushController/services/push/push-web.d.mts.map +1 -0
  351. package/dist/NotificationServicesPushController/services/push/push-web.mjs +116 -38
  352. package/dist/NotificationServicesPushController/services/push/push-web.mjs.map +1 -1
  353. package/dist/NotificationServicesPushController/services/services.cjs +197 -0
  354. package/dist/NotificationServicesPushController/services/services.cjs.map +1 -0
  355. package/dist/{types/NotificationServicesPushController/services/services.d.ts → NotificationServicesPushController/services/services.d.cts} +4 -4
  356. package/dist/NotificationServicesPushController/services/services.d.cts.map +1 -0
  357. package/dist/NotificationServicesPushController/services/services.d.mts +95 -0
  358. package/dist/NotificationServicesPushController/services/services.d.mts.map +1 -0
  359. package/dist/NotificationServicesPushController/services/services.mjs +168 -45
  360. package/dist/NotificationServicesPushController/services/services.mjs.map +1 -1
  361. package/dist/NotificationServicesPushController/types/firebase.cjs +3 -0
  362. package/dist/NotificationServicesPushController/types/firebase.cjs.map +1 -0
  363. package/dist/{types/NotificationServicesPushController/types/firebase.d.ts → NotificationServicesPushController/types/firebase.d.cts} +1 -1
  364. package/dist/NotificationServicesPushController/types/firebase.d.cts.map +1 -0
  365. package/dist/NotificationServicesPushController/types/firebase.d.mts +53 -0
  366. package/dist/NotificationServicesPushController/types/firebase.d.mts.map +1 -0
  367. package/dist/NotificationServicesPushController/types/firebase.mjs +1 -1
  368. package/dist/NotificationServicesPushController/types/firebase.mjs.map +1 -1
  369. package/dist/NotificationServicesPushController/types/index.cjs +18 -0
  370. package/dist/NotificationServicesPushController/types/index.cjs.map +1 -0
  371. package/dist/NotificationServicesPushController/types/index.d.cts +2 -0
  372. package/dist/NotificationServicesPushController/types/index.d.cts.map +1 -0
  373. package/dist/NotificationServicesPushController/types/index.d.mts +2 -0
  374. package/dist/NotificationServicesPushController/types/index.d.mts.map +1 -0
  375. package/dist/NotificationServicesPushController/types/index.mjs +1 -2
  376. package/dist/NotificationServicesPushController/types/index.mjs.map +1 -1
  377. package/dist/NotificationServicesPushController/utils/get-notification-data.cjs +84 -0
  378. package/dist/NotificationServicesPushController/utils/get-notification-data.cjs.map +1 -0
  379. package/dist/{types/NotificationServicesPushController/utils/get-notification-data.d.ts → NotificationServicesPushController/utils/get-notification-data.d.cts} +2 -2
  380. package/dist/NotificationServicesPushController/utils/get-notification-data.d.cts.map +1 -0
  381. package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts +42 -0
  382. package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts.map +1 -0
  383. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs +76 -12
  384. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +1 -1
  385. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs +190 -0
  386. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs.map +1 -0
  387. package/dist/{types/NotificationServicesPushController/utils/get-notification-message.d.ts → NotificationServicesPushController/utils/get-notification-message.d.cts} +3 -3
  388. package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts.map +1 -0
  389. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts +67 -0
  390. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts.map +1 -0
  391. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +182 -37
  392. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +1 -1
  393. package/dist/NotificationServicesPushController/utils/index.cjs +19 -0
  394. package/dist/NotificationServicesPushController/utils/index.cjs.map +1 -0
  395. package/dist/NotificationServicesPushController/utils/index.d.cts +3 -0
  396. package/dist/NotificationServicesPushController/utils/index.d.cts.map +1 -0
  397. package/dist/NotificationServicesPushController/utils/index.d.mts +3 -0
  398. package/dist/NotificationServicesPushController/utils/index.d.mts.map +1 -0
  399. package/dist/NotificationServicesPushController/utils/index.mjs +2 -48
  400. package/dist/NotificationServicesPushController/utils/index.mjs.map +1 -1
  401. package/dist/index.cjs +29 -0
  402. package/dist/index.cjs.map +1 -0
  403. package/dist/index.d.cts +3 -0
  404. package/dist/index.d.cts.map +1 -0
  405. package/dist/index.d.mts +3 -0
  406. package/dist/index.d.mts.map +1 -0
  407. package/dist/index.mjs +2 -45
  408. package/dist/index.mjs.map +1 -1
  409. package/dist/shared/to-raw-notification.cjs +19 -0
  410. package/dist/shared/to-raw-notification.cjs.map +1 -0
  411. package/dist/{types/shared/to-raw-notification.d.ts → shared/to-raw-notification.d.cts} +2 -2
  412. package/dist/shared/to-raw-notification.d.cts.map +1 -0
  413. package/dist/shared/to-raw-notification.d.mts +11 -0
  414. package/dist/shared/to-raw-notification.d.mts.map +1 -0
  415. package/dist/shared/to-raw-notification.mjs +14 -7
  416. package/dist/shared/to-raw-notification.mjs.map +1 -1
  417. package/package.json +12 -7
  418. package/dist/NotificationServicesController/NotificationServicesController.js +0 -19
  419. package/dist/NotificationServicesController/NotificationServicesController.js.map +0 -1
  420. package/dist/NotificationServicesController/constants/constants.js +0 -10
  421. package/dist/NotificationServicesController/constants/constants.js.map +0 -1
  422. package/dist/NotificationServicesController/constants/index.js +0 -29
  423. package/dist/NotificationServicesController/constants/index.js.map +0 -1
  424. package/dist/NotificationServicesController/constants/notification-schema.js +0 -22
  425. package/dist/NotificationServicesController/constants/notification-schema.js.map +0 -1
  426. package/dist/NotificationServicesController/index.js +0 -87
  427. package/dist/NotificationServicesController/index.js.map +0 -1
  428. package/dist/NotificationServicesController/processors/index.js +0 -22
  429. package/dist/NotificationServicesController/processors/index.js.map +0 -1
  430. package/dist/NotificationServicesController/processors/process-feature-announcement.js +0 -10
  431. package/dist/NotificationServicesController/processors/process-feature-announcement.js.map +0 -1
  432. package/dist/NotificationServicesController/processors/process-notifications.js +0 -13
  433. package/dist/NotificationServicesController/processors/process-notifications.js.map +0 -1
  434. package/dist/NotificationServicesController/processors/process-onchain-notifications.js +0 -8
  435. package/dist/NotificationServicesController/processors/process-onchain-notifications.js.map +0 -1
  436. package/dist/NotificationServicesController/services/feature-announcements.js +0 -14
  437. package/dist/NotificationServicesController/services/feature-announcements.js.map +0 -1
  438. package/dist/NotificationServicesController/services/onchain-notifications.js +0 -30
  439. package/dist/NotificationServicesController/services/onchain-notifications.js.map +0 -1
  440. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js +0 -2
  441. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js.map +0 -1
  442. package/dist/NotificationServicesController/types/feature-announcement/index.js +0 -5
  443. package/dist/NotificationServicesController/types/feature-announcement/index.js.map +0 -1
  444. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js +0 -2
  445. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js.map +0 -1
  446. package/dist/NotificationServicesController/types/feature-announcement/type-links.js +0 -2
  447. package/dist/NotificationServicesController/types/feature-announcement/type-links.js.map +0 -1
  448. package/dist/NotificationServicesController/types/index.js +0 -12
  449. package/dist/NotificationServicesController/types/index.js.map +0 -1
  450. package/dist/NotificationServicesController/types/notification/index.js +0 -3
  451. package/dist/NotificationServicesController/types/notification/index.js.map +0 -1
  452. package/dist/NotificationServicesController/types/notification/notification.js +0 -2
  453. package/dist/NotificationServicesController/types/notification/notification.js.map +0 -1
  454. package/dist/NotificationServicesController/types/on-chain-notification/index.js +0 -3
  455. package/dist/NotificationServicesController/types/on-chain-notification/index.js.map +0 -1
  456. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.js +0 -2
  457. package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.js.map +0 -1
  458. package/dist/NotificationServicesController/types/on-chain-notification/schema.js +0 -1
  459. package/dist/NotificationServicesController/types/on-chain-notification/schema.js.map +0 -1
  460. package/dist/NotificationServicesController/types/type-utils.js +0 -1
  461. package/dist/NotificationServicesController/types/type-utils.js.map +0 -1
  462. package/dist/NotificationServicesController/types/user-storage/index.js +0 -3
  463. package/dist/NotificationServicesController/types/user-storage/index.js.map +0 -1
  464. package/dist/NotificationServicesController/types/user-storage/user-storage.js +0 -2
  465. package/dist/NotificationServicesController/types/user-storage/user-storage.js.map +0 -1
  466. package/dist/NotificationServicesController/ui/constants.js +0 -16
  467. package/dist/NotificationServicesController/ui/constants.js.map +0 -1
  468. package/dist/NotificationServicesController/ui/index.js +0 -17
  469. package/dist/NotificationServicesController/ui/index.js.map +0 -1
  470. package/dist/NotificationServicesController/utils/utils.js +0 -32
  471. package/dist/NotificationServicesController/utils/utils.js.map +0 -1
  472. package/dist/NotificationServicesPushController/NotificationServicesPushController.js +0 -39
  473. package/dist/NotificationServicesPushController/NotificationServicesPushController.js.map +0 -1
  474. package/dist/NotificationServicesPushController/constants.js +0 -26
  475. package/dist/NotificationServicesPushController/constants.js.map +0 -1
  476. package/dist/NotificationServicesPushController/index.js +0 -72
  477. package/dist/NotificationServicesPushController/index.js.map +0 -1
  478. package/dist/NotificationServicesPushController/services/endpoints.js +0 -8
  479. package/dist/NotificationServicesPushController/services/endpoints.js.map +0 -1
  480. package/dist/NotificationServicesPushController/services/push/index.js +0 -1
  481. package/dist/NotificationServicesPushController/services/push/index.js.map +0 -1
  482. package/dist/NotificationServicesPushController/services/push/push-web.js +0 -40
  483. package/dist/NotificationServicesPushController/services/push/push-web.js.map +0 -1
  484. package/dist/NotificationServicesPushController/services/services.js +0 -46
  485. package/dist/NotificationServicesPushController/services/services.js.map +0 -1
  486. package/dist/NotificationServicesPushController/types/firebase.js +0 -2
  487. package/dist/NotificationServicesPushController/types/firebase.js.map +0 -1
  488. package/dist/NotificationServicesPushController/types/index.js +0 -3
  489. package/dist/NotificationServicesPushController/types/index.js.map +0 -1
  490. package/dist/NotificationServicesPushController/utils/get-notification-data.js +0 -14
  491. package/dist/NotificationServicesPushController/utils/get-notification-data.js.map +0 -1
  492. package/dist/NotificationServicesPushController/utils/get-notification-message.js +0 -39
  493. package/dist/NotificationServicesPushController/utils/get-notification-message.js.map +0 -1
  494. package/dist/NotificationServicesPushController/utils/index.js +0 -49
  495. package/dist/NotificationServicesPushController/utils/index.js.map +0 -1
  496. package/dist/chunk-232HZSEV.js +0 -7
  497. package/dist/chunk-232HZSEV.js.map +0 -1
  498. package/dist/chunk-2P5WP5NT.mjs +0 -37
  499. package/dist/chunk-2P5WP5NT.mjs.map +0 -1
  500. package/dist/chunk-3ZS2HAEG.js +0 -1
  501. package/dist/chunk-3ZS2HAEG.js.map +0 -1
  502. package/dist/chunk-4BTNTREI.mjs +0 -1
  503. package/dist/chunk-4BTNTREI.mjs.map +0 -1
  504. package/dist/chunk-4QXAPVW3.mjs +0 -1
  505. package/dist/chunk-4QXAPVW3.mjs.map +0 -1
  506. package/dist/chunk-52CALMRA.js +0 -28
  507. package/dist/chunk-53F3SYYM.mjs +0 -178
  508. package/dist/chunk-53F3SYYM.mjs.map +0 -1
  509. package/dist/chunk-5FAAZCBK.mjs +0 -29
  510. package/dist/chunk-5FAAZCBK.mjs.map +0 -1
  511. package/dist/chunk-6FLC6CJD.js +0 -149
  512. package/dist/chunk-6FLC6CJD.js.map +0 -1
  513. package/dist/chunk-6ZDVTRRT.mjs +0 -9
  514. package/dist/chunk-6ZDVTRRT.mjs.map +0 -1
  515. package/dist/chunk-77QIITUL.mjs +0 -67
  516. package/dist/chunk-77QIITUL.mjs.map +0 -1
  517. package/dist/chunk-7LWR54U7.js +0 -7
  518. package/dist/chunk-7LWR54U7.js.map +0 -1
  519. package/dist/chunk-7PWKQSM2.mjs +0 -972
  520. package/dist/chunk-7PWKQSM2.mjs.map +0 -1
  521. package/dist/chunk-7RM3YNTD.mjs +0 -1
  522. package/dist/chunk-7RM3YNTD.mjs.map +0 -1
  523. package/dist/chunk-A2RPVX47.mjs +0 -1
  524. package/dist/chunk-A2RPVX47.mjs.map +0 -1
  525. package/dist/chunk-B25TJ7KS.js +0 -8
  526. package/dist/chunk-B25TJ7KS.js.map +0 -1
  527. package/dist/chunk-B4ECJJ5C.mjs +0 -7
  528. package/dist/chunk-B4ECJJ5C.mjs.map +0 -1
  529. package/dist/chunk-BONB66A2.mjs +0 -14
  530. package/dist/chunk-BONB66A2.mjs.map +0 -1
  531. package/dist/chunk-C62SK2KY.mjs +0 -92
  532. package/dist/chunk-C62SK2KY.mjs.map +0 -1
  533. package/dist/chunk-CGPMMFUQ.mjs +0 -96
  534. package/dist/chunk-CGPMMFUQ.mjs.map +0 -1
  535. package/dist/chunk-CWZQMK63.mjs +0 -118
  536. package/dist/chunk-CWZQMK63.mjs.map +0 -1
  537. package/dist/chunk-D42BBXBM.mjs +0 -28
  538. package/dist/chunk-D42BBXBM.mjs.map +0 -1
  539. package/dist/chunk-DINCLRZT.mjs +0 -12
  540. package/dist/chunk-DINCLRZT.mjs.map +0 -1
  541. package/dist/chunk-DMH4NSLF.js +0 -1
  542. package/dist/chunk-DMH4NSLF.js.map +0 -1
  543. package/dist/chunk-DT6SLUWJ.js +0 -12
  544. package/dist/chunk-DT6SLUWJ.js.map +0 -1
  545. package/dist/chunk-EJ52BDLB.js +0 -55
  546. package/dist/chunk-EJ52BDLB.js.map +0 -1
  547. package/dist/chunk-ER475D6V.mjs +0 -231
  548. package/dist/chunk-ER475D6V.mjs.map +0 -1
  549. package/dist/chunk-G52DNXFH.mjs +0 -1
  550. package/dist/chunk-G52DNXFH.mjs.map +0 -1
  551. package/dist/chunk-GETQWOTI.js +0 -1
  552. package/dist/chunk-GETQWOTI.js.map +0 -1
  553. package/dist/chunk-HCDICNYK.js +0 -207
  554. package/dist/chunk-HCDICNYK.js.map +0 -1
  555. package/dist/chunk-HE3P5RM7.js +0 -178
  556. package/dist/chunk-HE3P5RM7.js.map +0 -1
  557. package/dist/chunk-HPUQYDVC.js +0 -1
  558. package/dist/chunk-HPUQYDVC.js.map +0 -1
  559. package/dist/chunk-HT6T5R4U.js +0 -96
  560. package/dist/chunk-HT6T5R4U.js.map +0 -1
  561. package/dist/chunk-IDO4JFV5.mjs +0 -1
  562. package/dist/chunk-IDO4JFV5.mjs.map +0 -1
  563. package/dist/chunk-IGY2S5BC.js +0 -36
  564. package/dist/chunk-IGY2S5BC.js.map +0 -1
  565. package/dist/chunk-IKWNHNJQ.mjs +0 -8
  566. package/dist/chunk-IKWNHNJQ.mjs.map +0 -1
  567. package/dist/chunk-IOMDG67D.mjs +0 -7
  568. package/dist/chunk-IOMDG67D.mjs.map +0 -1
  569. package/dist/chunk-IPI7BAW3.js +0 -1
  570. package/dist/chunk-IPI7BAW3.js.map +0 -1
  571. package/dist/chunk-JIJXHO5V.js +0 -885
  572. package/dist/chunk-JIJXHO5V.js.map +0 -1
  573. package/dist/chunk-JQ7WKFCI.mjs +0 -1
  574. package/dist/chunk-JQ7WKFCI.mjs.map +0 -1
  575. package/dist/chunk-JW3TK3NU.js +0 -221
  576. package/dist/chunk-JW3TK3NU.js.map +0 -1
  577. package/dist/chunk-KGLHGLER.js +0 -231
  578. package/dist/chunk-KGLHGLER.js.map +0 -1
  579. package/dist/chunk-LGXHJ24K.js +0 -92
  580. package/dist/chunk-LGXHJ24K.js.map +0 -1
  581. package/dist/chunk-LYEXYTOI.js +0 -14
  582. package/dist/chunk-LYEXYTOI.js.map +0 -1
  583. package/dist/chunk-LZMC2QML.mjs +0 -25
  584. package/dist/chunk-LZMC2QML.mjs.map +0 -1
  585. package/dist/chunk-MG5QDUDI.mjs +0 -48
  586. package/dist/chunk-MG5QDUDI.mjs.map +0 -1
  587. package/dist/chunk-MNBV5FJI.mjs +0 -31
  588. package/dist/chunk-MNBV5FJI.mjs.map +0 -1
  589. package/dist/chunk-NIPCK74T.js +0 -185
  590. package/dist/chunk-NIPCK74T.js.map +0 -1
  591. package/dist/chunk-O45HYLIV.js +0 -67
  592. package/dist/chunk-O45HYLIV.js.map +0 -1
  593. package/dist/chunk-ODI2BTKS.mjs +0 -55
  594. package/dist/chunk-ODI2BTKS.mjs.map +0 -1
  595. package/dist/chunk-OHFX4S6R.mjs +0 -185
  596. package/dist/chunk-OHFX4S6R.mjs.map +0 -1
  597. package/dist/chunk-OMBFVTP2.js +0 -37
  598. package/dist/chunk-OMBFVTP2.js.map +0 -1
  599. package/dist/chunk-PJMQ2XEG.js +0 -29
  600. package/dist/chunk-PJMQ2XEG.js.map +0 -1
  601. package/dist/chunk-PNCS6GEX.mjs +0 -1
  602. package/dist/chunk-PNCS6GEX.mjs.map +0 -1
  603. package/dist/chunk-PROWNV4M.js +0 -1
  604. package/dist/chunk-PROWNV4M.js.map +0 -1
  605. package/dist/chunk-QAOZN4AX.js +0 -25
  606. package/dist/chunk-QAOZN4AX.js.map +0 -1
  607. package/dist/chunk-QB5IFRLA.mjs +0 -1
  608. package/dist/chunk-QB5IFRLA.mjs.map +0 -1
  609. package/dist/chunk-RAUV5UV4.mjs +0 -1
  610. package/dist/chunk-RAUV5UV4.mjs.map +0 -1
  611. package/dist/chunk-SGLVWM4N.js +0 -48
  612. package/dist/chunk-SGLVWM4N.js.map +0 -1
  613. package/dist/chunk-TLX5QQK5.js +0 -9
  614. package/dist/chunk-TLX5QQK5.js.map +0 -1
  615. package/dist/chunk-U5UIDVOO.mjs +0 -36
  616. package/dist/chunk-U5UIDVOO.mjs.map +0 -1
  617. package/dist/chunk-U74Q3BRP.mjs +0 -1
  618. package/dist/chunk-U74Q3BRP.mjs.map +0 -1
  619. package/dist/chunk-UQ6MTYIR.js +0 -972
  620. package/dist/chunk-UQ6MTYIR.js.map +0 -1
  621. package/dist/chunk-UZHUVXRM.js +0 -31
  622. package/dist/chunk-UZHUVXRM.js.map +0 -1
  623. package/dist/chunk-V5HMYDWE.js +0 -1
  624. package/dist/chunk-V5HMYDWE.js.map +0 -1
  625. package/dist/chunk-VZMQIJMK.mjs +0 -149
  626. package/dist/chunk-VZMQIJMK.mjs.map +0 -1
  627. package/dist/chunk-W7IP4LDB.js +0 -118
  628. package/dist/chunk-W7IP4LDB.js.map +0 -1
  629. package/dist/chunk-WE4RFGT7.mjs +0 -885
  630. package/dist/chunk-WE4RFGT7.mjs.map +0 -1
  631. package/dist/chunk-WGBEAP2F.mjs +0 -207
  632. package/dist/chunk-WGBEAP2F.mjs.map +0 -1
  633. package/dist/chunk-WRYFIWNK.js +0 -1
  634. package/dist/chunk-WRYFIWNK.js.map +0 -1
  635. package/dist/chunk-XZEVRYUE.js +0 -1
  636. package/dist/chunk-XZEVRYUE.js.map +0 -1
  637. package/dist/chunk-YUMIJSUD.mjs +0 -221
  638. package/dist/chunk-YUMIJSUD.mjs.map +0 -1
  639. package/dist/chunk-ZBNBZN5H.js +0 -1
  640. package/dist/chunk-ZBNBZN5H.js.map +0 -1
  641. package/dist/chunk-ZV3DFBO4.js +0 -1
  642. package/dist/chunk-ZV3DFBO4.js.map +0 -1
  643. package/dist/index.js +0 -46
  644. package/dist/index.js.map +0 -1
  645. package/dist/shared/to-raw-notification.js +0 -8
  646. package/dist/shared/to-raw-notification.js.map +0 -1
  647. package/dist/tsconfig.build.tsbuildinfo +0 -1
  648. package/dist/types/NotificationServicesController/NotificationServicesController.d.ts.map +0 -1
  649. package/dist/types/NotificationServicesController/__fixtures__/index.d.ts +0 -6
  650. package/dist/types/NotificationServicesController/__fixtures__/index.d.ts.map +0 -1
  651. package/dist/types/NotificationServicesController/__fixtures__/mock-feature-announcements.d.ts.map +0 -1
  652. package/dist/types/NotificationServicesController/__fixtures__/mock-notification-trigger.d.ts.map +0 -1
  653. package/dist/types/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.ts.map +0 -1
  654. package/dist/types/NotificationServicesController/__fixtures__/mock-raw-notifications.d.ts.map +0 -1
  655. package/dist/types/NotificationServicesController/__fixtures__/mockResponses.d.ts.map +0 -1
  656. package/dist/types/NotificationServicesController/__fixtures__/mockServices.d.ts.map +0 -1
  657. package/dist/types/NotificationServicesController/__fixtures__/test-utils.d.ts.map +0 -1
  658. package/dist/types/NotificationServicesController/constants/constants.d.ts.map +0 -1
  659. package/dist/types/NotificationServicesController/constants/index.d.ts +0 -3
  660. package/dist/types/NotificationServicesController/constants/index.d.ts.map +0 -1
  661. package/dist/types/NotificationServicesController/constants/notification-schema.d.ts.map +0 -1
  662. package/dist/types/NotificationServicesController/index.d.ts +0 -14
  663. package/dist/types/NotificationServicesController/index.d.ts.map +0 -1
  664. package/dist/types/NotificationServicesController/processors/index.d.ts +0 -4
  665. package/dist/types/NotificationServicesController/processors/index.d.ts.map +0 -1
  666. package/dist/types/NotificationServicesController/processors/process-feature-announcement.d.ts.map +0 -1
  667. package/dist/types/NotificationServicesController/processors/process-notifications.d.ts.map +0 -1
  668. package/dist/types/NotificationServicesController/processors/process-onchain-notifications.d.ts.map +0 -1
  669. package/dist/types/NotificationServicesController/services/feature-announcements.d.ts.map +0 -1
  670. package/dist/types/NotificationServicesController/services/onchain-notifications.d.ts.map +0 -1
  671. package/dist/types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts.map +0 -1
  672. package/dist/types/NotificationServicesController/types/feature-announcement/index.d.ts +0 -4
  673. package/dist/types/NotificationServicesController/types/feature-announcement/index.d.ts.map +0 -1
  674. package/dist/types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts.map +0 -1
  675. package/dist/types/NotificationServicesController/types/feature-announcement/type-links.d.ts.map +0 -1
  676. package/dist/types/NotificationServicesController/types/index.d.ts +0 -5
  677. package/dist/types/NotificationServicesController/types/index.d.ts.map +0 -1
  678. package/dist/types/NotificationServicesController/types/notification/index.d.ts +0 -2
  679. package/dist/types/NotificationServicesController/types/notification/index.d.ts.map +0 -1
  680. package/dist/types/NotificationServicesController/types/notification/notification.d.ts.map +0 -1
  681. package/dist/types/NotificationServicesController/types/on-chain-notification/index.d.ts +0 -2
  682. package/dist/types/NotificationServicesController/types/on-chain-notification/index.d.ts.map +0 -1
  683. package/dist/types/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.ts.map +0 -1
  684. package/dist/types/NotificationServicesController/types/on-chain-notification/schema.d.ts.map +0 -1
  685. package/dist/types/NotificationServicesController/types/type-utils.d.ts.map +0 -1
  686. package/dist/types/NotificationServicesController/types/user-storage/index.d.ts +0 -2
  687. package/dist/types/NotificationServicesController/types/user-storage/index.d.ts.map +0 -1
  688. package/dist/types/NotificationServicesController/types/user-storage/user-storage.d.ts.map +0 -1
  689. package/dist/types/NotificationServicesController/ui/constants.d.ts.map +0 -1
  690. package/dist/types/NotificationServicesController/ui/index.d.ts +0 -2
  691. package/dist/types/NotificationServicesController/ui/index.d.ts.map +0 -1
  692. package/dist/types/NotificationServicesController/utils/utils.d.ts.map +0 -1
  693. package/dist/types/NotificationServicesPushController/NotificationServicesPushController.d.ts.map +0 -1
  694. package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts +0 -2
  695. package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts.map +0 -1
  696. package/dist/types/NotificationServicesPushController/__fixtures__/mockResponse.d.ts.map +0 -1
  697. package/dist/types/NotificationServicesPushController/__fixtures__/mockServices.d.ts.map +0 -1
  698. package/dist/types/NotificationServicesPushController/constants.d.ts.map +0 -1
  699. package/dist/types/NotificationServicesPushController/index.d.ts +0 -11
  700. package/dist/types/NotificationServicesPushController/index.d.ts.map +0 -1
  701. package/dist/types/NotificationServicesPushController/services/endpoints.d.ts.map +0 -1
  702. package/dist/types/NotificationServicesPushController/services/push/index.d.ts.map +0 -1
  703. package/dist/types/NotificationServicesPushController/services/push/push-web.d.ts.map +0 -1
  704. package/dist/types/NotificationServicesPushController/services/services.d.ts.map +0 -1
  705. package/dist/types/NotificationServicesPushController/types/firebase.d.ts.map +0 -1
  706. package/dist/types/NotificationServicesPushController/types/index.d.ts +0 -2
  707. package/dist/types/NotificationServicesPushController/types/index.d.ts.map +0 -1
  708. package/dist/types/NotificationServicesPushController/utils/get-notification-data.d.ts.map +0 -1
  709. package/dist/types/NotificationServicesPushController/utils/get-notification-message.d.ts.map +0 -1
  710. package/dist/types/NotificationServicesPushController/utils/index.d.ts +0 -3
  711. package/dist/types/NotificationServicesPushController/utils/index.d.ts.map +0 -1
  712. package/dist/types/index.d.ts +0 -3
  713. package/dist/types/index.d.ts.map +0 -1
  714. package/dist/types/shared/to-raw-notification.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"get-notification-message.mjs","sourceRoot":"","sources":["../../../src/NotificationServicesPushController/utils/get-notification-message.ts"],"names":[],"mappings":"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","sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport type { Types } from '../../NotificationServicesController';\nimport { Constants } from '../../NotificationServicesController';\nimport { getAmount, formatAmount } from './get-notification-data';\n\nexport type TranslationKeys = {\n pushPlatformNotificationsFundsSentTitle: () => string;\n pushPlatformNotificationsFundsSentDescriptionDefault: () => string;\n pushPlatformNotificationsFundsSentDescription: (\n ...args: [string, string]\n ) => string;\n pushPlatformNotificationsFundsReceivedTitle: () => string;\n pushPlatformNotificationsFundsReceivedDescriptionDefault: () => string;\n pushPlatformNotificationsFundsReceivedDescription: (\n ...args: [string, string]\n ) => string;\n pushPlatformNotificationsSwapCompletedTitle: () => string;\n pushPlatformNotificationsSwapCompletedDescription: () => string;\n pushPlatformNotificationsNftSentTitle: () => string;\n pushPlatformNotificationsNftSentDescription: () => string;\n pushPlatformNotificationsNftReceivedTitle: () => string;\n pushPlatformNotificationsNftReceivedDescription: () => string;\n pushPlatformNotificationsStakingRocketpoolStakeCompletedTitle: () => string;\n pushPlatformNotificationsStakingRocketpoolStakeCompletedDescription: () => string;\n pushPlatformNotificationsStakingRocketpoolUnstakeCompletedTitle: () => string;\n pushPlatformNotificationsStakingRocketpoolUnstakeCompletedDescription: () => string;\n pushPlatformNotificationsStakingLidoStakeCompletedTitle: () => string;\n pushPlatformNotificationsStakingLidoStakeCompletedDescription: () => string;\n pushPlatformNotificationsStakingLidoStakeReadyToBeWithdrawnTitle: () => string;\n pushPlatformNotificationsStakingLidoStakeReadyToBeWithdrawnDescription: () => string;\n pushPlatformNotificationsStakingLidoWithdrawalRequestedTitle: () => string;\n pushPlatformNotificationsStakingLidoWithdrawalRequestedDescription: () => string;\n pushPlatformNotificationsStakingLidoWithdrawalCompletedTitle: () => string;\n pushPlatformNotificationsStakingLidoWithdrawalCompletedDescription: () => string;\n};\n\ntype PushNotificationMessage = {\n title: string;\n description: string;\n};\n\ntype NotificationMessage<N extends Types.INotification> = {\n title: string | null;\n defaultDescription: string | null;\n getDescription?: (n: N) => string | null;\n};\n\ntype NotificationMessageDict = {\n [K in Constants.TRIGGER_TYPES]?: NotificationMessage<\n Extract<Types.INotification, { type: K }>\n >;\n};\n\n/**\n * On Chain Push Notification Messages.\n * This is a list of all the push notifications we support. Update this for synced notifications on mobile and extension\n *\n * @param translationKeys - all translations supported\n * @returns A translation push message object.\n */\nexport const createOnChainPushNotificationMessages = (\n translationKeys: TranslationKeys,\n): NotificationMessageDict => {\n type TranslationFn = <K extends keyof TranslationKeys>(\n ...args: [K, ...Parameters<TranslationKeys[K]>]\n ) => string;\n const t: TranslationFn = (...args) => {\n const [key, ...otherArgs] = args;\n\n // Coerce types for the translation function\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const fn: any = translationKeys[key];\n return fn(...otherArgs);\n };\n\n return {\n erc20_sent: {\n title: t('pushPlatformNotificationsFundsSentTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsFundsSentDescriptionDefault',\n ),\n getDescription: (n) => {\n const symbol = n?.data?.token?.symbol;\n const tokenAmount = n?.data?.token?.amount;\n const tokenDecimals = n?.data?.token?.decimals;\n if (!symbol || !tokenAmount || !tokenDecimals) {\n return null;\n }\n\n const amount = getAmount(tokenAmount, tokenDecimals, {\n shouldEllipse: true,\n });\n return t(\n 'pushPlatformNotificationsFundsSentDescription',\n amount,\n symbol,\n );\n },\n },\n eth_sent: {\n title: t('pushPlatformNotificationsFundsSentTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsFundsSentDescriptionDefault',\n ),\n getDescription: (n) => {\n const symbol = getChainSymbol(n?.chain_id);\n const tokenAmount = n?.data?.amount?.eth;\n if (!symbol || !tokenAmount) {\n return null;\n }\n\n const amount = formatAmount(parseFloat(tokenAmount), {\n shouldEllipse: true,\n });\n return t(\n 'pushPlatformNotificationsFundsSentDescription',\n amount,\n symbol,\n );\n },\n },\n erc20_received: {\n title: t('pushPlatformNotificationsFundsReceivedTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsFundsReceivedDescriptionDefault',\n ),\n getDescription: (n) => {\n const symbol = n?.data?.token?.symbol;\n const tokenAmount = n?.data?.token?.amount;\n const tokenDecimals = n?.data?.token?.decimals;\n if (!symbol || !tokenAmount || !tokenDecimals) {\n return null;\n }\n\n const amount = getAmount(tokenAmount, tokenDecimals, {\n shouldEllipse: true,\n });\n return t(\n 'pushPlatformNotificationsFundsReceivedDescription',\n amount,\n symbol,\n );\n },\n },\n eth_received: {\n title: t('pushPlatformNotificationsFundsReceivedTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsFundsReceivedDescriptionDefault',\n ),\n getDescription: (n) => {\n const symbol = getChainSymbol(n?.chain_id);\n const tokenAmount = n?.data?.amount?.eth;\n if (!symbol || !tokenAmount) {\n return null;\n }\n\n const amount = formatAmount(parseFloat(tokenAmount), {\n shouldEllipse: true,\n });\n return t(\n 'pushPlatformNotificationsFundsReceivedDescription',\n amount,\n symbol,\n );\n },\n },\n metamask_swap_completed: {\n title: t('pushPlatformNotificationsSwapCompletedTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsSwapCompletedDescription',\n ),\n },\n erc721_sent: {\n title: t('pushPlatformNotificationsNftSentTitle'),\n defaultDescription: t('pushPlatformNotificationsNftSentDescription'),\n },\n erc1155_sent: {\n title: t('pushPlatformNotificationsNftSentTitle'),\n defaultDescription: t('pushPlatformNotificationsNftSentDescription'),\n },\n erc721_received: {\n title: t('pushPlatformNotificationsNftReceivedTitle'),\n defaultDescription: t('pushPlatformNotificationsNftReceivedDescription'),\n },\n erc1155_received: {\n title: t('pushPlatformNotificationsNftReceivedTitle'),\n defaultDescription: t('pushPlatformNotificationsNftReceivedDescription'),\n },\n rocketpool_stake_completed: {\n title: t('pushPlatformNotificationsStakingRocketpoolStakeCompletedTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsStakingRocketpoolStakeCompletedDescription',\n ),\n },\n rocketpool_unstake_completed: {\n title: t(\n 'pushPlatformNotificationsStakingRocketpoolUnstakeCompletedTitle',\n ),\n defaultDescription: t(\n 'pushPlatformNotificationsStakingRocketpoolUnstakeCompletedDescription',\n ),\n },\n lido_stake_completed: {\n title: t('pushPlatformNotificationsStakingLidoStakeCompletedTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsStakingLidoStakeCompletedDescription',\n ),\n },\n lido_stake_ready_to_be_withdrawn: {\n title: t(\n 'pushPlatformNotificationsStakingLidoStakeReadyToBeWithdrawnTitle',\n ),\n defaultDescription: t(\n 'pushPlatformNotificationsStakingLidoStakeReadyToBeWithdrawnDescription',\n ),\n },\n lido_withdrawal_requested: {\n title: t('pushPlatformNotificationsStakingLidoWithdrawalRequestedTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsStakingLidoWithdrawalRequestedDescription',\n ),\n },\n lido_withdrawal_completed: {\n title: t('pushPlatformNotificationsStakingLidoWithdrawalCompletedTitle'),\n defaultDescription: t(\n 'pushPlatformNotificationsStakingLidoWithdrawalCompletedDescription',\n ),\n },\n };\n};\n\n/**\n * Retrieves the symbol associated with a given chain ID.\n *\n * @param chainId - The ID of the chain.\n * @returns The symbol associated with the chain ID, or null if not found.\n */\nfunction getChainSymbol(chainId: number) {\n return Constants.CHAIN_SYMBOLS[chainId] ?? null;\n}\n\n/**\n * Checks if the given value is an OnChainRawNotification object.\n *\n * @param n - The value to check.\n * @returns True if the value is an OnChainRawNotification object, false otherwise.\n */\nexport function isOnChainNotification(\n n: unknown,\n): n is Types.OnChainRawNotification {\n const assumed = n as Types.OnChainRawNotification;\n\n // We don't have a validation/parsing library to check all possible types of an on chain notification\n // It is safe enough just to check \"some\" fields, and catch any errors down the line if the shape is bad.\n const isValidEnoughToBeOnChainNotification = [\n assumed?.id,\n assumed?.data,\n assumed?.trigger_id,\n ].every((field) => field !== undefined);\n return isValidEnoughToBeOnChainNotification;\n}\n\n/**\n * Creates a push notification message based on the given on-chain raw notification.\n *\n * @param n - processed notification.\n * @param translations - translates keys into text\n * @returns The push notification message object, or null if the notification is invalid.\n */\nexport function createOnChainPushNotificationMessage(\n n: Types.INotification,\n translations: TranslationKeys,\n): PushNotificationMessage | null {\n if (!n?.type) {\n return null;\n }\n const notificationMessage =\n createOnChainPushNotificationMessages(translations)[n.type];\n\n if (!notificationMessage) {\n return null;\n }\n\n let description: string | null = null;\n try {\n description =\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n notificationMessage?.getDescription?.(n as any) ??\n notificationMessage.defaultDescription ??\n null;\n } catch (e) {\n description = notificationMessage.defaultDescription ?? null;\n }\n\n return {\n title: notificationMessage.title ?? '', // Ensure title is always a string\n description: description ?? '', // Fallback to empty string if null\n };\n}\n"]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-notification-data.cjs"), exports);
18
+ __exportStar(require("./get-notification-message.cjs"), exports);
19
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/NotificationServicesPushController/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAAwC;AACxC,iEAA2C","sourcesContent":["export * from './get-notification-data';\nexport * from './get-notification-message';\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./get-notification-data.cjs";
2
+ export * from "./get-notification-message.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/NotificationServicesPushController/utils/index.ts"],"names":[],"mappings":"AAAA,4CAAwC;AACxC,+CAA2C"}
@@ -0,0 +1,3 @@
1
+ export * from "./get-notification-data.mjs";
2
+ export * from "./get-notification-message.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/NotificationServicesPushController/utils/index.ts"],"names":[],"mappings":"AAAA,4CAAwC;AACxC,+CAA2C"}
@@ -1,49 +1,3 @@
1
- import "../../chunk-MNBV5FJI.mjs";
2
- import {
3
- createOnChainPushNotificationMessage,
4
- createOnChainPushNotificationMessages,
5
- isOnChainNotification
6
- } from "../../chunk-WGBEAP2F.mjs";
7
- import {
8
- calcTokenAmount,
9
- formatAmount,
10
- getAmount,
11
- getLeadingZeroCount
12
- } from "../../chunk-ODI2BTKS.mjs";
13
- import "../../chunk-7PWKQSM2.mjs";
14
- import "../../chunk-B4ECJJ5C.mjs";
15
- import "../../chunk-U74Q3BRP.mjs";
16
- import "../../chunk-G52DNXFH.mjs";
17
- import "../../chunk-7RM3YNTD.mjs";
18
- import "../../chunk-PNCS6GEX.mjs";
19
- import "../../chunk-4QXAPVW3.mjs";
20
- import "../../chunk-JQ7WKFCI.mjs";
21
- import "../../chunk-IDO4JFV5.mjs";
22
- import "../../chunk-A2RPVX47.mjs";
23
- import "../../chunk-4BTNTREI.mjs";
24
- import "../../chunk-QB5IFRLA.mjs";
25
- import "../../chunk-LZMC2QML.mjs";
26
- import "../../chunk-77QIITUL.mjs";
27
- import "../../chunk-2P5WP5NT.mjs";
28
- import "../../chunk-5FAAZCBK.mjs";
29
- import "../../chunk-WE4RFGT7.mjs";
30
- import "../../chunk-MG5QDUDI.mjs";
31
- import "../../chunk-BONB66A2.mjs";
32
- import "../../chunk-C62SK2KY.mjs";
33
- import "../../chunk-D42BBXBM.mjs";
34
- import "../../chunk-OHFX4S6R.mjs";
35
- import "../../chunk-YUMIJSUD.mjs";
36
- import "../../chunk-53F3SYYM.mjs";
37
- import "../../chunk-DINCLRZT.mjs";
38
- import "../../chunk-6ZDVTRRT.mjs";
39
- import "../../chunk-U5UIDVOO.mjs";
40
- export {
41
- calcTokenAmount,
42
- createOnChainPushNotificationMessage,
43
- createOnChainPushNotificationMessages,
44
- formatAmount,
45
- getAmount,
46
- getLeadingZeroCount,
47
- isOnChainNotification
48
- };
1
+ export * from "./get-notification-data.mjs";
2
+ export * from "./get-notification-message.mjs";
49
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/NotificationServicesPushController/utils/index.ts"],"names":[],"mappings":"AAAA,4CAAwC;AACxC,+CAA2C","sourcesContent":["export * from './get-notification-data';\nexport * from './get-notification-message';\n"]}
package/dist/index.cjs ADDED
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.NotificationServicesPushController = exports.NotificationServicesController = void 0;
27
+ exports.NotificationServicesController = __importStar(require("./NotificationServicesController/index.cjs"));
28
+ exports.NotificationServicesPushController = __importStar(require("./NotificationServicesPushController/index.cjs"));
29
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6GAAmF;AACnF,qHAA2F","sourcesContent":["export * as NotificationServicesController from './NotificationServicesController';\nexport * as NotificationServicesPushController from './NotificationServicesPushController';\n"]}
@@ -0,0 +1,3 @@
1
+ export * as NotificationServicesController from "./NotificationServicesController/index.cjs";
2
+ export * as NotificationServicesPushController from "./NotificationServicesPushController/index.cjs";
3
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,mDAAyC;AACnF,OAAO,KAAK,kCAAkC,uDAA6C"}
@@ -0,0 +1,3 @@
1
+ export * as NotificationServicesController from "./NotificationServicesController/index.mjs";
2
+ export * as NotificationServicesPushController from "./NotificationServicesPushController/index.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,mDAAyC;AACnF,OAAO,KAAK,kCAAkC,uDAA6C"}
package/dist/index.mjs CHANGED
@@ -1,46 +1,3 @@
1
- import {
2
- NotificationServicesPushController_exports
3
- } from "./chunk-CWZQMK63.mjs";
4
- import "./chunk-IOMDG67D.mjs";
5
- import "./chunk-MNBV5FJI.mjs";
6
- import "./chunk-WGBEAP2F.mjs";
7
- import "./chunk-ODI2BTKS.mjs";
8
- import "./chunk-RAUV5UV4.mjs";
9
- import "./chunk-ER475D6V.mjs";
10
- import "./chunk-VZMQIJMK.mjs";
11
- import "./chunk-CGPMMFUQ.mjs";
12
- import "./chunk-IKWNHNJQ.mjs";
13
- import {
14
- NotificationServicesController_exports
15
- } from "./chunk-7PWKQSM2.mjs";
16
- import "./chunk-B4ECJJ5C.mjs";
17
- import "./chunk-U74Q3BRP.mjs";
18
- import "./chunk-G52DNXFH.mjs";
19
- import "./chunk-7RM3YNTD.mjs";
20
- import "./chunk-PNCS6GEX.mjs";
21
- import "./chunk-4QXAPVW3.mjs";
22
- import "./chunk-JQ7WKFCI.mjs";
23
- import "./chunk-IDO4JFV5.mjs";
24
- import "./chunk-A2RPVX47.mjs";
25
- import "./chunk-4BTNTREI.mjs";
26
- import "./chunk-QB5IFRLA.mjs";
27
- import "./chunk-LZMC2QML.mjs";
28
- import "./chunk-77QIITUL.mjs";
29
- import "./chunk-2P5WP5NT.mjs";
30
- import "./chunk-5FAAZCBK.mjs";
31
- import "./chunk-WE4RFGT7.mjs";
32
- import "./chunk-MG5QDUDI.mjs";
33
- import "./chunk-BONB66A2.mjs";
34
- import "./chunk-C62SK2KY.mjs";
35
- import "./chunk-D42BBXBM.mjs";
36
- import "./chunk-OHFX4S6R.mjs";
37
- import "./chunk-YUMIJSUD.mjs";
38
- import "./chunk-53F3SYYM.mjs";
39
- import "./chunk-DINCLRZT.mjs";
40
- import "./chunk-6ZDVTRRT.mjs";
41
- import "./chunk-U5UIDVOO.mjs";
42
- export {
43
- NotificationServicesController_exports as NotificationServicesController,
44
- NotificationServicesPushController_exports as NotificationServicesPushController
45
- };
1
+ export * as NotificationServicesController from "./NotificationServicesController/index.mjs";
2
+ export * as NotificationServicesPushController from "./NotificationServicesPushController/index.mjs";
46
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,8BAA8B,mDAAyC;AACnF,OAAO,KAAK,kCAAkC,uDAA6C","sourcesContent":["export * as NotificationServicesController from './NotificationServicesController';\nexport * as NotificationServicesPushController from './NotificationServicesPushController';\n"]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toRawOnChainNotification = void 0;
4
+ /**
5
+ * A true "raw notification" does not have some fields that exist on this type. E.g. the `type` field.
6
+ * This is retro-actively added when we fetch notifications to be able to easily type-discriminate notifications.
7
+ * We use this to ensure that the correct missing fields are added to the raw shapes
8
+ *
9
+ * @param data - raw onchain notification
10
+ * @returns a complete raw onchain notification
11
+ */
12
+ function toRawOnChainNotification(data) {
13
+ return {
14
+ ...data,
15
+ type: data?.data?.kind,
16
+ };
17
+ }
18
+ exports.toRawOnChainNotification = toRawOnChainNotification;
19
+ //# sourceMappingURL=to-raw-notification.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-raw-notification.cjs","sourceRoot":"","sources":["../../src/shared/to-raw-notification.ts"],"names":[],"mappings":";;;AAKA;;;;;;;GAOG;AACH,SAAgB,wBAAwB,CACtC,IAAuC;IAEvC,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;KACG,CAAC;AAC9B,CAAC;AAPD,4DAOC","sourcesContent":["import type {\n OnChainRawNotification,\n UnprocessedOnChainRawNotification,\n} from 'src/NotificationServicesController/types';\n\n/**\n * A true \"raw notification\" does not have some fields that exist on this type. E.g. the `type` field.\n * This is retro-actively added when we fetch notifications to be able to easily type-discriminate notifications.\n * We use this to ensure that the correct missing fields are added to the raw shapes\n *\n * @param data - raw onchain notification\n * @returns a complete raw onchain notification\n */\nexport function toRawOnChainNotification(\n data: UnprocessedOnChainRawNotification,\n): OnChainRawNotification {\n return {\n ...data,\n type: data?.data?.kind,\n } as OnChainRawNotification;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { OnChainRawNotification, UnprocessedOnChainRawNotification } from 'src/NotificationServicesController/types';
1
+ import type { OnChainRawNotification, UnprocessedOnChainRawNotification } from "src/NotificationServicesController/types";
2
2
  /**
3
3
  * A true "raw notification" does not have some fields that exist on this type. E.g. the `type` field.
4
4
  * This is retro-actively added when we fetch notifications to be able to easily type-discriminate notifications.
@@ -8,4 +8,4 @@ import type { OnChainRawNotification, UnprocessedOnChainRawNotification } from '
8
8
  * @returns a complete raw onchain notification
9
9
  */
10
10
  export declare function toRawOnChainNotification(data: UnprocessedOnChainRawNotification): OnChainRawNotification;
11
- //# sourceMappingURL=to-raw-notification.d.ts.map
11
+ //# sourceMappingURL=to-raw-notification.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-raw-notification.d.cts","sourceRoot":"","sources":["../../src/shared/to-raw-notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,iCAAiC,EAClC,iDAAiD;AAElD;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,iCAAiC,GACtC,sBAAsB,CAKxB"}
@@ -0,0 +1,11 @@
1
+ import type { OnChainRawNotification, UnprocessedOnChainRawNotification } from "src/NotificationServicesController/types";
2
+ /**
3
+ * A true "raw notification" does not have some fields that exist on this type. E.g. the `type` field.
4
+ * This is retro-actively added when we fetch notifications to be able to easily type-discriminate notifications.
5
+ * We use this to ensure that the correct missing fields are added to the raw shapes
6
+ *
7
+ * @param data - raw onchain notification
8
+ * @returns a complete raw onchain notification
9
+ */
10
+ export declare function toRawOnChainNotification(data: UnprocessedOnChainRawNotification): OnChainRawNotification;
11
+ //# sourceMappingURL=to-raw-notification.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-raw-notification.d.mts","sourceRoot":"","sources":["../../src/shared/to-raw-notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,iCAAiC,EAClC,iDAAiD;AAElD;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,iCAAiC,GACtC,sBAAsB,CAKxB"}
@@ -1,8 +1,15 @@
1
- import {
2
- toRawOnChainNotification
3
- } from "../chunk-DINCLRZT.mjs";
4
- import "../chunk-U5UIDVOO.mjs";
5
- export {
6
- toRawOnChainNotification
7
- };
1
+ /**
2
+ * A true "raw notification" does not have some fields that exist on this type. E.g. the `type` field.
3
+ * This is retro-actively added when we fetch notifications to be able to easily type-discriminate notifications.
4
+ * We use this to ensure that the correct missing fields are added to the raw shapes
5
+ *
6
+ * @param data - raw onchain notification
7
+ * @returns a complete raw onchain notification
8
+ */
9
+ export function toRawOnChainNotification(data) {
10
+ return {
11
+ ...data,
12
+ type: data?.data?.kind,
13
+ };
14
+ }
8
15
  //# sourceMappingURL=to-raw-notification.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"to-raw-notification.mjs","sourceRoot":"","sources":["../../src/shared/to-raw-notification.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CACtC,IAAuC;IAEvC,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;KACG,CAAC;AAC9B,CAAC","sourcesContent":["import type {\n OnChainRawNotification,\n UnprocessedOnChainRawNotification,\n} from 'src/NotificationServicesController/types';\n\n/**\n * A true \"raw notification\" does not have some fields that exist on this type. E.g. the `type` field.\n * This is retro-actively added when we fetch notifications to be able to easily type-discriminate notifications.\n * We use this to ensure that the correct missing fields are added to the raw shapes\n *\n * @param data - raw onchain notification\n * @returns a complete raw onchain notification\n */\nexport function toRawOnChainNotification(\n data: UnprocessedOnChainRawNotification,\n): OnChainRawNotification {\n return {\n ...data,\n type: data?.data?.kind,\n } as OnChainRawNotification;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/notification-services-controller",
3
- "version": "0.5.0-preview-9edcf0e0",
3
+ "version": "0.5.0-preview-9d310688",
4
4
  "description": "Manages New MetaMask decentralized Notification system",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -18,9 +18,14 @@
18
18
  "sideEffects": false,
19
19
  "exports": {
20
20
  ".": {
21
- "import": "./dist/index.mjs",
22
- "require": "./dist/index.js",
23
- "types": "./dist/types/index.d.ts"
21
+ "import": {
22
+ "types": "./dist/index.d.mts",
23
+ "default": "./dist/index.mjs"
24
+ },
25
+ "require": {
26
+ "types": "./dist/index.d.cts",
27
+ "default": "./dist/index.cjs"
28
+ }
24
29
  },
25
30
  "./notification-services": {
26
31
  "import": "./dist/NotificationServicesController/index.mjs",
@@ -49,15 +54,15 @@
49
54
  },
50
55
  "./package.json": "./package.json"
51
56
  },
52
- "main": "./dist/index.js",
53
- "types": "./dist/types/index.d.ts",
57
+ "main": "./dist/index.cjs",
58
+ "types": "./dist/index.d.cts",
54
59
  "files": [
55
60
  "dist/",
56
61
  "notification-services/",
57
62
  "push-services/"
58
63
  ],
59
64
  "scripts": {
60
- "build": "tsup --config ../../tsup.config.ts --tsconfig ./tsconfig.build.json --clean",
65
+ "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
61
66
  "build:docs": "typedoc",
62
67
  "changelog:update": "../../scripts/update-changelog.sh @metamask/notification-services-controller",
63
68
  "changelog:validate": "../../scripts/validate-changelog.sh @metamask/notification-services-controller",
@@ -1,19 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkJIJXHO5Vjs = require('../chunk-JIJXHO5V.js');
5
- require('../chunk-SGLVWM4N.js');
6
- require('../chunk-LYEXYTOI.js');
7
- require('../chunk-LGXHJ24K.js');
8
- require('../chunk-52CALMRA.js');
9
- require('../chunk-NIPCK74T.js');
10
- require('../chunk-JW3TK3NU.js');
11
- require('../chunk-HE3P5RM7.js');
12
- require('../chunk-DT6SLUWJ.js');
13
- require('../chunk-TLX5QQK5.js');
14
- require('../chunk-IGY2S5BC.js');
15
-
16
-
17
-
18
- exports.default = _chunkJIJXHO5Vjs.NotificationServicesController; exports.defaultState = _chunkJIJXHO5Vjs.defaultState;
19
- //# sourceMappingURL=NotificationServicesController.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkTLX5QQK5js = require('../../chunk-TLX5QQK5.js');
5
- require('../../chunk-IGY2S5BC.js');
6
-
7
-
8
-
9
- exports.USER_STORAGE_VERSION = _chunkTLX5QQK5js.USER_STORAGE_VERSION; exports.USER_STORAGE_VERSION_KEY = _chunkTLX5QQK5js.USER_STORAGE_VERSION_KEY;
10
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,29 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-OMBFVTP2.js');
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
- var _chunkHE3P5RM7js = require('../../chunk-HE3P5RM7.js');
12
-
13
-
14
-
15
- var _chunkTLX5QQK5js = require('../../chunk-TLX5QQK5.js');
16
- require('../../chunk-IGY2S5BC.js');
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
- exports.CHAIN_SYMBOLS = _chunkHE3P5RM7js.CHAIN_SYMBOLS; exports.NOTIFICATION_CHAINS = _chunkHE3P5RM7js.NOTIFICATION_CHAINS; exports.NOTIFICATION_CHAINS_ID = _chunkHE3P5RM7js.NOTIFICATION_CHAINS_ID; exports.SUPPORTED_CHAINS = _chunkHE3P5RM7js.SUPPORTED_CHAINS; exports.TRIGGERS = _chunkHE3P5RM7js.TRIGGERS; exports.TRIGGER_TYPES = _chunkHE3P5RM7js.TRIGGER_TYPES; exports.TRIGGER_TYPES_GROUPS = _chunkHE3P5RM7js.TRIGGER_TYPES_GROUPS; exports.TRIGGER_TYPES_WALLET_SET = _chunkHE3P5RM7js.TRIGGER_TYPES_WALLET_SET; exports.USER_STORAGE_VERSION = _chunkTLX5QQK5js.USER_STORAGE_VERSION; exports.USER_STORAGE_VERSION_KEY = _chunkTLX5QQK5js.USER_STORAGE_VERSION_KEY;
29
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
- var _chunkHE3P5RM7js = require('../../chunk-HE3P5RM7.js');
11
- require('../../chunk-IGY2S5BC.js');
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
- exports.CHAIN_SYMBOLS = _chunkHE3P5RM7js.CHAIN_SYMBOLS; exports.NOTIFICATION_CHAINS = _chunkHE3P5RM7js.NOTIFICATION_CHAINS; exports.NOTIFICATION_CHAINS_ID = _chunkHE3P5RM7js.NOTIFICATION_CHAINS_ID; exports.SUPPORTED_CHAINS = _chunkHE3P5RM7js.SUPPORTED_CHAINS; exports.TRIGGERS = _chunkHE3P5RM7js.TRIGGERS; exports.TRIGGER_TYPES = _chunkHE3P5RM7js.TRIGGER_TYPES; exports.TRIGGER_TYPES_GROUPS = _chunkHE3P5RM7js.TRIGGER_TYPES_GROUPS; exports.TRIGGER_TYPES_WALLET_SET = _chunkHE3P5RM7js.TRIGGER_TYPES_WALLET_SET;
22
- //# sourceMappingURL=notification-schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,87 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkUQ6MTYIRjs = require('../chunk-UQ6MTYIR.js');
5
-
6
-
7
- var _chunk232HZSEVjs = require('../chunk-232HZSEV.js');
8
- require('../chunk-XZEVRYUE.js');
9
- require('../chunk-3ZS2HAEG.js');
10
- require('../chunk-ZV3DFBO4.js');
11
- require('../chunk-DMH4NSLF.js');
12
- require('../chunk-IPI7BAW3.js');
13
- require('../chunk-HPUQYDVC.js');
14
- require('../chunk-WRYFIWNK.js');
15
- require('../chunk-V5HMYDWE.js');
16
- require('../chunk-ZBNBZN5H.js');
17
- require('../chunk-PROWNV4M.js');
18
-
19
-
20
- var _chunkQAOZN4AXjs = require('../chunk-QAOZN4AX.js');
21
- require('../chunk-O45HYLIV.js');
22
-
23
-
24
- var _chunkOMBFVTP2js = require('../chunk-OMBFVTP2.js');
25
-
26
-
27
- var _chunkPJMQ2XEGjs = require('../chunk-PJMQ2XEG.js');
28
-
29
-
30
-
31
- var _chunkJIJXHO5Vjs = require('../chunk-JIJXHO5V.js');
32
-
33
-
34
-
35
- var _chunkSGLVWM4Njs = require('../chunk-SGLVWM4N.js');
36
-
37
-
38
- var _chunkLYEXYTOIjs = require('../chunk-LYEXYTOI.js');
39
- require('../chunk-LGXHJ24K.js');
40
-
41
-
42
-
43
- var _chunk52CALMRAjs = require('../chunk-52CALMRA.js');
44
- require('../chunk-NIPCK74T.js');
45
- require('../chunk-JW3TK3NU.js');
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
- var _chunkHE3P5RM7js = require('../chunk-HE3P5RM7.js');
56
- require('../chunk-DT6SLUWJ.js');
57
-
58
-
59
-
60
- var _chunkTLX5QQK5js = require('../chunk-TLX5QQK5.js');
61
- require('../chunk-IGY2S5BC.js');
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
- exports.CHAIN_SYMBOLS = _chunkHE3P5RM7js.CHAIN_SYMBOLS; exports.Constants = _chunkOMBFVTP2js.constants_exports; exports.Controller = _chunkJIJXHO5Vjs.NotificationServicesController; exports.Mocks = _chunkUQ6MTYIRjs.fixtures_exports; exports.NOTIFICATION_CHAINS = _chunkHE3P5RM7js.NOTIFICATION_CHAINS; exports.NOTIFICATION_CHAINS_ID = _chunkHE3P5RM7js.NOTIFICATION_CHAINS_ID; exports.Processors = _chunkPJMQ2XEGjs.processors_exports; exports.SUPPORTED_CHAINS = _chunkHE3P5RM7js.SUPPORTED_CHAINS; exports.TRIGGERS = _chunkHE3P5RM7js.TRIGGERS; exports.TRIGGER_TYPES = _chunkHE3P5RM7js.TRIGGER_TYPES; exports.TRIGGER_TYPES_GROUPS = _chunkHE3P5RM7js.TRIGGER_TYPES_GROUPS; exports.TRIGGER_TYPES_WALLET_SET = _chunkHE3P5RM7js.TRIGGER_TYPES_WALLET_SET; exports.Types = _chunk232HZSEVjs.types_exports; exports.UI = _chunkQAOZN4AXjs.ui_exports; exports.USER_STORAGE_VERSION = _chunkTLX5QQK5js.USER_STORAGE_VERSION; exports.USER_STORAGE_VERSION_KEY = _chunkTLX5QQK5js.USER_STORAGE_VERSION_KEY; exports.default = _chunkUQ6MTYIRjs.NotificationServicesController_default; exports.defaultState = _chunkJIJXHO5Vjs.defaultState; exports.isFeatureAnnouncementRead = _chunk52CALMRAjs.isFeatureAnnouncementRead; exports.processFeatureAnnouncement = _chunk52CALMRAjs.processFeatureAnnouncement; exports.processNotification = _chunkSGLVWM4Njs.processNotification; exports.processOnChainNotification = _chunkLYEXYTOIjs.processOnChainNotification; exports.safeProcessNotification = _chunkSGLVWM4Njs.safeProcessNotification;
87
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-PJMQ2XEG.js');
2
-
3
-
4
-
5
- var _chunkSGLVWM4Njs = require('../../chunk-SGLVWM4N.js');
6
-
7
-
8
- var _chunkLYEXYTOIjs = require('../../chunk-LYEXYTOI.js');
9
-
10
-
11
-
12
- var _chunk52CALMRAjs = require('../../chunk-52CALMRA.js');
13
- require('../../chunk-HE3P5RM7.js');
14
- require('../../chunk-IGY2S5BC.js');
15
-
16
-
17
-
18
-
19
-
20
-
21
- exports.isFeatureAnnouncementRead = _chunk52CALMRAjs.isFeatureAnnouncementRead; exports.processFeatureAnnouncement = _chunk52CALMRAjs.processFeatureAnnouncement; exports.processNotification = _chunkSGLVWM4Njs.processNotification; exports.processOnChainNotification = _chunkLYEXYTOIjs.processOnChainNotification; exports.safeProcessNotification = _chunkSGLVWM4Njs.safeProcessNotification;
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunk52CALMRAjs = require('../../chunk-52CALMRA.js');
5
- require('../../chunk-IGY2S5BC.js');
6
-
7
-
8
-
9
- exports.isFeatureAnnouncementRead = _chunk52CALMRAjs.isFeatureAnnouncementRead; exports.processFeatureAnnouncement = _chunk52CALMRAjs.processFeatureAnnouncement;
10
- //# sourceMappingURL=process-feature-announcement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkSGLVWM4Njs = require('../../chunk-SGLVWM4N.js');
5
- require('../../chunk-LYEXYTOI.js');
6
- require('../../chunk-52CALMRA.js');
7
- require('../../chunk-HE3P5RM7.js');
8
- require('../../chunk-IGY2S5BC.js');
9
-
10
-
11
-
12
- exports.processNotification = _chunkSGLVWM4Njs.processNotification; exports.safeProcessNotification = _chunkSGLVWM4Njs.safeProcessNotification;
13
- //# sourceMappingURL=process-notifications.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}