@devline-smart-taxi/common 2.3.99 → 2.3.100
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 +6 -74
- package/package.json +1 -1
package/dist/proto/driver.proto
CHANGED
|
@@ -17,9 +17,6 @@ service DriverService {
|
|
|
17
17
|
// OTP kodini tasdiqlash va autentifikatsiya
|
|
18
18
|
rpc VerifyOtpAndAuth (VerifyOtpRequest) returns (VerifyOtpResponse);
|
|
19
19
|
|
|
20
|
-
// Passwordni kiritadi
|
|
21
|
-
rpc Password (PasswordRequest) returns (PasswordResponse);
|
|
22
|
-
|
|
23
20
|
// Registration Step 2: Shaxsiy ma'lumotlar va ID karta
|
|
24
21
|
rpc SavePersonalInfo (SavePersonalRequest) returns (SavePersonalInfoResponse);
|
|
25
22
|
|
|
@@ -104,12 +101,6 @@ service DriverService {
|
|
|
104
101
|
// Haydovchi avatarini yangilash
|
|
105
102
|
rpc UpdateAvatar (UpdateAvatarRequest) returns (common.SuccessResponseResult);
|
|
106
103
|
|
|
107
|
-
// Ro'yxatdan o'tish holatini tekshirish (auth talab qilinmaydi)
|
|
108
|
-
rpc GetRegistrationStatusAndToken (GetRegistrationStatusAndTokenRequest) returns (GetRegistrationStatusAndTokenResponse);
|
|
109
|
-
|
|
110
|
-
// Rad etilgan arizani qayta yuborish (REJECTED -> PERSONAL_INFO_ADDED)
|
|
111
|
-
rpc ResendApplication (ResendApplicationRequest) returns (ResendApplicationResponse);
|
|
112
|
-
|
|
113
104
|
// Refresh token orqali yangi access token olish
|
|
114
105
|
rpc RefreshToken (RefreshTokenRequest) returns (RefreshTokenResponse);
|
|
115
106
|
|
|
@@ -211,12 +202,6 @@ message SaveDriverLicenseRequest {
|
|
|
211
202
|
string secretOtp = 7; // Oldingi stepdan kelgan maxfiy OTP
|
|
212
203
|
}
|
|
213
204
|
|
|
214
|
-
message PasswordRequest{
|
|
215
|
-
string password = 1;
|
|
216
|
-
string phoneNumber = 2;
|
|
217
|
-
string secretOtp = 3; // Oldingi stepdan kelgan maxfiy OTP
|
|
218
|
-
}
|
|
219
|
-
|
|
220
205
|
message BlockDriverRequest {
|
|
221
206
|
string id = 1;
|
|
222
207
|
optional string reason = 2; // Bloklash sababi
|
|
@@ -261,7 +246,8 @@ message SubmitDriverPhotoInspectionRequest {
|
|
|
261
246
|
optional string carBackStateId = 14;
|
|
262
247
|
optional string carLeftStateId = 15;
|
|
263
248
|
optional string carRightStateId = 16;
|
|
264
|
-
optional string
|
|
249
|
+
optional string carInteriorFrontSeatStateId = 17;
|
|
250
|
+
optional string carInteriorBackSeatStateId = 18;
|
|
265
251
|
}
|
|
266
252
|
|
|
267
253
|
message ReviewDriverPhotoInspectionItemRequest {
|
|
@@ -290,16 +276,6 @@ message UpdateAvatarRequest {
|
|
|
290
276
|
string avatarId = 2; // UsersImage ID (UUID)
|
|
291
277
|
}
|
|
292
278
|
|
|
293
|
-
message GetRegistrationStatusAndTokenRequest {
|
|
294
|
-
string phoneNumber = 1;
|
|
295
|
-
string secretOtp = 2;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
message ResendApplicationRequest {
|
|
299
|
-
string phoneNumber = 1;
|
|
300
|
-
string secretOtp = 2;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
279
|
message RefreshTokenRequest {
|
|
304
280
|
string refreshToken = 1;
|
|
305
281
|
}
|
|
@@ -441,12 +417,6 @@ message DriversByBranchResponse {
|
|
|
441
417
|
repeated DriverBranchData data = 3;
|
|
442
418
|
}
|
|
443
419
|
|
|
444
|
-
message PasswordResponse {
|
|
445
|
-
string message = 1;
|
|
446
|
-
int32 statusCode = 2;
|
|
447
|
-
PasswordData data = 3;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
420
|
// ==========================================
|
|
451
421
|
// 4. DATA TYPES (SUB-MESSAGES)
|
|
452
422
|
// ==========================================
|
|
@@ -474,7 +444,7 @@ message OtpData {
|
|
|
474
444
|
// VerifyOtpResponse uchun ma'lumotlar strukturasi
|
|
475
445
|
message VerifyOtpData {
|
|
476
446
|
string phoneNumber = 1;
|
|
477
|
-
optional string
|
|
447
|
+
optional string status = 2;
|
|
478
448
|
optional string secretOtp = 3; // Keyingi step uchun maxfiy OTP
|
|
479
449
|
optional string accessToken = 4; // Faqat ACTIVE haydovchi uchun
|
|
480
450
|
optional string refreshToken = 5; // Faqat ACTIVE haydovchi uchun
|
|
@@ -484,7 +454,7 @@ message VerifyOtpData {
|
|
|
484
454
|
|
|
485
455
|
// SavePersonalInfo va SaveCarInfo response uchun umumiy ma'lumotlar strukturasi
|
|
486
456
|
message StepResponseData {
|
|
487
|
-
string
|
|
457
|
+
string status = 1;
|
|
488
458
|
string phoneNumber = 2;
|
|
489
459
|
optional string secretOtp = 3; // Keyingi step uchun maxfiy OTP (oxirgi stepda bo'lmaydi)
|
|
490
460
|
}
|
|
@@ -581,8 +551,7 @@ message DriverReadinessData {
|
|
|
581
551
|
string readinessStatus = 2;
|
|
582
552
|
bool forceOfflineAfterTrip = 3;
|
|
583
553
|
repeated DriverReadinessBlockingItemData blockingItems = 4;
|
|
584
|
-
optional string
|
|
585
|
-
optional string recurringInspectionExpiresAt = 6;
|
|
554
|
+
optional string recurringInspectionExpiresAt = 5;
|
|
586
555
|
}
|
|
587
556
|
|
|
588
557
|
message DriverPhotoInspectionItemData {
|
|
@@ -602,37 +571,6 @@ message DriverPhotoInspectionItemData {
|
|
|
602
571
|
message DriverPhotoInspectionData {
|
|
603
572
|
DriverReadinessData readiness = 1;
|
|
604
573
|
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
|
-
|
|
611
|
-
message GetRegistrationStatusAndTokenResponse {
|
|
612
|
-
int32 statusCode = 1;
|
|
613
|
-
string message = 2;
|
|
614
|
-
RegistrationStatusData data = 3;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
message RegistrationStatusData {
|
|
618
|
-
optional string step = 1;
|
|
619
|
-
optional string reason = 2;
|
|
620
|
-
optional string phoneNumber = 3;
|
|
621
|
-
optional bool isRegistered = 4;
|
|
622
|
-
optional string accessToken = 5;
|
|
623
|
-
optional string refreshToken = 6;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
message ResendApplicationResponse {
|
|
627
|
-
int32 statusCode = 1;
|
|
628
|
-
string message = 2;
|
|
629
|
-
ResendApplicationData data = 3;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
message ResendApplicationData {
|
|
633
|
-
string step = 1;
|
|
634
|
-
string phoneNumber = 2;
|
|
635
|
-
string secretOtp = 3;
|
|
636
574
|
}
|
|
637
575
|
|
|
638
576
|
message RefreshTokenResponse {
|
|
@@ -647,10 +585,4 @@ message RefreshTokenData {
|
|
|
647
585
|
string id = 3;
|
|
648
586
|
}
|
|
649
587
|
|
|
650
|
-
|
|
651
|
-
message PasswordData {
|
|
652
|
-
bool success = 1;
|
|
653
|
-
string step = 2;
|
|
654
|
-
string phoneNumber = 3;
|
|
655
|
-
string secretOtp = 4; // Keyingi step uchun maxfiy OTP
|
|
656
|
-
}
|
|
588
|
+
|