1
0
forked from Yara724/api

Merge branch 'main' into integrate-my-work

This commit is contained in:
2026-02-24 12:21:31 +03:30
13 changed files with 512 additions and 22 deletions

View File

@@ -0,0 +1,32 @@
import { ApiPropertyOptional } from "@nestjs/swagger";
import { CarDamagePartDto } from "src/claim-request-management/dto/car-part.dto";
/**
* DTO for field expert to submit claim-needed data in one go (IN_PERSON flow).
* All fields optional so expert can submit in one or two steps (e.g. car parts first, then sheba/other).
*/
export class ExpertCompleteClaimDataDto {
@ApiPropertyOptional({
description: "Car part damage selection (same as selectCarPartDamage). Required for first claim data step.",
type: CarDamagePartDto,
})
carPartDamage?: CarDamagePartDto;
@ApiPropertyOptional({
description: "Sheba number",
example: "IR123456789012345678901234",
})
sheba?: string;
@ApiPropertyOptional({
description: "National code of insurer",
example: "1234567890",
})
nationalCodeOfInsurer?: string;
@ApiPropertyOptional({
description: "Other parts / extra damage items",
example: [{ "حسگر درها": true }],
})
otherParts?: any[];
}