17 lines
365 B
TypeScript
17 lines
365 B
TypeScript
export interface NotificationOptions {
|
|
title: string;
|
|
message: string;
|
|
priority?: number;
|
|
}
|
|
|
|
/**
|
|
* Interface for notification service implementations.
|
|
* Allows for different implementations (Gotify, Slack, Email, etc.)
|
|
*/
|
|
export interface NotificationService {
|
|
/**
|
|
* Send a notification.
|
|
*/
|
|
notify(options: NotificationOptions): Promise<void>;
|
|
}
|