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