@burdenoff/microfe-notification 2026.1029.2 → 2026.1113.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/dist/AdminNotificationRoot.d.ts +33 -0
  2. package/dist/AdminNotificationRoot.js +9 -6
  3. package/dist/AdminNotificationRoot.js.map +1 -1
  4. package/dist/AdminNotificationRoutes.d.ts +1 -0
  5. package/dist/AdminNotificationRoutes.js +22 -23
  6. package/dist/AdminNotificationRoutes.js.map +1 -1
  7. package/dist/NotificationRoot.d.ts +29 -0
  8. package/dist/NotificationRoot.js +9 -6
  9. package/dist/NotificationRoot.js.map +1 -1
  10. package/dist/NotificationRoutes.d.ts +18 -0
  11. package/dist/NotificationRoutes.js +109 -38
  12. package/dist/NotificationRoutes.js.map +1 -1
  13. package/dist/UserNotificationRoot.d.ts +32 -0
  14. package/dist/UserNotificationRoot.js +9 -6
  15. package/dist/UserNotificationRoot.js.map +1 -1
  16. package/dist/UserNotificationRoutes.d.ts +16 -0
  17. package/dist/UserNotificationRoutes.js +9 -10
  18. package/dist/UserNotificationRoutes.js.map +1 -1
  19. package/dist/components/ConfirmDeleteDialog.d.ts +17 -0
  20. package/dist/components/ConfirmDeleteDialog.js +22 -0
  21. package/dist/components/ConfirmDeleteDialog.js.map +1 -0
  22. package/dist/components/FeatureDisabledPage.d.ts +6 -0
  23. package/dist/components/FeatureDisabledPage.js +1 -2
  24. package/dist/components/FeatureDisabledPage.js.map +1 -1
  25. package/dist/components/NotificationBell.d.ts +13 -0
  26. package/dist/components/NotificationBell.js +6 -7
  27. package/dist/components/NotificationBell.js.map +1 -1
  28. package/dist/components/NotificationCard.d.ts +27 -0
  29. package/dist/components/NotificationCard.js +106 -76
  30. package/dist/components/NotificationCard.js.map +1 -1
  31. package/dist/components/NotificationPanel.d.ts +10 -0
  32. package/dist/components/NotificationPanel.js +5 -6
  33. package/dist/components/NotificationPanel.js.map +1 -1
  34. package/dist/components/RecipientSelector.d.ts +32 -0
  35. package/dist/components/RecipientSelector.js +2 -3
  36. package/dist/components/RecipientSelector.js.map +1 -1
  37. package/dist/components/TemplatePreview.d.ts +21 -0
  38. package/dist/components/TemplatePreview.js +3 -4
  39. package/dist/components/TemplatePreview.js.map +1 -1
  40. package/dist/components/VariableInserter.d.ts +11 -0
  41. package/dist/components/index.d.ts +3 -0
  42. package/dist/components/index.js +4 -3
  43. package/dist/constants/permissions.d.ts +23 -0
  44. package/dist/constants/permissions.js +1 -2
  45. package/dist/constants/permissions.js.map +1 -1
  46. package/dist/dev/main.d.ts +0 -0
  47. package/dist/generated/global-operations.d.ts +2119 -0
  48. package/dist/generated/global-operations.js +80 -69
  49. package/dist/generated/global-operations.js.map +1 -1
  50. package/dist/generated/global-types.d.ts +23507 -0
  51. package/dist/generated/wspace-operations.d.ts +4 -0
  52. package/dist/generated/wspace-types.d.ts +57831 -0
  53. package/dist/graphql/global-client.d.ts +32 -0
  54. package/dist/graphql/global-client.js +23 -30
  55. package/dist/graphql/global-client.js.map +1 -1
  56. package/dist/hooks/index.d.ts +7 -0
  57. package/dist/hooks/index.js +7 -6
  58. package/dist/hooks/useNotificationAdmin.d.ts +46 -0
  59. package/dist/hooks/useNotificationAdmin.js +18 -17
  60. package/dist/hooks/useNotificationAdmin.js.map +1 -1
  61. package/dist/hooks/useNotificationAnalytics.d.ts +65 -0
  62. package/dist/hooks/useNotificationAnalytics.js +1 -2
  63. package/dist/hooks/useNotificationAnalytics.js.map +1 -1
  64. package/dist/hooks/useNotificationPreferences.d.ts +10 -0
  65. package/dist/hooks/useNotificationPreferences.js +7 -7
  66. package/dist/hooks/useNotificationPreferences.js.map +1 -1
  67. package/dist/hooks/useNotificationTemplates.d.ts +131 -0
  68. package/dist/hooks/useNotificationTemplates.js +1 -2
  69. package/dist/hooks/useNotificationTemplates.js.map +1 -1
  70. package/dist/hooks/useNotificationTopics.d.ts +35 -0
  71. package/dist/hooks/useNotificationTopics.js +22 -22
  72. package/dist/hooks/useNotificationTopics.js.map +1 -1
  73. package/dist/hooks/useNotifications.d.ts +39 -0
  74. package/dist/hooks/useNotifications.js +6 -4
  75. package/dist/hooks/useNotifications.js.map +1 -1
  76. package/dist/hooks/usePreferenceToggles.d.ts +27 -0
  77. package/dist/hooks/usePreferenceToggles.js +84 -0
  78. package/dist/hooks/usePreferenceToggles.js.map +1 -0
  79. package/dist/hooks/useSendNotification.d.ts +158 -0
  80. package/dist/hooks/useSendNotification.js +12 -10
  81. package/dist/hooks/useSendNotification.js.map +1 -1
  82. package/dist/hooks/useUserSearch.d.ts +26 -0
  83. package/dist/hooks/useUserSearch.js +8 -10
  84. package/dist/hooks/useUserSearch.js.map +1 -1
  85. package/dist/index.d.ts +36 -0
  86. package/dist/index.js +8 -8
  87. package/dist/navigation-v2/AdminPageV2.d.ts +14 -0
  88. package/dist/navigation-v2/AdminPageV2.js +51 -0
  89. package/dist/navigation-v2/AdminPageV2.js.map +1 -0
  90. package/dist/navigation-v2/AdminToolsMenu.d.ts +6 -0
  91. package/dist/navigation-v2/AdminToolsMenu.js +32 -0
  92. package/dist/navigation-v2/AdminToolsMenu.js.map +1 -0
  93. package/dist/navigation-v2/BackToNotifications.d.ts +2 -0
  94. package/dist/navigation-v2/BackToNotifications.js +20 -0
  95. package/dist/navigation-v2/BackToNotifications.js.map +1 -0
  96. package/dist/navigation-v2/FilterControls.d.ts +25 -0
  97. package/dist/navigation-v2/FilterControls.js +64 -0
  98. package/dist/navigation-v2/FilterControls.js.map +1 -0
  99. package/dist/navigation-v2/NotificationArchivedV2.d.ts +9 -0
  100. package/dist/navigation-v2/NotificationArchivedV2.js +174 -0
  101. package/dist/navigation-v2/NotificationArchivedV2.js.map +1 -0
  102. package/dist/navigation-v2/NotificationInboxV2.d.ts +9 -0
  103. package/dist/navigation-v2/NotificationInboxV2.js +309 -0
  104. package/dist/navigation-v2/NotificationInboxV2.js.map +1 -0
  105. package/dist/navigation-v2/NotificationSettingsV2.d.ts +9 -0
  106. package/dist/navigation-v2/NotificationSettingsV2.js +203 -0
  107. package/dist/navigation-v2/NotificationSettingsV2.js.map +1 -0
  108. package/dist/navigation-v2/NotificationsV2Landing.d.ts +9 -0
  109. package/dist/navigation-v2/NotificationsV2Landing.js +37 -0
  110. package/dist/navigation-v2/NotificationsV2Landing.js.map +1 -0
  111. package/dist/navigation-v2/__tests__/uiMocks.d.ts +71 -0
  112. package/dist/navigation-v2/inboxFilters.d.ts +8 -0
  113. package/dist/navigation-v2/inboxFilters.js +10 -0
  114. package/dist/navigation-v2/inboxFilters.js.map +1 -0
  115. package/dist/navigation-v2/paths.d.ts +24 -0
  116. package/dist/navigation-v2/paths.js +31 -0
  117. package/dist/navigation-v2/paths.js.map +1 -0
  118. package/dist/navigation-v2/settingsOptions.d.ts +12 -0
  119. package/dist/navigation-v2/settingsOptions.js +58 -0
  120. package/dist/navigation-v2/settingsOptions.js.map +1 -0
  121. package/dist/navigation-v2/useAdminTools.d.ts +22 -0
  122. package/dist/navigation-v2/useAdminTools.js +76 -0
  123. package/dist/navigation-v2/useAdminTools.js.map +1 -0
  124. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  125. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  126. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  127. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  128. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
  129. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
  130. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +9 -10
  131. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
  132. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
  133. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
  134. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
  135. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  136. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
  137. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
  138. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
  139. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  140. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
  141. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
  142. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
  143. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
  144. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
  145. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  146. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
  147. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
  148. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
  149. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
  150. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
  151. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
  152. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
  153. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
  154. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
  155. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
  156. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
  157. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
  158. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
  159. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
  160. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
  161. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
  162. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
  163. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
  164. package/dist/node_modules/@apollo/client/version.js +2 -3
  165. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  166. package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
  167. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
  168. package/dist/node_modules/@wry/trie/lib/index.js +2 -3
  169. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
  170. package/dist/node_modules/graphql-ws/dist/client.js +76 -69
  171. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
  172. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
  173. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
  174. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
  175. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
  176. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
  177. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
  178. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
  179. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
  180. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
  181. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  182. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
  183. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
  184. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
  185. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
  186. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
  187. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
  188. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
  189. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
  190. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
  191. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
  192. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
  193. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
  194. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
  195. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
  196. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
  197. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
  198. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
  199. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
  200. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
  201. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
  202. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
  203. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
  204. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
  205. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
  206. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
  207. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
  208. package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
  209. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  210. package/dist/pages/CreateNotificationPage.d.ts +5 -0
  211. package/dist/pages/CreateNotificationPage.js +591 -573
  212. package/dist/pages/CreateNotificationPage.js.map +1 -1
  213. package/dist/pages/NotificationCenterPage.d.ts +8 -0
  214. package/dist/pages/NotificationCenterPage.js +87 -83
  215. package/dist/pages/NotificationCenterPage.js.map +1 -1
  216. package/dist/pages/NotificationHistoryAdminPage.d.ts +2 -0
  217. package/dist/pages/NotificationHistoryAdminPage.js +7 -8
  218. package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
  219. package/dist/pages/NotificationHistoryPage.d.ts +6 -0
  220. package/dist/pages/NotificationHistoryPage.js +59 -55
  221. package/dist/pages/NotificationHistoryPage.js.map +1 -1
  222. package/dist/pages/NotificationLandingPage.d.ts +10 -0
  223. package/dist/pages/NotificationLandingPage.js +5 -6
  224. package/dist/pages/NotificationLandingPage.js.map +1 -1
  225. package/dist/pages/NotificationPreferencesPage.d.ts +5 -0
  226. package/dist/pages/NotificationPreferencesPage.js +97 -159
  227. package/dist/pages/NotificationPreferencesPage.js.map +1 -1
  228. package/dist/pages/NotificationTemplatesPage.d.ts +7 -0
  229. package/dist/pages/NotificationTemplatesPage.js +192 -172
  230. package/dist/pages/NotificationTemplatesPage.js.map +1 -1
  231. package/dist/pages/NotificationTopicsPage.d.ts +1 -0
  232. package/dist/pages/NotificationTopicsPage.js +126 -112
  233. package/dist/pages/NotificationTopicsPage.js.map +1 -1
  234. package/dist/pages/TemplateEditorPage.d.ts +12 -0
  235. package/dist/pages/TemplateEditorPage.js +381 -341
  236. package/dist/pages/TemplateEditorPage.js.map +1 -1
  237. package/dist/providers/NotificationProvider.d.ts +11 -0
  238. package/dist/providers/NotificationProvider.js +7 -7
  239. package/dist/providers/NotificationProvider.js.map +1 -1
  240. package/dist/shared/hooks/useTr.d.ts +13 -0
  241. package/dist/shared/hooks/useTr.js +1 -2
  242. package/dist/shared/hooks/useTr.js.map +1 -1
  243. package/dist/store/notificationStore.d.ts +30 -0
  244. package/dist/store/notificationStore.js +1 -2
  245. package/dist/store/notificationStore.js.map +1 -1
  246. package/dist/test/happydom.d.ts +1 -0
  247. package/dist/translations/en.d.ts +468 -0
  248. package/dist/types/index.d.ts +257 -0
  249. package/dist/utils/inAppNavigation.d.ts +37 -0
  250. package/dist/utils/inAppNavigation.js +2 -3
  251. package/dist/utils/inAppNavigation.js.map +1 -1
  252. package/dist/utils/index.d.ts +68 -0
  253. package/dist/utils/index.js +1 -2
  254. package/dist/utils/index.js.map +1 -1
  255. package/dist/utils/nativeBridge.d.ts +2 -0
  256. package/dist/utils/nativeBridge.js +1 -2
  257. package/dist/utils/notificationHistoryExport.d.ts +12 -0
  258. package/dist/utils/notificationHistoryExport.js +1 -2
  259. package/dist/utils/notificationHistoryExport.js.map +1 -1
  260. package/package.json +67 -49
  261. package/dist/node_modules/rxjs/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -0,0 +1,468 @@
