YARA-1216

This commit is contained in:
SepehrYahyaee
2026-08-09 10:36:45 +03:30
parent 473075e546
commit 3821bf36ef
3 changed files with 104 additions and 5 deletions

View File

@@ -87,6 +87,33 @@ export class DescriptionDto {
lightCondition?: LightCondition;
}
/**
* V4 FileMaker description step (THIRD_PARTY and CAR_BODY alike).
* Accident date and time are required for all file types in V4 so the
* front-end can display them consistently regardless of blame type.
*/
export class DescriptionV4Dto {
@ApiProperty({ description: "Accident description" })
@IsString()
@IsNotEmpty()
desc: string;
@ApiProperty({
description: "Date of the accident (required for all V4 files)",
example: "2025-12-08",
})
@IsNotEmpty()
accidentDate: Date;
@ApiProperty({
description: "Time of the accident (required for all V4 files)",
example: "14:30",
})
@IsString()
@IsNotEmpty()
accidentTime: string;
}
/**
* THIRD_PARTY description step: only desc is accepted.
*/