Skip to content

Commit

Permalink
feat: update client version
Browse files Browse the repository at this point in the history
- chore(deps): update lockfile
  • Loading branch information
cathaypacific8747 committed Dec 27, 2024
1 parent 4ec2616 commit 534fd3b
Show file tree
Hide file tree
Showing 14 changed files with 186 additions and 172 deletions.
6 changes: 6 additions & 0 deletions src/fr24/proto/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All known changes of the gRPC messages are documented here.

Client versions are usually updated every 5 days, most frequently on Mon/Tue 10am. This list is not exhaustive.

## `24.353.1121` (2024-12-19)

- rename fields: `AirlineFilterType::OPERATED_AS`, `Stats.sources`
- add field: `Schedule.progress_pct`, `ExtendedFlightInfo.server_time_ms`
- fix field type: `FlightProgress.progress_pct`

## `24.333.0902` (2024-11-28)

- add field: `Flight.position_buffer`
Expand Down
6 changes: 4 additions & 2 deletions src/fr24/proto/_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ message Schedule {
int32 sta = 4;
int32 eta = 5;
int32 ata = 6;
int32 progress_pct = 7;
}

message Route {
Expand Down Expand Up @@ -173,7 +174,7 @@ message SourceStats {
}

message Stats {
repeated SourceStats sources = 1;
repeated SourceStats total_list = 1;
}

message RecentPosition {
Expand Down Expand Up @@ -240,7 +241,8 @@ message RadarHistoryRecord {
float lon = 3;
int32 altitude = 4;
uint32 spd = 5;
// True track angle, degrees clockwise from North
// True track angle, degrees clockwise from North.
// Note: despite the name, heading is not transmitted in ADS-B.
uint32 heading = 6;
int32 vspd = 7;
uint32 squawk = 8;
Expand Down
72 changes: 36 additions & 36 deletions src/fr24/proto/_common_pb2.py

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions src/fr24/proto/_common_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,14 @@ class Schedule(Message):
STA_FIELD_NUMBER: int
ETA_FIELD_NUMBER: int
ATA_FIELD_NUMBER: int
PROGRESS_PCT_FIELD_NUMBER: int
std: int
etd: int
atd: int
sta: int
eta: int
ata: int
progress_pct: int
def __init__(
self,
*,
Expand All @@ -392,8 +394,9 @@ class Schedule(Message):
sta: int = ...,
eta: int = ...,
ata: int = ...,
progress_pct: int = ...,
) -> None: ...
def ClearField(self, field_name: Literal["ata", b"ata", "atd", b"atd", "eta", b"eta", "etd", b"etd", "sta", b"sta", "std", b"std"]) -> None: ...
def ClearField(self, field_name: Literal["ata", b"ata", "atd", b"atd", "eta", b"eta", "etd", b"etd", "progress_pct", b"progress_pct", "sta", b"sta", "std", b"std"]) -> None: ...

@final
class Route(Message):
Expand Down Expand Up @@ -512,15 +515,15 @@ class SourceStats(Message):
class Stats(Message):
DESCRIPTOR: Descriptor

SOURCES_FIELD_NUMBER: int
TOTAL_LIST_FIELD_NUMBER: int
@property
def sources(self) -> RepeatedCompositeFieldContainer[SourceStats]: ...
def total_list(self) -> RepeatedCompositeFieldContainer[SourceStats]: ...
def __init__(
self,
*,
sources: Iterable[SourceStats] | None = ...,
total_list: Iterable[SourceStats] | None = ...,
) -> None: ...
def ClearField(self, field_name: Literal["sources", b"sources"]) -> None: ...
def ClearField(self, field_name: Literal["total_list", b"total_list"]) -> None: ...

@final
class RecentPosition(Message):
Expand Down Expand Up @@ -669,7 +672,9 @@ class RadarHistoryRecord(Message):
altitude: int
spd: int
heading: int
"""True track angle, degrees clockwise from North"""
"""True track angle, degrees clockwise from North.
Note: despite the name, heading is not transmitted in ADS-B.
"""
vspd: int
squawk: int
source: DataSource.ValueType
Expand Down
6 changes: 4 additions & 2 deletions src/fr24/proto/_follow_flight.proto
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ message FlightProgress {
uint32 mean_flight_time = 7;
FlightStage flight_stage = 8;
DelayStatus delay_status = 9;
int32 progress_pct = 10;
uint32 progress_pct = 10;
}

message FollowFlightRequest {
Expand Down Expand Up @@ -132,6 +132,7 @@ message ExtendedFlightInfo {
bool airspace_availability = 18;
string airspace = 19;
string airspace_id = 20;
uint64 server_time_ms = 21;
}

message TrailPoint {
Expand All @@ -140,7 +141,8 @@ message TrailPoint {
float lon = 3;
int32 altitude = 4;
uint32 spd = 5;
// Track angle, degrees. Not heading.
// True track angle, degrees clockwise from North.
// Note: despite the name, heading is not transmitted in ADS-B.
uint32 heading = 6;
int32 vspd = 7;
}
Expand Down
20 changes: 10 additions & 10 deletions src/fr24/proto/_follow_flight_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions src/fr24/proto/_follow_flight_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ class ExtendedFlightInfo(Message):
AIRSPACE_AVAILABILITY_FIELD_NUMBER: int
AIRSPACE_FIELD_NUMBER: int
AIRSPACE_ID_FIELD_NUMBER: int
SERVER_TIME_MS_FIELD_NUMBER: int
flightid: int
lat: float
lon: float
Expand All @@ -435,6 +436,7 @@ class ExtendedFlightInfo(Message):
airspace_availability: bool
airspace: str
airspace_id: str
server_time_ms: int
@property
def ems_availability(self) -> EMSAvailability: ...
@property
Expand Down Expand Up @@ -462,9 +464,10 @@ class ExtendedFlightInfo(Message):
airspace_availability: bool = ...,
airspace: str = ...,
airspace_id: str = ...,
server_time_ms: int = ...,
) -> None: ...
def HasField(self, field_name: Literal["ems_availability", b"ems_availability", "ems_info", b"ems_info"]) -> bool: ...
def ClearField(self, field_name: Literal["airspace", b"airspace", "airspace_availability", b"airspace_availability", "airspace_id", b"airspace_id", "alt", b"alt", "callsign", b"callsign", "ems_availability", b"ems_availability", "ems_info", b"ems_info", "flightid", b"flightid", "lat", b"lat", "lon", b"lon", "on_ground", b"on_ground", "source", b"source", "speed", b"speed", "squawk", b"squawk", "squawk_availability", b"squawk_availability", "status", b"status", "timestamp", b"timestamp", "track", b"track", "vspeed", b"vspeed", "vspeed_availability", b"vspeed_availability"]) -> None: ...
def ClearField(self, field_name: Literal["airspace", b"airspace", "airspace_availability", b"airspace_availability", "airspace_id", b"airspace_id", "alt", b"alt", "callsign", b"callsign", "ems_availability", b"ems_availability", "ems_info", b"ems_info", "flightid", b"flightid", "lat", b"lat", "lon", b"lon", "on_ground", b"on_ground", "server_time_ms", b"server_time_ms", "source", b"source", "speed", b"speed", "squawk", b"squawk", "squawk_availability", b"squawk_availability", "status", b"status", "timestamp", b"timestamp", "track", b"track", "vspeed", b"vspeed", "vspeed_availability", b"vspeed_availability"]) -> None: ...

@final
class TrailPoint(Message):
Expand All @@ -483,7 +486,9 @@ class TrailPoint(Message):
altitude: int
spd: int
heading: int
"""Track angle, degrees. Not heading."""
"""True track angle, degrees clockwise from North.
Note: despite the name, heading is not transmitted in ADS-B.
"""
vspd: int
def __init__(
self,
Expand Down
5 changes: 3 additions & 2 deletions src/fr24/proto/_live_feed.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ message AirlineFilter {

enum AirlineFilterType {
PAINTED_AS = 0;
OPERATED_AS = 1;
OPERATED_BY = 1;
}

message Filter {
Expand Down Expand Up @@ -86,7 +86,8 @@ message LiveFeedRequest {
message LiveFeedResponse {
repeated _common.Flight flights_list = 1;
_common.Stats stats = 2;
repeated _common.Flight selected_flight_info = 3;
repeated _common.Flight selected_flight_list = 3;
uint64 server_time_ms = 4;
}

message PlaybackRequest {
Expand Down
Loading

0 comments on commit 534fd3b

Please sign in to comment.