feat: Add label notifier (#5879)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Craig Matear
2025-08-10 02:43:23 +01:00
committed by GitHub
parent 9e46c57e78
commit d3436a5ca8
29 changed files with 281 additions and 153 deletions

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script
@@ -117,6 +116,7 @@ export interface CustomPageBase {
export interface RecipeCategoryResponse {
name: string;
id: string;
groupId?: string | null;
slug: string;
recipes?: RecipeSummary[];
}
@@ -149,18 +149,21 @@ export interface RecipeSummary {
}
export interface RecipeCategory {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
[k: string]: unknown;
}
export interface RecipeTag {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
[k: string]: unknown;
}
export interface RecipeTool {
id: string;
groupId?: string | null;
name: string;
slug: string;
householdsWithTool?: string[];

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script
@@ -39,7 +38,6 @@ export interface QueryFilterJSONPart {
attributeName?: string | null;
relationalOperator?: RelationalKeyword | RelationalOperator | null;
value?: string | string[] | null;
[k: string]: unknown;
}
export interface RecipeCookBook {
name: string;
@@ -83,18 +81,21 @@ export interface RecipeSummary {
}
export interface RecipeCategory {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
[k: string]: unknown;
}
export interface RecipeTag {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
[k: string]: unknown;
}
export interface RecipeTool {
id: string;
groupId?: string | null;
name: string;
slug: string;
householdsWithTool?: string[];

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script
@@ -70,6 +69,9 @@ export interface GroupEventNotifierOptions {
categoryCreated?: boolean;
categoryUpdated?: boolean;
categoryDeleted?: boolean;
labelCreated?: boolean;
labelUpdated?: boolean;
labelDeleted?: boolean;
}
export interface GroupEventNotifierOptionsOut {
testMessage?: boolean;
@@ -94,6 +96,9 @@ export interface GroupEventNotifierOptionsOut {
categoryCreated?: boolean;
categoryUpdated?: boolean;
categoryDeleted?: boolean;
labelCreated?: boolean;
labelUpdated?: boolean;
labelDeleted?: boolean;
id: string;
}
export interface GroupEventNotifierOptionsSave {
@@ -119,6 +124,9 @@ export interface GroupEventNotifierOptionsSave {
categoryCreated?: boolean;
categoryUpdated?: boolean;
categoryDeleted?: boolean;
labelCreated?: boolean;
labelUpdated?: boolean;
labelDeleted?: boolean;
notifierId: string;
}
export interface GroupEventNotifierOut {
@@ -166,6 +174,7 @@ export interface GroupRecipeActionOut {
export interface GroupRecipeActionPayload {
action: GroupRecipeActionOut;
content: unknown;
recipeScale: number;
}
export interface HouseholdCreate {
groupId?: string | null;
@@ -587,18 +596,21 @@ export interface RecipeSummary {
}
export interface RecipeCategory {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
[k: string]: unknown;
}
export interface RecipeTag {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
[k: string]: unknown;
}
export interface RecipeTool {
id: string;
groupId?: string | null;
name: string;
slug: string;
householdsWithTool?: string[];

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script

View File

@@ -1,12 +1,9 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script
*/
import type { HouseholdSummary } from "./household";
export type PlanEntryType = "breakfast" | "lunch" | "dinner" | "side";
export type PlanRulesDay = "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday" | "unset";
export type PlanRulesType = "breakfast" | "lunch" | "dinner" | "side" | "unset";
@@ -44,9 +41,6 @@ export interface PlanRulesOut {
householdId: string;
id: string;
queryFilter?: QueryFilterJSON;
categories?: RecipeCategory[];
tags?: RecipeTag[];
households?: HouseholdSummary[];
}
export interface QueryFilterJSON {
parts?: QueryFilterJSONPart[];
@@ -108,18 +102,21 @@ export interface RecipeSummary {
}
export interface RecipeCategory {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
[k: string]: unknown;
}
export interface RecipeTag {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
[k: string]: unknown;
}
export interface RecipeTool {
id: string;
groupId?: string | null;
name: string;
slug: string;
householdsWithTool?: string[];

View File

@@ -19,6 +19,7 @@ export interface AssignCategories {
export interface CategoryBase {
name: string;
id: string;
groupId?: string | null;
slug: string;
}
export interface AssignSettings {
@@ -40,6 +41,7 @@ export interface AssignTags {
export interface TagBase {
name: string;
id: string;
groupId?: string | null;
slug: string;
}
export interface CategoryIn {
@@ -48,8 +50,8 @@ export interface CategoryIn {
export interface CategoryOut {
name: string;
id: string;
slug: string;
groupId: string;
slug: string;
}
export interface CategorySave {
name: string;
@@ -97,11 +99,13 @@ export interface CreateRecipeBulk {
}
export interface RecipeCategory {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
}
export interface RecipeTag {
id?: string | null;
groupId?: string | null;
name: string;
slug: string;
}
@@ -223,7 +227,7 @@ export interface Recipe {
groupId?: string;
name?: string | null;
slug?: string;
image?: string;
image?: unknown;
recipeServings?: number;
recipeYieldQuantity?: number;
recipeYield?: string | null;
@@ -255,6 +259,7 @@ export interface Recipe {
}
export interface RecipeTool {
id: string;
groupId?: string | null;
name: string;
slug: string;
householdsWithTool?: string[];
@@ -293,6 +298,7 @@ export interface UserBase {
export interface RecipeCategoryResponse {
name: string;
id: string;
groupId?: string | null;
slug: string;
recipes?: RecipeSummary[];
}
@@ -399,6 +405,7 @@ export interface RecipeSuggestionResponseItem {
export interface RecipeTagResponse {
name: string;
id: string;
groupId?: string | null;
slug: string;
recipes?: RecipeSummary[];
}
@@ -447,12 +454,14 @@ export interface RecipeToolOut {
name: string;
householdsWithTool?: string[];
id: string;
groupId: string;
slug: string;
}
export interface RecipeToolResponse {
name: string;
householdsWithTool?: string[];
id: string;
groupId: string;
slug: string;
recipes?: RecipeSummary[];
}
@@ -507,7 +516,7 @@ export interface ScrapeRecipeTest {
url: string;
useOpenAI?: boolean;
}
export interface SlugResponse { }
export interface SlugResponse {}
export interface TagIn {
name: string;
}

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script

View File

@@ -1,5 +1,4 @@
/* tslint:disable */
/**
/* This file was automatically generated from pydantic models by running pydantic2ts.
/* Do not modify it by hand - just update the pydantic models and then re-run the script
@@ -63,6 +62,7 @@ export interface GroupInDB {
export interface CategoryBase {
name: string;
id: string;
groupId?: string | null;
slug: string;
}
export interface ReadWebhook {
@@ -197,7 +197,6 @@ export interface UserBase {
canManage?: boolean;
canManageHousehold?: boolean;
canOrganize?: boolean;
advancedOptions?: boolean;
}
export interface UserIn {
id?: string | null;