@mamindom/contracts 1.0.93 → 1.0.95

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.
@@ -91,6 +91,8 @@ export interface ProductListItemResponse {
91
91
  isPopular: boolean;
92
92
  groupId?: string | undefined;
93
93
  colorHex?: string | undefined;
94
+ rating: number;
95
+ reviewCount: number;
94
96
  }
95
97
  export interface ProductListItemResponse_NameEntry {
96
98
  key: string;
@@ -149,6 +151,9 @@ export interface ProductDetailResponse {
149
151
  };
150
152
  colorHex?: string | undefined;
151
153
  groupSiblings: ProductGroupMember[];
154
+ rating: number;
155
+ reviewCount: number;
156
+ manualRating?: number | undefined;
152
157
  }
153
158
  export interface ProductDetailResponse_NameEntry {
154
159
  key: string;
@@ -394,6 +399,7 @@ export interface UpdateProductRequest {
394
399
  [key: string]: string;
395
400
  };
396
401
  colorHex?: string | undefined;
402
+ manualRating?: number | undefined;
397
403
  }
398
404
  export interface UpdateProductRequest_NameEntry {
399
405
  key: string;
@@ -155,6 +155,8 @@ message ProductListItemResponse {
155
155
  bool is_popular = 17;
156
156
  optional string group_id = 18;
157
157
  optional string color_hex = 19;
158
+ float rating = 20;
159
+ int32 review_count = 21;
158
160
  }
159
161
 
160
162
 
@@ -198,7 +200,10 @@ message ProductDetailResponse {
198
200
  optional string group_id = 31;
199
201
  map<string, string> color_label = 32;
200
202
  optional string color_hex = 33;
201
- repeated ProductGroupMember group_siblings = 34;
203
+ repeated ProductGroupMember group_siblings = 34;
204
+ float rating = 35;
205
+ int32 review_count = 36;
206
+ optional float manual_rating = 37;
202
207
  }
203
208
 
204
209
 
@@ -353,6 +358,7 @@ message UpdateProductRequest {
353
358
  optional string group_id = 22;
354
359
  map<string, string> color_label = 23;
355
360
  optional string color_hex = 24;
361
+ optional float manual_rating = 25;
356
362
  }
357
363
 
358
364
  message DeleteProductRequest {
package/gen/product.ts CHANGED
@@ -111,6 +111,8 @@ export interface ProductListItemResponse {
111
111
  isPopular: boolean;
112
112
  groupId?: string | undefined;
113
113
  colorHex?: string | undefined;
114
+ rating: number;
115
+ reviewCount: number;
114
116
  }
115
117
 
116
118
  export interface ProductListItemResponse_NameEntry {
@@ -153,6 +155,9 @@ export interface ProductDetailResponse {
153
155
  colorLabel: { [key: string]: string };
154
156
  colorHex?: string | undefined;
155
157
  groupSiblings: ProductGroupMember[];
158
+ rating: number;
159
+ reviewCount: number;
160
+ manualRating?: number | undefined;
156
161
  }
157
162
 
158
163
  export interface ProductDetailResponse_NameEntry {
@@ -393,6 +398,7 @@ export interface UpdateProductRequest {
393
398
  groupId?: string | undefined;
394
399
  colorLabel: { [key: string]: string };
395
400
  colorHex?: string | undefined;
401
+ manualRating?: number | undefined;
396
402
  }
397
403
 
398
404
  export interface UpdateProductRequest_NameEntry {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.93",
4
+ "version": "1.0.95",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -155,6 +155,8 @@ message ProductListItemResponse {
155
155
  bool is_popular = 17;
156
156
  optional string group_id = 18;
157
157
  optional string color_hex = 19;
158
+ float rating = 20;
159
+ int32 review_count = 21;
158
160
  }
159
161
 
160
162
 
@@ -198,7 +200,10 @@ message ProductDetailResponse {
198
200
  optional string group_id = 31;
199
201
  map<string, string> color_label = 32;
200
202
  optional string color_hex = 33;
201
- repeated ProductGroupMember group_siblings = 34;
203
+ repeated ProductGroupMember group_siblings = 34;
204
+ float rating = 35;
205
+ int32 review_count = 36;
206
+ optional float manual_rating = 37;
202
207
  }
203
208
 
204
209
 
@@ -353,6 +358,7 @@ message UpdateProductRequest {
353
358
  optional string group_id = 22;
354
359
  map<string, string> color_label = 23;
355
360
  optional string color_hex = 24;
361
+ optional float manual_rating = 25;
356
362
  }
357
363
 
358
364
  message DeleteProductRequest {