class VisitorStrategyAbstract
implements Omit<IVisitor, >
| "visitorId"
| "anonymousId"
| "flagsData"
| "modifications"
| "context"
| "hasConsented"
| "getModificationsArray"
| "getFlagsDataArray"
| "getFlag"
Abstract
import { VisitorStrategyAbstract } from "https://deno.land/x/flagship_io_js_sdk@3.1.2/visitor/VisitorStrategyAbstract.ts";
Constructors
new
VisitorStrategyAbstract(visitor: VisitorAbstract)Properties
protected
readonly
configManager: IConfigManagerprotected
readonly
decisionManager: IDecisionManagerprotected
readonly
trackingManager: ITrackingManagerprotected
visitor: VisitorAbstractreadonly
config: IFlagshipConfigMethods
protected
checKLookupVisitorData(item: VisitorCacheDTO): booleanprotected
checKLookupVisitorDataV1(item: VisitorCacheDTO): booleanprotected
flushVisitor(): Promise<void>protected
hasTrackingManager(process: string): booleanprotected
abstract
sendActivate(modification: FlagDTO): Promise<void>abstract
deprecated
activateModification(key: string): Promise<void>abstract
deprecated
activateModifications(keys: { key: string; }[]): Promise<void>abstract
activateModifications(keys: string[]): Promise<void>abstract
activateModifications(params: Array<{ key: string; }> | Array<string>): Promise<void>abstract
authenticate(visitorId: string): voidcacheVisitor(): Promise<void>
abstract
clearContext(): voidabstract
fetchFlags(): Promise<void>abstract
getAllFlagsData(activate: boolean): Promise<{ visitorId: string; campaigns: CampaignDTO[]; }>abstract
getAllModifications(activate: boolean): Promise<{ visitorId: string; campaigns: CampaignDTO[]; }>abstract
getFlagMetadata(param: { metadata: IFlagMetadata; key?: string; hasSameType: boolean; }): IFlagMetadataabstract
getFlagValue<T>(param: { key: string; defaultValue: T; flag?: FlagDTO; userExposed?: boolean; }): Tabstract
getFlatsDataForCampaign(campaignId: string, activate: boolean): Promise<{ visitorId: string; campaigns: CampaignDTO[]; }>abstract
getModification<T>(params: modificationsRequested<T>): Promise<T>abstract
getModificationInfo(key: string): Promise<FlagDTO | null>abstract
getModificationInfoSync(key: string): FlagDTO | nullabstract
getModifications<T>(params: modificationsRequested<T>[], activateAll?: boolean): Promise<Record<string, T>>abstract
getModificationsForCampaign(campaignId: string, activate: boolean): Promise<{ visitorId: string; campaigns: CampaignDTO[]; }>abstract
getModificationsSync<T>(params: modificationsRequested<T>[], activateAll?: boolean): Record<string, T>abstract
getModificationSync<T>(params: modificationsRequested<T>): TlookupVisitor(): Promise<void>
abstract
sendHit(hit: HitAbstract): Promise<void>abstract
sendHit(hit: ): Promise<void>abstract
sendHits(hit: HitAbstract[]): Promise<void>abstract
sendHits(hits: ): Promise<void>setConsent(hasConsented: boolean): void
abstract
synchronizeModifications(): Promise<void>abstract
unauthenticate(): voidupdateCampaigns(campaigns: CampaignDTO[]): void
abstract
updateContext(key: string, value: primitive): voidabstract
updateContext(context: Record<string, primitive>): voidabstract
updateContext(context: Record<string, primitive> | string, value?: primitive): voidabstract
userExposed<T>(param: { key: string; flag?: FlagDTO; defaultValue: T; }): Promise<void>