1
0
forked from Yara724/api

merge upstream

This commit is contained in:
2026-06-27 09:30:55 +03:30
20 changed files with 1186 additions and 169 deletions

View File

@@ -30,6 +30,7 @@ import {
} from "src/helpers/unified-file-status";
import { applyListQueryV2, isInListDateRange, parseListDateRange } from "src/helpers/list-query-v2";
import { ClaimCaseDbService } from "src/claim-request-management/entites/db-service/claim-case.db.service";
import { LookupsService } from "src/lookups/lookups.service";
import { ListQueryV2Dto } from "src/common/dto/list-query-v2.dto";
import {
UnifiedFileStatusReportDto,
@@ -127,6 +128,7 @@ export class ExpertBlameService {
private readonly smsOrchestrationService: SmsOrchestrationService,
private readonly expertFileActivityDbService: ExpertFileActivityDbService,
private readonly claimCaseDbService: ClaimCaseDbService,
private readonly lookupsService: LookupsService,
) {}
private async loadClaimsByPublicIds(
@@ -2425,21 +2427,7 @@ export class ExpertBlameService {
}
async getAccidentField() {
try {
const ac_reason = await readFile(
"src/static/ACCIDENT_REASON.json",
"utf-8",
);
const ac_type = await readFile("src/static/ACCIDENT_TYPE.json", "utf-8");
const ac_way = await readFile("src/static/ACCIDENT_WAY.json", "utf-8");
return {
accidentReason: JSON.parse(ac_reason),
accidentType: JSON.parse(ac_type),
accidentWay: JSON.parse(ac_way),
};
} catch (err) {
this.logger.error(err);
}
return await this.lookupsService.getAccidentFields();
}
async inPersonVisit(requestId: string, actorDetail: any) {