You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
403 B
16 lines
403 B
import { Notification } from '..';
|
|
import { User } from '../../../entity/User';
|
|
|
|
export interface NotificationPayload {
|
|
subject: string;
|
|
notifyUser: User;
|
|
image?: string;
|
|
message?: string;
|
|
extra?: { name: string; value: string }[];
|
|
}
|
|
|
|
export interface NotificationAgent {
|
|
shouldSend(type: Notification): boolean;
|
|
send(type: Notification, payload: NotificationPayload): Promise<boolean>;
|
|
}
|