/
zxclovly
/
LUME
Обзор
Документация
Войти
/
zxclovly
/
LUME
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/types/notifications.ts
46 строк
968 B
lovlygod
chats: public/private, invites, joins, delete chats
19 мар 2026, 01:51
19 мар 2026, 01:51
819d51a
Код
Авторство
О чём код?
// Notification types export type NotificationType = | 'message' | 'reaction' | 'comment' | 'follow' | 'mention' | 'reply' | 'post_resonance' | 'post_comment'; export interface Notification { id: string; type: NotificationType; actor_id: string | null; actor_username: string | null; actor_avatar: string | null; target_id: string | null; target_type: string | null; message: string | null; read: boolean; created_at: string; url: string | null; } export interface NotificationsResponse { notifications: Notification[]; } export interface MarkAsReadRequest { notificationId?: string; markAllAsRead?: boolean; } export interface WebSocketNotificationData { userId: string; type: NotificationType; actor_id: string | null; actor_username: string | null; actor_avatar: string | null; target_id: string | null; target_type: string | null; message: string | null; url: string | null; timestamp: string; }