import { InvestmentResponse } from '../InvestmentsConnector/InvestmentsJSON'; export type FieldsMapping = { fixdInc: FieldMappingEntry; fixedInc: FieldMappingEntry; surveyedFixedInc: FieldMappingEntry; }; export type FieldMappingEntry = { pattern: RegExp; column: string; allSector: string[]; superSector: string[]; primarySector: string[]; secondarySector: string[]; governmentPerRegionSuperSector?: string[]; treasuryPerRegionSecondarySector?: string[]; inflationPerRegionSecondarySector?: string[]; agencyPerRegionSecondarySector?: string[]; }; export type SectorAccumulatorKey = 'allSector' | 'superSector' | 'primarySector' | 'secondarySector' | 'governmentPerRegionSuperSector' | 'treasuryPerRegionSecondarySector' | 'inflationPerRegionSecondarySector' | 'agencyPerRegionSecondarySector'; declare namespace FixedIncomeSectorsBreakdownJSON { interface FixedIncomeSectorsBreakdownResponse extends InvestmentResponse { morningstarFixedIncomeSectorsBreakdown: MorningstarFixedIncomeSectorsBreakdownItem; } interface MorningstarFixedIncomeSectorsBreakdownItem { [key: string]: number | string; } } export default FixedIncomeSectorsBreakdownJSON;