feat(data-loading): load fee schedule catalogs and data from generated JSON payloads instead of bundled Germany TypeScript exports

This commit is contained in:
2026-05-14 12:41:31 +00:00
parent 04248e0629
commit d79e013ebf
34 changed files with 90609 additions and 90525 deletions
+3 -8
View File
@@ -5,12 +5,7 @@ import type {
IFeeScheduleFeeRow,
IFeeScheduleRuleSection,
} from './feeschedules.types.js';
import { GERMANY_FEE_SCHEDULE_CATALOG } from './feeschedules.germany.js';
import { GERMANY_FEE_SCHEDULE_DATA } from './germany/index.js';
export const FEE_SCHEDULE_CATALOGS: ICountryFeeScheduleCatalog[] = [
GERMANY_FEE_SCHEDULE_CATALOG,
];
import { FEE_SCHEDULE_CATALOGS, FEE_SCHEDULE_DATA } from './feeschedules.data.js';
export class FeeSchedules {
private catalogs: ICountryFeeScheduleCatalog[];
@@ -18,7 +13,7 @@ export class FeeSchedules {
constructor(
catalogs: ICountryFeeScheduleCatalog[] = FEE_SCHEDULE_CATALOGS,
data: IFeeScheduleData[] = GERMANY_FEE_SCHEDULE_DATA,
data: IFeeScheduleData[] = FEE_SCHEDULE_DATA,
) {
this.catalogs = catalogs;
this.data = data;
@@ -131,5 +126,5 @@ export class FeeSchedules {
export const feeSchedules = new FeeSchedules();
const normalizeSearchValue = (value: string): string => {
return value.trim().toLocaleLowerCase('de-DE').replace(/\s+/g, ' ');
return value.trim().toLocaleLowerCase().replace(/\s+/g, ' ');
};