@devline-smart-taxi/common 2.3.79 → 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.
- package/dist/proto/driver.proto +34 -0
- package/dist/proto/trip.proto +7 -5
- package/package.json +1 -1
package/dist/proto/driver.proto
CHANGED
|
@@ -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/dist/proto/trip.proto
CHANGED
|
@@ -142,9 +142,10 @@ message TripListItem {
|
|
|
142
142
|
optional float destinationLat = 11;
|
|
143
143
|
optional float destinationLng = 12;
|
|
144
144
|
// Mashina (faqat CLIENT uchun)
|
|
145
|
-
optional string carModel =
|
|
146
|
-
optional string carNumber =
|
|
147
|
-
optional string carColor =
|
|
145
|
+
optional string carModel = 13;
|
|
146
|
+
optional string carNumber = 14;
|
|
147
|
+
optional string carColor = 15;
|
|
148
|
+
optional string carClass = 16;
|
|
148
149
|
// Manzil nomlari
|
|
149
150
|
optional string pickupAddress = 17;
|
|
150
151
|
optional string destinationAddress = 18;
|
|
@@ -152,8 +153,8 @@ message TripListItem {
|
|
|
152
153
|
optional string startedAt = 19;
|
|
153
154
|
optional string endedAt = 20;
|
|
154
155
|
// Ownership ids (all roles)
|
|
155
|
-
optional string clientId =
|
|
156
|
-
optional string driverId =
|
|
156
|
+
optional string clientId = 21;
|
|
157
|
+
optional string driverId = 22;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
message TripListResponse {
|
|
@@ -184,6 +185,7 @@ message TripDetailResponse {
|
|
|
184
185
|
optional string carModel = 16;
|
|
185
186
|
optional string carNumber = 17;
|
|
186
187
|
optional string carColor = 18;
|
|
188
|
+
optional string carClass = 25;
|
|
187
189
|
int32 statusCode = 19;
|
|
188
190
|
string message = 20;
|
|
189
191
|
// Manzil nomlari
|