@mamindom/contracts 1.0.110 → 1.0.111
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/dist/gen/product.d.ts +1 -0
- package/dist/gen/product_review.d.ts +2 -0
- package/dist/gen/users.d.ts +1 -0
- package/dist/proto/product.proto +3 -2
- package/dist/proto/product_review.proto +9 -7
- package/dist/proto/users.proto +1 -0
- package/gen/product.ts +1 -0
- package/gen/product_review.ts +2 -0
- package/gen/users.ts +1 -0
- package/package.json +1 -1
- package/proto/product.proto +3 -2
- package/proto/product_review.proto +9 -7
- package/proto/users.proto +1 -0
package/dist/gen/product.d.ts
CHANGED
|
@@ -466,6 +466,7 @@ export interface DeleteProductVariantRequest {
|
|
|
466
466
|
export interface GetRelatedProductsRequest {
|
|
467
467
|
productId: string;
|
|
468
468
|
type?: RelatedProductType | undefined;
|
|
469
|
+
productSlug?: string | undefined;
|
|
469
470
|
}
|
|
470
471
|
export interface RelatedProductItem {
|
|
471
472
|
productId: string;
|
|
@@ -22,6 +22,7 @@ export interface GetReviewsRequest {
|
|
|
22
22
|
pagination: PaginationRequest | undefined;
|
|
23
23
|
productId?: string | undefined;
|
|
24
24
|
status?: ReviewStatus | undefined;
|
|
25
|
+
productSlug?: string | undefined;
|
|
25
26
|
}
|
|
26
27
|
export interface GetReviewsResponse {
|
|
27
28
|
items: ReviewResponse[];
|
|
@@ -33,6 +34,7 @@ export interface CreateReviewRequest {
|
|
|
33
34
|
authorEmail: string;
|
|
34
35
|
body: string;
|
|
35
36
|
rating: number;
|
|
37
|
+
productSlug?: string | undefined;
|
|
36
38
|
}
|
|
37
39
|
export interface ReviewIdRequest {
|
|
38
40
|
id: string;
|
package/dist/gen/users.d.ts
CHANGED
package/dist/proto/product.proto
CHANGED
|
@@ -425,8 +425,9 @@ enum RelatedProductType {
|
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
message GetRelatedProductsRequest {
|
|
428
|
-
string product_id
|
|
429
|
-
optional RelatedProductType type = 2;
|
|
428
|
+
string product_id = 1;
|
|
429
|
+
optional RelatedProductType type = 2;
|
|
430
|
+
optional string product_slug = 3;
|
|
430
431
|
}
|
|
431
432
|
|
|
432
433
|
message RelatedProductItem {
|
|
@@ -36,8 +36,9 @@ message ReviewResponse {
|
|
|
36
36
|
|
|
37
37
|
message GetReviewsRequest {
|
|
38
38
|
PaginationRequest pagination = 1;
|
|
39
|
-
optional string product_id
|
|
40
|
-
optional ReviewStatus status
|
|
39
|
+
optional string product_id = 2;
|
|
40
|
+
optional ReviewStatus status = 3;
|
|
41
|
+
optional string product_slug = 4;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
message GetReviewsResponse {
|
|
@@ -47,11 +48,12 @@ message GetReviewsResponse {
|
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
message CreateReviewRequest {
|
|
50
|
-
string product_id
|
|
51
|
-
string author_name
|
|
52
|
-
string author_email
|
|
53
|
-
string body
|
|
54
|
-
int32 rating
|
|
51
|
+
string product_id = 1;
|
|
52
|
+
string author_name = 2;
|
|
53
|
+
string author_email = 3;
|
|
54
|
+
string body = 4;
|
|
55
|
+
int32 rating = 5;
|
|
56
|
+
optional string product_slug = 6;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
|
package/dist/proto/users.proto
CHANGED
package/gen/product.ts
CHANGED
package/gen/product_review.ts
CHANGED
|
@@ -34,6 +34,7 @@ export interface GetReviewsRequest {
|
|
|
34
34
|
pagination: PaginationRequest | undefined;
|
|
35
35
|
productId?: string | undefined;
|
|
36
36
|
status?: ReviewStatus | undefined;
|
|
37
|
+
productSlug?: string | undefined;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export interface GetReviewsResponse {
|
|
@@ -47,6 +48,7 @@ export interface CreateReviewRequest {
|
|
|
47
48
|
authorEmail: string;
|
|
48
49
|
body: string;
|
|
49
50
|
rating: number;
|
|
51
|
+
productSlug?: string | undefined;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export interface ReviewIdRequest {
|
package/gen/users.ts
CHANGED
package/package.json
CHANGED
package/proto/product.proto
CHANGED
|
@@ -425,8 +425,9 @@ enum RelatedProductType {
|
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
message GetRelatedProductsRequest {
|
|
428
|
-
string product_id
|
|
429
|
-
optional RelatedProductType type = 2;
|
|
428
|
+
string product_id = 1;
|
|
429
|
+
optional RelatedProductType type = 2;
|
|
430
|
+
optional string product_slug = 3;
|
|
430
431
|
}
|
|
431
432
|
|
|
432
433
|
message RelatedProductItem {
|
|
@@ -36,8 +36,9 @@ message ReviewResponse {
|
|
|
36
36
|
|
|
37
37
|
message GetReviewsRequest {
|
|
38
38
|
PaginationRequest pagination = 1;
|
|
39
|
-
optional string product_id
|
|
40
|
-
optional ReviewStatus status
|
|
39
|
+
optional string product_id = 2;
|
|
40
|
+
optional ReviewStatus status = 3;
|
|
41
|
+
optional string product_slug = 4;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
message GetReviewsResponse {
|
|
@@ -47,11 +48,12 @@ message GetReviewsResponse {
|
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
message CreateReviewRequest {
|
|
50
|
-
string product_id
|
|
51
|
-
string author_name
|
|
52
|
-
string author_email
|
|
53
|
-
string body
|
|
54
|
-
int32 rating
|
|
51
|
+
string product_id = 1;
|
|
52
|
+
string author_name = 2;
|
|
53
|
+
string author_email = 3;
|
|
54
|
+
string body = 4;
|
|
55
|
+
int32 rating = 5;
|
|
56
|
+
optional string product_slug = 6;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
|