@burdenoff/microfe-notification 2026.1029.1 → 2026.1109.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 (218) 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 +1 -2
  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/FeatureDisabledPage.d.ts +6 -0
  20. package/dist/components/FeatureDisabledPage.js +1 -2
  21. package/dist/components/FeatureDisabledPage.js.map +1 -1
  22. package/dist/components/NotificationBell.d.ts +13 -0
  23. package/dist/components/NotificationBell.js +6 -7
  24. package/dist/components/NotificationBell.js.map +1 -1
  25. package/dist/components/NotificationCard.d.ts +18 -0
  26. package/dist/components/NotificationCard.js +10 -11
  27. package/dist/components/NotificationCard.js.map +1 -1
  28. package/dist/components/NotificationPanel.d.ts +10 -0
  29. package/dist/components/NotificationPanel.js +5 -6
  30. package/dist/components/NotificationPanel.js.map +1 -1
  31. package/dist/components/RecipientSelector.d.ts +32 -0
  32. package/dist/components/RecipientSelector.js +2 -3
  33. package/dist/components/RecipientSelector.js.map +1 -1
  34. package/dist/components/TemplatePreview.d.ts +21 -0
  35. package/dist/components/TemplatePreview.js +3 -4
  36. package/dist/components/TemplatePreview.js.map +1 -1
  37. package/dist/components/VariableInserter.d.ts +11 -0
  38. package/dist/components/index.d.ts +3 -0
  39. package/dist/components/index.js +4 -3
  40. package/dist/constants/permissions.d.ts +23 -0
  41. package/dist/constants/permissions.js +1 -2
  42. package/dist/constants/permissions.js.map +1 -1
  43. package/dist/dev/main.d.ts +0 -0
  44. package/dist/generated/global-operations.d.ts +2119 -0
  45. package/dist/generated/global-operations.js +80 -69
  46. package/dist/generated/global-operations.js.map +1 -1
  47. package/dist/generated/global-types.d.ts +23507 -0
  48. package/dist/generated/wspace-operations.d.ts +4 -0
  49. package/dist/generated/wspace-types.d.ts +57831 -0
  50. package/dist/graphql/global-client.d.ts +32 -0
  51. package/dist/graphql/global-client.js +23 -30
  52. package/dist/graphql/global-client.js.map +1 -1
  53. package/dist/hooks/index.d.ts +7 -0
  54. package/dist/hooks/index.js +7 -6
  55. package/dist/hooks/useNotificationAdmin.d.ts +46 -0
  56. package/dist/hooks/useNotificationAdmin.js +18 -17
  57. package/dist/hooks/useNotificationAdmin.js.map +1 -1
  58. package/dist/hooks/useNotificationAnalytics.d.ts +65 -0
  59. package/dist/hooks/useNotificationAnalytics.js +1 -2
  60. package/dist/hooks/useNotificationAnalytics.js.map +1 -1
  61. package/dist/hooks/useNotificationPreferences.d.ts +10 -0
  62. package/dist/hooks/useNotificationPreferences.js +7 -7
  63. package/dist/hooks/useNotificationPreferences.js.map +1 -1
  64. package/dist/hooks/useNotificationTemplates.d.ts +131 -0
  65. package/dist/hooks/useNotificationTemplates.js +1 -2
  66. package/dist/hooks/useNotificationTemplates.js.map +1 -1
  67. package/dist/hooks/useNotificationTopics.d.ts +35 -0
  68. package/dist/hooks/useNotificationTopics.js +22 -22
  69. package/dist/hooks/useNotificationTopics.js.map +1 -1
  70. package/dist/hooks/useNotifications.d.ts +39 -0
  71. package/dist/hooks/useNotifications.js +6 -4
  72. package/dist/hooks/useNotifications.js.map +1 -1
  73. package/dist/hooks/useSendNotification.d.ts +158 -0
  74. package/dist/hooks/useSendNotification.js +12 -10
  75. package/dist/hooks/useSendNotification.js.map +1 -1
  76. package/dist/hooks/useUserSearch.d.ts +26 -0
  77. package/dist/hooks/useUserSearch.js +8 -10
  78. package/dist/hooks/useUserSearch.js.map +1 -1
  79. package/dist/index.d.ts +36 -0
  80. package/dist/index.js +8 -8
  81. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
  82. package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
  83. package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
  84. package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
  85. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +7 -8
  86. package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +1 -1
  87. package/dist/node_modules/@apollo/client/link/subscriptions/index.js +9 -10
  88. package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +1 -1
  89. package/dist/node_modules/@apollo/client/link/utils/createOperation.js +5 -6
  90. package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +1 -1
  91. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -1
  92. package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +1 -1
  93. package/dist/node_modules/@apollo/client/utilities/graphql/print.js +4 -5
  94. package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +1 -1
  95. package/dist/node_modules/@apollo/client/utilities/internal/caches.js +1 -2
  96. package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +1 -1
  97. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +1 -2
  98. package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +1 -1
  99. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +2 -3
  100. package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +1 -1
  101. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +1 -2
  102. package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +1 -1
  103. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +1 -2
  104. package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +1 -1
  105. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +1 -2
  106. package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +1 -1
  107. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +1 -2
  108. package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +1 -1
  109. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +1 -2
  110. package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +1 -1
  111. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +1 -2
  112. package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +1 -1
  113. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +1 -2
  114. package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +1 -1
  115. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +1 -2
  116. package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +1 -1
  117. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +1 -2
  118. package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +1 -1
  119. package/dist/node_modules/@apollo/client/utilities/invariant/index.js +2 -3
  120. package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +1 -1
  121. package/dist/node_modules/@apollo/client/version.js +2 -3
  122. package/dist/node_modules/@apollo/client/version.js.map +1 -1
  123. package/dist/node_modules/@wry/caches/lib/weak.js +1 -2
  124. package/dist/node_modules/@wry/caches/lib/weak.js.map +1 -1
  125. package/dist/node_modules/@wry/trie/lib/index.js +2 -3
  126. package/dist/node_modules/@wry/trie/lib/index.js.map +1 -1
  127. package/dist/node_modules/graphql-ws/dist/client.js +76 -69
  128. package/dist/node_modules/graphql-ws/dist/client.js.map +1 -1
  129. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +2 -3
  130. package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +1 -1
  131. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +2 -3
  132. package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +1 -1
  133. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +41 -42
  134. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -1
  135. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +14 -15
  136. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -1
  137. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +21 -18
  138. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -1
  139. package/dist/node_modules/rxjs/dist/esm5/internal/config.js +1 -2
  140. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -1
  141. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +1 -2
  142. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -1
  143. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +2 -3
  144. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -1
  145. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +1 -2
  146. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -1
  147. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +1 -2
  148. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -1
  149. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +1 -2
  150. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -1
  151. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +1 -2
  152. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -1
  153. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +1 -2
  154. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -1
  155. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +1 -2
  156. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -1
  157. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +1 -2
  158. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -1
  159. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +1 -2
  160. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -1
  161. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +1 -2
  162. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -1
  163. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +1 -2
  164. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -1
  165. package/dist/node_modules/{rxjs/node_modules/tslib → tslib}/tslib.es6.js +1 -2
  166. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  167. package/dist/pages/CreateNotificationPage.d.ts +5 -0
  168. package/dist/pages/CreateNotificationPage.js +18 -19
  169. package/dist/pages/CreateNotificationPage.js.map +1 -1
  170. package/dist/pages/NotificationCenterPage.d.ts +6 -0
  171. package/dist/pages/NotificationCenterPage.js +13 -14
  172. package/dist/pages/NotificationCenterPage.js.map +1 -1
  173. package/dist/pages/NotificationHistoryAdminPage.d.ts +2 -0
  174. package/dist/pages/NotificationHistoryAdminPage.js +7 -8
  175. package/dist/pages/NotificationHistoryAdminPage.js.map +1 -1
  176. package/dist/pages/NotificationHistoryPage.d.ts +2 -0
  177. package/dist/pages/NotificationHistoryPage.js +13 -14
  178. package/dist/pages/NotificationHistoryPage.js.map +1 -1
  179. package/dist/pages/NotificationLandingPage.d.ts +10 -0
  180. package/dist/pages/NotificationLandingPage.js +5 -6
  181. package/dist/pages/NotificationLandingPage.js.map +1 -1
  182. package/dist/pages/NotificationPreferencesPage.d.ts +1 -0
  183. package/dist/pages/NotificationPreferencesPage.js +14 -15
  184. package/dist/pages/NotificationPreferencesPage.js.map +1 -1
  185. package/dist/pages/NotificationTemplatesPage.d.ts +7 -0
  186. package/dist/pages/NotificationTemplatesPage.js +25 -23
  187. package/dist/pages/NotificationTemplatesPage.js.map +1 -1
  188. package/dist/pages/NotificationTopicsPage.d.ts +1 -0
  189. package/dist/pages/NotificationTopicsPage.js +6 -7
  190. package/dist/pages/NotificationTopicsPage.js.map +1 -1
  191. package/dist/pages/TemplateEditorPage.d.ts +12 -0
  192. package/dist/pages/TemplateEditorPage.js +294 -285
  193. package/dist/pages/TemplateEditorPage.js.map +1 -1
  194. package/dist/providers/NotificationProvider.d.ts +11 -0
  195. package/dist/providers/NotificationProvider.js +1 -2
  196. package/dist/providers/NotificationProvider.js.map +1 -1
  197. package/dist/shared/hooks/useTr.d.ts +13 -0
  198. package/dist/shared/hooks/useTr.js +1 -2
  199. package/dist/shared/hooks/useTr.js.map +1 -1
  200. package/dist/store/notificationStore.d.ts +30 -0
  201. package/dist/store/notificationStore.js +1 -2
  202. package/dist/store/notificationStore.js.map +1 -1
  203. package/dist/test/happydom.d.ts +1 -0
  204. package/dist/translations/en.d.ts +468 -0
  205. package/dist/types/index.d.ts +249 -0
  206. package/dist/utils/inAppNavigation.d.ts +37 -0
  207. package/dist/utils/inAppNavigation.js +2 -3
  208. package/dist/utils/inAppNavigation.js.map +1 -1
  209. package/dist/utils/index.d.ts +68 -0
  210. package/dist/utils/index.js +16 -10
  211. package/dist/utils/index.js.map +1 -1
  212. package/dist/utils/nativeBridge.d.ts +2 -0
  213. package/dist/utils/nativeBridge.js +1 -2
  214. package/dist/utils/notificationHistoryExport.d.ts +12 -0
  215. package/dist/utils/notificationHistoryExport.js +1 -2
  216. package/dist/utils/notificationHistoryExport.js.map +1 -1
  217. package/package.json +66 -48
  218. 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,249 @@
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
+ /**
28
+ * Notification type enum (matches backend NotificationType)
29
+ */
30
+ export type NotificationType = 'TRANSACTIONAL' | 'MARKETING' | 'SYSTEM' | 'ALERT';
31
+ /**
32
+ * Notification priority enum
33
+ */
34
+ export type NotificationPriority = 'LOW' | 'NORMAL' | 'HIGH' | 'URGENT';
35
+ /**
36
+ * Notification status enum
37
+ */
38
+ export type NotificationStatus = 'PENDING' | 'SENT' | 'DELIVERED' | 'FAILED' | 'ARCHIVED';
39
+ /**
40
+ * Notification channel enum
41
+ */
42
+ export type NotificationChannel = 'EMAIL' | 'IN_APP' | 'SMS' | 'PUSH' | 'WEBHOOK' | 'WHATSAPP' | 'TEAMS' | 'SLACK' | 'TELEGRAM' | 'DISCORD';
43
+ /**
44
+ * Notification entity
45
+ */
46
+ export interface Notification {
47
+ id: string;
48
+ type: NotificationType;
49
+ priority: NotificationPriority;
50
+ title: string;
51
+ body: string;
52
+ actionUrl?: string;
53
+ actions: NotificationAction[];
54
+ appName?: string;
55
+ archivedAt?: string;
56
+ channel: NotificationChannel | 'IN_APP';
57
+ clickedAt?: string;
58
+ deliveredAt?: string;
59
+ deliveryStatus?: string;
60
+ htmlBody?: string;
61
+ imageUrl?: string;
62
+ media: NotificationMedia[];
63
+ openedAt?: string;
64
+ recipientEmail?: string;
65
+ recipientPhone?: string;
66
+ scheduledFor?: string;
67
+ scheduledNotification?: {
68
+ id: string;
69
+ scheduledFor: string;
70
+ status: string;
71
+ timezone?: string;
72
+ retryCount?: number;
73
+ errorMessage?: string;
74
+ };
75
+ sentAt?: string;
76
+ status: NotificationStatus;
77
+ readAt?: string;
78
+ createdAt: string;
79
+ updatedAt?: string;
80
+ createdBy?: string;
81
+ channels: NotificationChannelDelivery[];
82
+ metadata?: Record<string, unknown>;
83
+ topic?: NotificationTopicSummary;
84
+ topicId?: string;
85
+ }
86
+ export interface NotificationAction {
87
+ id: string;
88
+ label: string;
89
+ url: string;
90
+ style?: string;
91
+ actionType?: string;
92
+ metadata?: Record<string, unknown>;
93
+ }
94
+ export interface NotificationMedia {
95
+ url: string;
96
+ label?: string;
97
+ kind?: string;
98
+ contentType?: string;
99
+ thumbnailUrl?: string;
100
+ }
101
+ export interface NotificationTopicSummary {
102
+ id: string;
103
+ name: string;
104
+ slug: string;
105
+ type: NotificationType;
106
+ description?: string;
107
+ }
108
+ /**
109
+ * Notification channel delivery info
110
+ */
111
+ export interface NotificationChannelDelivery {
112
+ id: string;
113
+ channel: NotificationChannel;
114
+ status: NotificationStatus;
115
+ sentAt?: string;
116
+ deliveredAt?: string;
117
+ failedAt?: string;
118
+ errorCode?: string;
119
+ errorMessage?: string;
120
+ }
121
+ /**
122
+ * Notification template entity
123
+ */
124
+ export interface NotificationTemplate {
125
+ id: string;
126
+ key: string;
127
+ name: string;
128
+ description?: string;
129
+ type: NotificationType;
130
+ channels: NotificationChannel[];
131
+ locale: string;
132
+ titleTemplate: string;
133
+ bodyTemplate: string;
134
+ variables: TemplateVariable[];
135
+ isActive: boolean;
136
+ createdAt: string;
137
+ updatedAt?: string;
138
+ createdBy?: string;
139
+ version?: number;
140
+ }
141
+ /**
142
+ * Template variable definition
143
+ */
144
+ export interface TemplateVariable {
145
+ name: string;
146
+ type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'URL';
147
+ required: boolean;
148
+ description?: string;
149
+ defaultValue?: string;
150
+ }
151
+ /**
152
+ * Notification filter
153
+ */
154
+ export interface NotificationFilter {
155
+ search: string;
156
+ channel?: NotificationChannel | 'ALL';
157
+ type: NotificationType | 'ALL';
158
+ status: NotificationStatus | 'ALL';
159
+ priority: NotificationPriority | 'ALL';
160
+ isRead: boolean | null;
161
+ topicId?: string;
162
+ archived?: boolean | null;
163
+ dateRange: {
164
+ start: Date | null;
165
+ end: Date | null;
166
+ };
167
+ }
168
+ export interface NotificationTopic extends NotificationTopicSummary {
169
+ isActive: boolean;
170
+ metadata?: Record<string, unknown>;
171
+ subscriberCount: number;
172
+ mySubscription?: NotificationTopicSubscription;
173
+ createdAt: string;
174
+ updatedAt: string;
175
+ }
176
+ export interface NotificationTopicSubscription {
177
+ id: string;
178
+ subscribed: boolean;
179
+ unsubscribedAt?: string;
180
+ topicId: string;
181
+ userId: string;
182
+ }
183
+ export type NotificationPreferenceScope = 'GLOBAL' | 'CHANNEL' | 'TYPE' | 'TOPIC';
184
+ export type NotificationPreferenceFrequency = 'IMMEDIATE' | 'DAILY_DIGEST' | 'WEEKLY_DIGEST' | 'NEVER';
185
+ export interface NotificationPreference {
186
+ id: string;
187
+ userId: string;
188
+ preferenceKey: string;
189
+ scope: NotificationPreferenceScope;
190
+ channel?: NotificationChannel;
191
+ type?: NotificationType;
192
+ topicId?: string;
193
+ topic?: NotificationTopicSummary;
194
+ enabled: boolean;
195
+ frequency: NotificationPreferenceFrequency;
196
+ quietHoursStart?: string;
197
+ quietHoursEnd?: string;
198
+ timezone?: string;
199
+ metadata?: Record<string, unknown>;
200
+ createdAt: string;
201
+ updatedAt: string;
202
+ }
203
+ export interface UpsertNotificationPreferenceInput {
204
+ scope: NotificationPreferenceScope;
205
+ channel?: NotificationChannel;
206
+ type?: NotificationType;
207
+ topicId?: string;
208
+ enabled: boolean;
209
+ frequency?: NotificationPreferenceFrequency;
210
+ quietHoursStart?: string | null;
211
+ quietHoursEnd?: string | null;
212
+ timezone?: string | null;
213
+ metadata?: Record<string, unknown>;
214
+ }
215
+ export interface NotificationAdminFilters {
216
+ search: string;
217
+ status: string;
218
+ channel: string;
219
+ deliveryStatus: string;
220
+ type: string;
221
+ topicId: string;
222
+ archived: 'all' | 'active' | 'archived';
223
+ }
224
+ /**
225
+ * Pagination info
226
+ */
227
+ export interface PageInfo {
228
+ hasNextPage: boolean;
229
+ endCursor?: string;
230
+ }
231
+ /**
232
+ * Connection edge
233
+ */
234
+ export interface Edge<T> {
235
+ node: T;
236
+ cursor: string;
237
+ }
238
+ /**
239
+ * Connection type
240
+ */
241
+ export interface Connection<T> {
242
+ edges: Edge<T>[];
243
+ pageInfo: PageInfo;
244
+ totalCount?: number;
245
+ }
246
+ /**
247
+ * Notification preset type
248
+ */
249
+ export type NotificationPreset = 'MINIMAL' | 'STANDARD' | 'VERBOSE' | 'CUSTOM';