Do funkce jdemeObed doplněn parametr locationKey

This commit is contained in:
Michal Hájek
2025-02-23 01:11:25 +01:00
parent 8137ca6fc0
commit 2f39d04120
8 changed files with 59 additions and 43 deletions

View File

@@ -18,6 +18,8 @@ export type RemoveChoiceRequest = IDayIndex & ILocationKey & {
foodIndex: number,
}
export type JdemeObedRequest = ILocationKey;
export type UpdateNoteRequest = IDayIndex & {
note?: string,
}

View File

@@ -131,21 +131,15 @@ export type LocationKey = keyof typeof Locations;
export enum UdalostEnum {
ZAHAJENA_PIZZA = "Zahájen pizza day",
OBJEDNANA_PIZZA = "Objednána pizza",
JDEME_NA_OBED = "Jdeme na oběd",
JDEME_OBED = "Jdeme na oběd",
}
export type NotififaceInput = {
locationKey?: LocationKey,
udalost: UdalostEnum,
user: string,
}
export type NotifikaceData = {
input: NotififaceInput,
gotify?: boolean,
teams?: boolean,
ntfy?: boolean,
}
export type GotifyServer = {
server: string;
api_keys: string[];