@devline-smart-taxi/common 2.3.98 → 2.3.99
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/README.md +5 -1
- package/dist/proto/driver.proto +94 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Bu `package` ga bir martadan ortiq service da qo'llaniladigan class/interface/enum kabi code bloklari joylanadi.
|
|
6
6
|
|
|
7
|
+
## Driver readiness docs
|
|
8
|
+
|
|
9
|
+
- [Driver Photo Inspection Contract](./docs/driver-photo-inspection-contract.md)
|
|
10
|
+
|
|
7
11
|
## O'rnatish
|
|
8
12
|
|
|
9
13
|
```bash
|
|
@@ -64,4 +68,4 @@ src/
|
|
|
64
68
|
├── enums/ # Umumiy enumlar (roles, trip status, payment, va h.k.)
|
|
65
69
|
├── prompt/ # Error prompt utilitylari
|
|
66
70
|
└── proto/ # Protobuf definitionlar va path helperlar
|
|
67
|
-
```
|
|
71
|
+
```
|
package/dist/proto/driver.proto
CHANGED
|
@@ -59,6 +59,21 @@ service DriverService {
|
|
|
59
59
|
// Haydovchini qayta faollashtirish
|
|
60
60
|
rpc ReactivateDriver (ReactivateDriverRequest) returns (common.SuccessResponseResult);
|
|
61
61
|
|
|
62
|
+
// Haydovchining operational readiness holatini olish
|
|
63
|
+
rpc GetDriverReadinessSummary (common.IdRequest) returns (DriverReadinessResponse);
|
|
64
|
+
|
|
65
|
+
// Haydovchining photo inspection holatini itemlar kesimida olish
|
|
66
|
+
rpc GetDriverPhotoInspection (common.IdRequest) returns (DriverPhotoInspectionResponse);
|
|
67
|
+
|
|
68
|
+
// Haydovchi tomonidan photo inspection ma'lumotlarini yuborish
|
|
69
|
+
rpc SubmitDriverPhotoInspection (SubmitDriverPhotoInspectionRequest) returns (DriverPhotoInspectionResponse);
|
|
70
|
+
|
|
71
|
+
// Photo inspection itemini tasdiqlash
|
|
72
|
+
rpc ApproveDriverPhotoInspectionItem (ReviewDriverPhotoInspectionItemRequest) returns (common.SuccessResponseResult);
|
|
73
|
+
|
|
74
|
+
// Photo inspection itemini rad etish
|
|
75
|
+
rpc RejectDriverPhotoInspectionItem (ReviewDriverPhotoInspectionItemRequest) returns (common.SuccessResponseResult);
|
|
76
|
+
|
|
62
77
|
// Shaxsiy ma'lumotlarni yangilash
|
|
63
78
|
rpc UpdatePersonalInfo (UpdateDriverPersonalInfoRequest) returns (common.SuccessResponseResult);
|
|
64
79
|
|
|
@@ -229,6 +244,32 @@ message ReactivateDriverRequest {
|
|
|
229
244
|
optional string reason = 2;
|
|
230
245
|
}
|
|
231
246
|
|
|
247
|
+
message SubmitDriverPhotoInspectionRequest {
|
|
248
|
+
string id = 1;
|
|
249
|
+
optional string pinfl = 2;
|
|
250
|
+
optional string licenseNumber = 3;
|
|
251
|
+
optional string expiryDate = 4;
|
|
252
|
+
optional int32 experience = 5;
|
|
253
|
+
optional string cardFrontId = 6;
|
|
254
|
+
optional string cardBackId = 7;
|
|
255
|
+
optional string selfieWithCardId = 8;
|
|
256
|
+
optional string licenseFrontId = 9;
|
|
257
|
+
optional string licenseBackId = 10;
|
|
258
|
+
optional string documentFrontId = 11;
|
|
259
|
+
optional string documentBackId = 12;
|
|
260
|
+
optional string carFrontStateId = 13;
|
|
261
|
+
optional string carBackStateId = 14;
|
|
262
|
+
optional string carLeftStateId = 15;
|
|
263
|
+
optional string carRightStateId = 16;
|
|
264
|
+
optional string carInteriorStateId = 17;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
message ReviewDriverPhotoInspectionItemRequest {
|
|
268
|
+
string driverId = 1;
|
|
269
|
+
string itemCode = 2;
|
|
270
|
+
optional string reason = 3;
|
|
271
|
+
}
|
|
272
|
+
|
|
232
273
|
message UpdateDriverRatingRequest {
|
|
233
274
|
string driverId = 1;
|
|
234
275
|
float rating = 2;
|
|
@@ -382,6 +423,18 @@ message DriverResponse {
|
|
|
382
423
|
DriverData data = 3;
|
|
383
424
|
}
|
|
384
425
|
|
|
426
|
+
message DriverReadinessResponse {
|
|
427
|
+
int32 statusCode = 1;
|
|
428
|
+
string message = 2;
|
|
429
|
+
DriverReadinessData data = 3;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
message DriverPhotoInspectionResponse {
|
|
433
|
+
int32 statusCode = 1;
|
|
434
|
+
string message = 2;
|
|
435
|
+
DriverPhotoInspectionData data = 3;
|
|
436
|
+
}
|
|
437
|
+
|
|
385
438
|
message DriversByBranchResponse {
|
|
386
439
|
int32 statusCode = 1;
|
|
387
440
|
string message = 2;
|
|
@@ -514,6 +567,47 @@ message UsersImageData {
|
|
|
514
567
|
string name = 5;
|
|
515
568
|
}
|
|
516
569
|
|
|
570
|
+
message DriverReadinessBlockingItemData {
|
|
571
|
+
string code = 1;
|
|
572
|
+
string category = 2;
|
|
573
|
+
string status = 3;
|
|
574
|
+
bool isRecurring = 4;
|
|
575
|
+
optional string reason = 5;
|
|
576
|
+
optional string expiresAt = 6;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
message DriverReadinessData {
|
|
580
|
+
bool canGoOnline = 1;
|
|
581
|
+
string readinessStatus = 2;
|
|
582
|
+
bool forceOfflineAfterTrip = 3;
|
|
583
|
+
repeated DriverReadinessBlockingItemData blockingItems = 4;
|
|
584
|
+
optional string nextRequiredScreen = 5;
|
|
585
|
+
optional string recurringInspectionExpiresAt = 6;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
message DriverPhotoInspectionItemData {
|
|
589
|
+
string code = 1;
|
|
590
|
+
string category = 2;
|
|
591
|
+
string status = 3;
|
|
592
|
+
bool isRequired = 4;
|
|
593
|
+
bool isRecurring = 5;
|
|
594
|
+
optional string reason = 6;
|
|
595
|
+
optional string submittedAt = 7;
|
|
596
|
+
optional string reviewedAt = 8;
|
|
597
|
+
optional string approvedAt = 9;
|
|
598
|
+
optional string expiresAt = 10;
|
|
599
|
+
optional UsersImageData file = 11;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
message DriverPhotoInspectionData {
|
|
603
|
+
DriverReadinessData readiness = 1;
|
|
604
|
+
repeated DriverPhotoInspectionItemData items = 2;
|
|
605
|
+
optional string pinfl = 3;
|
|
606
|
+
optional string licenseNumber = 4;
|
|
607
|
+
optional string expiryDate = 5;
|
|
608
|
+
optional int32 experience = 6;
|
|
609
|
+
}
|
|
610
|
+
|
|
517
611
|
message GetRegistrationStatusAndTokenResponse {
|
|
518
612
|
int32 statusCode = 1;
|
|
519
613
|
string message = 2;
|