aboutsummaryrefslogtreecommitdiff
path: root/src/publisher/index.ts
blob: f37e108c236d07e29938b44b72ac6c7eddec12f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}