@convertcom/js-sdk-rules 2.1.0 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/enums/src/dictionary.d.ts +3 -0
- package/lib/enums/src/goal-data-key.d.ts +6 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +203 -157
- package/lib/index.js.map +1 -1
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.map +1 -1
- package/lib/index.min.mjs +1 -1
- package/lib/index.min.mjs.map +1 -1
- package/lib/index.mjs +203 -157
- package/lib/index.mjs.map +1 -1
- package/lib/legacy/index.js +180 -134
- package/lib/legacy/index.js.map +1 -1
- package/lib/legacy/index.min.js +1 -1
- package/lib/legacy/index.min.js.map +1 -1
- package/lib/package.json +5 -5
- package/lib/rules/src/interfaces/rule-manager.d.ts +1 -0
- package/lib/rules/src/rule-manager.d.ts +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/src/config/index.d.ts +1 -192
- package/lib/types/src/config/types.gen.d.ts +2494 -0
- package/lib/utils/src/string-utils.d.ts +12 -0
- package/package.json +5 -5
- package/lib/types/src/config/models/Base64Image.d.ts +0 -6
- package/lib/types/src/config/models/BaseMatch.d.ts +0 -8
- package/lib/types/src/config/models/BaseRule.d.ts +0 -6
- package/lib/types/src/config/models/BaseRuleWithBooleanValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithBrowserNameValue.d.ts +0 -21
- package/lib/types/src/config/models/BaseRuleWithCountryCodeValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithDayOfWeekValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithExperienceBucketedValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithGoalTriggeredValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithHourOfDayValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithJsCodeValue.d.ts +0 -9
- package/lib/types/src/config/models/BaseRuleWithLanguageCodeValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithMinuteOfHourValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithNumericValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithOsValue.d.ts +0 -21
- package/lib/types/src/config/models/BaseRuleWithSegmentBucketedValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithStringValue.d.ts +0 -7
- package/lib/types/src/config/models/BaseRuleWithVisitorTypeValue.d.ts +0 -16
- package/lib/types/src/config/models/BaseRuleWithWeatherConditionValue.d.ts +0 -34
- package/lib/types/src/config/models/BoolMatchRulesTypes.d.ts +0 -6
- package/lib/types/src/config/models/BrowserNameMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/BrowserNameMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/BucketingEvent.d.ts +0 -15
- package/lib/types/src/config/models/ChoiceContainsOptions.d.ts +0 -3
- package/lib/types/src/config/models/ChoiceMatchingOptions.d.ts +0 -3
- package/lib/types/src/config/models/ClicksElementGoal.d.ts +0 -11
- package/lib/types/src/config/models/ClicksElementGoalSettings.d.ts +0 -6
- package/lib/types/src/config/models/ClicksLinkGoal.d.ts +0 -11
- package/lib/types/src/config/models/ClicksLinkGoalSettings.d.ts +0 -6
- package/lib/types/src/config/models/ConfigAudience.d.ts +0 -21
- package/lib/types/src/config/models/ConfigAudienceTypes.d.ts +0 -10
- package/lib/types/src/config/models/ConfigExperience.d.ts +0 -98
- package/lib/types/src/config/models/ConfigFeature.d.ts +0 -22
- package/lib/types/src/config/models/ConfigGoal.d.ts +0 -9
- package/lib/types/src/config/models/ConfigGoalBase.d.ts +0 -24
- package/lib/types/src/config/models/ConfigLocation.d.ts +0 -21
- package/lib/types/src/config/models/ConfigProject.d.ts +0 -151
- package/lib/types/src/config/models/ConfigResponseData.d.ts +0 -45
- package/lib/types/src/config/models/ConfigSegment.d.ts +0 -19
- package/lib/types/src/config/models/ConversionEvent.d.ts +0 -30
- package/lib/types/src/config/models/CookieMatchRule.d.ts +0 -14
- package/lib/types/src/config/models/CookieMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/CountryMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/CountryMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/DayOfWeekMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/DayOfWeekMatchRulesTypes.d.ts +0 -4
- package/lib/types/src/config/models/DomInteractionGoal.d.ts +0 -11
- package/lib/types/src/config/models/DomInteractionGoalSettings.d.ts +0 -15
- package/lib/types/src/config/models/ErrorData.d.ts +0 -5
- package/lib/types/src/config/models/ExperienceBucketedMatchRule.d.ts +0 -9
- package/lib/types/src/config/models/ExperienceChange.d.ts +0 -10
- package/lib/types/src/config/models/ExperienceChangeAdd.d.ts +0 -10
- package/lib/types/src/config/models/ExperienceChangeBase.d.ts +0 -27
- package/lib/types/src/config/models/ExperienceChangeCustomCodeData.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeCustomCodeDataAdd.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeCustomCodeDataBase.d.ts +0 -29
- package/lib/types/src/config/models/ExperienceChangeCustomCodeDataUpdate.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeCustomCodeDataUpdateNoId.d.ts +0 -5
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeData.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataAdd.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataBase.d.ts +0 -29
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataUpdate.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataUpdateNoId.d.ts +0 -5
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageData.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataAdd.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataBase.d.ts +0 -33
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataUpdate.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataUpdateNoId.d.ts +0 -5
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectData.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataAdd.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataBase.d.ts +0 -29
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataUpdate.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataUpdateNoId.d.ts +0 -5
- package/lib/types/src/config/models/ExperienceChangeFullStackFeature.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeFullStackFeatureAdd.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeFullStackFeatureBase.d.ts +0 -25
- package/lib/types/src/config/models/ExperienceChangeFullStackFeatureUpdate.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeFullStackFeatureUpdateNoId.d.ts +0 -5
- package/lib/types/src/config/models/ExperienceChangeId.d.ts +0 -9
- package/lib/types/src/config/models/ExperienceChangeIdReadOnly.d.ts +0 -9
- package/lib/types/src/config/models/ExperienceChangeRichStructureData.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeRichStructureDataAdd.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeRichStructureDataBase.d.ts +0 -16
- package/lib/types/src/config/models/ExperienceChangeRichStructureDataUpdate.d.ts +0 -6
- package/lib/types/src/config/models/ExperienceChangeRichStructureDataUpdateNoId.d.ts +0 -5
- package/lib/types/src/config/models/ExperienceChangeUpdate.d.ts +0 -10
- package/lib/types/src/config/models/ExperienceChangeUpdateNoId.d.ts +0 -10
- package/lib/types/src/config/models/ExperienceIntegrationBaidu.d.ts +0 -7
- package/lib/types/src/config/models/ExperienceIntegrationBase.d.ts +0 -10
- package/lib/types/src/config/models/ExperienceIntegrationClicktale.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationClicky.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationCnzz.d.ts +0 -7
- package/lib/types/src/config/models/ExperienceIntegrationCrazyegg.d.ts +0 -9
- package/lib/types/src/config/models/ExperienceIntegrationEconda.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationEulerian.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationGA3.d.ts +0 -9
- package/lib/types/src/config/models/ExperienceIntegrationGA4.d.ts +0 -8
- package/lib/types/src/config/models/ExperienceIntegrationGA4Base.d.ts +0 -4
- package/lib/types/src/config/models/ExperienceIntegrationGAServing.d.ts +0 -3
- package/lib/types/src/config/models/ExperienceIntegrationGoogleAnalytics.d.ts +0 -3
- package/lib/types/src/config/models/ExperienceIntegrationGosquared.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationHeapanalytics.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationHotjar.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationMixpanel.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationMouseflow.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationPiwik.d.ts +0 -7
- package/lib/types/src/config/models/ExperienceIntegrationSegmentio.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationSitecatalyst.d.ts +0 -7
- package/lib/types/src/config/models/ExperienceIntegrationWoopra.d.ts +0 -2
- package/lib/types/src/config/models/ExperienceIntegrationYsance.d.ts +0 -7
- package/lib/types/src/config/models/ExperienceTypes.d.ts +0 -8
- package/lib/types/src/config/models/ExperienceVariationConfig.d.ts +0 -30
- package/lib/types/src/config/models/Extra.d.ts +0 -4
- package/lib/types/src/config/models/FeatureVariableItemData.d.ts +0 -25
- package/lib/types/src/config/models/GA_Settings.d.ts +0 -3
- package/lib/types/src/config/models/GA_SettingsBase.d.ts +0 -6
- package/lib/types/src/config/models/GaGoal.d.ts +0 -11
- package/lib/types/src/config/models/GaGoalSettings.d.ts +0 -6
- package/lib/types/src/config/models/GenericBoolKeyValueMatchRule.d.ts +0 -11
- package/lib/types/src/config/models/GenericBoolKeyValueMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/GenericBoolMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/GenericKey.d.ts +0 -6
- package/lib/types/src/config/models/GenericNumericKeyValueMatchRule.d.ts +0 -11
- package/lib/types/src/config/models/GenericNumericKeyValueMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/GenericNumericMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/GenericSetMatchRule.d.ts +0 -9
- package/lib/types/src/config/models/GenericTextKeyValueMatchRule.d.ts +0 -11
- package/lib/types/src/config/models/GenericTextKeyValueMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/GenericTextMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/GoalTriggeredMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/GoalTriggeredMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/GoalTypes.d.ts +0 -10
- package/lib/types/src/config/models/HourOfDayMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/HourOfDayMatchRulesTypes.d.ts +0 -4
- package/lib/types/src/config/models/IntegrationGA3.d.ts +0 -12
- package/lib/types/src/config/models/IntegrationGA4.d.ts +0 -7
- package/lib/types/src/config/models/IntegrationGA4Base.d.ts +0 -12
- package/lib/types/src/config/models/IntegrationProvider.d.ts +0 -23
- package/lib/types/src/config/models/JsConditionMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/JsConditionMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/KeyValueMatchRulesTypes.d.ts +0 -4
- package/lib/types/src/config/models/LanguageMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/LanguageMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/LocationTrigger.d.ts +0 -5
- package/lib/types/src/config/models/LocationTriggerBase.d.ts +0 -14
- package/lib/types/src/config/models/LocationTriggerCallback.d.ts +0 -13
- package/lib/types/src/config/models/LocationTriggerDomChange.d.ts +0 -17
- package/lib/types/src/config/models/LocationTriggerManual.d.ts +0 -9
- package/lib/types/src/config/models/LocationTriggerUrlChange.d.ts +0 -9
- package/lib/types/src/config/models/MinuteOfHourMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/MinuteOfHourMatchRulesTypes.d.ts +0 -4
- package/lib/types/src/config/models/NoSettingsGoal.d.ts +0 -11
- package/lib/types/src/config/models/NumericMatchRulesTypes.d.ts +0 -8
- package/lib/types/src/config/models/NumericMatchingOptions.d.ts +0 -5
- package/lib/types/src/config/models/OnlyCount.d.ts +0 -7
- package/lib/types/src/config/models/OsMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/OsMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/PageNumber.d.ts +0 -9
- package/lib/types/src/config/models/Pagination.d.ts +0 -18
- package/lib/types/src/config/models/ProjectGASettingsBase.d.ts +0 -7
- package/lib/types/src/config/models/ProjectIntegrationGA3.d.ts +0 -3
- package/lib/types/src/config/models/ProjectIntegrationGA4.d.ts +0 -8
- package/lib/types/src/config/models/ResultsPerPage.d.ts +0 -10
- package/lib/types/src/config/models/RevenueGoal.d.ts +0 -11
- package/lib/types/src/config/models/RevenueGoalSettings.d.ts +0 -25
- package/lib/types/src/config/models/RuleElement.d.ts +0 -20
- package/lib/types/src/config/models/RuleElementNoUrl.d.ts +0 -20
- package/lib/types/src/config/models/RuleObject.d.ts +0 -20
- package/lib/types/src/config/models/RuleObjectNoUrl.d.ts +0 -20
- package/lib/types/src/config/models/RulesTypes.d.ts +0 -17
- package/lib/types/src/config/models/ScrollPercentageGoal.d.ts +0 -11
- package/lib/types/src/config/models/ScrollPercentageGoalSettings.d.ts +0 -6
- package/lib/types/src/config/models/SegmentBucketedMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/SegmentBucketedMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/SendTrackingEventsRequestData.d.ts +0 -39
- package/lib/types/src/config/models/SetMatchingOptions.d.ts +0 -3
- package/lib/types/src/config/models/SortDirection.d.ts +0 -21
- package/lib/types/src/config/models/SubmitsFormGoal.d.ts +0 -11
- package/lib/types/src/config/models/SubmitsFormGoalSettings.d.ts +0 -6
- package/lib/types/src/config/models/SuccessData.d.ts +0 -4
- package/lib/types/src/config/models/TextMatchRulesTypes.d.ts +0 -23
- package/lib/types/src/config/models/TextMatchingOptions.d.ts +0 -7
- package/lib/types/src/config/models/UTC_Offset.d.ts +0 -4
- package/lib/types/src/config/models/UpdateExperienceChangeRequestData.d.ts +0 -2
- package/lib/types/src/config/models/VariationStatuses.d.ts +0 -7
- package/lib/types/src/config/models/VisitorSegments.d.ts +0 -78
- package/lib/types/src/config/models/VisitorTrackingEvents.d.ts +0 -21
- package/lib/types/src/config/models/VisitorTypeMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/VisitorTypeMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/WeatherConditionMatchRule.d.ts +0 -10
- package/lib/types/src/config/models/WeatherConditionMatchRulesTypes.d.ts +0 -3
- package/lib/types/src/config/models/WeatherConditions.d.ts +0 -30
|
@@ -18,3 +18,15 @@ export declare function camelCase(input: string): string;
|
|
|
18
18
|
* @return {number}
|
|
19
19
|
*/
|
|
20
20
|
export declare function generateHash(value: string, seed?: number): number;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a value is numeric
|
|
23
|
+
* @param {string | number} value
|
|
24
|
+
* @returns {boolean}
|
|
25
|
+
*/
|
|
26
|
+
export declare function isNumeric(value: string | number): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Convert a string to a number
|
|
29
|
+
* @param {string | number} value
|
|
30
|
+
* @returns {number}
|
|
31
|
+
*/
|
|
32
|
+
export declare function toNumber(value: string | number): number;
|
package/package.json
CHANGED
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"typescript-eslint": "^7.13.1",
|
|
70
70
|
"webpack": "^5.92.0"
|
|
71
71
|
},
|
|
72
|
-
"version": "2.1.
|
|
72
|
+
"version": "2.1.3",
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@convertcom/js-sdk-enums": ">=2.
|
|
75
|
-
"@convertcom/js-sdk-logger": ">=2.1.
|
|
76
|
-
"@convertcom/js-sdk-types": ">=3.
|
|
77
|
-
"@convertcom/js-sdk-utils": ">=2.
|
|
74
|
+
"@convertcom/js-sdk-enums": ">=2.3.0",
|
|
75
|
+
"@convertcom/js-sdk-logger": ">=2.1.2",
|
|
76
|
+
"@convertcom/js-sdk-types": ">=3.9.0",
|
|
77
|
+
"@convertcom/js-sdk-utils": ">=2.2.3"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { BaseRule } from './BaseRule';
|
|
2
|
-
export type BaseRuleWithBrowserNameValue = (BaseRule & {
|
|
3
|
-
/**
|
|
4
|
-
* Browser name used for matching
|
|
5
|
-
*/
|
|
6
|
-
value?: BaseRuleWithBrowserNameValue.value;
|
|
7
|
-
});
|
|
8
|
-
export declare namespace BaseRuleWithBrowserNameValue {
|
|
9
|
-
/**
|
|
10
|
-
* Browser name used for matching
|
|
11
|
-
*/
|
|
12
|
-
enum value {
|
|
13
|
-
CHROME = "chrome",
|
|
14
|
-
MICROSOFT_IE = "microsoft_ie",
|
|
15
|
-
FIREFOX = "firefox",
|
|
16
|
-
MICROSOFT_EDGE = "microsoft_edge",
|
|
17
|
-
MOZILLA = "mozilla",
|
|
18
|
-
OPERA = "opera",
|
|
19
|
-
SAFARI = "safari"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { BaseRule } from './BaseRule';
|
|
2
|
-
export type BaseRuleWithJsCodeValue = (BaseRule & {
|
|
3
|
-
/**
|
|
4
|
-
* The JS code that would be executed when rule is checked. The return value of this JS code is what is gonna be matched
|
|
5
|
-
* against **true**(or **false** if **matching.negated = true** is provided)
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
value?: string;
|
|
9
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { BaseRule } from './BaseRule';
|
|
2
|
-
export type BaseRuleWithOsValue = (BaseRule & {
|
|
3
|
-
/**
|
|
4
|
-
* Operating System name used for matching
|
|
5
|
-
*/
|
|
6
|
-
value?: BaseRuleWithOsValue.value;
|
|
7
|
-
});
|
|
8
|
-
export declare namespace BaseRuleWithOsValue {
|
|
9
|
-
/**
|
|
10
|
-
* Operating System name used for matching
|
|
11
|
-
*/
|
|
12
|
-
enum value {
|
|
13
|
-
ANDROID = "android",
|
|
14
|
-
IPHONE = "iphone",
|
|
15
|
-
IPOD = "ipod",
|
|
16
|
-
IPAD = "ipad",
|
|
17
|
-
WINDOWS = "windows",
|
|
18
|
-
MACOS = "macos",
|
|
19
|
-
LINUX = "linux"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { BaseRule } from './BaseRule';
|
|
2
|
-
export type BaseRuleWithVisitorTypeValue = (BaseRule & {
|
|
3
|
-
/**
|
|
4
|
-
* Type of the visitors
|
|
5
|
-
*/
|
|
6
|
-
value?: BaseRuleWithVisitorTypeValue.value;
|
|
7
|
-
});
|
|
8
|
-
export declare namespace BaseRuleWithVisitorTypeValue {
|
|
9
|
-
/**
|
|
10
|
-
* Type of the visitors
|
|
11
|
-
*/
|
|
12
|
-
enum value {
|
|
13
|
-
NEW = "new",
|
|
14
|
-
RETURNING = "returning"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { BaseRule } from './BaseRule';
|
|
2
|
-
export type BaseRuleWithWeatherConditionValue = (BaseRule & {
|
|
3
|
-
/**
|
|
4
|
-
* Weather Condition name used for matching. Full or partial condition.
|
|
5
|
-
* The weather provider used by Convert detects the following conditions:
|
|
6
|
-
* - Blizzard
|
|
7
|
-
* - Blowing snow
|
|
8
|
-
* - Cloudy
|
|
9
|
-
* - Fog
|
|
10
|
-
* - Freezing drizzle
|
|
11
|
-
* - Freezing fog
|
|
12
|
-
* - Heavy freezing drizzle
|
|
13
|
-
* - Heavy rain
|
|
14
|
-
* - Heavy rain at times
|
|
15
|
-
* - Light drizzle
|
|
16
|
-
* - Light freezing rain
|
|
17
|
-
* - Light rain
|
|
18
|
-
* - Mist
|
|
19
|
-
* - Moderate rain
|
|
20
|
-
* - Moderate rain at times
|
|
21
|
-
* - Overcast
|
|
22
|
-
* - Partly cloudy
|
|
23
|
-
* - Patchy freezing drizzle possible
|
|
24
|
-
* - Patchy light drizzle
|
|
25
|
-
* - Patchy light rain
|
|
26
|
-
* - Patchy rain possible
|
|
27
|
-
* - Patchy sleet possible
|
|
28
|
-
* - Patchy snow possible
|
|
29
|
-
* - Sunny
|
|
30
|
-
* - Thundery outbreaks possible
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
value?: string;
|
|
34
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BaseMatch } from './BaseMatch';
|
|
2
|
-
import type { BaseRuleWithBrowserNameValue } from './BaseRuleWithBrowserNameValue';
|
|
3
|
-
import type { BrowserNameMatchRulesTypes } from './BrowserNameMatchRulesTypes';
|
|
4
|
-
import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
|
|
5
|
-
export type BrowserNameMatchRule = (BaseRuleWithBrowserNameValue & {
|
|
6
|
-
rule_type: BrowserNameMatchRulesTypes;
|
|
7
|
-
matching?: (BaseMatch & {
|
|
8
|
-
match_type?: ChoiceMatchingOptions;
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bucketing event data
|
|
3
|
-
*/
|
|
4
|
-
export type BucketingEvent = {
|
|
5
|
-
/**
|
|
6
|
-
* Experience ID to which the visitor is bucketed. In case that **enrichData=true** flag is being sent, only unique events are gonna be recorded. Otherwise, it's
|
|
7
|
-
* up to the client to ensure that duplicates of the same event for the same visitor do not get sent to the tracking endpoint.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
experienceId: string;
|
|
11
|
-
/**
|
|
12
|
-
* Variation ID corresponding to the experience identified by experienceID, that is assigned to the visitor.
|
|
13
|
-
*/
|
|
14
|
-
variationId: string;
|
|
15
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ClicksElementGoalSettings } from './ClicksElementGoalSettings';
|
|
2
|
-
import type { ConfigGoalBase } from './ConfigGoalBase';
|
|
3
|
-
export type ClicksElementGoal = (ConfigGoalBase & {
|
|
4
|
-
type?: ClicksElementGoal.type;
|
|
5
|
-
settings?: ClicksElementGoalSettings;
|
|
6
|
-
});
|
|
7
|
-
export declare namespace ClicksElementGoal {
|
|
8
|
-
enum type {
|
|
9
|
-
CLICKS_ELEMENT = "clicks_element"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ClicksLinkGoalSettings } from './ClicksLinkGoalSettings';
|
|
2
|
-
import type { ConfigGoalBase } from './ConfigGoalBase';
|
|
3
|
-
export type ClicksLinkGoal = (ConfigGoalBase & {
|
|
4
|
-
type?: ClicksLinkGoal.type;
|
|
5
|
-
settings?: ClicksLinkGoalSettings;
|
|
6
|
-
});
|
|
7
|
-
export declare namespace ClicksLinkGoal {
|
|
8
|
-
enum type {
|
|
9
|
-
CLICKS_LINK = "clicks_link"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ConfigAudienceTypes } from './ConfigAudienceTypes';
|
|
2
|
-
import type { RuleObject } from './RuleObject';
|
|
3
|
-
/**
|
|
4
|
-
* Base Audience object
|
|
5
|
-
*/
|
|
6
|
-
export type ConfigAudience = {
|
|
7
|
-
/**
|
|
8
|
-
* Audience ID
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Audience unique key
|
|
13
|
-
*/
|
|
14
|
-
key?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Audience Name
|
|
17
|
-
*/
|
|
18
|
-
name?: string;
|
|
19
|
-
type?: ConfigAudienceTypes;
|
|
20
|
-
rules?: RuleObject | null;
|
|
21
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type of the Audience. Can be one of the following: `permanent`, `transient`. For full-stack projects, `transient` is the only valid option, the rest will be ignored.
|
|
3
|
-
* * **permanent** - A permanent audience is one that is checked only at the time the user is being bucketed into the experience
|
|
4
|
-
* * **transient** - A transient audience is one that is checked every time the user is being bucketed into the experience
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare enum ConfigAudienceTypes {
|
|
8
|
-
PERMANENT = "permanent",
|
|
9
|
-
TRANSIENT = "transient"
|
|
10
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { ExperienceIntegrationBaidu } from './ExperienceIntegrationBaidu';
|
|
2
|
-
import type { ExperienceIntegrationClicktale } from './ExperienceIntegrationClicktale';
|
|
3
|
-
import type { ExperienceIntegrationClicky } from './ExperienceIntegrationClicky';
|
|
4
|
-
import type { ExperienceIntegrationCnzz } from './ExperienceIntegrationCnzz';
|
|
5
|
-
import type { ExperienceIntegrationCrazyegg } from './ExperienceIntegrationCrazyegg';
|
|
6
|
-
import type { ExperienceIntegrationEconda } from './ExperienceIntegrationEconda';
|
|
7
|
-
import type { ExperienceIntegrationEulerian } from './ExperienceIntegrationEulerian';
|
|
8
|
-
import type { ExperienceIntegrationGAServing } from './ExperienceIntegrationGAServing';
|
|
9
|
-
import type { ExperienceIntegrationGosquared } from './ExperienceIntegrationGosquared';
|
|
10
|
-
import type { ExperienceIntegrationHeapanalytics } from './ExperienceIntegrationHeapanalytics';
|
|
11
|
-
import type { ExperienceIntegrationHotjar } from './ExperienceIntegrationHotjar';
|
|
12
|
-
import type { ExperienceIntegrationMixpanel } from './ExperienceIntegrationMixpanel';
|
|
13
|
-
import type { ExperienceIntegrationMouseflow } from './ExperienceIntegrationMouseflow';
|
|
14
|
-
import type { ExperienceIntegrationPiwik } from './ExperienceIntegrationPiwik';
|
|
15
|
-
import type { ExperienceIntegrationSegmentio } from './ExperienceIntegrationSegmentio';
|
|
16
|
-
import type { ExperienceIntegrationSitecatalyst } from './ExperienceIntegrationSitecatalyst';
|
|
17
|
-
import type { ExperienceIntegrationWoopra } from './ExperienceIntegrationWoopra';
|
|
18
|
-
import type { ExperienceIntegrationYsance } from './ExperienceIntegrationYsance';
|
|
19
|
-
import type { ExperienceTypes } from './ExperienceTypes';
|
|
20
|
-
import type { ExperienceVariationConfig } from './ExperienceVariationConfig';
|
|
21
|
-
import type { RuleObject } from './RuleObject';
|
|
22
|
-
export type ConfigExperience = {
|
|
23
|
-
/**
|
|
24
|
-
* Experience ID
|
|
25
|
-
*/
|
|
26
|
-
id?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Experience Name
|
|
29
|
-
*/
|
|
30
|
-
name?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Experience readable key that uniquely identifies this experience
|
|
33
|
-
*/
|
|
34
|
-
key?: string;
|
|
35
|
-
/**
|
|
36
|
-
* List of locations IDs on which this experience is presented. Either this or **site_area** is given but should not be both.
|
|
37
|
-
*/
|
|
38
|
-
locations?: Array<string> | null;
|
|
39
|
-
/**
|
|
40
|
-
* Rules that define where the experience is gonna run. Either this or **locations** is given but should not be both.
|
|
41
|
-
*/
|
|
42
|
-
site_area?: RuleObject | null;
|
|
43
|
-
/**
|
|
44
|
-
* List of audiences IDs to which this experience is presented to
|
|
45
|
-
*/
|
|
46
|
-
audiences?: Array<string> | null;
|
|
47
|
-
/**
|
|
48
|
-
* List of goals IDs to which will be tracked for this experience
|
|
49
|
-
*/
|
|
50
|
-
goals?: Array<string>;
|
|
51
|
-
/**
|
|
52
|
-
* Global Experience's JavaScript that will run for this experience before its changes are applied
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
global_js?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Global Experience's StyleSheet that will run for this experience before its changes are applied
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
global_css?: string;
|
|
61
|
-
type?: ExperienceTypes;
|
|
62
|
-
/**
|
|
63
|
-
* Experience's version number
|
|
64
|
-
*/
|
|
65
|
-
version?: number;
|
|
66
|
-
/**
|
|
67
|
-
* Experience's variations list
|
|
68
|
-
*/
|
|
69
|
-
variations?: Array<ExperienceVariationConfig>;
|
|
70
|
-
/**
|
|
71
|
-
* List of integrations that this experience's data is sent to
|
|
72
|
-
*/
|
|
73
|
-
integrations?: Array<(ExperienceIntegrationBaidu | ExperienceIntegrationClicktale | ExperienceIntegrationClicky | ExperienceIntegrationCnzz | ExperienceIntegrationCrazyegg | ExperienceIntegrationEconda | ExperienceIntegrationEulerian | ExperienceIntegrationGAServing | ExperienceIntegrationGosquared | ExperienceIntegrationHeapanalytics | ExperienceIntegrationHotjar | ExperienceIntegrationMixpanel | ExperienceIntegrationMouseflow | ExperienceIntegrationPiwik | ExperienceIntegrationSegmentio | ExperienceIntegrationSitecatalyst | ExperienceIntegrationWoopra | ExperienceIntegrationYsance)>;
|
|
74
|
-
/**
|
|
75
|
-
* List of environments that this experience is supposed to run on. The full list of available environments is defined at
|
|
76
|
-
* project level. If this list is empty, the experience will run on all environments.
|
|
77
|
-
*
|
|
78
|
-
* @deprecated
|
|
79
|
-
*/
|
|
80
|
-
environments?: Array<string>;
|
|
81
|
-
/**
|
|
82
|
-
* The environment where this experience will run. It has to be one of the environments defined at the project level
|
|
83
|
-
*/
|
|
84
|
-
environment?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Various experience's settings
|
|
87
|
-
*/
|
|
88
|
-
settings?: {
|
|
89
|
-
/**
|
|
90
|
-
* Minimum order value for transactions outliers
|
|
91
|
-
*/
|
|
92
|
-
min_order_value?: number;
|
|
93
|
-
/**
|
|
94
|
-
* Maximum order value for transactions outliers
|
|
95
|
-
*/
|
|
96
|
-
max_order_value?: number;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { FeatureVariableItemData } from './FeatureVariableItemData';
|
|
2
|
-
/**
|
|
3
|
-
* Base Feature Object
|
|
4
|
-
*/
|
|
5
|
-
export type ConfigFeature = {
|
|
6
|
-
/**
|
|
7
|
-
* Feature ID
|
|
8
|
-
*/
|
|
9
|
-
id?: string;
|
|
10
|
-
/**
|
|
11
|
-
* A name given to the feature to identify it easily
|
|
12
|
-
*/
|
|
13
|
-
name?: string;
|
|
14
|
-
/**
|
|
15
|
-
* A unique per project level identifier
|
|
16
|
-
*/
|
|
17
|
-
key?: string;
|
|
18
|
-
/**
|
|
19
|
-
* An array of user-defined variables of a feature.
|
|
20
|
-
*/
|
|
21
|
-
variables?: Array<FeatureVariableItemData>;
|
|
22
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ClicksElementGoal } from './ClicksElementGoal';
|
|
2
|
-
import type { ClicksLinkGoal } from './ClicksLinkGoal';
|
|
3
|
-
import type { DomInteractionGoal } from './DomInteractionGoal';
|
|
4
|
-
import type { GaGoal } from './GaGoal';
|
|
5
|
-
import type { NoSettingsGoal } from './NoSettingsGoal';
|
|
6
|
-
import type { RevenueGoal } from './RevenueGoal';
|
|
7
|
-
import type { ScrollPercentageGoal } from './ScrollPercentageGoal';
|
|
8
|
-
import type { SubmitsFormGoal } from './SubmitsFormGoal';
|
|
9
|
-
export type ConfigGoal = (DomInteractionGoal | ScrollPercentageGoal | RevenueGoal | NoSettingsGoal | GaGoal | SubmitsFormGoal | ClicksLinkGoal | ClicksElementGoal);
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { GoalTypes } from './GoalTypes';
|
|
2
|
-
import type { RuleObject } from './RuleObject';
|
|
3
|
-
/**
|
|
4
|
-
* Goal item to be tracked inside a project
|
|
5
|
-
*/
|
|
6
|
-
export type ConfigGoalBase = {
|
|
7
|
-
/**
|
|
8
|
-
* Goal ID
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Goal Name.
|
|
13
|
-
*/
|
|
14
|
-
name?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Goal Key
|
|
17
|
-
*/
|
|
18
|
-
key?: string;
|
|
19
|
-
/**
|
|
20
|
-
* List of goal types to be returned
|
|
21
|
-
*/
|
|
22
|
-
type?: Array<GoalTypes>;
|
|
23
|
-
rules?: RuleObject | null;
|
|
24
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { LocationTrigger } from './LocationTrigger';
|
|
2
|
-
import type { RuleObject } from './RuleObject';
|
|
3
|
-
/**
|
|
4
|
-
* Base Location object
|
|
5
|
-
*/
|
|
6
|
-
export type ConfigLocation = {
|
|
7
|
-
/**
|
|
8
|
-
* Location ID
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Location unique key
|
|
13
|
-
*/
|
|
14
|
-
key?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Location Name
|
|
17
|
-
*/
|
|
18
|
-
name?: string;
|
|
19
|
-
trigger?: (Record<string, any> & LocationTrigger) | null;
|
|
20
|
-
rules?: RuleObject | null;
|
|
21
|
-
};
|