@kameleoon/javascript-sdk-core 0.0.3 → 1.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 (262) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +7 -3
  3. package/dist/campaignConfiguration/campaignConfiguration.d.ts +46 -0
  4. package/dist/campaignConfiguration/campaignConfiguration.js +217 -0
  5. package/dist/campaignConfiguration/campaignConfiguration.js.map +1 -0
  6. package/dist/campaignConfiguration/constants.d.ts +18 -0
  7. package/dist/campaignConfiguration/constants.js +23 -0
  8. package/dist/campaignConfiguration/constants.js.map +1 -0
  9. package/dist/campaignConfiguration/index.d.ts +2 -0
  10. package/dist/campaignConfiguration/index.js +8 -0
  11. package/dist/campaignConfiguration/index.js.map +1 -0
  12. package/dist/campaignConfiguration/types.d.ts +126 -0
  13. package/dist/campaignConfiguration/types.js +47 -0
  14. package/dist/campaignConfiguration/types.js.map +1 -0
  15. package/dist/clientSettings/clientSettings.d.ts +12 -0
  16. package/dist/clientSettings/clientSettings.js +29 -0
  17. package/dist/clientSettings/clientSettings.js.map +1 -0
  18. package/dist/clientSettings/index.d.ts +2 -0
  19. package/dist/clientSettings/index.js +6 -0
  20. package/dist/clientSettings/index.js.map +1 -0
  21. package/dist/clientSettings/types.d.ts +6 -0
  22. package/dist/{interfaces/interfaces.js → clientSettings/types.js} +1 -1
  23. package/dist/clientSettings/types.js.map +1 -0
  24. package/dist/constants.d.ts +10 -16
  25. package/dist/constants.js +13 -20
  26. package/dist/constants.js.map +1 -1
  27. package/dist/eventSource/constants.d.ts +1 -0
  28. package/dist/eventSource/constants.js +5 -0
  29. package/dist/eventSource/constants.js.map +1 -0
  30. package/dist/eventSource/externalEventSource.d.ts +12 -0
  31. package/dist/eventSource/externalEventSource.js +26 -0
  32. package/dist/eventSource/externalEventSource.js.map +1 -0
  33. package/dist/eventSource/index.d.ts +3 -0
  34. package/dist/eventSource/index.js +8 -0
  35. package/dist/eventSource/index.js.map +1 -0
  36. package/dist/eventSource/types.d.ts +47 -0
  37. package/dist/eventSource/types.js +3 -0
  38. package/dist/eventSource/types.js.map +1 -0
  39. package/dist/hasher/constants.d.ts +1 -0
  40. package/dist/hasher/constants.js +5 -0
  41. package/dist/hasher/constants.js.map +1 -0
  42. package/dist/hasher/hasher.d.ts +6 -0
  43. package/dist/hasher/hasher.js +34 -0
  44. package/dist/hasher/hasher.js.map +1 -0
  45. package/dist/hasher/index.d.ts +1 -0
  46. package/dist/hasher/index.js +6 -0
  47. package/dist/hasher/index.js.map +1 -0
  48. package/dist/hasher/types.d.ts +12 -0
  49. package/dist/hasher/types.js +3 -0
  50. package/dist/hasher/types.js.map +1 -0
  51. package/dist/index.d.ts +10 -3
  52. package/dist/index.js +25 -7
  53. package/dist/index.js.map +1 -1
  54. package/dist/kameleoonClient.d.ts +189 -100
  55. package/dist/kameleoonClient.js +238 -701
  56. package/dist/kameleoonClient.js.map +1 -1
  57. package/dist/kameleoonData/browser.d.ts +21 -0
  58. package/dist/kameleoonData/browser.js +41 -0
  59. package/dist/kameleoonData/browser.js.map +1 -0
  60. package/dist/kameleoonData/constants.d.ts +1 -0
  61. package/dist/kameleoonData/constants.js +5 -0
  62. package/dist/kameleoonData/constants.js.map +1 -0
  63. package/dist/kameleoonData/conversion.d.ts +23 -0
  64. package/dist/kameleoonData/conversion.js +49 -0
  65. package/dist/kameleoonData/conversion.js.map +1 -0
  66. package/dist/kameleoonData/customData.d.ts +33 -0
  67. package/dist/kameleoonData/customData.js +68 -0
  68. package/dist/kameleoonData/customData.js.map +1 -0
  69. package/dist/kameleoonData/device.d.ts +21 -0
  70. package/dist/kameleoonData/device.js +41 -0
  71. package/dist/kameleoonData/device.js.map +1 -0
  72. package/dist/kameleoonData/index.d.ts +7 -0
  73. package/dist/kameleoonData/index.js +20 -0
  74. package/dist/kameleoonData/index.js.map +1 -0
  75. package/dist/kameleoonData/nonce.d.ts +5 -0
  76. package/dist/kameleoonData/nonce.js +20 -0
  77. package/dist/kameleoonData/nonce.js.map +1 -0
  78. package/dist/kameleoonData/pageView.d.ts +24 -0
  79. package/dist/kameleoonData/pageView.js +54 -0
  80. package/dist/kameleoonData/pageView.js.map +1 -0
  81. package/dist/kameleoonData/types.d.ts +100 -0
  82. package/dist/kameleoonData/types.js +36 -0
  83. package/dist/kameleoonData/types.js.map +1 -0
  84. package/dist/kameleoonData/userAgent.d.ts +18 -0
  85. package/dist/kameleoonData/userAgent.js +33 -0
  86. package/dist/kameleoonData/userAgent.js.map +1 -0
  87. package/dist/kameleoonError/constants.d.ts +22 -0
  88. package/dist/kameleoonError/constants.js +25 -0
  89. package/dist/kameleoonError/constants.js.map +1 -0
  90. package/dist/kameleoonError/helpers.d.ts +1 -0
  91. package/dist/kameleoonError/helpers.js +8 -0
  92. package/dist/kameleoonError/helpers.js.map +1 -0
  93. package/dist/kameleoonError/index.d.ts +3 -0
  94. package/dist/kameleoonError/index.js +10 -0
  95. package/dist/kameleoonError/index.js.map +1 -0
  96. package/dist/kameleoonError/kameleoonError.d.ts +24 -0
  97. package/dist/kameleoonError/kameleoonError.js +64 -0
  98. package/dist/kameleoonError/kameleoonError.js.map +1 -0
  99. package/dist/kameleoonError/types.d.ts +20 -0
  100. package/dist/kameleoonError/types.js +25 -0
  101. package/dist/kameleoonError/types.js.map +1 -0
  102. package/dist/kameleoonUtils.d.ts +11 -10
  103. package/dist/kameleoonUtils.js +42 -128
  104. package/dist/kameleoonUtils.js.map +1 -1
  105. package/dist/requester/constants.d.ts +15 -0
  106. package/dist/requester/constants.js +53 -0
  107. package/dist/requester/constants.js.map +1 -0
  108. package/dist/requester/index.d.ts +3 -0
  109. package/dist/requester/index.js +10 -0
  110. package/dist/requester/index.js.map +1 -0
  111. package/dist/requester/requester.d.ts +23 -0
  112. package/dist/requester/requester.js +121 -0
  113. package/dist/requester/requester.js.map +1 -0
  114. package/dist/requester/types.d.ts +43 -0
  115. package/dist/requester/types.js +39 -0
  116. package/dist/requester/types.js.map +1 -0
  117. package/dist/storage/constants.d.ts +9 -0
  118. package/dist/storage/constants.js +14 -0
  119. package/dist/storage/constants.js.map +1 -0
  120. package/dist/storage/externalStorage.d.ts +11 -0
  121. package/dist/storage/externalStorage.js +34 -0
  122. package/dist/storage/externalStorage.js.map +1 -0
  123. package/dist/storage/index.d.ts +3 -0
  124. package/dist/storage/index.js +8 -0
  125. package/dist/storage/index.js.map +1 -0
  126. package/dist/storage/types.d.ts +52 -11
  127. package/dist/targeting/conditions/conditionFactory.d.ts +6 -0
  128. package/dist/targeting/conditions/conditionFactory.js +26 -0
  129. package/dist/targeting/conditions/conditionFactory.js.map +1 -0
  130. package/dist/targeting/conditions/customDataCondition.d.ts +16 -0
  131. package/dist/targeting/conditions/customDataCondition.js +99 -0
  132. package/dist/targeting/conditions/customDataCondition.js.map +1 -0
  133. package/dist/targeting/conditions/exclusiveExperimentCondition.d.ts +9 -0
  134. package/dist/targeting/conditions/exclusiveExperimentCondition.js +21 -0
  135. package/dist/targeting/conditions/exclusiveExperimentCondition.js.map +1 -0
  136. package/dist/targeting/conditions/index.d.ts +5 -0
  137. package/dist/targeting/conditions/index.js +12 -0
  138. package/dist/targeting/conditions/index.js.map +1 -0
  139. package/dist/targeting/conditions/targetExperimentCondition.d.ts +13 -0
  140. package/dist/targeting/conditions/targetExperimentCondition.js +42 -0
  141. package/dist/targeting/conditions/targetExperimentCondition.js.map +1 -0
  142. package/dist/targeting/conditions/types.d.ts +22 -11
  143. package/dist/targeting/index.d.ts +3 -0
  144. package/dist/targeting/index.js +15 -0
  145. package/dist/targeting/index.js.map +1 -0
  146. package/dist/targeting/targetingNode.d.ts +21 -0
  147. package/dist/targeting/targetingNode.js +40 -0
  148. package/dist/targeting/targetingNode.js.map +1 -0
  149. package/dist/targeting/targetingTree.d.ts +16 -8
  150. package/dist/targeting/targetingTree.js +112 -10
  151. package/dist/targeting/targetingTree.js.map +1 -1
  152. package/dist/targeting/types.d.ts +127 -0
  153. package/dist/targeting/types.js +93 -0
  154. package/dist/targeting/types.js.map +1 -0
  155. package/dist/types.d.ts +135 -5
  156. package/dist/types.js +28 -0
  157. package/dist/types.js.map +1 -1
  158. package/dist/utilities/constants.d.ts +1 -0
  159. package/dist/utilities/constants.js +5 -0
  160. package/dist/utilities/constants.js.map +1 -0
  161. package/dist/utilities/index.d.ts +1 -0
  162. package/dist/utilities/index.js +6 -0
  163. package/dist/utilities/index.js.map +1 -0
  164. package/dist/utilities/types.d.ts +18 -0
  165. package/dist/utilities/types.js +3 -0
  166. package/dist/utilities/types.js.map +1 -0
  167. package/dist/utilities/utilities.d.ts +13 -0
  168. package/dist/utilities/utilities.js +119 -0
  169. package/dist/utilities/utilities.js.map +1 -0
  170. package/dist/variationConfiguration/index.d.ts +2 -0
  171. package/dist/variationConfiguration/index.js +6 -0
  172. package/dist/variationConfiguration/index.js.map +1 -0
  173. package/dist/variationConfiguration/types.d.ts +25 -0
  174. package/dist/variationConfiguration/types.js +3 -0
  175. package/dist/variationConfiguration/types.js.map +1 -0
  176. package/dist/variationConfiguration/variation.d.ts +13 -0
  177. package/dist/variationConfiguration/variation.js +38 -0
  178. package/dist/variationConfiguration/variation.js.map +1 -0
  179. package/dist/variationConfiguration/variationConfiguration.d.ts +36 -0
  180. package/dist/variationConfiguration/variationConfiguration.js +248 -0
  181. package/dist/variationConfiguration/variationConfiguration.js.map +1 -0
  182. package/package.json +19 -9
  183. package/dist/configurations/configuration.d.ts +0 -15
  184. package/dist/configurations/configuration.js +0 -31
  185. package/dist/configurations/configuration.js.map +0 -1
  186. package/dist/configurations/experiment.d.ts +0 -13
  187. package/dist/configurations/experiment.js +0 -54
  188. package/dist/configurations/experiment.js.map +0 -1
  189. package/dist/configurations/featureFlag.d.ts +0 -23
  190. package/dist/configurations/featureFlag.js +0 -105
  191. package/dist/configurations/featureFlag.js.map +0 -1
  192. package/dist/configurations/variation.d.ts +0 -15
  193. package/dist/configurations/variation.js +0 -14
  194. package/dist/configurations/variation.js.map +0 -1
  195. package/dist/data.d.ts +0 -67
  196. package/dist/data.js +0 -127
  197. package/dist/data.js.map +0 -1
  198. package/dist/exceptions/credentialsNotFound.d.ts +0 -6
  199. package/dist/exceptions/credentialsNotFound.js +0 -29
  200. package/dist/exceptions/credentialsNotFound.js.map +0 -1
  201. package/dist/exceptions/experimentConfigurationNotFound.d.ts +0 -6
  202. package/dist/exceptions/experimentConfigurationNotFound.js +0 -29
  203. package/dist/exceptions/experimentConfigurationNotFound.js.map +0 -1
  204. package/dist/exceptions/featureConfigurationNotFound.d.ts +0 -6
  205. package/dist/exceptions/featureConfigurationNotFound.js +0 -29
  206. package/dist/exceptions/featureConfigurationNotFound.js.map +0 -1
  207. package/dist/exceptions/notActivated.d.ts +0 -6
  208. package/dist/exceptions/notActivated.js +0 -29
  209. package/dist/exceptions/notActivated.js.map +0 -1
  210. package/dist/exceptions/notTargeted.d.ts +0 -6
  211. package/dist/exceptions/notTargeted.js +0 -29
  212. package/dist/exceptions/notTargeted.js.map +0 -1
  213. package/dist/exceptions/siteCodeDisabled.d.ts +0 -5
  214. package/dist/exceptions/siteCodeDisabled.js +0 -30
  215. package/dist/exceptions/siteCodeDisabled.js.map +0 -1
  216. package/dist/exceptions/variationConfigurationNotFound.d.ts +0 -6
  217. package/dist/exceptions/variationConfigurationNotFound.js +0 -29
  218. package/dist/exceptions/variationConfigurationNotFound.js.map +0 -1
  219. package/dist/exceptions/visitorCodeNotValid.d.ts +0 -5
  220. package/dist/exceptions/visitorCodeNotValid.js +0 -30
  221. package/dist/exceptions/visitorCodeNotValid.js.map +0 -1
  222. package/dist/interfaces/interfaces.d.ts +0 -81
  223. package/dist/interfaces/interfaces.js.map +0 -1
  224. package/dist/nonce.d.ts +0 -1
  225. package/dist/nonce.js +0 -16
  226. package/dist/nonce.js.map +0 -1
  227. package/dist/realTimeConfigurationService.d.ts +0 -12
  228. package/dist/realTimeConfigurationService.js +0 -24
  229. package/dist/realTimeConfigurationService.js.map +0 -1
  230. package/dist/storage/variationStorage.d.ts +0 -11
  231. package/dist/storage/variationStorage.js +0 -159
  232. package/dist/storage/variationStorage.js.map +0 -1
  233. package/dist/storage/visitorVariation.d.ts +0 -9
  234. package/dist/storage/visitorVariation.js +0 -22
  235. package/dist/storage/visitorVariation.js.map +0 -1
  236. package/dist/targeting/conditions/customDatum.d.ts +0 -12
  237. package/dist/targeting/conditions/customDatum.js +0 -129
  238. package/dist/targeting/conditions/customDatum.js.map +0 -1
  239. package/dist/targeting/conditions/exclusiveExperiment.d.ts +0 -9
  240. package/dist/targeting/conditions/exclusiveExperiment.js +0 -45
  241. package/dist/targeting/conditions/exclusiveExperiment.js.map +0 -1
  242. package/dist/targeting/conditions/targetExperiment.d.ts +0 -14
  243. package/dist/targeting/conditions/targetExperiment.js +0 -57
  244. package/dist/targeting/conditions/targetExperiment.js.map +0 -1
  245. package/dist/targeting/targetingCondition.d.ts +0 -7
  246. package/dist/targeting/targetingCondition.js +0 -9
  247. package/dist/targeting/targetingCondition.js.map +0 -1
  248. package/dist/targeting/targetingConditionsFactory.d.ts +0 -7
  249. package/dist/targeting/targetingConditionsFactory.js +0 -30
  250. package/dist/targeting/targetingConditionsFactory.js.map +0 -1
  251. package/dist/targeting/targetingData.d.ts +0 -7
  252. package/dist/targeting/targetingData.js +0 -11
  253. package/dist/targeting/targetingData.js.map +0 -1
  254. package/dist/targeting/targetingEngine.d.ts +0 -6
  255. package/dist/targeting/targetingEngine.js +0 -130
  256. package/dist/targeting/targetingEngine.js.map +0 -1
  257. package/dist/targeting/targetingSegment.d.ts +0 -5
  258. package/dist/targeting/targetingSegment.js +0 -9
  259. package/dist/targeting/targetingSegment.js.map +0 -1
  260. package/dist/targeting/targetingTreeBuilder.d.ts +0 -8
  261. package/dist/targeting/targetingTreeBuilder.js +0 -127
  262. package/dist/targeting/targetingTreeBuilder.js.map +0 -1
