chore: move notification processor filters to common package

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-06-05 13:33:31 +03:00
parent ee9e1737b3
commit 4e4ef2ba78
10 changed files with 89 additions and 40 deletions
+3 -7
View File
@@ -8,7 +8,7 @@ import { DiscoveryService } from '@backstage/backend-plugin-api';
import { ExtensionPoint } from '@backstage/backend-plugin-api';
import { Notification as Notification_2 } from '@backstage/plugin-notifications-common';
import { NotificationPayload } from '@backstage/plugin-notifications-common';
import { NotificationSeverity } from '@backstage/plugin-notifications-common';
import { NotificationProcessorFilters as NotificationProcessorFilters_2 } from '@backstage/plugin-notifications-common';
import { ServiceRef } from '@backstage/backend-plugin-api';
// @public (undocumented)
@@ -38,12 +38,8 @@ export interface NotificationProcessor {
): Promise<NotificationSendOptions>;
}
// @public (undocumented)
export type NotificationProcessorFilters = {
minSeverity?: NotificationSeverity;
maxSeverity?: NotificationSeverity;
excludedTopics?: string[];
};
// @public @deprecated (undocumented)
export type NotificationProcessorFilters = NotificationProcessorFilters_2;
// @public (undocumented)
export type NotificationRecipients =
+3 -6
View File
@@ -16,7 +16,7 @@
import { createExtensionPoint } from '@backstage/backend-plugin-api';
import {
Notification,
NotificationSeverity,
NotificationProcessorFilters as NotificationProcessorFiltersCommon,
} from '@backstage/plugin-notifications-common';
import { NotificationSendOptions } from './service';
@@ -119,9 +119,6 @@ export const notificationsProcessingExtensionPoint =
/**
* @public
* @deprecated Please import from `@backstage/plugin-notifications-common` instead
*/
export type NotificationProcessorFilters = {
minSeverity?: NotificationSeverity;
maxSeverity?: NotificationSeverity;
excludedTopics?: string[];
};
export type NotificationProcessorFilters = NotificationProcessorFiltersCommon;