/*! * Convert JS SDK * Version 1.0.0 * Copyright(c) 2020 Convert Insights, Inc * License Apache-2.0 */ import { Entity, ConfigResponseData, IdentityField, BucketedVariation, StoreData, VisitorSegments, ConfigExperience, BucketingAttributes, LocationAttributes, GoalData } from '../../../types'; import { DataStoreManagerInterface } from './data-store-manager'; import { BucketingError, ConversionSettingKey, RuleError } from '../../../enums'; export interface DataManagerInterface { data: ConfigResponseData; dataStoreManager: DataStoreManagerInterface; reset(): any; putData(storeKey: string, storeData: StoreData): any; getData(storeKey: string): StoreData; getStoreKey(visitorId: string): string; selectLocations(visitorId: string, items: Array>, attributes: LocationAttributes): Array | RuleError>; matchRulesByField(visitorId: string, identity: string, identityField: IdentityField, attributes: BucketingAttributes): ConfigExperience | RuleError; getBucketing(visitorId: string, experienceKey: string, attributes: BucketingAttributes): BucketedVariation | RuleError | BucketingError; getBucketingById(visitorId: string, experienceId: string, attributes: BucketingAttributes): BucketedVariation | RuleError | BucketingError; convert(visitorId: string, goalId: string, goalRule?: Record, goalData?: Array, segments?: VisitorSegments, conversionSetting?: Record): RuleError | boolean; getEntitiesList(entityType: string): Array; getEntitiesListObject(entityType: string, field?: IdentityField): Record; getEntity(key: string, entityType: string): Entity; getEntities(keys: Array, entityType: string): Array; getEntityById(id: string, entityType: string): Entity; getEntitiesByIds(ids: Array, entityType: string): Array; getItemsByKeys(keys: Array, path: string): Array>; getItemsByIds(ids: Array, path: string): Array>; getSubItem(entityType: string, entityIdentity: string, subEntityType: string, subEntityIdentity: string, identityField: IdentityField, subIdentityField: IdentityField): Record; filterReportSegments(visitorProperties: Record): Record; isValidConfigData(data: ConfigResponseData): boolean; setDataStore(dataStore: any): void; }