@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.
Files changed (269) hide show
  1. package/README.md +2 -2
  2. package/lib/enums/index.d.ts +26 -0
  3. package/lib/enums/src/bucketing-error.d.ts +9 -0
  4. package/lib/enums/src/conversion-setting-key.d.ts +9 -0
  5. package/lib/enums/src/data-enitites.d.ts +16 -0
  6. package/lib/enums/src/dictionary.d.ts +65 -0
  7. package/lib/enums/src/do-not-track.d.ts +12 -0
  8. package/lib/enums/src/entity-type.d.ts +15 -0
  9. package/lib/enums/src/feature-status.d.ts +10 -0
  10. package/lib/enums/src/goal-data-key.d.ts +11 -0
  11. package/lib/enums/src/log-level.d.ts +14 -0
  12. package/lib/enums/src/log-method.d.ts +14 -0
  13. package/lib/enums/src/project-type.d.ts +10 -0
  14. package/lib/enums/src/rule-error.d.ts +10 -0
  15. package/lib/enums/src/segments/browser-type.d.ts +17 -0
  16. package/lib/enums/src/segments/device-type.d.ts +16 -0
  17. package/lib/enums/src/segments/segments-keys.d.ts +15 -0
  18. package/lib/enums/src/segments/source-type.d.ts +12 -0
  19. package/lib/enums/src/segments/visitor-type.d.ts +10 -0
  20. package/lib/enums/src/system-events.d.ts +22 -0
  21. package/lib/enums/src/variable-types.d.ts +7 -0
  22. package/lib/enums/src/variation-change-type.d.ts +14 -0
  23. package/lib/index.d.ts +3 -3
  24. package/lib/index.js +724 -26
  25. package/lib/index.js.map +1 -1
  26. package/lib/index.min.js +1 -1
  27. package/lib/index.min.js.map +1 -1
  28. package/lib/index.min.mjs +1 -1
  29. package/lib/index.min.mjs.map +1 -1
  30. package/lib/index.mjs +700 -2
  31. package/lib/index.mjs.map +1 -1
  32. package/lib/legacy/index.js +755 -136
  33. package/lib/legacy/index.js.map +1 -1
  34. package/lib/legacy/index.min.js +1 -1
  35. package/lib/legacy/index.min.js.map +1 -1
  36. package/lib/logger/index.d.ts +8 -0
  37. package/lib/logger/src/interfaces/log-client.d.ts +13 -0
  38. package/lib/logger/src/interfaces/log-manager.d.ts +18 -0
  39. package/lib/logger/src/interfaces/log-method-map.d.ts +15 -0
  40. package/lib/logger/src/log-manager.d.ts +64 -0
  41. package/lib/package.json +6 -6
  42. package/lib/rules/index.d.ts +8 -0
  43. package/lib/rules/src/interfaces/rule-manager.d.ts +14 -0
  44. package/lib/rules/src/rule-manager.d.ts +82 -0
  45. package/lib/types/index.d.ts +27 -0
  46. package/lib/types/src/BucketedFeature.d.ts +29 -0
  47. package/lib/types/src/BucketedVariation.d.ts +13 -0
  48. package/lib/types/src/BucketingAllocation.d.ts +10 -0
  49. package/lib/types/src/BucketingAttributes.d.ts +17 -0
  50. package/lib/types/src/BucketingHash.d.ts +11 -0
  51. package/lib/types/src/Config.d.ts +60 -0
  52. package/lib/types/src/ConversionAttributes.d.ts +13 -0
  53. package/lib/types/src/Entity.d.ts +8 -0
  54. package/lib/types/src/GoalData.d.ts +11 -0
  55. package/lib/types/src/IndentityField.d.ts +7 -0
  56. package/lib/types/src/Integration.d.ts +8 -0
  57. package/lib/types/src/LocationAttributes.d.ts +12 -0
  58. package/lib/types/src/Path.d.ts +10 -0
  59. package/lib/types/src/RequireAtLeastOne.d.ts +3 -0
  60. package/lib/types/src/Rule.d.ts +13 -0
  61. package/lib/types/src/SegmentsAttributes.d.ts +9 -0
  62. package/lib/types/src/StoreData.d.ts +13 -0
  63. package/lib/types/src/TrackingEvent.d.ts +14 -0
  64. package/lib/types/src/VariableType.d.ts +8 -0
  65. package/lib/types/src/Visitor.d.ts +12 -0
  66. package/lib/types/src/VisitorsQueue.d.ts +14 -0
  67. package/lib/types/src/config/index.d.ts +192 -0
  68. package/lib/types/src/config/models/Base64Image.d.ts +6 -0
  69. package/lib/types/src/config/models/BaseMatch.d.ts +8 -0
  70. package/lib/types/src/config/models/BaseRule.d.ts +6 -0
  71. package/lib/types/src/config/models/BaseRuleWithBooleanValue.d.ts +7 -0
  72. package/lib/types/src/config/models/BaseRuleWithBrowserNameValue.d.ts +21 -0
  73. package/lib/types/src/config/models/BaseRuleWithCountryCodeValue.d.ts +7 -0
  74. package/lib/types/src/config/models/BaseRuleWithDayOfWeekValue.d.ts +7 -0
  75. package/lib/types/src/config/models/BaseRuleWithExperienceBucketedValue.d.ts +7 -0
  76. package/lib/types/src/config/models/BaseRuleWithGoalTriggeredValue.d.ts +7 -0
  77. package/lib/types/src/config/models/BaseRuleWithHourOfDayValue.d.ts +7 -0
  78. package/lib/types/src/config/models/BaseRuleWithJsCodeValue.d.ts +9 -0
  79. package/lib/types/src/config/models/BaseRuleWithLanguageCodeValue.d.ts +7 -0
  80. package/lib/types/src/config/models/BaseRuleWithMinuteOfHourValue.d.ts +7 -0
  81. package/lib/types/src/config/models/BaseRuleWithNumericValue.d.ts +7 -0
  82. package/lib/types/src/config/models/BaseRuleWithOsValue.d.ts +21 -0
  83. package/lib/types/src/config/models/BaseRuleWithSegmentBucketedValue.d.ts +7 -0
  84. package/lib/types/src/config/models/BaseRuleWithStringValue.d.ts +7 -0
  85. package/lib/types/src/config/models/BaseRuleWithVisitorTypeValue.d.ts +16 -0
  86. package/lib/types/src/config/models/BaseRuleWithWeatherConditionValue.d.ts +34 -0
  87. package/lib/types/src/config/models/BoolMatchRulesTypes.d.ts +6 -0
  88. package/lib/types/src/config/models/BrowserNameMatchRule.d.ts +10 -0
  89. package/lib/types/src/config/models/BrowserNameMatchRulesTypes.d.ts +3 -0
  90. package/lib/types/src/config/models/BucketingEvent.d.ts +15 -0
  91. package/lib/types/src/config/models/ChoiceContainsOptions.d.ts +3 -0
  92. package/lib/types/src/config/models/ChoiceMatchingOptions.d.ts +3 -0
  93. package/lib/types/src/config/models/ClicksElementGoal.d.ts +11 -0
  94. package/lib/types/src/config/models/ClicksElementGoalSettings.d.ts +6 -0
  95. package/lib/types/src/config/models/ClicksLinkGoal.d.ts +11 -0
  96. package/lib/types/src/config/models/ClicksLinkGoalSettings.d.ts +6 -0
  97. package/lib/types/src/config/models/ConfigAudience.d.ts +21 -0
  98. package/lib/types/src/config/models/ConfigAudienceTypes.d.ts +10 -0
  99. package/lib/types/src/config/models/ConfigExperience.d.ts +98 -0
  100. package/lib/types/src/config/models/ConfigFeature.d.ts +22 -0
  101. package/lib/types/src/config/models/ConfigGoal.d.ts +9 -0
  102. package/lib/types/src/config/models/ConfigGoalBase.d.ts +24 -0
  103. package/lib/types/src/config/models/ConfigLocation.d.ts +21 -0
  104. package/lib/types/src/config/models/ConfigProject.d.ts +151 -0
  105. package/lib/types/src/config/models/ConfigResponseData.d.ts +45 -0
  106. package/lib/types/src/config/models/ConfigSegment.d.ts +19 -0
  107. package/lib/types/src/config/models/ConversionEvent.d.ts +30 -0
  108. package/lib/types/src/config/models/CookieMatchRule.d.ts +14 -0
  109. package/lib/types/src/config/models/CookieMatchRulesTypes.d.ts +3 -0
  110. package/lib/types/src/config/models/CountryMatchRule.d.ts +10 -0
  111. package/lib/types/src/config/models/CountryMatchRulesTypes.d.ts +3 -0
  112. package/lib/types/src/config/models/DayOfWeekMatchRule.d.ts +10 -0
  113. package/lib/types/src/config/models/DayOfWeekMatchRulesTypes.d.ts +4 -0
  114. package/lib/types/src/config/models/DomInteractionGoal.d.ts +11 -0
  115. package/lib/types/src/config/models/DomInteractionGoalSettings.d.ts +15 -0
  116. package/lib/types/src/config/models/ErrorData.d.ts +5 -0
  117. package/lib/types/src/config/models/ExperienceBucketedMatchRule.d.ts +9 -0
  118. package/lib/types/src/config/models/ExperienceChange.d.ts +10 -0
  119. package/lib/types/src/config/models/ExperienceChangeAdd.d.ts +10 -0
  120. package/lib/types/src/config/models/ExperienceChangeBase.d.ts +27 -0
  121. package/lib/types/src/config/models/ExperienceChangeCustomCodeData.d.ts +6 -0
  122. package/lib/types/src/config/models/ExperienceChangeCustomCodeDataAdd.d.ts +6 -0
  123. package/lib/types/src/config/models/ExperienceChangeCustomCodeDataBase.d.ts +29 -0
  124. package/lib/types/src/config/models/ExperienceChangeCustomCodeDataUpdate.d.ts +6 -0
  125. package/lib/types/src/config/models/ExperienceChangeCustomCodeDataUpdateNoId.d.ts +5 -0
  126. package/lib/types/src/config/models/ExperienceChangeDefaultCodeData.d.ts +6 -0
  127. package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataAdd.d.ts +6 -0
  128. package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataBase.d.ts +29 -0
  129. package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataUpdate.d.ts +6 -0
  130. package/lib/types/src/config/models/ExperienceChangeDefaultCodeDataUpdateNoId.d.ts +5 -0
  131. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageData.d.ts +6 -0
  132. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataAdd.d.ts +6 -0
  133. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataBase.d.ts +33 -0
  134. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataUpdate.d.ts +6 -0
  135. package/lib/types/src/config/models/ExperienceChangeDefaultCodeMultipageDataUpdateNoId.d.ts +5 -0
  136. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectData.d.ts +6 -0
  137. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataAdd.d.ts +6 -0
  138. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataBase.d.ts +29 -0
  139. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataUpdate.d.ts +6 -0
  140. package/lib/types/src/config/models/ExperienceChangeDefaultRedirectDataUpdateNoId.d.ts +5 -0
  141. package/lib/types/src/config/models/ExperienceChangeFullStackFeature.d.ts +6 -0
  142. package/lib/types/src/config/models/ExperienceChangeFullStackFeatureAdd.d.ts +6 -0
  143. package/lib/types/src/config/models/ExperienceChangeFullStackFeatureBase.d.ts +25 -0
  144. package/lib/types/src/config/models/ExperienceChangeFullStackFeatureUpdate.d.ts +6 -0
  145. package/lib/types/src/config/models/ExperienceChangeFullStackFeatureUpdateNoId.d.ts +5 -0
  146. package/lib/types/src/config/models/ExperienceChangeId.d.ts +9 -0
  147. package/lib/types/src/config/models/ExperienceChangeIdReadOnly.d.ts +9 -0
  148. package/lib/types/src/config/models/ExperienceChangeRichStructureData.d.ts +6 -0
  149. package/lib/types/src/config/models/ExperienceChangeRichStructureDataAdd.d.ts +6 -0
  150. package/lib/types/src/config/models/ExperienceChangeRichStructureDataBase.d.ts +16 -0
  151. package/lib/types/src/config/models/ExperienceChangeRichStructureDataUpdate.d.ts +6 -0
  152. package/lib/types/src/config/models/ExperienceChangeRichStructureDataUpdateNoId.d.ts +5 -0
  153. package/lib/types/src/config/models/ExperienceChangeUpdate.d.ts +10 -0
  154. package/lib/types/src/config/models/ExperienceChangeUpdateNoId.d.ts +10 -0
  155. package/lib/types/src/config/models/ExperienceIntegrationBaidu.d.ts +7 -0
  156. package/lib/types/src/config/models/ExperienceIntegrationBase.d.ts +10 -0
  157. package/lib/types/src/config/models/ExperienceIntegrationClicktale.d.ts +2 -0
  158. package/lib/types/src/config/models/ExperienceIntegrationClicky.d.ts +2 -0
  159. package/lib/types/src/config/models/ExperienceIntegrationCnzz.d.ts +7 -0
  160. package/lib/types/src/config/models/ExperienceIntegrationCrazyegg.d.ts +9 -0
  161. package/lib/types/src/config/models/ExperienceIntegrationEconda.d.ts +2 -0
  162. package/lib/types/src/config/models/ExperienceIntegrationEulerian.d.ts +2 -0
  163. package/lib/types/src/config/models/ExperienceIntegrationGA3.d.ts +9 -0
  164. package/lib/types/src/config/models/ExperienceIntegrationGA4.d.ts +8 -0
  165. package/lib/types/src/config/models/ExperienceIntegrationGA4Base.d.ts +4 -0
  166. package/lib/types/src/config/models/ExperienceIntegrationGAServing.d.ts +3 -0
  167. package/lib/types/src/config/models/ExperienceIntegrationGoogleAnalytics.d.ts +3 -0
  168. package/lib/types/src/config/models/ExperienceIntegrationGosquared.d.ts +2 -0
  169. package/lib/types/src/config/models/ExperienceIntegrationHeapanalytics.d.ts +2 -0
  170. package/lib/types/src/config/models/ExperienceIntegrationHotjar.d.ts +2 -0
  171. package/lib/types/src/config/models/ExperienceIntegrationMixpanel.d.ts +2 -0
  172. package/lib/types/src/config/models/ExperienceIntegrationMouseflow.d.ts +2 -0
  173. package/lib/types/src/config/models/ExperienceIntegrationPiwik.d.ts +7 -0
  174. package/lib/types/src/config/models/ExperienceIntegrationSegmentio.d.ts +2 -0
  175. package/lib/types/src/config/models/ExperienceIntegrationSitecatalyst.d.ts +7 -0
  176. package/lib/types/src/config/models/ExperienceIntegrationWoopra.d.ts +2 -0
  177. package/lib/types/src/config/models/ExperienceIntegrationYsance.d.ts +7 -0
  178. package/lib/types/src/config/models/ExperienceTypes.d.ts +8 -0
  179. package/lib/types/src/config/models/ExperienceVariationConfig.d.ts +30 -0
  180. package/lib/types/src/config/models/Extra.d.ts +4 -0
  181. package/lib/types/src/config/models/FeatureVariableItemData.d.ts +25 -0
  182. package/lib/types/src/config/models/GA_Settings.d.ts +3 -0
  183. package/lib/types/src/config/models/GA_SettingsBase.d.ts +6 -0
  184. package/lib/types/src/config/models/GaGoal.d.ts +11 -0
  185. package/lib/types/src/config/models/GaGoalSettings.d.ts +6 -0
  186. package/lib/types/src/config/models/GenericBoolKeyValueMatchRule.d.ts +11 -0
  187. package/lib/types/src/config/models/GenericBoolKeyValueMatchRulesTypes.d.ts +3 -0
  188. package/lib/types/src/config/models/GenericBoolMatchRule.d.ts +10 -0
  189. package/lib/types/src/config/models/GenericKey.d.ts +6 -0
  190. package/lib/types/src/config/models/GenericNumericKeyValueMatchRule.d.ts +11 -0
  191. package/lib/types/src/config/models/GenericNumericKeyValueMatchRulesTypes.d.ts +3 -0
  192. package/lib/types/src/config/models/GenericNumericMatchRule.d.ts +10 -0
  193. package/lib/types/src/config/models/GenericSetMatchRule.d.ts +9 -0
  194. package/lib/types/src/config/models/GenericTextKeyValueMatchRule.d.ts +11 -0
  195. package/lib/types/src/config/models/GenericTextKeyValueMatchRulesTypes.d.ts +3 -0
  196. package/lib/types/src/config/models/GenericTextMatchRule.d.ts +10 -0
  197. package/lib/types/src/config/models/GoalTriggeredMatchRule.d.ts +10 -0
  198. package/lib/types/src/config/models/GoalTriggeredMatchRulesTypes.d.ts +3 -0
  199. package/lib/types/src/config/models/GoalTypes.d.ts +10 -0
  200. package/lib/types/src/config/models/HourOfDayMatchRule.d.ts +10 -0
  201. package/lib/types/src/config/models/HourOfDayMatchRulesTypes.d.ts +4 -0
  202. package/lib/types/src/config/models/IntegrationGA3.d.ts +12 -0
  203. package/lib/types/src/config/models/IntegrationGA4.d.ts +7 -0
  204. package/lib/types/src/config/models/IntegrationGA4Base.d.ts +12 -0
  205. package/lib/types/src/config/models/IntegrationProvider.d.ts +23 -0
  206. package/lib/types/src/config/models/JsConditionMatchRule.d.ts +10 -0
  207. package/lib/types/src/config/models/JsConditionMatchRulesTypes.d.ts +3 -0
  208. package/lib/types/src/config/models/KeyValueMatchRulesTypes.d.ts +4 -0
  209. package/lib/types/src/config/models/LanguageMatchRule.d.ts +10 -0
  210. package/lib/types/src/config/models/LanguageMatchRulesTypes.d.ts +3 -0
  211. package/lib/types/src/config/models/LocationTrigger.d.ts +5 -0
  212. package/lib/types/src/config/models/LocationTriggerBase.d.ts +14 -0
  213. package/lib/types/src/config/models/LocationTriggerCallback.d.ts +13 -0
  214. package/lib/types/src/config/models/LocationTriggerDomChange.d.ts +17 -0
  215. package/lib/types/src/config/models/LocationTriggerManual.d.ts +9 -0
  216. package/lib/types/src/config/models/LocationTriggerUrlChange.d.ts +9 -0
  217. package/lib/types/src/config/models/MinuteOfHourMatchRule.d.ts +10 -0
  218. package/lib/types/src/config/models/MinuteOfHourMatchRulesTypes.d.ts +4 -0
  219. package/lib/types/src/config/models/NoSettingsGoal.d.ts +11 -0
  220. package/lib/types/src/config/models/NumericMatchRulesTypes.d.ts +8 -0
  221. package/lib/types/src/config/models/NumericMatchingOptions.d.ts +5 -0
  222. package/lib/types/src/config/models/OnlyCount.d.ts +7 -0
  223. package/lib/types/src/config/models/OsMatchRule.d.ts +10 -0
  224. package/lib/types/src/config/models/OsMatchRulesTypes.d.ts +3 -0
  225. package/lib/types/src/config/models/PageNumber.d.ts +9 -0
  226. package/lib/types/src/config/models/Pagination.d.ts +18 -0
  227. package/lib/types/src/config/models/ProjectGASettingsBase.d.ts +7 -0
  228. package/lib/types/src/config/models/ProjectIntegrationGA3.d.ts +3 -0
  229. package/lib/types/src/config/models/ProjectIntegrationGA4.d.ts +8 -0
  230. package/lib/types/src/config/models/ResultsPerPage.d.ts +10 -0
  231. package/lib/types/src/config/models/RevenueGoal.d.ts +11 -0
  232. package/lib/types/src/config/models/RevenueGoalSettings.d.ts +25 -0
  233. package/lib/types/src/config/models/RuleElement.d.ts +20 -0
  234. package/lib/types/src/config/models/RuleElementNoUrl.d.ts +20 -0
  235. package/lib/types/src/config/models/RuleObject.d.ts +20 -0
  236. package/lib/types/src/config/models/RuleObjectNoUrl.d.ts +20 -0
  237. package/lib/types/src/config/models/RulesTypes.d.ts +17 -0
  238. package/lib/types/src/config/models/ScrollPercentageGoal.d.ts +11 -0
  239. package/lib/types/src/config/models/ScrollPercentageGoalSettings.d.ts +6 -0
  240. package/lib/types/src/config/models/SegmentBucketedMatchRule.d.ts +10 -0
  241. package/lib/types/src/config/models/SegmentBucketedMatchRulesTypes.d.ts +3 -0
  242. package/lib/types/src/config/models/SendTrackingEventsRequestData.d.ts +39 -0
  243. package/lib/types/src/config/models/SetMatchingOptions.d.ts +3 -0
  244. package/lib/types/src/config/models/SortDirection.d.ts +21 -0
  245. package/lib/types/src/config/models/SubmitsFormGoal.d.ts +11 -0
  246. package/lib/types/src/config/models/SubmitsFormGoalSettings.d.ts +6 -0
  247. package/lib/types/src/config/models/SuccessData.d.ts +4 -0
  248. package/lib/types/src/config/models/TextMatchRulesTypes.d.ts +23 -0
  249. package/lib/types/src/config/models/TextMatchingOptions.d.ts +7 -0
  250. package/lib/types/src/config/models/UTC_Offset.d.ts +4 -0
  251. package/lib/types/src/config/models/UpdateExperienceChangeRequestData.d.ts +2 -0
  252. package/lib/types/src/config/models/VariationStatuses.d.ts +7 -0
  253. package/lib/types/src/config/models/VisitorSegments.d.ts +78 -0
  254. package/lib/types/src/config/models/VisitorTrackingEvents.d.ts +21 -0
  255. package/lib/types/src/config/models/VisitorTypeMatchRule.d.ts +10 -0
  256. package/lib/types/src/config/models/VisitorTypeMatchRulesTypes.d.ts +3 -0
  257. package/lib/types/src/config/models/WeatherConditionMatchRule.d.ts +10 -0
  258. package/lib/types/src/config/models/WeatherConditionMatchRulesTypes.d.ts +3 -0
  259. package/lib/types/src/config/models/WeatherConditions.d.ts +30 -0
  260. package/lib/utils/index.d.ts +14 -0
  261. package/lib/utils/src/array-utils.d.ts +11 -0
  262. package/lib/utils/src/comparisons.d.ts +22 -0
  263. package/lib/utils/src/data-store.d.ts +39 -0
  264. package/lib/utils/src/file-logger.d.ts +40 -0
  265. package/lib/utils/src/http-client.d.ts +115 -0
  266. package/lib/utils/src/object-utils.d.ts +35 -0
  267. package/lib/utils/src/string-utils.d.ts +20 -0
  268. package/lib/utils/src/types-utils.d.ts +12 -0
  269. package/package.json +35 -31
