import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger"; import type { BlameUserNextAction } from "src/helpers/blame-user-progress"; export class UserSignatureResponseDto { @ApiProperty({ example: "67fa10c259e15f231a2d1aae", description: "Request ID", }) requestId: string; @ApiProperty({ example: true, description: "Whether the user accepted the expert decision", }) accepted: boolean; @ApiProperty({ example: "COMPLETED", description: "Updated request status", }) status: string; @ApiProperty({ example: "Both parties have signed. Case completed.", description: "Result message", }) message: string; @ApiPropertyOptional({ description: "Next action for the signing user" }) nextAction?: BlameUserNextAction; @ApiPropertyOptional({ type: Object }) confirmation?: { accepted?: boolean; signature?: { fileId?: string; fileName?: string; fileUrl?: string }; }; @ApiPropertyOptional({ type: Object }) claimBranch?: { required: boolean; branchId: string | null }; @ApiPropertyOptional({ type: Object }) claimCreation?: { hasClaim: boolean; shouldGuideToCreateClaim: boolean; claimRequestId?: string; canContinueClaim?: boolean; }; }