feat(recipe): add step quantities and appliance settings
Release Drafter / auto_label (push) Skipped
Release Drafter / draft_release (push) Canceled after 0s
CodeQL / Analyze (javascript-typescript) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
Backend Lint and Test / tests (sqlite) (push) Canceled after 0s
Backend Lint and Test / tests (postgres) (push) Canceled after 0s
Docker Nightly Production / Backend Server Tests (push) Canceled after 0s
Frontend Lint and Test / lint (push) Canceled after 0s
Docker Nightly Production / Frontend Tests (push) Canceled after 0s
Build Package / Build frontend and wheel (push) Canceled after 0s
Docker Nightly Production / Build Package (push) Canceled after 0s
Docker Nightly Production / Build E2E Image Cache (push) Canceled after 0s
Docker Nightly Production / Build Tagged Release (push) Canceled after 0s
Docker Nightly Production / Notify Discord (push) Canceled after 0s

This commit is contained in:
jfmcarreira committed 2026-12-01 13:05:50 +00:00
1 parent 1dd63a070b
commit 8dad430650
51 files changed
+2775 -77

No files matched your search

+70
View File
@@ -467,13 +467,83 @@ export interface RecipeStep {
ingredientReferences?: IngredientReferences[];
noteReferences?: NoteReference[];
durationSeconds?: number | null;
cooking?: StepCooking | null;
}
export interface IngredientReferences {
referenceId?: string | null;
allocationId?: string | null;
quantity?: number | null;
quantityKind?: ("full" | "partial" | "remaining" | "unknown" | "prepared" | "asNeeded" | "referenceOnly") | null;
weighing?: ("unspecified" | "manual" | "weigh") | null;
role?: string | null;
destination?: string | null;
quantityMinimum?: number | null;
quantityMaximum?: number | null;
approximate?: boolean | null;
containerCount?: number | null;
sourceText?: string | null;
}
export interface NoteReference {
referenceId?: string | null;
}
export interface StepCooking {
appliance?: string | null;
temperatureCelsius?: number | null;
speed?: number | string | null;
reverse?: boolean | null;
mode?: string | null;
applianceInstance?: string | null;
actionType?: ("manual" | "machine" | "oven" | "waiting" | "weighing") | null;
timerType?: ("machine" | "manual" | "oven" | "resting") | null;
durationKind?: ("fixed" | "range" | "userSelected" | "condition") | null;
accessories?: StepAccessory[];
durationRangeSeconds?: StepRange | null;
durationCondition?: string | null;
speedRange?: StepRange | null;
speedKind?: ("fixed" | "range" | "progression") | null;
speedProgression?: number[];
modeParameters?: StepParameter[];
optional?: boolean | null;
condition?: string | null;
requiresConfirmation?: boolean | null;
dependsOnStepIds?: string[];
repetitions?: number | null;
repetitionRange?: StepRange | null;
reviews?: StepReview[];
}
export interface StepAccessory {
name: string;
state: "installed" | "removed" | "unknown" | "conditional" | "open" | "closed";
}
export interface StepRange {
minimum?: number | null;
maximum?: number | null;
}
export interface StepParameter {
name: string;
kind?: "text" | "number" | "boolean" | "range";
value?: number | string | boolean | null;
unit?: string | null;
minimum?: number | null;
maximum?: number | null;
}
export interface StepReview {
id?: string;
category: "ingredient" | "operation" | "schema" | "unsupported";
source?: string;
reason?: string;
candidateIngredientIds?: string[];
status?: "unresolved" | "resolved";
resolution?: string | null;
approvedContent?: string | null;
history?: StepReviewEvent[];
}
export interface StepReviewEvent {
at: string;
status: "unresolved" | "resolved";
resolution?: string | null;
content: string;
}
export interface Nutrition {
calories?: string | null;
carbohydrateContent?: string | null;
+70
View File
@@ -205,6 +205,17 @@ export interface IngredientFoodSave {
}
export interface IngredientReferences {
referenceId?: string | null;
allocationId?: string | null;
quantity?: number | null;
quantityKind?: ("full" | "partial" | "remaining" | "unknown" | "prepared" | "asNeeded" | "referenceOnly") | null;
weighing?: ("unspecified" | "manual" | "weigh") | null;
role?: string | null;
destination?: string | null;
quantityMinimum?: number | null;
quantityMaximum?: number | null;
approximate?: boolean | null;
containerCount?: number | null;
sourceText?: string | null;
}
export interface IngredientRequest {
parser?: RegisteredParser;
@@ -380,6 +391,65 @@ export interface RecipeStep {
ingredientReferences?: IngredientReferences[];
noteReferences?: NoteReference[];
durationSeconds?: number | null;
cooking?: StepCooking | null;
}
export interface StepCooking {
appliance?: string | null;
temperatureCelsius?: number | null;
speed?: number | string | null;
reverse?: boolean | null;
mode?: string | null;
applianceInstance?: string | null;
actionType?: ("manual" | "machine" | "oven" | "waiting" | "weighing") | null;
timerType?: ("machine" | "manual" | "oven" | "resting") | null;
durationKind?: ("fixed" | "range" | "userSelected" | "condition") | null;
accessories?: StepAccessory[];
durationRangeSeconds?: StepRange | null;
durationCondition?: string | null;
speedRange?: StepRange | null;
speedKind?: ("fixed" | "range" | "progression") | null;
speedProgression?: number[];
modeParameters?: StepParameter[];
optional?: boolean | null;
condition?: string | null;
requiresConfirmation?: boolean | null;
dependsOnStepIds?: string[];
repetitions?: number | null;
repetitionRange?: StepRange | null;
reviews?: StepReview[];
}
export interface StepAccessory {
name: string;
state: "installed" | "removed" | "unknown" | "conditional" | "open" | "closed";
}
export interface StepRange {
minimum?: number | null;
maximum?: number | null;
}
export interface StepParameter {
name: string;
kind?: "text" | "number" | "boolean" | "range";
value?: number | string | boolean | null;
unit?: string | null;
minimum?: number | null;
maximum?: number | null;
}
export interface StepReview {
id?: string;
category: "ingredient" | "operation" | "schema" | "unsupported";
source?: string;
reason?: string;
candidateIngredientIds?: string[];
status?: "unresolved" | "resolved";
resolution?: string | null;
approvedContent?: string | null;
history?: StepReviewEvent[];
}
export interface StepReviewEvent {
at: string;
status: "unresolved" | "resolved";
resolution?: string | null;
content: string;
}
export interface RecipeAsset {
name: string;