Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
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.3/visitor/VisitorStrategyAbstract.ts";

Constructors

new
VisitorStrategyAbstract(visitor: VisitorAbstract)

Properties

protected
readonly
configManager: IConfigManager
protected
readonly
decisionManager: IDecisionManager
protected
readonly
trackingManager: ITrackingManager
protected
visitor: VisitorAbstract
readonly
config: IFlagshipConfig

Methods

protected
checKLookupVisitorData(item: VisitorCacheDTO): boolean
protected
checKLookupVisitorDataV1(item: VisitorCacheDTO): boolean
protected
flushVisitor(): Promise<void>
protected
hasTrackingManager(process: string): boolean
protected
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): void
cacheVisitor(): Promise<void>
abstract
clearContext(): void
abstract
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; }): IFlagMetadata
abstract
getFlagValue<T>(param: { key: string; defaultValue: T; flag?: FlagDTO; userExposed?: boolean; }): T
abstract
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 | null
abstract
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>
lookupVisitor(): Promise<void>
abstract
sendHit(hit: HitAbstract): Promise<void>
abstract
sendHit(hit: IHit): Promise<void>
abstract
sendHit(hit: HitShape): Promise<void>
abstract
sendHit(hit: ): Promise<void>
abstract
sendHits(hit: HitAbstract[]): Promise<void>
abstract
sendHits(hit: IHit[]): Promise<void>
abstract
sendHits(hit: HitShape[]): Promise<void>
abstract
sendHits(hits: ): Promise<void>
setConsent(hasConsented: boolean): void
abstract
synchronizeModifications(): Promise<void>
abstract
unauthenticate(): void
updateCampaigns(campaigns: CampaignDTO[]): void
abstract
updateContext(key: string, value: primitive): void
abstract
updateContext(context: Record<string, primitive>): void
abstract
updateContext(context: Record<string, primitive> | string, value?: primitive): void
abstract
userExposed<T>(param: { key: string; flag?: FlagDTO; defaultValue: T; }): Promise<void>