Add project notification settings UI
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export type NotificationActionModel = {
|
||||
id: number;
|
||||
project_id: number;
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
event_type: string;
|
||||
event_type_label: string;
|
||||
channel: string;
|
||||
channel_label: string;
|
||||
channel_configuration: Record<string, unknown>;
|
||||
has_delivery_url: boolean;
|
||||
message_template: string | null;
|
||||
created_at: string | null;
|
||||
updated_at: string | null;
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
export type NotificationActionOptionModel = {
|
||||
label: string;
|
||||
value: string;
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
export type NotificationActionTemplateVariableModel = {
|
||||
description: string;
|
||||
value: string;
|
||||
};
|
||||
@@ -1,5 +1,8 @@
|
||||
import type { BoardColumnModel } from '@/types/models/board-column-model';
|
||||
import type { AvailableGitRepositorySourceModel } from '@/types/models/available-git-repository-source-model';
|
||||
import type { NotificationActionModel } from '@/types/models/notification-action-model';
|
||||
import type { NotificationActionOptionModel } from '@/types/models/notification-action-option-model';
|
||||
import type { NotificationActionTemplateVariableModel } from '@/types/models/notification-action-template-variable-model';
|
||||
import type { ProjectModel } from '@/types/models/project-model';
|
||||
import type { RepositoryConnectionModel } from '@/types/models/repository-connection-model';
|
||||
import type { TeamModel } from '@/types/models/team-model';
|
||||
@@ -103,6 +106,15 @@ export type ProjectRepositorySettingsPageProps = {
|
||||
status?: string | null;
|
||||
};
|
||||
|
||||
export type ProjectNotificationSettingsPageProps = {
|
||||
channelOptions: NotificationActionOptionModel[];
|
||||
eventTypeOptions: NotificationActionOptionModel[];
|
||||
notificationActions: NotificationActionModel[];
|
||||
project: ProjectModel;
|
||||
status?: string | null;
|
||||
templateVariables: NotificationActionTemplateVariableModel[];
|
||||
};
|
||||
|
||||
export type ProjectBacklogPageProps = {
|
||||
backlogTicketStatuses: TicketStatusModel[];
|
||||
canCreateTickets: boolean;
|
||||
|
||||
Reference in New Issue
Block a user