forked from Yara724/api
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
import { ApiProperty } from "@nestjs/swagger";
|
|
import { Types } from "mongoose";
|
|
import { ResendItemType } from "src/Types&Enums/blame-request-management/resendItemType.enum";
|
|
|
|
export class PartyResendRequestDto {
|
|
@ApiProperty({
|
|
required: true,
|
|
type: String,
|
|
example: "507f1f77bcf86cd799439011",
|
|
description: "userId (person.userId) of the party member to request documents from",
|
|
})
|
|
partyId: Types.ObjectId;
|
|
|
|
@ApiProperty({
|
|
required: true,
|
|
isArray: true,
|
|
enum: ResendItemType,
|
|
example: [ResendItemType.DRIVING_LICENSE, ResendItemType.CAR_CERTIFICATE],
|
|
description: "Array of items to request from this party",
|
|
})
|
|
requestedItems: ResendItemType[];
|
|
|
|
@ApiProperty({
|
|
required: false,
|
|
example: "Please resend your driving license and car certificate with better quality",
|
|
description: "Optional explanation for why these items are needed",
|
|
})
|
|
description?: string;
|
|
}
|
|
|
|
export class ResendRequestDto {
|
|
@ApiProperty({
|
|
required: true,
|
|
type: [PartyResendRequestDto],
|
|
description: "Array of resend requests (can include first party, second party, or both)",
|
|
example: [
|
|
{
|
|
partyId: "681b3b3fb237e5856429e444",
|
|
requestedItems: ["drivingLicense"],
|
|
description: "DESC TEST1",
|
|
},
|
|
{
|
|
partyId: "68b6ba552a6e897df34e0f90",
|
|
requestedItems: ["carCertificate"],
|
|
description: "DESC TEST2",
|
|
},
|
|
],
|
|
})
|
|
parties: PartyResendRequestDto[];
|
|
}
|