export type DictionaryEntryType = 'ENTRY' | 'FALSE_POSITIVE' | 'FALSE_RECOMMENDATION';
export type DictionaryTypeUrl = 'entries' | 'falsePositiveEntries' | 'falseRecommendationEntries';
export type DictionaryType = 'dictionary' | 'false-positive' | 'false-recommendations';

export const DictionaryEntryTypes: Record<DictionaryEntryType, DictionaryEntryType> = {
    ENTRY: 'ENTRY' as DictionaryEntryType,
    FALSE_POSITIVE: 'FALSE_POSITIVE' as DictionaryEntryType,
    FALSE_RECOMMENDATION: 'FALSE_RECOMMENDATION' as DictionaryEntryType,
} as const;

export const DICTIONARY_TYPE_KEY_MAP: Record<DictionaryType, DictionaryTypeUrl> = {
    dictionary: 'entries' as DictionaryTypeUrl,
    'false-positive': 'falsePositiveEntries' as DictionaryTypeUrl,
    'false-recommendations': 'falseRecommendationEntries' as DictionaryTypeUrl,
} as const;

export const DICTIONARY_TO_ENTRY_TYPE_MAP: Record<DictionaryType, DictionaryEntryType> = {
    dictionary: DictionaryEntryTypes.ENTRY,
    'false-positive': DictionaryEntryTypes.FALSE_POSITIVE,
    'false-recommendations': DictionaryEntryTypes.FALSE_RECOMMENDATION,
} as const;
