@candesk/contracts 6.65.0 → 6.67.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/audit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: audit.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -42,6 +42,9 @@ export declare enum ProductSort {
42
42
  PRODUCT_SORT_THC_ASC = 4,
43
43
  PRODUCT_SORT_CBD_DESC = 5,
44
44
  PRODUCT_SORT_RATING = 6,
45
+ PRODUCT_SORT_PRICE_ASC = 7,
46
+ PRODUCT_SORT_PRICE_DESC = 8,
47
+ PRODUCT_SORT_AVAILABILITY = 9,
45
48
  UNRECOGNIZED = -1
46
49
  }
47
50
  export declare enum PotencyLevel {
@@ -146,6 +149,8 @@ export interface ProductFilter {
146
149
  cbdLevels: PotencyLevel[];
147
150
  price?: PriceRange | undefined;
148
151
  minRating?: number | undefined;
152
+ hideSoldOut?: boolean | undefined;
153
+ hideUnpriced?: boolean | undefined;
149
154
  }
150
155
  export interface ListProductsRequest {
151
156
  query?: string | undefined;
@@ -215,6 +220,8 @@ export interface GetProductFacetsResponse {
215
220
  cbdLevels: PotencyLevelFacet[];
216
221
  price?: PriceBounds | undefined;
217
222
  ratings: RatingFacet[];
223
+ soldOutCount: number;
224
+ unpricedCount: number;
218
225
  }
219
226
  export interface GetProductRequest {
220
227
  id: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: catalog.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -57,6 +57,9 @@ var ProductSort;
57
57
  ProductSort[ProductSort["PRODUCT_SORT_THC_ASC"] = 4] = "PRODUCT_SORT_THC_ASC";
58
58
  ProductSort[ProductSort["PRODUCT_SORT_CBD_DESC"] = 5] = "PRODUCT_SORT_CBD_DESC";
59
59
  ProductSort[ProductSort["PRODUCT_SORT_RATING"] = 6] = "PRODUCT_SORT_RATING";
60
+ ProductSort[ProductSort["PRODUCT_SORT_PRICE_ASC"] = 7] = "PRODUCT_SORT_PRICE_ASC";
61
+ ProductSort[ProductSort["PRODUCT_SORT_PRICE_DESC"] = 8] = "PRODUCT_SORT_PRICE_DESC";
62
+ ProductSort[ProductSort["PRODUCT_SORT_AVAILABILITY"] = 9] = "PRODUCT_SORT_AVAILABILITY";
60
63
  ProductSort[ProductSort["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
61
64
  })(ProductSort || (exports.ProductSort = ProductSort = {}));
62
65
  var PotencyLevel;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/kyc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: kyc.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/media.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: media.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: payment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -346,6 +346,28 @@ export interface RemoveCommentResponse {
346
346
  comment: Comment | undefined;
347
347
  review: Review | undefined;
348
348
  }
349
+ export interface ProductReview {
350
+ review: Review | undefined;
351
+ allCommentCount: number;
352
+ }
353
+ export interface ListProductReviewsRequest {
354
+ productId: string;
355
+ cursor?: string | undefined;
356
+ limit: number;
357
+ }
358
+ export interface ListProductReviewsResponse {
359
+ reviews: ProductReview[];
360
+ nextCursor?: string | undefined;
361
+ }
362
+ export interface ListReviewCommentsRequest {
363
+ reviewId: string;
364
+ cursor?: string | undefined;
365
+ limit: number;
366
+ }
367
+ export interface ListReviewCommentsResponse {
368
+ comments: Comment[];
369
+ nextCursor?: string | undefined;
370
+ }
349
371
  export interface ReviewService {
350
372
  getReviewSummary(request: GetReviewSummaryRequest): Promise<GetReviewSummaryResponse>;
351
373
  listReviews(request: ListReviewsRequest): Promise<ListReviewsResponse>;
@@ -377,5 +399,7 @@ export interface ReviewService {
377
399
  removeReview(request: RemoveReviewRequest): Promise<RemoveReviewResponse>;
378
400
  listUserComments(request: ListUserCommentsRequest): Promise<ListUserCommentsResponse>;
379
401
  removeComment(request: RemoveCommentRequest): Promise<RemoveCommentResponse>;
402
+ listProductReviews(request: ListProductReviewsRequest): Promise<ListProductReviewsResponse>;
403
+ listReviewComments(request: ListReviewCommentsRequest): Promise<ListReviewCommentsResponse>;
380
404
  getModerationCounts(request: GetModerationCountsRequest): Promise<GetModerationCountsResponse>;
381
405
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: review.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/staff.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: staff.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: treatment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/gen/user.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: user.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: audit.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -43,6 +43,9 @@ export declare enum ProductSort {
43
43
  PRODUCT_SORT_THC_ASC = 4,
44
44
  PRODUCT_SORT_CBD_DESC = 5,
45
45
  PRODUCT_SORT_RATING = 6,
46
+ PRODUCT_SORT_PRICE_ASC = 7,
47
+ PRODUCT_SORT_PRICE_DESC = 8,
48
+ PRODUCT_SORT_AVAILABILITY = 9,
46
49
  UNRECOGNIZED = -1
47
50
  }
48
51
  export declare enum PotencyLevel {
@@ -147,6 +150,8 @@ export interface ProductFilter {
147
150
  cbdLevels: PotencyLevel[];
148
151
  price?: PriceRange | undefined;
149
152
  minRating?: number | undefined;
153
+ hideSoldOut?: boolean | undefined;
154
+ hideUnpriced?: boolean | undefined;
150
155
  }
151
156
  export interface ListProductsRequest {
152
157
  query?: string | undefined;
@@ -216,6 +221,8 @@ export interface GetProductFacetsResponse {
216
221
  cbdLevels: PotencyLevelFacet[];
217
222
  price?: PriceBounds | undefined;
218
223
  ratings: RatingFacet[];
224
+ soldOutCount: number;
225
+ unpricedCount: number;
219
226
  }
220
227
  export interface GetProductRequest {
221
228
  id: string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: catalog.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -59,6 +59,9 @@ var ProductSort;
59
59
  ProductSort[ProductSort["PRODUCT_SORT_THC_ASC"] = 4] = "PRODUCT_SORT_THC_ASC";
60
60
  ProductSort[ProductSort["PRODUCT_SORT_CBD_DESC"] = 5] = "PRODUCT_SORT_CBD_DESC";
61
61
  ProductSort[ProductSort["PRODUCT_SORT_RATING"] = 6] = "PRODUCT_SORT_RATING";
62
+ ProductSort[ProductSort["PRODUCT_SORT_PRICE_ASC"] = 7] = "PRODUCT_SORT_PRICE_ASC";
63
+ ProductSort[ProductSort["PRODUCT_SORT_PRICE_DESC"] = 8] = "PRODUCT_SORT_PRICE_DESC";
64
+ ProductSort[ProductSort["PRODUCT_SORT_AVAILABILITY"] = 9] = "PRODUCT_SORT_AVAILABILITY";
62
65
  ProductSort[ProductSort["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
63
66
  })(ProductSort || (exports.ProductSort = ProductSort = {}));
64
67
  var PotencyLevel;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/empty.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/kyc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: kyc.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: media.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: notification.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: payment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -347,6 +347,28 @@ export interface RemoveCommentResponse {
347
347
  comment: Comment | undefined;
348
348
  review: Review | undefined;
349
349
  }
350
+ export interface ProductReview {
351
+ review: Review | undefined;
352
+ allCommentCount: number;
353
+ }
354
+ export interface ListProductReviewsRequest {
355
+ productId: string;
356
+ cursor?: string | undefined;
357
+ limit: number;
358
+ }
359
+ export interface ListProductReviewsResponse {
360
+ reviews: ProductReview[];
361
+ nextCursor?: string | undefined;
362
+ }
363
+ export interface ListReviewCommentsRequest {
364
+ reviewId: string;
365
+ cursor?: string | undefined;
366
+ limit: number;
367
+ }
368
+ export interface ListReviewCommentsResponse {
369
+ comments: Comment[];
370
+ nextCursor?: string | undefined;
371
+ }
350
372
  export declare const REVIEW_V1_PACKAGE_NAME = "review.v1";
351
373
  export interface ReviewServiceClient {
352
374
  getReviewSummary(request: GetReviewSummaryRequest): Observable<GetReviewSummaryResponse>;
@@ -379,6 +401,8 @@ export interface ReviewServiceClient {
379
401
  removeReview(request: RemoveReviewRequest): Observable<RemoveReviewResponse>;
380
402
  listUserComments(request: ListUserCommentsRequest): Observable<ListUserCommentsResponse>;
381
403
  removeComment(request: RemoveCommentRequest): Observable<RemoveCommentResponse>;
404
+ listProductReviews(request: ListProductReviewsRequest): Observable<ListProductReviewsResponse>;
405
+ listReviewComments(request: ListReviewCommentsRequest): Observable<ListReviewCommentsResponse>;
382
406
  getModerationCounts(request: GetModerationCountsRequest): Observable<GetModerationCountsResponse>;
383
407
  }
384
408
  export interface ReviewServiceController {
@@ -412,6 +436,8 @@ export interface ReviewServiceController {
412
436
  removeReview(request: RemoveReviewRequest): Promise<RemoveReviewResponse> | Observable<RemoveReviewResponse> | RemoveReviewResponse;
413
437
  listUserComments(request: ListUserCommentsRequest): Promise<ListUserCommentsResponse> | Observable<ListUserCommentsResponse> | ListUserCommentsResponse;
414
438
  removeComment(request: RemoveCommentRequest): Promise<RemoveCommentResponse> | Observable<RemoveCommentResponse> | RemoveCommentResponse;
439
+ listProductReviews(request: ListProductReviewsRequest): Promise<ListProductReviewsResponse> | Observable<ListProductReviewsResponse> | ListProductReviewsResponse;
440
+ listReviewComments(request: ListReviewCommentsRequest): Promise<ListReviewCommentsResponse> | Observable<ListReviewCommentsResponse> | ListReviewCommentsResponse;
415
441
  getModerationCounts(request: GetModerationCountsRequest): Promise<GetModerationCountsResponse> | Observable<GetModerationCountsResponse> | GetModerationCountsResponse;
416
442
  }
417
443
  export declare function ReviewServiceControllerMethods(): (constructor: Function) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: review.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -79,6 +79,8 @@ function ReviewServiceControllerMethods() {
79
79
  "removeReview",
80
80
  "listUserComments",
81
81
  "removeComment",
82
+ "listProductReviews",
83
+ "listReviewComments",
82
84
  "getModerationCounts",
83
85
  ];
84
86
  for (const method of grpcMethods) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: staff.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: treatment.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/nest/user.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.18.4
5
5
  // protoc v3.21.12
6
6
  // source: user.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candesk/contracts",
3
- "version": "6.65.0",
3
+ "version": "6.67.0",
4
4
  "description": "Protobuf contracts for CanDesk microservices",
5
5
  "author": {
6
6
  "name": "Alexander Schulz",
@@ -73,6 +73,9 @@ enum ProductSort {
73
73
  PRODUCT_SORT_THC_ASC = 4;
74
74
  PRODUCT_SORT_CBD_DESC = 5;
75
75
  PRODUCT_SORT_RATING = 6;
76
+ PRODUCT_SORT_PRICE_ASC = 7;
77
+ PRODUCT_SORT_PRICE_DESC = 8;
78
+ PRODUCT_SORT_AVAILABILITY = 9;
76
79
  }
77
80
 
78
81
  enum PotencyLevel {
@@ -184,6 +187,8 @@ message ProductFilter {
184
187
  repeated PotencyLevel cbd_levels = 9;
185
188
  optional PriceRange price = 10;
186
189
  optional int32 min_rating = 11;
190
+ optional bool hide_sold_out = 12;
191
+ optional bool hide_unpriced = 13;
187
192
  }
188
193
 
189
194
  message ListProductsRequest {
@@ -267,6 +272,8 @@ message GetProductFacetsResponse {
267
272
  repeated PotencyLevelFacet cbd_levels = 10;
268
273
  optional PriceBounds price = 11;
269
274
  repeated RatingFacet ratings = 12;
275
+ int32 sold_out_count = 13;
276
+ int32 unpriced_count = 14;
270
277
  }
271
278
 
272
279
  message GetProductRequest {
@@ -37,6 +37,8 @@ service ReviewService {
37
37
  rpc RemoveReview (RemoveReviewRequest) returns (RemoveReviewResponse);
38
38
  rpc ListUserComments (ListUserCommentsRequest) returns (ListUserCommentsResponse);
39
39
  rpc RemoveComment (RemoveCommentRequest) returns (RemoveCommentResponse);
40
+ rpc ListProductReviews (ListProductReviewsRequest) returns (ListProductReviewsResponse);
41
+ rpc ListReviewComments (ListReviewCommentsRequest) returns (ListReviewCommentsResponse);
40
42
  rpc GetModerationCounts (GetModerationCountsRequest) returns (GetModerationCountsResponse);
41
43
  }
42
44
 
@@ -453,3 +455,30 @@ message RemoveCommentResponse {
453
455
  Comment comment = 1;
454
456
  Review review = 2;
455
457
  }
458
+
459
+ message ProductReview {
460
+ Review review = 1;
461
+ int32 all_comment_count = 2;
462
+ }
463
+
464
+ message ListProductReviewsRequest {
465
+ string product_id = 1;
466
+ optional string cursor = 2;
467
+ int32 limit = 3;
468
+ }
469
+
470
+ message ListProductReviewsResponse {
471
+ repeated ProductReview reviews = 1;
472
+ optional string next_cursor = 2;
473
+ }
474
+
475
+ message ListReviewCommentsRequest {
476
+ string review_id = 1;
477
+ optional string cursor = 2;
478
+ int32 limit = 3;
479
+ }
480
+
481
+ message ListReviewCommentsResponse {
482
+ repeated Comment comments = 1;
483
+ optional string next_cursor = 2;
484
+ }