From 89970f7d37e5bddb983c67df34c3a1807dad9b36 Mon Sep 17 00:00:00 2001 From: Quentin Musy Date: Wed, 19 Nov 2025 14:04:46 +0000 Subject: [PATCH 1/4] feat: added missing fields to voyage search enriched --- .../endpoints/voyages_search_enriched.py | 18 ++++++++++++++++++ vortexasdk/version.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/vortexasdk/endpoints/voyages_search_enriched.py b/vortexasdk/endpoints/voyages_search_enriched.py index a3fdabc5..7cacd895 100644 --- a/vortexasdk/endpoints/voyages_search_enriched.py +++ b/vortexasdk/endpoints/voyages_search_enriched.py @@ -91,6 +91,10 @@ def search( vessel_risk_level_excluded: Optional[Union[str, List[str]]] = None, has_ship_to_ship: Optional[str] = None, has_charterer: Optional[str] = None, + vessel_owners: Optional[Union[ID, List[ID]]] = None, + vessel_owners_excluded: Optional[Union[ID, List[ID]]] = None, + time_charterer: Optional[Union[ID, List[ID]]] = None, + time_charterer_excluded: Optional[Union[ID, List[ID]]] = None, intra_movements: Optional[str] = None, voyage_date_range_activity: Optional[VoyageDateRangeActivity] = None, origin_behaviour: Optional[OriginBehaviour] = None, @@ -153,10 +157,18 @@ def search( charterers_excluded: A charterer ID, or list of charterer IDs to exclude. + time_charterer: A time charterer ID, or list of time charterer IDs to filter on. + + time_charterer_excluded: A time charterer ID, or list of time charterer IDs to exclude. + effective_controllers: A vessel effective controller ID, or list of vessel effective controller IDs to filter on. effective_controllers_excluded: A effective controller ID, or list of effective controller IDs to exclude. + vessel_owners: A vessel owner ID, or list of vessel owners IDs to filter on. + + vessel_owners_excluded: A vessel owner ID, or list of vessel owners IDs to exclude. + origins: An origin ID, or list of origin IDs for all the cargoes of a voyage to filter on. origins_excluded: An origin ID, or list of origin IDs for all the cargoes of a voyage to exclude. @@ -290,7 +302,9 @@ def search( "products": convert_to_list(products), "latest_products": convert_to_list(latest_products), "charterers": convert_to_list(charterers), + "time_charterer": convert_to_list(time_charterer), "effective_controllers": convert_to_list(effective_controllers), + "vessel_owners": convert_to_list(vessel_owners), "origins": convert_to_list(origins), "destinations": convert_to_list(destinations), "locations": convert_to_list(locations), @@ -334,10 +348,14 @@ def search( "latest_products_excluded": convert_to_list( latest_products_excluded ), + "time_charterer_excluded": convert_to_list( + time_charterer_excluded + ), "charterers_excluded": convert_to_list(charterers_excluded), "effective_controllers_excluded": convert_to_list( effective_controllers_excluded ), + "vessel_owners_excluded": convert_to_list(vessel_owners_excluded), "origins_excluded": convert_to_list(origins_excluded), "destinations_excluded": convert_to_list(destinations_excluded), "locations_excluded": convert_to_list(locations_excluded), diff --git a/vortexasdk/version.py b/vortexasdk/version.py index b19b12ea..f871089b 100644 --- a/vortexasdk/version.py +++ b/vortexasdk/version.py @@ -1 +1 @@ -__version__ = "1.0.14" +__version__ = "1.0.15" From 2ca5b035364c01b956d89680865f4e515fc6e81e Mon Sep 17 00:00:00 2001 From: Quentin Musy Date: Wed, 19 Nov 2025 15:27:03 +0000 Subject: [PATCH 2/4] chore: added missing permissions to token --- .github/workflows/codeql-analysis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 82554bb8..8fbc1443 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -66,3 +66,7 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 + permissions: + actions: read + contents: read + security-events: write From c7e3b828f461af777f4f34347d0696e3d10b40cd Mon Sep 17 00:00:00 2001 From: Quentin Musy Date: Wed, 19 Nov 2025 16:35:07 +0000 Subject: [PATCH 3/4] chore: moved permissions up --- .github/workflows/codeql-analysis.yml | 8 ++++---- vortexasdk/endpoints/voyages_search_enriched.py | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 8fbc1443..622721b9 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -15,6 +15,10 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write strategy: fail-fast: false @@ -66,7 +70,3 @@ jobs: - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 - permissions: - actions: read - contents: read - security-events: write diff --git a/vortexasdk/endpoints/voyages_search_enriched.py b/vortexasdk/endpoints/voyages_search_enriched.py index 7cacd895..9599ddb6 100644 --- a/vortexasdk/endpoints/voyages_search_enriched.py +++ b/vortexasdk/endpoints/voyages_search_enriched.py @@ -385,6 +385,8 @@ def search( ), } + print(columns) + if columns is None: response = super().search_with_client(**api_params) return VoyagesSearchEnrichedListResult( From a610b31bac05f7cb5fcb8ccc1a8cbcdc588a9bb2 Mon Sep 17 00:00:00 2001 From: Quentin Musy Date: Thu, 20 Nov 2025 09:50:29 +0000 Subject: [PATCH 4/4] chore: removed print --- vortexasdk/endpoints/voyages_search_enriched.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/vortexasdk/endpoints/voyages_search_enriched.py b/vortexasdk/endpoints/voyages_search_enriched.py index 9599ddb6..7cacd895 100644 --- a/vortexasdk/endpoints/voyages_search_enriched.py +++ b/vortexasdk/endpoints/voyages_search_enriched.py @@ -385,8 +385,6 @@ def search( ), } - print(columns) - if columns is None: response = super().search_with_client(**api_params) return VoyagesSearchEnrichedListResult(