@devline-smart-taxi/common 2.3.97 → 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 +106 -12
- 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
|
|
|
@@ -122,10 +137,10 @@ message AdminOnboardDriverRequest {
|
|
|
122
137
|
optional string address = 6;
|
|
123
138
|
optional string lang = 7;
|
|
124
139
|
optional string branchId = 8;
|
|
125
|
-
string pinfl = 9;
|
|
126
|
-
string cardFrontId = 10;
|
|
127
|
-
string cardBackId = 11;
|
|
128
|
-
string selfieWithCardId = 12;
|
|
140
|
+
optional string pinfl = 9;
|
|
141
|
+
optional string cardFrontId = 10;
|
|
142
|
+
optional string cardBackId = 11;
|
|
143
|
+
optional string selfieWithCardId = 12;
|
|
129
144
|
optional string profilePhotoId = 13;
|
|
130
145
|
string carClassId = 14;
|
|
131
146
|
string carBrand = 15;
|
|
@@ -133,13 +148,13 @@ message AdminOnboardDriverRequest {
|
|
|
133
148
|
string carNumber = 17;
|
|
134
149
|
string carColor = 18;
|
|
135
150
|
bool isOwner = 19;
|
|
136
|
-
string documentFrontId = 20;
|
|
137
|
-
string documentBackId = 21;
|
|
138
|
-
string licenseNumber = 22;
|
|
139
|
-
string expiryDate = 23;
|
|
140
|
-
int32 experience = 24;
|
|
141
|
-
string licenseFrontId = 25;
|
|
142
|
-
string licenseBackId = 26;
|
|
151
|
+
optional string documentFrontId = 20;
|
|
152
|
+
optional string documentBackId = 21;
|
|
153
|
+
optional string licenseNumber = 22;
|
|
154
|
+
optional string expiryDate = 23;
|
|
155
|
+
optional int32 experience = 24;
|
|
156
|
+
optional string licenseFrontId = 25;
|
|
157
|
+
optional string licenseBackId = 26;
|
|
143
158
|
optional int32 carYear = 27;
|
|
144
159
|
}
|
|
145
160
|
|
|
@@ -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;
|
|
@@ -474,7 +527,7 @@ message DriverDocumentsData {
|
|
|
474
527
|
UsersImageData driverLicenseBack = 6;
|
|
475
528
|
string driverLicenseSerialNumber = 7;
|
|
476
529
|
string driverLicenseExpiryDate = 8;
|
|
477
|
-
string jshshirNumber = 9;
|
|
530
|
+
optional string jshshirNumber = 9;
|
|
478
531
|
}
|
|
479
532
|
|
|
480
533
|
// Haydovchining mashinasi
|
|
@@ -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;
|