@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
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeDefaultRedirectDataBase } from './ExperienceChangeDefaultRedirectDataBase';
|
|
2
|
-
/**
|
|
3
|
-
* Describes structure for "defaultRedirect" type of experience change
|
|
4
|
-
*/
|
|
5
|
-
export type ExperienceChangeDefaultRedirectDataUpdateNoId = ExperienceChangeDefaultRedirectDataBase;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeFullStackFeatureBase } from './ExperienceChangeFullStackFeatureBase';
|
|
2
|
-
import type { ExperienceChangeIdReadOnly } from './ExperienceChangeIdReadOnly';
|
|
3
|
-
/**
|
|
4
|
-
* Describes structure for "fullStackFeature" type of experience change
|
|
5
|
-
*/
|
|
6
|
-
export type ExperienceChangeFullStackFeature = (ExperienceChangeIdReadOnly & ExperienceChangeFullStackFeatureBase);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeFullStackFeatureBase } from './ExperienceChangeFullStackFeatureBase';
|
|
2
|
-
import type { ExperienceChangeIdReadOnly } from './ExperienceChangeIdReadOnly';
|
|
3
|
-
/**
|
|
4
|
-
* Describes structure for "fullStackFeature" type of experience change
|
|
5
|
-
*/
|
|
6
|
-
export type ExperienceChangeFullStackFeatureAdd = (ExperienceChangeIdReadOnly & ExperienceChangeFullStackFeatureBase);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeBase } from './ExperienceChangeBase';
|
|
2
|
-
/**
|
|
3
|
-
* Describes structure for "fullStackFeature" type of experience change
|
|
4
|
-
*/
|
|
5
|
-
export type ExperienceChangeFullStackFeatureBase = (ExperienceChangeBase & {
|
|
6
|
-
type?: ExperienceChangeFullStackFeatureBase.type;
|
|
7
|
-
/**
|
|
8
|
-
* Describes structure for "fullStackFeature" type of experience change
|
|
9
|
-
*/
|
|
10
|
-
data?: {
|
|
11
|
-
/**
|
|
12
|
-
* The **id** of the feature connected to this change
|
|
13
|
-
*/
|
|
14
|
-
feature_id?: number;
|
|
15
|
-
/**
|
|
16
|
-
* A key-value object defined by user which describes the variables values. Where the key is variable name defined in connected feature and value is a variable's value with corresponding type
|
|
17
|
-
*/
|
|
18
|
-
variables_data?: Record<string, any>;
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
export declare namespace ExperienceChangeFullStackFeatureBase {
|
|
22
|
-
enum type {
|
|
23
|
-
FULL_STACK_FEATURE = "fullStackFeature"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeFullStackFeatureBase } from './ExperienceChangeFullStackFeatureBase';
|
|
2
|
-
import type { ExperienceChangeId } from './ExperienceChangeId';
|
|
3
|
-
/**
|
|
4
|
-
* Describes structure for "fullStackFeature" type of experience change
|
|
5
|
-
*/
|
|
6
|
-
export type ExperienceChangeFullStackFeatureUpdate = (ExperienceChangeId & ExperienceChangeFullStackFeatureBase);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeFullStackFeatureBase } from './ExperienceChangeFullStackFeatureBase';
|
|
2
|
-
/**
|
|
3
|
-
* Describes structure for "fullStackFeature" type of experience change
|
|
4
|
-
*/
|
|
5
|
-
export type ExperienceChangeFullStackFeatureUpdateNoId = ExperienceChangeFullStackFeatureBase;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeIdReadOnly } from './ExperienceChangeIdReadOnly';
|
|
2
|
-
import type { ExperienceChangeRichStructureDataBase } from './ExperienceChangeRichStructureDataBase';
|
|
3
|
-
/**
|
|
4
|
-
* Describes structure for "defaultCode" type of experience change
|
|
5
|
-
*/
|
|
6
|
-
export type ExperienceChangeRichStructureData = (ExperienceChangeIdReadOnly & ExperienceChangeRichStructureDataBase);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeIdReadOnly } from './ExperienceChangeIdReadOnly';
|
|
2
|
-
import type { ExperienceChangeRichStructureDataBase } from './ExperienceChangeRichStructureDataBase';
|
|
3
|
-
/**
|
|
4
|
-
* Describes structure for "defaultCode" type of experience change
|
|
5
|
-
*/
|
|
6
|
-
export type ExperienceChangeRichStructureDataAdd = (ExperienceChangeIdReadOnly & ExperienceChangeRichStructureDataBase);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeBase } from './ExperienceChangeBase';
|
|
2
|
-
/**
|
|
3
|
-
* Describes structure for "defaultCode" type of experience change
|
|
4
|
-
*/
|
|
5
|
-
export type ExperienceChangeRichStructureDataBase = (ExperienceChangeBase & {
|
|
6
|
-
type?: ExperienceChangeRichStructureDataBase.type;
|
|
7
|
-
/**
|
|
8
|
-
* Describes structure for "defaultCode" type of experience change
|
|
9
|
-
*/
|
|
10
|
-
data?: Record<string, string>;
|
|
11
|
-
});
|
|
12
|
-
export declare namespace ExperienceChangeRichStructureDataBase {
|
|
13
|
-
enum type {
|
|
14
|
-
RICH_STRUCTURE = "richStructure"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeId } from './ExperienceChangeId';
|
|
2
|
-
import type { ExperienceChangeRichStructureDataBase } from './ExperienceChangeRichStructureDataBase';
|
|
3
|
-
/**
|
|
4
|
-
* Describes structure for "defaultCode" type of experience change
|
|
5
|
-
*/
|
|
6
|
-
export type ExperienceChangeRichStructureDataUpdate = (ExperienceChangeId & ExperienceChangeRichStructureDataBase);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeRichStructureDataBase } from './ExperienceChangeRichStructureDataBase';
|
|
2
|
-
/**
|
|
3
|
-
* Describes structure for "defaultCode" type of experience change
|
|
4
|
-
*/
|
|
5
|
-
export type ExperienceChangeRichStructureDataUpdateNoId = ExperienceChangeRichStructureDataBase;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeCustomCodeDataUpdate } from './ExperienceChangeCustomCodeDataUpdate';
|
|
2
|
-
import type { ExperienceChangeDefaultCodeDataUpdate } from './ExperienceChangeDefaultCodeDataUpdate';
|
|
3
|
-
import type { ExperienceChangeDefaultCodeMultipageDataUpdate } from './ExperienceChangeDefaultCodeMultipageDataUpdate';
|
|
4
|
-
import type { ExperienceChangeDefaultRedirectDataUpdate } from './ExperienceChangeDefaultRedirectDataUpdate';
|
|
5
|
-
import type { ExperienceChangeFullStackFeatureUpdate } from './ExperienceChangeFullStackFeatureUpdate';
|
|
6
|
-
import type { ExperienceChangeRichStructureDataUpdate } from './ExperienceChangeRichStructureDataUpdate';
|
|
7
|
-
/**
|
|
8
|
-
* Object that represents one change done inside an experience
|
|
9
|
-
*/
|
|
10
|
-
export type ExperienceChangeUpdate = (ExperienceChangeDefaultCodeDataUpdate | ExperienceChangeDefaultCodeMultipageDataUpdate | ExperienceChangeDefaultRedirectDataUpdate | ExperienceChangeRichStructureDataUpdate | ExperienceChangeCustomCodeDataUpdate | ExperienceChangeFullStackFeatureUpdate);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChangeCustomCodeDataUpdateNoId } from './ExperienceChangeCustomCodeDataUpdateNoId';
|
|
2
|
-
import type { ExperienceChangeDefaultCodeDataUpdateNoId } from './ExperienceChangeDefaultCodeDataUpdateNoId';
|
|
3
|
-
import type { ExperienceChangeDefaultCodeMultipageDataUpdateNoId } from './ExperienceChangeDefaultCodeMultipageDataUpdateNoId';
|
|
4
|
-
import type { ExperienceChangeDefaultRedirectDataUpdateNoId } from './ExperienceChangeDefaultRedirectDataUpdateNoId';
|
|
5
|
-
import type { ExperienceChangeFullStackFeatureUpdateNoId } from './ExperienceChangeFullStackFeatureUpdateNoId';
|
|
6
|
-
import type { ExperienceChangeRichStructureDataUpdateNoId } from './ExperienceChangeRichStructureDataUpdateNoId';
|
|
7
|
-
/**
|
|
8
|
-
* Object that represents one change done inside an experience
|
|
9
|
-
*/
|
|
10
|
-
export type ExperienceChangeUpdateNoId = (ExperienceChangeDefaultCodeDataUpdateNoId | ExperienceChangeDefaultCodeMultipageDataUpdateNoId | ExperienceChangeDefaultRedirectDataUpdateNoId | ExperienceChangeRichStructureDataUpdateNoId | ExperienceChangeCustomCodeDataUpdateNoId | ExperienceChangeFullStackFeatureUpdateNoId);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IntegrationProvider } from './IntegrationProvider';
|
|
2
|
-
export type ExperienceIntegrationBase = {
|
|
3
|
-
provider: IntegrationProvider;
|
|
4
|
-
/**
|
|
5
|
-
* Boolean flag indicating whether the integration is enabled or not. When updating experience's integrations,
|
|
6
|
-
* to disable an integration, this flag needs to be passed as **false**. If not passed, integration is assumed to be **enabled=true**
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
enabled?: boolean | null;
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ExperienceIntegrationBase } from './ExperienceIntegrationBase';
|
|
2
|
-
/**
|
|
3
|
-
* Crazyegg integration requires API key and secret which are set at the project level and can be
|
|
4
|
-
* updated using updateProject operation
|
|
5
|
-
*
|
|
6
|
-
* **Important:** Not having API key and secret set for the project, would cause integration to fail
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
export type ExperienceIntegrationCrazyegg = ExperienceIntegrationBase;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ExperienceIntegrationBase } from './ExperienceIntegrationBase';
|
|
2
|
-
import type { GA_SettingsBase } from './GA_SettingsBase';
|
|
3
|
-
import type { IntegrationGA3 } from './IntegrationGA3';
|
|
4
|
-
export type ExperienceIntegrationGA3 = (GA_SettingsBase & ExperienceIntegrationBase & IntegrationGA3 & {
|
|
5
|
-
/**
|
|
6
|
-
* Custom dimension where experience data should be sent to.
|
|
7
|
-
*/
|
|
8
|
-
custom_dimension?: string;
|
|
9
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ExperienceIntegrationGA4Base } from './ExperienceIntegrationGA4Base';
|
|
2
|
-
import type { IntegrationGA4 } from './IntegrationGA4';
|
|
3
|
-
export type ExperienceIntegrationGA4 = (ExperienceIntegrationGA4Base & IntegrationGA4 & {
|
|
4
|
-
/**
|
|
5
|
-
* List of GA audiences created for each of this experience's variations
|
|
6
|
-
*/
|
|
7
|
-
audiences?: Record<string, string>;
|
|
8
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ExperienceIntegrationBase } from './ExperienceIntegrationBase';
|
|
2
|
-
import type { GA_SettingsBase } from './GA_SettingsBase';
|
|
3
|
-
import type { IntegrationGA4Base } from './IntegrationGA4Base';
|
|
4
|
-
export type ExperienceIntegrationGA4Base = (GA_SettingsBase & ExperienceIntegrationBase & IntegrationGA4Base);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ExperienceChange } from './ExperienceChange';
|
|
2
|
-
import type { VariationStatuses } from './VariationStatuses';
|
|
3
|
-
/**
|
|
4
|
-
* Variation Object
|
|
5
|
-
*/
|
|
6
|
-
export type ExperienceVariationConfig = {
|
|
7
|
-
/**
|
|
8
|
-
* Variation ID
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Variation name
|
|
13
|
-
*/
|
|
14
|
-
name?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Variation Key
|
|
17
|
-
*/
|
|
18
|
-
key?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Percentage of traffic allocation for this variation, as a number from 0 to 10000.
|
|
21
|
-
* For an experience, the sum of the traffic allocations for all variations cannot be greater than 10000.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
traffic_allocation?: number;
|
|
25
|
-
status?: VariationStatuses;
|
|
26
|
-
/**
|
|
27
|
-
* List of changes that this variation is exposing.
|
|
28
|
-
*/
|
|
29
|
-
changes?: Array<ExperienceChange>;
|
|
30
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An object which describes the variable of a feature. Where key is variable name and value is one of the possible types [boolean, float, json, integer, string]
|
|
3
|
-
*/
|
|
4
|
-
export type FeatureVariableItemData = {
|
|
5
|
-
/**
|
|
6
|
-
* A user-defined variable name
|
|
7
|
-
*/
|
|
8
|
-
key?: string;
|
|
9
|
-
/**
|
|
10
|
-
* A variable's type
|
|
11
|
-
*/
|
|
12
|
-
type?: FeatureVariableItemData.type;
|
|
13
|
-
};
|
|
14
|
-
export declare namespace FeatureVariableItemData {
|
|
15
|
-
/**
|
|
16
|
-
* A variable's type
|
|
17
|
-
*/
|
|
18
|
-
enum type {
|
|
19
|
-
BOOLEAN = "boolean",
|
|
20
|
-
FLOAT = "float",
|
|
21
|
-
JSON = "json",
|
|
22
|
-
INTEGER = "integer",
|
|
23
|
-
STRING = "string"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ConfigGoalBase } from './ConfigGoalBase';
|
|
2
|
-
import type { GaGoalSettings } from './GaGoalSettings';
|
|
3
|
-
export type GaGoal = (ConfigGoalBase & {
|
|
4
|
-
type?: GaGoal.type;
|
|
5
|
-
settings?: GaGoalSettings;
|
|
6
|
-
});
|
|
7
|
-
export declare namespace GaGoal {
|
|
8
|
-
enum type {
|
|
9
|
-
GA_IMPORT = "ga_import"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { BaseMatch } from './BaseMatch';
|
|
2
|
-
import type { BaseRuleWithBooleanValue } from './BaseRuleWithBooleanValue';
|
|
3
|
-
import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
|
|
4
|
-
import type { GenericBoolKeyValueMatchRulesTypes } from './GenericBoolKeyValueMatchRulesTypes';
|
|
5
|
-
import type { GenericKey } from './GenericKey';
|
|
6
|
-
export type GenericBoolKeyValueMatchRule = (BaseRuleWithBooleanValue & {
|
|
7
|
-
rule_type: GenericBoolKeyValueMatchRulesTypes;
|
|
8
|
-
matching?: (BaseMatch & {
|
|
9
|
-
match_type?: ChoiceMatchingOptions;
|
|
10
|
-
});
|
|
11
|
-
} & GenericKey);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BaseMatch } from './BaseMatch';
|
|
2
|
-
import type { BaseRuleWithBooleanValue } from './BaseRuleWithBooleanValue';
|
|
3
|
-
import type { BoolMatchRulesTypes } from './BoolMatchRulesTypes';
|
|
4
|
-
import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
|
|
5
|
-
export type GenericBoolMatchRule = (BaseRuleWithBooleanValue & {
|
|
6
|
-
rule_type: BoolMatchRulesTypes;
|
|
7
|
-
matching?: (BaseMatch & {
|
|
8
|
-
match_type?: ChoiceMatchingOptions;
|
|
9
|
-
});
|
|
10
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
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);
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
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);
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|