import { DatabaseModel } from '..'; import { ChatRoomId } from '../chat'; import { GroupId } from '../group'; import { RecipeId } from '../recipe'; import { Milliseconds } from '../types'; import { UserId } from '../user'; import { NotificationType } from './NotificationType'; export declare type NotificationId = string; export interface Notification extends DatabaseModel { id: NotificationId; type: NotificationType; body: string; isHidden: boolean; emoji?: string; /** A redirect URL link. */ redirectUrl?: string; sentByUser?: UserId; sentByGroup?: GroupId; sentInChat?: ChatRoomId; recipeMentioned?: RecipeId; /** The number of milliseconds since 1970 when the notification was read. */ readAt?: Milliseconds; }