@devline-smart-taxi/common 2.3.44 → 2.3.46
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 +19 -0
- package/dist/proto/user.proto +17 -0
- package/package.json +1 -1
package/dist/proto/driver.proto
CHANGED
|
@@ -67,6 +67,9 @@ service DriverService {
|
|
|
67
67
|
|
|
68
68
|
// Haydovchi avatarini yangilash
|
|
69
69
|
rpc UpdateAvatar (UpdateAvatarRequest) returns (common.SuccessResponseResult);
|
|
70
|
+
|
|
71
|
+
// Ro'yxatdan o'tish holatini tekshirish (auth talab qilinmaydi)
|
|
72
|
+
rpc GetRegistrationStatus (GetRegistrationStatusRequest) returns (GetRegistrationStatusResponse);
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
// ==========================================
|
|
@@ -161,6 +164,11 @@ message UpdateAvatarRequest {
|
|
|
161
164
|
string avatarId = 2; // UsersImage ID (UUID)
|
|
162
165
|
}
|
|
163
166
|
|
|
167
|
+
message GetRegistrationStatusRequest {
|
|
168
|
+
string phoneNumber = 1;
|
|
169
|
+
string secretOtp = 2;
|
|
170
|
+
}
|
|
171
|
+
|
|
164
172
|
message UpdateDriverPersonalInfoRequest {
|
|
165
173
|
string id = 1;
|
|
166
174
|
optional string firstName = 2;
|
|
@@ -363,6 +371,17 @@ message UsersImageData {
|
|
|
363
371
|
string name = 5;
|
|
364
372
|
}
|
|
365
373
|
|
|
374
|
+
message GetRegistrationStatusResponse {
|
|
375
|
+
int32 statusCode = 1;
|
|
376
|
+
string message = 2;
|
|
377
|
+
RegistrationStatusData data = 3;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
message RegistrationStatusData {
|
|
381
|
+
string step = 1;
|
|
382
|
+
optional string reason = 2;
|
|
383
|
+
}
|
|
384
|
+
|
|
366
385
|
// Registratsiyadan o'tadish uchun
|
|
367
386
|
message PasswordData {
|
|
368
387
|
bool success = 1;
|
package/dist/proto/user.proto
CHANGED
|
@@ -22,6 +22,7 @@ service UserService {
|
|
|
22
22
|
rpc BlockUser (Id) returns (common.SuccessResponseResult);
|
|
23
23
|
rpc GetMyProfile (common.NoParams) returns (UserResponse);
|
|
24
24
|
rpc ApplyReferralCode (ApplyReferralCodeRequest) returns (common.SuccessResponseResult);
|
|
25
|
+
rpc GetFcmTokens (GetFcmTokensRequest) returns (FcmTokensResponse);
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
// ==========================================
|
|
@@ -112,6 +113,10 @@ message ApplyReferralCodeRequest {
|
|
|
112
113
|
string referralCode = 1;
|
|
113
114
|
}
|
|
114
115
|
|
|
116
|
+
message GetFcmTokensRequest {
|
|
117
|
+
string role = 1; // "CLIENT", "DRIVER", "ALL"
|
|
118
|
+
}
|
|
119
|
+
|
|
115
120
|
// ==========================================
|
|
116
121
|
// 4. RESPONSES
|
|
117
122
|
// ==========================================
|
|
@@ -175,3 +180,15 @@ message PaginationResult {
|
|
|
175
180
|
int32 statusCode = 8;
|
|
176
181
|
string message = 9;
|
|
177
182
|
}
|
|
183
|
+
|
|
184
|
+
message FcmTokenItem {
|
|
185
|
+
string userId = 1;
|
|
186
|
+
string fcmToken = 2;
|
|
187
|
+
string role = 3;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
message FcmTokensResponse {
|
|
191
|
+
repeated FcmTokenItem tokens = 1;
|
|
192
|
+
int32 statusCode = 2;
|
|
193
|
+
string message = 3;
|
|
194
|
+
}
|