Podpora notifikací, zatím jen gotify

This commit is contained in:
2023-06-10 18:31:54 +02:00
parent aa873e9c65
commit ae5d53bcf3
6 changed files with 105 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
import exp from "constants";
export interface Choices {
[location: string]: string[],
}
@@ -65,4 +67,19 @@ export enum Locations {
VLASTNI = 'Mám vlastní',
OBJEDNAVAM = 'Objednávám',
NEOBEDVAM = 'Neobědvám',
}
export enum UdalostEnum{
ZAHAJENA_PIZZA="Zahájen pizza day",
OBJEDNANA_PIZZA="Objednána pizza"
}
export interface NotififaceInput{
udalost:UdalostEnum,
user:string,
}
export interface NotifikaceData{
input:NotififaceInput,
gotify?:boolean,
teams?:boolean,
}