import TableColumnType from "./TableColumnType";
var ColumnLength;
(function (ColumnLength) {
    ColumnLength[ColumnLength["Version"] = 30] = "Version";
    ColumnLength[ColumnLength["Slug"] = 100] = "Slug";
    ColumnLength[ColumnLength["Email"] = 100] = "Email";
    ColumnLength[ColumnLength["Domain"] = 100] = "Domain";
    ColumnLength[ColumnLength["Color"] = 10] = "Color";
    ColumnLength[ColumnLength["Name"] = 50] = "Name";
    ColumnLength[ColumnLength["Description"] = 500] = "Description";
    ColumnLength[ColumnLength["LongText"] = 500] = "LongText";
    ColumnLength[ColumnLength["Password"] = 500] = "Password";
    ColumnLength[ColumnLength["ShortURL"] = 100] = "ShortURL";
    ColumnLength[ColumnLength["ShortText"] = 100] = "ShortText";
    ColumnLength[ColumnLength["HashedString"] = 64] = "HashedString";
    ColumnLength[ColumnLength["Phone"] = 30] = "Phone";
    ColumnLength[ColumnLength["OTP"] = 8] = "OTP";
})(ColumnLength || (ColumnLength = {}));
export const getMaxLengthFromTableColumnType = (type) => {
    if (type === TableColumnType.Version) {
        return ColumnLength.Version;
    }
    if (type === TableColumnType.Slug) {
        return ColumnLength.Slug;
    }
    if (type === TableColumnType.Email) {
        return ColumnLength.Email;
    }
    if (type === TableColumnType.Domain) {
        return ColumnLength.Domain;
    }
    if (type === TableColumnType.Color) {
        return ColumnLength.Color;
    }
    if (type === TableColumnType.Name) {
        return ColumnLength.Name;
    }
    if (type === TableColumnType.Description) {
        return ColumnLength.Description;
    }
    if (type === TableColumnType.LongText) {
        return ColumnLength.LongText;
    }
    if (type === TableColumnType.Password) {
        return ColumnLength.Password;
    }
    if (type === TableColumnType.ShortURL) {
        return ColumnLength.ShortURL;
    }
    if (type === TableColumnType.ShortText) {
        return ColumnLength.ShortText;
    }
    if (type === TableColumnType.HashedString) {
        return ColumnLength.HashedString;
    }
    if (type === TableColumnType.Phone) {
        return ColumnLength.Phone;
    }
    if (type === TableColumnType.OTP) {
        return ColumnLength.OTP;
    }
    return undefined;
};
export default ColumnLength;
//# sourceMappingURL=ColumnLength.js.map