@mamindom/contracts 1.0.110 → 1.0.112
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 +2 -1
- package/dist/gen/product_review.d.ts +3 -1
- 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 +2 -1
- package/gen/product_review.ts +3 -1
- 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
|
@@ -464,8 +464,9 @@ export interface DeleteProductVariantRequest {
|
|
|
464
464
|
id: string;
|
|
465
465
|
}
|
|
466
466
|
export interface GetRelatedProductsRequest {
|
|
467
|
-
productId
|
|
467
|
+
productId?: string | undefined;
|
|
468
468
|
type?: RelatedProductType | undefined;
|
|
469
|
+
productSlug?: string | undefined;
|
|
469
470
|
}
|
|
470
471
|
export interface RelatedProductItem {
|
|
471
472
|
productId: string;
|
|
@@ -22,17 +22,19 @@ 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[];
|
|
28
29
|
meta: PaginationMeta | undefined;
|
|
29
30
|
}
|
|
30
31
|
export interface CreateReviewRequest {
|
|
31
|
-
productId
|
|
32
|
+
productId?: string | undefined;
|
|
32
33
|
authorName: string;
|
|
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
|
+
optional 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 = 1;
|
|
51
|
-
string author_name
|
|
52
|
-
string author_email
|
|
53
|
-
string body
|
|
54
|
-
int32 rating
|
|
51
|
+
optional 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
|
@@ -479,8 +479,9 @@ export interface DeleteProductVariantRequest {
|
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
export interface GetRelatedProductsRequest {
|
|
482
|
-
productId
|
|
482
|
+
productId?: string | undefined;
|
|
483
483
|
type?: RelatedProductType | undefined;
|
|
484
|
+
productSlug?: string | undefined;
|
|
484
485
|
}
|
|
485
486
|
|
|
486
487
|
export interface RelatedProductItem {
|
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 {
|
|
@@ -42,11 +43,12 @@ export interface GetReviewsResponse {
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
export interface CreateReviewRequest {
|
|
45
|
-
productId
|
|
46
|
+
productId?: string | undefined;
|
|
46
47
|
authorName: string;
|
|
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
|
+
optional 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 = 1;
|
|
51
|
-
string author_name
|
|
52
|
-
string author_email
|
|
53
|
-
string body
|
|
54
|
-
int32 rating
|
|
51
|
+
optional 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
|
|