@@ -0,0 +1,98 @@
1
+ import type { ExperienceIntegrationBaidu } from './ExperienceIntegrationBaidu';
2
+ import type { ExperienceIntegrationClicktale } from './ExperienceIntegrationClicktale';
3
+ import type { ExperienceIntegrationClicky } from './ExperienceIntegrationClicky';
4
+ import type { ExperienceIntegrationCnzz } from './ExperienceIntegrationCnzz';
5
+ import type { ExperienceIntegrationCrazyegg } from './ExperienceIntegrationCrazyegg';
6
+ import type { ExperienceIntegrationEconda } from './ExperienceIntegrationEconda';
7
+ import type { ExperienceIntegrationEulerian } from './ExperienceIntegrationEulerian';
8
+ import type { ExperienceIntegrationGAServing } from './ExperienceIntegrationGAServing';
9
+ import type { ExperienceIntegrationGosquared } from './ExperienceIntegrationGosquared';
10
+ import type { ExperienceIntegrationHeapanalytics } from './ExperienceIntegrationHeapanalytics';
11
+ import type { ExperienceIntegrationHotjar } from './ExperienceIntegrationHotjar';
12
+ import type { ExperienceIntegrationMixpanel } from './ExperienceIntegrationMixpanel';
13
+ import type { ExperienceIntegrationMouseflow } from './ExperienceIntegrationMouseflow';
14
+ import type { ExperienceIntegrationPiwik } from './ExperienceIntegrationPiwik';
15
+ import type { ExperienceIntegrationSegmentio } from './ExperienceIntegrationSegmentio';
16
+ import type { ExperienceIntegrationSitecatalyst } from './ExperienceIntegrationSitecatalyst';
17
+ import type { ExperienceIntegrationWoopra } from './ExperienceIntegrationWoopra';
18
+ import type { ExperienceIntegrationYsance } from './ExperienceIntegrationYsance';
19
+ import type { ExperienceTypes } from './ExperienceTypes';
20
+ import type { ExperienceVariationConfig } from './ExperienceVariationConfig';
21
+ import type { RuleObject } from './RuleObject';
22
+ export type ConfigExperience = {
23
+ /**
24
+ * Experience ID
25
+ */
26
+ id?: string;
27
+ /**
28
+ * Experience Name
29
+ */
30
+ name?: string;
31
+ /**
32
+ * Experience readable key that uniquely identifies this experience
33
+ */
34
+ key?: string;
35
+ /**
36
+ * List of locations IDs on which this experience is presented. Either this or **site_area** is given but should not be both.
37
+ */
38
+ locations?: Array<string> | null;
39
+ /**
40
+ * Rules that define where the experience is gonna run. Either this or **locations** is given but should not be both.
41
+ */
42
+ site_area?: RuleObject | null;
43
+ /**
44
+ * List of audiences IDs to which this experience is presented to
45
+ */
46
+ audiences?: Array<string> | null;
47
+ /**
48
+ * List of goals IDs to which will be tracked for this experience
49
+ */
50
+ goals?: Array<string>;
51
+ /**
52
+ * Global Experience's JavaScript that will run for this experience before its changes are applied
53
+ *
54
+ */
55
+ global_js?: string;
56
+ /**
57
+ * Global Experience's StyleSheet that will run for this experience before its changes are applied
58
+ *
59
+ */
60
+ global_css?: string;
61
+ type?: ExperienceTypes;
62
+ /**
63
+ * Experience's version number
64
+ */
65
+ version?: number;
66
+ /**
67
+ * Experience's variations list
68
+ */
69
+ variations?: Array<ExperienceVariationConfig>;
70
+ /**
71
+ * List of integrations that this experience's data is sent to
72
+ */
73
+ integrations?: Array<(ExperienceIntegrationBaidu | ExperienceIntegrationClicktale | ExperienceIntegrationClicky | ExperienceIntegrationCnzz | ExperienceIntegrationCrazyegg | ExperienceIntegrationEconda | ExperienceIntegrationEulerian | ExperienceIntegrationGAServing | ExperienceIntegrationGosquared | ExperienceIntegrationHeapanalytics | ExperienceIntegrationHotjar | ExperienceIntegrationMixpanel | ExperienceIntegrationMouseflow | ExperienceIntegrationPiwik | ExperienceIntegrationSegmentio | ExperienceIntegrationSitecatalyst | ExperienceIntegrationWoopra | ExperienceIntegrationYsance)>;
74
+ /**
75
+ * List of environments that this experience is supposed to run on. The full list of available environments is defined at
76
+ * project level. If this list is empty, the experience will run on all environments.
77
+ *
78
+ * @deprecated
79
+ */
80
+ environments?: Array<string>;
81
+ /**
82
+ * The environment where this experience will run. It has to be one of the environments defined at the project level
83
+ */
84
+ environment?: string;
85
+ /**
86
+ * Various experience's settings
87
+ */
88
+ settings?: {
89
+ /**
90
+ * Minimum order value for transactions outliers
91
+ */
92
+ min_order_value?: number;
93
+ /**
94
+ * Maximum order value for transactions outliers
95
+ */
96
+ max_order_value?: number;
97
+ };
98
+ };
@@ -0,0 +1,22 @@
1
+ import type { FeatureVariableItemData } from './FeatureVariableItemData';
2
+ /**
3
+ * Base Feature Object
4
+ */
5
+ export type ConfigFeature = {
6
+ /**
7
+ * Feature ID
8
+ */
9
+ id?: string;
10
+ /**
11
+ * A name given to the feature to identify it easily
12
+ */
13
+ name?: string;
14
+ /**
15
+ * A unique per project level identifier
16
+ */
17
+ key?: string;
18
+ /**
19
+ * An array of user-defined variables of a feature.
20
+ */
21
+ variables?: Array<FeatureVariableItemData>;
22
+ };
@@ -0,0 +1,9 @@
1
+ import type { ClicksElementGoal } from './ClicksElementGoal';
2
+ import type { ClicksLinkGoal } from './ClicksLinkGoal';
3
+ import type { DomInteractionGoal } from './DomInteractionGoal';
4
+ import type { GaGoal } from './GaGoal';
5
+ import type { NoSettingsGoal } from './NoSettingsGoal';
6
+ import type { RevenueGoal } from './RevenueGoal';
7
+ import type { ScrollPercentageGoal } from './ScrollPercentageGoal';
8
+ import type { SubmitsFormGoal } from './SubmitsFormGoal';
9
+ export type ConfigGoal = (DomInteractionGoal | ScrollPercentageGoal | RevenueGoal | NoSettingsGoal | GaGoal | SubmitsFormGoal | ClicksLinkGoal | ClicksElementGoal);
@@ -0,0 +1,24 @@
1
+ import type { GoalTypes } from './GoalTypes';
2
+ import type { RuleObject } from './RuleObject';
3
+ /**
4
+ * Goal item to be tracked inside a project
5
+ */
6
+ export type ConfigGoalBase = {
7
+ /**
8
+ * Goal ID
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Goal Name.
13
+ */
14
+ name?: string;
15
+ /**
16
+ * Goal Key
17
+ */
18
+ key?: string;
19
+ /**
20
+ * List of goal types to be returned
21
+ */
22
+ type?: Array<GoalTypes>;
23
+ rules?: RuleObject | null;
24
+ };
@@ -0,0 +1,21 @@
1
+ import type { LocationTrigger } from './LocationTrigger';
2
+ import type { RuleObject } from './RuleObject';
3
+ /**
4
+ * Base Location object
5
+ */
6
+ export type ConfigLocation = {
7
+ /**
8
+ * Location ID
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Location unique key
13
+ */
14
+ key?: string;
15
+ /**
16
+ * Location Name
17
+ */
18
+ name?: string;
19
+ trigger?: (Record<string, any> & LocationTrigger) | null;
20
+ rules?: RuleObject | null;
21
+ };
@@ -0,0 +1,151 @@
1
+ import type { GA_Settings } from './GA_Settings';
2
+ import type { UTC_Offset } from './UTC_Offset';
3
+ /**
4
+ * Project Object under which experiences would get created
5
+ */
6
+ export type ConfigProject = {
7
+ /**
8
+ * Project ID
9
+ */
10
+ id?: string;
11
+ /**
12
+ * Project Name. If **settings.data_anonymization** is turned on, the name will be generated from **id** field
13
+ */
14
+ name?: string;
15
+ /**
16
+ * Value which describes project product type
17
+ */
18
+ type?: ConfigProject.type;
19
+ utc_offset?: UTC_Offset;
20
+ /**
21
+ * Object representing the custom domain that is used for loading the tracking scripts and
22
+ * sending tracking requests to Convert servers instead of the standard Convert domain
23
+ *
24
+ */
25
+ custom_domain?: {
26
+ /**
27
+ * Custom domain to be used instead of standard Convert's one
28
+ */
29
+ domain?: string;
30
+ } | null;
31
+ /**
32
+ * List of domains allowed to be tracked under this project
33
+ */
34
+ domains?: Array<{
35
+ /**
36
+ * Top level domain, used for setting cookies where applicable
37
+ */
38
+ tld?: string;
39
+ /**
40
+ * List of host names under **tld** which are allowed to be tracked under this project
41
+ */
42
+ hosts?: any;
43
+ }>;
44
+ /**
45
+ * The global javascript code that will be loaded on all pages where
46
+ * the tracking script is installed, prior do processing any of
47
+ * experiences, goals, audiences etc.
48
+ *
49
+ */
50
+ global_javascript?: string | null;
51
+ /**
52
+ * Various project's settings
53
+ */
54
+ settings?: {
55
+ /**
56
+ * Flag indicating whether decoration of outgoing links (appending tracking cookies inside the link URL in order to
57
+ * make cross domain tracking possible) is done automatically on page
58
+ *
59
+ */
60
+ allow_crossdomain_tracking?: boolean;
61
+ /**
62
+ * Whether or not data is [anonymized](https://convert.zendesk.com/hc/en-us/articles/204506339-Prevent-Experiment-Details-Data-Leak-with-Data-Anonymization).
63
+ */
64
+ data_anonymization?: boolean;
65
+ /**
66
+ * Follow the 'Do not track' browser settings for users in the mentioned area of the world.
67
+ */
68
+ do_not_track?: ConfigProject.do_not_track;
69
+ /**
70
+ * Follow Global Privacy Control (GPC) signals for users in the mentioned area of the world.
71
+ * - OFF: Do not follow GPC signals.
72
+ * - EU ONLY: Follow GPC signals for users in the European Union only.
73
+ * - EEA ONLY: Follow GPC signals for users in the European Economic Area only.
74
+ * - Worldwide: Follow GPC signals for users worldwide.
75
+ *
76
+ */
77
+ global_privacy_control?: ConfigProject.global_privacy_control;
78
+ /**
79
+ * Whether to include jQuery library or not into the javascript tracking file served by Convert and loaded via the tracking snippet. If jQuery is not included, it has to be loaded on page, before Convert's tracking code
80
+ */
81
+ include_jquery?: boolean;
82
+ /**
83
+ * Whether to include jQuery library or not into the v1 javascript tracking file served by Convert and loaded via the tracking snippet.
84
+ */
85
+ include_jquery_v1?: boolean;
86
+ /**
87
+ * Whether to disable the SPA (Single Page Application) related functionalities from the tracking scripts V1. Most websites work fine without disabling SPA functionality regardless of the fact they are Single Page Apps or not. In edge situation, this setting might prove handy
88
+ */
89
+ disable_spa_functionality?: boolean;
90
+ /**
91
+ * When this is turned to true, Convert won't track any referral data like http referral, utm query strings etc. Those will be used on the current page if available but won't be stored in cookies in order to be used on subsequent pages.
92
+ */
93
+ do_not_track_referral?: boolean;
94
+ /**
95
+ * This holds project wide settings used by integrations
96
+ */
97
+ integrations?: {
98
+ google_analytics?: GA_Settings;
99
+ kissmetrics?: {
100
+ /**
101
+ * Flag indicating whether Kissmetrics integration is enabled or not for this project
102
+ */
103
+ enabled?: boolean;
104
+ };
105
+ };
106
+ /**
107
+ * Minimum order value for transactions outliers
108
+ */
109
+ min_order_value?: number;
110
+ /**
111
+ * Maximum order value for transactions outliers
112
+ */
113
+ max_order_value?: number;
114
+ };
115
+ /**
116
+ * A user-defined key-value object which describes environments available for the project.
117
+ */
118
+ environments?: Record<string, any>;
119
+ };
120
+ export declare namespace ConfigProject {
121
+ /**
122
+ * Value which describes project product type
123
+ */
124
+ enum type {
125
+ FULLSTACK = "fullstack",
126
+ WEB = "web"
127
+ }
128
+ /**
129
+ * Follow the 'Do not track' browser settings for users in the mentioned area of the world.
130
+ */
131
+ enum do_not_track {
132
+ OFF = "OFF",
133
+ EU_ONLY = "EU ONLY",
134
+ EEA_ONLY = "EEA ONLY",
135
+ WORLDWIDE = "Worldwide"
136
+ }
137
+ /**
138
+ * Follow Global Privacy Control (GPC) signals for users in the mentioned area of the world.
139
+ * - OFF: Do not follow GPC signals.
140
+ * - EU ONLY: Follow GPC signals for users in the European Union only.
141
+ * - EEA ONLY: Follow GPC signals for users in the European Economic Area only.
142
+ * - Worldwide: Follow GPC signals for users worldwide.
143
+ *
144
+ */
145
+ enum global_privacy_control {
146
+ OFF = "OFF",
147
+ EU_ONLY = "EU ONLY",
148
+ EEA_ONLY = "EEA ONLY",
149
+ WORLDWIDE = "Worldwide"
150
+ }
151
+ }
@@ -0,0 +1,45 @@
1
+ import type { ConfigAudience } from './ConfigAudience';
2
+ import type { ConfigExperience } from './ConfigExperience';
3
+ import type { ConfigFeature } from './ConfigFeature';
4
+ import type { ConfigGoal } from './ConfigGoal';
5
+ import type { ConfigLocation } from './ConfigLocation';
6
+ import type { ConfigProject } from './ConfigProject';
7
+ import type { ConfigSegment } from './ConfigSegment';
8
+ /**
9
+ * Response containing project's config data needed in order to serve experiences
10
+ */
11
+ export type ConfigResponseData = {
12
+ /**
13
+ * Account ID under which the project exists
14
+ */
15
+ account_id?: string;
16
+ project?: ConfigProject;
17
+ /**
18
+ * List of goals to be tracked in the project
19
+ */
20
+ goals?: Array<ConfigGoal>;
21
+ /**
22
+ * List of locations that are used inside this project
23
+ */
24
+ locations?: Array<ConfigLocation>;
25
+ /**
26
+ * List of audiences that are used inside this project
27
+ */
28
+ audiences?: Array<ConfigAudience>;
29
+ /**
30
+ * List of custom that are devined inside this project
31
+ */
32
+ segments?: Array<ConfigSegment>;
33
+ /**
34
+ * List of active experiences inside this project
35
+ */
36
+ experiences?: Array<ConfigExperience>;
37
+ /**
38
+ * List of archived experiences inside this project, which were archived within the last 8 months
39
+ */
40
+ archived_experiences?: Array<string>;
41
+ /**
42
+ * List of features inside this project. Presented only for fullstack projects
43
+ */
44
+ features?: Array<ConfigFeature>;
45
+ };
@@ -0,0 +1,19 @@
1
+ import type { RuleObject } from './RuleObject';
2
+ /**
3
+ * Base Segment object
4
+ */
5
+ export type ConfigSegment = {
6
+ /**
7
+ * Segment ID
8
+ */
9
+ id?: string;
10
+ /**
11
+ * Segment unique key
12
+ */
13
+ key?: string;
14
+ /**
15
+ * Segment Name
16
+ */
17
+ name?: string;
18
+ rules?: RuleObject | null;
19
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Conversion event data
3
+ */
4
+ export type ConversionEvent = {
5
+ /**
6
+ * Id of the conversion goal to be fired
7
+ */
8
+ goalId: string;
9
+ /**
10
+ * Data connected to this conversion, for non binomial metrics, eg revenue
11
+ */
12
+ goalData?: Array<{
13
+ /**
14
+ * Key of the metric
15
+ */
16
+ key?: 'amount' | 'productsCount' | 'transactionId';
17
+ /**
18
+ * Value of the metric
19
+ */
20
+ value?: (number | string);
21
+ }>;
22
+ /**
23
+ * Bucketing data (experiences that this visitor is currently part of) for the visitor. In case that **enrichData=true** flag is being sent and
24
+ * this attribute is not provided, the bucketing stored on the backend datastore for the given visitor is gonna be used. If both **enrichData=true** and
25
+ * **bucketingData**, the **bucketingData** is gonna be merged with the stored data inside the backend data source, the request provided data having the
26
+ * biggest overwriting bucketing for the same experience which might exist on the backend
27
+ *
28
+ */
29
+ bucketingData?: Record<string, string>;
30
+ };
@@ -0,0 +1,14 @@
1
+ import type { BaseMatch } from './BaseMatch';
2
+ import type { BaseRuleWithStringValue } from './BaseRuleWithStringValue';
3
+ import type { CookieMatchRulesTypes } from './CookieMatchRulesTypes';
4
+ import type { TextMatchingOptions } from './TextMatchingOptions';
5
+ export type CookieMatchRule = (BaseRuleWithStringValue & {
6
+ rule_type: CookieMatchRulesTypes;
7
+ matching?: (BaseMatch & {
8
+ match_type?: TextMatchingOptions;
9
+ });
10
+ /**
11
+ * The name of the cookie which value is compared to the given rule value
12
+ */
13
+ key?: string;
14
+ });
@@ -0,0 +1,3 @@
1
+ export declare enum CookieMatchRulesTypes {
2
+ COOKIE = "cookie"
3
+ }
@@ -0,0 +1,10 @@
1
+ import type { BaseMatch } from './BaseMatch';
2
+ import type { BaseRuleWithCountryCodeValue } from './BaseRuleWithCountryCodeValue';
3
+ import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
4
+ import type { CountryMatchRulesTypes } from './CountryMatchRulesTypes';
5
+ export type CountryMatchRule = (BaseRuleWithCountryCodeValue & {
6
+ rule_type: CountryMatchRulesTypes;
7
+ matching?: (BaseMatch & {
8
+ match_type?: ChoiceMatchingOptions;
9
+ });
10
+ });
@@ -0,0 +1,3 @@
1
+ export declare enum CountryMatchRulesTypes {
2
+ COUNTRY = "country"
3
+ }
@@ -0,0 +1,10 @@
1
+ import type { BaseMatch } from './BaseMatch';
2
+ import type { BaseRuleWithDayOfWeekValue } from './BaseRuleWithDayOfWeekValue';
3
+ import type { DayOfWeekMatchRulesTypes } from './DayOfWeekMatchRulesTypes';
4
+ import type { NumericMatchingOptions } from './NumericMatchingOptions';
5
+ export type DayOfWeekMatchRule = (BaseRuleWithDayOfWeekValue & {
6
+ rule_type: DayOfWeekMatchRulesTypes;
7
+ matching?: (BaseMatch & {
8
+ match_type?: NumericMatchingOptions;
9
+ });
10
+ });
@@ -0,0 +1,4 @@
1
+ export declare enum DayOfWeekMatchRulesTypes {
2
+ LOCAL_TIME_DAY_OF_WEEK = "local_time_day_of_week",
3
+ PROJECT_TIME_DAY_OF_WEEK = "project_time_day_of_week"
4
+ }
@@ -0,0 +1,11 @@
1
+ import type { ConfigGoalBase } from './ConfigGoalBase';
2
+ import type { DomInteractionGoalSettings } from './DomInteractionGoalSettings';
3
+ export type DomInteractionGoal = (ConfigGoalBase & {
4
+ type?: DomInteractionGoal.type;
5
+ settings?: DomInteractionGoalSettings;
6
+ });
7
+ export declare namespace DomInteractionGoal {
8
+ enum type {
9
+ DOM_INTERACTION = "dom_interaction"
10
+ }
11
+ }
@@ -0,0 +1,15 @@
1
+ export type DomInteractionGoalSettings = {
2
+ /**
3
+ * Array of Events to be tracked by this goal
4
+ */
5
+ tracked_items: Array<{
6
+ /**
7
+ * Css selector that identifies the DOM element(s) on which 'event' is to be monitored in order to fire the goal.
8
+ */
9
+ selector?: string;
10
+ /**
11
+ * The event to monitor in order to fire the goal.
12
+ */
13
+ event?: string;
14
+ }>;
15
+ };
@@ -0,0 +1,5 @@
1
+ export type ErrorData = {
2
+ code?: number;
3
+ message?: string;
4
+ fields?: string;
5
+ };
@@ -0,0 +1,9 @@
1
+ import type { BaseMatch } from './BaseMatch';
2
+ import type { BaseRuleWithExperienceBucketedValue } from './BaseRuleWithExperienceBucketedValue';
3
+ import type { ChoiceMatchingOptions } from './ChoiceMatchingOptions';
4
+ export type ExperienceBucketedMatchRule = (BaseRuleWithExperienceBucketedValue & {
5
+ rule_type: string;
6
+ matching?: (BaseMatch & {
7
+ match_type?: ChoiceMatchingOptions;
8
+ });
9
+ });
@@ -0,0 +1,10 @@
1
+ import type { ExperienceChangeCustomCodeData } from './ExperienceChangeCustomCodeData';
2
+ import type { ExperienceChangeDefaultCodeData } from './ExperienceChangeDefaultCodeData';
3
+ import type { ExperienceChangeDefaultCodeMultipageData } from './ExperienceChangeDefaultCodeMultipageData';
4
+ import type { ExperienceChangeDefaultRedirectData } from './ExperienceChangeDefaultRedirectData';
5
+ import type { ExperienceChangeFullStackFeature } from './ExperienceChangeFullStackFeature';
6
+ import type { ExperienceChangeRichStructureData } from './ExperienceChangeRichStructureData';
7
+ /**
8
+ * Object that represents one change done inside an experience
9
+ */
10
+ export type ExperienceChange = (ExperienceChangeDefaultCodeData | ExperienceChangeDefaultCodeMultipageData | ExperienceChangeDefaultRedirectData | ExperienceChangeCustomCodeData | ExperienceChangeRichStructureData | ExperienceChangeFullStackFeature);
@@ -0,0 +1,10 @@
1
+ import type { ExperienceChangeCustomCodeDataAdd } from './ExperienceChangeCustomCodeDataAdd';
2
+ import type { ExperienceChangeDefaultCodeDataAdd } from './ExperienceChangeDefaultCodeDataAdd';
3
+ import type { ExperienceChangeDefaultCodeMultipageDataAdd } from './ExperienceChangeDefaultCodeMultipageDataAdd';
4
+ import type { ExperienceChangeDefaultRedirectDataAdd } from './ExperienceChangeDefaultRedirectDataAdd';
5
+ import type { ExperienceChangeFullStackFeatureAdd } from './ExperienceChangeFullStackFeatureAdd';
6
+ import type { ExperienceChangeRichStructureDataAdd } from './ExperienceChangeRichStructureDataAdd';
7
+ /**
8
+ * Object that represents one change done inside an experience, used when adding changes
9
+ */
10
+ export type ExperienceChangeAdd = (ExperienceChangeDefaultCodeDataAdd | ExperienceChangeDefaultCodeMultipageDataAdd | ExperienceChangeDefaultRedirectDataAdd | ExperienceChangeCustomCodeDataAdd | ExperienceChangeRichStructureDataAdd | ExperienceChangeFullStackFeatureAdd);
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Object that represents the change done inside an experience
3
+ */
4
+ export type ExperienceChangeBase = {
5
+ type?: ExperienceChangeBase.type;
6
+ /**
7
+ * This contains all data of this change, any code, settings etc
8
+ *
9
+ * This is sent by default in the following requests responses: **getExperienceChange**;
10
+ *
11
+ * All other responses that return this field, will only return it if "include" request parameter contains its name
12
+ *
13
+ * Data object structure will correspond to the "type" field
14
+ *
15
+ */
16
+ data?: Record<string, any>;
17
+ };
18
+ export declare namespace ExperienceChangeBase {
19
+ enum type {
20
+ RICH_STRUCTURE = "richStructure",
21
+ CUSTOM_CODE = "customCode",
22
+ DEFAULT_CODE = "defaultCode",
23
+ DEFAULT_CODE_MULTIPAGE = "defaultCodeMultipage",
24
+ DEFAULT_REDIRECT = "defaultRedirect",
25
+ FULL_STACK_FEATURE = "fullStackFeature"
26
+ }
27
+ }
@@ -0,0 +1,6 @@
1
+ import type { ExperienceChangeCustomCodeDataBase } from './ExperienceChangeCustomCodeDataBase';
2
+ import type { ExperienceChangeIdReadOnly } from './ExperienceChangeIdReadOnly';
3
+ /**
4
+ * Describes structure for "defaultCode" type of experience change
5
+ */
6
+ export type ExperienceChangeCustomCodeData = (ExperienceChangeIdReadOnly & ExperienceChangeCustomCodeDataBase);
@@ -0,0 +1,6 @@
1
+ import type { ExperienceChangeCustomCodeDataBase } from './ExperienceChangeCustomCodeDataBase';
2
+ import type { ExperienceChangeIdReadOnly } from './ExperienceChangeIdReadOnly';
3
+ /**
4
+ * Describes structure for "defaultCode" type of experience change
5
+ */
6
+ export type ExperienceChangeCustomCodeDataAdd = (ExperienceChangeIdReadOnly & ExperienceChangeCustomCodeDataBase);
@@ -0,0 +1,29 @@
1
+ import type { ExperienceChangeBase } from './ExperienceChangeBase';
2
+ /**
3
+ * Describes structure for "defaultCode" type of experience change
4
+ */
5
+ export type ExperienceChangeCustomCodeDataBase = (ExperienceChangeBase & {
6
+ type?: ExperienceChangeCustomCodeDataBase.type;
7
+ /**
8
+ * Describes structure for "defaultCode" type of experience change
9
+ */
10
+ data?: {
11
+ /**
12
+ * CSS code to be applied by this change
13
+ */
14
+ css?: string | null;
15
+ /**
16
+ * Custom javascript code to be applied by this change
17
+ */
18
+ js?: string | null;
19
+ /**
20
+ * The **id** of the page connected to this change, in case this is a **multi-page** experiment
21
+ */
22
+ page_id?: string;
23
+ };
24
+ });
25
+ export declare namespace ExperienceChangeCustomCodeDataBase {
26
+ enum type {
27
+ CUSTOM_CODE = "customCode"
28
+ }
29
+ }
@@ -0,0 +1,6 @@
1
+ import type { ExperienceChangeCustomCodeDataBase } from './ExperienceChangeCustomCodeDataBase';
2
+ import type { ExperienceChangeId } from './ExperienceChangeId';
3
+ /**
4
+ * Describes structure for "customCode" type of experience change
5
+ */
6
+ export type ExperienceChangeCustomCodeDataUpdate = (ExperienceChangeId & ExperienceChangeCustomCodeDataBase);
@@ -0,0 +1,5 @@
1
+ import type { ExperienceChangeCustomCodeDataBase } from './ExperienceChangeCustomCodeDataBase';
2
+ /**
3
+ * Describes structure for "customCode" type of experience change
4
+ */
5
+ export type ExperienceChangeCustomCodeDataUpdateNoId = ExperienceChangeCustomCodeDataBase;
@@ -0,0 +1,6 @@
1
+ import type { ExperienceChangeDefaultCodeDataBase } from './ExperienceChangeDefaultCodeDataBase';
2
+ import type { ExperienceChangeIdReadOnly } from './ExperienceChangeIdReadOnly';
3
+ /**
4
+ * Describes structure for "defaultCode" type of experience change
5
+ */
6
+ export type ExperienceChangeDefaultCodeData = (ExperienceChangeIdReadOnly & ExperienceChangeDefaultCodeDataBase);
@@ -0,0 +1,6 @@
1
+ import type { ExperienceChangeDefaultCodeDataBase } from './ExperienceChangeDefaultCodeDataBase';
2
+ import type { ExperienceChangeIdReadOnly } from './ExperienceChangeIdReadOnly';
3
+ /**
4
+ * Describes structure for adding a "defaultCode" type of experience change
5
+ */
6
+ export type ExperienceChangeDefaultCodeDataAdd = (ExperienceChangeIdReadOnly & ExperienceChangeDefaultCodeDataBase);