UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

55 lines 1.6 kB
interface Logger { debug: (message: string, meta?: any) => void; info: (message: string, meta?: any) => void; warn: (message: string, meta?: any) => void; error: (message: string, meta?: any) => void; } export interface AdoptionResult { found: boolean; entity?: any; adoptionReason?: string; searchCriteria?: Record<string, any>; } export interface AdoptionOptions { checkApi?: boolean; strictMatch?: boolean; adoptionStrategy?: 'always' | 'on-conflict' | 'never'; } export declare class EntityAdoptionService { private entityRouter; private cache; private logger; constructor(entityRouter: any, cache: any, logger: Logger); /** * Main entry point - check if entity should be adopted */ checkForAdoption(entityType: string, entityData: any, projectId: string, options?: AdoptionOptions): Promise<AdoptionResult>; /** * Determine if entity type should be checked for existence * Copied from EntityOrchestrator line 4110 */ private shouldCheckForExistence; /** * Extract identifying fields based on entity type * Copied from EntityOrchestrator line 4151 */ private extractReference; /** * Find existing entity by reference */ private findExisting; /** * Search cache for existing entity */ private searchCache; /** * Search API for existing entity */ private searchApi; /** * Find best match from search results */ private findBestMatch; } export {}; //# sourceMappingURL=EntityAdoptionService.d.ts.map