@convertcom/js-sdk-rules 2.0.0 → 2.1.0
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/README.md +2 -2
- package/lib/enums/index.d.ts +26 -0
- package/lib/enums/src/bucketing-error.d.ts +9 -0
- package/lib/enums/src/conversion-setting-key.d.ts +9 -0
- package/lib/enums/src/data-enitites.d.ts +16 -0
- package/lib/enums/src/dictionary.d.ts +65 -0
- package/lib/enums/src/do-not-track.d.ts +12 -0
- package/lib/enums/src/entity-type.d.ts +15 -0
- package/lib/enums/src/feature-status.d.ts +10 -0
- package/lib/enums/src/goal-data-key.d.ts +11 -0
- package/lib/enums/src/log-level.d.ts +14 -0
- package/lib/enums/src/log-method.d.ts +14 -0
- package/lib/enums/src/project-type.d.ts +10 -0
- package/lib/enums/src/rule-error.d.ts +10 -0
- package/lib/enums/src/segments/browser-type.d.ts +17 -0
- package/lib/enums/src/segments/device-type.d.ts +16 -0
- package/lib/enums/src/segments/segments-keys.d.ts +15 -0
- package/lib/enums/src/segments/source-type.d.ts +12 -0
- package/lib/enums/src/segments/visitor-type.d.ts +10 -0
- package/lib/enums/src/system-events.d.ts +22 -0
- package/lib/enums/src/variable-types.d.ts +7 -0
- package/lib/enums/src/variation-change-type.d.ts +14 -0
- package/lib/index.d.ts +3 -3
- package/lib/index.js +724 -26
- 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 +700 -2
- package/lib/index.mjs.map +1 -1
- package/lib/legacy/index.js +755 -136
- 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/logger/index.d.ts +8 -0
- package/lib/logger/src/interfaces/log-client.d.ts +13 -0
- package/lib/logger/src/interfaces/log-manager.d.ts +18 -0
- package/lib/logger/src/interfaces/log-method-map.d.ts +15 -0
- package/lib/logger/src/log-manager.d.ts +64 -0
- package/lib/package.json +6 -6
- package/lib/rules/index.d.ts +8 -0
- package/lib/rules/src/interfaces/rule-manager.d.ts +14 -0
- package/lib/rules/src/rule-manager.d.ts +82 -0
- package/lib/types/index.d.ts +27 -0
- package/lib/types/src/BucketedFeature.d.ts +29 -0
- package/lib/types/src/BucketedVariation.d.ts +13 -0
- package/lib/types/src/BucketingAllocation.d.ts +10 -0
- package/lib/types/src/BucketingAttributes.d.ts +17 -0
- package/lib/types/src/BucketingHash.d.ts +11 -0
- package/lib/types/src/Config.d.ts +60 -0
- package/lib/types/src/ConversionAttributes.d.ts +13 -0
- package/lib/types/src/Entity.d.ts +8 -0
- package/lib/types/src/GoalData.d.ts +11 -0
- package/lib/types/src/IndentityField.d.ts +7 -0
- package/lib/types/src/Integration.d.ts +8 -0
- package/lib/types/src/LocationAttributes.d.ts +12 -0
- package/lib/types/src/Path.d.ts +10 -0
- package/lib/types/src/RequireAtLeastOne.d.ts +3 -0
- package/lib/types/src/Rule.d.ts +13 -0
- package/lib/types/src/SegmentsAttributes.d.ts +9 -0
- package/lib/types/src/StoreData.d.ts +13 -0
- package/lib/types/src/TrackingEvent.d.ts +14 -0
- package/lib/types/src/VariableType.d.ts +8 -0
- package/lib/types/src/Visitor.d.ts +12 -0
- package/lib/types/src/VisitorsQueue.d.ts +14 -0
- package/lib/types/src/config/index.d.ts +192 -0
- package/lib/types/src/config/models/Base64Image.d.ts +6 -0
- package/lib/types/src/config/models/BaseMatch.d.ts +8 -0
- package/lib/types/src/config/models/BaseRule.d.ts +6 -0
- package/lib/types/src/config/models/BaseRuleWithBooleanValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithBrowserNameValue.d.ts +21 -0
- package/lib/types/src/config/models/BaseRuleWithCountryCodeValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithDayOfWeekValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithExperienceBucketedValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithGoalTriggeredValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithHourOfDayValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithJsCodeValue.d.ts +9 -0
- package/lib/types/src/config/models/BaseRuleWithLanguageCodeValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithMinuteOfHourValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithNumericValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithOsValue.d.ts +21 -0
- package/lib/types/src/config/models/BaseRuleWithSegmentBucketedValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithStringValue.d.ts +7 -0
- package/lib/types/src/config/models/BaseRuleWithVisitorTypeValue.d.ts +16 -0
- package/lib/types/src/config/models/BaseRuleWithWeatherConditionValue.d.ts +34 -0
- package/lib/types/src/config/models/BoolMatchRulesTypes.d.ts +6 -0
- package/lib/types/src/config/models/BrowserNameMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/BrowserNameMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/BucketingEvent.d.ts +15 -0
- package/lib/types/src/config/models/ChoiceContainsOptions.d.ts +3 -0
- package/lib/types/src/config/models/ChoiceMatchingOptions.d.ts +3 -0
- package/lib/types/src/config/models/ClicksElementGoal.d.ts +11 -0
- package/lib/types/src/config/models/ClicksElementGoalSettings.d.ts +6 -0
- package/lib/types/src/config/models/ClicksLinkGoal.d.ts +11 -0
- package/lib/types/src/config/models/ClicksLinkGoalSettings.d.ts +6 -0
- package/lib/types/src/config/models/ConfigAudience.d.ts +21 -0
- package/lib/types/src/config/models/ConfigAudienceTypes.d.ts +10 -0
- package/lib/types/src/config/models/ConfigExperience.d.ts +98 -0
- package/lib/types/src/config/models/ConfigFeature.d.ts +22 -0
- package/lib/types/src/config/models/ConfigGoal.d.ts +9 -0
- package/lib/types/src/config/models/ConfigGoalBase.d.ts +24 -0
- package/lib/types/src/config/models/ConfigLocation.d.ts +21 -0
- package/lib/types/src/config/models/ConfigProject.d.ts +151 -0
- package/lib/types/src/config/models/ConfigResponseData.d.ts +45 -0
- package/lib/types/src/config/models/ConfigSegment.d.ts +19 -0
- package/lib/types/src/config/models/ConversionEvent.d.ts +30 -0
- package/lib/types/src/config/models/CookieMatchRule.d.ts +14 -0
- package/lib/types/src/config/models/CookieMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/CountryMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/CountryMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/DayOfWeekMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/DayOfWeekMatchRulesTypes.d.ts +4 -0
- package/lib/types/src/config/models/DomInteractionGoal.d.ts +11 -0
- package/lib/types/src/config/models/DomInteractionGoalSettings.d.ts +15 -0
- package/lib/types/src/config/models/ErrorData.d.ts +5 -0
- package/lib/types/src/config/models/ExperienceBucketedMatchRule.d.ts +9 -0
- package/lib/types/src/config/models/ExperienceChange.d.ts +10 -0
- package/lib/types/src/config/models/ExperienceChangeAdd.d.ts +10 -0
- package/lib/types/src/config/models/ExperienceChangeBase.d.ts +27 -0
- package/lib/types/src/config/models/ExperienceChangeCustomCodeData.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeCustomCodeDataAdd.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeCustomCodeDataBase.d.ts +29 -0
- package/lib/types/src/config/models/ExperienceChangeCustomCodeDataUpdate.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeCustomCodeDataUpdateNoId.d.ts +5 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeData.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataAdd.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataBase.d.ts +29 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataUpdate.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataUpdateNoId.d.ts +5 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageData.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataAdd.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataBase.d.ts +33 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataUpdate.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataUpdateNoId.d.ts +5 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectData.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataAdd.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataBase.d.ts +29 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataUpdate.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataUpdateNoId.d.ts +5 -0
- package/lib/types/src/config/models/ExperienceChangeFullStackFeature.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeFullStackFeatureAdd.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeFullStackFeatureBase.d.ts +25 -0
- package/lib/types/src/config/models/ExperienceChangeFullStackFeatureUpdate.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeFullStackFeatureUpdateNoId.d.ts +5 -0
- package/lib/types/src/config/models/ExperienceChangeId.d.ts +9 -0
- package/lib/types/src/config/models/ExperienceChangeIdReadOnly.d.ts +9 -0
- package/lib/types/src/config/models/ExperienceChangeRichStructureData.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeRichStructureDataAdd.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeRichStructureDataBase.d.ts +16 -0
- package/lib/types/src/config/models/ExperienceChangeRichStructureDataUpdate.d.ts +6 -0
- package/lib/types/src/config/models/ExperienceChangeRichStructureDataUpdateNoId.d.ts +5 -0
- package/lib/types/src/config/models/ExperienceChangeUpdate.d.ts +10 -0
- package/lib/types/src/config/models/ExperienceChangeUpdateNoId.d.ts +10 -0
- package/lib/types/src/config/models/ExperienceIntegrationBaidu.d.ts +7 -0
- package/lib/types/src/config/models/ExperienceIntegrationBase.d.ts +10 -0
- package/lib/types/src/config/models/ExperienceIntegrationClicktale.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationClicky.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationCnzz.d.ts +7 -0
- package/lib/types/src/config/models/ExperienceIntegrationCrazyegg.d.ts +9 -0
- package/lib/types/src/config/models/ExperienceIntegrationEconda.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationEulerian.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationGA3.d.ts +9 -0
- package/lib/types/src/config/models/ExperienceIntegrationGA4.d.ts +8 -0
- package/lib/types/src/config/models/ExperienceIntegrationGA4Base.d.ts +4 -0
- package/lib/types/src/config/models/ExperienceIntegrationGAServing.d.ts +3 -0
- package/lib/types/src/config/models/ExperienceIntegrationGoogleAnalytics.d.ts +3 -0
- package/lib/types/src/config/models/ExperienceIntegrationGosquared.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationHeapanalytics.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationHotjar.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationMixpanel.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationMouseflow.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationPiwik.d.ts +7 -0
- package/lib/types/src/config/models/ExperienceIntegrationSegmentio.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationSitecatalyst.d.ts +7 -0
- package/lib/types/src/config/models/ExperienceIntegrationWoopra.d.ts +2 -0
- package/lib/types/src/config/models/ExperienceIntegrationYsance.d.ts +7 -0
- package/lib/types/src/config/models/ExperienceTypes.d.ts +8 -0
- package/lib/types/src/config/models/ExperienceVariationConfig.d.ts +30 -0
- package/lib/types/src/config/models/Extra.d.ts +4 -0
- package/lib/types/src/config/models/FeatureVariableItemData.d.ts +25 -0
- package/lib/types/src/config/models/GA_Settings.d.ts +3 -0
- package/lib/types/src/config/models/GA_SettingsBase.d.ts +6 -0
- package/lib/types/src/config/models/GaGoal.d.ts +11 -0
- package/lib/types/src/config/models/GaGoalSettings.d.ts +6 -0
- package/lib/types/src/config/models/GenericBoolKeyValueMatchRule.d.ts +11 -0
- package/lib/types/src/config/models/GenericBoolKeyValueMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/GenericBoolMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/GenericKey.d.ts +6 -0
- package/lib/types/src/config/models/GenericNumericKeyValueMatchRule.d.ts +11 -0
- package/lib/types/src/config/models/GenericNumericKeyValueMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/GenericNumericMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/GenericSetMatchRule.d.ts +9 -0
- package/lib/types/src/config/models/GenericTextKeyValueMatchRule.d.ts +11 -0
- package/lib/types/src/config/models/GenericTextKeyValueMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/GenericTextMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/GoalTriggeredMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/GoalTriggeredMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/GoalTypes.d.ts +10 -0
- package/lib/types/src/config/models/HourOfDayMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/HourOfDayMatchRulesTypes.d.ts +4 -0
- package/lib/types/src/config/models/IntegrationGA3.d.ts +12 -0
- package/lib/types/src/config/models/IntegrationGA4.d.ts +7 -0
- package/lib/types/src/config/models/IntegrationGA4Base.d.ts +12 -0
- package/lib/types/src/config/models/IntegrationProvider.d.ts +23 -0
- package/lib/types/src/config/models/JsConditionMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/JsConditionMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/KeyValueMatchRulesTypes.d.ts +4 -0
- package/lib/types/src/config/models/LanguageMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/LanguageMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/LocationTrigger.d.ts +5 -0
- package/lib/types/src/config/models/LocationTriggerBase.d.ts +14 -0
- package/lib/types/src/config/models/LocationTriggerCallback.d.ts +13 -0
- package/lib/types/src/config/models/LocationTriggerDomChange.d.ts +17 -0
- package/lib/types/src/config/models/LocationTriggerManual.d.ts +9 -0
- package/lib/types/src/config/models/LocationTriggerUrlChange.d.ts +9 -0
- package/lib/types/src/config/models/MinuteOfHourMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/MinuteOfHourMatchRulesTypes.d.ts +4 -0
- package/lib/types/src/config/models/NoSettingsGoal.d.ts +11 -0
- package/lib/types/src/config/models/NumericMatchRulesTypes.d.ts +8 -0
- package/lib/types/src/config/models/NumericMatchingOptions.d.ts +5 -0
- package/lib/types/src/config/models/OnlyCount.d.ts +7 -0
- package/lib/types/src/config/models/OsMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/OsMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/PageNumber.d.ts +9 -0
- package/lib/types/src/config/models/Pagination.d.ts +18 -0
- package/lib/types/src/config/models/ProjectGASettingsBase.d.ts +7 -0
- package/lib/types/src/config/models/ProjectIntegrationGA3.d.ts +3 -0
- package/lib/types/src/config/models/ProjectIntegrationGA4.d.ts +8 -0
- package/lib/types/src/config/models/ResultsPerPage.d.ts +10 -0
- package/lib/types/src/config/models/RevenueGoal.d.ts +11 -0
- package/lib/types/src/config/models/RevenueGoalSettings.d.ts +25 -0
- package/lib/types/src/config/models/RuleElement.d.ts +20 -0
- package/lib/types/src/config/models/RuleElementNoUrl.d.ts +20 -0
- package/lib/types/src/config/models/RuleObject.d.ts +20 -0
- package/lib/types/src/config/models/RuleObjectNoUrl.d.ts +20 -0
- package/lib/types/src/config/models/RulesTypes.d.ts +17 -0
- package/lib/types/src/config/models/ScrollPercentageGoal.d.ts +11 -0
- package/lib/types/src/config/models/ScrollPercentageGoalSettings.d.ts +6 -0
- package/lib/types/src/config/models/SegmentBucketedMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/SegmentBucketedMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/SendTrackingEventsRequestData.d.ts +39 -0
- package/lib/types/src/config/models/SetMatchingOptions.d.ts +3 -0
- package/lib/types/src/config/models/SortDirection.d.ts +21 -0
- package/lib/types/src/config/models/SubmitsFormGoal.d.ts +11 -0
- package/lib/types/src/config/models/SubmitsFormGoalSettings.d.ts +6 -0
- package/lib/types/src/config/models/SuccessData.d.ts +4 -0
- package/lib/types/src/config/models/TextMatchRulesTypes.d.ts +23 -0
- package/lib/types/src/config/models/TextMatchingOptions.d.ts +7 -0
- package/lib/types/src/config/models/UTC_Offset.d.ts +4 -0
- package/lib/types/src/config/models/UpdateExperienceChangeRequestData.d.ts +2 -0
- package/lib/types/src/config/models/VariationStatuses.d.ts +7 -0
- package/lib/types/src/config/models/VisitorSegments.d.ts +78 -0
- package/lib/types/src/config/models/VisitorTrackingEvents.d.ts +21 -0
- package/lib/types/src/config/models/VisitorTypeMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/VisitorTypeMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/WeatherConditionMatchRule.d.ts +10 -0
- package/lib/types/src/config/models/WeatherConditionMatchRulesTypes.d.ts +3 -0
- package/lib/types/src/config/models/WeatherConditions.d.ts +30 -0
- package/lib/utils/index.d.ts +14 -0
- package/lib/utils/src/array-utils.d.ts +11 -0
- package/lib/utils/src/comparisons.d.ts +22 -0
- package/lib/utils/src/data-store.d.ts +39 -0
- package/lib/utils/src/file-logger.d.ts +40 -0
- package/lib/utils/src/http-client.d.ts +115 -0
- package/lib/utils/src/object-utils.d.ts +35 -0
- package/lib/utils/src/string-utils.d.ts +20 -0
- package/lib/utils/src/types-utils.d.ts +12 -0
- package/package.json +35 -31
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
import { VisitorSegments } from './config/index';
|
|
8
|
+
export type StoreData = {
|
|
9
|
+
bucketing?: Record<string, string>;
|
|
10
|
+
locations?: Array<string>;
|
|
11
|
+
segments?: VisitorSegments;
|
|
12
|
+
goals?: Record<string, boolean>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
import { Visitor } from './Visitor';
|
|
8
|
+
export type TrackingEvent = {
|
|
9
|
+
accountId?: string;
|
|
10
|
+
projectId?: string;
|
|
11
|
+
enrichData?: boolean;
|
|
12
|
+
source?: string;
|
|
13
|
+
visitors: Array<Visitor>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
import { VisitorSegments, VisitorTrackingEvents } from './config/index';
|
|
8
|
+
export type Visitor = {
|
|
9
|
+
visitorId: string;
|
|
10
|
+
segments?: VisitorSegments;
|
|
11
|
+
events: Array<VisitorTrackingEvents>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
import { VisitorSegments, VisitorTrackingEvents } from './config/index';
|
|
8
|
+
import { Visitor } from './Visitor';
|
|
9
|
+
export type VisitorsQueue = {
|
|
10
|
+
length: number;
|
|
11
|
+
items: Array<Visitor>;
|
|
12
|
+
push: (visitorId: string, eventRequest: VisitorTrackingEvents, segments?: VisitorSegments) => void;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
export type { Base64Image } from './models/Base64Image';
|
|
2
|
+
export type { BaseMatch } from './models/BaseMatch';
|
|
3
|
+
export type { BaseRule } from './models/BaseRule';
|
|
4
|
+
export type { BaseRuleWithBooleanValue } from './models/BaseRuleWithBooleanValue';
|
|
5
|
+
export { BaseRuleWithBrowserNameValue } from './models/BaseRuleWithBrowserNameValue';
|
|
6
|
+
export type { BaseRuleWithCountryCodeValue } from './models/BaseRuleWithCountryCodeValue';
|
|
7
|
+
export type { BaseRuleWithDayOfWeekValue } from './models/BaseRuleWithDayOfWeekValue';
|
|
8
|
+
export type { BaseRuleWithExperienceBucketedValue } from './models/BaseRuleWithExperienceBucketedValue';
|
|
9
|
+
export type { BaseRuleWithGoalTriggeredValue } from './models/BaseRuleWithGoalTriggeredValue';
|
|
10
|
+
export type { BaseRuleWithHourOfDayValue } from './models/BaseRuleWithHourOfDayValue';
|
|
11
|
+
export type { BaseRuleWithJsCodeValue } from './models/BaseRuleWithJsCodeValue';
|
|
12
|
+
export type { BaseRuleWithLanguageCodeValue } from './models/BaseRuleWithLanguageCodeValue';
|
|
13
|
+
export type { BaseRuleWithMinuteOfHourValue } from './models/BaseRuleWithMinuteOfHourValue';
|
|
14
|
+
export type { BaseRuleWithNumericValue } from './models/BaseRuleWithNumericValue';
|
|
15
|
+
export { BaseRuleWithOsValue } from './models/BaseRuleWithOsValue';
|
|
16
|
+
export type { BaseRuleWithSegmentBucketedValue } from './models/BaseRuleWithSegmentBucketedValue';
|
|
17
|
+
export type { BaseRuleWithStringValue } from './models/BaseRuleWithStringValue';
|
|
18
|
+
export { BaseRuleWithVisitorTypeValue } from './models/BaseRuleWithVisitorTypeValue';
|
|
19
|
+
export type { BaseRuleWithWeatherConditionValue } from './models/BaseRuleWithWeatherConditionValue';
|
|
20
|
+
export { BoolMatchRulesTypes } from './models/BoolMatchRulesTypes';
|
|
21
|
+
export type { BrowserNameMatchRule } from './models/BrowserNameMatchRule';
|
|
22
|
+
export { BrowserNameMatchRulesTypes } from './models/BrowserNameMatchRulesTypes';
|
|
23
|
+
export type { BucketingEvent } from './models/BucketingEvent';
|
|
24
|
+
export { ChoiceContainsOptions } from './models/ChoiceContainsOptions';
|
|
25
|
+
export { ChoiceMatchingOptions } from './models/ChoiceMatchingOptions';
|
|
26
|
+
export { ClicksElementGoal } from './models/ClicksElementGoal';
|
|
27
|
+
export type { ClicksElementGoalSettings } from './models/ClicksElementGoalSettings';
|
|
28
|
+
export { ClicksLinkGoal } from './models/ClicksLinkGoal';
|
|
29
|
+
export type { ClicksLinkGoalSettings } from './models/ClicksLinkGoalSettings';
|
|
30
|
+
export type { ConfigAudience } from './models/ConfigAudience';
|
|
31
|
+
export { ConfigAudienceTypes } from './models/ConfigAudienceTypes';
|
|
32
|
+
export type { ConfigExperience } from './models/ConfigExperience';
|
|
33
|
+
export type { ConfigFeature } from './models/ConfigFeature';
|
|
34
|
+
export type { ConfigGoal } from './models/ConfigGoal';
|
|
35
|
+
export type { ConfigGoalBase } from './models/ConfigGoalBase';
|
|
36
|
+
export type { ConfigLocation } from './models/ConfigLocation';
|
|
37
|
+
export { ConfigProject } from './models/ConfigProject';
|
|
38
|
+
export type { ConfigResponseData } from './models/ConfigResponseData';
|
|
39
|
+
export type { ConfigSegment } from './models/ConfigSegment';
|
|
40
|
+
export type { ConversionEvent } from './models/ConversionEvent';
|
|
41
|
+
export type { CookieMatchRule } from './models/CookieMatchRule';
|
|
42
|
+
export { CookieMatchRulesTypes } from './models/CookieMatchRulesTypes';
|
|
43
|
+
export type { CountryMatchRule } from './models/CountryMatchRule';
|
|
44
|
+
export { CountryMatchRulesTypes } from './models/CountryMatchRulesTypes';
|
|
45
|
+
export type { DayOfWeekMatchRule } from './models/DayOfWeekMatchRule';
|
|
46
|
+
export { DayOfWeekMatchRulesTypes } from './models/DayOfWeekMatchRulesTypes';
|
|
47
|
+
export { DomInteractionGoal } from './models/DomInteractionGoal';
|
|
48
|
+
export type { DomInteractionGoalSettings } from './models/DomInteractionGoalSettings';
|
|
49
|
+
export type { ErrorData } from './models/ErrorData';
|
|
50
|
+
export type { ExperienceBucketedMatchRule } from './models/ExperienceBucketedMatchRule';
|
|
51
|
+
export type { ExperienceChange } from './models/ExperienceChange';
|
|
52
|
+
export type { ExperienceChangeAdd } from './models/ExperienceChangeAdd';
|
|
53
|
+
export { ExperienceChangeBase } from './models/ExperienceChangeBase';
|
|
54
|
+
export type { ExperienceChangeCustomCodeData } from './models/ExperienceChangeCustomCodeData';
|
|
55
|
+
export type { ExperienceChangeCustomCodeDataAdd } from './models/ExperienceChangeCustomCodeDataAdd';
|
|
56
|
+
export { ExperienceChangeCustomCodeDataBase } from './models/ExperienceChangeCustomCodeDataBase';
|
|
57
|
+
export type { ExperienceChangeCustomCodeDataUpdate } from './models/ExperienceChangeCustomCodeDataUpdate';
|
|
58
|
+
export type { ExperienceChangeCustomCodeDataUpdateNoId } from './models/ExperienceChangeCustomCodeDataUpdateNoId';
|
|
59
|
+
export type { ExperienceChangeDefaultCodeData } from './models/ExperienceChangeDefaultCodeData';
|
|
60
|
+
export type { ExperienceChangeDefaultCodeDataAdd } from './models/ExperienceChangeDefaultCodeDataAdd';
|
|
61
|
+
export { ExperienceChangeDefaultCodeDataBase } from './models/ExperienceChangeDefaultCodeDataBase';
|
|
62
|
+
export type { ExperienceChangeDefaultCodeDataUpdate } from './models/ExperienceChangeDefaultCodeDataUpdate';
|
|
63
|
+
export type { ExperienceChangeDefaultCodeDataUpdateNoId } from './models/ExperienceChangeDefaultCodeDataUpdateNoId';
|
|
64
|
+
export type { ExperienceChangeDefaultCodeMultipageData } from './models/ExperienceChangeDefaultCodeMultipageData';
|
|
65
|
+
export type { ExperienceChangeDefaultCodeMultipageDataAdd } from './models/ExperienceChangeDefaultCodeMultipageDataAdd';
|
|
66
|
+
export { ExperienceChangeDefaultCodeMultipageDataBase } from './models/ExperienceChangeDefaultCodeMultipageDataBase';
|
|
67
|
+
export type { ExperienceChangeDefaultCodeMultipageDataUpdate } from './models/ExperienceChangeDefaultCodeMultipageDataUpdate';
|
|
68
|
+
export type { ExperienceChangeDefaultCodeMultipageDataUpdateNoId } from './models/ExperienceChangeDefaultCodeMultipageDataUpdateNoId';
|
|
69
|
+
export type { ExperienceChangeDefaultRedirectData } from './models/ExperienceChangeDefaultRedirectData';
|
|
70
|
+
export type { ExperienceChangeDefaultRedirectDataAdd } from './models/ExperienceChangeDefaultRedirectDataAdd';
|
|
71
|
+
export { ExperienceChangeDefaultRedirectDataBase } from './models/ExperienceChangeDefaultRedirectDataBase';
|
|
72
|
+
export type { ExperienceChangeDefaultRedirectDataUpdate } from './models/ExperienceChangeDefaultRedirectDataUpdate';
|
|
73
|
+
export type { ExperienceChangeDefaultRedirectDataUpdateNoId } from './models/ExperienceChangeDefaultRedirectDataUpdateNoId';
|
|
74
|
+
export type { ExperienceChangeFullStackFeature } from './models/ExperienceChangeFullStackFeature';
|
|
75
|
+
export type { ExperienceChangeFullStackFeatureAdd } from './models/ExperienceChangeFullStackFeatureAdd';
|
|
76
|
+
export { ExperienceChangeFullStackFeatureBase } from './models/ExperienceChangeFullStackFeatureBase';
|
|
77
|
+
export type { ExperienceChangeFullStackFeatureUpdate } from './models/ExperienceChangeFullStackFeatureUpdate';
|
|
78
|
+
export type { ExperienceChangeFullStackFeatureUpdateNoId } from './models/ExperienceChangeFullStackFeatureUpdateNoId';
|
|
79
|
+
export type { ExperienceChangeId } from './models/ExperienceChangeId';
|
|
80
|
+
export type { ExperienceChangeIdReadOnly } from './models/ExperienceChangeIdReadOnly';
|
|
81
|
+
export type { ExperienceChangeRichStructureData } from './models/ExperienceChangeRichStructureData';
|
|
82
|
+
export type { ExperienceChangeRichStructureDataAdd } from './models/ExperienceChangeRichStructureDataAdd';
|
|
83
|
+
export { ExperienceChangeRichStructureDataBase } from './models/ExperienceChangeRichStructureDataBase';
|
|
84
|
+
export type { ExperienceChangeRichStructureDataUpdate } from './models/ExperienceChangeRichStructureDataUpdate';
|
|
85
|
+
export type { ExperienceChangeRichStructureDataUpdateNoId } from './models/ExperienceChangeRichStructureDataUpdateNoId';
|
|
86
|
+
export type { ExperienceChangeUpdate } from './models/ExperienceChangeUpdate';
|
|
87
|
+
export type { ExperienceChangeUpdateNoId } from './models/ExperienceChangeUpdateNoId';
|
|
88
|
+
export type { ExperienceIntegrationBaidu } from './models/ExperienceIntegrationBaidu';
|
|
89
|
+
export type { ExperienceIntegrationBase } from './models/ExperienceIntegrationBase';
|
|
90
|
+
export type { ExperienceIntegrationClicktale } from './models/ExperienceIntegrationClicktale';
|
|
91
|
+
export type { ExperienceIntegrationClicky } from './models/ExperienceIntegrationClicky';
|
|
92
|
+
export type { ExperienceIntegrationCnzz } from './models/ExperienceIntegrationCnzz';
|
|
93
|
+
export type { ExperienceIntegrationCrazyegg } from './models/ExperienceIntegrationCrazyegg';
|
|
94
|
+
export type { ExperienceIntegrationEconda } from './models/ExperienceIntegrationEconda';
|
|
95
|
+
export type { ExperienceIntegrationEulerian } from './models/ExperienceIntegrationEulerian';
|
|
96
|
+
export type { ExperienceIntegrationGA3 } from './models/ExperienceIntegrationGA3';
|
|
97
|
+
export type { ExperienceIntegrationGA4 } from './models/ExperienceIntegrationGA4';
|
|
98
|
+
export type { ExperienceIntegrationGA4Base } from './models/ExperienceIntegrationGA4Base';
|
|
99
|
+
export type { ExperienceIntegrationGAServing } from './models/ExperienceIntegrationGAServing';
|
|
100
|
+
export type { ExperienceIntegrationGoogleAnalytics } from './models/ExperienceIntegrationGoogleAnalytics';
|
|
101
|
+
export type { ExperienceIntegrationGosquared } from './models/ExperienceIntegrationGosquared';
|
|
102
|
+
export type { ExperienceIntegrationHeapanalytics } from './models/ExperienceIntegrationHeapanalytics';
|
|
103
|
+
export type { ExperienceIntegrationHotjar } from './models/ExperienceIntegrationHotjar';
|
|
104
|
+
export type { ExperienceIntegrationMixpanel } from './models/ExperienceIntegrationMixpanel';
|
|
105
|
+
export type { ExperienceIntegrationMouseflow } from './models/ExperienceIntegrationMouseflow';
|
|
106
|
+
export type { ExperienceIntegrationPiwik } from './models/ExperienceIntegrationPiwik';
|
|
107
|
+
export type { ExperienceIntegrationSegmentio } from './models/ExperienceIntegrationSegmentio';
|
|
108
|
+
export type { ExperienceIntegrationSitecatalyst } from './models/ExperienceIntegrationSitecatalyst';
|
|
109
|
+
export type { ExperienceIntegrationWoopra } from './models/ExperienceIntegrationWoopra';
|
|
110
|
+
export type { ExperienceIntegrationYsance } from './models/ExperienceIntegrationYsance';
|
|
111
|
+
export { ExperienceTypes } from './models/ExperienceTypes';
|
|
112
|
+
export type { ExperienceVariationConfig } from './models/ExperienceVariationConfig';
|
|
113
|
+
export type { Extra } from './models/Extra';
|
|
114
|
+
export { FeatureVariableItemData } from './models/FeatureVariableItemData';
|
|
115
|
+
export type { GA_Settings } from './models/GA_Settings';
|
|
116
|
+
export type { GA_SettingsBase } from './models/GA_SettingsBase';
|
|
117
|
+
export { GaGoal } from './models/GaGoal';
|
|
118
|
+
export type { GaGoalSettings } from './models/GaGoalSettings';
|
|
119
|
+
export type { GenericBoolKeyValueMatchRule } from './models/GenericBoolKeyValueMatchRule';
|
|
120
|
+
export { GenericBoolKeyValueMatchRulesTypes } from './models/GenericBoolKeyValueMatchRulesTypes';
|
|
121
|
+
export type { GenericBoolMatchRule } from './models/GenericBoolMatchRule';
|
|
122
|
+
export type { GenericKey } from './models/GenericKey';
|
|
123
|
+
export type { GenericNumericKeyValueMatchRule } from './models/GenericNumericKeyValueMatchRule';
|
|
124
|
+
export { GenericNumericKeyValueMatchRulesTypes } from './models/GenericNumericKeyValueMatchRulesTypes';
|
|
125
|
+
export type { GenericNumericMatchRule } from './models/GenericNumericMatchRule';
|
|
126
|
+
export type { GenericSetMatchRule } from './models/GenericSetMatchRule';
|
|
127
|
+
export type { GenericTextKeyValueMatchRule } from './models/GenericTextKeyValueMatchRule';
|
|
128
|
+
export { GenericTextKeyValueMatchRulesTypes } from './models/GenericTextKeyValueMatchRulesTypes';
|
|
129
|
+
export type { GenericTextMatchRule } from './models/GenericTextMatchRule';
|
|
130
|
+
export type { GoalTriggeredMatchRule } from './models/GoalTriggeredMatchRule';
|
|
131
|
+
export { GoalTriggeredMatchRulesTypes } from './models/GoalTriggeredMatchRulesTypes';
|
|
132
|
+
export { GoalTypes } from './models/GoalTypes';
|
|
133
|
+
export type { HourOfDayMatchRule } from './models/HourOfDayMatchRule';
|
|
134
|
+
export { HourOfDayMatchRulesTypes } from './models/HourOfDayMatchRulesTypes';
|
|
135
|
+
export { IntegrationGA3 } from './models/IntegrationGA3';
|
|
136
|
+
export type { IntegrationGA4 } from './models/IntegrationGA4';
|
|
137
|
+
export { IntegrationGA4Base } from './models/IntegrationGA4Base';
|
|
138
|
+
export { IntegrationProvider } from './models/IntegrationProvider';
|
|
139
|
+
export type { JsConditionMatchRule } from './models/JsConditionMatchRule';
|
|
140
|
+
export { JsConditionMatchRulesTypes } from './models/JsConditionMatchRulesTypes';
|
|
141
|
+
export type { KeyValueMatchRulesTypes } from './models/KeyValueMatchRulesTypes';
|
|
142
|
+
export type { LanguageMatchRule } from './models/LanguageMatchRule';
|
|
143
|
+
export { LanguageMatchRulesTypes } from './models/LanguageMatchRulesTypes';
|
|
144
|
+
export type { LocationTrigger } from './models/LocationTrigger';
|
|
145
|
+
export { LocationTriggerBase } from './models/LocationTriggerBase';
|
|
146
|
+
export { LocationTriggerCallback } from './models/LocationTriggerCallback';
|
|
147
|
+
export { LocationTriggerDomChange } from './models/LocationTriggerDomChange';
|
|
148
|
+
export { LocationTriggerManual } from './models/LocationTriggerManual';
|
|
149
|
+
export { LocationTriggerUrlChange } from './models/LocationTriggerUrlChange';
|
|
150
|
+
export type { MinuteOfHourMatchRule } from './models/MinuteOfHourMatchRule';
|
|
151
|
+
export { MinuteOfHourMatchRulesTypes } from './models/MinuteOfHourMatchRulesTypes';
|
|
152
|
+
export { NoSettingsGoal } from './models/NoSettingsGoal';
|
|
153
|
+
export { NumericMatchingOptions } from './models/NumericMatchingOptions';
|
|
154
|
+
export { NumericMatchRulesTypes } from './models/NumericMatchRulesTypes';
|
|
155
|
+
export type { OnlyCount } from './models/OnlyCount';
|
|
156
|
+
export type { OsMatchRule } from './models/OsMatchRule';
|
|
157
|
+
export { OsMatchRulesTypes } from './models/OsMatchRulesTypes';
|
|
158
|
+
export type { PageNumber } from './models/PageNumber';
|
|
159
|
+
export type { Pagination } from './models/Pagination';
|
|
160
|
+
export type { ProjectGASettingsBase } from './models/ProjectGASettingsBase';
|
|
161
|
+
export type { ProjectIntegrationGA3 } from './models/ProjectIntegrationGA3';
|
|
162
|
+
export type { ProjectIntegrationGA4 } from './models/ProjectIntegrationGA4';
|
|
163
|
+
export type { ResultsPerPage } from './models/ResultsPerPage';
|
|
164
|
+
export { RevenueGoal } from './models/RevenueGoal';
|
|
165
|
+
export { RevenueGoalSettings } from './models/RevenueGoalSettings';
|
|
166
|
+
export type { RuleElement } from './models/RuleElement';
|
|
167
|
+
export type { RuleElementNoUrl } from './models/RuleElementNoUrl';
|
|
168
|
+
export type { RuleObject } from './models/RuleObject';
|
|
169
|
+
export type { RuleObjectNoUrl } from './models/RuleObjectNoUrl';
|
|
170
|
+
export type { RulesTypes } from './models/RulesTypes';
|
|
171
|
+
export { ScrollPercentageGoal } from './models/ScrollPercentageGoal';
|
|
172
|
+
export type { ScrollPercentageGoalSettings } from './models/ScrollPercentageGoalSettings';
|
|
173
|
+
export type { SegmentBucketedMatchRule } from './models/SegmentBucketedMatchRule';
|
|
174
|
+
export { SegmentBucketedMatchRulesTypes } from './models/SegmentBucketedMatchRulesTypes';
|
|
175
|
+
export type { SendTrackingEventsRequestData } from './models/SendTrackingEventsRequestData';
|
|
176
|
+
export { SetMatchingOptions } from './models/SetMatchingOptions';
|
|
177
|
+
export { SortDirection } from './models/SortDirection';
|
|
178
|
+
export { SubmitsFormGoal } from './models/SubmitsFormGoal';
|
|
179
|
+
export type { SubmitsFormGoalSettings } from './models/SubmitsFormGoalSettings';
|
|
180
|
+
export type { SuccessData } from './models/SuccessData';
|
|
181
|
+
export { TextMatchingOptions } from './models/TextMatchingOptions';
|
|
182
|
+
export { TextMatchRulesTypes } from './models/TextMatchRulesTypes';
|
|
183
|
+
export type { UpdateExperienceChangeRequestData } from './models/UpdateExperienceChangeRequestData';
|
|
184
|
+
export type { UTC_Offset } from './models/UTC_Offset';
|
|
185
|
+
export { VariationStatuses } from './models/VariationStatuses';
|
|
186
|
+
export { VisitorSegments } from './models/VisitorSegments';
|
|
187
|
+
export { VisitorTrackingEvents } from './models/VisitorTrackingEvents';
|
|
188
|
+
export type { VisitorTypeMatchRule } from './models/VisitorTypeMatchRule';
|
|
189
|
+
export { VisitorTypeMatchRulesTypes } from './models/VisitorTypeMatchRulesTypes';
|
|
190
|
+
export type { WeatherConditionMatchRule } from './models/WeatherConditionMatchRule';
|
|
191
|
+
export { WeatherConditionMatchRulesTypes } from './models/WeatherConditionMatchRulesTypes';
|
|
192
|
+
export { WeatherConditions } from './models/WeatherConditions';
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|