2023-06-19 00:32:51 +02:00
|
|
|
export type RecipeModelType = {
|
|
|
|
_id: string;
|
|
|
|
short_name: string;
|
|
|
|
name: string;
|
|
|
|
category: string;
|
|
|
|
icon: string;
|
|
|
|
dateCreated: Date;
|
|
|
|
dateModified: Date;
|
|
|
|
images?: [{
|
|
|
|
mediapath: string;
|
|
|
|
alt: string;
|
|
|
|
caption?: string
|
|
|
|
}];
|
|
|
|
description: string;
|
|
|
|
tags: [string];
|
|
|
|
season: [number];
|
|
|
|
baking?: {
|
|
|
|
temperature: string;
|
|
|
|
length: string;
|
|
|
|
mode: string;
|
|
|
|
}
|
|
|
|
preparation?: string;
|
|
|
|
fermentation?:{
|
|
|
|
bulk: string;
|
2023-06-27 19:01:06 +02:00
|
|
|
final: string;
|
2023-06-19 00:32:51 +02:00
|
|
|
}
|
|
|
|
portions?: string;
|
2023-06-27 19:01:06 +02:00
|
|
|
cooking?: string;
|
2023-06-19 00:32:51 +02:00
|
|
|
total_time?: string;
|
|
|
|
ingredients?: [{
|
|
|
|
name?: string;
|
|
|
|
list: [{
|
|
|
|
name: string;
|
|
|
|
unit: string;
|
2023-06-21 19:50:27 +02:00
|
|
|
amount: string;
|
2023-06-19 00:32:51 +02:00
|
|
|
}]
|
|
|
|
}]
|
|
|
|
instructions?: [{
|
|
|
|
name?: string;
|
|
|
|
steps: [string]
|
|
|
|
}]
|
2023-06-24 15:31:10 +02:00
|
|
|
preamble?: String
|
2023-06-21 19:50:27 +02:00
|
|
|
addendum?: string
|
2023-06-19 00:32:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export type BriefRecipeType = {
|
|
|
|
_id: string;
|
|
|
|
short_name: string;
|
|
|
|
name: string;
|
|
|
|
category: string;
|
|
|
|
icon: string;
|
|
|
|
dateCreated: Date;
|
|
|
|
dateModified: Date;
|
|
|
|
images?: [{
|
|
|
|
mediapath: string;
|
|
|
|
alt: string;
|
|
|
|
caption?: string;
|
|
|
|
}]
|
|
|
|
description: string;
|
|
|
|
tags: [string];
|
|
|
|
season: [number];
|
|
|
|
}
|