@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 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
- category: Category | undefined;
86
+ id: string;
87
+ title: string;
86
88
  products: Product[];
87
89
  }
88
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sakura-skytree/leaf-eats-contracts",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/",
@@ -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
- Category category = 1;
87
- repeated Product products = 2;
87
+ string id = 1;
88
+ string title = 2;
89
+ repeated Product products = 3;
88
90
  }