import { D } from "../util"; export enum PublisherType { DISCORD = "discord", NTFY = "ntfy", } export interface DiscordPost { webhook: string; role_id: string; } export interface NtfyPost { webhook: string; } export type PublisherPost = DiscordPost | NtfyPost; export interface Publisher { type: PublisherType; at: D.Duration; post: PublisherPost; }