@platfformx/proto-contracts 1.2.1 → 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.
|
@@ -5,8 +5,14 @@ export interface CreateProductRequest {
|
|
|
5
5
|
description?: string | undefined;
|
|
6
6
|
price: number;
|
|
7
7
|
images: string[];
|
|
8
|
-
stock: number;
|
|
9
8
|
categoryId: string;
|
|
9
|
+
variants: ProductVariant | undefined;
|
|
10
|
+
}
|
|
11
|
+
export interface ProductVariant {
|
|
12
|
+
quantity: number;
|
|
13
|
+
color?: string | undefined;
|
|
14
|
+
size?: string | undefined;
|
|
15
|
+
sku: string;
|
|
10
16
|
}
|
|
11
17
|
export interface GetProductRequest {
|
|
12
18
|
productId: string;
|
package/package.json
CHANGED
|
@@ -15,11 +15,16 @@ message CreateProductRequest{
|
|
|
15
15
|
optional string description = 2;
|
|
16
16
|
double price = 3;
|
|
17
17
|
repeated string images = 4;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
string category_id = 5;
|
|
19
|
+
ProductVariant variants = 6;
|
|
21
20
|
}
|
|
22
21
|
|
|
22
|
+
message ProductVariant {
|
|
23
|
+
int32 quantity = 1;
|
|
24
|
+
optional string color = 2;
|
|
25
|
+
optional string size = 3;
|
|
26
|
+
string sku = 4;
|
|
27
|
+
}
|
|
23
28
|
message GetProductRequest {
|
|
24
29
|
string product_id = 1;
|
|
25
30
|
}
|