@platfformx/proto-contracts 1.4.18 → 1.4.20
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.
|
@@ -18,9 +18,12 @@ export interface DeleteReviewResponse {
|
|
|
18
18
|
}
|
|
19
19
|
export interface GetUserReviewsRequest {
|
|
20
20
|
userId: string;
|
|
21
|
+
limit: number;
|
|
22
|
+
page: number;
|
|
21
23
|
}
|
|
22
24
|
export interface GetUserReviewsResponse {
|
|
23
25
|
reviews: Review[];
|
|
26
|
+
totalCount: number;
|
|
24
27
|
}
|
|
25
28
|
export interface GetProductReviewsRequest {
|
|
26
29
|
productId: string;
|
package/package.json
CHANGED
|
@@ -31,9 +31,13 @@ message DeleteReviewResponse {
|
|
|
31
31
|
|
|
32
32
|
message GetUserReviewsRequest {
|
|
33
33
|
string user_id = 1;
|
|
34
|
+
int32 limit = 2;
|
|
35
|
+
int32 page = 3;
|
|
34
36
|
}
|
|
37
|
+
|
|
35
38
|
message GetUserReviewsResponse {
|
|
36
39
|
repeated Review reviews = 1;
|
|
40
|
+
int64 total_count = 2;
|
|
37
41
|
}
|
|
38
42
|
message GetProductReviewsRequest {
|
|
39
43
|
string product_id = 1;
|
|
@@ -50,6 +54,6 @@ message Review {
|
|
|
50
54
|
string review_id = 2;
|
|
51
55
|
string product_id = 3;
|
|
52
56
|
optional string comment = 4;
|
|
53
|
-
|
|
57
|
+
float rating = 5;
|
|
54
58
|
string created_at = 6;
|
|
55
59
|
}
|