feat: add resource library and real image workflow
This commit is contained in:
@@ -82,3 +82,26 @@ class AssetType(str, Enum):
|
||||
QC_CANDIDATE = "qc_candidate"
|
||||
MANUAL_REVISION = "manual_revision"
|
||||
FINAL = "final"
|
||||
|
||||
|
||||
class LibraryResourceType(str, Enum):
|
||||
"""Supported resource-library item types."""
|
||||
|
||||
MODEL = "model"
|
||||
SCENE = "scene"
|
||||
GARMENT = "garment"
|
||||
|
||||
|
||||
class LibraryFileRole(str, Enum):
|
||||
"""Supported file roles within a library resource."""
|
||||
|
||||
ORIGINAL = "original"
|
||||
THUMBNAIL = "thumbnail"
|
||||
GALLERY = "gallery"
|
||||
|
||||
|
||||
class LibraryResourceStatus(str, Enum):
|
||||
"""Lifecycle state for a library resource."""
|
||||
|
||||
ACTIVE = "active"
|
||||
ARCHIVED = "archived"
|
||||
|
||||
@@ -15,12 +15,11 @@ class Order:
|
||||
service_mode: ServiceMode
|
||||
status: OrderStatus
|
||||
model_id: int
|
||||
pose_id: int
|
||||
pose_id: int | None
|
||||
garment_asset_id: int
|
||||
scene_ref_asset_id: int
|
||||
scene_ref_asset_id: int | None
|
||||
final_asset_id: int | None
|
||||
workflow_id: str | None
|
||||
current_step: WorkflowStepName | None
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user