fix: cart connect to backend (#39)
Release package / release (push) Failing after 8m34s

Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com>
Reviewed-on: #39
This commit was merged in pull request #39.
This commit is contained in:
2026-05-13 08:56:58 +00:00
parent ae8134fd64
commit 877c7be84b
7 changed files with 183 additions and 288 deletions
+17 -2
View File
@@ -125,6 +125,7 @@ export interface MenuItemEntity {
export interface ShiftEntity {}
export interface EateryEntity {
id: string;
ownerId: string;
name: string;
menuItems: MenuItemEntity[];
@@ -150,10 +151,24 @@ export interface deleteMenuItemMutation {
export interface CartItemEntity {
productId: string;
quantity: number;
priceAtTimeOfAdding: number;
priceAtTimeOfAdding?: number;
}
export interface CartEntity {
Id: string;
items: CartItemEntity[];
}
totalAmount: number;
paymentQrUrl: string;
}
export interface getCartQuery {
getCart: CartEntity;
}
export interface createCartMutation {
createCart: string;
}
export interface addMenuItemMutation {
addItem: CartEntity;
}