22 lines
535 B
TypeScript
22 lines
535 B
TypeScript
import { apiGet } from '@/lib/http'
|
|
|
|
export type AdminNotification = {
|
|
notificationId: number
|
|
notificationType: string
|
|
priority: 'normal' | 'high' | 'urgent' | string
|
|
entityType: string
|
|
entityId: number
|
|
title: string
|
|
body: string
|
|
actionPath: string
|
|
reminderCount: number
|
|
soundEnabled: boolean
|
|
lastRemindedAt: string | null
|
|
createdAt: string
|
|
updatedAt: string
|
|
}
|
|
|
|
export function fetchAdminNotifications() {
|
|
return apiGet<{ pendingCount: number; items: AdminNotification[] }>('/api/v1/admin/notifications')
|
|
}
|