Skip to content

Commit

Permalink
feat: include enw types
Browse files Browse the repository at this point in the history
  • Loading branch information
migueluzcategui committed Sep 5, 2023
1 parent 73f100a commit e0ee5ef
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions vortexasdk/api/shared_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,9 @@ class Scrubber(BaseModel):
tag: Optional[str] = None
scrubber: Optional[str] = None
planned: Optional[bool] = None


class VesselClassEntry:
id: Optional[str] = None
layer: Optional[str] = None
label: Optional[str] = None
3 changes: 3 additions & 0 deletions vortexasdk/api/vessel.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Tag,
Scrubber,
Flag,
VesselClassEntry,
)


Expand Down Expand Up @@ -46,6 +47,7 @@ class Vessel(Node):
current_product_type: Optional[List] = None

vessel_class: Optional[str] = None
classes: Optional[List[VesselClassEntry]] = None
vessel_status: Optional[str] = None

corporate_entities: Optional[List[VesselEntityCorporateEntity]] = None
Expand Down Expand Up @@ -81,6 +83,7 @@ class VesselEntity(IDName):
dwt: Optional[int] = None

vessel_class: Optional[str] = None
classes: Optional[List[VesselClassEntry]] = None
corporate_entities: Optional[
List[VesselEntityCorporateEntityWithConfidence]
] = None
Expand Down
7 changes: 6 additions & 1 deletion vortexasdk/api/vessel_availability.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
from typing import List, Optional


from vortexasdk.api.shared_types import EntityWithListLayer, ISODate
from vortexasdk.api.shared_types import (
EntityWithListLayer,
ISODate,
VesselClassEntry,
)


class DeclaredDestination(BaseModel):
Expand Down Expand Up @@ -42,6 +46,7 @@ class VesselAvailability(BaseModel):
available_at: Optional[ISODate] = None
evaluated_at: Optional[ISODate] = None
vessel_class: Optional[str] = None
vessel_class_hierarchy: Optional[List[VesselClassEntry]] = None
vessel_declared_destination: Optional[List[DeclaredDestination]] = None
vessel_dwt: Optional[int] = None
vessel_cubic_capacity: Optional[int] = None
Expand Down
2 changes: 2 additions & 0 deletions vortexasdk/api/voyages.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
ISODate,
Scrubber,
Tag,
VesselClassEntry,
)


Expand Down Expand Up @@ -49,6 +50,7 @@ class VoyagesVesselEntity(BaseModel):
name: Optional[str] = None
dead_weight: Optional[int] = None
vessel_class: Optional[str] = None
classes: Optional[List[VesselClassEntry]] = None
imo: Optional[int] = None
mmsi: Optional[int] = None
call_sign: Optional[str] = None
Expand Down
2 changes: 1 addition & 1 deletion vortexasdk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.53.2"
__version__ = "0.53.4"

0 comments on commit e0ee5ef

Please sign in to comment.