@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
42 lines • 1.26 kB
TypeScript
/**
* Entity Table Mapper
*
* Handles conversion between entity names (singular) and table names (plural).
* This solves the mismatch between internal entity references and SQL table names.
*
* Examples:
* - Entity: 'flag' -> Table: 'flags'
* - Entity: 'audience' -> Table: 'audiences'
* - Entity: 'flag_environment' -> Table: 'flag_environments'
*/
export declare class EntityTableMapper {
private readonly entityToTableMap;
private readonly tableToEntityMap;
constructor();
/**
* Convert entity name (singular) to table name (plural)
*/
getTableName(entity: string): string;
/**
* Convert table name (plural) to entity name (singular)
*/
getEntityName(table: string): string;
/**
* Check if a name is an entity name (singular)
*/
isEntityName(name: string): boolean;
/**
* Check if a name is a table name (plural)
*/
isTableName(name: string): boolean;
/**
* Normalize a name to entity form (singular)
*/
toEntityName(name: string): string;
/**
* Normalize a name to table form (plural)
*/
toTableName(name: string): string;
}
export declare const entityTableMapper: EntityTableMapper;
//# sourceMappingURL=EntityTableMapper.d.ts.map