Recipe-app main

This commit is contained in:
2026-04-09 09:14:39 +02:00
commit 962f4e4be5
10015 changed files with 2445177 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
export type Product = {
id: number;
name: string;
normalizedName: string;
category: string | null;
canonicalName: string | null;
isActive: boolean;
deletedAt: string | null;
createdAt: string;
updatedAt: string;
};
export type InventoryItem = {
id: number;
productId: number;
quantity: string;
unit: string;
location: string | null;
priority: number | null;
purchaseDate: string | null;
opened: boolean | null;
shelfNote: string | null;
suitableFor: string | null;
isOnSale: boolean | null;
priceLevel: number | null;
bestBeforeDate: string | null;
brand: string | null;
proteinType: string | null;
isLeftover: boolean | null;
comment: string | null;
createdAt: string;
updatedAt: string;
product: Product;
};
export type MergePreviewProduct = Product & {
inventoryCount: number;
};
export type MergePreview = {
source: MergePreviewProduct;
target: MergePreviewProduct;
outcome: {
inventoryItemsToMove: number;
sourceWillBeSoftDeleted: boolean;
targetWillRemainActive: boolean;
};
};
export type InventoryConsumption = {
id: number;
inventoryItemId: number;
amountUsed: string;
comment: string | null;
createdAt: string;
};