echadospalante-core
Version:
This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.
29 lines (25 loc) • 619 B
text/typescript
import { UserDetail } from "../user";
export interface Notification {
id: string;
title: string;
user: UserDetail;
type: NotificationType;
status: NotificationStatus;
description: string;
createdAt: Date;
updatedAt: Date;
}
export enum NotificationType {
WELCOME = "WELCOME",
ACCOUNT_VERIFIED = "ACCOUNT_VERIFIED",
ACCOUNT_LOCKED = "ACCOUNT_LOCKED",
ACCOUNT_UNLOCKED = "ACCOUNT_UNLOCKED",
NEW_FOLLOWER = "NEW_FOLLOWER",
NEW_COMMENT = "NEW_COMMENT",
NEW_SPONSOR = "NEW_SPONSOR",
NEW_DONATION = "NEW_DONATION",
}
export enum NotificationStatus {
READ = "READ",
UNREAD = "UNREAD",
}