@burdenoff/microfe-notification 2026.1127.1 → 2026.1129.2

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 (93) hide show
  1. package/dist/NotificationRoutes.d.ts +10 -0
  2. package/dist/NotificationRoutes.js +76 -71
  3. package/dist/NotificationRoutes.js.map +1 -1
  4. package/dist/generated/global-operations.d.ts +62 -3
  5. package/dist/generated/global-operations.js +35 -23
  6. package/dist/generated/global-operations.js.map +1 -1
  7. package/dist/generated/global-types.d.ts +10933 -581
  8. package/dist/hooks/useNotificationAnalytics.d.ts +1 -1
  9. package/dist/hooks/useNotificationAnalytics.js.map +1 -1
  10. package/dist/hooks/useNotificationTemplates.d.ts +3 -0
  11. package/dist/hooks/useNotifications.d.ts +7 -0
  12. package/dist/hooks/useNotifications.js +1 -1
  13. package/dist/hooks/useNotifications.js.map +1 -1
  14. package/dist/translations/en.d.ts +204 -0
  15. package/dist/types/index.d.ts +2 -1
  16. package/dist/v2/ArchivedRedirect.d.ts +1 -0
  17. package/dist/v2/ArchivedRedirect.js +14 -0
  18. package/dist/v2/ArchivedRedirect.js.map +1 -0
  19. package/dist/v2/InboxPage.d.ts +1 -0
  20. package/dist/v2/InboxPage.js +191 -0
  21. package/dist/v2/InboxPage.js.map +1 -0
  22. package/dist/v2/InboxRows.d.ts +10 -0
  23. package/dist/v2/InboxRows.js +101 -0
  24. package/dist/v2/InboxRows.js.map +1 -0
  25. package/dist/v2/KindIcon.d.ts +4 -0
  26. package/dist/v2/KindIcon.js +33 -0
  27. package/dist/v2/KindIcon.js.map +1 -0
  28. package/dist/v2/NotificationDetailPanel.d.ts +8 -0
  29. package/dist/v2/NotificationDetailPanel.js +200 -0
  30. package/dist/v2/NotificationDetailPanel.js.map +1 -0
  31. package/dist/v2/PreferencesPage.d.ts +1 -0
  32. package/dist/v2/PreferencesPage.js +139 -0
  33. package/dist/v2/PreferencesPage.js.map +1 -0
  34. package/dist/v2/__tests__/routeShapes.d.ts +13 -0
  35. package/dist/v2/admin/ChoiceSelect.d.ts +9 -0
  36. package/dist/v2/admin/ChoiceSelect.js +24 -0
  37. package/dist/v2/admin/ChoiceSelect.js.map +1 -0
  38. package/dist/v2/admin/DeliveryLogPage.d.ts +1 -0
  39. package/dist/v2/admin/DeliveryLogPage.js +207 -0
  40. package/dist/v2/admin/DeliveryLogPage.js.map +1 -0
  41. package/dist/v2/admin/InsertDetail.d.ts +6 -0
  42. package/dist/v2/admin/InsertDetail.js +77 -0
  43. package/dist/v2/admin/InsertDetail.js.map +1 -0
  44. package/dist/v2/admin/TemplateEditor.d.ts +6 -0
  45. package/dist/v2/admin/TemplateEditor.js +92 -0
  46. package/dist/v2/admin/TemplateEditor.js.map +1 -0
  47. package/dist/v2/admin/TemplateFields.d.ts +9 -0
  48. package/dist/v2/admin/TemplateFields.js +130 -0
  49. package/dist/v2/admin/TemplateFields.js.map +1 -0
  50. package/dist/v2/admin/TemplatePage.d.ts +1 -0
  51. package/dist/v2/admin/TemplatePage.js +62 -0
  52. package/dist/v2/admin/TemplatePage.js.map +1 -0
  53. package/dist/v2/admin/TemplatePreview.d.ts +8 -0
  54. package/dist/v2/admin/TemplatePreview.js +112 -0
  55. package/dist/v2/admin/TemplatePreview.js.map +1 -0
  56. package/dist/v2/admin/TemplatesPage.d.ts +1 -0
  57. package/dist/v2/admin/TemplatesPage.js +173 -0
  58. package/dist/v2/admin/TemplatesPage.js.map +1 -0
  59. package/dist/v2/admin/TopicDialog.d.ts +11 -0
  60. package/dist/v2/admin/TopicDialog.js +113 -0
  61. package/dist/v2/admin/TopicDialog.js.map +1 -0
  62. package/dist/v2/admin/TopicsPage.d.ts +1 -0
  63. package/dist/v2/admin/TopicsPage.js +152 -0
  64. package/dist/v2/admin/TopicsPage.js.map +1 -0
  65. package/dist/v2/admin/templateText.d.ts +35 -0
  66. package/dist/v2/admin/templateText.js +109 -0
  67. package/dist/v2/admin/templateText.js.map +1 -0
  68. package/dist/v2/admin/useTemplateDraft.d.ts +32 -0
  69. package/dist/v2/admin/useTemplateDraft.js +117 -0
  70. package/dist/v2/admin/useTemplateDraft.js.map +1 -0
  71. package/dist/v2/admin/words.d.ts +15 -0
  72. package/dist/v2/admin/words.js +67 -0
  73. package/dist/v2/admin/words.js.map +1 -0
  74. package/dist/v2/model/days.d.ts +9 -0
  75. package/dist/v2/model/days.js +25 -0
  76. package/dist/v2/model/days.js.map +1 -0
  77. package/dist/v2/model/events.d.ts +17 -0
  78. package/dist/v2/model/events.js +72 -0
  79. package/dist/v2/model/events.js.map +1 -0
  80. package/dist/v2/model/icons.d.ts +6 -0
  81. package/dist/v2/model/icons.js +19 -0
  82. package/dist/v2/model/icons.js.map +1 -0
  83. package/dist/v2/model/inbox.d.ts +15 -0
  84. package/dist/v2/model/inbox.js +22 -0
  85. package/dist/v2/model/inbox.js.map +1 -0
  86. package/dist/v2/model/thing.d.ts +16 -0
  87. package/dist/v2/model/thing.js +41 -0
  88. package/dist/v2/model/thing.js.map +1 -0
  89. package/dist/v2/model/tr.d.ts +2 -0
  90. package/dist/v2/useNotificationDetail.d.ts +19 -0
  91. package/dist/v2/useNotificationDetail.js +65 -0
  92. package/dist/v2/useNotificationDetail.js.map +1 -0
  93. package/package.json +2 -2
