@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
|
|
35
|
-
optional string
|
|
36
|
-
optional string
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
string
|
|
40
|
-
optional
|
|
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
|
|
51
|
-
optional string
|
|
52
|
-
optional string
|
|
53
|
-
|
|
54
|
-
|
|
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
|
|
62
|
-
optional string
|
|
63
|
-
optional string
|
|
64
|
-
optional
|
|
65
|
-
optional
|
|
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 {
|
package/dist/proto/driver.proto
CHANGED
|
@@ -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)
|