export const ATTENTION_STATUSES = [
    'OPEN',
    'ACKNOWLEDGED',
    'IN_PROGRESS',
    'DONE',
    'WONT_DO',
];
export const ATTENTION_PRIORITIES = [
    'URGENT',
    'HIGH',
    'NORMAL',
    'LOW',
];
const STATUS_ALIASES = {
    open: 'OPEN',
    reopen: 'OPEN',
    reopened: 'OPEN',
    acknowledged: 'ACKNOWLEDGED',
    acknowledge: 'ACKNOWLEDGED',
    ack: 'ACKNOWLEDGED',
    in_progress: 'IN_PROGRESS',
    'in-progress': 'IN_PROGRESS',
    inprogress: 'IN_PROGRESS',
    working: 'IN_PROGRESS',
    done: 'DONE',
    resolved: 'DONE',
    complete: 'DONE',
    completed: 'DONE',
    wont_do: 'WONT_DO',
    'wont-do': 'WONT_DO',
    wontdo: 'WONT_DO',
    declined: 'WONT_DO',
};
const PRIORITY_ALIASES = {
    urgent: 'URGENT',
    critical: 'URGENT',
    high: 'HIGH',
    normal: 'NORMAL',
    medium: 'NORMAL',
    low: 'LOW',
};
function normalizeToken(value) {
    if (typeof value !== 'string')
        return null;
    const token = value.trim();
    return token ? token : null;
}
export function normalizeAttentionStatus(value) {
    const token = normalizeToken(value);
    if (!token)
        return null;
    if (ATTENTION_STATUSES.includes(token)) {
        return token;
    }
    return STATUS_ALIASES[token.toLowerCase()] ?? null;
}
export function normalizeAttentionPriority(value) {
    if (value === undefined || value === null || value === '')
        return 'NORMAL';
    const token = normalizeToken(value);
    if (!token)
        return null;
    if (ATTENTION_PRIORITIES.includes(token)) {
        return token;
    }
    return PRIORITY_ALIASES[token.toLowerCase()] ?? null;
}
//# sourceMappingURL=attentionApi.js.map