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.
overseerr/server/lib/notifications/agents/agent.ts

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>;
}