@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
69 lines • 1.89 kB
TypeScript
/**
* Comprehensive Change Detector
*
* Detects ALL types of changes across ALL Optimizely entities by comparing
* complete entity snapshots between syncs. This includes:
* - State changes (enabled/disabled, status)
* - Property changes (name, description, conditions)
* - Structural changes (added/removed entities)
* - Configuration changes (targeting, audiences, etc.)
*/
import { SQLiteEngine } from '../storage/SQLiteEngine.js';
export declare class ComprehensiveChangeDetector {
private storage;
private static readonly ENTITY_CONFIGS;
constructor(storage: SQLiteEngine);
/**
* Initialize snapshot tables for all entities
*/
initializeAllSnapshotTables(): Promise<void>;
/**
* Detect and record all changes for a project
*/
detectAllChanges(projectId: string): Promise<number>;
/**
* Detect changes for a specific entity type
*/
private detectEntityChanges;
/**
* Get current entities from the database
*/
private getCurrentEntities;
/**
* Get previous snapshots
*/
private getPreviousSnapshots;
/**
* Get entity ID based on config
*/
private getEntityId;
/**
* Prepare entity data for comparison (exclude certain columns)
*/
private prepareEntityData;
/**
* Hash entity data for comparison
*/
private hashEntityData;
/**
* Detect the type of change
*/
private detectChangeType;
/**
* Record a change in the change_history table
*/
private recordChange;
/**
* Update entity snapshot
*/
private updateSnapshot;
/**
* Remove entity snapshot (for deleted entities)
*/
private removeSnapshot;
/**
* Get table columns to build dynamic queries
*/
private getTableColumns;
}
//# sourceMappingURL=ComprehensiveChangeDetector.d.ts.map