feat: Simplify Default Layout Logic and Add Household.name To Cookbooks API (#6243)

This commit is contained in:
Michael Genson
2025-09-25 18:01:10 -05:00
committed by GitHub
parent 79367872ac
commit d29de8e679
9 changed files with 33 additions and 41 deletions

View File

@@ -9,6 +9,10 @@ export type LogicalOperator = "AND" | "OR";
export type RelationalKeyword = "IS" | "IS NOT" | "IN" | "NOT IN" | "CONTAINS ALL" | "LIKE" | "NOT LIKE";
export type RelationalOperator = "=" | "<>" | ">" | "<" | ">=" | "<=";
export interface CookbookHousehold {
id: string;
name: string;
}
export interface CreateCookBook {
name: string;
description?: string;
@@ -28,6 +32,7 @@ export interface ReadCookBook {
householdId: string;
id: string;
queryFilter?: QueryFilterJSON;
household?: CookbookHousehold | null;
}
export interface QueryFilterJSON {
parts?: QueryFilterJSONPart[];

View File

@@ -6,8 +6,6 @@
*/
export interface OpenAIIngredient {
input: string;
confidence?: number | null;
quantity?: number | null;
unit?: string | null;
food?: string | null;