import { type IFlagshipConfig } from "https://deno.land/x/flagship_io_js_sdk@3.3.0/config/index.ts";
Properties
Specify the SDK running mode. BUCKETING or DECISION_API
Define a callable in order to get callback when the SDK status has changed.
Specify a custom implementation of LogManager in order to receive logs from the SDK.
Decide to fetch automatically modifications data when creating a new FlagshipVisitor
Specify delay between two bucketing polling. Default is 2s.
Note: If 0 is given then it should poll only once at start time.
Bucketing mode only
If true, will fetch the visitor's segment from universal data connector each time fetchFlags is called and append those segments in the visitor context
Indicates whether enables or disables the client cache manager. By enabling the client cache, it will allow you to keep cross sessions visitor experience.
Define a callable in order to get callback when the first bucketing polling succeed.
Define a callable to get callback when the first bucketing polling failed.
Define a callable to get callback each time bucketing data from Flagship has updated.
You can define an object containing the data received when fetching the bucketing endpoint. Providing this object will make bucketing ready to use and the first polling will immediately check for updates.
You can specify a delay in seconds for hit deduplication. After a hit is sent, any future attempts to send the same hit will be blocked until the specified delay has expired.
Note: If a value of 0 is given, no deduplication process will be used.
Define an object that implement the interface visitorCacheImplementation, to handle the visitor cache.
You can define an object that implements the IHitCacheImplementation interface to manage hits cache.
If it's set to true, hit cache and visitor cache will be disabled otherwise will be enabled.
Define options to configure hit batching
Define options to configure hit batching
You can define a callback function that will be called each time a flag is exposed to a user (i.e., when an activation hit is sent by the SDK).
You can define a callback function that will be called each time a flag is exposed to a visitor (i.e., when an activation hit is sent by the SDK).
Define a callable to get a callback whenever the SDK needs to report a log
In Next.js 13, you can define the time in seconds for storing SDK route cache before revalidation.
(Default value 2) You can specify a delay in seconds for fetch flags call buffering. This means that after the SDK has fetched flags, they will be buffered for the specified delay. During this delay, any subsequent fetch flags calls will return the same flags.
Note:
- If a value of 0 is given, no buffering process will be used.
- If visitor data has changed, the buffering will be bypassed.