1
+ /**
2
+ * Bundled English translations for @burdenoff/microfe-notification.
3
+ *
4
+ * These serve as offline fallback translations when the i18n API is unavailable.
5
+ * The i18n service is the source of truth, but this bundle keeps the MFE usable
6
+ * even when translations cannot be fetched.
7
+ */
8
+ export declare const enTranslations: {
9
+ notifCommon: {
10
+ addMore: string;
11
+ addRecipient: string;
12
+ allCaughtUp: string;
13
+ archiveNotification: string;
14
+ archived: string;
15
+ closePanel: string;
16
+ dateGroup: {
17
+ earlier: string;
18
+ thisWeek: string;
19
+ today: string;
20
+ yesterday: string;
21
+ };
22
+ defineVariablesFirst: string;
23
+ duplicateRecipient: string;
24
+ emailFromLabel: string;
25
+ emailSubjectLabel: string;
26
+ emailToLabel: string;
27
+ enterDeviceTokenPlaceholder: string;
28
+ enterEmailPlaceholder: string;
29
+ enterPhonePlaceholder: string;
30
+ enterRecipientPlaceholder: string;
31
+ enterSlackIdPlaceholder: string;
32
+ enterTeamsIdPlaceholder: string;
33
+ inAppJustNow: string;
34
+ insertVariable: string;
35
+ invalidEmail: string;
36
+ invalidPhone: string;
37
+ markAllAsRead: string;
38
+ markAllRead: string;
39
+ more: string;
40
+ noMatchingVariables: string;
41
+ noMessage: string;
42
+ noMessageContent: string;
43
+ noNotifications: string;
44
+ noRecipients: string;
45
+ noSubject: string;
46
+ noTitle: string;
47
+ notification: string;
48
+ notifications: string;
49
+ openLink: string;
50
+ previewChannel: {
51
+ email: string;
52
+ in_app: string;
53
+ push: string;
54
+ sms: string;
55
+ };
56
+ pushAppNameFallback: string;
57
+ pushDate: string;
58
+ pushHelperText: string;
59
+ pushTimestampNow: string;
60
+ removeRecipient: string;
61
+ sampleNewMessage: string;
62
+ sampleOneDayAgo: string;
63
+ sampleSystemUpdate: string;
64
+ sampleTwoHoursAgo: string;
65
+ searchVariablesPlaceholder: string;
66
+ slackHelperText: string;
67
+ smsBackLabel: string;
68
+ smsInputPlaceholder: string;
69
+ smsSenderFallback: string;
70
+ smsTimestamp: string;
71
+ startTypingEmail: string;
72
+ teamsHelperText: string;
73
+ time: {
74
+ dayAgo: string;
75
+ daysAgo: string;
76
+ hourAgo: string;
77
+ hoursAgo: string;
78
+ justNow: string;
79
+ minuteAgo: string;
80
+ minutesAgo: string;
81
+ };
82
+ unread: string;
83
+ view: string;
84
+ viewAllNotifications: string;
85
+ webhookHelperText: string;
86
+ };
87
+ notifTemplates: {
88
+ addVariable: string;
89
+ allTypes: string;
90
+ autoGeneratedFromName: string;
91
+ backToTemplates: string;
92
+ basicInformation: string;
93
+ bodyRequired: string;
94
+ bodyTemplateLabel: string;
95
+ bulkDeleteTitle: string;
96
+ cancel: string;
97
+ channel: {
98
+ DISCORD: string;
99
+ EMAIL: string;
100
+ PUSH: string;
101
+ SLACK: string;
102
+ SMS: string;
103
+ TEAMS: string;
104
+ TELEGRAM: string;
105
+ WEBHOOK: string;
106
+ WHATSAPP: string;
107
+ };
108
+ clearSelection: string;
109
+ contentMode: {
110
+ html: string;
111
+ text: string;
112
+ };
113
+ createSuccess: string;
114
+ createTemplate: string;
115
+ defaultChannel: string;
116
+ delete: string;
117
+ deleteFailed: string;
118
+ deleteSelected: string;
119
+ deleteTemplate: string;
120
+ deleteTitle: string;
121
+ descriptionLabel: string;
122
+ disabled: string;
123
+ duplicateVariableName: string;
124
+ editTemplate: string;
125
+ enabled: string;
126
+ htmlTemplateLabel: string;
127
+ insert: string;
128
+ livePreview: string;
129
+ loadMore: string;
130
+ loading: string;
131
+ loadingTemplate: string;
132
+ localeLabel: string;
133
+ metaCreated: string;
134
+ metaEnabled: string;
135
+ metaId: string;
136
+ metaUpdated: string;
137
+ metaVersion: string;
138
+ metadata: string;
139
+ nameLabel: string;
140
+ namePlaceholder: string;
141
+ nameRequired: string;
142
+ nextAddVarLabel: string;
143
+ nextCreateLabel: string;
144
+ nextFilterLabel: string;
145
+ nextPreviewLabel: string;
146
+ nextSaveLabel: string;
147
+ nextUseLabel: string;
148
+ no: string;
149
+ noDefault: string;
150
+ noMatchingTemplates: string;
151
+ noTemplatesYet: string;
152
+ none: string;
153
+ previewOff: string;
154
+ previewOffShort: string;
155
+ previewOn: string;
156
+ previewValue: string;
157
+ retry: string;
158
+ sampleValue: string;
159
+ saveChanges: string;
160
+ saveFailed: string;
161
+ searchPlaceholder: string;
162
+ selectAllVisible: string;
163
+ selected: string;
164
+ slugLabel: string;
165
+ slugPlaceholder: string;
166
+ slugRequired: string;
167
+ subjectLabel: string;
168
+ templateContent: string;
169
+ templateCount: string;
170
+ title: string;
171
+ total: string;
172
+ turnOn: string;
173
+ type: {
174
+ ALERT: string;
175
+ MARKETING: string;
176
+ SYSTEM: string;
177
+ TRANSACTIONAL: string;
178
+ };
179
+ typeAlert: string;
180
+ typeLabel: string;
181
+ typeMarketing: string;
182
+ typeSystem: string;
183
+ typeTransactional: string;
184
+ updateSuccess: string;
185
+ updated: string;
186
+ variableName: string;
187
+ variableNamePlaceholder: string;
188
+ variableType: {
189
+ boolean: string;
190
+ date: string;
191
+ number: string;
192
+ string: string;
193
+ };
194
+ variables: string;
195
+ variablesNeedName: string;
196
+ yes: string;
197
+ };
198
+ notification: {
199
+ error: {
200
+ accessDeniedRedirect: string;
201
+ moduleLoad: string;
202
+ };
203
+ featureDisabled: {
204
+ historyAdminDescription: string;
205
+ historyTitle: string;
206
+ historyUserDescription: string;
207
+ };
208
+ footer: {
209
+ ready: string;
210
+ };
211
+ landing: {
212
+ tabs: {
213
+ history: string;
214
+ inbox: string;
215
+ send: string;
216
+ templates: string;
217
+ topics: string;
218
+ };
219
+ };
220
+ nav: {
221
+ center: string;
222
+ history: string;
223
+ preferences: string;
224
+ send: string;
225
+ templates: string;
226
+ topics: string;
227
+ };
228
+ };
229
+ notifications: {
230
+ actionLabel: string;
231
+ actionStyle: {
232
+ danger: string;
233
+ primary: string;
234
+ secondary: string;
235
+ };
236
+ actionUrl: string;
237
+ actions: string;
238
+ activeAndArchived: string;
239
+ activeOnly: string;
240
+ addAction: string;
241
+ addMedia: string;
242
+ addRecipientRequired: string;
243
+ adjustSearchOrDateRange: string;
244
+ adminHistoryTitle: string;
245
+ advancedPreferences: string;
246
+ allCaughtUp: string;
247
+ allChannels: string;
248
+ allDeliveryStates: string;
249
+ allMatchingUsers: string;
250
+ allNotifications: string;
251
+ allPriorities: string;
252
+ allStatuses: string;
253
+ allTopics: string;
254
+ allTypes: string;
255
+ alsoSendInApp: string;
256
+ archive: string;
257
+ archivedOnly: string;
258
+ bodyRequired: string;
259
+ cancel: string;
260
+ cancelTopicEdit: string;
261
+ centerTitle: string;
262
+ channel: {
263
+ DISCORD: string;
264
+ EMAIL: string;
265
+ PUSH: string;
266
+ SLACK: string;
267
+ SMS: string;
268
+ TEAMS: string;
269
+ TELEGRAM: string;
270
+ WEBHOOK: string;
271
+ WHATSAPP: string;
272
+ };
273
+ channelEmail: string;
274
+ channelInApp: string;
275
+ channelPreferences: string;
276
+ channelPush: string;
277
+ channelSlack: string;
278
+ channelSms: string;
279
+ channelWhatsapp: string;
280
+ close: string;
281
+ composeMessage: string;
282
+ createATemplate: string;
283
+ createTopic: string;
284
+ createTopicButton: string;
285
+ csv: {
286
+ archivedAt: string;
287
+ body: string;
288
+ createdAt: string;
289
+ id: string;
290
+ priority: string;
291
+ readAt: string;
292
+ status: string;
293
+ title: string;
294
+ type: string;
295
+ };
296
+ delete: string;
297
+ detail: {
298
+ clicked: string;
299
+ created: string;
300
+ delivered: string;
301
+ delivery: string;
302
+ opened: string;
303
+ read: string;
304
+ recipient: string;
305
+ sent: string;
306
+ status: string;
307
+ topic: string;
308
+ };
309
+ disabled: string;
310
+ edit: string;
311
+ editTopic: string;
312
+ enabled: string;
313
+ endDate: string;
314
+ enterMessagePlaceholder: string;
315
+ enterVariablePrefix: string;
316
+ error: string;
317
+ eventTimeline: string;
318
+ export: string;
319
+ filterAll: string;
320
+ filterRead: string;
321
+ filterUnread: string;
322
+ globalPreferences: string;
323
+ hidePreview: string;
324
+ historyEmptyTitle: string;
325
+ historySubtitle: string;
326
+ historyTitle: string;
327
+ htmlContent: string;
328
+ htmlPlaceholder: string;
329
+ inAppUsers: string;
330
+ includeHtmlVersion: string;
331
+ loadingPreferences: string;
332
+ loadingTopics: string;
333
+ manualRecipients: string;
334
+ markAllAsRead: string;
335
+ media: string;
336
+ mediaKind: {
337
+ file: string;
338
+ image: string;
339
+ video: string;
340
+ };
341
+ mediaLabel: string;
342
+ mediaUrl: string;
343
+ messageLabel: string;
344
+ missingChannelTarget: string;
345
+ nextExportLabel: string;
346
+ nextFailedLabel: string;
347
+ nextInspectLabel: string;
348
+ nextPreviewLabel: string;
349
+ nextRecipientsLabel: string;
350
+ nextUseTemplateLabel: string;
351
+ noEvents: string;
352
+ noMessageContent: string;
353
+ noNotificationsFound: string;
354
+ noPermissionView: string;
355
+ noRecipientsSelected: string;
356
+ noScheduledNotifications: string;
357
+ noTemplatesAvailable: string;
358
+ noTopicsAvailableTitle: string;
359
+ noTopicsFound: string;
360
+ noUsersFound: string;
361
+ preferenceReset: string;
362
+ preferenceResetFailed: string;
363
+ preferenceSaveFailed: string;
364
+ preferenceSaved: string;
365
+ preferencesTitle: string;
366
+ preview: string;
367
+ priority: {
368
+ HIGH: string;
369
+ LOW: string;
370
+ NORMAL: string;
371
+ URGENT: string;
372
+ };
373
+ priorityHigh: string;
374
+ priorityLabel: string;
375
+ priorityLow: string;
376
+ priorityNormal: string;
377
+ priorityUrgent: string;
378
+ recipientCount: string;
379
+ recipients: string;
380
+ remove: string;
381
+ reschedule: string;
382
+ reset: string;
383
+ resetFilters: string;
384
+ restore: string;
385
+ resultsFoundShort: string;
386
+ saveTopic: string;
387
+ saving: string;
388
+ schedule: string;
389
+ scheduleForLater: string;
390
+ scheduledNotifications: string;
391
+ scheduling: string;
392
+ searchPlaceholder: string;
393
+ searchTopics: string;
394
+ selectATemplate: string;
395
+ selectDirectoryUsersRequired: string;
396
+ selectNotificationTitle: string;
397
+ selectTemplate: string;
398
+ selectTemplateRequired: string;
399
+ selectTopic: string;
400
+ selectUsersRequired: string;
401
+ selectedUsers: string;
402
+ sendAnother: string;
403
+ sendMode: string;
404
+ sendNotification: string;
405
+ sendSubtitle: string;
406
+ sendTitle: string;
407
+ sending: string;
408
+ sent: string;
409
+ sentNotifications: string;
410
+ sentSuccessfully: string;
411
+ showPreview: string;
412
+ startDate: string;
413
+ subjectLabel: string;
414
+ subjectRequired: string;
415
+ templateVariables: string;
416
+ timezone: string;
417
+ topic: string;
418
+ topicDescription: string;
419
+ topicIsActive: string;
420
+ topicName: string;
421
+ topicPreferences: string;
422
+ topicSlug: string;
423
+ topicSubscribers: string;
424
+ topicType: {
425
+ ALERT: string;
426
+ MARKETING: string;
427
+ SYSTEM: string;
428
+ TRANSACTIONAL: string;
429
+ };
430
+ topicsNextNameLabel: string;
431
+ topicsNextSubscribeLabel: string;
432
+ topicsNextTypeLabel: string;
433
+ topicsTitle: string;
434
+ type: {
435
+ ALERT: string;
436
+ MARKETING: string;
437
+ SYSTEM: string;
438
+ TRANSACTIONAL: string;
439
+ };
440
+ typeAlert: string;
441
+ typeLabel: string;
442
+ typeMarketing: string;
443
+ typePreferences: string;
444
+ typeSystem: string;
445
+ typeTransactional: string;
446
+ useTemplate: string;
447
+ userDirectory: string;
448
+ userRole: {
449
+ allRoles: string;
450
+ guest: string;
451
+ member: string;
452
+ orgAdmin: string;
453
+ superAdmin: string;
454
+ tenantAdmin: string;
455
+ workspaceAdmin: string;
456
+ };
457
+ userStatus: {
458
+ active: string;
459
+ allStatuses: string;
460
+ inactive: string;
461
+ invited: string;
462
+ suspended: string;
463
+ };
464
+ usingTemplate: string;
465
+ view: string;
466
+ youHave: string;
467
+ };
468
+ };
@@ -0,0 +1,257 @@
1
+ import { MicrofrontendRootProps } from '@burdenoff/fe-libs/shared/types';
2
+ import { NavItem, FooterItem } from '@burdenoff/fe-libs/shared/hooks/shell';
3
+ export type { NavItem, FooterItem };
4
+ /**
5
+ * Props for the NotificationRoot component
6
+ */
7
+ export interface NotificationRootProps extends MicrofrontendRootProps {
8
+ /**
9
+ * Optional function to register navigation items with the shell
10
+ * Injected by the shell app
11
+ */
12
+ registerNavItems?: (items: NavItem | NavItem[]) => () => void;
13
+ /**
14
+ * Optional function to register footer items with the shell
15
+ * Injected by the shell app
16
+ */
17
+ registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
18
+ /**
19
+ * Optional callback when a notification is clicked
20
+ */
21
+ onNotificationClick?: (notification: Notification) => void;
22
+ /** Optional shell-owned event bus for cross-MFE notification events. */
23
+ eventBus?: {
24
+ emit: (event: string, payload: unknown) => void;
25
+ };
26
+ /**
27
+ * FluidGrids' Navigation v2 layout (BOFF-11872). Opt-in: only fluidgrids-app
28
+ * passes it. When on, `/notifications` opens straight on the inbox (no tab
29
+ * strip), with "Notification settings", "Archived" and, for people who hold
30
+ * the permission, a "More" menu with the admin tools. Without it the module
31
+ * looks and works exactly as before.
32
+ */
33
+ navigationV2?: boolean;
34
+ }
35
+ /**
36
+ * Notification type enum (matches backend NotificationType)
37
+ */
38
+ export type NotificationType = 'TRANSACTIONAL' | 'MARKETING' | 'SYSTEM' | 'ALERT';
39
+ /**
40
+ * Notification priority enum
41
+ */
42
+ export type NotificationPriority = 'LOW' | 'NORMAL' | 'HIGH' | 'URGENT';
43
+ /**
44
+ * Notification status enum
45
+ */
46
+ export type NotificationStatus = 'PENDING' | 'SENT' | 'DELIVERED' | 'FAILED' | 'ARCHIVED';
47
+ /**
48
+ * Notification channel enum
49
+ */
50
+ export type NotificationChannel = 'EMAIL' | 'IN_APP' | 'SMS' | 'PUSH' | 'WEBHOOK' | 'WHATSAPP' | 'TEAMS' | 'SLACK' | 'TELEGRAM' | 'DISCORD';
51
+ /**
52
+ * Notification entity
53
+ */
54
+ export interface Notification {
55
+ id: string;
56
+ type: NotificationType;
57
+ priority: NotificationPriority;
58
+ title: string;
59
+ body: string;
60
+ actionUrl?: string;
61
+ actions: NotificationAction[];
62
+ appName?: string;
63
+ archivedAt?: string;
64
+ channel: NotificationChannel | 'IN_APP';
65
+ clickedAt?: string;
66
+ deliveredAt?: string;
67
+ deliveryStatus?: string;
68
+ htmlBody?: string;
69
+ imageUrl?: string;
70
+ media: NotificationMedia[];
71
+ openedAt?: string;
72
+ recipientEmail?: string;
73
+ recipientPhone?: string;
74
+ scheduledFor?: string;
75
+ scheduledNotification?: {
76
+ id: string;
77
+ scheduledFor: string;
78
+ status: string;
79
+ timezone?: string;
80
+ retryCount?: number;
81
+ errorMessage?: string;
82
+ };
83
+ sentAt?: string;
84
+ status: NotificationStatus;
85
+ readAt?: string;
86
+ createdAt: string;
87
+ updatedAt?: string;
88
+ createdBy?: string;
89
+ channels: NotificationChannelDelivery[];
90
+ metadata?: Record<string, unknown>;
91
+ topic?: NotificationTopicSummary;
92
+ topicId?: string;
93
+ }
94
+ export interface NotificationAction {
95
+ id: string;
96
+ label: string;
97
+ url: string;
98
+ style?: string;
99
+ actionType?: string;
100
+ metadata?: Record<string, unknown>;
101
+ }
102
+ export interface NotificationMedia {
103
+ url: string;
104
+ label?: string;
105
+ kind?: string;
106
+ contentType?: string;
107
+ thumbnailUrl?: string;
108
+ }
109
+ export interface NotificationTopicSummary {
110
+ id: string;
111
+ name: string;
112
+ slug: string;
113
+ type: NotificationType;
114
+ description?: string;
115
+ }
116
+ /**
117
+ * Notification channel delivery info
118
+ */
119
+ export interface NotificationChannelDelivery {
120
+ id: string;
121
+ channel: NotificationChannel;
122
+ status: NotificationStatus;
123
+ sentAt?: string;
124
+ deliveredAt?: string;
125
+ failedAt?: string;
126
+ errorCode?: string;
127
+ errorMessage?: string;
128
+ }
129
+ /**
130
+ * Notification template entity
131
+ */
132
+ export interface NotificationTemplate {
133
+ id: string;
134
+ key: string;
135
+ name: string;
136
+ description?: string;
137
+ type: NotificationType;
138
+ channels: NotificationChannel[];
139
+ locale: string;
140
+ titleTemplate: string;
141
+ bodyTemplate: string;
142
+ variables: TemplateVariable[];
143
+ isActive: boolean;
144
+ createdAt: string;
145
+ updatedAt?: string;
146
+ createdBy?: string;
147
+ version?: number;
148
+ }
149
+ /**
150
+ * Template variable definition
151
+ */
152
+ export interface TemplateVariable {
153
+ name: string;
154
+ type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'URL';
155
+ required: boolean;
156
+ description?: string;
157
+ defaultValue?: string;
158
+ }
159
+ /**
160
+ * Notification filter
161
+ */
162
+ export interface NotificationFilter {
163
+ search: string;
164
+ channel?: NotificationChannel | 'ALL';
165
+ type: NotificationType | 'ALL';
166
+ status: NotificationStatus | 'ALL';
167
+ priority: NotificationPriority | 'ALL';
168
+ isRead: boolean | null;
169
+ topicId?: string;
170
+ archived?: boolean | null;
171
+ dateRange: {
172
+ start: Date | null;
173
+ end: Date | null;
174
+ };
175
+ }
176
+ export interface NotificationTopic extends NotificationTopicSummary {
177
+ isActive: boolean;
178
+ metadata?: Record<string, unknown>;
179
+ subscriberCount: number;
180
+ mySubscription?: NotificationTopicSubscription;
181
+ createdAt: string;
182
+ updatedAt: string;
183
+ }
184
+ export interface NotificationTopicSubscription {
185
+ id: string;
186
+ subscribed: boolean;
187
+ unsubscribedAt?: string;
188
+ topicId: string;
189
+ userId: string;
190
+ }
191
+ export type NotificationPreferenceScope = 'GLOBAL' | 'CHANNEL' | 'TYPE' | 'TOPIC';
192
+ export type NotificationPreferenceFrequency = 'IMMEDIATE' | 'DAILY_DIGEST' | 'WEEKLY_DIGEST' | 'NEVER';
193
+ export interface NotificationPreference {
194
+ id: string;
195
+ userId: string;
196
+ preferenceKey: string;
197
+ scope: NotificationPreferenceScope;
198
+ channel?: NotificationChannel;
199
+ type?: NotificationType;
200
+ topicId?: string;
201
+ topic?: NotificationTopicSummary;
202
+ enabled: boolean;
203
+ frequency: NotificationPreferenceFrequency;
204
+ quietHoursStart?: string;
205
+ quietHoursEnd?: string;
206
+ timezone?: string;
207
+ metadata?: Record<string, unknown>;
208
+ createdAt: string;
209
+ updatedAt: string;
210
+ }
211
+ export interface UpsertNotificationPreferenceInput {
212
+ scope: NotificationPreferenceScope;
213
+ channel?: NotificationChannel;
214
+ type?: NotificationType;
215
+ topicId?: string;
216
+ enabled: boolean;
217
+ frequency?: NotificationPreferenceFrequency;
218
+ quietHoursStart?: string | null;
219
+ quietHoursEnd?: string | null;
220
+ timezone?: string | null;
221
+ metadata?: Record<string, unknown>;
222
+ }
223
+ export interface NotificationAdminFilters {
224
+ search: string;
225
+ status: string;
226
+ channel: string;
227
+ deliveryStatus: string;
228
+ type: string;
229
+ topicId: string;
230
+ archived: 'all' | 'active' | 'archived';
231
+ }
232
+ /**
233
+ * Pagination info
234
+ */
235
+ export interface PageInfo {
236
+ hasNextPage: boolean;
237
+ endCursor?: string;
238
+ }
239
+ /**
240
+ * Connection edge
241
+ */
242
+ export interface Edge<T> {
243
+ node: T;
244
+ cursor: string;
245
+ }
246
+ /**
247
+ * Connection type
248
+ */
249
+ export interface Connection<T> {
250
+ edges: Edge<T>[];
251
+ pageInfo: PageInfo;
252
+ totalCount?: number;
253
+ }
254
+ /**
255
+ * Notification preset type
256
+ */
257
+ export type NotificationPreset = 'MINIMAL' | 'STANDARD' | 'VERBOSE' | 'CUSTOM';