From 4c0939205f6dd76610863e0d45b4a92be9d1352b Mon Sep 17 00:00:00 2001 From: Nazar Makar Date: Thu, 18 Dec 2025 12:17:15 +0200 Subject: [PATCH 1/2] fix: change netRateSchemes type from array to single object in ReportSettinsConfig --- src/reports/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reports/index.ts b/src/reports/index.ts index cac5bcee3..14e40f81a 100644 --- a/src/reports/index.ts +++ b/src/reports/index.ts @@ -839,7 +839,7 @@ export namespace ReportsModel { export interface ReportSettinsConfig { baseRates: BaseRate; - netRateSchemes: NetRateSchemas[]; + netRateSchemes: NetRateSchemas; individualRates: IndividualRate[]; } From 24beef268c4eee47183358acf564cb643c2d50c4 Mon Sep 17 00:00:00 2001 From: Nazar Makar Date: Thu, 18 Dec 2025 12:25:01 +0200 Subject: [PATCH 2/2] fix: update netRateSchemes structure to include match types in ReportsModel.ReportSettinsConfig --- tests/reports/api.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/reports/api.test.ts b/tests/reports/api.test.ts index f32cdb7ae..8ff58c960 100644 --- a/tests/reports/api.test.ts +++ b/tests/reports/api.test.ts @@ -103,7 +103,11 @@ describe('Reports API', () => { const config: ReportsModel.ReportSettinsConfig = { individualRates: [], baseRates: { fullTranslation: 0, proofread: 0 }, - netRateSchemes: [], + netRateSchemes: { + tmMatch: [], + mtMatch: [], + suggestionMatch: [], + }, }; const isPublic = false; const userId = 123;