1
0
forked from Yara724/api
Files
yara724-api/src/claim-request-management/dto/car-part.dto.ts

109 lines
2.3 KiB
TypeScript

import { ApiProperty } from "@nestjs/swagger";
export class MainParts {
@ApiProperty({ default: false })
backFender: boolean;
@ApiProperty({ default: false })
backWheel: boolean;
@ApiProperty({ default: false })
backDoor: boolean;
@ApiProperty({ default: false })
frontDoor: boolean;
@ApiProperty({ default: false })
mirror: boolean;
@ApiProperty({ default: false })
frontWheel: boolean;
@ApiProperty({ default: false })
frontFender: boolean;
@ApiProperty({ default: false })
backWindow: boolean;
@ApiProperty({ default: false })
frontWindow: boolean;
}
export class FrontParts {
@ApiProperty({ default: false })
frontBumper: boolean;
@ApiProperty({ default: false })
frontCarWindshield: boolean;
@ApiProperty({ default: false })
carHood: boolean;
@ApiProperty({ default: false })
leftLight: boolean;
@ApiProperty({ default: false })
rightLight: boolean;
@ApiProperty({ default: false, description: "جلو پنجره " })
frontGrille: boolean;
}
export class BackParts {
@ApiProperty({ default: false })
backBumper: boolean;
@ApiProperty({ default: false })
carTrunk: boolean;
@ApiProperty({ default: false })
backCarWindshield: boolean;
@ApiProperty({ default: false })
leftLight: boolean;
@ApiProperty({ default: false })
rightLight: boolean;
}
export class TopParts {
@ApiProperty({ default: false })
roof: boolean;
}
export class CarDamagePartDto {
@ApiProperty({ type: MainParts })
left: MainParts[];
@ApiProperty({ type: MainParts })
right: MainParts[];
@ApiProperty({ type: FrontParts })
front: FrontParts[];
@ApiProperty({ type: BackParts })
back: BackParts[];
@ApiProperty({ type: TopParts })
top: TopParts[];
}
export class OtherCarDamagePartDto {
@ApiProperty({
format: "array",
description: "please add items of json into array",
example: [{ "حسگر درها": true }],
})
otherParts: [];
@ApiProperty({ format: "string" })
sheba: string;
@ApiProperty({ format: "string" })
nationalCodeOfInsurer: string;
@ApiProperty({ type: "string", format: "binary", required: true })
file: Express.Multer.File;
}
export class CaptureCarPartDto {
@ApiProperty({ type: "string", format: "binary", required: true })
file: Express.Multer.File;
}