@devline-smart-taxi/common 2.3.80 → 2.3.81

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.
@@ -65,6 +65,15 @@ service DriverService {
65
65
  // Mashina ma'lumotlarini yangilash
66
66
  rpc UpdateCarInfo (UpdateDriverCarInfoRequest) returns (common.SuccessResponseResult);
67
67
 
68
+ // Auth orqali qo'shimcha mashina qo'shish
69
+ rpc AddCar (CreateDriverCarRequest) returns (common.SuccessResponseResult);
70
+
71
+ // Qo'shimcha mashinani tasdiqlash
72
+ rpc ApproveCar (ApproveDriverCarRequest) returns (common.SuccessResponseResult);
73
+
74
+ // Qo'shimcha mashinani rad etish
75
+ rpc RejectCar (RejectDriverCarRequest) returns (common.SuccessResponseResult);
76
+
68
77
  // Haydovchilik guvohnomasini yangilash
69
78
  rpc UpdateDriverLicense (UpdateDriverLicenseRequest) returns (common.SuccessResponseResult);
70
79
 
@@ -239,6 +248,29 @@ message UpdateDriverCarInfoRequest {
239
248
  optional string carClassId = 9;
240
249
  }
241
250
 
251
+ message CreateDriverCarRequest {
252
+ string id = 1;
253
+ string carBrand = 2;
254
+ string carModel = 3;
255
+ string carNumber = 4;
256
+ string carColor = 5;
257
+ bool isOwner = 6;
258
+ string documentFrontId = 7;
259
+ string documentBackId = 8;
260
+ }
261
+
262
+ message ApproveDriverCarRequest {
263
+ string driverId = 1;
264
+ string carId = 2;
265
+ string carClassId = 3;
266
+ }
267
+
268
+ message RejectDriverCarRequest {
269
+ string driverId = 1;
270
+ string carId = 2;
271
+ string reason = 3;
272
+ }
273
+
242
274
  message UpdateDriverLicenseRequest {
243
275
  string id = 1;
244
276
  optional string licenseNumber = 2;
@@ -408,6 +440,8 @@ message DriverCarData {
408
440
  optional string carClassId = 10;
409
441
  optional string carClassName = 11;
410
442
  bool isActive = 12;
443
+ optional string approvalStatus = 13;
444
+ optional string remark = 14;
411
445
  }
412
446
 
413
447
  // Rasm (UsersImage) ma'lumotlari (short format)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devline-smart-taxi/common",
3
- "version": "2.3.80",
3
+ "version": "2.3.81",
4
4
  "description": "Reusable NestJS common library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",