@aepstore-dev/contracts 1.21.0 → 1.22.0

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/activity.ts CHANGED
@@ -122,16 +122,20 @@ export interface ReportCategoryIdRequest {
122
122
  id: string;
123
123
  }
124
124
 
125
+ export interface ReviewUser {
126
+ id: string;
127
+ username: string;
128
+ avatarUrl: string;
129
+ }
130
+
125
131
  export interface Review {
126
132
  id: string;
127
133
  rating: number;
128
134
  text: string;
129
- userId: string;
130
135
  productId: string;
131
136
  createdAt: string;
132
137
  updatedAt: string;
133
- userUsername: string;
134
- userAvatarUrl: string;
138
+ user: ReviewUser | undefined;
135
139
  }
136
140
 
137
141
  export interface ReviewResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -146,16 +146,21 @@ message ReportCategoryIdRequest {
146
146
  // Reviews
147
147
  // =================================================================
148
148
 
149
+ message ReviewUser {
150
+ string id = 1;
151
+ string username = 2;
152
+ string avatar_url = 3;
153
+ }
154
+
149
155
  message Review {
156
+ reserved 4, 8, 9; // retired flat user_id / user_username / user_avatar_url
150
157
  string id = 1;
151
158
  int32 rating = 2;
152
159
  string text = 3;
153
- string user_id = 4;
154
160
  string product_id = 5;
155
161
  string created_at = 6;
156
162
  string updated_at = 7;
157
- string user_username = 8;
158
- string user_avatar_url = 9;
163
+ ReviewUser user = 10;
159
164
  }
160
165
 
161
166
  message ReviewResponse {