20 lines
472 B
Python
20 lines
472 B
Python
from typing import TypedDict, List, Dict, Tuple, Optional
|
|
|
|
from models import DealProduct, Deal, DealStatusHistory
|
|
|
|
|
|
class DealTechSpecProductData(TypedDict):
|
|
deal_products: List[DealProduct]
|
|
total_one_product: int
|
|
quantity: int
|
|
additional_info: Optional[str]
|
|
|
|
|
|
class DealTechSpecData(TypedDict):
|
|
deal: Deal
|
|
products: Dict[str, DealTechSpecProductData]
|
|
current_status_str: str
|
|
last_status: DealStatusHistory
|
|
product_images: Tuple[str]
|
|
|