@mamindom/contracts 1.0.111 → 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.
@@ -464,7 +464,7 @@ export interface DeleteProductVariantRequest {
464
464
  id: string;
465
465
  }
466
466
  export interface GetRelatedProductsRequest {
467
- productId: string;
467
+ productId?: string | undefined;
468
468
  type?: RelatedProductType | undefined;
469
469
  productSlug?: string | undefined;
470
470
  }
@@ -29,7 +29,7 @@ export interface GetReviewsResponse {
29
29
  meta: PaginationMeta | undefined;
30
30
  }
31
31
  export interface CreateReviewRequest {
32
- productId: string;
32
+ productId?: string | undefined;
33
33
  authorName: string;
34
34
  authorEmail: string;
35
35
  body: string;
@@ -425,9 +425,9 @@ enum RelatedProductType {
425
425
  }
426
426
 
427
427
  message GetRelatedProductsRequest {
428
- string product_id = 1;
428
+ optional string product_id = 1;
429
429
  optional RelatedProductType type = 2;
430
- optional string product_slug = 3;
430
+ optional string product_slug = 3;
431
431
  }
432
432
 
433
433
  message RelatedProductItem {
@@ -48,11 +48,11 @@ message GetReviewsResponse {
48
48
 
49
49
 
50
50
  message CreateReviewRequest {
51
- string product_id = 1;
52
- string author_name = 2;
53
- string author_email = 3;
54
- string body = 4;
55
- int32 rating = 5;
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
56
  optional string product_slug = 6;
57
57
  }
58
58
 
package/gen/product.ts CHANGED
@@ -479,7 +479,7 @@ export interface DeleteProductVariantRequest {
479
479
  }
480
480
 
481
481
  export interface GetRelatedProductsRequest {
482
- productId: string;
482
+ productId?: string | undefined;
483
483
  type?: RelatedProductType | undefined;
484
484
  productSlug?: string | undefined;
485
485
  }
@@ -43,7 +43,7 @@ export interface GetReviewsResponse {
43
43
  }
44
44
 
45
45
  export interface CreateReviewRequest {
46
- productId: string;
46
+ productId?: string | undefined;
47
47
  authorName: string;
48
48
  authorEmail: string;
49
49
  body: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.111",
4
+ "version": "1.0.112",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -425,9 +425,9 @@ enum RelatedProductType {
425
425
  }
426
426
 
427
427
  message GetRelatedProductsRequest {
428
- string product_id = 1;
428
+ optional string product_id = 1;
429
429
  optional RelatedProductType type = 2;
430
- optional string product_slug = 3;
430
+ optional string product_slug = 3;
431
431
  }
432
432
 
433
433
  message RelatedProductItem {
@@ -48,11 +48,11 @@ message GetReviewsResponse {
48
48
 
49
49
 
50
50
  message CreateReviewRequest {
51
- string product_id = 1;
52
- string author_name = 2;
53
- string author_email = 3;
54
- string body = 4;
55
- int32 rating = 5;
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
56
  optional string product_slug = 6;
57
57
  }
58
58