forked from Yara724/api
YARA-743
This commit is contained in:
25
src/expert-claim/dto/update-claim-damaged-parts-v2.dto.ts
Normal file
25
src/expert-claim/dto/update-claim-damaged-parts-v2.dto.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import {
|
||||
ArrayMinSize,
|
||||
ArrayUnique,
|
||||
IsArray,
|
||||
IsEnum,
|
||||
IsNotEmpty,
|
||||
} from "class-validator";
|
||||
import { OuterCarPart } from "src/claim-request-management/dto/select-outer-parts-v2.dto";
|
||||
|
||||
export class UpdateClaimDamagedPartsV2Dto {
|
||||
@ApiProperty({
|
||||
description: "Updated list of selected damaged outer parts",
|
||||
enum: OuterCarPart,
|
||||
isArray: true,
|
||||
example: ["hood", "front_bumper", "front_left_fender"],
|
||||
})
|
||||
@IsNotEmpty()
|
||||
@IsArray()
|
||||
@ArrayMinSize(1)
|
||||
@ArrayUnique()
|
||||
@IsEnum(OuterCarPart, { each: true })
|
||||
selectedParts: OuterCarPart[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user