@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.
- package/dist/NotificationServicesController/NotificationServicesController.cjs +803 -0
- package/dist/NotificationServicesController/NotificationServicesController.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/NotificationServicesController.d.ts → NotificationServicesController/NotificationServicesController.d.cts} +7 -7
- package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +1 -0
- package/dist/NotificationServicesController/NotificationServicesController.d.mts +238 -0
- package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +1 -0
- package/dist/NotificationServicesController/NotificationServicesController.mjs +779 -17
- package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -1
- package/dist/NotificationServicesController/__fixtures__/index.cjs +22 -0
- package/dist/NotificationServicesController/__fixtures__/index.cjs.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/index.d.cts +6 -0
- package/dist/NotificationServicesController/__fixtures__/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/index.d.mts +6 -0
- package/dist/NotificationServicesController/__fixtures__/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/index.mjs +6 -0
- package/dist/NotificationServicesController/__fixtures__/index.mjs.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.cjs +210 -0
- package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/__fixtures__/mock-feature-announcements.d.ts → NotificationServicesController/__fixtures__/mock-feature-announcements.d.cts} +3 -3
- package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.cts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.mts +15 -0
- package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.d.mts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.mjs +205 -0
- package/dist/NotificationServicesController/__fixtures__/mock-feature-announcements.mjs.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.cjs +22 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/__fixtures__/mock-notification-trigger.d.ts → NotificationServicesController/__fixtures__/mock-notification-trigger.d.cts} +2 -2
- package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.cts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.mts +9 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.d.mts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.mjs +18 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-trigger.mjs.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.cjs +82 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.ts → NotificationServicesController/__fixtures__/mock-notification-user-storage.d.cts} +3 -3
- package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.cts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.mts +35 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.mts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.mjs +76 -0
- package/dist/NotificationServicesController/__fixtures__/mock-notification-user-storage.mjs.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.cjs +624 -0
- package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/__fixtures__/mock-raw-notifications.d.ts → NotificationServicesController/__fixtures__/mock-raw-notifications.d.cts} +2 -2
- package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.mts +82 -0
- package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.mjs +605 -0
- package/dist/NotificationServicesController/__fixtures__/mock-raw-notifications.mjs.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mockResponses.cjs +50 -0
- package/dist/NotificationServicesController/__fixtures__/mockResponses.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/__fixtures__/mockResponses.d.ts → NotificationServicesController/__fixtures__/mockResponses.d.cts} +5 -5
- package/dist/NotificationServicesController/__fixtures__/mockResponses.d.cts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mockResponses.d.mts +28 -0
- package/dist/NotificationServicesController/__fixtures__/mockResponses.d.mts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mockResponses.mjs +42 -0
- package/dist/NotificationServicesController/__fixtures__/mockResponses.mjs.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mockServices.cjs +56 -0
- package/dist/NotificationServicesController/__fixtures__/mockServices.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/__fixtures__/mockServices.d.ts → NotificationServicesController/__fixtures__/mockServices.d.cts} +2 -2
- package/dist/NotificationServicesController/__fixtures__/mockServices.d.cts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mockServices.d.mts +12 -0
- package/dist/NotificationServicesController/__fixtures__/mockServices.d.mts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/mockServices.mjs +52 -0
- package/dist/NotificationServicesController/__fixtures__/mockServices.mjs.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/test-utils.cjs +31 -0
- package/dist/NotificationServicesController/__fixtures__/test-utils.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/__fixtures__/test-utils.d.ts → NotificationServicesController/__fixtures__/test-utils.d.cts} +1 -1
- package/dist/NotificationServicesController/__fixtures__/test-utils.d.cts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/test-utils.d.mts +14 -0
- package/dist/NotificationServicesController/__fixtures__/test-utils.d.mts.map +1 -0
- package/dist/NotificationServicesController/__fixtures__/test-utils.mjs +27 -0
- package/dist/NotificationServicesController/__fixtures__/test-utils.mjs.map +1 -0
- package/dist/NotificationServicesController/constants/constants.cjs +7 -0
- package/dist/NotificationServicesController/constants/constants.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/constants/constants.d.ts → NotificationServicesController/constants/constants.d.cts} +1 -1
- package/dist/NotificationServicesController/constants/constants.d.cts.map +1 -0
- package/dist/NotificationServicesController/constants/constants.d.mts +3 -0
- package/dist/NotificationServicesController/constants/constants.d.mts.map +1 -0
- package/dist/NotificationServicesController/constants/constants.mjs +3 -9
- package/dist/NotificationServicesController/constants/constants.mjs.map +1 -1
- package/dist/NotificationServicesController/constants/index.cjs +19 -0
- package/dist/NotificationServicesController/constants/index.cjs.map +1 -0
- package/dist/NotificationServicesController/constants/index.d.cts +3 -0
- package/dist/NotificationServicesController/constants/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/constants/index.d.mts +3 -0
- package/dist/NotificationServicesController/constants/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/constants/index.mjs +2 -28
- package/dist/NotificationServicesController/constants/index.mjs.map +1 -1
- package/dist/NotificationServicesController/constants/notification-schema.cjs +170 -0
- package/dist/NotificationServicesController/constants/notification-schema.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/constants/notification-schema.d.ts → NotificationServicesController/constants/notification-schema.d.cts} +2 -2
- package/dist/NotificationServicesController/constants/notification-schema.d.cts.map +1 -0
- package/dist/NotificationServicesController/constants/notification-schema.d.mts +48 -0
- package/dist/NotificationServicesController/constants/notification-schema.d.mts.map +1 -0
- package/dist/NotificationServicesController/constants/notification-schema.mjs +165 -20
- package/dist/NotificationServicesController/constants/notification-schema.mjs.map +1 -1
- package/dist/NotificationServicesController/index.cjs +46 -0
- package/dist/NotificationServicesController/index.cjs.map +1 -0
- package/dist/NotificationServicesController/index.d.cts +14 -0
- package/dist/NotificationServicesController/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/index.d.mts +14 -0
- package/dist/NotificationServicesController/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/index.mjs +13 -86
- package/dist/NotificationServicesController/index.mjs.map +1 -1
- package/dist/NotificationServicesController/processors/index.cjs +20 -0
- package/dist/NotificationServicesController/processors/index.cjs.map +1 -0
- package/dist/NotificationServicesController/processors/index.d.cts +4 -0
- package/dist/NotificationServicesController/processors/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/index.d.mts +4 -0
- package/dist/NotificationServicesController/processors/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/index.mjs +3 -21
- package/dist/NotificationServicesController/processors/index.mjs.map +1 -1
- package/dist/NotificationServicesController/processors/process-feature-announcement.cjs +41 -0
- package/dist/{chunk-52CALMRA.js.map → NotificationServicesController/processors/process-feature-announcement.cjs.map} +1 -1
- package/dist/{types/NotificationServicesController/processors/process-feature-announcement.d.ts → NotificationServicesController/processors/process-feature-announcement.d.cts} +3 -3
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts +19 -0
- package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/process-feature-announcement.mjs +34 -8
- package/dist/NotificationServicesController/processors/process-feature-announcement.mjs.map +1 -1
- package/dist/NotificationServicesController/processors/process-notifications.cjs +50 -0
- package/dist/NotificationServicesController/processors/process-notifications.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/processors/process-notifications.d.ts → NotificationServicesController/processors/process-notifications.d.cts} +2 -2
- package/dist/NotificationServicesController/processors/process-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/process-notifications.d.mts +19 -0
- package/dist/NotificationServicesController/processors/process-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/process-notifications.mjs +44 -12
- package/dist/NotificationServicesController/processors/process-notifications.mjs.map +1 -1
- package/dist/NotificationServicesController/processors/process-onchain-notifications.cjs +19 -0
- package/dist/NotificationServicesController/processors/process-onchain-notifications.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/processors/process-onchain-notifications.d.ts → NotificationServicesController/processors/process-onchain-notifications.d.cts} +3 -3
- package/dist/NotificationServicesController/processors/process-onchain-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/processors/process-onchain-notifications.d.mts +10 -0
- package/dist/NotificationServicesController/processors/process-onchain-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs +14 -7
- package/dist/NotificationServicesController/processors/process-onchain-notifications.mjs.map +1 -1
- package/dist/NotificationServicesController/services/feature-announcements.cjs +97 -0
- package/dist/NotificationServicesController/services/feature-announcements.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/services/feature-announcements.d.ts → NotificationServicesController/services/feature-announcements.d.cts} +4 -4
- package/dist/NotificationServicesController/services/feature-announcements.d.cts.map +1 -0
- package/dist/NotificationServicesController/services/feature-announcements.d.mts +28 -0
- package/dist/NotificationServicesController/services/feature-announcements.d.mts.map +1 -0
- package/dist/NotificationServicesController/services/feature-announcements.mjs +91 -12
- package/dist/NotificationServicesController/services/feature-announcements.mjs.map +1 -1
- package/dist/NotificationServicesController/services/onchain-notifications.cjs +195 -0
- package/dist/NotificationServicesController/services/onchain-notifications.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/services/onchain-notifications.d.ts → NotificationServicesController/services/onchain-notifications.d.cts} +3 -3
- package/dist/NotificationServicesController/services/onchain-notifications.d.cts.map +1 -0
- package/dist/NotificationServicesController/services/onchain-notifications.d.mts +62 -0
- package/dist/NotificationServicesController/services/onchain-notifications.d.mts.map +1 -0
- package/dist/NotificationServicesController/services/onchain-notifications.mjs +190 -29
- package/dist/NotificationServicesController/services/onchain-notifications.mjs.map +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs +3 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts → NotificationServicesController/types/feature-announcement/feature-announcement.d.cts} +3 -3
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts +32 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs.map +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/index.cjs +20 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.d.cts +4 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.d.mts +4 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/index.mjs +3 -4
- package/dist/NotificationServicesController/types/feature-announcement/index.mjs.map +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs +3 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts → NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts} +3 -3
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts +39 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs.map +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs +3 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/types/feature-announcement/type-links.d.ts → NotificationServicesController/types/feature-announcement/type-links.d.cts} +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-links.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts +29 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs +1 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs.map +1 -1
- package/dist/NotificationServicesController/types/index.cjs +21 -0
- package/dist/NotificationServicesController/types/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/index.d.cts +5 -0
- package/dist/NotificationServicesController/types/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/index.d.mts +5 -0
- package/dist/NotificationServicesController/types/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/index.mjs +4 -11
- package/dist/NotificationServicesController/types/index.mjs.map +1 -1
- package/dist/NotificationServicesController/types/notification/index.cjs +18 -0
- package/dist/NotificationServicesController/types/notification/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/notification/index.d.cts +2 -0
- package/dist/NotificationServicesController/types/notification/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification/index.d.mts +2 -0
- package/dist/NotificationServicesController/types/notification/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/notification/index.mjs +1 -2
- package/dist/NotificationServicesController/types/notification/index.mjs.map +1 -1
- package/dist/NotificationServicesController/types/notification/notification.cjs +3 -0
- package/dist/NotificationServicesController/types/notification/notification.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/types/notification/notification.d.ts → NotificationServicesController/types/notification/notification.d.cts} +4 -4
- package/dist/NotificationServicesController/types/notification/notification.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/notification/notification.d.mts +25 -0
- package/dist/NotificationServicesController/types/notification/notification.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/notification/notification.mjs +1 -1
- package/dist/NotificationServicesController/types/notification/notification.mjs.map +1 -1
- package/dist/NotificationServicesController/types/on-chain-notification/index.cjs +18 -0
- package/dist/NotificationServicesController/types/on-chain-notification/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/on-chain-notification/index.d.cts +2 -0
- package/dist/NotificationServicesController/types/on-chain-notification/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/on-chain-notification/index.d.mts +2 -0
- package/dist/NotificationServicesController/types/on-chain-notification/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/on-chain-notification/index.mjs +1 -2
- package/dist/NotificationServicesController/types/on-chain-notification/index.mjs.map +1 -1
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.cjs +3 -0
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.cjs.map +1 -0
- 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
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.mts +43 -0
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs +1 -1
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.mjs.map +1 -1
- package/dist/NotificationServicesController/types/on-chain-notification/schema.cjs +9 -0
- package/dist/NotificationServicesController/types/on-chain-notification/schema.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/types/on-chain-notification/schema.d.ts → NotificationServicesController/types/on-chain-notification/schema.d.cts} +1 -1
- package/dist/NotificationServicesController/types/on-chain-notification/schema.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/on-chain-notification/schema.d.mts +283 -0
- package/dist/NotificationServicesController/types/on-chain-notification/schema.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs +7 -0
- package/dist/NotificationServicesController/types/on-chain-notification/schema.mjs.map +1 -1
- package/dist/NotificationServicesController/types/type-utils.cjs +3 -0
- package/dist/NotificationServicesController/types/type-utils.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/types/type-utils.d.ts → NotificationServicesController/types/type-utils.d.cts} +1 -1
- package/dist/NotificationServicesController/types/type-utils.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/type-utils.d.mts +7 -0
- package/dist/NotificationServicesController/types/type-utils.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/type-utils.mjs +1 -0
- package/dist/NotificationServicesController/types/type-utils.mjs.map +1 -1
- package/dist/NotificationServicesController/types/user-storage/index.cjs +18 -0
- package/dist/NotificationServicesController/types/user-storage/index.cjs.map +1 -0
- package/dist/NotificationServicesController/types/user-storage/index.d.cts +2 -0
- package/dist/NotificationServicesController/types/user-storage/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/user-storage/index.d.mts +2 -0
- package/dist/NotificationServicesController/types/user-storage/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/user-storage/index.mjs +1 -2
- package/dist/NotificationServicesController/types/user-storage/index.mjs.map +1 -1
- package/dist/NotificationServicesController/types/user-storage/user-storage.cjs +3 -0
- package/dist/NotificationServicesController/types/user-storage/user-storage.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/types/user-storage/user-storage.d.ts → NotificationServicesController/types/user-storage/user-storage.d.cts} +3 -3
- package/dist/NotificationServicesController/types/user-storage/user-storage.d.cts.map +1 -0
- package/dist/NotificationServicesController/types/user-storage/user-storage.d.mts +26 -0
- package/dist/NotificationServicesController/types/user-storage/user-storage.d.mts.map +1 -0
- package/dist/NotificationServicesController/types/user-storage/user-storage.mjs +1 -1
- package/dist/NotificationServicesController/types/user-storage/user-storage.mjs.map +1 -1
- package/dist/NotificationServicesController/ui/constants.cjs +62 -0
- package/dist/NotificationServicesController/ui/constants.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/ui/constants.d.ts → NotificationServicesController/ui/constants.d.cts} +2 -2
- package/dist/NotificationServicesController/ui/constants.d.cts.map +1 -0
- package/dist/NotificationServicesController/ui/constants.d.mts +54 -0
- package/dist/NotificationServicesController/ui/constants.d.mts.map +1 -0
- package/dist/NotificationServicesController/ui/constants.mjs +56 -14
- package/dist/NotificationServicesController/ui/constants.mjs.map +1 -1
- package/dist/NotificationServicesController/ui/index.cjs +18 -0
- package/dist/NotificationServicesController/ui/index.cjs.map +1 -0
- package/dist/NotificationServicesController/ui/index.d.cts +2 -0
- package/dist/NotificationServicesController/ui/index.d.cts.map +1 -0
- package/dist/NotificationServicesController/ui/index.d.mts +2 -0
- package/dist/NotificationServicesController/ui/index.d.mts.map +1 -0
- package/dist/NotificationServicesController/ui/index.mjs +1 -16
- package/dist/NotificationServicesController/ui/index.mjs.map +1 -1
- package/dist/NotificationServicesController/utils/utils.cjs +348 -0
- package/dist/NotificationServicesController/utils/utils.cjs.map +1 -0
- package/dist/{types/NotificationServicesController/utils/utils.d.ts → NotificationServicesController/utils/utils.d.cts} +3 -3
- package/dist/NotificationServicesController/utils/utils.d.cts.map +1 -0
- package/dist/NotificationServicesController/utils/utils.d.mts +142 -0
- package/dist/NotificationServicesController/utils/utils.d.mts.map +1 -0
- package/dist/NotificationServicesController/utils/utils.mjs +332 -31
- package/dist/NotificationServicesController/utils/utils.mjs.map +1 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs +215 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/NotificationServicesPushController.d.ts → NotificationServicesPushController/NotificationServicesPushController.d.cts} +6 -6
- package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts +112 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +214 -37
- package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -1
- package/dist/NotificationServicesPushController/__fixtures__/index.cjs +18 -0
- package/dist/NotificationServicesPushController/__fixtures__/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/index.d.cts +2 -0
- package/dist/NotificationServicesPushController/__fixtures__/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/index.d.mts +2 -0
- package/dist/NotificationServicesPushController/__fixtures__/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/index.mjs +2 -0
- package/dist/NotificationServicesPushController/__fixtures__/index.mjs.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockResponse.cjs +57 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockResponse.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/__fixtures__/mockResponse.d.ts → NotificationServicesPushController/__fixtures__/mockResponse.d.cts} +2 -2
- package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.mts +43 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockResponse.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockResponse.mjs +50 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockResponse.mjs.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockServices.cjs +31 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockServices.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/__fixtures__/mockServices.d.ts → NotificationServicesPushController/__fixtures__/mockServices.d.cts} +2 -2
- package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.mts +9 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockServices.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockServices.mjs +30 -0
- package/dist/NotificationServicesPushController/__fixtures__/mockServices.mjs.map +1 -0
- package/dist/NotificationServicesPushController/constants.cjs +14 -0
- package/dist/NotificationServicesPushController/constants.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/constants.d.ts → NotificationServicesPushController/constants.d.cts} +1 -1
- package/dist/NotificationServicesPushController/constants.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/constants.d.mts +11 -0
- package/dist/NotificationServicesPushController/constants.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/constants.mjs +10 -25
- package/dist/NotificationServicesPushController/constants.mjs.map +1 -1
- package/dist/NotificationServicesPushController/index.cjs +43 -0
- package/dist/NotificationServicesPushController/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/index.d.cts +11 -0
- package/dist/NotificationServicesPushController/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/index.d.mts +11 -0
- package/dist/NotificationServicesPushController/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/index.mjs +10 -71
- package/dist/NotificationServicesPushController/index.mjs.map +1 -1
- package/dist/NotificationServicesPushController/services/endpoints.cjs +6 -0
- package/dist/NotificationServicesPushController/services/endpoints.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/services/endpoints.d.ts → NotificationServicesPushController/services/endpoints.d.cts} +1 -1
- package/dist/NotificationServicesPushController/services/endpoints.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/services/endpoints.d.mts +2 -0
- package/dist/NotificationServicesPushController/services/endpoints.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/services/endpoints.mjs +2 -7
- package/dist/NotificationServicesPushController/services/endpoints.mjs.map +1 -1
- package/dist/NotificationServicesPushController/services/push/index.cjs +3 -0
- package/dist/NotificationServicesPushController/services/push/index.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/services/push/index.d.ts → NotificationServicesPushController/services/push/index.d.cts} +2 -2
- package/dist/NotificationServicesPushController/services/push/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/services/push/index.d.mts +6 -0
- package/dist/NotificationServicesPushController/services/push/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/services/push/index.mjs +1 -0
- package/dist/NotificationServicesPushController/services/push/index.mjs.map +1 -1
- package/dist/NotificationServicesPushController/services/push/push-web.cjs +121 -0
- package/dist/NotificationServicesPushController/services/push/push-web.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/services/push/push-web.d.ts → NotificationServicesPushController/services/push/push-web.d.cts} +3 -3
- package/dist/NotificationServicesPushController/services/push/push-web.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/services/push/push-web.d.mts +32 -0
- package/dist/NotificationServicesPushController/services/push/push-web.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/services/push/push-web.mjs +116 -38
- package/dist/NotificationServicesPushController/services/push/push-web.mjs.map +1 -1
- package/dist/NotificationServicesPushController/services/services.cjs +197 -0
- package/dist/NotificationServicesPushController/services/services.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/services/services.d.ts → NotificationServicesPushController/services/services.d.cts} +4 -4
- package/dist/NotificationServicesPushController/services/services.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/services/services.d.mts +95 -0
- package/dist/NotificationServicesPushController/services/services.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/services/services.mjs +168 -45
- package/dist/NotificationServicesPushController/services/services.mjs.map +1 -1
- package/dist/NotificationServicesPushController/types/firebase.cjs +3 -0
- package/dist/NotificationServicesPushController/types/firebase.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/types/firebase.d.ts → NotificationServicesPushController/types/firebase.d.cts} +1 -1
- package/dist/NotificationServicesPushController/types/firebase.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/types/firebase.d.mts +53 -0
- package/dist/NotificationServicesPushController/types/firebase.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/types/firebase.mjs +1 -1
- package/dist/NotificationServicesPushController/types/firebase.mjs.map +1 -1
- package/dist/NotificationServicesPushController/types/index.cjs +18 -0
- package/dist/NotificationServicesPushController/types/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/types/index.d.cts +2 -0
- package/dist/NotificationServicesPushController/types/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/types/index.d.mts +2 -0
- package/dist/NotificationServicesPushController/types/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/types/index.mjs +1 -2
- package/dist/NotificationServicesPushController/types/index.mjs.map +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-data.cjs +84 -0
- package/dist/NotificationServicesPushController/utils/get-notification-data.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/utils/get-notification-data.d.ts → NotificationServicesPushController/utils/get-notification-data.d.cts} +2 -2
- package/dist/NotificationServicesPushController/utils/get-notification-data.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts +42 -0
- package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/utils/get-notification-data.mjs +76 -12
- package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +1 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.cjs +190 -0
- package/dist/NotificationServicesPushController/utils/get-notification-message.cjs.map +1 -0
- package/dist/{types/NotificationServicesPushController/utils/get-notification-message.d.ts → NotificationServicesPushController/utils/get-notification-message.d.cts} +3 -3
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts +67 -0
- package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/utils/get-notification-message.mjs +182 -37
- package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +1 -1
- package/dist/NotificationServicesPushController/utils/index.cjs +19 -0
- package/dist/NotificationServicesPushController/utils/index.cjs.map +1 -0
- package/dist/NotificationServicesPushController/utils/index.d.cts +3 -0
- package/dist/NotificationServicesPushController/utils/index.d.cts.map +1 -0
- package/dist/NotificationServicesPushController/utils/index.d.mts +3 -0
- package/dist/NotificationServicesPushController/utils/index.d.mts.map +1 -0
- package/dist/NotificationServicesPushController/utils/index.mjs +2 -48
- package/dist/NotificationServicesPushController/utils/index.mjs.map +1 -1
- package/dist/index.cjs +29 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -45
- package/dist/index.mjs.map +1 -1
- package/dist/shared/to-raw-notification.cjs +19 -0
- package/dist/shared/to-raw-notification.cjs.map +1 -0
- package/dist/{types/shared/to-raw-notification.d.ts → shared/to-raw-notification.d.cts} +2 -2
- package/dist/shared/to-raw-notification.d.cts.map +1 -0
- package/dist/shared/to-raw-notification.d.mts +11 -0
- package/dist/shared/to-raw-notification.d.mts.map +1 -0
- package/dist/shared/to-raw-notification.mjs +14 -7
- package/dist/shared/to-raw-notification.mjs.map +1 -1
- package/package.json +12 -7
- package/dist/NotificationServicesController/NotificationServicesController.js +0 -19
- package/dist/NotificationServicesController/NotificationServicesController.js.map +0 -1
- package/dist/NotificationServicesController/constants/constants.js +0 -10
- package/dist/NotificationServicesController/constants/constants.js.map +0 -1
- package/dist/NotificationServicesController/constants/index.js +0 -29
- package/dist/NotificationServicesController/constants/index.js.map +0 -1
- package/dist/NotificationServicesController/constants/notification-schema.js +0 -22
- package/dist/NotificationServicesController/constants/notification-schema.js.map +0 -1
- package/dist/NotificationServicesController/index.js +0 -87
- package/dist/NotificationServicesController/index.js.map +0 -1
- package/dist/NotificationServicesController/processors/index.js +0 -22
- package/dist/NotificationServicesController/processors/index.js.map +0 -1
- package/dist/NotificationServicesController/processors/process-feature-announcement.js +0 -10
- package/dist/NotificationServicesController/processors/process-feature-announcement.js.map +0 -1
- package/dist/NotificationServicesController/processors/process-notifications.js +0 -13
- package/dist/NotificationServicesController/processors/process-notifications.js.map +0 -1
- package/dist/NotificationServicesController/processors/process-onchain-notifications.js +0 -8
- package/dist/NotificationServicesController/processors/process-onchain-notifications.js.map +0 -1
- package/dist/NotificationServicesController/services/feature-announcements.js +0 -14
- package/dist/NotificationServicesController/services/feature-announcements.js.map +0 -1
- package/dist/NotificationServicesController/services/onchain-notifications.js +0 -30
- package/dist/NotificationServicesController/services/onchain-notifications.js.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js +0 -2
- package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/index.js +0 -5
- package/dist/NotificationServicesController/types/feature-announcement/index.js.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js +0 -2
- package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js.map +0 -1
- package/dist/NotificationServicesController/types/feature-announcement/type-links.js +0 -2
- package/dist/NotificationServicesController/types/feature-announcement/type-links.js.map +0 -1
- package/dist/NotificationServicesController/types/index.js +0 -12
- package/dist/NotificationServicesController/types/index.js.map +0 -1
- package/dist/NotificationServicesController/types/notification/index.js +0 -3
- package/dist/NotificationServicesController/types/notification/index.js.map +0 -1
- package/dist/NotificationServicesController/types/notification/notification.js +0 -2
- package/dist/NotificationServicesController/types/notification/notification.js.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/index.js +0 -3
- package/dist/NotificationServicesController/types/on-chain-notification/index.js.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.js +0 -2
- package/dist/NotificationServicesController/types/on-chain-notification/on-chain-notification.js.map +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/schema.js +0 -1
- package/dist/NotificationServicesController/types/on-chain-notification/schema.js.map +0 -1
- package/dist/NotificationServicesController/types/type-utils.js +0 -1
- package/dist/NotificationServicesController/types/type-utils.js.map +0 -1
- package/dist/NotificationServicesController/types/user-storage/index.js +0 -3
- package/dist/NotificationServicesController/types/user-storage/index.js.map +0 -1
- package/dist/NotificationServicesController/types/user-storage/user-storage.js +0 -2
- package/dist/NotificationServicesController/types/user-storage/user-storage.js.map +0 -1
- package/dist/NotificationServicesController/ui/constants.js +0 -16
- package/dist/NotificationServicesController/ui/constants.js.map +0 -1
- package/dist/NotificationServicesController/ui/index.js +0 -17
- package/dist/NotificationServicesController/ui/index.js.map +0 -1
- package/dist/NotificationServicesController/utils/utils.js +0 -32
- package/dist/NotificationServicesController/utils/utils.js.map +0 -1
- package/dist/NotificationServicesPushController/NotificationServicesPushController.js +0 -39
- package/dist/NotificationServicesPushController/NotificationServicesPushController.js.map +0 -1
- package/dist/NotificationServicesPushController/constants.js +0 -26
- package/dist/NotificationServicesPushController/constants.js.map +0 -1
- package/dist/NotificationServicesPushController/index.js +0 -72
- package/dist/NotificationServicesPushController/index.js.map +0 -1
- package/dist/NotificationServicesPushController/services/endpoints.js +0 -8
- package/dist/NotificationServicesPushController/services/endpoints.js.map +0 -1
- package/dist/NotificationServicesPushController/services/push/index.js +0 -1
- package/dist/NotificationServicesPushController/services/push/index.js.map +0 -1
- package/dist/NotificationServicesPushController/services/push/push-web.js +0 -40
- package/dist/NotificationServicesPushController/services/push/push-web.js.map +0 -1
- package/dist/NotificationServicesPushController/services/services.js +0 -46
- package/dist/NotificationServicesPushController/services/services.js.map +0 -1
- package/dist/NotificationServicesPushController/types/firebase.js +0 -2
- package/dist/NotificationServicesPushController/types/firebase.js.map +0 -1
- package/dist/NotificationServicesPushController/types/index.js +0 -3
- package/dist/NotificationServicesPushController/types/index.js.map +0 -1
- package/dist/NotificationServicesPushController/utils/get-notification-data.js +0 -14
- package/dist/NotificationServicesPushController/utils/get-notification-data.js.map +0 -1
- package/dist/NotificationServicesPushController/utils/get-notification-message.js +0 -39
- package/dist/NotificationServicesPushController/utils/get-notification-message.js.map +0 -1
- package/dist/NotificationServicesPushController/utils/index.js +0 -49
- package/dist/NotificationServicesPushController/utils/index.js.map +0 -1
- package/dist/chunk-232HZSEV.js +0 -7
- package/dist/chunk-232HZSEV.js.map +0 -1
- package/dist/chunk-2P5WP5NT.mjs +0 -37
- package/dist/chunk-2P5WP5NT.mjs.map +0 -1
- package/dist/chunk-3ZS2HAEG.js +0 -1
- package/dist/chunk-3ZS2HAEG.js.map +0 -1
- package/dist/chunk-4BTNTREI.mjs +0 -1
- package/dist/chunk-4BTNTREI.mjs.map +0 -1
- package/dist/chunk-4QXAPVW3.mjs +0 -1
- package/dist/chunk-4QXAPVW3.mjs.map +0 -1
- package/dist/chunk-52CALMRA.js +0 -28
- package/dist/chunk-53F3SYYM.mjs +0 -178
- package/dist/chunk-53F3SYYM.mjs.map +0 -1
- package/dist/chunk-5FAAZCBK.mjs +0 -29
- package/dist/chunk-5FAAZCBK.mjs.map +0 -1
- package/dist/chunk-6FLC6CJD.js +0 -149
- package/dist/chunk-6FLC6CJD.js.map +0 -1
- package/dist/chunk-6ZDVTRRT.mjs +0 -9
- package/dist/chunk-6ZDVTRRT.mjs.map +0 -1
- package/dist/chunk-77QIITUL.mjs +0 -67
- package/dist/chunk-77QIITUL.mjs.map +0 -1
- package/dist/chunk-7LWR54U7.js +0 -7
- package/dist/chunk-7LWR54U7.js.map +0 -1
- package/dist/chunk-7PWKQSM2.mjs +0 -972
- package/dist/chunk-7PWKQSM2.mjs.map +0 -1
- package/dist/chunk-7RM3YNTD.mjs +0 -1
- package/dist/chunk-7RM3YNTD.mjs.map +0 -1
- package/dist/chunk-A2RPVX47.mjs +0 -1
- package/dist/chunk-A2RPVX47.mjs.map +0 -1
- package/dist/chunk-B25TJ7KS.js +0 -8
- package/dist/chunk-B25TJ7KS.js.map +0 -1
- package/dist/chunk-B4ECJJ5C.mjs +0 -7
- package/dist/chunk-B4ECJJ5C.mjs.map +0 -1
- package/dist/chunk-BONB66A2.mjs +0 -14
- package/dist/chunk-BONB66A2.mjs.map +0 -1
- package/dist/chunk-C62SK2KY.mjs +0 -92
- package/dist/chunk-C62SK2KY.mjs.map +0 -1
- package/dist/chunk-CGPMMFUQ.mjs +0 -96
- package/dist/chunk-CGPMMFUQ.mjs.map +0 -1
- package/dist/chunk-CWZQMK63.mjs +0 -118
- package/dist/chunk-CWZQMK63.mjs.map +0 -1
- package/dist/chunk-D42BBXBM.mjs +0 -28
- package/dist/chunk-D42BBXBM.mjs.map +0 -1
- package/dist/chunk-DINCLRZT.mjs +0 -12
- package/dist/chunk-DINCLRZT.mjs.map +0 -1
- package/dist/chunk-DMH4NSLF.js +0 -1
- package/dist/chunk-DMH4NSLF.js.map +0 -1
- package/dist/chunk-DT6SLUWJ.js +0 -12
- package/dist/chunk-DT6SLUWJ.js.map +0 -1
- package/dist/chunk-EJ52BDLB.js +0 -55
- package/dist/chunk-EJ52BDLB.js.map +0 -1
- package/dist/chunk-ER475D6V.mjs +0 -231
- package/dist/chunk-ER475D6V.mjs.map +0 -1
- package/dist/chunk-G52DNXFH.mjs +0 -1
- package/dist/chunk-G52DNXFH.mjs.map +0 -1
- package/dist/chunk-GETQWOTI.js +0 -1
- package/dist/chunk-GETQWOTI.js.map +0 -1
- package/dist/chunk-HCDICNYK.js +0 -207
- package/dist/chunk-HCDICNYK.js.map +0 -1
- package/dist/chunk-HE3P5RM7.js +0 -178
- package/dist/chunk-HE3P5RM7.js.map +0 -1
- package/dist/chunk-HPUQYDVC.js +0 -1
- package/dist/chunk-HPUQYDVC.js.map +0 -1
- package/dist/chunk-HT6T5R4U.js +0 -96
- package/dist/chunk-HT6T5R4U.js.map +0 -1
- package/dist/chunk-IDO4JFV5.mjs +0 -1
- package/dist/chunk-IDO4JFV5.mjs.map +0 -1
- package/dist/chunk-IGY2S5BC.js +0 -36
- package/dist/chunk-IGY2S5BC.js.map +0 -1
- package/dist/chunk-IKWNHNJQ.mjs +0 -8
- package/dist/chunk-IKWNHNJQ.mjs.map +0 -1
- package/dist/chunk-IOMDG67D.mjs +0 -7
- package/dist/chunk-IOMDG67D.mjs.map +0 -1
- package/dist/chunk-IPI7BAW3.js +0 -1
- package/dist/chunk-IPI7BAW3.js.map +0 -1
- package/dist/chunk-JIJXHO5V.js +0 -885
- package/dist/chunk-JIJXHO5V.js.map +0 -1
- package/dist/chunk-JQ7WKFCI.mjs +0 -1
- package/dist/chunk-JQ7WKFCI.mjs.map +0 -1
- package/dist/chunk-JW3TK3NU.js +0 -221
- package/dist/chunk-JW3TK3NU.js.map +0 -1
- package/dist/chunk-KGLHGLER.js +0 -231
- package/dist/chunk-KGLHGLER.js.map +0 -1
- package/dist/chunk-LGXHJ24K.js +0 -92
- package/dist/chunk-LGXHJ24K.js.map +0 -1
- package/dist/chunk-LYEXYTOI.js +0 -14
- package/dist/chunk-LYEXYTOI.js.map +0 -1
- package/dist/chunk-LZMC2QML.mjs +0 -25
- package/dist/chunk-LZMC2QML.mjs.map +0 -1
- package/dist/chunk-MG5QDUDI.mjs +0 -48
- package/dist/chunk-MG5QDUDI.mjs.map +0 -1
- package/dist/chunk-MNBV5FJI.mjs +0 -31
- package/dist/chunk-MNBV5FJI.mjs.map +0 -1
- package/dist/chunk-NIPCK74T.js +0 -185
- package/dist/chunk-NIPCK74T.js.map +0 -1
- package/dist/chunk-O45HYLIV.js +0 -67
- package/dist/chunk-O45HYLIV.js.map +0 -1
- package/dist/chunk-ODI2BTKS.mjs +0 -55
- package/dist/chunk-ODI2BTKS.mjs.map +0 -1
- package/dist/chunk-OHFX4S6R.mjs +0 -185
- package/dist/chunk-OHFX4S6R.mjs.map +0 -1
- package/dist/chunk-OMBFVTP2.js +0 -37
- package/dist/chunk-OMBFVTP2.js.map +0 -1
- package/dist/chunk-PJMQ2XEG.js +0 -29
- package/dist/chunk-PJMQ2XEG.js.map +0 -1
- package/dist/chunk-PNCS6GEX.mjs +0 -1
- package/dist/chunk-PNCS6GEX.mjs.map +0 -1
- package/dist/chunk-PROWNV4M.js +0 -1
- package/dist/chunk-PROWNV4M.js.map +0 -1
- package/dist/chunk-QAOZN4AX.js +0 -25
- package/dist/chunk-QAOZN4AX.js.map +0 -1
- package/dist/chunk-QB5IFRLA.mjs +0 -1
- package/dist/chunk-QB5IFRLA.mjs.map +0 -1
- package/dist/chunk-RAUV5UV4.mjs +0 -1
- package/dist/chunk-RAUV5UV4.mjs.map +0 -1
- package/dist/chunk-SGLVWM4N.js +0 -48
- package/dist/chunk-SGLVWM4N.js.map +0 -1
- package/dist/chunk-TLX5QQK5.js +0 -9
- package/dist/chunk-TLX5QQK5.js.map +0 -1
- package/dist/chunk-U5UIDVOO.mjs +0 -36
- package/dist/chunk-U5UIDVOO.mjs.map +0 -1
- package/dist/chunk-U74Q3BRP.mjs +0 -1
- package/dist/chunk-U74Q3BRP.mjs.map +0 -1
- package/dist/chunk-UQ6MTYIR.js +0 -972
- package/dist/chunk-UQ6MTYIR.js.map +0 -1
- package/dist/chunk-UZHUVXRM.js +0 -31
- package/dist/chunk-UZHUVXRM.js.map +0 -1
- package/dist/chunk-V5HMYDWE.js +0 -1
- package/dist/chunk-V5HMYDWE.js.map +0 -1
- package/dist/chunk-VZMQIJMK.mjs +0 -149
- package/dist/chunk-VZMQIJMK.mjs.map +0 -1
- package/dist/chunk-W7IP4LDB.js +0 -118
- package/dist/chunk-W7IP4LDB.js.map +0 -1
- package/dist/chunk-WE4RFGT7.mjs +0 -885
- package/dist/chunk-WE4RFGT7.mjs.map +0 -1
- package/dist/chunk-WGBEAP2F.mjs +0 -207
- package/dist/chunk-WGBEAP2F.mjs.map +0 -1
- package/dist/chunk-WRYFIWNK.js +0 -1
- package/dist/chunk-WRYFIWNK.js.map +0 -1
- package/dist/chunk-XZEVRYUE.js +0 -1
- package/dist/chunk-XZEVRYUE.js.map +0 -1
- package/dist/chunk-YUMIJSUD.mjs +0 -221
- package/dist/chunk-YUMIJSUD.mjs.map +0 -1
- package/dist/chunk-ZBNBZN5H.js +0 -1
- package/dist/chunk-ZBNBZN5H.js.map +0 -1
- package/dist/chunk-ZV3DFBO4.js +0 -1
- package/dist/chunk-ZV3DFBO4.js.map +0 -1
- package/dist/index.js +0 -46
- package/dist/index.js.map +0 -1
- package/dist/shared/to-raw-notification.js +0 -8
- package/dist/shared/to-raw-notification.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/types/NotificationServicesController/NotificationServicesController.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/index.d.ts +0 -6
- package/dist/types/NotificationServicesController/__fixtures__/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/mock-feature-announcements.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/mock-notification-trigger.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/mock-notification-user-storage.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/mock-raw-notifications.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/mockResponses.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/mockServices.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/__fixtures__/test-utils.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/constants/constants.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/constants/index.d.ts +0 -3
- package/dist/types/NotificationServicesController/constants/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/constants/notification-schema.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/index.d.ts +0 -14
- package/dist/types/NotificationServicesController/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/processors/index.d.ts +0 -4
- package/dist/types/NotificationServicesController/processors/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/processors/process-feature-announcement.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/processors/process-notifications.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/processors/process-onchain-notifications.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/services/feature-announcements.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/services/onchain-notifications.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/feature-announcement/index.d.ts +0 -4
- package/dist/types/NotificationServicesController/types/feature-announcement/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/feature-announcement/type-links.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/index.d.ts +0 -5
- package/dist/types/NotificationServicesController/types/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/notification/index.d.ts +0 -2
- package/dist/types/NotificationServicesController/types/notification/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/notification/notification.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/on-chain-notification/index.d.ts +0 -2
- package/dist/types/NotificationServicesController/types/on-chain-notification/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/on-chain-notification/on-chain-notification.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/on-chain-notification/schema.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/type-utils.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/user-storage/index.d.ts +0 -2
- package/dist/types/NotificationServicesController/types/user-storage/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/types/user-storage/user-storage.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/ui/constants.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/ui/index.d.ts +0 -2
- package/dist/types/NotificationServicesController/ui/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesController/utils/utils.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/NotificationServicesPushController.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts +0 -2
- package/dist/types/NotificationServicesPushController/__fixtures__/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/__fixtures__/mockResponse.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/__fixtures__/mockServices.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/constants.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/index.d.ts +0 -11
- package/dist/types/NotificationServicesPushController/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/services/endpoints.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/services/push/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/services/push/push-web.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/services/services.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/types/firebase.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/types/index.d.ts +0 -2
- package/dist/types/NotificationServicesPushController/types/index.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/utils/get-notification-data.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/utils/get-notification-message.d.ts.map +0 -1
- package/dist/types/NotificationServicesPushController/utils/index.d.ts +0 -3
- package/dist/types/NotificationServicesPushController/utils/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/shared/to-raw-notification.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/NotificationServicesController/constants/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,0CAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/NotificationServicesController/constants/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,0CAAsC"}
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
CHAIN_SYMBOLS,
|
|
4
|
-
NOTIFICATION_CHAINS,
|
|
5
|
-
NOTIFICATION_CHAINS_ID,
|
|
6
|
-
SUPPORTED_CHAINS,
|
|
7
|
-
TRIGGERS,
|
|
8
|
-
TRIGGER_TYPES,
|
|
9
|
-
TRIGGER_TYPES_GROUPS,
|
|
10
|
-
TRIGGER_TYPES_WALLET_SET
|
|
11
|
-
} from "../../chunk-53F3SYYM.mjs";
|
|
12
|
-
import {
|
|
13
|
-
USER_STORAGE_VERSION,
|
|
14
|
-
USER_STORAGE_VERSION_KEY
|
|
15
|
-
} from "../../chunk-6ZDVTRRT.mjs";
|
|
16
|
-
import "../../chunk-U5UIDVOO.mjs";
|
|
17
|
-
export {
|
|
18
|
-
CHAIN_SYMBOLS,
|
|
19
|
-
NOTIFICATION_CHAINS,
|
|
20
|
-
NOTIFICATION_CHAINS_ID,
|
|
21
|
-
SUPPORTED_CHAINS,
|
|
22
|
-
TRIGGERS,
|
|
23
|
-
TRIGGER_TYPES,
|
|
24
|
-
TRIGGER_TYPES_GROUPS,
|
|
25
|
-
TRIGGER_TYPES_WALLET_SET,
|
|
26
|
-
USER_STORAGE_VERSION,
|
|
27
|
-
USER_STORAGE_VERSION_KEY
|
|
28
|
-
};
|
|
1
|
+
export * from "./constants.mjs";
|
|
2
|
+
export * from "./notification-schema.mjs";
|
|
29
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/NotificationServicesController/constants/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,0CAAsC","sourcesContent":["export * from './constants';\nexport * from './notification-schema';\n"]}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TRIGGERS = exports.SUPPORTED_CHAINS = exports.CHAIN_SYMBOLS = exports.NOTIFICATION_CHAINS = exports.NOTIFICATION_CHAINS_ID = exports.TRIGGER_TYPES_GROUPS = exports.TRIGGER_TYPES_WALLET_SET = exports.TRIGGER_TYPES = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
5
|
+
var TRIGGER_TYPES;
|
|
6
|
+
(function (TRIGGER_TYPES) {
|
|
7
|
+
TRIGGER_TYPES["FEATURES_ANNOUNCEMENT"] = "features_announcement";
|
|
8
|
+
TRIGGER_TYPES["METAMASK_SWAP_COMPLETED"] = "metamask_swap_completed";
|
|
9
|
+
TRIGGER_TYPES["ERC20_SENT"] = "erc20_sent";
|
|
10
|
+
TRIGGER_TYPES["ERC20_RECEIVED"] = "erc20_received";
|
|
11
|
+
TRIGGER_TYPES["ETH_SENT"] = "eth_sent";
|
|
12
|
+
TRIGGER_TYPES["ETH_RECEIVED"] = "eth_received";
|
|
13
|
+
TRIGGER_TYPES["ROCKETPOOL_STAKE_COMPLETED"] = "rocketpool_stake_completed";
|
|
14
|
+
TRIGGER_TYPES["ROCKETPOOL_UNSTAKE_COMPLETED"] = "rocketpool_unstake_completed";
|
|
15
|
+
TRIGGER_TYPES["LIDO_STAKE_COMPLETED"] = "lido_stake_completed";
|
|
16
|
+
TRIGGER_TYPES["LIDO_WITHDRAWAL_REQUESTED"] = "lido_withdrawal_requested";
|
|
17
|
+
TRIGGER_TYPES["LIDO_WITHDRAWAL_COMPLETED"] = "lido_withdrawal_completed";
|
|
18
|
+
TRIGGER_TYPES["LIDO_STAKE_READY_TO_BE_WITHDRAWN"] = "lido_stake_ready_to_be_withdrawn";
|
|
19
|
+
TRIGGER_TYPES["ERC721_SENT"] = "erc721_sent";
|
|
20
|
+
TRIGGER_TYPES["ERC721_RECEIVED"] = "erc721_received";
|
|
21
|
+
TRIGGER_TYPES["ERC1155_SENT"] = "erc1155_sent";
|
|
22
|
+
TRIGGER_TYPES["ERC1155_RECEIVED"] = "erc1155_received";
|
|
23
|
+
})(TRIGGER_TYPES || (exports.TRIGGER_TYPES = TRIGGER_TYPES = {}));
|
|
24
|
+
exports.TRIGGER_TYPES_WALLET_SET = new Set([
|
|
25
|
+
TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,
|
|
26
|
+
TRIGGER_TYPES.ERC20_SENT,
|
|
27
|
+
TRIGGER_TYPES.ERC20_RECEIVED,
|
|
28
|
+
TRIGGER_TYPES.ETH_SENT,
|
|
29
|
+
TRIGGER_TYPES.ETH_RECEIVED,
|
|
30
|
+
TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,
|
|
31
|
+
TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,
|
|
32
|
+
TRIGGER_TYPES.LIDO_STAKE_COMPLETED,
|
|
33
|
+
TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,
|
|
34
|
+
TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,
|
|
35
|
+
TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,
|
|
36
|
+
TRIGGER_TYPES.ERC721_SENT,
|
|
37
|
+
TRIGGER_TYPES.ERC721_RECEIVED,
|
|
38
|
+
TRIGGER_TYPES.ERC1155_SENT,
|
|
39
|
+
TRIGGER_TYPES.ERC1155_RECEIVED,
|
|
40
|
+
]);
|
|
41
|
+
var TRIGGER_TYPES_GROUPS;
|
|
42
|
+
(function (TRIGGER_TYPES_GROUPS) {
|
|
43
|
+
TRIGGER_TYPES_GROUPS["RECEIVED"] = "received";
|
|
44
|
+
TRIGGER_TYPES_GROUPS["SENT"] = "sent";
|
|
45
|
+
TRIGGER_TYPES_GROUPS["DEFI"] = "defi";
|
|
46
|
+
})(TRIGGER_TYPES_GROUPS || (exports.TRIGGER_TYPES_GROUPS = TRIGGER_TYPES_GROUPS = {}));
|
|
47
|
+
exports.NOTIFICATION_CHAINS_ID = {
|
|
48
|
+
ETHEREUM: '1',
|
|
49
|
+
OPTIMISM: '10',
|
|
50
|
+
BSC: '56',
|
|
51
|
+
POLYGON: '137',
|
|
52
|
+
ARBITRUM: '42161',
|
|
53
|
+
AVALANCHE: '43114',
|
|
54
|
+
LINEA: '59144',
|
|
55
|
+
};
|
|
56
|
+
exports.NOTIFICATION_CHAINS = exports.NOTIFICATION_CHAINS_ID;
|
|
57
|
+
exports.CHAIN_SYMBOLS = {
|
|
58
|
+
[exports.NOTIFICATION_CHAINS.ETHEREUM]: 'ETH',
|
|
59
|
+
[exports.NOTIFICATION_CHAINS.OPTIMISM]: 'ETH',
|
|
60
|
+
[exports.NOTIFICATION_CHAINS.BSC]: 'BNB',
|
|
61
|
+
[exports.NOTIFICATION_CHAINS.POLYGON]: 'POL',
|
|
62
|
+
[exports.NOTIFICATION_CHAINS.ARBITRUM]: 'ETH',
|
|
63
|
+
[exports.NOTIFICATION_CHAINS.AVALANCHE]: 'AVAX',
|
|
64
|
+
[exports.NOTIFICATION_CHAINS.LINEA]: 'ETH',
|
|
65
|
+
};
|
|
66
|
+
exports.SUPPORTED_CHAINS = [
|
|
67
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
68
|
+
exports.NOTIFICATION_CHAINS.OPTIMISM,
|
|
69
|
+
exports.NOTIFICATION_CHAINS.BSC,
|
|
70
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
71
|
+
exports.NOTIFICATION_CHAINS.ARBITRUM,
|
|
72
|
+
exports.NOTIFICATION_CHAINS.AVALANCHE,
|
|
73
|
+
exports.NOTIFICATION_CHAINS.LINEA,
|
|
74
|
+
];
|
|
75
|
+
exports.TRIGGERS = {
|
|
76
|
+
[TRIGGER_TYPES.METAMASK_SWAP_COMPLETED]: {
|
|
77
|
+
supported_chains: [
|
|
78
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
79
|
+
exports.NOTIFICATION_CHAINS.OPTIMISM,
|
|
80
|
+
exports.NOTIFICATION_CHAINS.BSC,
|
|
81
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
82
|
+
exports.NOTIFICATION_CHAINS.ARBITRUM,
|
|
83
|
+
exports.NOTIFICATION_CHAINS.AVALANCHE,
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
[TRIGGER_TYPES.ERC20_SENT]: {
|
|
87
|
+
supported_chains: [
|
|
88
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
89
|
+
exports.NOTIFICATION_CHAINS.OPTIMISM,
|
|
90
|
+
exports.NOTIFICATION_CHAINS.BSC,
|
|
91
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
92
|
+
exports.NOTIFICATION_CHAINS.ARBITRUM,
|
|
93
|
+
exports.NOTIFICATION_CHAINS.AVALANCHE,
|
|
94
|
+
exports.NOTIFICATION_CHAINS.LINEA,
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
[TRIGGER_TYPES.ERC20_RECEIVED]: {
|
|
98
|
+
supported_chains: [
|
|
99
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
100
|
+
exports.NOTIFICATION_CHAINS.OPTIMISM,
|
|
101
|
+
exports.NOTIFICATION_CHAINS.BSC,
|
|
102
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
103
|
+
exports.NOTIFICATION_CHAINS.ARBITRUM,
|
|
104
|
+
exports.NOTIFICATION_CHAINS.AVALANCHE,
|
|
105
|
+
exports.NOTIFICATION_CHAINS.LINEA,
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
[TRIGGER_TYPES.ERC721_SENT]: {
|
|
109
|
+
supported_chains: [
|
|
110
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
111
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
[TRIGGER_TYPES.ERC721_RECEIVED]: {
|
|
115
|
+
supported_chains: [
|
|
116
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
117
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
[TRIGGER_TYPES.ERC1155_SENT]: {
|
|
121
|
+
supported_chains: [
|
|
122
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
123
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
[TRIGGER_TYPES.ERC1155_RECEIVED]: {
|
|
127
|
+
supported_chains: [
|
|
128
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
129
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
[TRIGGER_TYPES.ETH_SENT]: {
|
|
133
|
+
supported_chains: [
|
|
134
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
135
|
+
exports.NOTIFICATION_CHAINS.OPTIMISM,
|
|
136
|
+
exports.NOTIFICATION_CHAINS.BSC,
|
|
137
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
138
|
+
exports.NOTIFICATION_CHAINS.ARBITRUM,
|
|
139
|
+
exports.NOTIFICATION_CHAINS.AVALANCHE,
|
|
140
|
+
exports.NOTIFICATION_CHAINS.LINEA,
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
[TRIGGER_TYPES.ETH_RECEIVED]: {
|
|
144
|
+
supported_chains: [
|
|
145
|
+
exports.NOTIFICATION_CHAINS.ETHEREUM,
|
|
146
|
+
exports.NOTIFICATION_CHAINS.OPTIMISM,
|
|
147
|
+
exports.NOTIFICATION_CHAINS.BSC,
|
|
148
|
+
exports.NOTIFICATION_CHAINS.POLYGON,
|
|
149
|
+
exports.NOTIFICATION_CHAINS.ARBITRUM,
|
|
150
|
+
exports.NOTIFICATION_CHAINS.AVALANCHE,
|
|
151
|
+
exports.NOTIFICATION_CHAINS.LINEA,
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
[TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED]: {
|
|
155
|
+
supported_chains: [exports.NOTIFICATION_CHAINS.ETHEREUM],
|
|
156
|
+
},
|
|
157
|
+
[TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED]: {
|
|
158
|
+
supported_chains: [exports.NOTIFICATION_CHAINS.ETHEREUM],
|
|
159
|
+
},
|
|
160
|
+
[TRIGGER_TYPES.LIDO_STAKE_COMPLETED]: {
|
|
161
|
+
supported_chains: [exports.NOTIFICATION_CHAINS.ETHEREUM],
|
|
162
|
+
},
|
|
163
|
+
[TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED]: {
|
|
164
|
+
supported_chains: [exports.NOTIFICATION_CHAINS.ETHEREUM],
|
|
165
|
+
},
|
|
166
|
+
[TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED]: {
|
|
167
|
+
supported_chains: [exports.NOTIFICATION_CHAINS.ETHEREUM],
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
//# sourceMappingURL=notification-schema.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-schema.cjs","sourceRoot":"","sources":["../../../src/NotificationServicesController/constants/notification-schema.ts"],"names":[],"mappings":";;;AAEA,yDAAyD;AACzD,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gEAA+C,CAAA;IAC/C,oEAAmD,CAAA;IACnD,0CAAyB,CAAA;IACzB,kDAAiC,CAAA;IACjC,sCAAqB,CAAA;IACrB,8CAA6B,CAAA;IAC7B,0EAAyD,CAAA;IACzD,8EAA6D,CAAA;IAC7D,8DAA6C,CAAA;IAC7C,wEAAuD,CAAA;IACvD,wEAAuD,CAAA;IACvD,sFAAqE,CAAA;IACrE,4CAA2B,CAAA;IAC3B,oDAAmC,CAAA;IACnC,8CAA6B,CAAA;IAC7B,sDAAqC,CAAA;AACvC,CAAC,EAjBW,aAAa,6BAAb,aAAa,QAiBxB;AAEY,QAAA,wBAAwB,GAAgB,IAAI,GAAG,CAAC;IAC3D,aAAa,CAAC,uBAAuB;IACrC,aAAa,CAAC,UAAU;IACxB,aAAa,CAAC,cAAc;IAC5B,aAAa,CAAC,QAAQ;IACtB,aAAa,CAAC,YAAY;IAC1B,aAAa,CAAC,0BAA0B;IACxC,aAAa,CAAC,4BAA4B;IAC1C,aAAa,CAAC,oBAAoB;IAClC,aAAa,CAAC,yBAAyB;IACvC,aAAa,CAAC,yBAAyB;IACvC,aAAa,CAAC,gCAAgC;IA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;SAC5B;KACF;IACD,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE;QACxB,gBAAgB,EAAE;YAChB,2BAAmB,CAAC,QAAQ;YAC5B,2BAAmB,CAAC,QAAQ;YAC5B,2BAAmB,CAAC,GAAG;YACvB,2BAAmB,CAAC,OAAO;YAC3B,2BAAmB,CAAC,QAAQ;YAC5B,2BAAmB,CAAC,SAAS;YAC7B,2BAAmB,CAAC,KAAK;SAC1B;KACF;IACD,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE;QAC5B,gBAAgB,EAAE;YAChB,2BAAmB,CAAC,QAAQ;YAC5B,2BAAmB,CAAC,QAAQ;YAC5B,2BAAmB,CAAC,GAAG;YACvB,2BAAmB,CAAC,OAAO;YAC3B,2BAAmB,CAAC,QAAQ;YAC5B,2BAAmB,CAAC,SAAS;YAC7B,2BAAmB,CAAC,KAAK;SAC1B;KACF;IACD,CAAC,aAAa,CAAC,0BAA0B,CAAC,EAAE;QAC1C,gBAAgB,EAAE,CAAC,2BAAmB,CAAC,QAAQ,CAAC;KACjD;IACD,CAAC,aAAa,CAAC,4BAA4B,CAAC,EAAE;QAC5C,gBAAgB,EAAE,CAAC,2BAAmB,CAAC,QAAQ,CAAC;KACjD;IACD,CAAC,aAAa,CAAC,oBAAoB,CAAC,EAAE;QACpC,gBAAgB,EAAE,CAAC,2BAAmB,CAAC,QAAQ,CAAC;KACjD;IACD,CAAC,aAAa,CAAC,yBAAyB,CAAC,EAAE;QACzC,gBAAgB,EAAE,CAAC,2BAAmB,CAAC,QAAQ,CAAC;KACjD;IACD,CAAC,aAAa,CAAC,yBAAyB,CAAC,EAAE;QACzC,gBAAgB,EAAE,CAAC,2BAAmB,CAAC,QAAQ,CAAC;KACjD;CACF,CAAC","sourcesContent":["import type { Compute } from '../types/type-utils';\n\n/* eslint-disable @typescript-eslint/naming-convention */\nexport enum TRIGGER_TYPES {\n FEATURES_ANNOUNCEMENT = 'features_announcement',\n METAMASK_SWAP_COMPLETED = 'metamask_swap_completed',\n ERC20_SENT = 'erc20_sent',\n ERC20_RECEIVED = 'erc20_received',\n ETH_SENT = 'eth_sent',\n ETH_RECEIVED = 'eth_received',\n ROCKETPOOL_STAKE_COMPLETED = 'rocketpool_stake_completed',\n ROCKETPOOL_UNSTAKE_COMPLETED = 'rocketpool_unstake_completed',\n LIDO_STAKE_COMPLETED = 'lido_stake_completed',\n LIDO_WITHDRAWAL_REQUESTED = 'lido_withdrawal_requested',\n LIDO_WITHDRAWAL_COMPLETED = 'lido_withdrawal_completed',\n LIDO_STAKE_READY_TO_BE_WITHDRAWN = 'lido_stake_ready_to_be_withdrawn',\n ERC721_SENT = 'erc721_sent',\n ERC721_RECEIVED = 'erc721_received',\n ERC1155_SENT = 'erc1155_sent',\n ERC1155_RECEIVED = 'erc1155_received',\n}\n\nexport const TRIGGER_TYPES_WALLET_SET: Set<string> = new Set([\n TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,\n TRIGGER_TYPES.ERC20_SENT,\n TRIGGER_TYPES.ERC20_RECEIVED,\n TRIGGER_TYPES.ETH_SENT,\n TRIGGER_TYPES.ETH_RECEIVED,\n TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,\n TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,\n TRIGGER_TYPES.LIDO_STAKE_COMPLETED,\n TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,\n TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,\n TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,\n TRIGGER_TYPES.ERC721_SENT,\n TRIGGER_TYPES.ERC721_RECEIVED,\n TRIGGER_TYPES.ERC1155_SENT,\n TRIGGER_TYPES.ERC1155_RECEIVED,\n]) satisfies Set<Exclude<TRIGGER_TYPES, TRIGGER_TYPES.FEATURES_ANNOUNCEMENT>>;\n\nexport enum TRIGGER_TYPES_GROUPS {\n RECEIVED = 'received',\n SENT = 'sent',\n DEFI = 'defi',\n}\n\nexport const NOTIFICATION_CHAINS_ID = {\n ETHEREUM: '1',\n OPTIMISM: '10',\n BSC: '56',\n POLYGON: '137',\n ARBITRUM: '42161',\n AVALANCHE: '43114',\n LINEA: '59144',\n} as const;\n\ntype ToPrimitiveKeys<TObj> = Compute<{\n [K in keyof TObj]: TObj[K] extends string ? string : TObj[K];\n}>;\nexport const NOTIFICATION_CHAINS: ToPrimitiveKeys<\n typeof NOTIFICATION_CHAINS_ID\n> = NOTIFICATION_CHAINS_ID;\n\nexport const CHAIN_SYMBOLS = {\n [NOTIFICATION_CHAINS.ETHEREUM]: 'ETH',\n [NOTIFICATION_CHAINS.OPTIMISM]: 'ETH',\n [NOTIFICATION_CHAINS.BSC]: 'BNB',\n [NOTIFICATION_CHAINS.POLYGON]: 'POL',\n [NOTIFICATION_CHAINS.ARBITRUM]: 'ETH',\n [NOTIFICATION_CHAINS.AVALANCHE]: 'AVAX',\n [NOTIFICATION_CHAINS.LINEA]: 'ETH',\n};\n\nexport const SUPPORTED_CHAINS = [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n];\n\nexport type Trigger = {\n supported_chains: (typeof SUPPORTED_CHAINS)[number][];\n};\n\nexport const TRIGGERS: Partial<Record<TRIGGER_TYPES, Trigger>> = {\n [TRIGGER_TYPES.METAMASK_SWAP_COMPLETED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n ],\n },\n [TRIGGER_TYPES.ERC20_SENT]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n ],\n },\n [TRIGGER_TYPES.ERC20_RECEIVED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n ],\n },\n [TRIGGER_TYPES.ERC721_SENT]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.POLYGON,\n ],\n },\n [TRIGGER_TYPES.ERC721_RECEIVED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.POLYGON,\n ],\n },\n [TRIGGER_TYPES.ERC1155_SENT]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.POLYGON,\n ],\n },\n [TRIGGER_TYPES.ERC1155_RECEIVED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.POLYGON,\n ],\n },\n [TRIGGER_TYPES.ETH_SENT]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n ],\n },\n [TRIGGER_TYPES.ETH_RECEIVED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n ],\n },\n [TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n [TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n [TRIGGER_TYPES.LIDO_STAKE_COMPLETED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n [TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n [TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Compute } from
|
|
1
|
+
import type { Compute } from "../types/type-utils.cjs";
|
|
2
2
|
export declare enum TRIGGER_TYPES {
|
|
3
3
|
FEATURES_ANNOUNCEMENT = "features_announcement",
|
|
4
4
|
METAMASK_SWAP_COMPLETED = "metamask_swap_completed",
|
|
@@ -45,4 +45,4 @@ export type Trigger = {
|
|
|
45
45
|
};
|
|
46
46
|
export declare const TRIGGERS: Partial<Record<TRIGGER_TYPES, Trigger>>;
|
|
47
47
|
export {};
|
|
48
|
-
//# sourceMappingURL=notification-schema.d.
|
|
48
|
+
//# sourceMappingURL=notification-schema.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-schema.d.cts","sourceRoot":"","sources":["../../../src/NotificationServicesController/constants/notification-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,gCAA4B;AAGnD,oBAAY,aAAa;IACvB,qBAA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
|
4
|
+
METAMASK_SWAP_COMPLETED = "metamask_swap_completed",
|
|
5
|
+
ERC20_SENT = "erc20_sent",
|
|
6
|
+
ERC20_RECEIVED = "erc20_received",
|
|
7
|
+
ETH_SENT = "eth_sent",
|
|
8
|
+
ETH_RECEIVED = "eth_received",
|
|
9
|
+
ROCKETPOOL_STAKE_COMPLETED = "rocketpool_stake_completed",
|
|
10
|
+
ROCKETPOOL_UNSTAKE_COMPLETED = "rocketpool_unstake_completed",
|
|
11
|
+
LIDO_STAKE_COMPLETED = "lido_stake_completed",
|
|
12
|
+
LIDO_WITHDRAWAL_REQUESTED = "lido_withdrawal_requested",
|
|
13
|
+
LIDO_WITHDRAWAL_COMPLETED = "lido_withdrawal_completed",
|
|
14
|
+
LIDO_STAKE_READY_TO_BE_WITHDRAWN = "lido_stake_ready_to_be_withdrawn",
|
|
15
|
+
ERC721_SENT = "erc721_sent",
|
|
16
|
+
ERC721_RECEIVED = "erc721_received",
|
|
17
|
+
ERC1155_SENT = "erc1155_sent",
|
|
18
|
+
ERC1155_RECEIVED = "erc1155_received"
|
|
19
|
+
}
|
|
20
|
+
export declare const TRIGGER_TYPES_WALLET_SET: Set<string>;
|
|
21
|
+
export declare enum TRIGGER_TYPES_GROUPS {
|
|
22
|
+
RECEIVED = "received",
|
|
23
|
+
SENT = "sent",
|
|
24
|
+
DEFI = "defi"
|
|
25
|
+
}
|
|
26
|
+
export declare const NOTIFICATION_CHAINS_ID: {
|
|
27
|
+
readonly ETHEREUM: "1";
|
|
28
|
+
readonly OPTIMISM: "10";
|
|
29
|
+
readonly BSC: "56";
|
|
30
|
+
readonly POLYGON: "137";
|
|
31
|
+
readonly ARBITRUM: "42161";
|
|
32
|
+
readonly AVALANCHE: "43114";
|
|
33
|
+
readonly LINEA: "59144";
|
|
34
|
+
};
|
|
35
|
+
type ToPrimitiveKeys<TObj> = Compute<{
|
|
36
|
+
[K in keyof TObj]: TObj[K] extends string ? string : TObj[K];
|
|
37
|
+
}>;
|
|
38
|
+
export declare const NOTIFICATION_CHAINS: ToPrimitiveKeys<typeof NOTIFICATION_CHAINS_ID>;
|
|
39
|
+
export declare const CHAIN_SYMBOLS: {
|
|
40
|
+
[x: string]: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const SUPPORTED_CHAINS: string[];
|
|
43
|
+
export type Trigger = {
|
|
44
|
+
supported_chains: (typeof SUPPORTED_CHAINS)[number][];
|
|
45
|
+
};
|
|
46
|
+
export declare const TRIGGERS: Partial<Record<TRIGGER_TYPES, Trigger>>;
|
|
47
|
+
export {};
|
|
48
|
+
//# sourceMappingURL=notification-schema.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-schema.d.mts","sourceRoot":"","sources":["../../../src/NotificationServicesController/constants/notification-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,gCAA4B;AAGnD,oBAAY,aAAa;IACvB,qBAAqB,0BAA0B;IAC/C,uBAAuB,4BAA4B;IACnD,UAAU,eAAe;IACzB,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,0BAA0B,+BAA+B;IACzD,4BAA4B,iCAAiC;IAC7D,oBAAoB,yBAAyB;IAC7C,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;IACvD,gCAAgC,qCAAqC;IACrE,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;CACtC;AAED,eAAO,MAAM,wBAAwB,EAAE,GAAG,CAAC,MAAM,CAgB4B,CAAC;AAE9E,oBAAY,oBAAoB;IAC9B,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AAEX,KAAK,eAAe,CAAC,IAAI,IAAI,OAAO,CAAC;KAClC,CAAC,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;CAC7D,CAAC,CAAC;AACH,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAC/C,OAAO,sBAAsB,CACL,CAAC;AAE3B,eAAO,MAAM,aAAa;;CAQzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAQ5B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,gBAAgB,EAAE,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CA8F5D,CAAC"}
|
|
@@ -1,22 +1,167 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
+
export var TRIGGER_TYPES;
|
|
3
|
+
(function (TRIGGER_TYPES) {
|
|
4
|
+
TRIGGER_TYPES["FEATURES_ANNOUNCEMENT"] = "features_announcement";
|
|
5
|
+
TRIGGER_TYPES["METAMASK_SWAP_COMPLETED"] = "metamask_swap_completed";
|
|
6
|
+
TRIGGER_TYPES["ERC20_SENT"] = "erc20_sent";
|
|
7
|
+
TRIGGER_TYPES["ERC20_RECEIVED"] = "erc20_received";
|
|
8
|
+
TRIGGER_TYPES["ETH_SENT"] = "eth_sent";
|
|
9
|
+
TRIGGER_TYPES["ETH_RECEIVED"] = "eth_received";
|
|
10
|
+
TRIGGER_TYPES["ROCKETPOOL_STAKE_COMPLETED"] = "rocketpool_stake_completed";
|
|
11
|
+
TRIGGER_TYPES["ROCKETPOOL_UNSTAKE_COMPLETED"] = "rocketpool_unstake_completed";
|
|
12
|
+
TRIGGER_TYPES["LIDO_STAKE_COMPLETED"] = "lido_stake_completed";
|
|
13
|
+
TRIGGER_TYPES["LIDO_WITHDRAWAL_REQUESTED"] = "lido_withdrawal_requested";
|
|
14
|
+
TRIGGER_TYPES["LIDO_WITHDRAWAL_COMPLETED"] = "lido_withdrawal_completed";
|
|
15
|
+
TRIGGER_TYPES["LIDO_STAKE_READY_TO_BE_WITHDRAWN"] = "lido_stake_ready_to_be_withdrawn";
|
|
16
|
+
TRIGGER_TYPES["ERC721_SENT"] = "erc721_sent";
|
|
17
|
+
TRIGGER_TYPES["ERC721_RECEIVED"] = "erc721_received";
|
|
18
|
+
TRIGGER_TYPES["ERC1155_SENT"] = "erc1155_sent";
|
|
19
|
+
TRIGGER_TYPES["ERC1155_RECEIVED"] = "erc1155_received";
|
|
20
|
+
})(TRIGGER_TYPES || (TRIGGER_TYPES = {}));
|
|
21
|
+
export const TRIGGER_TYPES_WALLET_SET = new Set([
|
|
22
|
+
TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,
|
|
23
|
+
TRIGGER_TYPES.ERC20_SENT,
|
|
24
|
+
TRIGGER_TYPES.ERC20_RECEIVED,
|
|
25
|
+
TRIGGER_TYPES.ETH_SENT,
|
|
26
|
+
TRIGGER_TYPES.ETH_RECEIVED,
|
|
27
|
+
TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,
|
|
28
|
+
TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,
|
|
29
|
+
TRIGGER_TYPES.LIDO_STAKE_COMPLETED,
|
|
30
|
+
TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,
|
|
31
|
+
TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,
|
|
32
|
+
TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,
|
|
33
|
+
TRIGGER_TYPES.ERC721_SENT,
|
|
34
|
+
TRIGGER_TYPES.ERC721_RECEIVED,
|
|
35
|
+
TRIGGER_TYPES.ERC1155_SENT,
|
|
36
|
+
TRIGGER_TYPES.ERC1155_RECEIVED,
|
|
37
|
+
]);
|
|
38
|
+
export var TRIGGER_TYPES_GROUPS;
|
|
39
|
+
(function (TRIGGER_TYPES_GROUPS) {
|
|
40
|
+
TRIGGER_TYPES_GROUPS["RECEIVED"] = "received";
|
|
41
|
+
TRIGGER_TYPES_GROUPS["SENT"] = "sent";
|
|
42
|
+
TRIGGER_TYPES_GROUPS["DEFI"] = "defi";
|
|
43
|
+
})(TRIGGER_TYPES_GROUPS || (TRIGGER_TYPES_GROUPS = {}));
|
|
44
|
+
export const NOTIFICATION_CHAINS_ID = {
|
|
45
|
+
ETHEREUM: '1',
|
|
46
|
+
OPTIMISM: '10',
|
|
47
|
+
BSC: '56',
|
|
48
|
+
POLYGON: '137',
|
|
49
|
+
ARBITRUM: '42161',
|
|
50
|
+
AVALANCHE: '43114',
|
|
51
|
+
LINEA: '59144',
|
|
52
|
+
};
|
|
53
|
+
export const NOTIFICATION_CHAINS = NOTIFICATION_CHAINS_ID;
|
|
54
|
+
export const CHAIN_SYMBOLS = {
|
|
55
|
+
[NOTIFICATION_CHAINS.ETHEREUM]: 'ETH',
|
|
56
|
+
[NOTIFICATION_CHAINS.OPTIMISM]: 'ETH',
|
|
57
|
+
[NOTIFICATION_CHAINS.BSC]: 'BNB',
|
|
58
|
+
[NOTIFICATION_CHAINS.POLYGON]: 'POL',
|
|
59
|
+
[NOTIFICATION_CHAINS.ARBITRUM]: 'ETH',
|
|
60
|
+
[NOTIFICATION_CHAINS.AVALANCHE]: 'AVAX',
|
|
61
|
+
[NOTIFICATION_CHAINS.LINEA]: 'ETH',
|
|
62
|
+
};
|
|
63
|
+
export const SUPPORTED_CHAINS = [
|
|
64
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
65
|
+
NOTIFICATION_CHAINS.OPTIMISM,
|
|
66
|
+
NOTIFICATION_CHAINS.BSC,
|
|
67
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
68
|
+
NOTIFICATION_CHAINS.ARBITRUM,
|
|
69
|
+
NOTIFICATION_CHAINS.AVALANCHE,
|
|
70
|
+
NOTIFICATION_CHAINS.LINEA,
|
|
71
|
+
];
|
|
72
|
+
export const TRIGGERS = {
|
|
73
|
+
[TRIGGER_TYPES.METAMASK_SWAP_COMPLETED]: {
|
|
74
|
+
supported_chains: [
|
|
75
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
76
|
+
NOTIFICATION_CHAINS.OPTIMISM,
|
|
77
|
+
NOTIFICATION_CHAINS.BSC,
|
|
78
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
79
|
+
NOTIFICATION_CHAINS.ARBITRUM,
|
|
80
|
+
NOTIFICATION_CHAINS.AVALANCHE,
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
[TRIGGER_TYPES.ERC20_SENT]: {
|
|
84
|
+
supported_chains: [
|
|
85
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
86
|
+
NOTIFICATION_CHAINS.OPTIMISM,
|
|
87
|
+
NOTIFICATION_CHAINS.BSC,
|
|
88
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
89
|
+
NOTIFICATION_CHAINS.ARBITRUM,
|
|
90
|
+
NOTIFICATION_CHAINS.AVALANCHE,
|
|
91
|
+
NOTIFICATION_CHAINS.LINEA,
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
[TRIGGER_TYPES.ERC20_RECEIVED]: {
|
|
95
|
+
supported_chains: [
|
|
96
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
97
|
+
NOTIFICATION_CHAINS.OPTIMISM,
|
|
98
|
+
NOTIFICATION_CHAINS.BSC,
|
|
99
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
100
|
+
NOTIFICATION_CHAINS.ARBITRUM,
|
|
101
|
+
NOTIFICATION_CHAINS.AVALANCHE,
|
|
102
|
+
NOTIFICATION_CHAINS.LINEA,
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
[TRIGGER_TYPES.ERC721_SENT]: {
|
|
106
|
+
supported_chains: [
|
|
107
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
108
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
[TRIGGER_TYPES.ERC721_RECEIVED]: {
|
|
112
|
+
supported_chains: [
|
|
113
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
114
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
[TRIGGER_TYPES.ERC1155_SENT]: {
|
|
118
|
+
supported_chains: [
|
|
119
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
120
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
[TRIGGER_TYPES.ERC1155_RECEIVED]: {
|
|
124
|
+
supported_chains: [
|
|
125
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
126
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
[TRIGGER_TYPES.ETH_SENT]: {
|
|
130
|
+
supported_chains: [
|
|
131
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
132
|
+
NOTIFICATION_CHAINS.OPTIMISM,
|
|
133
|
+
NOTIFICATION_CHAINS.BSC,
|
|
134
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
135
|
+
NOTIFICATION_CHAINS.ARBITRUM,
|
|
136
|
+
NOTIFICATION_CHAINS.AVALANCHE,
|
|
137
|
+
NOTIFICATION_CHAINS.LINEA,
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
[TRIGGER_TYPES.ETH_RECEIVED]: {
|
|
141
|
+
supported_chains: [
|
|
142
|
+
NOTIFICATION_CHAINS.ETHEREUM,
|
|
143
|
+
NOTIFICATION_CHAINS.OPTIMISM,
|
|
144
|
+
NOTIFICATION_CHAINS.BSC,
|
|
145
|
+
NOTIFICATION_CHAINS.POLYGON,
|
|
146
|
+
NOTIFICATION_CHAINS.ARBITRUM,
|
|
147
|
+
NOTIFICATION_CHAINS.AVALANCHE,
|
|
148
|
+
NOTIFICATION_CHAINS.LINEA,
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
[TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED]: {
|
|
152
|
+
supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],
|
|
153
|
+
},
|
|
154
|
+
[TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED]: {
|
|
155
|
+
supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],
|
|
156
|
+
},
|
|
157
|
+
[TRIGGER_TYPES.LIDO_STAKE_COMPLETED]: {
|
|
158
|
+
supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],
|
|
159
|
+
},
|
|
160
|
+
[TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED]: {
|
|
161
|
+
supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],
|
|
162
|
+
},
|
|
163
|
+
[TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED]: {
|
|
164
|
+
supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],
|
|
165
|
+
},
|
|
21
166
|
};
|
|
22
167
|
//# sourceMappingURL=notification-schema.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"
|
|
1
|
+
{"version":3,"file":"notification-schema.mjs","sourceRoot":"","sources":["../../../src/NotificationServicesController/constants/notification-schema.ts"],"names":[],"mappings":"AAEA,yDAAyD;AACzD,MAAM,CAAN,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gEAA+C,CAAA;IAC/C,oEAAmD,CAAA;IACnD,0CAAyB,CAAA;IACzB,kDAAiC,CAAA;IACj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BAAmB,CAAC,KAAK;SAC1B;KACF;IACD,CAAC,aAAa,CAAC,0BAA0B,CAAC,EAAE;QAC1C,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC;KACjD;IACD,CAAC,aAAa,CAAC,4BAA4B,CAAC,EAAE;QAC5C,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC;KACjD;IACD,CAAC,aAAa,CAAC,oBAAoB,CAAC,EAAE;QACpC,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC;KACjD;IACD,CAAC,aAAa,CAAC,yBAAyB,CAAC,EAAE;QACzC,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC;KACjD;IACD,CAAC,aAAa,CAAC,yBAAyB,CAAC,EAAE;QACzC,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC;KACjD;CACF,CAAC","sourcesContent":["import type { Compute } from '../types/type-utils';\n\n/* eslint-disable @typescript-eslint/naming-convention */\nexport enum TRIGGER_TYPES {\n FEATURES_ANNOUNCEMENT = 'features_announcement',\n METAMASK_SWAP_COMPLETED = 'metamask_swap_completed',\n ERC20_SENT = 'erc20_sent',\n ERC20_RECEIVED = 'erc20_received',\n ETH_SENT = 'eth_sent',\n ETH_RECEIVED = 'eth_received',\n ROCKETPOOL_STAKE_COMPLETED = 'rocketpool_stake_completed',\n ROCKETPOOL_UNSTAKE_COMPLETED = 'rocketpool_unstake_completed',\n LIDO_STAKE_COMPLETED = 'lido_stake_completed',\n LIDO_WITHDRAWAL_REQUESTED = 'lido_withdrawal_requested',\n LIDO_WITHDRAWAL_COMPLETED = 'lido_withdrawal_completed',\n LIDO_STAKE_READY_TO_BE_WITHDRAWN = 'lido_stake_ready_to_be_withdrawn',\n ERC721_SENT = 'erc721_sent',\n ERC721_RECEIVED = 'erc721_received',\n ERC1155_SENT = 'erc1155_sent',\n ERC1155_RECEIVED = 'erc1155_received',\n}\n\nexport const TRIGGER_TYPES_WALLET_SET: Set<string> = new Set([\n TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,\n TRIGGER_TYPES.ERC20_SENT,\n TRIGGER_TYPES.ERC20_RECEIVED,\n TRIGGER_TYPES.ETH_SENT,\n TRIGGER_TYPES.ETH_RECEIVED,\n TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,\n TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,\n TRIGGER_TYPES.LIDO_STAKE_COMPLETED,\n TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,\n TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,\n TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,\n TRIGGER_TYPES.ERC721_SENT,\n TRIGGER_TYPES.ERC721_RECEIVED,\n TRIGGER_TYPES.ERC1155_SENT,\n TRIGGER_TYPES.ERC1155_RECEIVED,\n]) satisfies Set<Exclude<TRIGGER_TYPES, TRIGGER_TYPES.FEATURES_ANNOUNCEMENT>>;\n\nexport enum TRIGGER_TYPES_GROUPS {\n RECEIVED = 'received',\n SENT = 'sent',\n DEFI = 'defi',\n}\n\nexport const NOTIFICATION_CHAINS_ID = {\n ETHEREUM: '1',\n OPTIMISM: '10',\n BSC: '56',\n POLYGON: '137',\n ARBITRUM: '42161',\n AVALANCHE: '43114',\n LINEA: '59144',\n} as const;\n\ntype ToPrimitiveKeys<TObj> = Compute<{\n [K in keyof TObj]: TObj[K] extends string ? string : TObj[K];\n}>;\nexport const NOTIFICATION_CHAINS: ToPrimitiveKeys<\n typeof NOTIFICATION_CHAINS_ID\n> = NOTIFICATION_CHAINS_ID;\n\nexport const CHAIN_SYMBOLS = {\n [NOTIFICATION_CHAINS.ETHEREUM]: 'ETH',\n [NOTIFICATION_CHAINS.OPTIMISM]: 'ETH',\n [NOTIFICATION_CHAINS.BSC]: 'BNB',\n [NOTIFICATION_CHAINS.POLYGON]: 'POL',\n [NOTIFICATION_CHAINS.ARBITRUM]: 'ETH',\n [NOTIFICATION_CHAINS.AVALANCHE]: 'AVAX',\n [NOTIFICATION_CHAINS.LINEA]: 'ETH',\n};\n\nexport const SUPPORTED_CHAINS = [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n];\n\nexport type Trigger = {\n supported_chains: (typeof SUPPORTED_CHAINS)[number][];\n};\n\nexport const TRIGGERS: Partial<Record<TRIGGER_TYPES, Trigger>> = {\n [TRIGGER_TYPES.METAMASK_SWAP_COMPLETED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n ],\n },\n [TRIGGER_TYPES.ERC20_SENT]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n ],\n },\n [TRIGGER_TYPES.ERC20_RECEIVED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n ],\n },\n [TRIGGER_TYPES.ERC721_SENT]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.POLYGON,\n ],\n },\n [TRIGGER_TYPES.ERC721_RECEIVED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.POLYGON,\n ],\n },\n [TRIGGER_TYPES.ERC1155_SENT]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.POLYGON,\n ],\n },\n [TRIGGER_TYPES.ERC1155_RECEIVED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.POLYGON,\n ],\n },\n [TRIGGER_TYPES.ETH_SENT]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n ],\n },\n [TRIGGER_TYPES.ETH_RECEIVED]: {\n supported_chains: [\n NOTIFICATION_CHAINS.ETHEREUM,\n NOTIFICATION_CHAINS.OPTIMISM,\n NOTIFICATION_CHAINS.BSC,\n NOTIFICATION_CHAINS.POLYGON,\n NOTIFICATION_CHAINS.ARBITRUM,\n NOTIFICATION_CHAINS.AVALANCHE,\n NOTIFICATION_CHAINS.LINEA,\n ],\n },\n [TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n [TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n [TRIGGER_TYPES.LIDO_STAKE_COMPLETED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n [TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n [TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED]: {\n supported_chains: [NOTIFICATION_CHAINS.ETHEREUM],\n },\n};\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.UI = exports.Mocks = exports.Constants = exports.Processors = exports.Types = exports.Controller = void 0;
|
|
33
|
+
const NotificationServicesController_1 = __importDefault(require("./NotificationServicesController.cjs"));
|
|
34
|
+
exports.Controller = NotificationServicesController_1.default;
|
|
35
|
+
const NotificationServicesController = NotificationServicesController_1.default;
|
|
36
|
+
exports.default = NotificationServicesController;
|
|
37
|
+
__exportStar(require("./NotificationServicesController.cjs"), exports);
|
|
38
|
+
exports.Types = __importStar(require("./types/index.cjs"));
|
|
39
|
+
__exportStar(require("./types/index.cjs"), exports);
|
|
40
|
+
exports.Processors = __importStar(require("./processors/index.cjs"));
|
|
41
|
+
__exportStar(require("./processors/index.cjs"), exports);
|
|
42
|
+
exports.Constants = __importStar(require("./constants/index.cjs"));
|
|
43
|
+
__exportStar(require("./constants/index.cjs"), exports);
|
|
44
|
+
exports.Mocks = __importStar(require("./__fixtures__/index.cjs"));
|
|
45
|
+
exports.UI = __importStar(require("./ui/index.cjs"));
|
|
46
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/NotificationServicesController/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0GAA0D;AAGjD,qBAHF,wCAAU,CAGE;AADnB,MAAM,8BAA8B,GAAG,wCAAU,CAAC;AAElD,kBAAe,8BAA8B,CAAC;AAC9C,uEAAiD;AACjD,2DAAiC;AACjC,oDAAwB;AACxB,qEAA2C;AAC3C,yDAA6B;AAC7B,mEAAyC;AACzC,wDAA4B;AAC5B,kEAAwC;AACxC,qDAA2B","sourcesContent":["import Controller from './NotificationServicesController';\n\nconst NotificationServicesController = Controller;\nexport { Controller };\nexport default NotificationServicesController;\nexport * from './NotificationServicesController';\nexport * as Types from './types';\nexport * from './types';\nexport * as Processors from './processors';\nexport * from './processors';\nexport * as Constants from './constants';\nexport * from './constants';\nexport * as Mocks from './__fixtures__';\nexport * as UI from './ui';\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Controller from "./NotificationServicesController.cjs";
|
|
2
|
+
declare const NotificationServicesController: typeof Controller;
|
|
3
|
+
export { Controller };
|
|
4
|
+
export default NotificationServicesController;
|
|
5
|
+
export * from "./NotificationServicesController.cjs";
|
|
6
|
+
export * as Types from "./types/index.cjs";
|
|
7
|
+
export * from "./types/index.cjs";
|
|
8
|
+
export * as Processors from "./processors/index.cjs";
|
|
9
|
+
export * from "./processors/index.cjs";
|
|
10
|
+
export * as Constants from "./constants/index.cjs";
|
|
11
|
+
export * from "./constants/index.cjs";
|
|
12
|
+
export * as Mocks from "./__fixtures__/index.cjs";
|
|
13
|
+
export * as UI from "./ui/index.cjs";
|
|
14
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/NotificationServicesController/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,6CAAyC;AAE1D,QAAA,MAAM,8BAA8B,mBAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,eAAe,8BAA8B,CAAC;AAC9C,qDAAiD;AACjD,OAAO,KAAK,KAAK,0BAAgB;AACjC,kCAAwB;AACxB,OAAO,KAAK,UAAU,+BAAqB;AAC3C,uCAA6B;AAC7B,OAAO,KAAK,SAAS,8BAAoB;AACzC,sCAA4B;AAC5B,OAAO,KAAK,KAAK,iCAAuB;AACxC,OAAO,KAAK,EAAE,uBAAa"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Controller from "./NotificationServicesController.mjs";
|
|
2
|
+
declare const NotificationServicesController: typeof Controller;
|
|
3
|
+
export { Controller };
|
|
4
|
+
export default NotificationServicesController;
|
|
5
|
+
export * from "./NotificationServicesController.mjs";
|
|
6
|
+
export * as Types from "./types/index.mjs";
|
|
7
|
+
export * from "./types/index.mjs";
|
|
8
|
+
export * as Processors from "./processors/index.mjs";
|
|
9
|
+
export * from "./processors/index.mjs";
|
|
10
|
+
export * as Constants from "./constants/index.mjs";
|
|
11
|
+
export * from "./constants/index.mjs";
|
|
12
|
+
export * as Mocks from "./__fixtures__/index.mjs";
|
|
13
|
+
export * as UI from "./ui/index.mjs";
|
|
14
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/NotificationServicesController/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,6CAAyC;AAE1D,QAAA,MAAM,8BAA8B,mBAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,eAAe,8BAA8B,CAAC;AAC9C,qDAAiD;AACjD,OAAO,KAAK,KAAK,0BAAgB;AACjC,kCAAwB;AACxB,OAAO,KAAK,UAAU,+BAAqB;AAC3C,uCAA6B;AAC7B,OAAO,KAAK,SAAS,8BAAoB;AACzC,sCAA4B;AAC5B,OAAO,KAAK,KAAK,iCAAuB;AACxC,OAAO,KAAK,EAAE,uBAAa"}
|