@devline-smart-taxi/common 2.3.54 → 2.3.55

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.
@@ -73,6 +73,9 @@ service DriverService {
73
73
 
74
74
  // Rad etilgan arizani qayta yuborish (REJECTED -> PERSONAL_INFO_ADDED)
75
75
  rpc ResendApplication (ResendApplicationRequest) returns (ResendApplicationResponse);
76
+
77
+ // Refresh token orqali yangi access token olish
78
+ rpc RefreshToken (RefreshTokenRequest) returns (RefreshTokenResponse);
76
79
  }
77
80
 
78
81
  // ==========================================
@@ -177,6 +180,10 @@ message ResendApplicationRequest {
177
180
  string secretOtp = 2;
178
181
  }
179
182
 
183
+ message RefreshTokenRequest {
184
+ string refreshToken = 1;
185
+ }
186
+
180
187
  message UpdateDriverPersonalInfoRequest {
181
188
  string id = 1;
182
189
  optional string firstName = 2;
@@ -402,6 +409,18 @@ message ResendApplicationData {
402
409
  string secretOtp = 3;
403
410
  }
404
411
 
412
+ message RefreshTokenResponse {
413
+ int32 statusCode = 1;
414
+ string message = 2;
415
+ RefreshTokenData data = 3;
416
+ }
417
+
418
+ message RefreshTokenData {
419
+ string accessToken = 1;
420
+ string refreshToken = 2;
421
+ string id = 3;
422
+ }
423
+
405
424
  // Registratsiyadan o'tadish uchun
406
425
  message PasswordData {
407
426
  bool success = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devline-smart-taxi/common",
3
- "version": "2.3.54",
3
+ "version": "2.3.55",
4
4
  "description": "Reusable NestJS common library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",