feat: added tags for cards, aligned status headers
This commit is contained in:
@@ -7,6 +7,7 @@ from schemas.attribute import CardAttributeSchema
|
||||
from schemas.base import BaseSchema, OkMessageSchema
|
||||
from schemas.billing import CardBillRequestSchema
|
||||
from schemas.board import BoardSchema
|
||||
from schemas.card_tag import CardTagSchema
|
||||
from schemas.client import ClientSchema
|
||||
from schemas.group import CardGroupSchema
|
||||
from schemas.marketplace import BaseMarketplaceSchema
|
||||
@@ -41,6 +42,7 @@ class CardSummary(BaseSchema):
|
||||
rank: int
|
||||
base_marketplace: Optional[BaseMarketplaceSchema] = None
|
||||
total_products: int
|
||||
tags: list[CardTagSchema]
|
||||
|
||||
shipment_warehouse_id: Optional[int]
|
||||
shipment_warehouse_name: Optional[str]
|
||||
@@ -100,6 +102,7 @@ class BaseCardSchema(BaseSchema):
|
||||
pallets: List[PalletSchema] = []
|
||||
boxes: List[BoxSchema] = []
|
||||
employees: List[CardEmployeesSchema] = []
|
||||
tags: List[CardTagSchema] = []
|
||||
|
||||
|
||||
class CardSchema(BaseCardSchema):
|
||||
@@ -115,6 +118,7 @@ class CardGeneralInfoSchema(BaseSchemaWithAttributes):
|
||||
board_id: int
|
||||
status_id: int
|
||||
client_id: Optional[int]
|
||||
tags: List[str]
|
||||
|
||||
|
||||
class ProductsAndServicesGeneralInfoSchema(BaseSchema):
|
||||
|
||||
Reference in New Issue
Block a user