@@ -16,3 +16,13 @@
16
16
  * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)
17
17
  */
18
18
  export declare function NotificationRoutes(): import('react').JSX.Element;
19
+ /**
20
+ * FluidGrids' Navigation v2 routes (BOFF-11872). Every URL of the classic
21
+ * routes keeps working: `/` opens straight on the inbox (old `?tab=` values
22
+ * still open their page), and the admin pages get a route-level permission
23
+ * gate and a way back to the inbox.
24
+ */
25
+ export declare function NavigationV2Routes({ centerPath, v2 }: {
26
+ centerPath: string;
27
+ v2: boolean;
28
+ }): import('react').JSX.Element;
@@ -4,146 +4,151 @@ import { NotificationLandingPage as n } from "./pages/NotificationLandingPage.js
4
4
  import { AdminPageV2 as r } from "./navigation-v2/AdminPageV2.js";
5
5
  import { DeliveryLogV2 as i, NotificationsV2Landing as a } from "./navigation-v2/NotificationsV2Landing.js";
6
6
  import { CompactMarkOr as o, SectionLoaderOr as s } from "./components/loadingSystem.js";
7
- import { Suspense as c, lazy as l } from "react";
8
- import { Navigate as u, Route as d, Routes as f } from "react-router";
9
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
7
+ import { ArchivedRedirect as c } from "./v2/ArchivedRedirect.js";
8
+ import { Suspense as l, lazy as u } from "react";
9
+ import { Navigate as d, Route as f, Routes as p } from "react-router";
10
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
11
+ import { useAccountPagesV2 as g } from "@burdenoff/fe-libs/ui/account-pages-v2";
10
12
  // src/NotificationRoutes.tsx
