@prodoctors/contracts 1.0.4 → 1.0.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.
- package/package.json +27 -27
- package/proto/inventory.proto +4 -1
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@prodoctors/contracts",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Protobuf definitions and generated Typescript types for ProDoctors",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc -p tsconfig.build.json",
|
|
9
|
-
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
10
|
-
},
|
|
11
|
-
"files": [
|
|
12
|
-
"proto",
|
|
13
|
-
"gen",
|
|
14
|
-
"dist"
|
|
15
|
-
],
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@nestjs/microservices": "^11.1.15",
|
|
21
|
-
"rxjs": "^7.8.2",
|
|
22
|
-
"ts-proto": "^2.11.4"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@types/node": "^25.3.5",
|
|
26
|
-
"typescript": "^5.9.3"
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@prodoctors/contracts",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Protobuf definitions and generated Typescript types for ProDoctors",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc -p tsconfig.build.json",
|
|
9
|
+
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"proto",
|
|
13
|
+
"gen",
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@nestjs/microservices": "^11.1.15",
|
|
21
|
+
"rxjs": "^7.8.2",
|
|
22
|
+
"ts-proto": "^2.11.4"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/node": "^25.3.5",
|
|
26
|
+
"typescript": "^5.9.3"
|
|
27
|
+
}
|
|
28
28
|
}
|
package/proto/inventory.proto
CHANGED
|
@@ -84,6 +84,7 @@ message Product {
|
|
|
84
84
|
optional catalog.v1.Manufacturer manufacturer = 20;
|
|
85
85
|
google.protobuf.Timestamp created_at = 21;
|
|
86
86
|
google.protobuf.Timestamp updated_at = 22;
|
|
87
|
+
optional string image_url = 23;
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
message ProductBarcode {
|
|
@@ -147,6 +148,7 @@ message CreateProductRequest {
|
|
|
147
148
|
optional string manufacturer_id = 13;
|
|
148
149
|
string price = 14;
|
|
149
150
|
optional string cost_price = 15;
|
|
151
|
+
optional string image_url = 16;
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
message UpdateProductRequest {
|
|
@@ -166,6 +168,7 @@ message UpdateProductRequest {
|
|
|
166
168
|
optional string manufacturer_id = 14;
|
|
167
169
|
optional string price = 15;
|
|
168
170
|
optional string cost_price = 16;
|
|
171
|
+
optional string image_url = 17;
|
|
169
172
|
}
|
|
170
173
|
|
|
171
174
|
message ListProductsRequest {
|
|
@@ -299,4 +302,4 @@ service StockMovementService {
|
|
|
299
302
|
rpc CreateStockMovement(CreateStockMovementRequest) returns (StockMovement);
|
|
300
303
|
rpc GetStockMovementById(common.v1.IdRequest) returns (StockMovement);
|
|
301
304
|
rpc ListStockMovements(ListStockMovementsRequest) returns (ListStockMovementsResponse);
|
|
302
|
-
}
|
|
305
|
+
}
|