@devline-smart-taxi/common 2.3.59 → 2.3.61
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,12 +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
|
-
|
|
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;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
// ==========================================
|
|
@@ -46,20 +47,22 @@ message CampaignData {
|
|
|
46
47
|
message CreateCampaignRequest {
|
|
47
48
|
string type = 1;
|
|
48
49
|
float amount = 2;
|
|
49
|
-
optional
|
|
50
|
-
optional string
|
|
51
|
-
optional string
|
|
52
|
-
|
|
50
|
+
optional int32 tripCountTarget = 3;
|
|
51
|
+
optional string promoCodeString = 4;
|
|
52
|
+
optional string startDate = 5;
|
|
53
|
+
optional string endDate = 6;
|
|
54
|
+
bool isActive = 7;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
message UpdateCampaignRequest {
|
|
56
58
|
string id = 1;
|
|
57
59
|
optional string type = 2;
|
|
58
60
|
optional float amount = 3;
|
|
59
|
-
optional
|
|
60
|
-
optional string
|
|
61
|
-
optional string
|
|
62
|
-
optional
|
|
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;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
message GetCampaignByIdRequest {
|
package/dist/proto/driver.proto
CHANGED
|
@@ -56,6 +56,9 @@ service DriverService {
|
|
|
56
56
|
// Shaxsiy ma'lumotlarni yangilash
|
|
57
57
|
rpc UpdatePersonalInfo (UpdateDriverPersonalInfoRequest) returns (common.SuccessResponseResult);
|
|
58
58
|
|
|
59
|
+
// Faol mashinani tanlash
|
|
60
|
+
rpc SetActiveCar (SetActiveCarRequest) returns (common.SuccessResponseResult);
|
|
61
|
+
|
|
59
62
|
// Mashina ma'lumotlarini yangilash
|
|
60
63
|
rpc UpdateCarInfo (UpdateDriverCarInfoRequest) returns (common.SuccessResponseResult);
|
|
61
64
|
|
|
@@ -170,6 +173,11 @@ message UpdateDriverRatingRequest {
|
|
|
170
173
|
float rating = 2;
|
|
171
174
|
}
|
|
172
175
|
|
|
176
|
+
message SetActiveCarRequest {
|
|
177
|
+
string driverId = 1;
|
|
178
|
+
string carId = 2;
|
|
179
|
+
}
|
|
180
|
+
|
|
173
181
|
message UpdateAvatarRequest {
|
|
174
182
|
string id = 1; // Driver ID
|
|
175
183
|
string avatarId = 2; // UsersImage ID (UUID)
|
|
@@ -380,6 +388,7 @@ message DriverCarData {
|
|
|
380
388
|
UsersImageData documentBack = 9;
|
|
381
389
|
optional string carClassId = 10;
|
|
382
390
|
optional string carClassName = 11;
|
|
391
|
+
bool isActive = 12;
|
|
383
392
|
}
|
|
384
393
|
|
|
385
394
|
// Rasm (UsersImage) ma'lumotlari (short format)
|