Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class DecisionManager
implements IDecisionManager
Abstract
import { DecisionManager } from "https://deno.land/x/flagship_io_js_sdk@4.0.4/decision/DecisionManager.ts";

Constructors

new
DecisionManager(httpClient: IHttpClient, config: IFlagshipConfig)

Properties

private
_flagshipInstanceId: string
private
_statusChangedCallback: (status: FSSdkStatus) => void
private
_trackingManager: ITrackingManager
private
optional
_troubleshooting: TroubleshootingData
protected
optional
_bucketingContent: BucketingDTO
protected
_config: IFlagshipConfig
protected
_httpClient: IHttpClient
protected
optional
_lastBucketingTimestamp: string
protected
_panic: boolean
protected
writeonly
panic: boolean
readonly
config: IFlagshipConfig
flagshipInstanceId: string
readonly
lastBucketingTimestamp: string | undefined
trackingManager: ITrackingManager
troubleshooting: TroubleshootingData | undefined

Methods

protected
getDecisionApiCampaignsAsync(visitor: VisitorAbstract): Promise<CampaignDTO[] | null>
protected
updateFlagshipStatus(v: FSSdkStatus): void
abstract
getCampaignsAsync(visitor: VisitorAbstract): Promise<CampaignDTO[] | null>
getModifications(campaigns: Array<CampaignDTO>): Map<string, FlagDTO>
isPanic(): boolean
statusChangedCallback(v: (status: FSSdkStatus) => void): void