forked from Yara724/api
28 lines
743 B
TypeScript
28 lines
743 B
TypeScript
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
import { IsInt, IsOptional, IsString } from "class-validator";
|
|
|
|
/** Stored shape / API payload for one selected outer damaged part (V2). */
|
|
export class DamageSelectedPartV2BodyDto {
|
|
@ApiPropertyOptional({ description: "Catalog id when from outer-parts catalog" })
|
|
@IsOptional()
|
|
@IsInt()
|
|
id?: number;
|
|
|
|
@ApiProperty({ example: "backfender" })
|
|
@IsString()
|
|
name: string;
|
|
|
|
@ApiProperty({ example: "left" })
|
|
@IsString()
|
|
side: string;
|
|
|
|
@ApiProperty({ example: "گلگیر عقب" })
|
|
@IsString()
|
|
label_fa: string;
|
|
|
|
@ApiPropertyOptional({ description: "Original catalog key, e.g. left_backfender" })
|
|
@IsOptional()
|
|
@IsString()
|
|
catalogKey?: string;
|
|
}
|