package/dist/data.d.ts DELETED
@@ -1,67 +0,0 @@
1
- import { DataInterface } from './interfaces/interfaces';
2
- export declare class CustomData implements DataInterface {
3
- id: number;
4
- value: string;
5
- nonce: string;
6
- constructor(id: number, value: any);
7
- obtainFullPostTextLine: () => string;
8
- }
9
- export declare class Browser implements DataInterface {
10
- browser: number;
11
- nonce: string;
12
- constructor(browser: number);
13
- obtainFullPostTextLine: () => string;
14
- }
15
- export declare enum BrowserType {
16
- Chrome = 0,
17
- InternetExplorer = 1,
18
- Firefox = 2,
19
- Safari = 3,
20
- Opera = 4,
21
- Other = 5
22
- }
23
- export declare class PageView implements DataInterface {
24
- url: string;
25
- title: string;
26
- referrer?: number;
27
- nonce: string;
28
- constructor(url: string, title: string, referrer?: number);
29
- obtainFullPostTextLine: () => string;
30
- }
31
- export declare class Conversion implements DataInterface {
32
- goalId: number;
33
- revenue: number;
34
- negative: boolean;
35
- nonce: string;
36
- constructor(goalId: number, revenue?: number, negative?: boolean);
37
- obtainFullPostTextLine: () => string;
38
- }
39
- export declare class Device implements DataInterface {
40
- device: DeviceType;
41
- nonce: string;
42
- constructor(device: DeviceType);
43
- obtainFullPostTextLine: () => string;
44
- }
45
- export declare enum DeviceType {
46
- Phone = "PHONE",
47
- Tablet = "TABLET",
48
- Desktop = "DESKTOP"
49
- }
50
- declare const _default: {
51
- browsers: {
52
- CHROME: number;
53
- INTERNET_EXPLORER: number;
54
- FIREFOX: number;
55
- SAFARI: number;
56
- OPERA: number;
57
- OTHER: number;
58
- };
59
- Conversion: typeof Conversion;
60
- CustomData: typeof CustomData;
61
- Browser: typeof Browser;
62
- BrowserType: typeof BrowserType;
63
- PageView: typeof PageView;
64
- Device: typeof Device;
65
- DeviceType: typeof DeviceType;
66
- };
67
- export default _default;
package/dist/data.js DELETED
@@ -1,127 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeviceType = exports.Device = exports.Conversion = exports.PageView = exports.BrowserType = exports.Browser = exports.CustomData = void 0;
4
- var nonce_1 = require("./nonce");
5
- var CustomData = /** @class */ (function () {
6
- function CustomData(id, value) {
7
- var _this = this;
8
- this.obtainFullPostTextLine = function () {
9
- var encodedValue = encodeURIComponent(JSON.stringify([[_this.value, 1]]));
10
- return ('eventType=customData&index=' +
11
- _this.id +
12
- '&valueToCount=' +
13
- encodedValue +
14
- '&overwrite=true&nonce=' +
15
- _this.nonce);
16
- };
17
- this.id = id;
18
- this.value = value;
19
- this.nonce = (0, nonce_1.obtainNonce)();
20
- }
21
- return CustomData;
22
- }());
23
- exports.CustomData = CustomData;
24
- var Browser = /** @class */ (function () {
25
- function Browser(browser) {
26
- var _this = this;
27
- this.obtainFullPostTextLine = function () {
28
- if (_this.browser < 0) {
29
- throw 'Browser not recognized';
30
- }
31
- return ('eventType=staticData&browser=' + _this.browser + '&nonce=' + _this.nonce);
32
- };
33
- this.browser = browser;
34
- this.nonce = (0, nonce_1.obtainNonce)();
35
- }
36
- return Browser;
37
- }());
38
- exports.Browser = Browser;
39
- var BrowserType;
40
- (function (BrowserType) {
41
- BrowserType[BrowserType["Chrome"] = 0] = "Chrome";
42
- BrowserType[BrowserType["InternetExplorer"] = 1] = "InternetExplorer";
43
- BrowserType[BrowserType["Firefox"] = 2] = "Firefox";
44
- BrowserType[BrowserType["Safari"] = 3] = "Safari";
45
- BrowserType[BrowserType["Opera"] = 4] = "Opera";
46
- BrowserType[BrowserType["Other"] = 5] = "Other";
47
- })(BrowserType = exports.BrowserType || (exports.BrowserType = {}));
48
- var PageView = /** @class */ (function () {
49
- function PageView(url, title, referrer) {
50
- var _this = this;
51
- this.obtainFullPostTextLine = function () {
52
- return ('eventType=page&href=' +
53
- encodeURIComponent(_this.url) +
54
- '&title=' +
55
- _this.title +
56
- '&keyPages=[]' +
57
- (_this.referrer == null ? '' : '&referrers=[' + _this.referrer + ']') +
58
- '&nonce=' +
59
- _this.nonce);
60
- };
61
- this.url = url;
62
- this.title = title;
63
- this.referrer = referrer;
64
- this.nonce = (0, nonce_1.obtainNonce)();
65
- }
66
- return PageView;
67
- }());
68
- exports.PageView = PageView;
69
- var Conversion = /** @class */ (function () {
70
- function Conversion(goalId, revenue, negative) {
71
- var _this = this;
72
- if (revenue === void 0) { revenue = 0; }
73
- if (negative === void 0) { negative = false; }
74
- this.obtainFullPostTextLine = function () {
75
- return ('eventType=conversion&goalId=' +
76
- _this.goalId.toString() +
77
- '&revenue=' +
78
- _this.revenue.toString() +
79
- '&negative=' +
80
- _this.negative.toString() +
81
- '&nonce=' +
82
- _this.nonce);
83
- };
84
- this.goalId = goalId;
85
- this.revenue = revenue;
86
- this.negative = negative;
87
- this.nonce = (0, nonce_1.obtainNonce)();
88
- }
89
- return Conversion;
90
- }());
91
- exports.Conversion = Conversion;
92
- var Device = /** @class */ (function () {
93
- function Device(device) {
94
- var _this = this;
95
- this.obtainFullPostTextLine = function () {
96
- return ('eventType=staticData&deviceType=' + _this.device + '&nonce=' + _this.nonce);
97
- };
98
- this.device = device;
99
- this.nonce = (0, nonce_1.obtainNonce)();
100
- }
101
- return Device;
102
- }());
103
- exports.Device = Device;
104
- var DeviceType;
105
- (function (DeviceType) {
106
- DeviceType["Phone"] = "PHONE";
107
- DeviceType["Tablet"] = "TABLET";
108
- DeviceType["Desktop"] = "DESKTOP";
109
- })(DeviceType = exports.DeviceType || (exports.DeviceType = {}));
110
- exports.default = {
111
- browsers: {
112
- CHROME: 0,
113
- INTERNET_EXPLORER: 1,
114
- FIREFOX: 2,
115
- SAFARI: 3,
116
- OPERA: 4,
117
- OTHER: 5,
118
- },
119
- Conversion: Conversion,
120
- CustomData: CustomData,
121
- Browser: Browser,
122
- BrowserType: BrowserType,
123
- PageView: PageView,
124
- Device: Device,
125
- DeviceType: DeviceType,
126
- };
127
- //# sourceMappingURL=data.js.map
package/dist/data.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.js","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"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"}
@@ -1,6 +0,0 @@
1
- declare class CredentialsNotFound extends Error {
2
- message: string;
3
- type: string;
4
- constructor(message: string);
5
- }
6
- export default CredentialsNotFound;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var CredentialsNotFound = /** @class */ (function (_super) {
19
- __extends(CredentialsNotFound, _super);
20
- function CredentialsNotFound(message) {
21
- var _this = _super.call(this) || this;
22
- _this.type = 'CredentialsNotFound';
23
- _this.message = message;
24
- return _this;
25
- }
26
- return CredentialsNotFound;
27
- }(Error));
28
- exports.default = CredentialsNotFound;
29
- //# sourceMappingURL=credentialsNotFound.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credentialsNotFound.js","sourceRoot":"","sources":["../../src/exceptions/credentialsNotFound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;IAAkC,uCAAK;IAIrC,6BAAY,OAAe;QAA3B,YACE,iBAAO,SAER;QALD,UAAI,GAAG,qBAAqB,CAAC;QAI3B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACzB,CAAC;IACH,0BAAC;AAAD,CAAC,AARD,CAAkC,KAAK,GAQtC;AACD,kBAAe,mBAAmB,CAAC"}
@@ -1,6 +0,0 @@
1
- declare class ExperimentConfigurationNotFound extends Error {
2
- message: string;
3
- type: string;
4
- constructor(message: string);
5
- }
6
- export default ExperimentConfigurationNotFound;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var ExperimentConfigurationNotFound = /** @class */ (function (_super) {
19
- __extends(ExperimentConfigurationNotFound, _super);
20
- function ExperimentConfigurationNotFound(message) {
21
- var _this = _super.call(this) || this;
22
- _this.type = 'ExperimentConfigurationNotFound';
23
- _this.message = message;
24
- return _this;
25
- }
26
- return ExperimentConfigurationNotFound;
27
- }(Error));
28
- exports.default = ExperimentConfigurationNotFound;
29
- //# sourceMappingURL=experimentConfigurationNotFound.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"experimentConfigurationNotFound.js","sourceRoot":"","sources":["../../src/exceptions/experimentConfigurationNotFound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;IAA8C,mDAAK;IAIjD,yCAAY,OAAe;QAA3B,YACE,iBAAO,SAER;QALD,UAAI,GAAG,iCAAiC,CAAC;QAIvC,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACzB,CAAC;IACH,sCAAC;AAAD,CAAC,AARD,CAA8C,KAAK,GAQlD;AAED,kBAAe,+BAA+B,CAAC"}
@@ -1,6 +0,0 @@
1
- declare class FeatureConfigurationNotFound extends Error {
2
- message: string;
3
- type: string;
4
- constructor(message: string);
5
- }
6
- export default FeatureConfigurationNotFound;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var FeatureConfigurationNotFound = /** @class */ (function (_super) {
19
- __extends(FeatureConfigurationNotFound, _super);
20
- function FeatureConfigurationNotFound(message) {
21
- var _this = _super.call(this) || this;
22
- _this.type = 'FeatureConfigurationNotFound';
23
- _this.message = message;
24
- return _this;
25
- }
26
- return FeatureConfigurationNotFound;
27
- }(Error));
28
- exports.default = FeatureConfigurationNotFound;
29
- //# sourceMappingURL=featureConfigurationNotFound.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"featureConfigurationNotFound.js","sourceRoot":"","sources":["../../src/exceptions/featureConfigurationNotFound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;IAA2C,gDAAK;IAI9C,sCAAY,OAAe;QAA3B,YACE,iBAAO,SAER;QALD,UAAI,GAAG,8BAA8B,CAAC;QAIpC,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACzB,CAAC;IACH,mCAAC;AAAD,CAAC,AARD,CAA2C,KAAK,GAQ/C;AAED,kBAAe,4BAA4B,CAAC"}
@@ -1,6 +0,0 @@
1
- declare class NotActivated extends Error {
2
- message: string;
3
- type: string;
4
- constructor(message: string);
5
- }
6
- export default NotActivated;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var NotActivated = /** @class */ (function (_super) {
19
- __extends(NotActivated, _super);
20
- function NotActivated(message) {
21
- var _this = _super.call(this) || this;
22
- _this.type = 'NotActivated';
23
- _this.message = message;
24
- return _this;
25
- }
26
- return NotActivated;
27
- }(Error));
28
- exports.default = NotActivated;
29
- //# sourceMappingURL=notActivated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notActivated.js","sourceRoot":"","sources":["../../src/exceptions/notActivated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;IAA2B,gCAAK;IAI9B,sBAAY,OAAe;QAA3B,YACE,iBAAO,SAER;QALD,UAAI,GAAG,cAAc,CAAC;QAIpB,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACzB,CAAC;IACH,mBAAC;AAAD,CAAC,AARD,CAA2B,KAAK,GAQ/B;AAED,kBAAe,YAAY,CAAC"}
@@ -1,6 +0,0 @@
1
- declare class NotTargeted extends Error {
2
- message: string;
3
- type: string;
4
- constructor(message: string);
5
- }
6
- export default NotTargeted;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var NotTargeted = /** @class */ (function (_super) {
19
- __extends(NotTargeted, _super);
20
- function NotTargeted(message) {
21
- var _this = _super.call(this) || this;
22
- _this.type = 'NotTargeted';
23
- _this.message = message;
24
- return _this;
25
- }
26
- return NotTargeted;
27
- }(Error));
28
- exports.default = NotTargeted;
29
- //# sourceMappingURL=notTargeted.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notTargeted.js","sourceRoot":"","sources":["../../src/exceptions/notTargeted.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;IAA0B,+BAAK;IAI7B,qBAAY,OAAe;QAA3B,YACE,iBAAO,SAER;QALD,UAAI,GAAG,aAAa,CAAC;QAInB,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACzB,CAAC;IACH,kBAAC;AAAD,CAAC,AARD,CAA0B,KAAK,GAQ9B;AAED,kBAAe,WAAW,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare class SiteCodeDisabled extends Error {
2
- message: string;
3
- type: string;
4
- constructor(siteCode: string);
5
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.SiteCodeDisabled = void 0;
19
- var SiteCodeDisabled = /** @class */ (function (_super) {
20
- __extends(SiteCodeDisabled, _super);
21
- function SiteCodeDisabled(siteCode) {
22
- var _this = _super.call(this) || this;
23
- _this.type = 'SiteCodeDisabled';
24
- _this.message = "SiteCode ".concat(siteCode, " disabled");
25
- return _this;
26
- }
27
- return SiteCodeDisabled;
28
- }(Error));
29
- exports.SiteCodeDisabled = SiteCodeDisabled;
30
- //# sourceMappingURL=siteCodeDisabled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"siteCodeDisabled.js","sourceRoot":"","sources":["../../src/exceptions/siteCodeDisabled.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;IAAsC,oCAAK;IAIzC,0BAAY,QAAgB;QAA5B,YACE,iBAAO,SAER;QALD,UAAI,GAAG,kBAAkB,CAAC;QAIxB,KAAI,CAAC,OAAO,GAAG,mBAAY,QAAQ,cAAW,CAAC;;IACjD,CAAC;IACH,uBAAC;AAAD,CAAC,AARD,CAAsC,KAAK,GAQ1C;AARY,4CAAgB"}
@@ -1,6 +0,0 @@
1
- declare class VariationConfigurationNotFound extends Error {
2
- message: string;
3
- type: string;
4
- constructor(message: string);
5
- }
6
- export default VariationConfigurationNotFound;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var VariationConfigurationNotFound = /** @class */ (function (_super) {
19
- __extends(VariationConfigurationNotFound, _super);
20
- function VariationConfigurationNotFound(message) {
21
- var _this = _super.call(this) || this;
22
- _this.type = 'VariationConfigurationNotFound';
23
- _this.message = message;
24
- return _this;
25
- }
26
- return VariationConfigurationNotFound;
27
- }(Error));
28
- exports.default = VariationConfigurationNotFound;
29
- //# sourceMappingURL=variationConfigurationNotFound.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"variationConfigurationNotFound.js","sourceRoot":"","sources":["../../src/exceptions/variationConfigurationNotFound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;IAA6C,kDAAK;IAIhD,wCAAY,OAAe;QAA3B,YACE,iBAAO,SAER;QALD,UAAI,GAAG,gCAAgC,CAAC;QAItC,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACzB,CAAC;IACH,qCAAC;AAAD,CAAC,AARD,CAA6C,KAAK,GAQjD;AAED,kBAAe,8BAA8B,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare class VisitorCodeNotValid extends Error {
2
- message: string;
3
- type: string;
4
- constructor(message: string);
5
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.VisitorCodeNotValid = void 0;
19
- var VisitorCodeNotValid = /** @class */ (function (_super) {
20
- __extends(VisitorCodeNotValid, _super);
21
- function VisitorCodeNotValid(message) {
22
- var _this = _super.call(this) || this;
23
- _this.type = 'VisitorCodeNotValid';
24
- _this.message = message;
25
- return _this;
26
- }
27
- return VisitorCodeNotValid;
28
- }(Error));
29
- exports.VisitorCodeNotValid = VisitorCodeNotValid;
30
- //# sourceMappingURL=visitorCodeNotValid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visitorCodeNotValid.js","sourceRoot":"","sources":["../../src/exceptions/visitorCodeNotValid.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;IAAyC,uCAAK;IAI5C,6BAAY,OAAe;QAA3B,YACE,iBAAO,SAER;QALD,UAAI,GAAG,qBAAqB,CAAC;QAI3B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IACzB,CAAC;IACH,0BAAC;AAAD,CAAC,AARD,CAAyC,KAAK,GAQ7C;AARY,kDAAmB"}
@@ -1,81 +0,0 @@
1
- /// <reference types="node" />
2
- import Experiment from '../configurations/experiment';
3
- import FeatureFlag from '../configurations/featureFlag';
4
- export interface SiteEnabledInterface {
5
- siteEnabled: boolean;
6
- }
7
- interface CampaignInterface extends SiteEnabledInterface {
8
- id: string;
9
- name: string;
10
- siteCode: string;
11
- siteId: string;
12
- respoolTime?: AutomationRespoolTimeInterface[];
13
- segment?: AutomationSegmentInterface;
14
- deviations: AutomationDeviationInterface[];
15
- variations: AutomationVariationsInterface[];
16
- type: 'HYBRID' | 'SERVER_SIDE';
17
- }
18
- export interface AutomationExperimentInterface extends CampaignInterface {
19
- status: 'ACTIVE';
20
- }
21
- export interface AutomationFeatureFlagInterface extends CampaignInterface {
22
- featureStatus: string;
23
- identificationKey: string;
24
- schedules: {
25
- dateStart?: string;
26
- dateEnd?: string;
27
- }[] | null;
28
- status: 'ACTIVE' | 'PAUSED';
29
- }
30
- export interface AutomationVariationsInterface {
31
- id: string;
32
- customJson: any;
33
- }
34
- export interface AutomationRespoolTimeInterface {
35
- variationId: string;
36
- value: number;
37
- }
38
- export interface AutomationSegmentInterface {
39
- conditionsData: ConditionsInterface;
40
- }
41
- export interface AutomationDeviationInterface {
42
- variationId: string;
43
- value: number;
44
- }
45
- export interface SDKConfiguration {
46
- visitor_data_maximum_size?: number;
47
- actions_configuration_refresh_interval?: number;
48
- environment?: string;
49
- }
50
- export interface ConfigurationInterface {
51
- settings: ConfigurationSettings;
52
- updateTime: number;
53
- experiments: ConfigurationExperimentsInterface;
54
- featureFlags: ConfigurationFeatureFlagsInterface;
55
- }
56
- export interface ConfigurationExperimentsInterface {
57
- [id: string]: Experiment;
58
- }
59
- export interface ConfigurationFeatureFlagsInterface {
60
- [id: string]: FeatureFlag;
61
- }
62
- export interface ConfigurationSettings {
63
- realTimeUpdate: boolean;
64
- }
65
- export interface CallbackInterface {
66
- success: () => void;
67
- error: () => void;
68
- timeout: NodeJS.Timeout;
69
- }
70
- export interface DataInterface {
71
- obtainFullPostTextLine: () => string;
72
- }
73
- export interface ConditionsInterface {
74
- firstLevel: any;
75
- firstLevelOrOperators: any;
76
- }
77
- export interface IteratorInterface {
78
- next: () => any;
79
- hasNext: () => boolean;
80
- }
81
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces/interfaces.ts"],"names":[],"mappings":""}
package/dist/nonce.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function obtainNonce(): string;
package/dist/nonce.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.obtainNonce = void 0;
4
- var HEXADECIMAL_ALPHABET = '0123456789ABCDEF';
5
- var NONCE_BYTE_LENGTH = 8;
6
- function obtainNonce() {
7
- var alphabetLength = HEXADECIMAL_ALPHABET.length;
8
- var result = '';
9
- for (var i = 0; i < NONCE_BYTE_LENGTH * 2; ++i) {
10
- var randomNumber = Math.floor(Math.random() * alphabetLength);
11
- result += HEXADECIMAL_ALPHABET.substring(randomNumber, randomNumber + 1);
12
- }
13
- return result;
14
- }
15
- exports.obtainNonce = obtainNonce;
16
- //# sourceMappingURL=nonce.js.map
package/dist/nonce.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"nonce.js","sourceRoot":"","sources":["../src/nonce.ts"],"names":[],"mappings":";;;AAAA,IAAM,oBAAoB,GAAG,kBAAkB,CAAC;AAChD,IAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,SAAgB,WAAW;IACzB,IAAM,cAAc,GAAG,oBAAoB,CAAC,MAAM,CAAC;IACnD,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE;QAC9C,IAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,cAAc,CAAC,CAAC;QAChE,MAAM,IAAI,oBAAoB,CAAC,SAAS,CAAC,YAAY,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC;KAC1E;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AARD,kCAQC"}