diff --git a/setup.py b/setup.py index 97d50673..7a704be7 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ "pandas>=0.25.2", "requests==2.22.0", "statsmodels==0.12.2", - "tqdm==4.38.0", + "tqdm==4.38.0" ], extras_require={ "tests": [ @@ -42,6 +42,7 @@ "pre-commit==1.20.0", "pytest==5.2.4", "pydoc-markdown==2.0.5", + "pyyaml<6.0.0", "six==1.12.0", "tabulate==0.8.7", "xlrd==1.2.0", diff --git a/vortexasdk/endpoints/cargo_timeseries.py b/vortexasdk/endpoints/cargo_timeseries.py index 6299dce1..27477de9 100644 --- a/vortexasdk/endpoints/cargo_timeseries.py +++ b/vortexasdk/endpoints/cargo_timeseries.py @@ -36,6 +36,8 @@ def search( filter_products: Union[ID, List[ID]] = None, filter_vessels: Union[ID, List[ID]] = None, filter_vessel_classes: Union[ID, List[ID]] = None, + filter_vessel_age_min: int = None, + filter_vessel_age_max: int = None, filter_storage_locations: Union[ID, List[ID]] = None, filter_ship_to_ship_locations: Union[ID, List[ID]] = None, filter_waypoints: Union[ID, List[ID]] = None, @@ -77,6 +79,10 @@ def search( filter_vessel_classes: A vessel class, or list of vessel classes to filter on. + filter_vessel_age_min: A number between 1 and 100 (representing years). + + filter_vessel_age_max: A number between 1 and 100 (representing years). + filter_storage_locations: A geography ID, or list of geography IDs to filter on. filter_ship_to_ship_locations: A geography ID, or list of geography IDs to filter on. @@ -169,6 +175,8 @@ def search( "filter_vessel_classes": convert_to_list( filter_vessel_classes ), + "filter_vessel_age_min": filter_vessel_age_min, + "filter_vessel_age_max": filter_vessel_age_max, "filter_destinations": convert_to_list(filter_destinations), "filter_origins": convert_to_list(filter_origins), "filter_storage_locations": convert_to_list( diff --git a/vortexasdk/version.py b/vortexasdk/version.py index a6bbdad9..a9452e07 100644 --- a/vortexasdk/version.py +++ b/vortexasdk/version.py @@ -1 +1 @@ -__version__ = "0.31.3" +__version__ = "0.31.4"