@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.
Files changed (215) hide show
  1. package/lib/enums/src/dictionary.d.ts +3 -0
  2. package/lib/enums/src/goal-data-key.d.ts +6 -1
  3. package/lib/index.d.ts +2 -1
  4. package/lib/index.js +203 -157
  5. package/lib/index.js.map +1 -1
  6. package/lib/index.min.js +1 -1
  7. package/lib/index.min.js.map +1 -1
  8. package/lib/index.min.mjs +1 -1
  9. package/lib/index.min.mjs.map +1 -1
  10. package/lib/index.mjs +203 -157
  11. package/lib/index.mjs.map +1 -1
  12. package/lib/legacy/index.js +180 -134
  13. package/lib/legacy/index.js.map +1 -1
  14. package/lib/legacy/index.min.js +1 -1
  15. package/lib/legacy/index.min.js.map +1 -1
  16. package/lib/package.json +5 -5
  17. package/lib/rules/src/interfaces/rule-manager.d.ts +1 -0
  18. package/lib/rules/src/rule-manager.d.ts +1 -1
  19. package/lib/types/index.d.ts +1 -0
  20. package/lib/types/src/config/index.d.ts +1 -192
  21. package/lib/types/src/config/types.gen.d.ts +2494 -0
  22. package/lib/utils/src/string-utils.d.ts +12 -0
  23. package/package.json +5 -5
  24. package/lib/types/src/config/models/Base64Image.d.ts +0 -6
  25. package/lib/types/src/config/models/BaseMatch.d.ts +0 -8
  26. package/lib/types/src/config/models/BaseRule.d.ts +0 -6
  27. package/lib/types/src/config/models/BaseRuleWithBooleanValue.d.ts +0 -7
  28. package/lib/types/src/config/models/BaseRuleWithBrowserNameValue.d.ts +0 -21
  29. package/lib/types/src/config/models/BaseRuleWithCountryCodeValue.d.ts +0 -7
  30. package/lib/types/src/config/models/BaseRuleWithDayOfWeekValue.d.ts +0 -7
  31. package/lib/types/src/config/models/BaseRuleWithExperienceBucketedValue.d.ts +0 -7
  32. package/lib/types/src/config/models/BaseRuleWithGoalTriggeredValue.d.ts +0 -7
  33. package/lib/types/src/config/models/BaseRuleWithHourOfDayValue.d.ts +0 -7
  34. package/lib/types/src/config/models/BaseRuleWithJsCodeValue.d.ts +0 -9
  35. package/lib/types/src/config/models/BaseRuleWithLanguageCodeValue.d.ts +0 -7
  36. package/lib/types/src/config/models/BaseRuleWithMinuteOfHourValue.d.ts +0 -7
  37. package/lib/types/src/config/models/BaseRuleWithNumericValue.d.ts +0 -7
  38. package/lib/types/src/config/models/BaseRuleWithOsValue.d.ts +0 -21
  39. package/lib/types/src/config/models/BaseRuleWithSegmentBucketedValue.d.ts +0 -7
  40. package/lib/types/src/config/models/BaseRuleWithStringValue.d.ts +0 -7
  41. package/lib/types/src/config/models/BaseRuleWithVisitorTypeValue.d.ts +0 -16
  42. package/lib/types/src/config/models/BaseRuleWithWeatherConditionValue.d.ts +0 -34
  43. package/lib/types/src/config/models/BoolMatchRulesTypes.d.ts +0 -6
  44. package/lib/types/src/config/models/BrowserNameMatchRule.d.ts +0 -10
  45. package/lib/types/src/config/models/BrowserNameMatchRulesTypes.d.ts +0 -3
  46. package/lib/types/src/config/models/BucketingEvent.d.ts +0 -15
  47. package/lib/types/src/config/models/ChoiceContainsOptions.d.ts +0 -3
  48. package/lib/types/src/config/models/ChoiceMatchingOptions.d.ts +0 -3
  49. package/lib/types/src/config/models/ClicksElementGoal.d.ts +0 -11
  50. package/lib/types/src/config/models/ClicksElementGoalSettings.d.ts +0 -6
  51. package/lib/types/src/config/models/ClicksLinkGoal.d.ts +0 -11
  52. package/lib/types/src/config/models/ClicksLinkGoalSettings.d.ts +0 -6
  53. package/lib/types/src/config/models/ConfigAudience.d.ts +0 -21
  54. package/lib/types/src/config/models/ConfigAudienceTypes.d.ts +0 -10
  55. package/lib/types/src/config/models/ConfigExperience.d.ts +0 -98
  56. package/lib/types/src/config/models/ConfigFeature.d.ts +0 -22
  57. package/lib/types/src/config/models/ConfigGoal.d.ts +0 -9
  58. package/lib/types/src/config/models/ConfigGoalBase.d.ts +0 -24
  59. package/lib/types/src/config/models/ConfigLocation.d.ts +0 -21
  60. package/lib/types/src/config/models/ConfigProject.d.ts +0 -151
  61. package/lib/types/src/config/models/ConfigResponseData.d.ts +0 -45
  62. package/lib/types/src/config/models/ConfigSegment.d.ts +0 -19
  63. package/lib/types/src/config/models/ConversionEvent.d.ts +0 -30
  64. package/lib/types/src/config/models/CookieMatchRule.d.ts +0 -14
  65. package/lib/types/src/config/models/CookieMatchRulesTypes.d.ts +0 -3
  66. package/lib/types/src/config/models/CountryMatchRule.d.ts +0 -10
  67. package/lib/types/src/config/models/CountryMatchRulesTypes.d.ts +0 -3
  68. package/lib/types/src/config/models/DayOfWeekMatchRule.d.ts +0 -10
  69. package/lib/types/src/config/models/DayOfWeekMatchRulesTypes.d.ts +0 -4
  70. package/lib/types/src/config/models/DomInteractionGoal.d.ts +0 -11
  71. package/lib/types/src/config/models/DomInteractionGoalSettings.d.ts +0 -15
  72. package/lib/types/src/config/models/ErrorData.d.ts +0 -5
  73. package/lib/types/src/config/models/ExperienceBucketedMatchRule.d.ts +0 -9
  74. package/lib/types/src/config/models/ExperienceChange.d.ts +0 -10
  75. package/lib/types/src/config/models/ExperienceChangeAdd.d.ts +0 -10
  76. package/lib/types/src/config/models/ExperienceChangeBase.d.ts +0 -27
  77. package/lib/types/src/config/models/ExperienceChangeCustomCodeData.d.ts +0 -6
  78. package/lib/types/src/config/models/ExperienceChangeCustomCodeDataAdd.d.ts +0 -6
  79. package/lib/types/src/config/models/ExperienceChangeCustomCodeDataBase.d.ts +0 -29
  80. package/lib/types/src/config/models/ExperienceChangeCustomCodeDataUpdate.d.ts +0 -6
  81. package/lib/types/src/config/models/ExperienceChangeCustomCodeDataUpdateNoId.d.ts +0 -5
  82. package/lib/types/src/config/models/ExperienceChangeDefaultCodeData.d.ts +0 -6
  83. package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataAdd.d.ts +0 -6
  84. package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataBase.d.ts +0 -29
  85. package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataUpdate.d.ts +0 -6
  86. package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataUpdateNoId.d.ts +0 -5
  87. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageData.d.ts +0 -6
  88. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataAdd.d.ts +0 -6
  89. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataBase.d.ts +0 -33
  90. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataUpdate.d.ts +0 -6
  91. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataUpdateNoId.d.ts +0 -5
  92. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectData.d.ts +0 -6
  93. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataAdd.d.ts +0 -6
  94. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataBase.d.ts +0 -29
  95. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataUpdate.d.ts +0 -6
  96. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataUpdateNoId.d.ts +0 -5
  97. package/lib/types/src/config/models/ExperienceChangeFullStackFeature.d.ts +0 -6
  98. package/lib/types/src/config/models/ExperienceChangeFullStackFeatureAdd.d.ts +0 -6
  99. package/lib/types/src/config/models/ExperienceChangeFullStackFeatureBase.d.ts +0 -25
  100. package/lib/types/src/config/models/ExperienceChangeFullStackFeatureUpdate.d.ts +0 -6
  101. package/lib/types/src/config/models/ExperienceChangeFullStackFeatureUpdateNoId.d.ts +0 -5
  102. package/lib/types/src/config/models/ExperienceChangeId.d.ts +0 -9
  103. package/lib/types/src/config/models/ExperienceChangeIdReadOnly.d.ts +0 -9
  104. package/lib/types/src/config/models/ExperienceChangeRichStructureData.d.ts +0 -6
  105. package/lib/types/src/config/models/ExperienceChangeRichStructureDataAdd.d.ts +0 -6
  106. package/lib/types/src/config/models/ExperienceChangeRichStructureDataBase.d.ts +0 -16
  107. package/lib/types/src/config/models/ExperienceChangeRichStructureDataUpdate.d.ts +0 -6
  108. package/lib/types/src/config/models/ExperienceChangeRichStructureDataUpdateNoId.d.ts +0 -5
  109. package/lib/types/src/config/models/ExperienceChangeUpdate.d.ts +0 -10
  110. package/lib/types/src/config/models/ExperienceChangeUpdateNoId.d.ts +0 -10
  111. package/lib/types/src/config/models/ExperienceIntegrationBaidu.d.ts +0 -7
  112. package/lib/types/src/config/models/ExperienceIntegrationBase.d.ts +0 -10
  113. package/lib/types/src/config/models/ExperienceIntegrationClicktale.d.ts +0 -2
  114. package/lib/types/src/config/models/ExperienceIntegrationClicky.d.ts +0 -2
  115. package/lib/types/src/config/models/ExperienceIntegrationCnzz.d.ts +0 -7
  116. package/lib/types/src/config/models/ExperienceIntegrationCrazyegg.d.ts +0 -9
  117. package/lib/types/src/config/models/ExperienceIntegrationEconda.d.ts +0 -2
  118. package/lib/types/src/config/models/ExperienceIntegrationEulerian.d.ts +0 -2
  119. package/lib/types/src/config/models/ExperienceIntegrationGA3.d.ts +0 -9
  120. package/lib/types/src/config/models/ExperienceIntegrationGA4.d.ts +0 -8
  121. package/lib/types/src/config/models/ExperienceIntegrationGA4Base.d.ts +0 -4
  122. package/lib/types/src/config/models/ExperienceIntegrationGAServing.d.ts +0 -3
  123. package/lib/types/src/config/models/ExperienceIntegrationGoogleAnalytics.d.ts +0 -3
  124. package/lib/types/src/config/models/ExperienceIntegrationGosquared.d.ts +0 -2
  125. package/lib/types/src/config/models/ExperienceIntegrationHeapanalytics.d.ts +0 -2
  126. package/lib/types/src/config/models/ExperienceIntegrationHotjar.d.ts +0 -2
  127. package/lib/types/src/config/models/ExperienceIntegrationMixpanel.d.ts +0 -2
  128. package/lib/types/src/config/models/ExperienceIntegrationMouseflow.d.ts +0 -2
  129. package/lib/types/src/config/models/ExperienceIntegrationPiwik.d.ts +0 -7
  130. package/lib/types/src/config/models/ExperienceIntegrationSegmentio.d.ts +0 -2
  131. package/lib/types/src/config/models/ExperienceIntegrationSitecatalyst.d.ts +0 -7
  132. package/lib/types/src/config/models/ExperienceIntegrationWoopra.d.ts +0 -2
  133. package/lib/types/src/config/models/ExperienceIntegrationYsance.d.ts +0 -7
  134. package/lib/types/src/config/models/ExperienceTypes.d.ts +0 -8
  135. package/lib/types/src/config/models/ExperienceVariationConfig.d.ts +0 -30
  136. package/lib/types/src/config/models/Extra.d.ts +0 -4
  137. package/lib/types/src/config/models/FeatureVariableItemData.d.ts +0 -25
  138. package/lib/types/src/config/models/GA_Settings.d.ts +0 -3
  139. package/lib/types/src/config/models/GA_SettingsBase.d.ts +0 -6
  140. package/lib/types/src/config/models/GaGoal.d.ts +0 -11
  141. package/lib/types/src/config/models/GaGoalSettings.d.ts +0 -6
  142. package/lib/types/src/config/models/GenericBoolKeyValueMatchRule.d.ts +0 -11
  143. package/lib/types/src/config/models/GenericBoolKeyValueMatchRulesTypes.d.ts +0 -3
  144. package/lib/types/src/config/models/GenericBoolMatchRule.d.ts +0 -10
  145. package/lib/types/src/config/models/GenericKey.d.ts +0 -6
  146. package/lib/types/src/config/models/GenericNumericKeyValueMatchRule.d.ts +0 -11
  147. package/lib/types/src/config/models/GenericNumericKeyValueMatchRulesTypes.d.ts +0 -3
  148. package/lib/types/src/config/models/GenericNumericMatchRule.d.ts +0 -10
  149. package/lib/types/src/config/models/GenericSetMatchRule.d.ts +0 -9
  150. package/lib/types/src/config/models/GenericTextKeyValueMatchRule.d.ts +0 -11
  151. package/lib/types/src/config/models/GenericTextKeyValueMatchRulesTypes.d.ts +0 -3
  152. package/lib/types/src/config/models/GenericTextMatchRule.d.ts +0 -10
  153. package/lib/types/src/config/models/GoalTriggeredMatchRule.d.ts +0 -10
  154. package/lib/types/src/config/models/GoalTriggeredMatchRulesTypes.d.ts +0 -3
  155. package/lib/types/src/config/models/GoalTypes.d.ts +0 -10
  156. package/lib/types/src/config/models/HourOfDayMatchRule.d.ts +0 -10
  157. package/lib/types/src/config/models/HourOfDayMatchRulesTypes.d.ts +0 -4
  158. package/lib/types/src/config/models/IntegrationGA3.d.ts +0 -12
  159. package/lib/types/src/config/models/IntegrationGA4.d.ts +0 -7
  160. package/lib/types/src/config/models/IntegrationGA4Base.d.ts +0 -12
  161. package/lib/types/src/config/models/IntegrationProvider.d.ts +0 -23
  162. package/lib/types/src/config/models/JsConditionMatchRule.d.ts +0 -10
  163. package/lib/types/src/config/models/JsConditionMatchRulesTypes.d.ts +0 -3
  164. package/lib/types/src/config/models/KeyValueMatchRulesTypes.d.ts +0 -4
  165. package/lib/types/src/config/models/LanguageMatchRule.d.ts +0 -10
  166. package/lib/types/src/config/models/LanguageMatchRulesTypes.d.ts +0 -3
  167. package/lib/types/src/config/models/LocationTrigger.d.ts +0 -5
  168. package/lib/types/src/config/models/LocationTriggerBase.d.ts +0 -14
  169. package/lib/types/src/config/models/LocationTriggerCallback.d.ts +0 -13
  170. package/lib/types/src/config/models/LocationTriggerDomChange.d.ts +0 -17
  171. package/lib/types/src/config/models/LocationTriggerManual.d.ts +0 -9
  172. package/lib/types/src/config/models/LocationTriggerUrlChange.d.ts +0 -9
  173. package/lib/types/src/config/models/MinuteOfHourMatchRule.d.ts +0 -10
  174. package/lib/types/src/config/models/MinuteOfHourMatchRulesTypes.d.ts +0 -4
  175. package/lib/types/src/config/models/NoSettingsGoal.d.ts +0 -11
  176. package/lib/types/src/config/models/NumericMatchRulesTypes.d.ts +0 -8
  177. package/lib/types/src/config/models/NumericMatchingOptions.d.ts +0 -5
  178. package/lib/types/src/config/models/OnlyCount.d.ts +0 -7
  179. package/lib/types/src/config/models/OsMatchRule.d.ts +0 -10
  180. package/lib/types/src/config/models/OsMatchRulesTypes.d.ts +0 -3
  181. package/lib/types/src/config/models/PageNumber.d.ts +0 -9
  182. package/lib/types/src/config/models/Pagination.d.ts +0 -18
  183. package/lib/types/src/config/models/ProjectGASettingsBase.d.ts +0 -7
  184. package/lib/types/src/config/models/ProjectIntegrationGA3.d.ts +0 -3
  185. package/lib/types/src/config/models/ProjectIntegrationGA4.d.ts +0 -8
  186. package/lib/types/src/config/models/ResultsPerPage.d.ts +0 -10
  187. package/lib/types/src/config/models/RevenueGoal.d.ts +0 -11
  188. package/lib/types/src/config/models/RevenueGoalSettings.d.ts +0 -25
  189. package/lib/types/src/config/models/RuleElement.d.ts +0 -20
  190. package/lib/types/src/config/models/RuleElementNoUrl.d.ts +0 -20
  191. package/lib/types/src/config/models/RuleObject.d.ts +0 -20
  192. package/lib/types/src/config/models/RuleObjectNoUrl.d.ts +0 -20
  193. package/lib/types/src/config/models/RulesTypes.d.ts +0 -17
  194. package/lib/types/src/config/models/ScrollPercentageGoal.d.ts +0 -11
  195. package/lib/types/src/config/models/ScrollPercentageGoalSettings.d.ts +0 -6
  196. package/lib/types/src/config/models/SegmentBucketedMatchRule.d.ts +0 -10
  197. package/lib/types/src/config/models/SegmentBucketedMatchRulesTypes.d.ts +0 -3
  198. package/lib/types/src/config/models/SendTrackingEventsRequestData.d.ts +0 -39
  199. package/lib/types/src/config/models/SetMatchingOptions.d.ts +0 -3
  200. package/lib/types/src/config/models/SortDirection.d.ts +0 -21
  201. package/lib/types/src/config/models/SubmitsFormGoal.d.ts +0 -11
  202. package/lib/types/src/config/models/SubmitsFormGoalSettings.d.ts +0 -6
  203. package/lib/types/src/config/models/SuccessData.d.ts +0 -4
  204. package/lib/types/src/config/models/TextMatchRulesTypes.d.ts +0 -23
  205. package/lib/types/src/config/models/TextMatchingOptions.d.ts +0 -7
  206. package/lib/types/src/config/models/UTC_Offset.d.ts +0 -4
  207. package/lib/types/src/config/models/UpdateExperienceChangeRequestData.d.ts +0 -2
  208. package/lib/types/src/config/models/VariationStatuses.d.ts +0 -7
  209. package/lib/types/src/config/models/VisitorSegments.d.ts +0 -78
  210. package/lib/types/src/config/models/VisitorTrackingEvents.d.ts +0 -21
  211. package/lib/types/src/config/models/VisitorTypeMatchRule.d.ts +0 -10
  212. package/lib/types/src/config/models/VisitorTypeMatchRulesTypes.d.ts +0 -3
  213. package/lib/types/src/config/models/WeatherConditionMatchRule.d.ts +0 -10
  214. package/lib/types/src/config/models/WeatherConditionMatchRulesTypes.d.ts +0 -3
  215. package/lib/types/src/config/models/WeatherConditions.d.ts +0 -30
