@convertcom/js-sdk-rules 1.0.0 → 1.0.2

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 (156) hide show
  1. package/README.md +11 -0
  2. package/lib/{legacy/rules/src/rule-manager.d.ts → index.d.ts} +27 -4
  3. package/lib/index.js +59 -32
  4. package/lib/index.js.map +1 -1
  5. package/lib/index.min.js +1 -1
  6. package/lib/index.min.mjs +1 -1
  7. package/lib/index.mjs +60 -33
  8. package/lib/index.mjs.map +1 -1
  9. package/lib/legacy/index.js +73 -46
  10. package/lib/legacy/index.js.map +1 -1
  11. package/lib/legacy/index.min.js +1 -1
  12. package/lib/package.json +7 -1
  13. package/package.json +2 -7
  14. package/lib/enums/index.d.ts +0 -29
  15. package/lib/enums/src/audience-type.d.ts +0 -11
  16. package/lib/enums/src/data-enitites.d.ts +0 -7
  17. package/lib/enums/src/dictionary.d.ts +0 -60
  18. package/lib/enums/src/do-not-track.d.ts +0 -12
  19. package/lib/enums/src/event-type.d.ts +0 -10
  20. package/lib/enums/src/experience-type.d.ts +0 -16
  21. package/lib/enums/src/feature-status.d.ts +0 -10
  22. package/lib/enums/src/ga-type.d.ts +0 -10
  23. package/lib/enums/src/goal-data-key.d.ts +0 -11
  24. package/lib/enums/src/goal-type.d.ts +0 -22
  25. package/lib/enums/src/integration-provider.d.ts +0 -27
  26. package/lib/enums/src/log-level.d.ts +0 -14
  27. package/lib/enums/src/log-method.d.ts +0 -14
  28. package/lib/enums/src/project-type.d.ts +0 -10
  29. package/lib/enums/src/rule-error.d.ts +0 -10
  30. package/lib/enums/src/segments/browser-type.d.ts +0 -17
  31. package/lib/enums/src/segments/device-type.d.ts +0 -16
  32. package/lib/enums/src/segments/segments-keys.d.ts +0 -15
  33. package/lib/enums/src/segments/source-type.d.ts +0 -12
  34. package/lib/enums/src/segments/visitor-type.d.ts +0 -10
  35. package/lib/enums/src/system-events.d.ts +0 -22
  36. package/lib/enums/src/variable-types.d.ts +0 -7
  37. package/lib/enums/src/variation-change-type.d.ts +0 -14
  38. package/lib/legacy/enums/index.d.ts +0 -29
  39. package/lib/legacy/enums/src/audience-type.d.ts +0 -11
  40. package/lib/legacy/enums/src/data-enitites.d.ts +0 -7
  41. package/lib/legacy/enums/src/dictionary.d.ts +0 -60
  42. package/lib/legacy/enums/src/do-not-track.d.ts +0 -12
  43. package/lib/legacy/enums/src/event-type.d.ts +0 -10
  44. package/lib/legacy/enums/src/experience-type.d.ts +0 -16
  45. package/lib/legacy/enums/src/feature-status.d.ts +0 -10
  46. package/lib/legacy/enums/src/ga-type.d.ts +0 -10
  47. package/lib/legacy/enums/src/goal-data-key.d.ts +0 -11
  48. package/lib/legacy/enums/src/goal-type.d.ts +0 -22
  49. package/lib/legacy/enums/src/integration-provider.d.ts +0 -27
  50. package/lib/legacy/enums/src/log-level.d.ts +0 -14
  51. package/lib/legacy/enums/src/log-method.d.ts +0 -14
  52. package/lib/legacy/enums/src/project-type.d.ts +0 -10
  53. package/lib/legacy/enums/src/rule-error.d.ts +0 -10
  54. package/lib/legacy/enums/src/segments/browser-type.d.ts +0 -17
  55. package/lib/legacy/enums/src/segments/device-type.d.ts +0 -16
  56. package/lib/legacy/enums/src/segments/segments-keys.d.ts +0 -15
  57. package/lib/legacy/enums/src/segments/source-type.d.ts +0 -12
  58. package/lib/legacy/enums/src/segments/visitor-type.d.ts +0 -10
  59. package/lib/legacy/enums/src/system-events.d.ts +0 -22
  60. package/lib/legacy/enums/src/variable-types.d.ts +0 -7
  61. package/lib/legacy/enums/src/variation-change-type.d.ts +0 -14
  62. package/lib/legacy/logger/index.d.ts +0 -8
  63. package/lib/legacy/logger/src/interfaces/log-client.d.ts +0 -13
  64. package/lib/legacy/logger/src/interfaces/log-manager.d.ts +0 -18
  65. package/lib/legacy/logger/src/interfaces/log-method-map.d.ts +0 -15
  66. package/lib/legacy/logger/src/log-manager.d.ts +0 -64
  67. package/lib/legacy/rules/index.d.ts +0 -8
  68. package/lib/legacy/rules/src/interfaces/rule-manager.d.ts +0 -14
  69. package/lib/legacy/types/index.d.ts +0 -36
  70. package/lib/legacy/types/src/Audience.d.ts +0 -16
  71. package/lib/legacy/types/src/BucketedFeature.d.ts +0 -30
  72. package/lib/legacy/types/src/BucketedVariation.d.ts +0 -13
  73. package/lib/legacy/types/src/BucketingAttributes.d.ts +0 -13
  74. package/lib/legacy/types/src/Config.d.ts +0 -62
  75. package/lib/legacy/types/src/ConversionAttributes.d.ts +0 -11
  76. package/lib/legacy/types/src/Entity.d.ts +0 -13
  77. package/lib/legacy/types/src/Experience.d.ts +0 -37
  78. package/lib/legacy/types/src/Feature.d.ts +0 -18
  79. package/lib/legacy/types/src/Goal.d.ts +0 -30
  80. package/lib/legacy/types/src/Id.d.ts +0 -10
  81. package/lib/legacy/types/src/IndentityField.d.ts +0 -7
  82. package/lib/legacy/types/src/Integration.d.ts +0 -16
  83. package/lib/legacy/types/src/Location.d.ts +0 -14
  84. package/lib/legacy/types/src/Path.d.ts +0 -10
  85. package/lib/legacy/types/src/Project.d.ts +0 -37
  86. package/lib/legacy/types/src/RequireAtLeastOne.d.ts +0 -3
  87. package/lib/legacy/types/src/Rule.d.ts +0 -24
  88. package/lib/legacy/types/src/Segments.d.ts +0 -14
  89. package/lib/legacy/types/src/SegmentsAttributes.d.ts +0 -9
  90. package/lib/legacy/types/src/SegmentsData.d.ts +0 -16
  91. package/lib/legacy/types/src/StoreData.d.ts +0 -14
  92. package/lib/legacy/types/src/TrackingEvent.d.ts +0 -14
  93. package/lib/legacy/types/src/VariableType.d.ts +0 -8
  94. package/lib/legacy/types/src/Variation.d.ts +0 -49
  95. package/lib/legacy/types/src/VisitorsQueue.d.ts +0 -16
  96. package/lib/legacy/types/src/tracking/BucketingEvent.d.ts +0 -11
  97. package/lib/legacy/types/src/tracking/ConversionEvent.d.ts +0 -16
  98. package/lib/legacy/types/src/tracking/Visitor.d.ts +0 -14
  99. package/lib/legacy/types/src/tracking/VisitorEvent.d.ts +0 -13
  100. package/lib/legacy/utils/index.d.ts +0 -14
  101. package/lib/legacy/utils/src/array-utils.d.ts +0 -11
  102. package/lib/legacy/utils/src/comparisons.d.ts +0 -22
  103. package/lib/legacy/utils/src/data-store.d.ts +0 -39
  104. package/lib/legacy/utils/src/file-logger.d.ts +0 -40
  105. package/lib/legacy/utils/src/http-client.d.ts +0 -102
  106. package/lib/legacy/utils/src/object-utils.d.ts +0 -28
  107. package/lib/legacy/utils/src/string-utils.d.ts +0 -20
  108. package/lib/legacy/utils/src/types-utils.d.ts +0 -12
  109. package/lib/logger/index.d.ts +0 -8
  110. package/lib/logger/src/interfaces/log-client.d.ts +0 -13
  111. package/lib/logger/src/interfaces/log-manager.d.ts +0 -18
  112. package/lib/logger/src/interfaces/log-method-map.d.ts +0 -15
  113. package/lib/logger/src/log-manager.d.ts +0 -64
  114. package/lib/rules/index.d.ts +0 -8
  115. package/lib/rules/src/interfaces/rule-manager.d.ts +0 -14
  116. package/lib/rules/src/rule-manager.d.ts +0 -75
  117. package/lib/types/index.d.ts +0 -36
  118. package/lib/types/src/Audience.d.ts +0 -16
  119. package/lib/types/src/BucketedFeature.d.ts +0 -30
  120. package/lib/types/src/BucketedVariation.d.ts +0 -13
  121. package/lib/types/src/BucketingAttributes.d.ts +0 -13
  122. package/lib/types/src/Config.d.ts +0 -62
  123. package/lib/types/src/ConversionAttributes.d.ts +0 -11
  124. package/lib/types/src/Entity.d.ts +0 -13
  125. package/lib/types/src/Experience.d.ts +0 -37
  126. package/lib/types/src/Feature.d.ts +0 -18
  127. package/lib/types/src/Goal.d.ts +0 -30
  128. package/lib/types/src/Id.d.ts +0 -10
  129. package/lib/types/src/IndentityField.d.ts +0 -7
  130. package/lib/types/src/Integration.d.ts +0 -16
  131. package/lib/types/src/Location.d.ts +0 -14
  132. package/lib/types/src/Path.d.ts +0 -10
  133. package/lib/types/src/Project.d.ts +0 -37
  134. package/lib/types/src/RequireAtLeastOne.d.ts +0 -3
  135. package/lib/types/src/Rule.d.ts +0 -24
  136. package/lib/types/src/Segments.d.ts +0 -14
  137. package/lib/types/src/SegmentsAttributes.d.ts +0 -9
  138. package/lib/types/src/SegmentsData.d.ts +0 -16
  139. package/lib/types/src/StoreData.d.ts +0 -14
  140. package/lib/types/src/TrackingEvent.d.ts +0 -14
  141. package/lib/types/src/VariableType.d.ts +0 -8
  142. package/lib/types/src/Variation.d.ts +0 -49
  143. package/lib/types/src/VisitorsQueue.d.ts +0 -16
  144. package/lib/types/src/tracking/BucketingEvent.d.ts +0 -11
  145. package/lib/types/src/tracking/ConversionEvent.d.ts +0 -16
  146. package/lib/types/src/tracking/Visitor.d.ts +0 -14
  147. package/lib/types/src/tracking/VisitorEvent.d.ts +0 -13
  148. package/lib/utils/index.d.ts +0 -14
  149. package/lib/utils/src/array-utils.d.ts +0 -11
  150. package/lib/utils/src/comparisons.d.ts +0 -22
  151. package/lib/utils/src/data-store.d.ts +0 -39
  152. package/lib/utils/src/file-logger.d.ts +0 -40
  153. package/lib/utils/src/http-client.d.ts +0 -102
  154. package/lib/utils/src/object-utils.d.ts +0 -28
  155. package/lib/utils/src/string-utils.d.ts +0 -20
  156. package/lib/utils/src/types-utils.d.ts +0 -12
