export function mapDotNetTypeToAgGridType(type) {
    const normalized = type.replace(/\?$/, '').trim().toLowerCase();
    if (normalized === 'byte' ||
        normalized === 'short' ||
        normalized === 'int' ||
        normalized === 'long' ||
        normalized === 'float' ||
        normalized === 'double' ||
        normalized === 'decimal') {
        return 'number';
    }
    if (normalized === 'string' || normalized === 'guid') {
        return 'text';
    }
    if (normalized === 'bool' || normalized === 'boolean') {
        return 'boolean';
    }
    if (normalized === 'date') {
        return 'dateString';
    }
    if (normalized === 'datetime') {
        return 'dateTimeString';
    }
    if (normalized.startsWith('dictionary') || normalized === 'object') {
        return 'object';
    }
    // fallback default
    return 'text';
}
//# sourceMappingURL=crudHelper.js.map