import { toTitleCase } from "../input/StringUtilities.mjs";
//#region src/utilities/entities/entityUtilities.js
const getCommonEntityName = (entityName) => {
	if (!entityName) return entityName;
	return toTitleCase(getSanitizedName(entityName));
};
const getSanitizedName = (entityName) => {
	if (!entityName) return "";
	const entityNameParts = entityName.split(".");
	return entityNameParts[entityNameParts.length - 1];
};
const getFullyQualifiedName = (udpObjectInfo) => {
	if (!udpObjectInfo) return "";
	const modelNameSpace = udpObjectInfo.namespaceStructure?.model;
	if (modelNameSpace) return `${modelNameSpace}.Models.${udpObjectInfo.sanitizedName}`;
	else return "";
};
//#endregion
export { getCommonEntityName, getFullyQualifiedName, getSanitizedName };

//# sourceMappingURL=entityUtilities.mjs.map