import { ValuesOf } from '@iqser/common-ui/lib/utils';

export const LogEntryEngines = {
    DICTIONARY: 'DICTIONARY',
    NER: 'NER',
    RULE: 'RULE',
} as const;

export type LogEntryEngine = ValuesOf<typeof LogEntryEngines>;

export const ManualRedactionTypes = {
    ADD_LOCALLY: 'ADD_LOCALLY',
    ADD_TO_DICTIONARY: 'ADD_TO_DICTIONARY',
    REMOVE_LOCALLY: 'REMOVE_LOCALLY',
    REMOVE_FROM_DICTIONARY: 'REMOVE_FROM_DICTIONARY',
    FORCE_REDACT: 'FORCE_REDACT',
    FORCE_HINT: 'FORCE_HINT',
    RECATEGORIZE: 'RECATEGORIZE',
    LEGAL_BASIS_CHANGE: 'LEGAL_BASIS_CHANGE',
    RESIZE: 'RESIZE',
} as const;

export type ManualRedactionType = ValuesOf<typeof ManualRedactionTypes>;

export const LogEntryStatuses = {
    APPROVED: 'APPROVED',
    DECLINED: 'DECLINED',
    REQUESTED: 'REQUESTED',
} as const;

export type LogEntryStatus = ValuesOf<typeof LogEntryStatuses>;
