UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

63 lines 1.66 kB
/** * ViewOnlyFieldResolver - Resolves fields ONLY from views * * NO FALLBACKS - If a field isn't in a view, it's not queryable. * This replaces the complex FieldLocalityResolver with a simple, fast view-based system. */ export interface FieldResolution { viewName: string; columnName: string; isPreComputed: boolean; dataType: string; } export declare class ViewOnlyFieldResolver { private fieldMappings; constructor(); /** * Resolve a field to its view location * @throws Error if field is not available in any view */ resolve(fieldName: string): FieldResolution; /** * Check if a field is available */ isFieldAvailable(fieldName: string): boolean; /** * Get all available field names */ getAllFields(): string[]; /** * Get fields for a specific view */ getFieldsForView(viewName: string): string[]; /** * Get field metadata */ getFieldMetadata(fieldName: string): any; /** * Find similar field names for suggestions */ private getSimilarFields; /** * Simple fuzzy matching */ private fuzzyMatch; /** * Get statistics about field coverage */ getStats(): { totalFields: number; preComputedFields: number; views: Record<string, number>; dataTypes: Record<string, number>; }; /** * Generate a WHERE clause for a field */ generateWhereClause(fieldName: string, operator: string, value: any): string; /** * Get a diagnostic report */ getDiagnostics(): string; } //# sourceMappingURL=ViewOnlyFieldResolver.d.ts.map