feat(notification): manage push applications
This commit is contained in:
@@ -410,6 +410,41 @@ export interface NotificationDeviceStats {
|
||||
platform_stats: Partial<Record<NotificationDevice['platform'], number>>
|
||||
}
|
||||
|
||||
export type PushProvider = 'apn' | 'fcm' | 'hms' | 'mipush'
|
||||
|
||||
export interface PushApp {
|
||||
kind: 'push_app'
|
||||
id: string
|
||||
app_key: string
|
||||
provider: PushProvider
|
||||
platform: 'ios' | 'android'
|
||||
label: string | null
|
||||
topic: string | null
|
||||
settings: Record<string, unknown>
|
||||
is_active: boolean
|
||||
credentials_file: string | null
|
||||
credentials_present: boolean
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface PushAppPayload {
|
||||
app_key: string
|
||||
provider: PushProvider
|
||||
label?: string | null
|
||||
topic?: string | null
|
||||
settings?: Record<string, unknown> | null
|
||||
credentials_path?: string | null
|
||||
is_active?: boolean
|
||||
}
|
||||
|
||||
export interface PushAppVerification {
|
||||
kind: 'push_app_verification'
|
||||
id: string
|
||||
checks: Record<string, boolean>
|
||||
ok: boolean
|
||||
}
|
||||
|
||||
export type ReportStatus = 'open' | 'resolved' | 'dismissed'
|
||||
|
||||
export interface ReportUser {
|
||||
|
||||
Reference in New Issue
Block a user