11
- var h = l(() => import("./pages/NotificationHistoryPage.js").then((e) => ({ default: e.NotificationHistoryPage }))), g = l(() => import("./pages/NotificationTemplatesPage.js").then((e) => ({ default: e.NotificationTemplatesPage }))), _ = l(() => import("./pages/TemplateEditorPage.js").then((e) => ({ default: e.TemplateEditorPage }))), v = l(() => import("./pages/CreateNotificationPage.js").then((e) => ({ default: e.CreateNotificationPage }))), y = l(() => import("./pages/NotificationTopicsPage.js").then((e) => ({ default: e.NotificationTopicsPage }))), b = l(() => import("./pages/NotificationPreferencesPage.js").then((e) => ({ default: e.NotificationPreferencesPage })));
12
- function x() {
13
- return /* @__PURE__ */ p(s, {
13
+ var _ = u(() => import("./v2/InboxPage.js").then((e) => ({ default: e.InboxPage }))), v = u(() => import("./v2/PreferencesPage.js").then((e) => ({ default: e.PreferencesPage }))), y = u(() => import("./v2/admin/TemplatesPage.js").then((e) => ({ default: e.TemplatesPage }))), b = u(() => import("./v2/admin/TemplatePage.js").then((e) => ({ default: e.TemplatePage }))), x = u(() => import("./v2/admin/TopicsPage.js").then((e) => ({ default: e.TopicsPage }))), S = u(() => import("./v2/admin/DeliveryLogPage.js").then((e) => ({ default: e.DeliveryLogPage }))), C = u(() => import("./pages/NotificationHistoryPage.js").then((e) => ({ default: e.NotificationHistoryPage }))), w = u(() => import("./pages/NotificationTemplatesPage.js").then((e) => ({ default: e.NotificationTemplatesPage }))), T = u(() => import("./pages/TemplateEditorPage.js").then((e) => ({ default: e.TemplateEditorPage }))), E = u(() => import("./pages/CreateNotificationPage.js").then((e) => ({ default: e.CreateNotificationPage }))), D = u(() => import("./pages/NotificationTopicsPage.js").then((e) => ({ default: e.NotificationTopicsPage }))), O = u(() => import("./pages/NotificationPreferencesPage.js").then((e) => ({ default: e.NotificationPreferencesPage })));
14
+ function k() {
15
+ return /* @__PURE__ */ m(s, {
14
16
  route: !0,
15
17
  minHeight: "16rem",
16
- today: /* @__PURE__ */ p("div", {
18
+ today: /* @__PURE__ */ m("div", {
17
19
  className: "flex h-64 items-center justify-center",
18
- children: /* @__PURE__ */ p(o, {
20
+ children: /* @__PURE__ */ m(o, {
19
21
  className: "h-8 w-8",
20
- today: /* @__PURE__ */ p("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
22
+ today: /* @__PURE__ */ m("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" })
21
23
  })
22
24
  })
23
25
  });
24
26
  }
25
- function S() {
26
- let { basePath: r = "/", navigationV2: i } = e(), a = `${r.endsWith("/") ? r.slice(0, -1) : r}/center`;
27
- return i ? /* @__PURE__ */ p(C, { centerPath: a }) : /* @__PURE__ */ p(c, {
28
- fallback: /* @__PURE__ */ p(x, {}),
29
- children: /* @__PURE__ */ m(f, { children: [
30
- /* @__PURE__ */ p(d, {
27
+ function A() {
28
+ let { basePath: r = "/", navigationV2: i } = e(), a = g(), o = `${r.endsWith("/") ? r.slice(0, -1) : r}/center`;
29
+ return i ? /* @__PURE__ */ m(j, {
30
+ centerPath: o,
31
+ v2: a
32
+ }) : /* @__PURE__ */ m(l, {
33
+ fallback: /* @__PURE__ */ m(k, {}),
34
+ children: /* @__PURE__ */ h(p, { children: [
35
+ /* @__PURE__ */ m(f, {
31
36
  index: !0,
32
- element: /* @__PURE__ */ p(n, {})
37
+ element: m(a ? _ : n, {})
33
38
  }),
34
- /* @__PURE__ */ p(d, {
39
+ /* @__PURE__ */ m(f, {
35
40
  path: "list",
36
- element: /* @__PURE__ */ p(t, {})
41
+ element: m(a ? _ : t, {})
37
42
  }),
38
- /* @__PURE__ */ p(d, {
43
+ /* @__PURE__ */ m(f, {
39
44
  path: "center",
40
- element: /* @__PURE__ */ p(t, {})
45
+ element: m(a ? _ : t, {})
41
46
  }),
42
- /* @__PURE__ */ p(d, {
47
+ /* @__PURE__ */ m(f, {
43
48
  path: "history",
44
- element: /* @__PURE__ */ p(h, {})
49
+ element: m(a ? c : C, {})
45
50
  }),
46
- /* @__PURE__ */ p(d, {
51
+ /* @__PURE__ */ m(f, {
47
52
  path: "templates",
48
- element: /* @__PURE__ */ p(g, {})
53
+ element: m(a ? y : w, {})
49
54
  }),
50
- /* @__PURE__ */ p(d, {
55
+ /* @__PURE__ */ m(f, {
51
56
  path: "templates/new",
52
- element: /* @__PURE__ */ p(_, {})
57
+ element: m(a ? b : T, {})
53
58
  }),
54
- /* @__PURE__ */ p(d, {
59
+ /* @__PURE__ */ m(f, {
55
60
  path: "templates/:templateId",
56
- element: /* @__PURE__ */ p(_, {})
61
+ element: m(a ? b : T, {})
57
62
  }),
58
- /* @__PURE__ */ p(d, {
63
+ /* @__PURE__ */ m(f, {
59
64
  path: "create",
60
- element: /* @__PURE__ */ p(v, {})
65
+ element: /* @__PURE__ */ m(E, {})
61
66
  }),
62
- /* @__PURE__ */ p(d, {
67
+ /* @__PURE__ */ m(f, {
63
68
  path: "topics",
64
- element: /* @__PURE__ */ p(y, {})
69
+ element: m(a ? x : D, {})
65
70
  }),
66
- /* @__PURE__ */ p(d, {
71
+ /* @__PURE__ */ m(f, {
67
72
  path: "preferences",
68
- element: /* @__PURE__ */ p(b, {})
73
+ element: m(a ? v : O, {})
69
74
  }),
70
- /* @__PURE__ */ p(d, {
75
+ /* @__PURE__ */ m(f, {
71
76
  path: "*",
72
- element: /* @__PURE__ */ p(u, {
73
- to: a,
77
+ element: /* @__PURE__ */ m(d, {
78
+ to: o,
74
79
  replace: !0
75
80
  })
76
81
  })
77
82
  ] })
78
83
  });
79
84
  }
80
- function C({ centerPath: e }) {
81
- return /* @__PURE__ */ p(c, {
82
- fallback: /* @__PURE__ */ p(x, {}),
83
- children: /* @__PURE__ */ m(f, { children: [
84
- /* @__PURE__ */ p(d, {
85
+ function j({ centerPath: e, v2: n }) {
86
+ return /* @__PURE__ */ m(l, {
87
+ fallback: /* @__PURE__ */ m(k, {}),
88
+ children: /* @__PURE__ */ h(p, { children: [
89
+ /* @__PURE__ */ m(f, {
85
90
  index: !0,
86
- element: /* @__PURE__ */ p(a, {})
91
+ element: m(n ? _ : a, {})
87
92
  }),
88
- /* @__PURE__ */ p(d, {
93
+ /* @__PURE__ */ m(f, {
89
94
  path: "list",
90
- element: /* @__PURE__ */ p(t, {})
95
+ element: m(n ? _ : t, {})
91
96
  }),
92
- /* @__PURE__ */ p(d, {
97
+ /* @__PURE__ */ m(f, {
93
98
  path: "center",
94
- element: /* @__PURE__ */ p(t, {})
99
+ element: m(n ? _ : t, {})
95
100
  }),
96
- /* @__PURE__ */ p(d, {
101
+ /* @__PURE__ */ m(f, {
97
102
  path: "history",
98
- element: /* @__PURE__ */ p(h, {})
103
+ element: m(n ? c : C, {})
99
104
  }),
100
- /* @__PURE__ */ p(d, {
105
+ /* @__PURE__ */ m(f, {
101
106
  path: "preferences",
102
- element: /* @__PURE__ */ p(b, {})
107
+ element: m(n ? v : O, {})
103
108
  }),
104
- /* @__PURE__ */ p(d, {
109
+ /* @__PURE__ */ m(f, {
105
110
  path: "templates",
106
- element: /* @__PURE__ */ p(r, {
111
+ element: n ? /* @__PURE__ */ m(y, {}) : /* @__PURE__ */ m(r, {
107
112
  tool: "templates",
108
- children: /* @__PURE__ */ p(g, {})
113
+ children: /* @__PURE__ */ m(w, {})
109
114
  })
110
115
  }),
111
- /* @__PURE__ */ p(d, {
116
+ /* @__PURE__ */ m(f, {
112
117
  path: "templates/new",
113
- element: /* @__PURE__ */ p(r, {
118
+ element: n ? /* @__PURE__ */ m(b, {}) : /* @__PURE__ */ m(r, {
114
119
  tool: "templates",
115
- children: /* @__PURE__ */ p(_, {})
120
+ children: /* @__PURE__ */ m(T, {})
116
121
  })
117
122
  }),
118
- /* @__PURE__ */ p(d, {
123
+ /* @__PURE__ */ m(f, {
119
124
  path: "templates/:templateId",
120
- element: /* @__PURE__ */ p(r, {
125
+ element: n ? /* @__PURE__ */ m(b, {}) : /* @__PURE__ */ m(r, {
121
126
  tool: "templates",
122
- children: /* @__PURE__ */ p(_, {})
127
+ children: /* @__PURE__ */ m(T, {})
123
128
  })
124
129
  }),
125
- /* @__PURE__ */ p(d, {
130
+ /* @__PURE__ */ m(f, {
126
131
  path: "create",
127
- element: /* @__PURE__ */ p(r, {
132
+ element: /* @__PURE__ */ m(r, {
128
133
  tool: "send",
129
134
  back: !1,
130
- children: /* @__PURE__ */ p(v, {})
135
+ children: /* @__PURE__ */ m(E, {})
131
136
  })
132
137
  }),
133
- /* @__PURE__ */ p(d, {
138
+ /* @__PURE__ */ m(f, {
134
139
  path: "topics",
135
- element: /* @__PURE__ */ p(r, {
140
+ element: n ? /* @__PURE__ */ m(x, {}) : /* @__PURE__ */ m(r, {
136
141
  tool: "topics",
137
- children: /* @__PURE__ */ p(y, {})
142
+ children: /* @__PURE__ */ m(D, {})
138
143
  })
139
144
  }),
140
- /* @__PURE__ */ p(d, {
145
+ /* @__PURE__ */ m(f, {
141
146
  path: "delivery-log",
142
- element: /* @__PURE__ */ p(i, {})
147
+ element: m(n ? S : i, {})
143
148
  }),
144
- /* @__PURE__ */ p(d, {
149
+ /* @__PURE__ */ m(f, {
145
150
  path: "*",
146
- element: /* @__PURE__ */ p(u, {
151
+ element: /* @__PURE__ */ m(d, {
147
152
  to: e,
148
153
  replace: !0
149
154
  })
@@ -151,6 +156,6 @@ function C({ centerPath: e }) {
151
156
  ] })
152
157
  });
153
158
  }
154
- export { S as NotificationRoutes };
159
+ export { j as NavigationV2Routes, A as NotificationRoutes };
155
160
 
156
161
  //# sourceMappingURL=NotificationRoutes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationRoutes.js","names":["NotificationHistoryPage","lazy","m","NotificationTemplatesPage","TemplateEditorPage","CreateNotificationPage","NotificationTopicsPage","NotificationPreferencesPage","PageLoader","SectionLoaderOr","CompactMarkOr","NotificationRoutes","useNotification","centerPath","basePath","navigationV2","NavigationV2Routes","Suspense","Routes","Route","NotificationLandingPage","NotificationCenterPage","Navigate","NotificationsV2Landing","AdminPageV2","DeliveryLogV2"],"sources":["../src/NotificationRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useNotification } from './providers/NotificationProvider';\n\n// Eager load - Primary landing page\nimport { NotificationCenterPage } from './pages/NotificationCenterPage';\nimport { NotificationLandingPage } from './pages/NotificationLandingPage';\nimport { AdminPageV2 } from './navigation-v2/AdminPageV2';\nimport { DeliveryLogV2, NotificationsV2Landing } from './navigation-v2/NotificationsV2Landing';\nimport { CompactMarkOr, SectionLoaderOr } from './components/loadingSystem';\n\n// Lazy load - Secondary pages\nconst NotificationHistoryPage = lazy(() =>\n import('./pages/NotificationHistoryPage').then((m) => ({\n default: m.NotificationHistoryPage,\n }))\n);\nconst NotificationTemplatesPage = lazy(() =>\n import('./pages/NotificationTemplatesPage').then((m) => ({\n default: m.NotificationTemplatesPage,\n }))\n);\nconst TemplateEditorPage = lazy(() =>\n import('./pages/TemplateEditorPage').then((m) => ({ default: m.TemplateEditorPage }))\n);\nconst CreateNotificationPage = lazy(() =>\n import('./pages/CreateNotificationPage').then((m) => ({ default: m.CreateNotificationPage }))\n);\nconst NotificationTopicsPage = lazy(() =>\n import('./pages/NotificationTopicsPage').then((m) => ({ default: m.NotificationTopicsPage }))\n);\nconst NotificationPreferencesPage = lazy(() =>\n import('./pages/NotificationPreferencesPage').then((m) => ({\n default: m.NotificationPreferencesPage,\n }))\n);\n\n// Loading fallback component\nfunction PageLoader() {\n return (\n <SectionLoaderOr\n route\n minHeight=\"16rem\"\n today={\n <div className=\"flex h-64 items-center justify-center\">\n <CompactMarkOr\n className=\"h-8 w-8\"\n today={\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n }\n />\n </div>\n }\n />\n );\n}\n\n/**\n * Internal router for the Notification microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Routes:\n * - / → Notification landing page\n * - /list → Notification center (canonical list alias used by shell nav homePath)\n * - /center → Notification center (in-app notifications)\n * - /history → Notification history and archive\n * - /templates → Notification templates list (admin)\n * - /templates/new → Create new template (admin)\n * - /templates/:templateId → Edit template (admin)\n * - /create → Create and send notification (admin)\n * - /topics → Manage topics (admin)\n * - /preferences → User topic preferences\n * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)\n */\nexport function NotificationRoutes() {\n const { basePath = '/', navigationV2 } = useNotification();\n const centerPath = `${basePath.endsWith('/') ? basePath.slice(0, -1) : basePath}/center`;\n\n if (navigationV2) return <NavigationV2Routes centerPath={centerPath} />;\n\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route */}\n <Route index element={<NotificationLandingPage />} />\n\n {/* Canonical list alias used by product-shell nav homePath */}\n <Route path=\"list\" element={<NotificationCenterPage />} />\n\n {/* User-facing routes (all users) */}\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route path=\"history\" element={<NotificationHistoryPage />} />\n\n {/* Admin routes - Templates */}\n <Route path=\"templates\" element={<NotificationTemplatesPage />} />\n <Route path=\"templates/new\" element={<TemplateEditorPage />} />\n <Route path=\"templates/:templateId\" element={<TemplateEditorPage />} />\n\n {/* Admin routes - Create/Send Notification */}\n <Route path=\"create\" element={<CreateNotificationPage />} />\n <Route path=\"topics\" element={<NotificationTopicsPage />} />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n\n {/* Catch-all route - absolute redirect so an unmatched path like /list\n cannot recursively append /center (e.g. /list/center/center/...) */}\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n\n/**\n * FluidGrids' Navigation v2 routes (BOFF-11872). Every URL of the classic\n * routes keeps working: `/` opens straight on the inbox (old `?tab=` values\n * still open their page), and the admin pages get a route-level permission\n * gate and a way back to the inbox.\n */\nfunction NavigationV2Routes({ centerPath }: { centerPath: string }) {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<NotificationsV2Landing />} />\n <Route path=\"list\" element={<NotificationCenterPage />} />\n <Route path=\"center\" element={<NotificationCenterPage />} />\n <Route path=\"history\" element={<NotificationHistoryPage />} />\n <Route path=\"preferences\" element={<NotificationPreferencesPage />} />\n <Route\n path=\"templates\"\n element={\n <AdminPageV2 tool=\"templates\">\n <NotificationTemplatesPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/new\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"templates/:templateId\"\n element={\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"create\"\n element={\n <AdminPageV2 tool=\"send\" back={false}>\n <CreateNotificationPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"topics\"\n element={\n <AdminPageV2 tool=\"topics\">\n <NotificationTopicsPage />\n </AdminPageV2>\n }\n />\n <Route path=\"delivery-log\" element={<DeliveryLogV2 />} />\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;;AAYA,IAAMA,IAA0BC,QAC9B,OAAO,qCAAkC,CAAC,MAAM,OAAO,EACrD,SAASC,EAAE,wBACb,EAAE,CACJ,GACMC,IAA4BF,QAChC,OAAO,uCAAoC,CAAC,MAAM,OAAO,EACvD,SAASC,E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;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAACrB,GAAD,CAA4B,CAAA;IACjB,CAAA;GAEhB,CAAA;GACD,kBAACgB,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAACpB,GAAD,CAAqB,CAAA;IACV,CAAA;GAEhB,CAAA;GACD,kBAACe,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAACpB,GAAD,CAAqB,CAAA;IACV,CAAA;GAEhB,CAAA;GACD,kBAACe,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAAO,MAAM;KAC7B,UAAA,kBAACnB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACc,GAAD;IACE,MAAK;IACL,SACE,kBAACK,GAAD;KAAa,MAAK;KAChB,UAAA,kBAAClB,GAAD,CAAyB,CAAA;IACd,CAAA;GAEhB,CAAA;GACD,kBAACa,GAAD;IAAO,MAAK;IAAe,SAAS,kBAACM,GAAD,CAAgB,CAAA;GAAI,CAAA;GACxD,kBAACN,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACG,GAAD;KAAU,IAAIT;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;EAC1D,EAAA,CAAA;CACA,CAAA;AAEd"}
1
+ {"version":3,"file":"NotificationRoutes.js","names":["InboxPageV2","lazy","m","PreferencesPageV2","TemplatesPageV2","TemplatePageV2","TopicsPageV2","DeliveryLogPageV2","NotificationHistoryPage","NotificationTemplatesPage","TemplateEditorPage","CreateNotificationPage","NotificationTopicsPage","NotificationPreferencesPage","PageLoader","SectionLoaderOr","CompactMarkOr","NotificationRoutes","useNotification","v2","useAccountPagesV2","centerPath","basePath","navigationV2","NavigationV2Routes","Suspense","Routes","Route","jsx","NotificationLandingPage","NotificationCenterPage","ArchivedRedirect","Navigate","NotificationsV2Landing","AdminPageV2","DeliveryLogV2"],"sources":["../src/NotificationRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\nimport { useNotification } from './providers/NotificationProvider';\n\n// Eager load - Primary landing page\nimport { NotificationCenterPage } from './pages/NotificationCenterPage';\nimport { NotificationLandingPage } from './pages/NotificationLandingPage';\nimport { AdminPageV2 } from './navigation-v2/AdminPageV2';\nimport { DeliveryLogV2, NotificationsV2Landing } from './navigation-v2/NotificationsV2Landing';\nimport { CompactMarkOr, SectionLoaderOr } from './components/loadingSystem';\nimport { useAccountPagesV2 } from '@burdenoff/fe-libs/ui/account-pages-v2';\nimport { ArchivedRedirect } from './v2/ArchivedRedirect';\n\n// Account & platform v2 (BOFF-16785, C1): FluidGrids' redesigned inbox and notification settings.\nconst InboxPageV2 = lazy(() => import('./v2/InboxPage').then((m) => ({ default: m.InboxPage })));\nconst PreferencesPageV2 = lazy(() =>\n import('./v2/PreferencesPage').then((m) => ({ default: m.PreferencesPage }))\n);\n// Account & platform v2 (BOFF-16785, C2): templates, a template, topics and the delivery log.\nconst TemplatesPageV2 = lazy(() =>\n import('./v2/admin/TemplatesPage').then((m) => ({ default: m.TemplatesPage }))\n);\nconst TemplatePageV2 = lazy(() =>\n import('./v2/admin/TemplatePage').then((m) => ({ default: m.TemplatePage }))\n);\nconst TopicsPageV2 = lazy(() =>\n import('./v2/admin/TopicsPage').then((m) => ({ default: m.TopicsPage }))\n);\nconst DeliveryLogPageV2 = lazy(() =>\n import('./v2/admin/DeliveryLogPage').then((m) => ({ default: m.DeliveryLogPage }))\n);\n\n// Lazy load - Secondary pages\nconst NotificationHistoryPage = lazy(() =>\n import('./pages/NotificationHistoryPage').then((m) => ({\n default: m.NotificationHistoryPage,\n }))\n);\nconst NotificationTemplatesPage = lazy(() =>\n import('./pages/NotificationTemplatesPage').then((m) => ({\n default: m.NotificationTemplatesPage,\n }))\n);\nconst TemplateEditorPage = lazy(() =>\n import('./pages/TemplateEditorPage').then((m) => ({ default: m.TemplateEditorPage }))\n);\nconst CreateNotificationPage = lazy(() =>\n import('./pages/CreateNotificationPage').then((m) => ({ default: m.CreateNotificationPage }))\n);\nconst NotificationTopicsPage = lazy(() =>\n import('./pages/NotificationTopicsPage').then((m) => ({ default: m.NotificationTopicsPage }))\n);\nconst NotificationPreferencesPage = lazy(() =>\n import('./pages/NotificationPreferencesPage').then((m) => ({\n default: m.NotificationPreferencesPage,\n }))\n);\n\n// Loading fallback component\nfunction PageLoader() {\n return (\n <SectionLoaderOr\n route\n minHeight=\"16rem\"\n today={\n <div className=\"flex h-64 items-center justify-center\">\n <CompactMarkOr\n className=\"h-8 w-8\"\n today={\n <div className=\"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent\" />\n }\n />\n </div>\n }\n />\n );\n}\n\n/**\n * Internal router for the Notification microfrontend.\n * This component handles routing within the microfrontend using React Router v7.\n *\n * Routes:\n * - / → Notification landing page\n * - /list → Notification center (canonical list alias used by shell nav homePath)\n * - /center → Notification center (in-app notifications)\n * - /history → Notification history and archive\n * - /templates → Notification templates list (admin)\n * - /templates/new → Create new template (admin)\n * - /templates/:templateId → Edit template (admin)\n * - /create → Create and send notification (admin)\n * - /topics → Manage topics (admin)\n * - /preferences → User topic preferences\n * - unmatched → Absolute redirect to /{basePath}/center (avoids relative redirect loops)\n */\nexport function NotificationRoutes() {\n const { basePath = '/', navigationV2 } = useNotification();\n // FluidGrids' Account & platform pages (BOFF-16785): every other host keeps the elements below.\n const v2 = useAccountPagesV2();\n const centerPath = `${basePath.endsWith('/') ? basePath.slice(0, -1) : basePath}/center`;\n\n if (navigationV2) return <NavigationV2Routes centerPath={centerPath} v2={v2} />;\n\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n {/* Tabbed landing - default route */}\n <Route index element={v2 ? <InboxPageV2 /> : <NotificationLandingPage />} />\n\n {/* Canonical list alias used by product-shell nav homePath */}\n <Route path=\"list\" element={v2 ? <InboxPageV2 /> : <NotificationCenterPage />} />\n\n {/* User-facing routes (all users) */}\n <Route path=\"center\" element={v2 ? <InboxPageV2 /> : <NotificationCenterPage />} />\n <Route path=\"history\" element={v2 ? <ArchivedRedirect /> : <NotificationHistoryPage />} />\n\n {/* Admin routes - Templates */}\n <Route\n path=\"templates\"\n element={v2 ? <TemplatesPageV2 /> : <NotificationTemplatesPage />}\n />\n <Route path=\"templates/new\" element={v2 ? <TemplatePageV2 /> : <TemplateEditorPage />} />\n <Route\n path=\"templates/:templateId\"\n element={v2 ? <TemplatePageV2 /> : <TemplateEditorPage />}\n />\n\n {/* Admin routes - Create/Send Notification */}\n <Route path=\"create\" element={<CreateNotificationPage />} />\n <Route path=\"topics\" element={v2 ? <TopicsPageV2 /> : <NotificationTopicsPage />} />\n <Route\n path=\"preferences\"\n element={v2 ? <PreferencesPageV2 /> : <NotificationPreferencesPage />}\n />\n\n {/* Catch-all route - absolute redirect so an unmatched path like /list\n cannot recursively append /center (e.g. /list/center/center/...) */}\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n\n/**\n * FluidGrids' Navigation v2 routes (BOFF-11872). Every URL of the classic\n * routes keeps working: `/` opens straight on the inbox (old `?tab=` values\n * still open their page), and the admin pages get a route-level permission\n * gate and a way back to the inbox.\n */\nexport function NavigationV2Routes({ centerPath, v2 }: { centerPath: string; v2: boolean }) {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={v2 ? <InboxPageV2 /> : <NotificationsV2Landing />} />\n <Route path=\"list\" element={v2 ? <InboxPageV2 /> : <NotificationCenterPage />} />\n <Route path=\"center\" element={v2 ? <InboxPageV2 /> : <NotificationCenterPage />} />\n <Route path=\"history\" element={v2 ? <ArchivedRedirect /> : <NotificationHistoryPage />} />\n <Route\n path=\"preferences\"\n element={v2 ? <PreferencesPageV2 /> : <NotificationPreferencesPage />}\n />\n <Route\n path=\"templates\"\n element={\n v2 ? (\n <TemplatesPageV2 />\n ) : (\n <AdminPageV2 tool=\"templates\">\n <NotificationTemplatesPage />\n </AdminPageV2>\n )\n }\n />\n <Route\n path=\"templates/new\"\n element={\n v2 ? (\n <TemplatePageV2 />\n ) : (\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n )\n }\n />\n <Route\n path=\"templates/:templateId\"\n element={\n v2 ? (\n <TemplatePageV2 />\n ) : (\n <AdminPageV2 tool=\"templates\">\n <TemplateEditorPage />\n </AdminPageV2>\n )\n }\n />\n <Route\n path=\"create\"\n element={\n <AdminPageV2 tool=\"send\" back={false}>\n <CreateNotificationPage />\n </AdminPageV2>\n }\n />\n <Route\n path=\"topics\"\n element={\n v2 ? (\n <TopicsPageV2 />\n ) : (\n <AdminPageV2 tool=\"topics\">\n <NotificationTopicsPage />\n </AdminPageV2>\n )\n }\n />\n <Route path=\"delivery-log\" element={v2 ? <DeliveryLogPageV2 /> : <DeliveryLogV2 />} />\n <Route path=\"*\" element={<Navigate to={centerPath} replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAcA,IAAMA,IAAcC,QAAW,OAAO,oBAAiB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,UAAU,EAAE,CAAC,GACzFC,IAAoBF,QACxB,OAAO,0BAAuB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,gBAAgB,EAAE,CAC7E,GAEME,IAAkBH,QACtB,OAAO,8BAA2B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,cAAc,EAAE,CAC/E,GACMG,IAAiBJ,QACrB,OAAO,6BAA0B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,aAAa,EAAE,CAC7E,GACMI,IAAeL,QACnB,OAAO,2BAAwB,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,WAAW,EAAE,CACzE,GACMK,IAAoBN,QACxB,OAAO,gCAA6B,CAAC,MAAM,OAAO,EAAE,SAASC,EAAE,gBAAgB,EAAE,CACnF,GAGMM,IAA0BP,QAC9B,OAA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O,MAAK;IAAe,SAAcC,EAALT,IAAMZ,IAAwB4B,GAAzB,CAAoB,CAAoB;GAAI,CAAA;GACrF,kBAACR,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACK,GAAD;KAAU,IAAIX;KAAY,SAAA;IAAS,CAAA;GAAI,CAAA;EAC1D,EAAA,CAAA;CACA,CAAA;AAEd"}
@@ -15,6 +15,11 @@ export type CreateNotificationInput = {
15
15
  actions?: Array<NotificationActionInput> | null | undefined;
16
16
  appName?: string | null | undefined;
17
17
  body: string;
18
+ /**
19
+ * Feature category, a lower-case slug (letters, digits, "-", "_"; max 64),
20
+ * e.g. "proactive". Out-of-app copies follow the user's CATEGORY preference.
21
+ */
22
+ category?: string | null | undefined;
18
23
  channel: NotificationChannel;
19
24
  data?: Record<string, unknown> | null | undefined;
20
25
  expiresAt?: string | null | undefined;
@@ -31,6 +36,11 @@ export type CreateNotificationInput = {
31
36
  type?: NotificationType | null | undefined;
32
37
  };
33
38
  export type CreateNotificationPreferenceInput = {
39
+ /**
40
+ * Required for scope CATEGORY: "<category>" or "<category>.<appName>", e.g.
41
+ * "proactive.fluidgrids". The product-level key wins over the category-wide one.
42
+ */
43
+ category?: string | null | undefined;
34
44
  channel?: NotificationChannel | null | undefined;
35
45
  enabled?: boolean | null | undefined;
36
46
  frequency?: NotificationPreferenceFrequency | null | undefined;
@@ -79,9 +89,13 @@ export type NotificationEventType = 'BOUNCED' | 'CANCELLED' | 'CLICKED' | 'COMPL
79
89
  export type NotificationFilterInput = {
80
90
  appName?: string | null | undefined;
81
91
  archived?: boolean | null | undefined;
92
+ /** Only notifications in this category */
93
+ category?: string | null | undefined;
82
94
  channel?: NotificationChannel | null | undefined;
83
95
  deliveryStatus?: NotificationDeliveryStatus | null | undefined;
84
96
  endDate?: string | null | undefined;
97
+ /** Also return notifications snoozed into the future (hidden by default) */
98
+ includeSnoozed?: boolean | null | undefined;
85
99
  isRead?: boolean | null | undefined;
86
100
  priority?: NotificationPriority | null | undefined;
87
101
  search?: string | null | undefined;
@@ -108,6 +122,8 @@ export type NotificationMediaInput = {
108
122
  url: string;
109
123
  };
110
124
  export type NotificationPreferenceFilterInput = {
125
+ /** CATEGORY preference key, e.g. "proactive.fluidgrids" */
126
+ category?: string | null | undefined;
111
127
  channel?: NotificationChannel | null | undefined;
112
128
  enabled?: boolean | null | undefined;
113
129
  scope?: NotificationPreferenceScope | null | undefined;
@@ -116,7 +132,9 @@ export type NotificationPreferenceFilterInput = {
116
132
  userId?: string | number | null | undefined;
117
133
  };
118
134
  export type NotificationPreferenceFrequency = 'DAILY_DIGEST' | 'IMMEDIATE' | 'NEVER' | 'WEEKLY_DIGEST';
119
- export type NotificationPreferenceScope = 'CHANNEL' | 'GLOBAL' | 'TOPIC' | 'TYPE';
135
+ export type NotificationPreferenceScope =
136
+ /** Feature category (e.g. proactive), optionally per app: key "proactive.fluidgrids" */
137
+ 'CATEGORY' | 'CHANNEL' | 'GLOBAL' | 'TOPIC' | 'TYPE';
120
138
  export type NotificationPriority = 'HIGH' | 'LOW' | 'MEDIUM' | 'URGENT';
121
139
  export type NotificationStatus = 'CANCELLED' | 'DELIVERED' | 'DRAFT' | 'EXPIRED' | 'FAILED' | 'PENDING' | 'READ' | 'SCHEDULED' | 'SENT' | 'TRIGGERED';
122
140
  export type NotificationTopicFilterInput = {
@@ -188,8 +206,6 @@ export type TriggerBatchNotificationsInput = {
188
206
  export type TriggerNotificationInput = {
189
207
  /** Specific channel instance ID from channel service (takes precedence) */
190
208
  channelId?: string | number | null | undefined;
191
- /** Channels to deliver to (deprecated - use channelId or platform instead) */
192
- channels?: Array<NotificationChannel> | null | undefined;
193
209
  /** Also deliver as in-app notification alongside the primary platform */
194
210
  includeInApp?: boolean | null | undefined;
195
211
  /** Or create and trigger a new notification */
@@ -203,9 +219,13 @@ export type TriggerNotificationInput = {
203
219
  };
204
220
  export type TriggerNotificationWithTemplateInput = {
205
221
  actions?: Array<NotificationActionInput> | null | undefined;
222
+ /** Feature category stored on every created notification, e.g. "proactive" */
223
+ category?: string | null | undefined;
206
224
  /** Specific channel instance ID from channel service (takes precedence) */
207
225
  channelId?: string | number | null | undefined;
208
226
  expiresAt?: string | null | undefined;
227
+ /** At-most-once delivery key forwarded to channel-svc (same key + same input = one delivery) */
228
+ idempotencyKey?: string | null | undefined;
209
229
  /** Also deliver as in-app notification alongside the primary platform */
210
230
  includeInApp?: boolean | null | undefined;
211
231
  media?: Array<NotificationMediaInput> | null | undefined;
@@ -230,6 +250,8 @@ export type TriggerNotificationWithTemplateInput = {
230
250
  };
231
251
  export type TriggerStatus = 'CANCELLED' | 'FAILED' | 'PENDING' | 'TRIGGERED';
232
252
  export type UpdateNotificationPreferenceInput = {
253
+ /** CATEGORY preference key; see CreateNotificationPreferenceInput.category */
254
+ category?: string | null | undefined;
233
255
  channel?: NotificationChannel | null | undefined;
234
256
  enabled?: boolean | null | undefined;
235
257
  frequency?: NotificationPreferenceFrequency | null | undefined;
@@ -468,6 +490,7 @@ export type CreateNotificationTemplateMutation = {
468
490
  name: string;
469
491
  description: string | null;
470
492
  type: Types.NotificationType;
493
+ channel: Types.NotificationChannel;
471
494
  locale: string;
472
495
  subject: string | null;
473
496
  bodyTemplate: string;
@@ -547,6 +570,16 @@ export type MarkNotificationAsReadMutation = {
547
570
  status: Types.NotificationStatus;
548
571
  };
549
572
  };
573
+ export type MarkNotificationAsUnreadMutationVariables = Exact<{
574
+ id: string | number;
575
+ }>;
576
+ export type MarkNotificationAsUnreadMutation = {
577
+ markNotificationAsUnread: {
578
+ id: string;
579
+ readAt: string | null;
580
+ isRead: boolean;
581
+ };
582
+ };
550
583
  export type MarkNotificationsAsReadMutationVariables = Exact<{
551
584
  notificationIds: Array<string | number> | string | number;
552
585
  }>;
@@ -686,6 +719,7 @@ export type UpdateNotificationTemplateMutation = {
686
719
  name: string;
687
720
  description: string | null;
688
721
  type: Types.NotificationType;
722
+ channel: Types.NotificationChannel;
689
723
  locale: string;
690
724
  subject: string | null;
691
725
  bodyTemplate: string;
@@ -902,6 +936,7 @@ export type GetNotificationTemplateQuery = {
902
936
  name: string;
903
937
  description: string | null;
904
938
  type: Types.NotificationType;
939
+ channel: Types.NotificationChannel;
905
940
  locale: string;
906
941
  subject: string | null;
907
942
  bodyTemplate: string;
@@ -930,6 +965,7 @@ export type GetNotificationTemplatesQuery = {
930
965
  name: string;
931
966
  description: string | null;
932
967
  type: Types.NotificationType;
968
+ channel: Types.NotificationChannel;
933
969
  locale: string;
934
970
  subject: string | null;
935
971
  bodyTemplate: string;
@@ -1481,6 +1517,29 @@ export declare function useMarkNotificationAsReadMutation(baseOptions?: ApolloRe
1481
1517
  export type MarkNotificationAsReadMutationHookResult = ReturnType<typeof useMarkNotificationAsReadMutation>;
1482
1518
  export type MarkNotificationAsReadMutationResult = Apollo.MutationResult<Types.MarkNotificationAsReadMutation>;
1483
1519
  export type MarkNotificationAsReadMutationOptions = Apollo.BaseMutationOptions<Types.MarkNotificationAsReadMutation, Types.MarkNotificationAsReadMutationVariables>;
1520
+ export declare const MarkNotificationAsUnreadDocument: Apollo.DocumentNode;
1521
+ export type MarkNotificationAsUnreadMutationFn = Apollo.MutationFunction<Types.MarkNotificationAsUnreadMutation, Types.MarkNotificationAsUnreadMutationVariables>;
1522
+ /**
1523
+ * __useMarkNotificationAsUnreadMutation__
1524
+ *
1525
+ * To run a mutation, you first call `useMarkNotificationAsUnreadMutation` within a React component and pass it any options that fit your needs.
1526
+ * When your component renders, `useMarkNotificationAsUnreadMutation` returns a tuple that includes:
1527
+ * - A mutate function that you can call at any time to execute the mutation
1528
+ * - An object with fields that represent the current status of the mutation's execution
1529
+ *
1530
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1531
+ *
1532
+ * @example
1533
+ * const [markNotificationAsUnreadMutation, { data, loading, error }] = useMarkNotificationAsUnreadMutation({
1534
+ * variables: {
1535
+ * id: // value for 'id'
1536
+ * },
1537
+ * });
1538
+ */
1539
+ export declare function useMarkNotificationAsUnreadMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.MarkNotificationAsUnreadMutation, Types.MarkNotificationAsUnreadMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.MarkNotificationAsUnreadMutation, any, Apollo.ApolloCache, undefined>;
1540
+ export type MarkNotificationAsUnreadMutationHookResult = ReturnType<typeof useMarkNotificationAsUnreadMutation>;
1541
+ export type MarkNotificationAsUnreadMutationResult = Apollo.MutationResult<Types.MarkNotificationAsUnreadMutation>;
1542
+ export type MarkNotificationAsUnreadMutationOptions = Apollo.BaseMutationOptions<Types.MarkNotificationAsUnreadMutation, Types.MarkNotificationAsUnreadMutationVariables>;
1484
1543
  export declare const MarkNotificationsAsReadDocument: Apollo.DocumentNode;
1485
1544
  export type MarkNotificationsAsReadMutationFn = Apollo.MutationFunction<Types.MarkNotificationsAsReadMutation, Types.MarkNotificationsAsReadMutationVariables>;
1486
1545
  /**