forked from Yara724/api
YARA-854
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user