This commit is contained in:
SepehrYahyaee
2026-07-19 11:44:15 +03:30
parent 7241ae3270
commit 06d69aa4d0
3 changed files with 287 additions and 0 deletions

View File

@@ -240,6 +240,23 @@ export class ExpertInsurerController {
);
}
@Get("files/:publicId/timeline")
@ApiParam({ name: "publicId" })
@ApiOperation({
summary: "Activity timeline for a case",
description:
"Returns a chronological list of all history events for the blame and/or claim associated with the given publicId. Each event has: source, type, timestamp, actor, metadata.",
})
async getFileTimeline(
@CurrentUser() insurer,
@Param("publicId") publicId: string,
) {
return await this.expertInsurerService.getFileTimeline(
insurer.clientKey,
publicId,
);
}
@Get("files/:publicId")
@ApiParam({ name: "publicId" })
async getFileDetailsByPublicId(