"""Shared schema constants for DSCons API models."""

from __future__ import annotations

# Ghi chú: gom constant sang file riêng để giảm độ dài file schemas.py.
SUPPORTED_TASK_TYPES = (
    "legal_compliance",
    "project_planning",
    "procurement_tender",
    "contract_management",
    "technical_delivery",
    "payment_settlement",
    "audit_inspection",
)

DOSSIER_REVIEW_DEPARTMENT_CODES = (
    "technical",
    "legal",
    "finance",
    "contracts",
    "synthesis",
    "follow_up",
)

DOSSIER_REVIEW_SESSION_STATUSES = (
    "draft",
    "in_review",
    "awaiting_assignment",
    "assigned",
    "partially_resolved",
    "resolved",
    "closed",
    "cancelled",
)

DOSSIER_REVIEW_FINDING_STATUSES = (
    "open",
    "assigned",
    "in_progress",
    "pending_verification",
    "resolved",
    "waived",
    "rejected",
)

DOSSIER_REVIEW_SUPPLEMENT_STATUSES = (
    "not_requested",
    "requested",
    "collecting",
    "submitted",
    "insufficient",
    "accepted",
)

DOSSIER_REVIEW_ASSIGNMENT_STATUSES = (
    "pending",
    "accepted",
    "in_progress",
    "submitted",
    "returned",
    "verified",
    "cancelled",
    "overdue",
)

DOSSIER_REVIEW_ACTION_TYPES = (
    "session_created",
    "session_started",
    "finding_created",
    "finding_updated",
    "finding_assigned",
    "assignment_status_changed",
    "supplement_submitted",
    "snapshot_captured",
    "verification_completed",
    "session_closed",
    "comment_added",
    "policy_checked",
    "risk_flagged",
    "escalation_triggered",
)
