UNPKG

modrinthjs

Version:
51 lines (50 loc) 1.13 kB
import type { NotificationAction } from './NotificationAction'; export type Notification = { /** * The id of the notification */ id: string; /** * The id of the user who received the notification */ user_id: string; /** * The type of notification */ type?: Notification.type | null; /** * The title of the notification */ title: string; /** * The body text of the notification */ text: string; /** * A link to the related project or version */ link: string; /** * Whether the notification has been read or not */ read: boolean; /** * The time at which the notification was created */ created: string; /** * A list of actions that can be performed */ actions: Array<NotificationAction>; }; export declare namespace Notification { /** * The type of notification */ enum type { PROJECT_UPDATE = "project_update", TEAM_INVITE = "team_invite", STATUS_CHANGE = "status_change", MODERATOR_MESSAGE = "moderator_message" } }