@simonecoelhosfo/optimizely-mcp-server
Version:
Optimizely MCP Server for AI assistants with integrated CLI tools
155 lines • 3.8 kB
TypeScript
/**
* Dynamic Analytics Query Engine - Constants and Patterns
*/
export declare const QUERY_PATTERNS: {
grouping: RegExp;
counting: RegExp;
trending: RegExp;
comparison: RegExp;
finding: RegExp;
analyzing: RegExp;
summarizing: RegExp;
experiments: RegExp;
flags: RegExp;
audiences: RegExp;
variations: RegExp;
rules: RegExp;
events: RegExp;
attributes: RegExp;
pages: RegExp;
projects: RegExp;
environments: RegExp;
rulesets: RegExp;
traffic: RegExp;
conversion: RegExp;
complexity: RegExp;
usage: RegExp;
lastN: RegExp;
between: RegExp;
since: RegExp;
before: RegExp;
after: RegExp;
hasProperty: RegExp;
notHasProperty: RegExp;
moreThan: RegExp;
lessThan: RegExp;
equals: RegExp;
contains: RegExp;
byField: RegExp;
groupedBy: RegExp;
perField: RegExp;
orderBy: RegExp;
sortBy: RegExp;
topN: RegExp;
bottomN: RegExp;
jsonPath: RegExp;
arrayIndex: RegExp;
nestedProperty: RegExp;
};
export declare const COMMON_METRICS: {
count: {
name: string;
description: string;
aggregation: string;
type: string;
};
distinct_count: {
name: string;
description: string;
aggregation: string;
type: string;
};
average: {
name: string;
description: string;
aggregation: string;
type: string;
};
sum: {
name: string;
description: string;
aggregation: string;
type: string;
};
percentage: {
name: string;
description: string;
aggregation: string;
type: string;
};
};
export declare const JSON_PATH_MAPPINGS: {
'flag.variables': string;
'flag.environments': string;
'flag.variations': string;
'flag.rules': string;
'experiment.audiences': string;
'experiment.metrics': string;
'experiment.pages': string;
'experiment.traffic': string;
'variation.variables': string;
'variation.actions': string;
'variation.weight': string;
'audience.conditions': string;
'audience.segments': string;
cdnVariationSettings: string;
customCode: string;
urlTargeting: string;
};
export declare const QUERY_LIMITS: {
defaultLimit: number;
maxLimit: number;
maxGroupByFields: number;
maxFilterConditions: number;
maxJoins: number;
maxJsonataComplexity: number;
queryTimeout: number;
interactiveTimeout: number;
};
export declare const ERROR_CODES: {
INVALID_QUERY: string;
PARSE_ERROR: string;
VALIDATION_ERROR: string;
EXECUTION_ERROR: string;
TIMEOUT_ERROR: string;
PERMISSION_ERROR: string;
COMPLEXITY_ERROR: string;
JSONATA_ERROR: string;
};
export declare const INSIGHT_PATTERNS: {
highVariationCount: {
condition: (data: any) => boolean;
type: string;
title: string;
template: string;
};
unusedAudiences: {
condition: (data: any) => boolean;
type: string;
title: string;
template: string;
};
complexTargeting: {
condition: (data: any) => boolean;
type: string;
title: string;
template: string;
};
trafficImbalance: {
condition: (data: any) => boolean;
type: string;
title: string;
template: string;
};
};
export declare const RESERVED_KEYWORDS: string[];
export declare const SAFE_JSON_FUNCTIONS: string[];
export declare const TEMPLATE_CATEGORIES: {
VARIABLE_ANALYSIS: string;
COMPLEXITY_ANALYSIS: string;
PERFORMANCE_TRENDS: string;
AUDIENCE_USAGE: string;
CHANGE_TRACKING: string;
CROSS_ENTITY: string;
};
//# sourceMappingURL=constants.d.ts.map