From 644e50e76df42347986a084351e3747adf8f7244 Mon Sep 17 00:00:00 2001 From: GouJ Date: Thu, 15 Oct 2026 17:39:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9A=E4=B9=89=E5=89=8D=E7=AB=AF=20?= =?UTF-8?q?Duration=20Budget=20=E6=B1=87=E6=80=BB=E4=B8=8E=E6=97=B6?= =?UTF-8?q?=E9=95=BF=E5=81=8F=E5=B7=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/projects/types.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) 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 +}