@sagebox-be/proto-contracts 1.0.14 → 1.0.15
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 +63 -5
- package/dist/interfaces/sagebox.js +239 -37
- package/dist/types/sagebox.d.ts +119 -5
- package/dist/types/sagebox.js +402 -59
- package/package.json +1 -1
- package/proto/sagebox.proto +41 -5
package/proto/sagebox.proto
CHANGED
|
@@ -20,6 +20,17 @@ service AddressService {
|
|
|
20
20
|
rpc GetWards(GetWardsRequest) returns (GetWardsResponse);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
// ============================================
|
|
24
|
+
// Outbox Service
|
|
25
|
+
// ============================================
|
|
26
|
+
service ProductOutboxService {
|
|
27
|
+
rpc PublishProductOutbox(PublishOutboxRequest) returns (PublishOutboxResponse);
|
|
28
|
+
rpc RetryProductOutbox(RetryOutboxRequest) returns (RetryOutboxResponse);
|
|
29
|
+
rpc PublishInventoryOutbox(PublishOutboxRequest) returns (PublishOutboxResponse);
|
|
30
|
+
rpc RetryInventoryOutbox(RetryOutboxRequest) returns (RetryOutboxResponse);
|
|
31
|
+
rpc RetryElasticsearchSync(RetryEsRequest) returns (RetryEsResponse);
|
|
32
|
+
}
|
|
33
|
+
|
|
23
34
|
// ============================================
|
|
24
35
|
// Product Request Messages
|
|
25
36
|
// ============================================
|
|
@@ -33,10 +44,9 @@ message GetProductByIdRequest {
|
|
|
33
44
|
|
|
34
45
|
message CreateProductRequest {
|
|
35
46
|
string name = 1;
|
|
36
|
-
string
|
|
47
|
+
optional string brandId = 2;
|
|
37
48
|
string description = 3;
|
|
38
49
|
string categoryId = 4;
|
|
39
|
-
string storeId = 5;
|
|
40
50
|
string status = 6;
|
|
41
51
|
repeated string mediaKeys = 7;
|
|
42
52
|
repeated ProductSkuInput skus = 8;
|
|
@@ -89,11 +99,10 @@ message GetWardsResponse {
|
|
|
89
99
|
message Product {
|
|
90
100
|
string id = 1;
|
|
91
101
|
string name = 2;
|
|
92
|
-
string
|
|
102
|
+
optional string brandId = 3;
|
|
93
103
|
string description = 4;
|
|
94
104
|
string keywords = 5;
|
|
95
105
|
string categoryId = 6;
|
|
96
|
-
string storeId = 7;
|
|
97
106
|
int32 viewedCount = 8;
|
|
98
107
|
string status = 9;
|
|
99
108
|
string url = 10;
|
|
@@ -114,7 +123,7 @@ message Media {
|
|
|
114
123
|
message ProductSkuInput {
|
|
115
124
|
int32 price = 1;
|
|
116
125
|
int32 quantity = 2;
|
|
117
|
-
|
|
126
|
+
string warehouseId = 6;
|
|
118
127
|
repeated string mediaKeys = 4;
|
|
119
128
|
repeated AttributeValueInput attributeValues = 5;
|
|
120
129
|
}
|
|
@@ -132,3 +141,30 @@ message AddressUnit {
|
|
|
132
141
|
string code = 1;
|
|
133
142
|
string name = 2;
|
|
134
143
|
}
|
|
144
|
+
|
|
145
|
+
// ============================================
|
|
146
|
+
// Outbox Request Messages
|
|
147
|
+
// ============================================
|
|
148
|
+
message PublishOutboxRequest {}
|
|
149
|
+
|
|
150
|
+
message RetryOutboxRequest {}
|
|
151
|
+
|
|
152
|
+
message RetryEsRequest {}
|
|
153
|
+
|
|
154
|
+
// ============================================
|
|
155
|
+
// Outbox Response Messages
|
|
156
|
+
// ============================================
|
|
157
|
+
message PublishOutboxResponse {
|
|
158
|
+
bool success = 1;
|
|
159
|
+
string error = 2;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
message RetryOutboxResponse {
|
|
163
|
+
bool success = 1;
|
|
164
|
+
string error = 2;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
message RetryEsResponse {
|
|
168
|
+
bool success = 1;
|
|
169
|
+
string error = 2;
|
|
170
|
+
}
|