Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class FlagshipConfig
implements IFlagshipConfig
Re-export
Abstract
import { FlagshipConfig } from "https://deno.land/x/flagship_io_js_sdk@3.1.0/config/index.ts";

Constructors

new
protected
FlagshipConfig(param: IFlagshipConfig)

Properties

private
optional
_apiKey: string
private
_decisionApiUrl: string
private
_disableCache: boolean
private
_enableClientCache: boolean
private
optional
_envId: string
private
_fetchNow: boolean
private
_hitCacheImplementation: IHitCacheImplementation
private
_hitDeduplicationTime: number
private
optional
_initialBucketing: BucketingDTO
private
_logLevel: LogLevel
private
_logManager: IFlagshipLogManager
private
optional
_onBucketingFail: (error: Error) => void
private
optional
_onBucketingSuccess: (param: { status: number; payload: BucketingDTO; }) => void
private
optional
_onBucketingUpdated: (lastUpdate: Date) => void
private
optional
_onLog: (
level: LogLevel,
tag: string,
message: string,
) => void
private
optional
_onUserExposure: (param: UserExposureInfo) => void
private
_pollingInterval: number
private
optional
_statusChangedCallback: (status: FlagshipStatus) => void
private
_timeout: number
private
_trackingMangerConfig: ITrackingManagerConfig
private
_visitorCacheImplementation: IVisitorCacheImplementation
protected
_decisionMode: DecisionMode
apiKey: string | undefined
decisionApiUrl: string
readonly
decisionMode: DecisionMode
disableCache: boolean
enableClientCache: boolean
envId: string | undefined
fetchNow: boolean
hitCacheImplementation: IHitCacheImplementation
hitDeduplicationTime: number
initialBucketing: BucketingDTO | undefined
logLevel: LogLevel
logManager: IFlagshipLogManager
onBucketingFail: ((error: Error) => void) | undefined
onBucketingSuccess: ((param: { status: number; payload: BucketingDTO; }) => void) | undefined
onBucketingUpdated: ((lastUpdate: Date) => void) | undefined
onLog: ((
level: LogLevel,
tag: string,
message: string,
) => void) | undefined
readonly
onUserExposure: ((param: UserExposureInfo) => void) | undefined
pollingInterval: number
statusChangedCallback: ((status: FlagshipStatus) => void) | undefined
timeout: number
readonly
trackingMangerConfig: ITrackingManagerConfig
visitorCacheImplementation: IVisitorCacheImplementation

Methods

protected
initSDKInfo(language?: number, sdkVersion?: string)