@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
34 lines • 1.24 kB
TypeScript
/**
* Generic State Change Detector
*
* Compares entity states between syncs to detect and record state changes
* that aren't captured by Optimizely's change history API.
*
* Supports multiple entity types: flags, experiments, variations, rulesets, rules, extensions, webhooks
*/
import { SQLiteEngine } from '../storage/SQLiteEngine.js';
export declare class StateChangeDetector {
private storage;
private static readonly ENTITY_CONFIGS;
constructor(storage: SQLiteEngine);
/**
* Detect and record state changes for a specific entity type
*/
detectAndRecordStateChanges(projectId: string, entityType: keyof typeof StateChangeDetector.ENTITY_CONFIGS): Promise<number>;
/**
* Initialize snapshot tables for all supported entity types
*/
initializeSnapshotTables(): Promise<void>;
private createSnapshotTable;
private getCurrentStates;
private getPreviousStates;
private createStateKey;
private detectChanges;
private recordStateChange;
private updateStateSnapshot;
/**
* Detect state changes for all supported entity types
*/
detectAllStateChanges(projectId: string): Promise<number>;
}
//# sourceMappingURL=StateChangeDetector.d.ts.map