import { toTitleCase } from '../input/StringUtilities';
export const getCommonEntityName = (entityName) => {
    if (!entityName)
        return entityName;
    return toTitleCase(getSanitizedName(entityName));
};
export const getSanitizedName = (entityName) => {
    if (!entityName)
        return '';
    const entityNameParts = entityName.split('.');
    return entityNameParts[entityNameParts.length - 1];
};
export const getFullyQualifiedName = (udpObjectInfo) => {
    var _a;
    if (!udpObjectInfo)
        return '';
    const modelNameSpace = (_a = udpObjectInfo.namespaceStructure) === null || _a === void 0 ? void 0 : _a.model;
    if (modelNameSpace) {
        return `${modelNameSpace}.Models.${udpObjectInfo.sanitizedName}`;
    }
    else {
        return '';
    }
};
//# sourceMappingURL=entityUtilities.js.map