@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,11 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithNumericValue } from './BaseRuleWithNumericValue';
|
|
3
|
+
import type { GenericKey } from './GenericKey';
|
|
4
|
+
import type { GenericNumericKeyValueMatchRulesTypes } from './GenericNumericKeyValueMatchRulesTypes';
|
|
5
|
+
import type { NumericMatchingOptions } from './NumericMatchingOptions';
|
|
6
|
+
export type GenericNumericKeyValueMatchRule = (BaseRuleWithNumericValue & {
|
|
7
|
+
rule_type: GenericNumericKeyValueMatchRulesTypes;
|
|
8
|
+
matching?: (BaseMatch & {
|
|
9
|
+
match_type?: NumericMatchingOptions;
|
|
10
|
+
});
|
|
11
|
+
} & GenericKey);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithNumericValue } from './BaseRuleWithNumericValue';
|
|
3
|
+
import type { NumericMatchingOptions } from './NumericMatchingOptions';
|
|
4
|
+
import type { NumericMatchRulesTypes } from './NumericMatchRulesTypes';
|
|
5
|
+
export type GenericNumericMatchRule = (BaseRuleWithNumericValue & {
|
|
6
|
+
rule_type: NumericMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: NumericMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithStringValue } from './BaseRuleWithStringValue';
|
|
3
|
+
import type { SetMatchingOptions } from './SetMatchingOptions';
|
|
4
|
+
export type GenericSetMatchRule = (BaseRuleWithStringValue & {
|
|
5
|
+
rule_type: string;
|
|
6
|
+
matching?: (BaseMatch & {
|
|
7
|
+
match_type?: SetMatchingOptions;
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithStringValue } from './BaseRuleWithStringValue';
|
|
3
|
+
import type { GenericKey } from './GenericKey';
|
|
4
|
+
import type { GenericTextKeyValueMatchRulesTypes } from './GenericTextKeyValueMatchRulesTypes';
|
|
5
|
+
import type { TextMatchingOptions } from './TextMatchingOptions';
|
|
6
|
+
export type GenericTextKeyValueMatchRule = (BaseRuleWithStringValue & {
|
|
7
|
+
rule_type: GenericTextKeyValueMatchRulesTypes;
|
|
8
|
+
matching?: (BaseMatch & {
|
|
9
|
+
match_type?: TextMatchingOptions;
|
|
10
|
+
});
|
|
11
|
+
} & GenericKey);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithStringValue } from './BaseRuleWithStringValue';
|
|
3
|
+
import type { TextMatchingOptions } from './TextMatchingOptions';
|
|
4
|
+
import type { TextMatchRulesTypes } from './TextMatchRulesTypes';
|
|
5
|
+
export type GenericTextMatchRule = (BaseRuleWithStringValue & {
|
|
6
|
+
rule_type: TextMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: TextMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithGoalTriggeredValue } from './BaseRuleWithGoalTriggeredValue';
|
|
3
|
+
import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
|
|
4
|
+
import type { GoalTriggeredMatchRulesTypes } from './GoalTriggeredMatchRulesTypes';
|
|
5
|
+
export type GoalTriggeredMatchRule = (BaseRuleWithGoalTriggeredValue & {
|
|
6
|
+
rule_type: GoalTriggeredMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: ChoiceMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithHourOfDayValue } from './BaseRuleWithHourOfDayValue';
|
|
3
|
+
import type { HourOfDayMatchRulesTypes } from './HourOfDayMatchRulesTypes';
|
|
4
|
+
import type { NumericMatchingOptions } from './NumericMatchingOptions';
|
|
5
|
+
export type HourOfDayMatchRule = (BaseRuleWithHourOfDayValue & {
|
|
6
|
+
rule_type: HourOfDayMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: NumericMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type IntegrationGA4Base = {
|
|
2
|
+
type?: IntegrationGA4Base.type;
|
|
3
|
+
/**
|
|
4
|
+
* ID of the ga4 property where data will be sent. Used internally for API calls to GoogleAnalytics
|
|
5
|
+
*/
|
|
6
|
+
measurementId?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare namespace IntegrationGA4Base {
|
|
9
|
+
enum type {
|
|
10
|
+
GA4 = "ga4"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes the provider with which Convert integrates to send experience data
|
|
3
|
+
*/
|
|
4
|
+
export declare enum IntegrationProvider {
|
|
5
|
+
BAIDU = "baidu",
|
|
6
|
+
CLICKTALE = "clicktale",
|
|
7
|
+
CLICKY = "clicky",
|
|
8
|
+
CNZZ = "cnzz",
|
|
9
|
+
CRAZYEGG = "crazyegg",
|
|
10
|
+
ECONDA = "econda",
|
|
11
|
+
EULERIAN = "eulerian",
|
|
12
|
+
GOOGLE_ANALYTICS = "google_analytics",
|
|
13
|
+
GOSQUARED = "gosquared",
|
|
14
|
+
HEAPANALYTICS = "heapanalytics",
|
|
15
|
+
HOTJAR = "hotjar",
|
|
16
|
+
MIXPANEL = "mixpanel",
|
|
17
|
+
MOUSEFLOW = "mouseflow",
|
|
18
|
+
PIWIK = "piwik",
|
|
19
|
+
SEGMENTIO = "segmentio",
|
|
20
|
+
SITECATALYST = "sitecatalyst",
|
|
21
|
+
WOOPRA = "woopra",
|
|
22
|
+
YSANCE = "ysance"
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithJsCodeValue } from './BaseRuleWithJsCodeValue';
|
|
3
|
+
import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
|
|
4
|
+
import type { JsConditionMatchRulesTypes } from './JsConditionMatchRulesTypes';
|
|
5
|
+
export type JsConditionMatchRule = (BaseRuleWithJsCodeValue & {
|
|
6
|
+
rule_type: JsConditionMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: ChoiceMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { GenericBoolKeyValueMatchRulesTypes } from './GenericBoolKeyValueMatchRulesTypes';
|
|
2
|
+
import type { GenericNumericKeyValueMatchRulesTypes } from './GenericNumericKeyValueMatchRulesTypes';
|
|
3
|
+
import type { GenericTextKeyValueMatchRulesTypes } from './GenericTextKeyValueMatchRulesTypes';
|
|
4
|
+
export type KeyValueMatchRulesTypes = (GenericTextKeyValueMatchRulesTypes & GenericNumericKeyValueMatchRulesTypes & GenericBoolKeyValueMatchRulesTypes);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithLanguageCodeValue } from './BaseRuleWithLanguageCodeValue';
|
|
3
|
+
import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
|
|
4
|
+
import type { LanguageMatchRulesTypes } from './LanguageMatchRulesTypes';
|
|
5
|
+
export type LanguageMatchRule = (BaseRuleWithLanguageCodeValue & {
|
|
6
|
+
rule_type: LanguageMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: ChoiceMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { LocationTriggerCallback } from './LocationTriggerCallback';
|
|
2
|
+
import type { LocationTriggerDomChange } from './LocationTriggerDomChange';
|
|
3
|
+
import type { LocationTriggerManual } from './LocationTriggerManual';
|
|
4
|
+
import type { LocationTriggerUrlChange } from './LocationTriggerUrlChange';
|
|
5
|
+
export type LocationTrigger = (LocationTriggerDomChange | LocationTriggerCallback | LocationTriggerManual | LocationTriggerUrlChange);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This one describes a logical triggering rule that is being used inside the app
|
|
3
|
+
*/
|
|
4
|
+
export type LocationTriggerBase = {
|
|
5
|
+
type: LocationTriggerBase.type;
|
|
6
|
+
};
|
|
7
|
+
export declare namespace LocationTriggerBase {
|
|
8
|
+
enum type {
|
|
9
|
+
URL_CHANGE = "url_change",
|
|
10
|
+
MANUAL = "manual",
|
|
11
|
+
DOM_CHANGE = "dom_change",
|
|
12
|
+
CALLBACK = "callback"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LocationTriggerBase } from './LocationTriggerBase';
|
|
2
|
+
export type LocationTriggerCallback = (LocationTriggerBase & {
|
|
3
|
+
type?: LocationTriggerCallback.type;
|
|
4
|
+
/**
|
|
5
|
+
* Describes js callback to execute
|
|
6
|
+
*/
|
|
7
|
+
js: string;
|
|
8
|
+
});
|
|
9
|
+
export declare namespace LocationTriggerCallback {
|
|
10
|
+
enum type {
|
|
11
|
+
CALLBACK = "callback"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LocationTriggerBase } from './LocationTriggerBase';
|
|
2
|
+
export type LocationTriggerDomChange = (LocationTriggerBase & {
|
|
3
|
+
type?: LocationTriggerDomChange.type;
|
|
4
|
+
/**
|
|
5
|
+
* Describes html selector
|
|
6
|
+
*/
|
|
7
|
+
selector: string;
|
|
8
|
+
/**
|
|
9
|
+
* Describes event
|
|
10
|
+
*/
|
|
11
|
+
event: string;
|
|
12
|
+
});
|
|
13
|
+
export declare namespace LocationTriggerDomChange {
|
|
14
|
+
enum type {
|
|
15
|
+
DOM_CHANGE = "dom_change"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LocationTriggerBase } from './LocationTriggerBase';
|
|
2
|
+
export type LocationTriggerManual = (LocationTriggerBase & {
|
|
3
|
+
type?: LocationTriggerManual.type;
|
|
4
|
+
});
|
|
5
|
+
export declare namespace LocationTriggerManual {
|
|
6
|
+
enum type {
|
|
7
|
+
MANUAL = "manual"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { LocationTriggerBase } from './LocationTriggerBase';
|
|
2
|
+
export type LocationTriggerUrlChange = (LocationTriggerBase & {
|
|
3
|
+
type?: LocationTriggerUrlChange.type;
|
|
4
|
+
});
|
|
5
|
+
export declare namespace LocationTriggerUrlChange {
|
|
6
|
+
enum type {
|
|
7
|
+
URL_CHANGE = "url_change"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithMinuteOfHourValue } from './BaseRuleWithMinuteOfHourValue';
|
|
3
|
+
import type { MinuteOfHourMatchRulesTypes } from './MinuteOfHourMatchRulesTypes';
|
|
4
|
+
import type { NumericMatchingOptions } from './NumericMatchingOptions';
|
|
5
|
+
export type MinuteOfHourMatchRule = (BaseRuleWithMinuteOfHourValue & {
|
|
6
|
+
rule_type: MinuteOfHourMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: NumericMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ConfigGoalBase } from './ConfigGoalBase';
|
|
2
|
+
export type NoSettingsGoal = (ConfigGoalBase & {
|
|
3
|
+
type?: NoSettingsGoal.type;
|
|
4
|
+
});
|
|
5
|
+
export declare namespace NoSettingsGoal {
|
|
6
|
+
enum type {
|
|
7
|
+
ADVANCED = "advanced",
|
|
8
|
+
VISITS_PAGE = "visits_page",
|
|
9
|
+
CODE_TRIGGER = "code_trigger"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum NumericMatchRulesTypes {
|
|
2
|
+
AVG_TIME_PAGE = "avg_time_page",
|
|
3
|
+
DAYS_SINCE_LAST_VISIT = "days_since_last_visit",
|
|
4
|
+
PAGES_VISITED_COUNT = "pages_visited_count",
|
|
5
|
+
VISIT_DURATION = "visit_duration",
|
|
6
|
+
VISITS_COUNT = "visits_count",
|
|
7
|
+
PAGE_TAG_PRODUCT_PRICE = "page_tag_product_price"
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithOsValue } from './BaseRuleWithOsValue';
|
|
3
|
+
import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
|
|
4
|
+
import type { OsMatchRulesTypes } from './OsMatchRulesTypes';
|
|
5
|
+
export type OsMatchRule = (BaseRuleWithOsValue & {
|
|
6
|
+
rule_type: OsMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: ChoiceMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Pagination = {
|
|
2
|
+
/**
|
|
3
|
+
* Current page number
|
|
4
|
+
*/
|
|
5
|
+
current_page?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Total number of records
|
|
8
|
+
*/
|
|
9
|
+
items_count?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Number of records per page
|
|
12
|
+
*/
|
|
13
|
+
items_per_page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Limitation number of records per page
|
|
16
|
+
*/
|
|
17
|
+
pages_count?: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IntegrationGA4Base } from './IntegrationGA4Base';
|
|
2
|
+
import type { ProjectGASettingsBase } from './ProjectGASettingsBase';
|
|
3
|
+
export type ProjectIntegrationGA4 = (ProjectGASettingsBase & IntegrationGA4Base & {
|
|
4
|
+
/**
|
|
5
|
+
* Boolean indicating whether to wait for the page view event to complete before sending other events.
|
|
6
|
+
*/
|
|
7
|
+
no_wait_pageview?: boolean;
|
|
8
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ConfigGoalBase } from './ConfigGoalBase';
|
|
2
|
+
import type { RevenueGoalSettings } from './RevenueGoalSettings';
|
|
3
|
+
export type RevenueGoal = (ConfigGoalBase & {
|
|
4
|
+
type?: RevenueGoal.type;
|
|
5
|
+
settings?: RevenueGoalSettings;
|
|
6
|
+
});
|
|
7
|
+
export declare namespace RevenueGoal {
|
|
8
|
+
enum type {
|
|
9
|
+
REVENUE = "revenue"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type RevenueGoalSettings = {
|
|
2
|
+
/**
|
|
3
|
+
* Type of the revenue goal tracking, one of the below.
|
|
4
|
+
* * "manual" - goal will be triggered through the given revenue tracking code;
|
|
5
|
+
* An empty **triggering_rule** has to be provided as that takes priority over manual triggering
|
|
6
|
+
* * "ga" - Convert will attempt to pick revenue from GA revenue tracking code and attach it to this goal,
|
|
7
|
+
* when on page where this goal is triggered via "triggering_rule"
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
triggering_type: RevenueGoalSettings.triggering_type;
|
|
11
|
+
};
|
|
12
|
+
export declare namespace RevenueGoalSettings {
|
|
13
|
+
/**
|
|
14
|
+
* Type of the revenue goal tracking, one of the below.
|
|
15
|
+
* * "manual" - goal will be triggered through the given revenue tracking code;
|
|
16
|
+
* An empty **triggering_rule** has to be provided as that takes priority over manual triggering
|
|
17
|
+
* * "ga" - Convert will attempt to pick revenue from GA revenue tracking code and attach it to this goal,
|
|
18
|
+
* when on page where this goal is triggered via "triggering_rule"
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
enum triggering_type {
|
|
22
|
+
MANUAL = "manual",
|
|
23
|
+
GA = "ga"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BrowserNameMatchRule } from './BrowserNameMatchRule';
|
|
2
|
+
import type { CookieMatchRule } from './CookieMatchRule';
|
|
3
|
+
import type { CountryMatchRule } from './CountryMatchRule';
|
|
4
|
+
import type { DayOfWeekMatchRule } from './DayOfWeekMatchRule';
|
|
5
|
+
import type { GenericBoolKeyValueMatchRule } from './GenericBoolKeyValueMatchRule';
|
|
6
|
+
import type { GenericBoolMatchRule } from './GenericBoolMatchRule';
|
|
7
|
+
import type { GenericNumericKeyValueMatchRule } from './GenericNumericKeyValueMatchRule';
|
|
8
|
+
import type { GenericNumericMatchRule } from './GenericNumericMatchRule';
|
|
9
|
+
import type { GenericTextKeyValueMatchRule } from './GenericTextKeyValueMatchRule';
|
|
10
|
+
import type { GenericTextMatchRule } from './GenericTextMatchRule';
|
|
11
|
+
import type { GoalTriggeredMatchRule } from './GoalTriggeredMatchRule';
|
|
12
|
+
import type { HourOfDayMatchRule } from './HourOfDayMatchRule';
|
|
13
|
+
import type { JsConditionMatchRule } from './JsConditionMatchRule';
|
|
14
|
+
import type { LanguageMatchRule } from './LanguageMatchRule';
|
|
15
|
+
import type { MinuteOfHourMatchRule } from './MinuteOfHourMatchRule';
|
|
16
|
+
import type { OsMatchRule } from './OsMatchRule';
|
|
17
|
+
import type { SegmentBucketedMatchRule } from './SegmentBucketedMatchRule';
|
|
18
|
+
import type { VisitorTypeMatchRule } from './VisitorTypeMatchRule';
|
|
19
|
+
import type { WeatherConditionMatchRule } from './WeatherConditionMatchRule';
|
|
20
|
+
export type RuleElement = (GenericTextMatchRule | GenericNumericMatchRule | GenericBoolMatchRule | GenericTextKeyValueMatchRule | GenericNumericKeyValueMatchRule | GenericBoolKeyValueMatchRule | CookieMatchRule | CountryMatchRule | LanguageMatchRule | GoalTriggeredMatchRule | SegmentBucketedMatchRule | DayOfWeekMatchRule | HourOfDayMatchRule | MinuteOfHourMatchRule | BrowserNameMatchRule | OsMatchRule | WeatherConditionMatchRule | VisitorTypeMatchRule | JsConditionMatchRule);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BrowserNameMatchRule } from './BrowserNameMatchRule';
|
|
2
|
+
import type { CookieMatchRule } from './CookieMatchRule';
|
|
3
|
+
import type { CountryMatchRule } from './CountryMatchRule';
|
|
4
|
+
import type { DayOfWeekMatchRule } from './DayOfWeekMatchRule';
|
|
5
|
+
import type { GenericBoolKeyValueMatchRule } from './GenericBoolKeyValueMatchRule';
|
|
6
|
+
import type { GenericBoolMatchRule } from './GenericBoolMatchRule';
|
|
7
|
+
import type { GenericNumericKeyValueMatchRule } from './GenericNumericKeyValueMatchRule';
|
|
8
|
+
import type { GenericNumericMatchRule } from './GenericNumericMatchRule';
|
|
9
|
+
import type { GenericTextKeyValueMatchRule } from './GenericTextKeyValueMatchRule';
|
|
10
|
+
import type { GenericTextMatchRule } from './GenericTextMatchRule';
|
|
11
|
+
import type { GoalTriggeredMatchRule } from './GoalTriggeredMatchRule';
|
|
12
|
+
import type { HourOfDayMatchRule } from './HourOfDayMatchRule';
|
|
13
|
+
import type { JsConditionMatchRule } from './JsConditionMatchRule';
|
|
14
|
+
import type { LanguageMatchRule } from './LanguageMatchRule';
|
|
15
|
+
import type { MinuteOfHourMatchRule } from './MinuteOfHourMatchRule';
|
|
16
|
+
import type { OsMatchRule } from './OsMatchRule';
|
|
17
|
+
import type { SegmentBucketedMatchRule } from './SegmentBucketedMatchRule';
|
|
18
|
+
import type { VisitorTypeMatchRule } from './VisitorTypeMatchRule';
|
|
19
|
+
import type { WeatherConditionMatchRule } from './WeatherConditionMatchRule';
|
|
20
|
+
export type RuleElementNoUrl = (GenericTextMatchRule | GenericNumericMatchRule | GenericBoolMatchRule | CookieMatchRule | GenericTextKeyValueMatchRule | GenericNumericKeyValueMatchRule | GenericBoolKeyValueMatchRule | CountryMatchRule | LanguageMatchRule | GoalTriggeredMatchRule | SegmentBucketedMatchRule | DayOfWeekMatchRule | HourOfDayMatchRule | MinuteOfHourMatchRule | BrowserNameMatchRule | OsMatchRule | WeatherConditionMatchRule | VisitorTypeMatchRule | JsConditionMatchRule);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RuleElement } from './RuleElement';
|
|
2
|
+
/**
|
|
3
|
+
* This one describes a logical rule that is being used inside the app for triggering goals, matching audiences etc
|
|
4
|
+
*/
|
|
5
|
+
export type RuleObject = {
|
|
6
|
+
/**
|
|
7
|
+
* This describes an outer set of blocks which are evaluated using OR's between them
|
|
8
|
+
*/
|
|
9
|
+
OR?: Array<{
|
|
10
|
+
/**
|
|
11
|
+
* This describes a colections of logical blocks which are evaluated using AND's between them
|
|
12
|
+
*/
|
|
13
|
+
AND?: Array<{
|
|
14
|
+
/**
|
|
15
|
+
* This describes a colections of logical blocks which are evaluated using OR's between them
|
|
16
|
+
*/
|
|
17
|
+
OR_WHEN?: Array<RuleElement>;
|
|
18
|
+
}>;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { RuleElementNoUrl } from './RuleElementNoUrl';
|
|
2
|
+
/**
|
|
3
|
+
* This one describes a logical rule that is being used inside the app for triggering goals, matching audiences etc
|
|
4
|
+
*/
|
|
5
|
+
export type RuleObjectNoUrl = {
|
|
6
|
+
/**
|
|
7
|
+
* This describes an outer set of blocks which are evaluated using OR's between them
|
|
8
|
+
*/
|
|
9
|
+
OR?: Array<{
|
|
10
|
+
/**
|
|
11
|
+
* This describes a colections of logical blocks which are evaluated using AND's between them
|
|
12
|
+
*/
|
|
13
|
+
AND?: Array<{
|
|
14
|
+
/**
|
|
15
|
+
* This describes a colections of logical blocks which are evaluated using OR's between them
|
|
16
|
+
*/
|
|
17
|
+
OR_WHEN?: Array<RuleElementNoUrl>;
|
|
18
|
+
}>;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BoolMatchRulesTypes } from './BoolMatchRulesTypes';
|
|
2
|
+
import type { BrowserNameMatchRulesTypes } from './BrowserNameMatchRulesTypes';
|
|
3
|
+
import type { CookieMatchRulesTypes } from './CookieMatchRulesTypes';
|
|
4
|
+
import type { CountryMatchRulesTypes } from './CountryMatchRulesTypes';
|
|
5
|
+
import type { DayOfWeekMatchRulesTypes } from './DayOfWeekMatchRulesTypes';
|
|
6
|
+
import type { GoalTriggeredMatchRulesTypes } from './GoalTriggeredMatchRulesTypes';
|
|
7
|
+
import type { HourOfDayMatchRulesTypes } from './HourOfDayMatchRulesTypes';
|
|
8
|
+
import type { KeyValueMatchRulesTypes } from './KeyValueMatchRulesTypes';
|
|
9
|
+
import type { LanguageMatchRulesTypes } from './LanguageMatchRulesTypes';
|
|
10
|
+
import type { MinuteOfHourMatchRulesTypes } from './MinuteOfHourMatchRulesTypes';
|
|
11
|
+
import type { NumericMatchRulesTypes } from './NumericMatchRulesTypes';
|
|
12
|
+
import type { OsMatchRulesTypes } from './OsMatchRulesTypes';
|
|
13
|
+
import type { SegmentBucketedMatchRulesTypes } from './SegmentBucketedMatchRulesTypes';
|
|
14
|
+
import type { TextMatchRulesTypes } from './TextMatchRulesTypes';
|
|
15
|
+
import type { VisitorTypeMatchRulesTypes } from './VisitorTypeMatchRulesTypes';
|
|
16
|
+
import type { WeatherConditionMatchRulesTypes } from './WeatherConditionMatchRulesTypes';
|
|
17
|
+
export type RulesTypes = (TextMatchRulesTypes & NumericMatchRulesTypes & BoolMatchRulesTypes & KeyValueMatchRulesTypes & CookieMatchRulesTypes & CountryMatchRulesTypes & VisitorTypeMatchRulesTypes & LanguageMatchRulesTypes & GoalTriggeredMatchRulesTypes & SegmentBucketedMatchRulesTypes & DayOfWeekMatchRulesTypes & HourOfDayMatchRulesTypes & MinuteOfHourMatchRulesTypes & BrowserNameMatchRulesTypes & OsMatchRulesTypes & WeatherConditionMatchRulesTypes);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ConfigGoalBase } from './ConfigGoalBase';
|
|
2
|
+
import type { ScrollPercentageGoalSettings } from './ScrollPercentageGoalSettings';
|
|
3
|
+
export type ScrollPercentageGoal = (ConfigGoalBase & {
|
|
4
|
+
type?: ScrollPercentageGoal.type;
|
|
5
|
+
settings?: ScrollPercentageGoalSettings;
|
|
6
|
+
});
|
|
7
|
+
export declare namespace ScrollPercentageGoal {
|
|
8
|
+
enum type {
|
|
9
|
+
SCROLL_PERCENTAGE = "scroll_percentage"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseMatch } from './BaseMatch';
|
|
2
|
+
import type { BaseRuleWithSegmentBucketedValue } from './BaseRuleWithSegmentBucketedValue';
|
|
3
|
+
import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
|
|
4
|
+
import type { SegmentBucketedMatchRulesTypes } from './SegmentBucketedMatchRulesTypes';
|
|
5
|
+
export type SegmentBucketedMatchRule = (BaseRuleWithSegmentBucketedValue & {
|
|
6
|
+
rule_type: SegmentBucketedMatchRulesTypes;
|
|
7
|
+
matching?: (BaseMatch & {
|
|
8
|
+
match_type?: ChoiceMatchingOptions;
|
|
9
|
+
});
|
|
10
|
+
});
|