mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
16 lines
403 B
TypeScript
16 lines
403 B
TypeScript
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>;
|
|
}
|