2026-07-23 22:24:26 +03:30
|
|
|
export interface AppNotification {
|
|
|
|
|
id?: number
|
|
|
|
|
title: string
|
|
|
|
|
body: string
|
|
|
|
|
severity: 'info' | 'success' | 'warning' | 'danger'
|
|
|
|
|
is_active: boolean
|
|
|
|
|
created_by?: number | null
|
|
|
|
|
created_at?: string
|
|
|
|
|
updated_at?: string
|
2026-07-24 17:01:40 +03:30
|
|
|
reads_count?: number
|
2026-07-23 22:24:26 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const APP_NOTIFICATION_SEVERITIES = [
|
|
|
|
|
{ value: 'info', label: 'اطلاعات (info)' },
|
|
|
|
|
{ value: 'success', label: 'موفق (success)' },
|
|
|
|
|
{ value: 'warning', label: 'هشدار (warning)' },
|
|
|
|
|
{ value: 'danger', label: 'مهم / خطر (danger)' },
|
|
|
|
|
] as const
|
2026-07-24 17:01:40 +03:30
|
|
|
|
|
|
|
|
export interface AppNotificationReader {
|
|
|
|
|
customer_id: number
|
|
|
|
|
name: string
|
|
|
|
|
mobile?: string | null
|
|
|
|
|
read_at?: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface AppNotificationReadersResponse {
|
|
|
|
|
reads_count: number
|
|
|
|
|
readers: AppNotificationReader[]
|
|
|
|
|
}
|