Replace entire repo content with shahikitchen-v1-prodcution.zip (v1.1 production)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
export type MenuPricingMode = 'standard' | 'weight';
|
||||
|
||||
export interface MenuItem {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
price: number;
|
||||
image?: string;
|
||||
video?: string;
|
||||
isVegetarian?: boolean;
|
||||
/** Weight-based sweets: 90 kr / ½ kg, 179 kr / kg (kulfi stays standard). */
|
||||
pricing?: MenuPricingMode;
|
||||
pricePerHalfKg?: number;
|
||||
pricePerKg?: number;
|
||||
}
|
||||
|
||||
export interface MenuCategory {
|
||||
id: string;
|
||||
name: string;
|
||||
items: MenuItem[];
|
||||
}
|
||||
|
||||
export interface MenuFilter {
|
||||
categoryId?: string;
|
||||
searchQuery?: string;
|
||||
vegetarianOnly?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { MenuCategory, MenuItem } from './entities';
|
||||
|
||||
/** Port: menu data access (implemented by infrastructure). */
|
||||
export interface MenuRepository {
|
||||
getCategories(): MenuCategory[];
|
||||
getAllItems(): MenuItem[];
|
||||
findItemById(id: string): MenuItem | undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user