forked from Yara724/api
Merge remote-tracking branch 'upstream/main' | Merge upstream into main and reapply local changes
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { AddPlateDto } from "src/profile/dto/user/AddPlateDto";
|
||||
import {
|
||||
CarBodyFormDto,
|
||||
DescriptionDto,
|
||||
InitialFormDto,
|
||||
} from "./create-request-management.dto";
|
||||
|
||||
/**
|
||||
* V2 (IN_PERSON): single expert description/location for the scene.
|
||||
*/
|
||||
export class ExpertCompleteCarBodyFormV2Dto {
|
||||
@ApiProperty({
|
||||
description: "First party phone number",
|
||||
example: "09123456789",
|
||||
})
|
||||
firstPartyPhoneNumber: string;
|
||||
|
||||
@ApiProperty({ type: InitialFormDto })
|
||||
firstPartyInitialForm: InitialFormDto;
|
||||
|
||||
@ApiProperty({ type: CarBodyFormDto })
|
||||
carBodyForm: CarBodyFormDto;
|
||||
|
||||
@ApiProperty({ type: AddPlateDto })
|
||||
firstPartyPlate: AddPlateDto;
|
||||
|
||||
@ApiProperty({ type: DescriptionDto })
|
||||
expertDescription: DescriptionDto;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { LocationDto } from "./create-request-management.dto";
|
||||
|
||||
/**
|
||||
* V2 (IN_PERSON): one scene location provided by expert.
|
||||
*/
|
||||
export class ExpertCompleteLocationV2Dto {
|
||||
@ApiProperty({ type: LocationDto })
|
||||
location: LocationDto;
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { AddPlateDto } from "src/profile/dto/user/AddPlateDto";
|
||||
import { DescriptionDto, InitialFormDto } from "./create-request-management.dto";
|
||||
|
||||
/**
|
||||
* V2 (IN_PERSON): second party inputs without separate description/location.
|
||||
*/
|
||||
export class ExpertSecondPartyInfoV2Dto {
|
||||
@ApiProperty({
|
||||
description: "Second party phone number",
|
||||
example: "09123456789",
|
||||
})
|
||||
phoneNumber: string;
|
||||
|
||||
@ApiProperty({ type: InitialFormDto })
|
||||
initialForm: InitialFormDto;
|
||||
|
||||
@ApiProperty({ type: AddPlateDto })
|
||||
plate: AddPlateDto;
|
||||
}
|
||||
|
||||
/**
|
||||
* V2 (IN_PERSON): single expert description shared for the whole scene.
|
||||
*/
|
||||
export class ExpertCompleteThirdPartyFormV2Dto {
|
||||
@ApiProperty({
|
||||
description: "First party phone number",
|
||||
example: "09123456789",
|
||||
})
|
||||
firstPartyPhoneNumber: string;
|
||||
|
||||
@ApiProperty({ type: InitialFormDto })
|
||||
firstPartyInitialForm: InitialFormDto;
|
||||
|
||||
@ApiProperty({ type: AddPlateDto })
|
||||
firstPartyPlate: AddPlateDto;
|
||||
|
||||
@ApiProperty({ type: ExpertSecondPartyInfoV2Dto })
|
||||
secondParty: ExpertSecondPartyInfoV2Dto;
|
||||
|
||||
@ApiProperty({ type: DescriptionDto })
|
||||
expertDescription: DescriptionDto;
|
||||
|
||||
@ApiProperty({
|
||||
description:
|
||||
"Phone number of the guilty party. Must match either first or second party phone number.",
|
||||
example: "09123456789",
|
||||
})
|
||||
guiltyPartyPhoneNumber: string;
|
||||
}
|
||||
Reference in New Issue
Block a user