@devline-smart-taxi/common 2.3.61 → 2.3.63

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.
@@ -31,13 +31,13 @@ message CampaignData {
31
31
  string id = 1;
32
32
  string type = 2; // REFERRAL, TRIP_COUNT, PROMO_CODE
33
33
  float amount = 3;
34
- optional int32 tripCountTarget = 4;
35
- optional string promoCodeString = 5;
36
- optional string startDate = 6;
37
- optional string endDate = 7;
38
- bool isActive = 8;
39
- string createdAt = 9;
40
- optional string updatedAt = 10;
34
+ optional string promoCodeString = 4;
35
+ optional string startDate = 5;
36
+ optional string endDate = 6;
37
+ bool isActive = 7;
38
+ string createdAt = 8;
39
+ optional string updatedAt = 9;
40
+ optional int32 tripCountTarget = 10;
41
41
  }
42
42
 
43
43
  // ==========================================
@@ -47,22 +47,22 @@ message CampaignData {
47
47
  message CreateCampaignRequest {
48
48
  string type = 1;
49
49
  float amount = 2;
50
- optional int32 tripCountTarget = 3;
51
- optional string promoCodeString = 4;
52
- optional string startDate = 5;
53
- optional string endDate = 6;
54
- bool isActive = 7;
50
+ optional string promoCodeString = 3;
51
+ optional string startDate = 4;
52
+ optional string endDate = 5;
53
+ bool isActive = 6;
54
+ optional int32 tripCountTarget = 7;
55
55
  }
56
56
 
57
57
  message UpdateCampaignRequest {
58
58
  string id = 1;
59
59
  optional string type = 2;
60
60
  optional float amount = 3;
61
- optional int32 tripCountTarget = 4;
62
- optional string promoCodeString = 5;
63
- optional string startDate = 6;
64
- optional string endDate = 7;
65
- optional bool isActive = 8;
61
+ optional string promoCodeString = 4;
62
+ optional string startDate = 5;
63
+ optional string endDate = 6;
64
+ optional bool isActive = 7;
65
+ optional int32 tripCountTarget = 8;
66
66
  }
67
67
 
68
68
  message GetCampaignByIdRequest {
@@ -59,6 +59,9 @@ service DriverService {
59
59
  // Faol mashinani tanlash
60
60
  rpc SetActiveCar (SetActiveCarRequest) returns (common.SuccessResponseResult);
61
61
 
62
+ // Faqat Back-End servislar uchun: Haydovchining faol mashinasini (carClassId) olish
63
+ rpc GetDriverActiveCarClass (common.IdRequest) returns (GetDriverActiveCarClassResponse);
64
+
62
65
  // Mashina ma'lumotlarini yangilash
63
66
  rpc UpdateCarInfo (UpdateDriverCarInfoRequest) returns (common.SuccessResponseResult);
64
67
 
@@ -178,6 +181,11 @@ message SetActiveCarRequest {
178
181
  string carId = 2;
179
182
  }
180
183
 
184
+ // Servislararo so'rov: Faqatgina Faol Mashina Klassini qaytaradi
185
+ message GetDriverActiveCarClassResponse {
186
+ optional string carClassId = 1;
187
+ }
188
+
181
189
  message UpdateAvatarRequest {
182
190
  string id = 1; // Driver ID
183
191
  string avatarId = 2; // UsersImage ID (UUID)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devline-smart-taxi/common",
3
- "version": "2.3.61",
3
+ "version": "2.3.63",
4
4
  "description": "Reusable NestJS common library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",