47 lines
1.1 KiB
Python
47 lines
1.1 KiB
Python
from typing import List
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class UploadListItem(BaseModel):
|
|
upload_id: str
|
|
original_filename: str
|
|
content_type: str
|
|
size_bytes: int
|
|
element_count: int
|
|
removed_elements_count: int
|
|
removed_attributes_count: int
|
|
normalized_elements_count: int
|
|
normalized_seats_count: int
|
|
normalized_groups_count: int
|
|
normalized_sectors_count: int
|
|
original_storage_path: str
|
|
sanitized_storage_path: str
|
|
normalized_storage_path: str
|
|
processing_status: str
|
|
created_at: str
|
|
|
|
|
|
class UploadListResponse(BaseModel):
|
|
items: List[UploadListItem]
|
|
total: int
|
|
|
|
|
|
class UploadDetailResponse(BaseModel):
|
|
upload_id: str
|
|
original_filename: str
|
|
content_type: str
|
|
size_bytes: int
|
|
element_count: int
|
|
removed_elements_count: int
|
|
removed_attributes_count: int
|
|
normalized_elements_count: int
|
|
normalized_seats_count: int
|
|
normalized_groups_count: int
|
|
normalized_sectors_count: int
|
|
original_storage_path: str
|
|
sanitized_storage_path: str
|
|
normalized_storage_path: str
|
|
processing_status: str
|
|
created_at: str
|