1
0
forked from Yara724/api
Files
yara724-api/src/request-management/dto/expert-complete-third-party-form.dto.ts
2026-04-06 14:15:31 +03:30

58 lines
1.5 KiB
TypeScript

import { ApiProperty } from "@nestjs/swagger";
import { AddPlateDto } from "src/profile/dto/user/AddPlateDto";
import { DescriptionDto } from "./create-request-management.dto";
import { InitialFormDto } from "./create-request-management.dto";
/**
* Second party information for expert-completed THIRD_PARTY forms
*/
export class ExpertSecondPartyInfoDto {
@ApiProperty({
description: "Second party phone number",
example: "09123456789",
})
phoneNumber: string;
@ApiProperty({ type: InitialFormDto })
initialForm: InitialFormDto;
@ApiProperty({ type: AddPlateDto })
plate: AddPlateDto;
@ApiProperty({ type: DescriptionDto })
description: DescriptionDto;
}
/**
* Comprehensive form for experts to fill all information at once for IN_PERSON THIRD_PARTY files
*/
export class ExpertCompleteThirdPartyFormDto {
// First Party Information
@ApiProperty({
description: "First party phone number",
example: "09123456789",
})
firstPartyPhoneNumber: string;
@ApiProperty({ type: InitialFormDto })
firstPartyInitialForm: InitialFormDto;
@ApiProperty({ type: AddPlateDto })
firstPartyPlate: AddPlateDto;
@ApiProperty({ type: DescriptionDto })
firstPartyDescription: DescriptionDto;
// Second Party Information
@ApiProperty({ type: ExpertSecondPartyInfoDto })
secondParty: ExpertSecondPartyInfoDto;
// Guilty Party
@ApiProperty({
description: "Phone number of the guilty party. Must match either first or second party phone number.",
example: "09123456789",
})
guiltyPartyPhoneNumber: string;
}