@platfformx/proto-contracts 1.2.2 → 1.2.3

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.
@@ -6,8 +6,7 @@ export interface CreateProductRequest {
6
6
  price: number;
7
7
  images: string[];
8
8
  categoryId: string;
9
- quantity?: number | undefined;
10
- variants?: ProductVariant | undefined;
9
+ variants: ProductVariant | undefined;
11
10
  }
12
11
  export interface ProductVariant {
13
12
  quantity: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,11 +16,7 @@ message CreateProductRequest{
16
16
  double price = 3;
17
17
  repeated string images = 4;
18
18
  string category_id = 5;
19
-
20
- oneof stock {
21
- int32 quantity = 6;
22
- ProductVariant variants = 7;
23
- }
19
+ ProductVariant variants = 6;
24
20
  }
25
21
 
26
22
  message ProductVariant {