This commit is contained in:
2026-04-29 14:26:04 +03:30
parent 80ef885d3b
commit 993d809de2
3 changed files with 251 additions and 223 deletions

View File

@@ -1,29 +1,38 @@
/**
* Native workflow status keys from blameCases (`CaseStatus`) or claimCases (`ClaimCaseStatus`),
* plus `all` = total matching documents for the tenant.
* V2-style status buckets (`IN_PROGRESS` + native statuses) for insurer tenant scope.
* `unifiedByPublicId.total` matches merging blame + claim by `publicId` (see insurer `files` API).
*/
export class BlameCaseStatusCountReportDtoRs {
[key: string]: number;
constructor(report: Record<string, number>) {
Object.assign(this, report);
}
}
export class ClaimCaseStatusCountReportDtoRs {
[key: string]: number;
constructor(report: Record<string, number>) {
Object.assign(this, report);
}
}
export class CompanyAllRequestsCountReportDtoRs {
blame: Record<string, number>;
export class InsurerRequestsSummaryDtoRs {
claim: Record<string, number>;
blame: Record<string, number>;
unifiedByPublicId: { total: number };
constructor(blame: Record<string, number>, claim: Record<string, number>) {
this.blame = blame;
constructor(
claim: Record<string, number>,
blame: Record<string, number>,
unifiedTotal: number,
) {
this.claim = claim;
this.blame = blame;
this.unifiedByPublicId = { total: unifiedTotal };
}
}
export class InsurerPerMonthReportRowDtoRs {
stDate: Date;
enDate: Date;
faLabel: string;
data: InsurerRequestsSummaryDtoRs;
constructor(
stDate: Date,
enDate: Date,
faLabel: string,
data: InsurerRequestsSummaryDtoRs,
) {
this.stDate = stDate;
this.enDate = enDate;
this.faLabel = faLabel;
this.data = data;
}
}