import { LimeObject } from '../limeobject'; /** * A Notification object * * @beta * @group NotificationRepository */ export type Notification = { /** * The notification id */ id: number; /** * Type of notification */ type?: NotificationType; /** * Date when the notification was marked as read */ read?: Date; /** * Date when the notification was created */ timestamp: Date; /** * {@link LimeObject} that the notification is attached to */ limeobject?: LimeObject; /** * Data attached to the notification */ data?: T; /** * The coworker that created the notification */ createdBy?: LimeObject; }; /** * @beta */ export type NotificationType = 'assignment' | 'follow' | 'mention';