daghi problem fixed , 2 apis for reporting counts added

This commit is contained in:
2026-04-21 16:43:15 +03:30
parent a3156881b8
commit 75b7e5ecad
6 changed files with 144 additions and 4 deletions

View File

@@ -34,6 +34,16 @@ class InPersonVisitV2Dto {
export class ExpertClaimV2Controller {
constructor(private readonly expertClaimService: ExpertClaimService) { }
@Get("report/status-counts")
@ApiOperation({
summary: "Count claim cases by grouped status bucket (tenant)",
description:
"IN_PROGRESS groups user-phase statuses before submission is complete (CREATED through CAPTURING_PART_DAMAGES). Other keys match ClaimCaseStatus. Scoped to the insurer in the JWT.",
})
async getStatusReportBucketsV2(@CurrentUser() actor: any) {
return await this.expertClaimService.getStatusReportBucketsV2(actor);
}
@Get("requests")
@ApiOperation({
summary: "List available claim requests for damage expert",