forked from Yara724/api
YARA-1216
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user