@@ -1,23 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- });
@@ -1,3 +0,0 @@
1
- export declare enum JsConditionMatchRulesTypes {
2
- JS_CONDITION = "js_condition"
3
- }
@@ -1,4 +0,0 @@
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);
@@ -1,10 +0,0 @@
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
- });
@@ -1,3 +0,0 @@
1
- export declare enum LanguageMatchRulesTypes {
2
- LANGUAGE = "language"
3
- }
@@ -1,5 +0,0 @@
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);
@@ -1,14 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- });
@@ -1,4 +0,0 @@
1
- export declare enum MinuteOfHourMatchRulesTypes {
2
- LOCAL_TIME_MINUTE_OF_HOUR = "local_time_minute_of_hour",
3
- PROJECT_TIME_MINUTE_OF_HOUR = "project_time_minute_of_hour"
4
- }
@@ -1,11 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- export declare enum NumericMatchingOptions {
2
- EQUALS_NUMBER = "equalsNumber",
3
- LESS = "less",
4
- LESS_EQUAL = "lessEqual"
5
- }
@@ -1,7 +0,0 @@
1
- export type OnlyCount = {
2
- /**
3
- * When provided in requests that allow it, the response would only contain count of records and no real records' data
4
- *
5
- */
6
- onlyCount?: boolean;
7
- };
@@ -1,10 +0,0 @@
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
- });
@@ -1,3 +0,0 @@
1
- export declare enum OsMatchRulesTypes {
2
- OS = "os"
3
- }
@@ -1,9 +0,0 @@
1
- export type PageNumber = {
2
- /**
3
- * Describes the page number of the fetched results. "results_per_page" results are gonna be returned for each page
4
- *
5
- * Defaults to 1 when not sent
6
- *
7
- */
8
- page?: number;
9
- };
@@ -1,18 +0,0 @@
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
- };
@@ -1,7 +0,0 @@
1
- import type { GA_SettingsBase } from './GA_SettingsBase';
2
- export type ProjectGASettingsBase = (GA_SettingsBase & {
3
- /**
4
- * Attempt to pull revenue data from Google Analytics Revenue Tracking code.
5
- */
6
- auto_revenue_tracking?: boolean;
7
- });
@@ -1,3 +0,0 @@
1
- import type { IntegrationGA3 } from './IntegrationGA3';
2
- import type { ProjectGASettingsBase } from './ProjectGASettingsBase';
3
- export type ProjectIntegrationGA3 = (ProjectGASettingsBase & IntegrationGA3);
@@ -1,8 +0,0 @@
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
- });
@@ -1,10 +0,0 @@
1
- export type ResultsPerPage = {
2
- /**
3
- * A value that would be used for setting the number of records that
4
- * would be returned per page.
5
- *
6
- * Defaults to 30 when not sent
7
- *
8
- */
9
- results_per_page?: number | null;
10
- };
@@ -1,11 +0,0 @@
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
- }
@@ -1,25 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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);
@@ -1,20 +0,0 @@
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);
@@ -1,20 +0,0 @@
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
- };
@@ -1,20 +0,0 @@
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
- };
@@ -1,17 +0,0 @@
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);
@@ -1,11 +0,0 @@
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
- }
@@ -1,6 +0,0 @@
1
- export type ScrollPercentageGoalSettings = {
2
- /**
3
- * The percentage of scrolling after which the goal will be fired
4
- */
5
- percentage: number;
6
- };
@@ -1,10 +0,0 @@
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
- });
@@ -1,3 +0,0 @@
1
- export declare enum SegmentBucketedMatchRulesTypes {
2
- BUCKETED_INTO_SEGMENT = "bucketed_into_segment"
3
- }
@@ -1,39 +0,0 @@
1
- import type { VisitorSegments } from './VisitorSegments';
2
- import type { VisitorTrackingEvents } from './VisitorTrackingEvents';
3
- /**
4
- * Tracking Request's data
5
- */
6
- export type SendTrackingEventsRequestData = {
7
- /**
8
- * ID of the account under which the project is setup
9
- */
10
- accountId?: string;
11
- /**
12
- * ID of the project under which the tracking occurs
13
- */
14
- projectId?: string;
15
- /**
16
- * Flag to determine whether the data is gonna be enriched before the events are stored for reporting.
17
- * For example, in case of a conversion event, if this flag is on and bucketing is not provided, the bucketing stored on the backend datastore for the given visitor
18
- * ID would be used. Same applies for segments.
19
- *
20
- * *Note*: this flag is only available for some plans
21
- *
22
- */
23
- enrichData?: boolean;
24
- /**
25
- * List of visitors tracked. Each visitor can have multiple events.
26
- *
27
- */
28
- visitors?: Array<{
29
- segments?: VisitorSegments;
30
- /**
31
- * Id of the visitor tracked
32
- */
33
- visitorId?: string;
34
- /**
35
- * List of events fired for the given visitor
36
- */
37
- events?: Array<VisitorTrackingEvents>;
38
- }>;
39
- };
@@ -1,3 +0,0 @@
1
- export declare enum SetMatchingOptions {
2
- IS_IN = "isIn"
3
- }
@@ -1,21 +0,0 @@
1
- export type SortDirection = {
2
- /**
3
- * Data sorting direction using "sort_by" field. "asc" for ascending direction, "desc" for descending direction
4
- *
5
- * Defaults to **desc** when not sent in a request
6
- *
7
- */
8
- sort_direction?: SortDirection.sort_direction | null;
9
- };
10
- export declare namespace SortDirection {
11
- /**
12
- * Data sorting direction using "sort_by" field. "asc" for ascending direction, "desc" for descending direction
13
- *
14
- * Defaults to **desc** when not sent in a request
15
- *
16
- */
17
- enum sort_direction {
18
- ASC = "asc",
19
- DESC = "desc"
20
- }
21
- }
@@ -1,11 +0,0 @@
1
- import type { ConfigGoalBase } from './ConfigGoalBase';
2
- import type { SubmitsFormGoalSettings } from './SubmitsFormGoalSettings';
3
- export type SubmitsFormGoal = (ConfigGoalBase & {
4
- type?: SubmitsFormGoal.type;
5
- settings?: SubmitsFormGoalSettings;
6
- });
7
- export declare namespace SubmitsFormGoal {
8
- enum type {
9
- SUBMITS_FORM = "submits_form"
10
- }
11
- }
@@ -1,6 +0,0 @@
1
- export type SubmitsFormGoalSettings = {
2
- /**
3
- * Url representing form's action attribute used to identify forms which will be tracked for submit event.
4
- */
5
- action: string;
6
- };
@@ -1,4 +0,0 @@
1
- export type SuccessData = {
2
- code?: number;
3
- message?: string;
4
- };
@@ -1,23 +0,0 @@
1
- export declare enum TextMatchRulesTypes {
2
- URL = "url",
3
- URL_WITH_QUERY = "url_with_query",
4
- QUERY_STRING = "query_string",
5
- CAMPAIGN = "campaign",
6
- KEYWORD = "keyword",
7
- MEDIUM = "medium",
8
- SOURCE_NAME = "source_name",
9
- CITY = "city",
10
- REGION = "region",
11
- BROWSER_VERSION = "browser_version",
12
- USER_AGENT = "user_agent",
13
- PAGE_TAG_PAGE_TYPE = "page_tag_page_type",
14
- PAGE_TAG_CATEGORY_ID = "page_tag_category_id",
15
- PAGE_TAG_CATEGORY_NAME = "page_tag_category_name",
16
- PAGE_TAG_PRODUCT_SKU = "page_tag_product_sku",
17
- PAGE_TAG_PRODUCT_NAME = "page_tag_product_name",
18
- PAGE_TAG_CUSTOMER_ID = "page_tag_customer_id",
19
- PAGE_TAG_CUSTOM_1 = "page_tag_custom_1",
20
- PAGE_TAG_CUSTOM_2 = "page_tag_custom_2",
21
- PAGE_TAG_CUSTOM_3 = "page_tag_custom_3",
22
- PAGE_TAG_CUSTOM_4 = "page_tag_custom_4"
23
- }
@@ -1,7 +0,0 @@
1
- export declare enum TextMatchingOptions {
2
- MATCHES = "matches",
3
- REGEX_MATCHES = "regexMatches",
4
- CONTAINS = "contains",
5
- ENDS_WITH = "endsWith",
6
- STARTS_WITH = "startsWith"
7
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * Offset in seconds, from UTC time, for the give timezone
3
- */
4
- export type UTC_Offset = number;
@@ -1,2 +0,0 @@
1
- import type { ExperienceChangeAdd } from './ExperienceChangeAdd';
2
- export type UpdateExperienceChangeRequestData = ExperienceChangeAdd;
@@ -1,7 +0,0 @@
1
- /**
2
- * Variation status
3
- */
4
- export declare enum VariationStatuses {
5
- STOPPED = "stopped",
6
- RUNNING = "running"
7
- }