@uniformdev/optimize-tracker-common
Advanced tools
Comparing version 1.0.1-alpha.88 to 1.0.1-alpha.100
@@ -13,11 +13,26 @@ import { DeliveryIntent, IntentAxis, IntentVector, Scope, Signal } from '@uniformdev/optimize-common'; | ||
trackPersonalization(name: string, payload: AnalyticsEventPayload): void; | ||
/** Forgets all data about the current visitor */ | ||
forgetMe(): Promise<void>; | ||
isInitialized(): boolean; | ||
getServerIntentScores(): IntentVector | undefined; | ||
/** Pushes a programmatic event (such as a Google Analytics event) into the tracker. If this event matches a signal, scoring may be updated. */ | ||
addEvent(event: TrackerEvent, options?: TrackerPushEventOptions): Promise<void>; | ||
/** Gets current visitor intent scores for all intents they have a score in */ | ||
getIntentStrength(scope?: Scope | string): Promise<IntentVector | undefined>; | ||
/** Gets current visitor intent score in a single intent. Returns undefined if visitor has no score in the intent. */ | ||
getIntentStrengthSingle(intent: string): Promise<IntentAxis | undefined>; | ||
/** Removes all strength in a specific intent, programmatically. */ | ||
removeIntent(intent?: string, scope?: Scope | string): Promise<boolean>; | ||
/** | ||
* Check if the current visitor is receiving personalization, | ||
* or is part of a control group not receiving personalization. | ||
* false = receiving personalization, true = control group. | ||
*/ | ||
isIncludedInTest(options?: TrackerTestCheckOptions): boolean; | ||
/** | ||
* Programmatically add strength to a specific intent, bypassing signals. | ||
* Favor using signals to modify intent strength whenever possible. | ||
*/ | ||
addIntentStrength(scope: Scope | string, valueToAdd: IntentVector): Promise<void>; | ||
/** Logs a message to the tracker log */ | ||
log(data: LogMessageOptions): void; | ||
@@ -200,4 +215,4 @@ } | ||
export interface ScopeStorage extends BaseStorage { | ||
getCurrentScope(type: Scope | string): Promise<TrackerScope | undefined>; | ||
setCurrentScope(scope: TrackerScope): Promise<void>; | ||
getScope(type: Scope | string): Promise<TrackerScope | undefined>; | ||
setScope(scope: TrackerScope): Promise<void>; | ||
} | ||
@@ -204,0 +219,0 @@ export declare enum ActivityType { |
@@ -13,11 +13,26 @@ import { DeliveryIntent, IntentAxis, IntentVector, Scope, Signal } from '@uniformdev/optimize-common'; | ||
trackPersonalization(name: string, payload: AnalyticsEventPayload): void; | ||
/** Forgets all data about the current visitor */ | ||
forgetMe(): Promise<void>; | ||
isInitialized(): boolean; | ||
getServerIntentScores(): IntentVector | undefined; | ||
/** Pushes a programmatic event (such as a Google Analytics event) into the tracker. If this event matches a signal, scoring may be updated. */ | ||
addEvent(event: TrackerEvent, options?: TrackerPushEventOptions): Promise<void>; | ||
/** Gets current visitor intent scores for all intents they have a score in */ | ||
getIntentStrength(scope?: Scope | string): Promise<IntentVector | undefined>; | ||
/** Gets current visitor intent score in a single intent. Returns undefined if visitor has no score in the intent. */ | ||
getIntentStrengthSingle(intent: string): Promise<IntentAxis | undefined>; | ||
/** Removes all strength in a specific intent, programmatically. */ | ||
removeIntent(intent?: string, scope?: Scope | string): Promise<boolean>; | ||
/** | ||
* Check if the current visitor is receiving personalization, | ||
* or is part of a control group not receiving personalization. | ||
* false = receiving personalization, true = control group. | ||
*/ | ||
isIncludedInTest(options?: TrackerTestCheckOptions): boolean; | ||
/** | ||
* Programmatically add strength to a specific intent, bypassing signals. | ||
* Favor using signals to modify intent strength whenever possible. | ||
*/ | ||
addIntentStrength(scope: Scope | string, valueToAdd: IntentVector): Promise<void>; | ||
/** Logs a message to the tracker log */ | ||
log(data: LogMessageOptions): void; | ||
@@ -200,4 +215,4 @@ } | ||
export interface ScopeStorage extends BaseStorage { | ||
getCurrentScope(type: Scope | string): Promise<TrackerScope | undefined>; | ||
setCurrentScope(scope: TrackerScope): Promise<void>; | ||
getScope(type: Scope | string): Promise<TrackerScope | undefined>; | ||
setScope(scope: TrackerScope): Promise<void>; | ||
} | ||
@@ -204,0 +219,0 @@ export declare enum ActivityType { |
{ | ||
"name": "@uniformdev/optimize-tracker-common", | ||
"version": "1.0.1-alpha.88+905c51c7", | ||
"version": "1.0.1-alpha.100+610d245f", | ||
"description": "Uniform Optimize Tracker shared common functionality and types", | ||
@@ -25,3 +25,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@uniformdev/optimize-common": "^1.0.1-alpha.88+905c51c7" | ||
"@uniformdev/optimize-common": "^1.0.1-alpha.100+610d245f" | ||
}, | ||
@@ -45,3 +45,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "905c51c73252fa3adca5734b1232f4d42c92dbd9" | ||
"gitHead": "610d245fc7d7cb30e89175c647e885cece25b346" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
37704
703