@sakura-skytree/leaf-eats-contracts 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen/restaurant.ts +3 -1
- package/package.json +1 -1
- package/proto/restaurant.proto +4 -2
package/gen/restaurant.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface CreateMenuItemRequest {
|
|
|
47
47
|
imageUrl: string;
|
|
48
48
|
price: number;
|
|
49
49
|
description: string;
|
|
50
|
+
categoryId: string;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
export interface CreateMenuItemResponse {
|
|
@@ -82,7 +83,8 @@ export interface Product {
|
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
export interface CategoryItems {
|
|
85
|
-
|
|
86
|
+
id: string;
|
|
87
|
+
title: string;
|
|
86
88
|
products: Product[];
|
|
87
89
|
}
|
|
88
90
|
|
package/package.json
CHANGED
package/proto/restaurant.proto
CHANGED
|
@@ -51,6 +51,7 @@ message CreateMenuItemRequest {
|
|
|
51
51
|
string imageUrl = 2;
|
|
52
52
|
float price = 3;
|
|
53
53
|
string description = 4;
|
|
54
|
+
string category_id = 5;
|
|
54
55
|
}
|
|
55
56
|
message CreateMenuItemResponse {
|
|
56
57
|
Product product = 1;
|
|
@@ -83,6 +84,7 @@ message Product {
|
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
message CategoryItems {
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
string id = 1;
|
|
88
|
+
string title = 2;
|
|
89
|
+
repeated Product products = 3;
|
|
88
90
|
}
|