@prodoctors/contracts 1.11.0 → 1.12.0
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/gen/inventory.ts +17 -2
- package/package.json +1 -1
- package/proto/inventory.proto +19 -11
package/gen/inventory.ts
CHANGED
|
@@ -102,7 +102,18 @@ export interface Product {
|
|
|
102
102
|
unitsPerPackage: number;
|
|
103
103
|
allowFractionalSale: boolean;
|
|
104
104
|
taxMxikCode?: string | undefined;
|
|
105
|
-
taxPackageCode?:
|
|
105
|
+
taxPackageCode?:
|
|
106
|
+
| string
|
|
107
|
+
| undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Mavjudlik (faqat so'ralganda to'ldiriladi — masalan web katalog ro'yxati).
|
|
110
|
+
* offers_count = mahsulot mavjud bo'lgan dorixonalar soni; 0 bo'lsa sotuvda yo'q.
|
|
111
|
+
*/
|
|
112
|
+
offersCount?:
|
|
113
|
+
| number
|
|
114
|
+
| undefined;
|
|
115
|
+
/** Barcha dorixonalar bo'yicha jami mavjud miqdor (remaining - reserved). */
|
|
116
|
+
availableQuantity?: number | undefined;
|
|
106
117
|
}
|
|
107
118
|
|
|
108
119
|
export interface ProductBarcode {
|
|
@@ -212,7 +223,11 @@ export interface ListProductsRequest {
|
|
|
212
223
|
categoryId?: string | undefined;
|
|
213
224
|
internationalNameId?: string | undefined;
|
|
214
225
|
manufacturerId?: string | undefined;
|
|
215
|
-
status?:
|
|
226
|
+
status?:
|
|
227
|
+
| ProductStatus
|
|
228
|
+
| undefined;
|
|
229
|
+
/** Faqat biror dorixonada mavjud (remaining - reserved > 0) mahsulotlar. */
|
|
230
|
+
inStockOnly?: boolean | undefined;
|
|
216
231
|
}
|
|
217
232
|
|
|
218
233
|
export interface ListProductsResponse {
|
package/package.json
CHANGED
package/proto/inventory.proto
CHANGED
|
@@ -91,6 +91,12 @@ message Product {
|
|
|
91
91
|
bool allow_fractional_sale = 27;
|
|
92
92
|
optional string tax_mxik_code = 28;
|
|
93
93
|
optional string tax_package_code = 29;
|
|
94
|
+
|
|
95
|
+
// Mavjudlik (faqat so'ralganda to'ldiriladi — masalan web katalog ro'yxati).
|
|
96
|
+
// offers_count = mahsulot mavjud bo'lgan dorixonalar soni; 0 bo'lsa sotuvda yo'q.
|
|
97
|
+
optional int32 offers_count = 30;
|
|
98
|
+
// Barcha dorixonalar bo'yicha jami mavjud miqdor (remaining - reserved).
|
|
99
|
+
optional int32 available_quantity = 31;
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
message ProductBarcode {
|
|
@@ -112,19 +118,19 @@ message ProductBatch {
|
|
|
112
118
|
google.protobuf.Timestamp expiry_date = 5;
|
|
113
119
|
optional google.protobuf.Timestamp manufacture_date = 6;
|
|
114
120
|
string purchase_price = 7;
|
|
115
|
-
string selling_price = 8;
|
|
116
|
-
int32 initial_quantity = 9;
|
|
117
|
-
int32 remaining_quantity = 10;
|
|
118
|
-
BatchStatus status = 11;
|
|
119
|
-
optional string purchase_item_id = 12;
|
|
120
|
-
optional Product product = 13;
|
|
121
|
+
string selling_price = 8;
|
|
122
|
+
int32 initial_quantity = 9;
|
|
123
|
+
int32 remaining_quantity = 10;
|
|
124
|
+
BatchStatus status = 11;
|
|
125
|
+
optional string purchase_item_id = 12;
|
|
126
|
+
optional Product product = 13;
|
|
121
127
|
google.protobuf.Timestamp created_at = 14;
|
|
122
128
|
google.protobuf.Timestamp updated_at = 15;
|
|
123
|
-
int32 purchase_package_quantity = 16;
|
|
124
|
-
int32 units_per_package = 17;
|
|
125
|
-
optional string selling_price_per_base_unit = 18;
|
|
126
|
-
int32 reserved_quantity = 19;
|
|
127
|
-
}
|
|
129
|
+
int32 purchase_package_quantity = 16;
|
|
130
|
+
int32 units_per_package = 17;
|
|
131
|
+
optional string selling_price_per_base_unit = 18;
|
|
132
|
+
int32 reserved_quantity = 19;
|
|
133
|
+
}
|
|
128
134
|
|
|
129
135
|
message StockMovement {
|
|
130
136
|
string id = 1;
|
|
@@ -201,6 +207,8 @@ message ListProductsRequest {
|
|
|
201
207
|
optional string international_name_id = 5;
|
|
202
208
|
optional string manufacturer_id = 6;
|
|
203
209
|
optional ProductStatus status = 7;
|
|
210
|
+
// Faqat biror dorixonada mavjud (remaining - reserved > 0) mahsulotlar.
|
|
211
|
+
optional bool in_stock_only = 8;
|
|
204
212
|
}
|
|
205
213
|
|
|
206
214
|
message ListProductsResponse {
|