Recipe-app main
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user