mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
feat: support require_all property for cookbooks (#1130)
* add direction prop for icon position * add support for require_all properties on cookbook * update type annotations * add and - or filter support * update cookbook API * generate types * implement editor for additional options * update version number
This commit is contained in:
parent
c988de1921
commit
10784b6e24
12 changed files with 129 additions and 13 deletions
|
@ -19,6 +19,9 @@ export interface CreateCookBook {
|
|||
categories?: CategoryBase[];
|
||||
tags?: TagBase[];
|
||||
tools?: RecipeTool[];
|
||||
requireAllCategories?: boolean;
|
||||
requireAllTags?: boolean;
|
||||
requireAllTools?: boolean;
|
||||
}
|
||||
export interface TagBase {
|
||||
name: string;
|
||||
|
@ -40,6 +43,9 @@ export interface ReadCookBook {
|
|||
categories?: CategoryBase[];
|
||||
tags?: TagBase[];
|
||||
tools?: RecipeTool[];
|
||||
requireAllCategories?: boolean;
|
||||
requireAllTags?: boolean;
|
||||
requireAllTools?: boolean;
|
||||
groupId: string;
|
||||
id: string;
|
||||
}
|
||||
|
@ -52,6 +58,9 @@ export interface RecipeCookBook {
|
|||
categories?: CategoryBase[];
|
||||
tags?: TagBase[];
|
||||
tools?: RecipeTool[];
|
||||
requireAllCategories?: boolean;
|
||||
requireAllTags?: boolean;
|
||||
requireAllTools?: boolean;
|
||||
groupId: string;
|
||||
id: string;
|
||||
recipes: RecipeSummary[];
|
||||
|
@ -138,6 +147,9 @@ export interface SaveCookBook {
|
|||
categories?: CategoryBase[];
|
||||
tags?: TagBase[];
|
||||
tools?: RecipeTool[];
|
||||
requireAllCategories?: boolean;
|
||||
requireAllTags?: boolean;
|
||||
requireAllTools?: boolean;
|
||||
groupId: string;
|
||||
}
|
||||
export interface UpdateCookBook {
|
||||
|
@ -149,6 +161,9 @@ export interface UpdateCookBook {
|
|||
categories?: CategoryBase[];
|
||||
tags?: TagBase[];
|
||||
tools?: RecipeTool[];
|
||||
requireAllCategories?: boolean;
|
||||
requireAllTags?: boolean;
|
||||
requireAllTools?: boolean;
|
||||
groupId: string;
|
||||
id: string;
|
||||
}
|
||||
|
|
|
@ -229,7 +229,7 @@ export interface RecipeCommentOut {
|
|||
user: UserBase;
|
||||
}
|
||||
export interface UserBase {
|
||||
id: number;
|
||||
id: string;
|
||||
username?: string;
|
||||
admin: boolean;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue