import { type IVisitor } from "https://deno.land/x/flagship_io_js_sdk@3.2.3/visitor/index.ts";
Methods
Update the visitor context values, matching the given keys, used for targeting.
A new context value associated with this key will be created if there is no previous matching value.
Context keys must be String, and values types must be one of the following : Number, Boolean, String.
Update the visitor context values, matching the given keys, used for targeting.
A new context value associated with this key will be created if there is no previous matching value.
Retrieve a modification value by key. If no modification match the given key or if the stored value type and default value type do not match, default value will be returned.
Return a Flag object by its key. If no flag match the given key an empty flag will be returned.
Retrieve an array of modification value by keys. If no modification match the given key or if the stored value type and default value type do not match, an array of default value will be returned.
Retrieve a modification value by key. If no modification match the given key or if the stored value type and default value type do not match, default value will be returned.
Retrieve an array of modification value by keys. If no modification match the given key or if the stored value type and default value type do not match, an array of default value will be returned.
Get the campaign modification information value matching the given key.
Get the campaign modification information value matching the given key.
This function calls the decision api and update all the campaigns modifications from the server according to the visitor context.
This function calls the decision api and update all the campaigns modifications from the server according to the visitor context.
Report this user has seen this modification.
Report this user has seen these modifications.
Report this user has seen these modifications.
returns a Promise containing all the data for all the campaigns associated with the current visitor.
returns a Promise containing all the data for all the campaigns associated with the current visitor.
Get data for a specific campaign.