Axione-IPE-Viewer/webapp/ipe_fetcher/model.py
2023-03-06 15:10:55 +01:00

32 lines
663 B
Python

from typing_extensions import NotRequired, TypedDict
class FAIEligibilityStatus(TypedDict):
isEligible: bool
ftthStatus: str
reasonNotEligible: str
dateCommandable: NotRequired[str]
class Building(TypedDict):
x: str
y: str
idImm: str
numVoieImm: str
typeVoieImm: str
nomVoieImm: str
codePostal: str
commune: str
bat_info: str
found_in: list[str]
etat_imm_priority: int = 10
aquilenetEligStatus: FAIEligibilityStatus
fdnEligStatus: FAIEligibilityStatus
othersEligStatus: FAIEligibilityStatus
class AreaCoordinates(TypedDict):
swx: float
swy: float
nex: float
ney: float