forked from Yara724/api
blame and claim refactored
This commit is contained in:
35
src/claim-request-management/dto/my-claims-v2.dto.ts
Normal file
35
src/claim-request-management/dto/my-claims-v2.dto.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
|
||||
export class ClaimListItemV2Dto {
|
||||
@ApiProperty({ description: 'Claim case ID', example: '507f1f77bcf86cd799439011' })
|
||||
claimRequestId: string;
|
||||
|
||||
@ApiProperty({ description: 'Public ID shared across blame and claim', example: 'A14235' })
|
||||
publicId: string;
|
||||
|
||||
@ApiProperty({ description: 'Claim request number', example: 'CL12345' })
|
||||
requestNo: string;
|
||||
|
||||
@ApiProperty({ description: 'Overall case status', example: 'WAITING_FOR_DAMAGE_EXPERT' })
|
||||
status: string;
|
||||
|
||||
@ApiProperty({ description: 'Claim damage determination status', example: 'PENDING' })
|
||||
claimStatus: string;
|
||||
|
||||
@ApiProperty({ description: 'Current workflow step', example: 'USER_SUBMISSION_COMPLETE' })
|
||||
currentStep: string;
|
||||
|
||||
@ApiProperty({ description: 'Creation date', example: '2026-02-22T10:00:00.000Z' })
|
||||
createdAt: string;
|
||||
|
||||
@ApiProperty({ description: 'Blame request ID this claim originated from' })
|
||||
blameRequestId?: string;
|
||||
}
|
||||
|
||||
export class GetMyClaimsV2ResponseDto {
|
||||
@ApiProperty({ description: 'List of user claims', type: [ClaimListItemV2Dto] })
|
||||
list: ClaimListItemV2Dto[];
|
||||
|
||||
@ApiProperty({ description: 'Total count', example: 5 })
|
||||
total: number;
|
||||
}
|
||||
Reference in New Issue
Block a user