85 lines
1.7 KiB
Python
85 lines
1.7 KiB
Python
"""Domain enums shared across the application."""
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class CustomerLevel(str, Enum):
|
|
"""Supported customer tiers."""
|
|
|
|
LOW = "low"
|
|
MID = "mid"
|
|
|
|
|
|
class ServiceMode(str, Enum):
|
|
"""Supported service delivery modes."""
|
|
|
|
AUTO_BASIC = "auto_basic"
|
|
SEMI_PRO = "semi_pro"
|
|
|
|
|
|
class OrderStatus(str, Enum):
|
|
"""Lifecycle states for an order and workflow run."""
|
|
|
|
CREATED = "created"
|
|
RUNNING = "running"
|
|
WAITING_REVIEW = "waiting_review"
|
|
SUCCEEDED = "succeeded"
|
|
FAILED = "failed"
|
|
CANCELLED = "cancelled"
|
|
|
|
|
|
class WorkflowStepName(str, Enum):
|
|
"""Canonical workflow step names."""
|
|
|
|
PREPARE_MODEL = "prepare_model"
|
|
TRYON = "tryon"
|
|
SCENE = "scene"
|
|
TEXTURE = "texture"
|
|
FACE = "face"
|
|
FUSION = "fusion"
|
|
QC = "qc"
|
|
EXPORT = "export"
|
|
REVIEW = "review"
|
|
|
|
|
|
class ReviewDecision(str, Enum):
|
|
"""Supported review decisions for the mid-end workflow."""
|
|
|
|
APPROVE = "approve"
|
|
RERUN_SCENE = "rerun_scene"
|
|
RERUN_FACE = "rerun_face"
|
|
RERUN_FUSION = "rerun_fusion"
|
|
REJECT = "reject"
|
|
|
|
|
|
class StepStatus(str, Enum):
|
|
"""Execution status of a single workflow step record."""
|
|
|
|
PENDING = "pending"
|
|
RUNNING = "running"
|
|
WAITING = "waiting"
|
|
SUCCEEDED = "succeeded"
|
|
FAILED = "failed"
|
|
|
|
|
|
class ReviewTaskStatus(str, Enum):
|
|
"""Status of a human review task."""
|
|
|
|
PENDING = "pending"
|
|
REVISION_UPLOADED = "revision_uploaded"
|
|
SUBMITTED = "submitted"
|
|
|
|
|
|
class AssetType(str, Enum):
|
|
"""Asset classes produced by the pipeline."""
|
|
|
|
PREPARED_MODEL = "prepared_model"
|
|
TRYON = "tryon"
|
|
SCENE = "scene"
|
|
TEXTURE = "texture"
|
|
FACE = "face"
|
|
FUSION = "fusion"
|
|
QC_CANDIDATE = "qc_candidate"
|
|
MANUAL_REVISION = "manual_revision"
|
|
FINAL = "final"
|