Add notification filters
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export type NotificationActionFilterModel = {
|
||||
attribute: string;
|
||||
operator: string;
|
||||
value: string | string[] | null;
|
||||
};
|
||||
@@ -1,3 +1,5 @@
|
||||
import type { NotificationActionFilterModel } from '@/types/models/notification-action-filter-model';
|
||||
|
||||
export type NotificationActionModel = {
|
||||
id: number;
|
||||
project_id: number;
|
||||
@@ -8,6 +10,7 @@ export type NotificationActionModel = {
|
||||
channel: string;
|
||||
channel_label: string;
|
||||
channel_configuration: Record<string, unknown>;
|
||||
filters: NotificationActionFilterModel[];
|
||||
has_delivery_url: boolean;
|
||||
message_template: string | null;
|
||||
created_at: string | null;
|
||||
|
||||
@@ -109,6 +109,8 @@ export type ProjectRepositorySettingsPageProps = {
|
||||
export type ProjectNotificationSettingsPageProps = {
|
||||
channelOptions: NotificationActionOptionModel[];
|
||||
eventTypeOptions: NotificationActionOptionModel[];
|
||||
filterAttributeOptions: NotificationActionOptionModel[];
|
||||
filterOperatorOptions: NotificationActionOptionModel[];
|
||||
notificationActions: NotificationActionModel[];
|
||||
project: ProjectModel;
|
||||
status?: string | null;
|
||||
|
||||
Reference in New Issue
Block a user