From 052c1b9fbd434e258d08815ecd44c83700b1ef19 Mon Sep 17 00:00:00 2001 From: Hayden Young <22327045+hbjydev@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:47:15 +0000 Subject: [PATCH] feat: estimated time lexicon --- lexicons/moe/hayden/cookware/defs.json | 14 ++++++++++++++ lexicons/moe/hayden/cookware/recipe.json | 4 ++++ libs/lexicons/src/atcute.ts | 8 ++++++++ 3 files changed, 26 insertions(+) diff --git a/lexicons/moe/hayden/cookware/defs.json b/lexicons/moe/hayden/cookware/defs.json index 9418712..d76c4d3 100644 --- a/lexicons/moe/hayden/cookware/defs.json +++ b/lexicons/moe/hayden/cookware/defs.json @@ -34,6 +34,20 @@ "description": "The instruction to provide to the user." } } + }, + "elapsedTime": { + "type": "object", + "required": ["amount", "unit"], + "properties": { + "amount": { + "type": "integer", + "description": "The amount of (#unit) to display." + }, + "unit": { + "type": "string", + "description": "The unit to display the time in." + } + } } } } diff --git a/lexicons/moe/hayden/cookware/recipe.json b/lexicons/moe/hayden/cookware/recipe.json index cefa94a..98b9a8d 100644 --- a/lexicons/moe/hayden/cookware/recipe.json +++ b/lexicons/moe/hayden/cookware/recipe.json @@ -22,6 +22,10 @@ "maxGraphemes": 300, "description": "The description of the recipe." }, + "estimate": { + "type": "ref", + "ref": "moe.hayden.cookware.defs#elapsedTime" + }, "ingredients": { "type": "array", "items": { diff --git a/libs/lexicons/src/atcute.ts b/libs/lexicons/src/atcute.ts index 6120e3b..1b2037d 100644 --- a/libs/lexicons/src/atcute.ts +++ b/libs/lexicons/src/atcute.ts @@ -10,6 +10,13 @@ import "@atcute/client/lexicons"; declare module "@atcute/client/lexicons" { namespace MoeHaydenCookwareDefs { + interface ElapsedTime { + [Brand.Type]?: "moe.hayden.cookware.defs#elapsedTime"; + /** The amount of (#unit) to display. */ + amount: number; + /** The unit to display the time in. */ + unit: string; + } interface Ingredient { [Brand.Type]?: "moe.hayden.cookware.defs#ingredient"; /** How much of the ingredient is needed. */ @@ -103,6 +110,7 @@ declare module "@atcute/client/lexicons" { * Maximum grapheme length: 300 */ description?: string; + estimate?: MoeHaydenCookwareDefs.ElapsedTime; } }