From be98fd8c4c2fbb01eb80808bf3aa609b08b90ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jovan=20Kruni=C4=87?= Date: Tue, 6 Dec 2022 13:35:49 +0100 Subject: [PATCH] feat: add dish menu section and service times Closes #150 --- src/things/dish.ts | 21 +++++++++++++++++++++ src/things/room.ts | 10 ++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/things/dish.ts b/src/things/dish.ts index 0ff81631..bd54d904 100644 --- a/src/things/dish.ts +++ b/src/things/dish.ts @@ -53,6 +53,11 @@ export interface SCDishWithoutReferences */ nutrition?: SCNutritionInformation; + /** + * Section of the restaurant menu to which the dish belongs + */ + menuSection?: SCMenuSection; + /** * Translated fields of a dish */ @@ -187,6 +192,20 @@ export interface SCNutritionInformation { sugarContent?: number; } +export interface SCMenuSection { + /** + * Name of the menu section (mostly to be used as a section title) + */ + name: 'breakfast' | 'lunch' | 'dinner'; + + /** + * The time span when the dishes from the sections are available. + * + * @see http://wiki.openstreetmap.org/wiki/Key:opening_hours/specification + */ + servingHours?: string; +} + /** * Meta information about a dish */ @@ -205,6 +224,7 @@ export class SCDishMeta extends SCThingMeta implements SCMetaTranslations