@aepstore-dev/contracts 1.20.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 +7 -3
- package/gen/products.ts +2 -0
- package/package.json +1 -1
- package/proto/activity.proto +8 -3
- package/proto/products.proto +1 -0
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
|
-
|
|
134
|
-
userAvatarUrl: string;
|
|
138
|
+
user: ReviewUser | undefined;
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
export interface ReviewResponse {
|
package/gen/products.ts
CHANGED
|
@@ -109,6 +109,8 @@ export interface Product {
|
|
|
109
109
|
isViewed: boolean;
|
|
110
110
|
/** owner-only, current-month revenue (Decimal as string) */
|
|
111
111
|
revenue: string;
|
|
112
|
+
/** viewer has a COMPLETED purchase of this product */
|
|
113
|
+
isBuyed: boolean;
|
|
112
114
|
/** Popularity (populated by GetTopProduct / GetPopularProducts). */
|
|
113
115
|
popularityScore: string;
|
|
114
116
|
}
|
package/package.json
CHANGED
package/proto/activity.proto
CHANGED
|
@@ -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
|
-
|
|
158
|
-
string user_avatar_url = 9;
|
|
163
|
+
ReviewUser user = 10;
|
|
159
164
|
}
|
|
160
165
|
|
|
161
166
|
message ReviewResponse {
|
package/proto/products.proto
CHANGED
|
@@ -132,6 +132,7 @@ message Product {
|
|
|
132
132
|
bool is_favorite = 26;
|
|
133
133
|
bool is_viewed = 27;
|
|
134
134
|
string revenue = 28; // owner-only, current-month revenue (Decimal as string)
|
|
135
|
+
bool is_buyed = 30; // viewer has a COMPLETED purchase of this product
|
|
135
136
|
|
|
136
137
|
// Popularity (populated by GetTopProduct / GetPopularProducts).
|
|
137
138
|
string popularity_score = 29; // double as string
|