diff --git a/src/features/projects/types.ts b/src/features/projects/types.ts index ab39cd4..8bc25f7 100644 --- a/src/features/projects/types.ts +++ b/src/features/projects/types.ts @@ -104,3 +104,37 @@ export interface ProjectStageReadiness { subjectAssets: { ready: boolean; reason: string | null } storyboard: { ready: boolean; reason: string | null } } + +/** 单集分镜时长偏差审计结果。 */ +export interface ProjectDurationTargetAudit { + episodeNo: number + targetDurationSeconds: number | null + plannedDeviationSeconds: number | null + shotDeviationSeconds: number | null + toleranceSeconds: number | null + deviationSeconds: number | null + status: 'auto' | 'on_target' | 'over_budget' | 'under_budget' + needsReview: boolean + auditedStage: 'plan' | 'shot' +} + +/** 项目时长预算只读汇总。 */ +export interface ProjectDurationBudgetSummary { + projectId: string + mode: DramaDurationBudget['mode'] + episodeCount: number | null + targetDurationSeconds: number | null + episodeMinSeconds: number | null + episodeMaxSeconds: number | null + episodes: Array<{ + episodeNo: number + targetDurationSeconds: number | null + plannedSeconds: number | null + shotSeconds: number | null + shotCount: number + audit: ProjectDurationTargetAudit | null + }> + targetWarningCount: number + willCallModel: false + willModifyAssets: false +}