@sagebox-be/proto-contracts 1.0.15 → 1.0.16
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/interfaces/sagebox.d.ts +37 -0
- package/dist/interfaces/sagebox.js +364 -7
- package/dist/types/sagebox.d.ts +48 -0
- package/dist/types/sagebox.js +581 -7
- package/package.json +1 -1
- package/proto/sagebox.proto +38 -2
package/proto/sagebox.proto
CHANGED
|
@@ -9,6 +9,7 @@ service ProductService {
|
|
|
9
9
|
rpc GetProductsByCategoryId(GetProductsByCategoryIdRequest) returns (GetProductsResponse);
|
|
10
10
|
rpc GetProductById(GetProductByIdRequest) returns (ProductResponse);
|
|
11
11
|
rpc CreateProduct(CreateProductRequest) returns (ProductResponse);
|
|
12
|
+
rpc UpdateSku(UpdateSkuRequest) returns (SkuResponse);
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
// ============================================
|
|
@@ -52,6 +53,17 @@ message CreateProductRequest {
|
|
|
52
53
|
repeated ProductSkuInput skus = 8;
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
message UpdateSkuRequest {
|
|
57
|
+
string id = 1;
|
|
58
|
+
optional int32 price = 2;
|
|
59
|
+
optional int32 width = 3;
|
|
60
|
+
optional int32 height = 4;
|
|
61
|
+
optional int32 length = 5;
|
|
62
|
+
optional int32 weight = 6;
|
|
63
|
+
repeated string mediaKeys = 7;
|
|
64
|
+
repeated AttributeValueInput attributeValues = 8;
|
|
65
|
+
}
|
|
66
|
+
|
|
55
67
|
// ============================================
|
|
56
68
|
// Product Response Messages
|
|
57
69
|
// ============================================
|
|
@@ -64,6 +76,11 @@ message ProductResponse {
|
|
|
64
76
|
string error = 2;
|
|
65
77
|
}
|
|
66
78
|
|
|
79
|
+
message SkuResponse {
|
|
80
|
+
Sku sku = 1;
|
|
81
|
+
string error = 2;
|
|
82
|
+
}
|
|
83
|
+
|
|
67
84
|
// ============================================
|
|
68
85
|
// Address Request Messages
|
|
69
86
|
// ============================================
|
|
@@ -111,6 +128,21 @@ message Product {
|
|
|
111
128
|
string updatedAt = 13;
|
|
112
129
|
}
|
|
113
130
|
|
|
131
|
+
message Sku {
|
|
132
|
+
string id = 1;
|
|
133
|
+
string skuNo = 2;
|
|
134
|
+
string productId = 3;
|
|
135
|
+
int64 price = 4;
|
|
136
|
+
int32 width = 5;
|
|
137
|
+
int32 height = 6;
|
|
138
|
+
int32 length = 7;
|
|
139
|
+
int32 weight = 8;
|
|
140
|
+
repeated Media media = 9;
|
|
141
|
+
bool inactive = 10;
|
|
142
|
+
string createdAt = 11;
|
|
143
|
+
string updatedAt = 12;
|
|
144
|
+
}
|
|
145
|
+
|
|
114
146
|
message Media {
|
|
115
147
|
string id = 1;
|
|
116
148
|
string key = 2;
|
|
@@ -123,9 +155,13 @@ message Media {
|
|
|
123
155
|
message ProductSkuInput {
|
|
124
156
|
int32 price = 1;
|
|
125
157
|
int32 quantity = 2;
|
|
158
|
+
int32 width = 3;
|
|
159
|
+
int32 height = 4;
|
|
160
|
+
int32 length = 5;
|
|
126
161
|
string warehouseId = 6;
|
|
127
|
-
|
|
128
|
-
repeated
|
|
162
|
+
int32 weight = 7;
|
|
163
|
+
repeated string mediaKeys = 8;
|
|
164
|
+
repeated AttributeValueInput attributeValues = 9;
|
|
129
165
|
}
|
|
130
166
|
|
|
131
167
|
message AttributeValueInput {
|