/** Aurora YAML schema types — wire format for the Sheets sync. */
export const PROPERTY_HEADERS = [
    'name',
    'type',
    'primaryKey',
    'nullable',
    'index',
    'indexUsing',
    'maxLength/length',
    'decimals',
    'defaultValue',
    'enumOptions',
    'arrayOptions.type',
    'arrayOptions.maxLength',
    'arrayOptions.enumOptions',
    'rel.type',
    'rel.singularName',
    'rel.aggregateName',
    'rel.modulePath',
    'rel.key',
    'rel.field',
    'rel.avoidConstraint',
    'autoIncrement',
    'isI18n',
    'example',
    'description',
];
export const METADATA_LABELS = [
    'Module Name',
    'Module Names (plural)',
    'Aggregate Name',
    'Bounded Context',
    'Version',
    'Has OAuth',
    'Has Tenant',
    'Has Auditing',
    'Description',
    'Solid Icon',
    'Outline Icon',
];
/** Header \u2192 schema path remap for special cases. Headers use `:` as nested-path separator. */
export const HEADER_TO_SCHEMA_MAP = {
    hasAuth: 'hasOAuth',
};
export function getSchemaPath(header) {
    return HEADER_TO_SCHEMA_MAP[header] || header;
}
// Checkmark used as boolean TRUE in the spreadsheet (CHAR 9989).
export const CHECKMARK = '\u2713';
/** Parse a boolean cell. Accepts both 'TRUE' (case-insensitive) and the checkmark character. */
export function parseBooleanValue(value) {
    if (!value)
        return false;
    const normalized = value.trim().toUpperCase();
    return normalized === 'TRUE' || value.trim() === CHECKMARK;
}
