## API Report File for "@backstage/plugin-notifications" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts import { ApiRef } from '@backstage/frontend-plugin-api'; import { BackstagePlugin } from '@backstage/core-plugin-api'; import { DiscoveryApi } from '@backstage/core-plugin-api'; import { FetchApi } from '@backstage/core-plugin-api'; import { IconComponent } from '@backstage/core-plugin-api'; import { JSX as JSX_2 } from 'react/jsx-runtime'; import { Notification as Notification_2 } from '@backstage/plugin-notifications-common'; import { NotificationSettings } from '@backstage/plugin-notifications-common'; import { NotificationSeverity } from '@backstage/plugin-notifications-common'; import { NotificationStatus } from '@backstage/plugin-notifications-common'; import { RouteRef } from '@backstage/core-plugin-api'; import { SwappableComponentRef } from '@backstage/frontend-plugin-api'; import { TableProps } from '@backstage/core-components'; import { TranslationRef } from '@backstage/frontend-plugin-api'; // @public (undocumented) export type GetNotificationsCommonOptions = { search?: string; read?: boolean; saved?: boolean; createdAfter?: Date; minimumSeverity?: NotificationSeverity; }; // @public (undocumented) export type GetNotificationsOptions = GetNotificationsCommonOptions & { offset?: number; limit?: number; sort?: 'created' | 'topic' | 'origin'; sortOrder?: 'asc' | 'desc'; topic?: string; }; // @public (undocumented) export type GetNotificationsResponse = { notifications: Notification_2[]; totalCount: number; }; // @public (undocumented) export type GetTopicsOptions = GetNotificationsCommonOptions; // @public (undocumented) export type GetTopicsResponse = { topics: string[]; }; // @public export const NotificationDescription: { (props: NotificationDescriptionProps): JSX.Element | null; ref: SwappableComponentRef< NotificationDescriptionProps, NotificationDescriptionProps >; }; // @public export interface NotificationDescriptionProps { description: string; } // @public (undocumented) export interface NotificationsApi { // (undocumented) getNotification(id: string): Promise; // (undocumented) getNotifications( options?: GetNotificationsOptions, ): Promise; // (undocumented) getNotificationSettings(): Promise; // (undocumented) getStatus(): Promise; // (undocumented) getTopics(options?: GetTopicsOptions): Promise; // (undocumented) updateNotifications( options: UpdateNotificationsOptions, ): Promise; // (undocumented) updateNotificationSettings( settings: NotificationSettings, ): Promise; } // @public (undocumented) export const notificationsApiRef: ApiRef; // @public (undocumented) export class NotificationsClient implements NotificationsApi { constructor(options: { discoveryApi: DiscoveryApi; fetchApi: FetchApi }); // (undocumented) getNotification(id: string): Promise; // (undocumented) getNotifications( options?: GetNotificationsOptions, ): Promise; // (undocumented) getNotificationSettings(): Promise; // (undocumented) getStatus(): Promise; // (undocumented) getTopics(options?: GetTopicsOptions): Promise; // (undocumented) updateNotifications( options: UpdateNotificationsOptions, ): Promise; // (undocumented) updateNotificationSettings( settings: NotificationSettings, ): Promise; } // @public (undocumented) export type NotificationSnackbarProperties = { enabled?: boolean; autoHideDuration?: number | null; anchorOrigin?: { vertical: 'top' | 'bottom'; horizontal: 'left' | 'center' | 'right'; }; dense?: boolean; maxSnack?: number; snackStyle?: React.CSSProperties; iconVariant?: Partial>; Components?: { [key in NotificationSeverity]: React.JSXElementConstructor; }; }; // @public (undocumented) export const NotificationsPage: ( props?: NotificationsPageProps, ) => JSX_2.Element; // @public (undocumented) export type NotificationsPageProps = { markAsReadOnLinkOpen?: boolean; title?: string; themeId?: string; subtitle?: string; tooltip?: string; type?: string; typeLink?: string; }; // @public (undocumented) export const notificationsPlugin: BackstagePlugin< { root: RouteRef; }, {} >; // @public export type NotificationsRenderItemProps = { unreadCount: number; to: string; onClick: () => void; }; // @public (undocumented) export const NotificationsSidebarItem: ( props?: NotificationsSideBarItemProps, ) => JSX_2.Element; // @public (undocumented) export type NotificationsSideBarItemProps = { webNotificationsEnabled?: boolean; titleCounterEnabled?: boolean; snackbarEnabled?: boolean; snackbarAutoHideDuration?: number | null; snackbarProps?: NotificationSnackbarProperties; className?: string; icon?: IconComponent; text?: string; disableHighlight?: boolean; noTrack?: boolean; renderItem?: (props: NotificationsRenderItemProps) => React.ReactNode; }; // @public (undocumented) export const NotificationsTable: ( input: NotificationsTableProps, ) => JSX_2.Element; // @public (undocumented) export type NotificationsTableProps = Pick< TableProps, 'onPageChange' | 'onRowsPerPageChange' | 'page' | 'totalCount' | 'title' > & { markAsReadOnLinkOpen?: boolean; isLoading?: boolean; isUnread: boolean; notifications?: Notification_2[]; highlightedNotificationId?: string; onUpdate: () => void; setContainsText: (search: string) => void; pageSize: number; }; // @public (undocumented) export const notificationsTranslationRef: TranslationRef< 'plugin.notifications', { readonly 'table.errors.markAllReadFailed': 'Failed to mark all notifications as read'; readonly 'table.pagination.labelDisplayedRows': '{from}-{to} of {count}'; readonly 'table.pagination.firstTooltip': 'First Page'; readonly 'table.pagination.labelRowsSelect': 'rows'; readonly 'table.pagination.lastTooltip': 'Last Page'; readonly 'table.pagination.nextTooltip': 'Next Page'; readonly 'table.pagination.previousTooltip': 'Previous Page'; readonly 'table.emptyMessage': 'No records to display'; readonly 'table.bulkActions.markAllRead': 'Mark all read'; readonly 'table.bulkActions.markSelectedAsRead': 'Mark selected as read'; readonly 'table.bulkActions.returnSelectedAmongUnread': 'Return selected among unread'; readonly 'table.bulkActions.saveSelectedForLater': 'Save selected for later'; readonly 'table.bulkActions.undoSaveForSelected': 'Undo save for selected'; readonly 'table.confirmDialog.cancel': 'Cancel'; readonly 'table.confirmDialog.title': 'Are you sure?'; readonly 'table.confirmDialog.markAllReadDescription': 'Mark all notifications as read.'; readonly 'table.confirmDialog.markAllReadConfirmation': 'Mark All'; readonly 'filters.view.all': 'All'; readonly 'filters.view.label': 'View'; readonly 'filters.view.read': 'Read notifications'; readonly 'filters.view.saved': 'Saved'; readonly 'filters.view.unread': 'Unread notifications'; readonly 'filters.title': 'Filters'; readonly 'filters.severity.normal': 'Normal'; readonly 'filters.severity.high': 'High'; readonly 'filters.severity.low': 'Low'; readonly 'filters.severity.label': 'Min severity'; readonly 'filters.severity.critical': 'Critical'; readonly 'filters.topic.label': 'Topic'; readonly 'filters.topic.anyTopic': 'Any topic'; readonly 'filters.createdAfter.label': 'Sent out'; readonly 'filters.createdAfter.placeholder': 'Notifications since'; readonly 'filters.createdAfter.last24h': 'Last 24h'; readonly 'filters.createdAfter.lastWeek': 'Last week'; readonly 'filters.createdAfter.anyTime': 'Any time'; readonly 'filters.sortBy.origin': 'Origin'; readonly 'filters.sortBy.label': 'Sort by'; readonly 'filters.sortBy.placeholder': 'Field to sort by'; readonly 'filters.sortBy.newest': 'Newest on top'; readonly 'filters.sortBy.oldest': 'Oldest on top'; readonly 'filters.sortBy.topic': 'Topic'; readonly 'settings.table.origin': 'Origin'; readonly 'settings.table.topic': 'Topic'; readonly 'settings.title': 'Notification settings'; readonly 'settings.errors.useNotificationFormat': 'useNotificationFormat must be used within a NotificationFormatProvider'; readonly 'settings.errorTitle': 'Failed to load settings'; readonly 'settings.noSettingsAvailable': 'No notification settings available, check back later'; readonly 'sidebar.title': 'Notifications'; readonly 'sidebar.errors.markAsReadFailed': 'Failed to mark notification as read'; readonly 'sidebar.errors.fetchNotificationFailed': 'Failed to fetch notification'; readonly 'notificationsPage.title': 'Notifications'; readonly 'notificationsPage.tableTitle.all_one': 'All notifications ({{count}})'; readonly 'notificationsPage.tableTitle.all_other': 'All notifications ({{count}})'; readonly 'notificationsPage.tableTitle.saved_one': 'Saved notifications ({{count}})'; readonly 'notificationsPage.tableTitle.saved_other': 'Saved notifications ({{count}})'; readonly 'notificationsPage.tableTitle.unread_one': 'Unread notifications ({{count}})'; readonly 'notificationsPage.tableTitle.unread_other': 'Unread notifications ({{count}})'; readonly 'notificationsPage.tableTitle.read_one': 'Read notifications ({{count}})'; readonly 'notificationsPage.tableTitle.read_other': 'Read notifications ({{count}})'; readonly 'unreadCard.emptyState': 'All caught up!'; readonly 'unreadCard.title_one': 'Last unread notifications ({{count}})'; readonly 'unreadCard.title_other': 'Last unread notifications ({{count}})'; readonly 'unreadCard.viewAll': 'View All'; readonly 'unreadCard.columnNotification': 'Notification'; readonly 'unreadCard.columnActions': 'Actions'; readonly 'unreadCard.resultsCount': '{{displayed}} results out of {{total}}'; } >; // @public (undocumented) export type UpdateNotificationsOptions = { ids: string[]; read?: boolean; saved?: boolean; }; // @public (undocumented) export function useNotificationsApi( f: (api: NotificationsApi) => Promise, deps?: any[], ): | { retry: () => void; loading: boolean; error?: undefined; value?: undefined; } | { retry: () => void; loading: false; error: Error; value?: undefined; } | { retry: () => void; loading: true; error?: Error | undefined; value?: T | undefined; } | { retry: () => void; loading: false; error?: undefined; value: T; }; // @public (undocumented) export const UserNotificationSettingsCard: (props: { originNames?: Record; topicNames?: Record; }) => JSX_2.Element; // (No @packageDocumentation comment for this package) ```