@@ -1,10 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum VisitorType {
8
- NEW = "new",
9
- RETURNING = "returning"
10
- }
@@ -1,22 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- /**
8
- * SDK system events. Possible values: 'ready' | 'queue-released'
9
- * or custom visitor's event
10
- */
11
- export declare enum SystemEvents {
12
- READY = "ready",
13
- CONFIG_UPDATED = "config.updated",
14
- API_QUEUE_RELEASED = "api.queue.released",
15
- BUCKETING = "bucketing",
16
- CONVERSION = "conversion",
17
- SEGMENTS = "segments",
18
- LOCATION_ACTIVATED = "location.activated",
19
- LOCATION_DEACTIVATED = "location.deactivated",
20
- AUDIENCES = "audiences",
21
- DATA_STORE_QUEUE_RELEASED = "datastore.queue.released"
22
- }
@@ -1,7 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare const VARIABLE_TYPES: readonly ["boolean", "float", "json", "integer", "string"];
@@ -1,14 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum VariationChangeType {
8
- RICH_STRUCTURE = "richStructure",
9
- CUSTOM_CODE = "customCode",
10
- DEFAULT_CODE = "defaultCode",
11
- DEFAULT_CODE_MULTIPAGE = "defaultCodeMultipage",
12
- DEFAULT_REDIRECT = "defaultRedirect",
13
- FULLSTACK_FEATURE = "fullStackFeature"
14
- }
@@ -1,29 +0,0 @@
1
- /*!
2
- * Convert JS SDK test
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export * from './src/audience-type';
8
- export * from './src/data-enitites';
9
- export * from './src/dictionary';
10
- export * from './src/do-not-track';
11
- export * from './src/event-type';
12
- export * from './src/experience-type';
13
- export * from './src/feature-status';
14
- export * from './src/ga-type';
15
- export * from './src/goal-data-key';
16
- export * from './src/goal-type';
17
- export * from './src/integration-provider';
18
- export * from './src/log-level';
19
- export * from './src/log-method';
20
- export * from './src/project-type';
21
- export * from './src/rule-error';
22
- export * from './src/system-events';
23
- export * from './src/variable-types';
24
- export * from './src/variation-change-type';
25
- export * from './src/segments/browser-type';
26
- export * from './src/segments/device-type';
27
- export * from './src/segments/segments-keys';
28
- export * from './src/segments/source-type';
29
- export * from './src/segments/visitor-type';
@@ -1,11 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum AudienceType {
8
- PERMANENT = "permanent",
9
- SEGMENTATION = "segmentation",
10
- TRANSIENT = "transient"
11
- }
@@ -1,7 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare const DATA_ENTITIES: string[];
@@ -1,60 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare const ERROR_MESSAGES: {
8
- SDK_KEY_MISSING: string;
9
- DATA_OBJECT_MISSING: string;
10
- CONFIG_DATA_NOT_VALID: string;
11
- SDK_OR_DATA_OBJECT_REQUIRED: string;
12
- RULE_NOT_VALID: string;
13
- RULE_DATA_NOT_VALID: string;
14
- RULE_ERROR: string;
15
- DATA_STORE_NOT_VALID: string;
16
- VISITOR_ID_REQUIRED: string;
17
- GOAL_DATA_NOT_VALID: string;
18
- UNABLE_TO_SELECT_BUCKET_FOR_VISITOR: string;
19
- UNABLE_TO_PERFORM_NETWORK_REQUEST: string;
20
- UNSUPPORTED_RESPONSE_TYPE: string;
21
- };
22
- export declare const MESSAGES: {
23
- CONFIG_DATA_UPDATED: string;
24
- CORE_CONSTRUCTOR: string;
25
- CORE_INITIALIZED: string;
26
- EXPERIENCE_CONSTRUCTOR: string;
27
- EXPERIENCE_NOT_FOUND: string;
28
- EXPERIENCE_RULES_MATCHED: string;
29
- VARIATIONS_NOT_FOUND: string;
30
- VARIATION_CHANGE_NOT_SUPPORTED: string;
31
- FEATURE_CONSTRUCTOR: string;
32
- FEATURE_NOT_FOUND: string;
33
- FEATURE_VARIABLES_NOT_FOUND: string;
34
- FEATURE_VARIABLES_TYPE_NOT_FOUND: string;
35
- BUCKETING_CONSTRUCTOR: string;
36
- DATA_CONSTRUCTOR: string;
37
- RULE_CONSTRUCTOR: string;
38
- PROCESSING_ENTITY: string;
39
- LOCATION_MATCH: string;
40
- LOCATION_NOT_MATCH: string;
41
- AUDIENCE_MATCH: string;
42
- AUDIENCE_NOT_MATCH: string;
43
- AUDIENCE_NOT_RESTRICTED: string;
44
- SEGMENTATION_MATCH: string;
45
- RULE_NOT_MATCH: string;
46
- RULE_MATCH: string;
47
- RULE_MATCH_AND: string;
48
- RULE_MATCH_START: string;
49
- LOCATION_ACTIVATED: string;
50
- LOCATION_DEACTIVATED: string;
51
- BUCKETED_VISITOR_FOUND: string;
52
- BUCKETED_VISITOR: string;
53
- GOAL_NOT_FOUND: string;
54
- GOAL_RULE_NOT_MATCH: string;
55
- GOAL_FOUND: string;
56
- SEGMENTS_NOT_FOUND: string;
57
- SEGMENTS_RULE_NOT_MATCH: string;
58
- CUSTOM_SEGMENTS_KEY_FOUND: string;
59
- SEND_BEACON_SUCCESS: string;
60
- };
@@ -1,12 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum DoNotTrack {
8
- OFF = "OFF",
9
- EU_ONLY = "EU ONLY",
10
- EEA_ONLY = "EEA ONLY",
11
- WORLDWIDE = "Worldwide"
12
- }
@@ -1,10 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum EventType {
8
- BUCKETING = "bucketing",
9
- CONVERSION = "conversion"
10
- }
@@ -1,16 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum ExperienceType {
8
- AB = "a/b",
9
- AA = "a/a",
10
- MVT = "mvt",
11
- SPLIT = "split_url",
12
- DEPLOY = "deploy",
13
- MULTIPAGE = "multipage",
14
- AB_FULLSTACK = "a/b_fullstack",
15
- FEATURE_ROLLOUT = "feature_rollout"
16
- }
@@ -1,10 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum FeatureStatus {
8
- ENABLED = "enabled",
9
- DISABLED = "disabled"
10
- }
@@ -1,10 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum GoogleAnalyticsType {
8
- GA3 = "ga3",
9
- GA4 = "ga4"
10
- }
@@ -1,11 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum GoalDataKey {
8
- AMOUNT = "amount",
9
- PRODUCTS_COUNT = "productsCount",
10
- TRANSACTION_ID = "transactionId"
11
- }
@@ -1,22 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum GoalType {
8
- ADVANCED = "advanced",
9
- DOM_INTERACTION = "dom_interaction",
10
- SCROLL_PERCENTAGE = "scroll_percentage",
11
- CODE_TRIGGER = "code_trigger",
12
- REVENUE = "revenue",
13
- GOOGLE_ANALYTICS_IMPORT = "ga_import",
14
- CLICKS_ELEMENT = "clicks_element",
15
- CLICKS_LINK = "clicks_link",
16
- SUBMITS_FORM = "submits_form",
17
- VISITS_PAGE = "visits_page"
18
- }
19
- export declare enum GoalRevenueTriggeringType {
20
- MANUAL = "manual",
21
- GOOGLE_ANALYTICS = "ga"
22
- }
@@ -1,27 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum IntegrationProvider {
8
- BAIDU = "baidu",
9
- CLICK_TALE = "clicktale",
10
- CLICKY = "clicky",
11
- CNZZ = "cnzz",
12
- CRAZY_EGG = "crazyegg",
13
- ECONDA = "econda",
14
- EULERIAN = "eulerian",
15
- GOOGLE_ANALYTICS = "google_analytics",
16
- GO_SQUARED = "gosquared",
17
- HEAP_ANALYTICS = "heapanalytics",
18
- HOT_JAR = "hotjar",
19
- KISS_METRICS = "kissmetrics",
20
- MIX_PANEL = "mixpanel",
21
- MOUSE_FLOW = "mouseflow",
22
- PIWIK = "piwik",
23
- SEGMENTIO = "segmentio",
24
- SITE_CATALYST = "sitecatalyst",
25
- WOOPRA = "woopra",
26
- YSANCE = "ysance"
27
- }
@@ -1,14 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum LogLevel {
8
- TRACE = 0,
9
- DEBUG = 1,
10
- INFO = 2,
11
- WARN = 3,
12
- ERROR = 4,
13
- SILENT = 5
14
- }
@@ -1,14 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum LogMethod {
8
- LOG = "log",
9
- TRACE = "trace",
10
- DEBUG = "debug",
11
- INFO = "info",
12
- WARN = "warn",
13
- ERROR = "error"
14
- }
@@ -1,10 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum ProjectType {
8
- WEB = "web",
9
- FULLSTACK = "fullstack"
10
- }
@@ -1,10 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum RuleError {
8
- NO_DATA_FOUND = "convert.com_no_data_found",
9
- NEED_MORE_DATA = "convert.com_need_more_data"
10
- }
@@ -1,17 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum BrowserType {
8
- IE = "IE",
9
- CH = "CH",
10
- FF = "FF",
11
- OP = "OP",
12
- SF = "SF",
13
- EDG = "EDG",
14
- MO = "MO",
15
- NS = "NS",
16
- OTH = "OTH"
17
- }
@@ -1,16 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum DeviceType {
8
- ALLPH = "ALLPH",
9
- IPH = "IPH",
10
- OTHPH = "OTHPH",
11
- ALLTAB = "ALLTAB",
12
- IPAD = "IPAD",
13
- OTHTAB = "OTHTAB",
14
- DESK = "DESK",
15
- OTHDEV = "OTHDEV"
16
- }
@@ -1,15 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum SegmentsKeys {
8
- COUNTRY = "country",
9
- BROWSER = "browser",
10
- DEVICES = "devices",
11
- SOURCE = "source",
12
- CAMPAIGN = "campaign",
13
- VISITOR_TYPE = "visitorType",
14
- CUSTOM_SEGMENTS = "customSegments"
15
- }
@@ -1,12 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum SourceType {
8
- CAMPAIGN = "campaign",
9
- SEARCH = "search",
10
- REFERRAL = "referral",
11
- DIRECT = "direct"
12
- }
@@ -1,10 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum VisitorType {
8
- NEW = "new",
9
- RETURNING = "returning"
10
- }
@@ -1,22 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- /**
8
- * SDK system events. Possible values: 'ready' | 'queue-released'
9
- * or custom visitor's event
10
- */
11
- export declare enum SystemEvents {
12
- READY = "ready",
13
- CONFIG_UPDATED = "config.updated",
14
- API_QUEUE_RELEASED = "api.queue.released",
15
- BUCKETING = "bucketing",
16
- CONVERSION = "conversion",
17
- SEGMENTS = "segments",
18
- LOCATION_ACTIVATED = "location.activated",
19
- LOCATION_DEACTIVATED = "location.deactivated",
20
- AUDIENCES = "audiences",
21
- DATA_STORE_QUEUE_RELEASED = "datastore.queue.released"
22
- }
@@ -1,7 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare const VARIABLE_TYPES: readonly ["boolean", "float", "json", "integer", "string"];
@@ -1,14 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export declare enum VariationChangeType {
8
- RICH_STRUCTURE = "richStructure",
9
- CUSTOM_CODE = "customCode",
10
- DEFAULT_CODE = "defaultCode",
11
- DEFAULT_CODE_MULTIPAGE = "defaultCodeMultipage",
12
- DEFAULT_REDIRECT = "defaultRedirect",
13
- FULLSTACK_FEATURE = "fullStackFeature"
14
- }
@@ -1,8 +0,0 @@
1
- /*!
2
- * Convert JS SDK test
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export { LogManager } from './src/log-manager';
8
- export { LogManagerInterface } from './src/interfaces/log-manager';
@@ -1,13 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- import { LogLevel } from '@convertcom/js-sdk-enums';
8
- import { LogMethodMapInterface } from './log-method-map';
9
- export interface LogClientInterface {
10
- sdk: any;
11
- level: LogLevel;
12
- mapper: LogMethodMapInterface;
13
- }
@@ -1,18 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- import { LogLevel } from '@convertcom/js-sdk-enums';
8
- import { LogMethodMapInterface } from './log-method-map';
9
- export interface LogManagerInterface {
10
- log(level: LogLevel, ...args: any[]): void;
11
- trace(...args: any[]): void;
12
- debug(...args: any[]): void;
13
- info(...args: any[]): void;
14
- warn(...args: any[]): void;
15
- error(...args: any[]): void;
16
- addClient(client?: any, level?: LogLevel, methodMap?: LogMethodMapInterface): void;
17
- setClientLevel(level: LogLevel, client?: any): void;
18
- }
@@ -1,15 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- import { LogMethod } from '@convertcom/js-sdk-enums';
8
- export interface LogMethodMapInterface {
9
- [LogMethod.LOG]?: string;
10
- [LogMethod.DEBUG]?: string;
11
- [LogMethod.INFO]?: string;
12
- [LogMethod.WARN]?: string;
13
- [LogMethod.ERROR]?: string;
14
- [LogMethod.TRACE]?: string;
15
- }
@@ -1,64 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- import { LogLevel } from '@convertcom/js-sdk-enums';
8
- import { LogMethodMapInterface } from './interfaces/log-method-map';
9
- import { LogManagerInterface } from './interfaces/log-manager';
10
- /**
11
- * Provides logging logic
12
- * @category Modules
13
- * @constructor
14
- * @implements {LogManagerInterface}
15
- */
16
- export declare class LogManager implements LogManagerInterface {
17
- private _clients;
18
- private _defaultMapper;
19
- /**
20
- * @param {any} client
21
- * @param {LogLevel=} level
22
- * @param {LogMethodMapInterface=} mapper
23
- */
24
- constructor(client?: any, level?: LogLevel, mapper?: LogMethodMapInterface);
25
- private _isValidLevel;
26
- private _isValidMethod;
27
- private _log;
28
- /**
29
- * @param {LogLevel} level
30
- * @param {Array<any>} args
31
- */
32
- log(level: LogLevel, ...args: any[]): void;
33
- /**
34
- * @param {Array<any>} args
35
- */
36
- trace(...args: any[]): void;
37
- /**
38
- * @param {Array<any>} args
39
- */
40
- debug(...args: any[]): void;
41
- /**
42
- * @param {Array<any>} args
43
- */
44
- info(...args: any[]): void;
45
- /**
46
- * @param {Array<any>} args
47
- */
48
- warn(...args: any[]): void;
49
- /**
50
- * @param {Array<any>} args
51
- */
52
- error(...args: any[]): void;
53
- /**
54
- * @param {any=} client
55
- * @param {LogLevel=} level
56
- * @param {LogMethodMapInterface=} methodMap
57
- */
58
- addClient(client?: any, level?: LogLevel, methodMap?: LogMethodMapInterface): void;
59
- /**
60
- * @param {LogLevel=} level
61
- * @param {any=} client
62
- */
63
- setClientLevel(level: LogLevel, client?: any): void;
64
- }
@@ -1,8 +0,0 @@
1
- /*!
2
- * Convert JS SDK test
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export { RuleManager } from './src/rule-manager';
8
- export { RuleManagerInterface } from './src/interfaces/rule-manager';
@@ -1,14 +0,0 @@
1
- /*!
2
- * Convert JS SDK
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- import { Rule, RuleSet } from '@convertcom/js-sdk-types';
8
- import { RuleError } from '@convertcom/js-sdk-enums';
9
- export interface RuleManagerInterface {
10
- comparisonProcessor: Record<string, any>;
11
- getComparisonProcessorMethods(): Array<string>;
12
- isRuleMatched(data: Record<string, any>, ruleSet: RuleSet, logEntry?: string): boolean | RuleError;
13
- isValidRule(rule: Rule): boolean;
14
- }
@@ -1,36 +0,0 @@
1
- /*!
2
- * Convert JS SDK test
3
- * Version 1.0.0
4
- * Copyright(c) 2020 Convert Insights, Inc
5
- * License Apache-2.0
6
- */
7
- export * from './src/Audience';
8
- export * from './src/BucketedFeature';
9
- export * from './src/BucketedVariation';
10
- export * from './src/BucketingAttributes';
11
- export * from './src/Config';
12
- export * from './src/ConversionAttributes';
13
- export * from './src/Entity';
14
- export * from './src/Experience';
15
- export * from './src/Feature';
16
- export * from './src/Goal';
17
- export * from './src/Id';
18
- export * from './src/IndentityField';
19
- export * from './src/Integration';
20
- export * from './src/Location';
21
- export * from './src/Path';
22
- export * from './src/Project';
23
- export * from './src/RequireAtLeastOne';
24
- export * from './src/Rule';
25
- export * from './src/Segments';
26
- export * from './src/SegmentsAttributes';
27
- export * from './src/SegmentsData';
28
- export * from './src/StoreData';
29
- export * from './src/TrackingEvent';
30
- export * from './src/VariableType';
31
- export * from './src/Variation';
32
- export * from './src/VisitorsQueue';
33
- export * from './src/tracking/BucketingEvent';
34
- export * from './src/tracking/ConversionEvent';
35
- export * from './src/tracking/Visitor';
36
- export * from './src/tracking/VisitorEvent';