@burdenoff/microfe-notification 2026.525.2 → 2026.525.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/AdminNotificationRoot.d.ts +0 -35
- package/dist/AdminNotificationRoot.d.ts.map +0 -1
- package/dist/AdminNotificationRoutes.d.ts +0 -2
- package/dist/AdminNotificationRoutes.d.ts.map +0 -1
- package/dist/NotificationRoot.d.ts +0 -31
- package/dist/NotificationRoot.d.ts.map +0 -1
- package/dist/NotificationRoutes.d.ts +0 -17
- package/dist/NotificationRoutes.d.ts.map +0 -1
- package/dist/UserNotificationRoot.d.ts +0 -34
- package/dist/UserNotificationRoot.d.ts.map +0 -1
- package/dist/UserNotificationRoutes.d.ts +0 -15
- package/dist/UserNotificationRoutes.d.ts.map +0 -1
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/components/FeatureDisabledPage.d.ts +0 -7
- package/dist/components/FeatureDisabledPage.d.ts.map +0 -1
- package/dist/components/NotificationBell.d.ts +0 -14
- package/dist/components/NotificationBell.d.ts.map +0 -1
- package/dist/components/NotificationCard.d.ts +0 -20
- package/dist/components/NotificationCard.d.ts.map +0 -1
- package/dist/components/NotificationPanel.d.ts +0 -11
- package/dist/components/NotificationPanel.d.ts.map +0 -1
- package/dist/components/RecipientSelector.d.ts +0 -34
- package/dist/components/RecipientSelector.d.ts.map +0 -1
- package/dist/components/TemplatePreview.d.ts +0 -22
- package/dist/components/TemplatePreview.d.ts.map +0 -1
- package/dist/components/VariableInserter.d.ts +0 -12
- package/dist/components/VariableInserter.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.d.ts.map +0 -1
- package/dist/constants/permissions.d.ts +0 -24
- package/dist/constants/permissions.d.ts.map +0 -1
- package/dist/dev/main.d.ts +0 -2
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts +0 -1956
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -23527
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -2
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57851
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/graphql/global-client.d.ts +0 -19
- package/dist/graphql/global-client.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -8
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useNotificationAdmin.d.ts +0 -51
- package/dist/hooks/useNotificationAdmin.d.ts.map +0 -1
- package/dist/hooks/useNotificationAnalytics.d.ts +0 -67
- package/dist/hooks/useNotificationAnalytics.d.ts.map +0 -1
- package/dist/hooks/useNotificationPreferences.d.ts +0 -12
- package/dist/hooks/useNotificationPreferences.d.ts.map +0 -1
- package/dist/hooks/useNotificationTemplates.d.ts +0 -136
- package/dist/hooks/useNotificationTemplates.d.ts.map +0 -1
- package/dist/hooks/useNotificationTopics.d.ts +0 -36
- package/dist/hooks/useNotificationTopics.d.ts.map +0 -1
- package/dist/hooks/useNotifications.d.ts +0 -41
- package/dist/hooks/useNotifications.d.ts.map +0 -1
- package/dist/hooks/useSendNotification.d.ts +0 -159
- package/dist/hooks/useSendNotification.d.ts.map +0 -1
- package/dist/hooks/useUserSearch.d.ts +0 -27
- package/dist/hooks/useUserSearch.d.ts.map +0 -1
- package/dist/index.d.ts +0 -37
- package/dist/index.d.ts.map +0 -1
- package/dist/pages/CreateNotificationPage.d.ts +0 -6
- package/dist/pages/CreateNotificationPage.d.ts.map +0 -1
- package/dist/pages/NotificationCenterPage.d.ts +0 -7
- package/dist/pages/NotificationCenterPage.d.ts.map +0 -1
- package/dist/pages/NotificationHistoryAdminPage.d.ts +0 -3
- package/dist/pages/NotificationHistoryAdminPage.d.ts.map +0 -1
- package/dist/pages/NotificationHistoryPage.d.ts +0 -3
- package/dist/pages/NotificationHistoryPage.d.ts.map +0 -1
- package/dist/pages/NotificationLandingPage.d.ts +0 -11
- package/dist/pages/NotificationLandingPage.d.ts.map +0 -1
- package/dist/pages/NotificationPreferencesPage.d.ts +0 -2
- package/dist/pages/NotificationPreferencesPage.d.ts.map +0 -1
- package/dist/pages/NotificationTemplatesPage.d.ts +0 -8
- package/dist/pages/NotificationTemplatesPage.d.ts.map +0 -1
- package/dist/pages/NotificationTopicsPage.d.ts +0 -2
- package/dist/pages/NotificationTopicsPage.d.ts.map +0 -1
- package/dist/pages/TemplateEditorPage.d.ts +0 -13
- package/dist/pages/TemplateEditorPage.d.ts.map +0 -1
- package/dist/providers/NotificationProvider.d.ts +0 -19
- package/dist/providers/NotificationProvider.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts +0 -14
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/store/notificationStore.d.ts +0 -32
- package/dist/store/notificationStore.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -251
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -68
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -3
- package/dist/utils/nativeBridge.d.ts.map +0 -1
- package/dist/utils/notificationHistoryExport.d.ts +0 -13
- package/dist/utils/notificationHistoryExport.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateNotificationPage.d.ts","sourceRoot":"","sources":["../../src/pages/CreateNotificationPage.tsx"],"names":[],"mappings":"AAqGA;;;GAGG;AACH,wBAAgB,sBAAsB,4CA0hDrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCenterPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotificationCenterPage.tsx"],"names":[],"mappings":"AA0BA;;;;GAIG;AACH,wBAAgB,sBAAsB,4CAmNrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationHistoryAdminPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotificationHistoryAdminPage.tsx"],"names":[],"mappings":"AAcA,sFAAsF;AACtF,wBAAgB,4BAA4B,4CA2b3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationHistoryPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotificationHistoryPage.tsx"],"names":[],"mappings":"AAWA,2FAA2F;AAC3F,wBAAgB,uBAAuB,4CAmKtC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tabbed landing page for the Notification microfrontend.
|
|
3
|
-
*
|
|
4
|
-
* Admin-only tabs (Send, History, Templates, Topics) are gated by the
|
|
5
|
-
* notification.* feature flags. Gating is applied here because this
|
|
6
|
-
* page bypasses the route-level flag gates in AdminNotificationRoutes:
|
|
7
|
-
* without this check an admin landing on /notifications could click
|
|
8
|
-
* into any tab regardless of flag state.
|
|
9
|
-
*/
|
|
10
|
-
export declare function NotificationLandingPage(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
//# sourceMappingURL=NotificationLandingPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationLandingPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotificationLandingPage.tsx"],"names":[],"mappings":"AAuCA;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,4CA2GtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationPreferencesPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotificationPreferencesPage.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,2BAA2B,4CAmV1C"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notification Templates Page (Admin)
|
|
3
|
-
*
|
|
4
|
-
* Lists all notification templates from the real backend.
|
|
5
|
-
* Supports search, type filtering, delete, and navigation to editor.
|
|
6
|
-
*/
|
|
7
|
-
export declare function NotificationTemplatesPage(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=NotificationTemplatesPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTemplatesPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotificationTemplatesPage.tsx"],"names":[],"mappings":"AAsCA;;;;;GAKG;AACH,wBAAgB,yBAAyB,4CA+YxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTopicsPage.d.ts","sourceRoot":"","sources":["../../src/pages/NotificationTopicsPage.tsx"],"names":[],"mappings":"AAuBA,wBAAgB,sBAAsB,4CAqRrC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Template Editor Page — Novu-inspired split-pane editor
|
|
3
|
-
*
|
|
4
|
-
* Left panel: Form fields (basic info, content, variables)
|
|
5
|
-
* Right panel: Live preview with variable substitution
|
|
6
|
-
*
|
|
7
|
-
* Supports create and edit modes.
|
|
8
|
-
* Routes:
|
|
9
|
-
* /templates/new → create mode
|
|
10
|
-
* /templates/:slug → edit mode (loads via useNotificationTemplate)
|
|
11
|
-
*/
|
|
12
|
-
export declare function TemplateEditorPage(): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
//# sourceMappingURL=TemplateEditorPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateEditorPage.d.ts","sourceRoot":"","sources":["../../src/pages/TemplateEditorPage.tsx"],"names":[],"mappings":"AAmKA;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,4CAi1BjC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { NotificationRootProps } from '../types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Context value for Notification microfrontend
|
|
6
|
-
*/
|
|
7
|
-
interface NotificationContextValue extends NotificationRootProps {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Hook to access Notification context
|
|
11
|
-
*/
|
|
12
|
-
export declare const useNotification: () => NotificationContextValue;
|
|
13
|
-
/**
|
|
14
|
-
* Provider component for Notification microfrontend
|
|
15
|
-
* Sets up routing and context
|
|
16
|
-
*/
|
|
17
|
-
export declare const NotificationProvider: FC<PropsWithChildren<NotificationRootProps>>;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=NotificationProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationProvider.d.ts","sourceRoot":"","sources":["../../src/providers/NotificationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD;;GAEG;AACH,UAAU,wBAAyB,SAAQ,qBAAqB;CAAG;AAInE;;GAEG;AACH,eAAO,MAAM,eAAe,gCAM3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CA+C7E,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useTr — translation hook with fallback semantics.
|
|
3
|
-
*
|
|
4
|
-
* Wraps `useI18n().t()` so that when a key has no translation (i.e. the
|
|
5
|
-
* provider returns the key itself), the caller's English fallback is used
|
|
6
|
-
* instead. This keeps consumer call sites consistent and avoids leaking
|
|
7
|
-
* untranslated keys into the UI.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* const tr = useTr();
|
|
11
|
-
* return <h1>{tr('notification.title', 'Notifications')}</h1>;
|
|
12
|
-
*/
|
|
13
|
-
export declare function useTr(): (key: string, fallback: string) => string;
|
|
14
|
-
//# sourceMappingURL=useTr.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTr.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useTr.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CASjE"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Notification, NotificationFilter } from '../types';
|
|
2
|
-
|
|
3
|
-
interface NotificationState {
|
|
4
|
-
notifications: Notification[];
|
|
5
|
-
unreadCount: number;
|
|
6
|
-
selectedNotification: Notification | null;
|
|
7
|
-
viewMode: 'center' | 'history';
|
|
8
|
-
isPanelOpen: boolean;
|
|
9
|
-
notificationFilter: NotificationFilter;
|
|
10
|
-
latestNotification: Notification | null;
|
|
11
|
-
isLoadingNotifications: boolean;
|
|
12
|
-
notificationsError: string | null;
|
|
13
|
-
addNotification: (notification: Notification) => void;
|
|
14
|
-
addNotifications: (notifications: Notification[]) => void;
|
|
15
|
-
markAsRead: (notificationId: string) => void;
|
|
16
|
-
markAllAsRead: () => void;
|
|
17
|
-
archiveNotification: (notificationId: string) => void;
|
|
18
|
-
bulkArchive: (notificationIds: string[]) => void;
|
|
19
|
-
setSelectedNotification: (notification: Notification | null) => void;
|
|
20
|
-
togglePanel: () => void;
|
|
21
|
-
setPanelOpen: (open: boolean) => void;
|
|
22
|
-
setViewMode: (mode: 'center' | 'history') => void;
|
|
23
|
-
setUnreadCount: (count: number) => void;
|
|
24
|
-
updateNotificationFilter: (filter: Partial<NotificationState['notificationFilter']>) => void;
|
|
25
|
-
resetNotificationFilter: () => void;
|
|
26
|
-
setIsLoadingNotifications: (loading: boolean) => void;
|
|
27
|
-
setNotificationsError: (error: string | null) => void;
|
|
28
|
-
clearNotifications: () => void;
|
|
29
|
-
}
|
|
30
|
-
export declare const useNotificationStore: import('zustand').UseBoundStore<import('zustand').StoreApi<NotificationState>>;
|
|
31
|
-
export {};
|
|
32
|
-
//# sourceMappingURL=notificationStore.d.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,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC,KAAK,IAAI,CAAC;IAC7F,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,yBAAyB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAChC;AAgBD,eAAO,MAAM,oBAAoB,gFAgI9B,CAAC"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { MicrofrontendRootProps } from '@burdenoff/fe-libs/shared/types';
|
|
2
|
-
import { NavItem, FooterItem } from '@burdenoff/fe-libs/shared/hooks/shell';
|
|
3
|
-
|
|
4
|
-
export type { NavItem, FooterItem };
|
|
5
|
-
/**
|
|
6
|
-
* Props for the NotificationRoot component
|
|
7
|
-
*/
|
|
8
|
-
export interface NotificationRootProps extends MicrofrontendRootProps {
|
|
9
|
-
/**
|
|
10
|
-
* Optional function to register navigation items with the shell
|
|
11
|
-
* Injected by the shell app
|
|
12
|
-
*/
|
|
13
|
-
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
14
|
-
/**
|
|
15
|
-
* Optional function to register footer items with the shell
|
|
16
|
-
* Injected by the shell app
|
|
17
|
-
*/
|
|
18
|
-
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
19
|
-
/**
|
|
20
|
-
* Optional callback when a notification is clicked
|
|
21
|
-
*/
|
|
22
|
-
onNotificationClick?: (notification: Notification) => void;
|
|
23
|
-
/** Optional shell-owned event bus for cross-MFE notification events. */
|
|
24
|
-
eventBus?: {
|
|
25
|
-
emit: (event: string, payload: unknown) => void;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Notification type enum (matches backend NotificationType)
|
|
30
|
-
*/
|
|
31
|
-
export type NotificationType = 'TRANSACTIONAL' | 'MARKETING' | 'SYSTEM' | 'ALERT';
|
|
32
|
-
/**
|
|
33
|
-
* Notification priority enum
|
|
34
|
-
*/
|
|
35
|
-
export type NotificationPriority = 'LOW' | 'NORMAL' | 'HIGH' | 'URGENT';
|
|
36
|
-
/**
|
|
37
|
-
* Notification status enum
|
|
38
|
-
*/
|
|
39
|
-
export type NotificationStatus = 'PENDING' | 'SENT' | 'DELIVERED' | 'FAILED' | 'ARCHIVED';
|
|
40
|
-
/**
|
|
41
|
-
* Notification channel enum
|
|
42
|
-
*/
|
|
43
|
-
export type NotificationChannel = 'EMAIL' | 'IN_APP' | 'SMS' | 'PUSH' | 'WEBHOOK' | 'WHATSAPP' | 'TEAMS' | 'SLACK' | 'TELEGRAM' | 'DISCORD';
|
|
44
|
-
/**
|
|
45
|
-
* Notification entity
|
|
46
|
-
*/
|
|
47
|
-
export interface Notification {
|
|
48
|
-
id: string;
|
|
49
|
-
type: NotificationType;
|
|
50
|
-
priority: NotificationPriority;
|
|
51
|
-
title: string;
|
|
52
|
-
body: string;
|
|
53
|
-
actionUrl?: string;
|
|
54
|
-
actions: NotificationAction[];
|
|
55
|
-
appName?: string;
|
|
56
|
-
archivedAt?: string;
|
|
57
|
-
channel: NotificationChannel | 'IN_APP';
|
|
58
|
-
clickedAt?: string;
|
|
59
|
-
deliveredAt?: string;
|
|
60
|
-
deliveryStatus?: string;
|
|
61
|
-
htmlBody?: string;
|
|
62
|
-
imageUrl?: string;
|
|
63
|
-
media: NotificationMedia[];
|
|
64
|
-
openedAt?: string;
|
|
65
|
-
recipientEmail?: string;
|
|
66
|
-
recipientPhone?: string;
|
|
67
|
-
scheduledFor?: string;
|
|
68
|
-
scheduledNotification?: {
|
|
69
|
-
id: string;
|
|
70
|
-
scheduledFor: string;
|
|
71
|
-
status: string;
|
|
72
|
-
timezone?: string;
|
|
73
|
-
retryCount?: number;
|
|
74
|
-
errorMessage?: string;
|
|
75
|
-
};
|
|
76
|
-
sentAt?: string;
|
|
77
|
-
status: NotificationStatus;
|
|
78
|
-
readAt?: string;
|
|
79
|
-
createdAt: string;
|
|
80
|
-
updatedAt?: string;
|
|
81
|
-
createdBy?: string;
|
|
82
|
-
channels: NotificationChannelDelivery[];
|
|
83
|
-
metadata?: Record<string, unknown>;
|
|
84
|
-
topic?: NotificationTopicSummary;
|
|
85
|
-
topicId?: string;
|
|
86
|
-
}
|
|
87
|
-
export interface NotificationAction {
|
|
88
|
-
id: string;
|
|
89
|
-
label: string;
|
|
90
|
-
url: string;
|
|
91
|
-
style?: string;
|
|
92
|
-
actionType?: string;
|
|
93
|
-
metadata?: Record<string, unknown>;
|
|
94
|
-
}
|
|
95
|
-
export interface NotificationMedia {
|
|
96
|
-
url: string;
|
|
97
|
-
label?: string;
|
|
98
|
-
kind?: string;
|
|
99
|
-
contentType?: string;
|
|
100
|
-
thumbnailUrl?: string;
|
|
101
|
-
}
|
|
102
|
-
export interface NotificationTopicSummary {
|
|
103
|
-
id: string;
|
|
104
|
-
name: string;
|
|
105
|
-
slug: string;
|
|
106
|
-
type: NotificationType;
|
|
107
|
-
description?: string;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Notification channel delivery info
|
|
111
|
-
*/
|
|
112
|
-
export interface NotificationChannelDelivery {
|
|
113
|
-
id: string;
|
|
114
|
-
channel: NotificationChannel;
|
|
115
|
-
status: NotificationStatus;
|
|
116
|
-
sentAt?: string;
|
|
117
|
-
deliveredAt?: string;
|
|
118
|
-
failedAt?: string;
|
|
119
|
-
errorCode?: string;
|
|
120
|
-
errorMessage?: string;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Notification template entity
|
|
124
|
-
*/
|
|
125
|
-
export interface NotificationTemplate {
|
|
126
|
-
id: string;
|
|
127
|
-
key: string;
|
|
128
|
-
name: string;
|
|
129
|
-
description?: string;
|
|
130
|
-
type: NotificationType;
|
|
131
|
-
channels: NotificationChannel[];
|
|
132
|
-
locale: string;
|
|
133
|
-
titleTemplate: string;
|
|
134
|
-
bodyTemplate: string;
|
|
135
|
-
variables: TemplateVariable[];
|
|
136
|
-
isActive: boolean;
|
|
137
|
-
createdAt: string;
|
|
138
|
-
updatedAt?: string;
|
|
139
|
-
createdBy?: string;
|
|
140
|
-
version?: number;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Template variable definition
|
|
144
|
-
*/
|
|
145
|
-
export interface TemplateVariable {
|
|
146
|
-
name: string;
|
|
147
|
-
type: 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'URL';
|
|
148
|
-
required: boolean;
|
|
149
|
-
description?: string;
|
|
150
|
-
defaultValue?: string;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Notification filter
|
|
154
|
-
*/
|
|
155
|
-
export interface NotificationFilter {
|
|
156
|
-
search: string;
|
|
157
|
-
channel?: NotificationChannel | 'ALL';
|
|
158
|
-
type: NotificationType | 'ALL';
|
|
159
|
-
status: NotificationStatus | 'ALL';
|
|
160
|
-
priority: NotificationPriority | 'ALL';
|
|
161
|
-
isRead: boolean | null;
|
|
162
|
-
topicId?: string;
|
|
163
|
-
archived?: boolean | null;
|
|
164
|
-
dateRange: {
|
|
165
|
-
start: Date | null;
|
|
166
|
-
end: Date | null;
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
export interface NotificationTopic extends NotificationTopicSummary {
|
|
170
|
-
isActive: boolean;
|
|
171
|
-
metadata?: Record<string, unknown>;
|
|
172
|
-
subscriberCount: number;
|
|
173
|
-
mySubscription?: NotificationTopicSubscription;
|
|
174
|
-
createdAt: string;
|
|
175
|
-
updatedAt: string;
|
|
176
|
-
}
|
|
177
|
-
export interface NotificationTopicSubscription {
|
|
178
|
-
id: string;
|
|
179
|
-
subscribed: boolean;
|
|
180
|
-
unsubscribedAt?: string;
|
|
181
|
-
topicId: string;
|
|
182
|
-
userId: string;
|
|
183
|
-
}
|
|
184
|
-
export type NotificationPreferenceScope = 'GLOBAL' | 'CHANNEL' | 'TYPE' | 'TOPIC';
|
|
185
|
-
export type NotificationPreferenceFrequency = 'IMMEDIATE' | 'DAILY_DIGEST' | 'WEEKLY_DIGEST' | 'NEVER';
|
|
186
|
-
export interface NotificationPreference {
|
|
187
|
-
id: string;
|
|
188
|
-
userId: string;
|
|
189
|
-
preferenceKey: string;
|
|
190
|
-
scope: NotificationPreferenceScope;
|
|
191
|
-
channel?: NotificationChannel;
|
|
192
|
-
type?: NotificationType;
|
|
193
|
-
topicId?: string;
|
|
194
|
-
topic?: NotificationTopicSummary;
|
|
195
|
-
enabled: boolean;
|
|
196
|
-
frequency: NotificationPreferenceFrequency;
|
|
197
|
-
quietHoursStart?: string;
|
|
198
|
-
quietHoursEnd?: string;
|
|
199
|
-
timezone?: string;
|
|
200
|
-
metadata?: Record<string, unknown>;
|
|
201
|
-
createdAt: string;
|
|
202
|
-
updatedAt: string;
|
|
203
|
-
}
|
|
204
|
-
export interface UpsertNotificationPreferenceInput {
|
|
205
|
-
scope: NotificationPreferenceScope;
|
|
206
|
-
channel?: NotificationChannel;
|
|
207
|
-
type?: NotificationType;
|
|
208
|
-
topicId?: string;
|
|
209
|
-
enabled: boolean;
|
|
210
|
-
frequency?: NotificationPreferenceFrequency;
|
|
211
|
-
quietHoursStart?: string | null;
|
|
212
|
-
quietHoursEnd?: string | null;
|
|
213
|
-
timezone?: string | null;
|
|
214
|
-
metadata?: Record<string, unknown>;
|
|
215
|
-
}
|
|
216
|
-
export interface NotificationAdminFilters {
|
|
217
|
-
search: string;
|
|
218
|
-
status: string;
|
|
219
|
-
channel: string;
|
|
220
|
-
deliveryStatus: string;
|
|
221
|
-
type: string;
|
|
222
|
-
topicId: string;
|
|
223
|
-
archived: 'all' | 'active' | 'archived';
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Pagination info
|
|
227
|
-
*/
|
|
228
|
-
export interface PageInfo {
|
|
229
|
-
hasNextPage: boolean;
|
|
230
|
-
endCursor?: string;
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Connection edge
|
|
234
|
-
*/
|
|
235
|
-
export interface Edge<T> {
|
|
236
|
-
node: T;
|
|
237
|
-
cursor: string;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Connection type
|
|
241
|
-
*/
|
|
242
|
-
export interface Connection<T> {
|
|
243
|
-
edges: Edge<T>[];
|
|
244
|
-
pageInfo: PageInfo;
|
|
245
|
-
totalCount?: number;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Notification preset type
|
|
249
|
-
*/
|
|
250
|
-
export type NotificationPreset = 'MINIMAL' | 'STANDARD' | 'VERBOSE' | 'CUSTOM';
|
|
251
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEjF,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC;IAE9D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,EAAE,KAAK,MAAM,IAAI,CAAC;IAEvE;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;IAE3D,wEAAwE;IACxE,QAAQ,CAAC,EAAE;QACT,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;KAC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AAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,IAAI,CAAC,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC;IACR,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC"}
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Notification, NotificationFilter, NotificationPriority, NotificationType } from '../types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Format a relative time string (e.g., "2 minutes ago", "1 hour ago")
|
|
5
|
-
*/
|
|
6
|
-
export declare function formatRelativeTime(date: string | Date): string;
|
|
7
|
-
/**
|
|
8
|
-
* Get priority color class name (for use with semantic tokens)
|
|
9
|
-
*/
|
|
10
|
-
export declare function getPriorityColor(priority: NotificationPriority): string;
|
|
11
|
-
/**
|
|
12
|
-
* Get priority icon/indicator
|
|
13
|
-
*/
|
|
14
|
-
export declare function getPriorityIcon(priority: NotificationPriority): string;
|
|
15
|
-
/**
|
|
16
|
-
* Get notification type label
|
|
17
|
-
*/
|
|
18
|
-
export declare function getNotificationTypeLabel(type: NotificationType): string;
|
|
19
|
-
/**
|
|
20
|
-
* Get notification type icon
|
|
21
|
-
*/
|
|
22
|
-
export declare function getNotificationTypeIcon(type: NotificationType): string;
|
|
23
|
-
/**
|
|
24
|
-
* Filter notifications based on criteria
|
|
25
|
-
*/
|
|
26
|
-
export declare function filterNotifications(notifications: Notification[], filter: NotificationFilter): Notification[];
|
|
27
|
-
/**
|
|
28
|
-
* Sort notifications by created date (newest first)
|
|
29
|
-
*/
|
|
30
|
-
export declare function sortNotificationsByDate(notifications: Notification[]): Notification[];
|
|
31
|
-
/**
|
|
32
|
-
* Group notifications by date (Today, Yesterday, This Week, etc.)
|
|
33
|
-
*/
|
|
34
|
-
export declare function groupNotificationsByDate(notifications: Notification[]): Record<string, Notification[]>;
|
|
35
|
-
/**
|
|
36
|
-
* Truncate text to a maximum length
|
|
37
|
-
*/
|
|
38
|
-
export declare function truncateText(text: string, maxLength: number): string;
|
|
39
|
-
/**
|
|
40
|
-
* Validate template variable substitution
|
|
41
|
-
*/
|
|
42
|
-
export declare function validateTemplateVariables(template: string, variables: Record<string, unknown>): {
|
|
43
|
-
isValid: boolean;
|
|
44
|
-
missingVariables: string[];
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Substitute template variables
|
|
48
|
-
*/
|
|
49
|
-
export declare function substituteTemplateVariables(template: string, variables: Record<string, unknown>): string;
|
|
50
|
-
/**
|
|
51
|
-
* Get delivery status color
|
|
52
|
-
*/
|
|
53
|
-
export declare function getDeliveryStatusColor(status: 'PENDING' | 'SENT' | 'DELIVERED' | 'FAILED' | 'ARCHIVED'): string;
|
|
54
|
-
/**
|
|
55
|
-
* Calculate delivery rate percentage
|
|
56
|
-
*/
|
|
57
|
-
export declare function calculateDeliveryRate(delivered: number, total: number): number;
|
|
58
|
-
/**
|
|
59
|
-
* Check whether a mutation error represents a gateway-level authorization
|
|
60
|
-
* failure (the RBAC gateway rejected the request because the actor lacks
|
|
61
|
-
* the required permission). Callers surface these with a friendly toast and
|
|
62
|
-
* refresh the permission cache to recover from stale client state.
|
|
63
|
-
*
|
|
64
|
-
* 401/UNAUTHENTICATED is handled separately by the shell's auth flow — this
|
|
65
|
-
* helper intentionally ignores it.
|
|
66
|
-
*/
|
|
67
|
-
export declare function isPermissionError(err: unknown): boolean;
|
|
68
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils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M,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,MAAM,CAMR;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAC/D,MAAM,CAeR;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAG9E;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAmCvD"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { getPlatform, isNative, isIOS, isAndroid, isWeb, nativeImpact, nativeNotify, nativeToast, nativeConfirm, nativeCopyText, nativeShare, nativeOpenUrl, useNativePlatform, useSafeArea, useNativeKeyboard, useAppState, useDeviceInfo, useHaptics, useStatusBar, } from '@burdenoff/fe-libs/shared/native';
|
|
2
|
-
export type { BurdenoffNativePlatform, BurdenoffNativeBridge, SafeAreaInsets, DeviceInfo, HapticImpactStyle, HapticNotificationType, ToastDuration, ConfirmOptions, ShareOptions, AppState, StatusBarTheme, } from '@burdenoff/fe-libs/shared/native';
|
|
3
|
-
//# sourceMappingURL=nativeBridge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nativeBridge.d.ts","sourceRoot":"","sources":["../../src/utils/nativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface ExportableNotification {
|
|
2
|
-
id: string;
|
|
3
|
-
title: string;
|
|
4
|
-
body: string;
|
|
5
|
-
type: string;
|
|
6
|
-
priority: string;
|
|
7
|
-
status: string;
|
|
8
|
-
createdAt: string;
|
|
9
|
-
readAt?: string;
|
|
10
|
-
archivedAt?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function exportNotificationsAsCsv(tr: (key: string, fallback: string) => string, notifications: ExportableNotification[]): void;
|
|
13
|
-
//# sourceMappingURL=notificationHistoryExport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notificationHistoryExport.d.ts","sourceRoot":"","sources":["../../src/utils/notificationHistoryExport.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,wBAAwB,CACtC,EAAE,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,EAC7C,aAAa,EAAE,sBAAsB,EAAE,QAqCxC"}
|