/// import Experiment from '../configurations/experiment'; import FeatureFlag from '../configurations/featureFlag'; export interface AutomationExperimentInterface { deviations: AutomationDeviationInterface[]; id: string; name: string; respoolTime?: AutomationRespoolTimeInterface[]; segment?: AutomationSegmentInterface; siteCode: string; siteId: string; status: "ACTIVE"; type: "HYBRID" | "SERVER_SIDE"; variations: AutomationVariationsInterface[]; } export interface AutomationFeatureFlagInterface { deviations: AutomationDeviationInterface[]; featureStatus: string; id: string; identificationKey: string; name: string; respoolTime?: AutomationRespoolTimeInterface[]; schedules: { dateStart?: string; dateEnd?: string; }[] | null; segment?: AutomationSegmentInterface; siteCode: string; siteId: string; status: "ACTIVE"; type: "HYBRID" | "SERVER_SIDE"; variations: AutomationVariationsInterface[]; } export interface AutomationVariationsInterface { id: string; customJson: any; } export interface AutomationRespoolTimeInterface { variationId: string; value: number; } export interface AutomationSegmentInterface { conditionsData: ConditionsInterface; } export interface AutomationDeviationInterface { variationId: string; value: number; } export interface SDKConfiguration { visitor_data_maximum_size?: number; actions_configuration_refresh_interval?: number; } export interface ConfigurationInterface { updateTime: number; experiments: ConfigurationExperimentsInterface; featureFlags: ConfigurationFeatureFlagsInterface; } export interface ConfigurationExperimentsInterface { [id: string]: Experiment; } export interface ConfigurationFeatureFlagsInterface { [id: string]: FeatureFlag; } export interface CallbackInterface { success: () => void; error: () => void; timeout: NodeJS.Timeout; } export interface DataInterface { obtainFullPostTextLine: () => string; type: string; } export interface ConditionsInterface { firstLevel: any; firstLevelOrOperators: any; } export interface IteratorInterface { next: () => any; hasNext: () => boolean; }