@devline-smart-taxi/common 2.3.63 → 2.3.65
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/trip.proto +22 -0
- package/package.json +1 -1
package/dist/proto/trip.proto
CHANGED
|
@@ -19,6 +19,11 @@ service TripService {
|
|
|
19
19
|
rpc GetMyTrips (GetMyTripsRequest) returns (TripListResponse);
|
|
20
20
|
rpc GetTripById (GetTripByIdRequest) returns (TripDetailResponse);
|
|
21
21
|
rpc CancelTrip (CancelTripRequest) returns (TripResponse);
|
|
22
|
+
// INTER-SERVICE
|
|
23
|
+
rpc CheckDriverHasActiveTrip (CheckDriverHasActiveTripRequest) returns (CheckDriverHasActiveTripResponse);
|
|
24
|
+
|
|
25
|
+
// DRIVER STATS
|
|
26
|
+
rpc GetDriverTodayTripsCount (GetDriverTodayTripsCountRequest) returns (GetDriverTodayTripsCountResponse);
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
// ==========================================
|
|
@@ -58,6 +63,10 @@ message CreateTripRequest {
|
|
|
58
63
|
optional string pickupAddress = 10;
|
|
59
64
|
}
|
|
60
65
|
|
|
66
|
+
message CheckDriverHasActiveTripRequest {
|
|
67
|
+
string driverId = 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
61
70
|
message TripActionRequest {
|
|
62
71
|
string tripId = 1;
|
|
63
72
|
string driverId = 2;
|
|
@@ -111,6 +120,11 @@ message TripFinishResponse {
|
|
|
111
120
|
int32 statusCode = 6;
|
|
112
121
|
}
|
|
113
122
|
|
|
123
|
+
message CheckDriverHasActiveTripResponse {
|
|
124
|
+
bool hasActiveTrip = 1;
|
|
125
|
+
optional string tripId = 2;
|
|
126
|
+
}
|
|
127
|
+
|
|
114
128
|
// --- History ---
|
|
115
129
|
|
|
116
130
|
message TripListItem {
|
|
@@ -172,4 +186,12 @@ message TripDetailResponse {
|
|
|
172
186
|
// Manzil nomlari
|
|
173
187
|
optional string pickupAddress = 21;
|
|
174
188
|
optional string destinationAddress = 22;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
message GetDriverTodayTripsCountRequest {
|
|
192
|
+
string driverId = 1;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message GetDriverTodayTripsCountResponse {
|
|
196
|
+
int32 count = 1;
|
|
175
197
|
}
|