Add ticket notification system with user and admin notification settings; integrate ToastProvider in main app layout

This commit is contained in:
PEDZEO
2026-01-19 00:24:13 +03:00
parent 6751f41859
commit 35ee63b351
11 changed files with 747 additions and 3 deletions

View File

@@ -516,3 +516,34 @@ export interface ManualCheckResponse {
old_status: string | null
new_status: string | null
}
// Ticket notifications types
export interface TicketNotification {
id: number
ticket_id: number
notification_type: 'new_ticket' | 'admin_reply' | 'user_reply'
message: string | null
is_read: boolean
created_at: string
read_at: string | null
}
export interface TicketNotificationList {
items: TicketNotification[]
unread_count: number
}
export interface UnreadCountResponse {
unread_count: number
}
// Extended TicketSettings with cabinet notifications
export interface TicketSettings {
sla_enabled: boolean
sla_minutes: number
sla_check_interval_seconds: number
sla_reminder_cooldown_minutes: number
support_system_mode: string
cabinet_user_notifications_enabled: boolean
cabinet_admin_notifications_enabled: boolean
}