feat(notification): show device monitoring stats
This commit is contained in:
+19
-9
@@ -389,15 +389,25 @@ export interface LocaleRow {
|
||||
}
|
||||
|
||||
export interface NotificationDevice {
|
||||
id: number | string
|
||||
device_id?: string
|
||||
user_uid?: string | null
|
||||
platform?: string
|
||||
model?: string | null
|
||||
is_online?: boolean
|
||||
active_sessions_count?: number
|
||||
last_seen_at?: string | null
|
||||
created_at?: string
|
||||
kind: 'device'
|
||||
id: string
|
||||
device_client_id: string
|
||||
platform: 'ios' | 'android' | 'web' | 'desktop'
|
||||
push_provider: string | null
|
||||
app_key: string | null
|
||||
device_model: string | null
|
||||
is_online: boolean
|
||||
has_push_token: boolean
|
||||
active_sessions_count: number
|
||||
last_seen_at: string | null
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface NotificationDeviceStats {
|
||||
total_devices: number
|
||||
online_devices: number
|
||||
platform_stats: Partial<Record<NotificationDevice['platform'], number>>
|
||||
}
|
||||
|
||||
export type ReportStatus = 'open' | 'resolved' | 'dismissed'
|
||||
|
||||
Reference in New Issue
Block a user