forked from Yara724/api
Fixed claim/blame damagedParts
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user