@splitsoftware/splitio-commons 1.6.2-rc.0 → 1.6.2-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/cjs/sdkFactory/index.js +1 -0
  2. package/cjs/services/splitApi.js +1 -0
  3. package/cjs/utils/key/index.js +1 -1
  4. package/cjs/utils/settingsValidation/index.js +1 -0
  5. package/esm/sdkFactory/index.js +1 -0
  6. package/esm/services/splitApi.js +1 -0
  7. package/esm/utils/key/index.js +1 -1
  8. package/esm/utils/settingsValidation/index.js +1 -0
  9. package/package.json +2 -2
  10. package/src/consent/sdkUserConsent.ts +4 -3
  11. package/src/dtos/types.ts +0 -8
  12. package/src/evaluator/Engine.ts +3 -3
  13. package/src/evaluator/combiners/and.ts +1 -1
  14. package/src/evaluator/combiners/ifelseif.ts +3 -3
  15. package/src/evaluator/condition/engineUtils.ts +1 -1
  16. package/src/evaluator/condition/index.ts +6 -6
  17. package/src/evaluator/index.ts +10 -10
  18. package/src/evaluator/matchers/all.ts +1 -1
  19. package/src/evaluator/matchers/between.ts +1 -1
  20. package/src/evaluator/matchers/boolean.ts +1 -1
  21. package/src/evaluator/matchers/cont_all.ts +1 -1
  22. package/src/evaluator/matchers/cont_any.ts +1 -1
  23. package/src/evaluator/matchers/cont_str.ts +1 -1
  24. package/src/evaluator/matchers/dependency.ts +1 -1
  25. package/src/evaluator/matchers/eq.ts +1 -1
  26. package/src/evaluator/matchers/eq_set.ts +1 -1
  27. package/src/evaluator/matchers/ew.ts +1 -1
  28. package/src/evaluator/matchers/gte.ts +1 -1
  29. package/src/evaluator/matchers/index.ts +1 -1
  30. package/src/evaluator/matchers/lte.ts +1 -1
  31. package/src/evaluator/matchers/part_of.ts +1 -1
  32. package/src/evaluator/matchers/segment.ts +1 -1
  33. package/src/evaluator/matchers/string.ts +1 -1
  34. package/src/evaluator/matchers/sw.ts +1 -1
  35. package/src/evaluator/matchers/whitelist.ts +1 -1
  36. package/src/evaluator/parser/index.ts +3 -3
  37. package/src/evaluator/types.ts +6 -6
  38. package/src/evaluator/value/index.ts +4 -4
  39. package/src/evaluator/value/sanitize.ts +4 -4
  40. package/src/integrations/ga/GaToSplit.ts +6 -6
  41. package/src/integrations/ga/SplitToGa.ts +10 -10
  42. package/src/integrations/ga/types.ts +4 -4
  43. package/src/integrations/pluggable.ts +3 -3
  44. package/src/integrations/types.ts +2 -2
  45. package/src/logger/index.ts +3 -3
  46. package/src/logger/sdkLogger.ts +1 -2
  47. package/src/logger/types.ts +0 -16
  48. package/src/readiness/sdkReadinessManager.ts +1 -1
  49. package/src/readiness/types.ts +2 -9
  50. package/src/sdkClient/client.ts +13 -13
  51. package/src/sdkClient/clientAttributesDecoration.ts +9 -9
  52. package/src/sdkClient/clientCS.ts +3 -4
  53. package/src/sdkClient/clientInputValidation.ts +15 -15
  54. package/src/sdkClient/sdkClient.ts +2 -2
  55. package/src/sdkClient/sdkClientMethod.ts +2 -2
  56. package/src/sdkClient/sdkClientMethodCS.ts +9 -9
  57. package/src/sdkClient/sdkClientMethodCSWithTT.ts +9 -9
  58. package/src/sdkFactory/index.ts +3 -2
  59. package/src/sdkFactory/types.ts +4 -4
  60. package/src/sdkManager/index.ts +5 -5
  61. package/src/services/splitApi.ts +1 -0
  62. package/src/storages/dataLoader.ts +2 -2
  63. package/src/storages/inLocalStorage/MySegmentsCacheInLocal.ts +1 -1
  64. package/src/storages/inLocalStorage/SplitsCacheInLocal.ts +2 -2
  65. package/src/storages/inLocalStorage/index.ts +3 -2
  66. package/src/storages/inMemory/EventsCacheInMemory.ts +4 -4
  67. package/src/storages/inRedis/EventsCacheInRedis.ts +4 -4
  68. package/src/storages/inRedis/ImpressionsCacheInRedis.ts +1 -1
  69. package/src/storages/inRedis/RedisAdapter.ts +1 -1
  70. package/src/storages/inRedis/SegmentsCacheInRedis.ts +1 -1
  71. package/src/storages/inRedis/SplitsCacheInRedis.ts +1 -1
  72. package/src/storages/inRedis/TelemetryCacheInRedis.ts +1 -1
  73. package/src/storages/inRedis/index.ts +3 -2
  74. package/src/storages/pluggable/EventsCachePluggable.ts +4 -4
  75. package/src/storages/pluggable/ImpressionsCachePluggable.ts +1 -1
  76. package/src/storages/pluggable/SegmentsCachePluggable.ts +1 -1
  77. package/src/storages/pluggable/SplitsCachePluggable.ts +1 -1
  78. package/src/storages/pluggable/TelemetryCachePluggable.ts +1 -1
  79. package/src/storages/pluggable/index.ts +3 -3
  80. package/src/storages/pluggable/wrapperAdapter.ts +1 -1
  81. package/src/storages/types.ts +42 -18
  82. package/src/sync/offline/LocalhostFromObject.ts +4 -4
  83. package/src/sync/offline/splitsParser/splitsParserFromSettings.ts +8 -8
  84. package/src/sync/polling/updaters/mySegmentsUpdater.ts +1 -1
  85. package/src/sync/polling/updaters/segmentChangesUpdater.ts +1 -1
  86. package/src/sync/polling/updaters/splitChangesUpdater.ts +1 -1
  87. package/src/sync/streaming/SSEHandler/index.ts +1 -1
  88. package/src/sync/streaming/UpdateWorkers/SegmentsUpdateWorker.ts +1 -1
  89. package/src/sync/streaming/UpdateWorkers/SplitsUpdateWorker.ts +1 -1
  90. package/src/sync/submitters/submitter.ts +1 -1
  91. package/src/sync/submitters/types.ts +2 -2
  92. package/src/sync/syncTask.ts +1 -1
  93. package/src/trackers/eventTracker.ts +3 -3
  94. package/src/trackers/impressionsTracker.ts +3 -3
  95. package/src/trackers/types.ts +4 -4
  96. package/src/{splitio.d.ts → types.d.ts} +826 -782
  97. package/src/utils/constants/index.ts +1 -1
  98. package/src/utils/inputValidation/apiKey.ts +1 -1
  99. package/src/utils/inputValidation/attribute.ts +1 -1
  100. package/src/utils/inputValidation/attributes.ts +3 -3
  101. package/src/utils/inputValidation/event.ts +1 -1
  102. package/src/utils/inputValidation/eventProperties.ts +3 -3
  103. package/src/utils/inputValidation/eventValue.ts +1 -1
  104. package/src/utils/inputValidation/isOperational.ts +1 -1
  105. package/src/utils/inputValidation/key.ts +3 -3
  106. package/src/utils/inputValidation/preloadedData.ts +3 -3
  107. package/src/utils/inputValidation/split.ts +1 -1
  108. package/src/utils/inputValidation/splitExistance.ts +1 -1
  109. package/src/utils/inputValidation/splits.ts +1 -1
  110. package/src/utils/inputValidation/trafficType.ts +1 -1
  111. package/src/utils/inputValidation/trafficTypeExistance.ts +1 -1
  112. package/src/utils/key/index.ts +9 -9
  113. package/src/utils/settingsValidation/consent.ts +1 -2
  114. package/src/utils/settingsValidation/impressionsMode.ts +3 -3
  115. package/src/utils/settingsValidation/index.ts +1 -0
  116. package/src/utils/settingsValidation/integrations/common.ts +1 -1
  117. package/src/utils/settingsValidation/integrations/configurable.ts +1 -1
  118. package/src/utils/settingsValidation/integrations/pluggable.ts +1 -2
  119. package/src/utils/settingsValidation/localhost/builtin.ts +1 -2
  120. package/src/utils/settingsValidation/localhost/pluggable.ts +1 -2
  121. package/src/utils/settingsValidation/logger/builtinLogger.ts +1 -2
  122. package/src/utils/settingsValidation/logger/pluggableLogger.ts +1 -2
  123. package/src/utils/settingsValidation/splitFilters.ts +7 -9
  124. package/src/utils/settingsValidation/storage/storageCS.ts +1 -2
  125. package/types/consent/sdkUserConsent.d.ts +2 -9
  126. package/types/dtos/types.d.ts +0 -6
  127. package/types/evaluator/Engine.d.ts +3 -3
  128. package/types/evaluator/combiners/and.d.ts +1 -1
  129. package/types/evaluator/combiners/ifelseif.d.ts +1 -1
  130. package/types/evaluator/condition/engineUtils.d.ts +1 -1
  131. package/types/evaluator/condition/index.d.ts +1 -1
  132. package/types/evaluator/index.d.ts +4 -4
  133. package/types/evaluator/matchers/all.d.ts +1 -1
  134. package/types/evaluator/matchers/between.d.ts +1 -1
  135. package/types/evaluator/matchers/boolean.d.ts +1 -1
  136. package/types/evaluator/matchers/cont_all.d.ts +1 -1
  137. package/types/evaluator/matchers/cont_any.d.ts +1 -1
  138. package/types/evaluator/matchers/cont_str.d.ts +1 -1
  139. package/types/evaluator/matchers/dependency.d.ts +1 -1
  140. package/types/evaluator/matchers/eq.d.ts +1 -1
  141. package/types/evaluator/matchers/eq_set.d.ts +1 -1
  142. package/types/evaluator/matchers/ew.d.ts +1 -1
  143. package/types/evaluator/matchers/gte.d.ts +1 -1
  144. package/types/evaluator/matchers/index.d.ts +1 -1
  145. package/types/evaluator/matchers/lte.d.ts +1 -1
  146. package/types/evaluator/matchers/part_of.d.ts +1 -1
  147. package/types/evaluator/matchers/segment.d.ts +1 -1
  148. package/types/evaluator/matchers/string.d.ts +1 -1
  149. package/types/evaluator/matchers/sw.d.ts +1 -1
  150. package/types/evaluator/matchers/whitelist.d.ts +1 -1
  151. package/types/evaluator/parser/index.d.ts +1 -1
  152. package/types/evaluator/types.d.ts +6 -6
  153. package/types/evaluator/value/index.d.ts +3 -3
  154. package/types/evaluator/value/sanitize.d.ts +3 -3
  155. package/types/integrations/ga/GaToSplit.d.ts +4 -4
  156. package/types/integrations/ga/SplitToGa.d.ts +4 -4
  157. package/types/integrations/ga/types.d.ts +4 -4
  158. package/types/integrations/types.d.ts +2 -2
  159. package/types/logger/browser/{debugLogger.d.ts → DebugLogger.d.ts} +0 -0
  160. package/types/logger/browser/{errorLogger.d.ts → ErrorLogger.d.ts} +0 -0
  161. package/types/logger/browser/{infoLogger.d.ts → InfoLogger.d.ts} +0 -0
  162. package/types/logger/browser/{warnLogger.d.ts → WarnLogger.d.ts} +0 -0
  163. package/types/logger/index.d.ts +3 -5
  164. package/types/logger/sdkLogger.d.ts +1 -2
  165. package/types/logger/types.d.ts +0 -11
  166. package/types/readiness/sdkReadinessManager.d.ts +1 -1
  167. package/types/readiness/types.d.ts +2 -8
  168. package/types/sdkClient/client.d.ts +2 -2
  169. package/types/sdkClient/clientAttributesDecoration.d.ts +8 -8
  170. package/types/sdkClient/clientCS.d.ts +2 -3
  171. package/types/sdkClient/clientInputValidation.d.ts +2 -2
  172. package/types/sdkClient/sdkClient.d.ts +2 -2
  173. package/types/sdkClient/sdkClientMethod.d.ts +2 -2
  174. package/types/sdkClient/sdkClientMethodCS.d.ts +2 -2
  175. package/types/sdkClient/sdkClientMethodCSWithTT.d.ts +2 -2
  176. package/types/sdkFactory/index.d.ts +2 -2
  177. package/types/sdkFactory/types.d.ts +6 -6
  178. package/types/sdkManager/index.d.ts +3 -3
  179. package/types/storages/dataLoader.d.ts +2 -2
  180. package/types/storages/inLocalStorage/MySegmentsCacheInLocal.d.ts +1 -1
  181. package/types/storages/inLocalStorage/SplitsCacheInLocal.d.ts +1 -2
  182. package/types/storages/inLocalStorage/index.d.ts +2 -2
  183. package/types/storages/inMemory/EventsCacheInMemory.d.ts +3 -3
  184. package/types/storages/inMemory/InMemoryStorage.d.ts +1 -1
  185. package/types/storages/inMemory/InMemoryStorageCS.d.ts +1 -1
  186. package/types/storages/inRedis/EventsCacheInRedis.d.ts +3 -3
  187. package/types/storages/inRedis/ImpressionsCacheInRedis.d.ts +1 -1
  188. package/types/storages/inRedis/RedisAdapter.d.ts +1 -1
  189. package/types/storages/inRedis/SegmentsCacheInRedis.d.ts +1 -1
  190. package/types/storages/inRedis/SplitsCacheInRedis.d.ts +1 -1
  191. package/types/storages/inRedis/TelemetryCacheInRedis.d.ts +1 -1
  192. package/types/storages/inRedis/index.d.ts +2 -2
  193. package/types/storages/pluggable/EventsCachePluggable.d.ts +3 -3
  194. package/types/storages/pluggable/ImpressionsCachePluggable.d.ts +1 -1
  195. package/types/storages/pluggable/SegmentsCachePluggable.d.ts +1 -1
  196. package/types/storages/pluggable/SplitsCachePluggable.d.ts +1 -1
  197. package/types/storages/pluggable/TelemetryCachePluggable.d.ts +1 -1
  198. package/types/storages/pluggable/index.d.ts +3 -2
  199. package/types/storages/pluggable/wrapperAdapter.d.ts +1 -1
  200. package/types/storages/types.d.ts +42 -16
  201. package/types/sync/offline/LocalhostFromObject.d.ts +2 -2
  202. package/types/sync/polling/updaters/mySegmentsUpdater.d.ts +1 -1
  203. package/types/sync/polling/updaters/segmentChangesUpdater.d.ts +1 -1
  204. package/types/sync/polling/updaters/splitChangesUpdater.d.ts +1 -1
  205. package/types/sync/streaming/SSEHandler/index.d.ts +1 -1
  206. package/types/sync/streaming/UpdateWorkers/SegmentsUpdateWorker.d.ts +1 -1
  207. package/types/sync/streaming/UpdateWorkers/SplitsUpdateWorker.d.ts +1 -1
  208. package/types/sync/submitters/submitter.d.ts +1 -1
  209. package/types/sync/submitters/types.d.ts +2 -2
  210. package/types/sync/syncTask.d.ts +1 -1
  211. package/types/trackers/types.d.ts +4 -4
  212. package/types/utils/constants/index.d.ts +1 -1
  213. package/types/utils/inputValidation/apiKey.d.ts +1 -1
  214. package/types/utils/inputValidation/attribute.d.ts +1 -1
  215. package/types/utils/inputValidation/attributes.d.ts +3 -3
  216. package/types/utils/inputValidation/event.d.ts +1 -1
  217. package/types/utils/inputValidation/eventProperties.d.ts +3 -3
  218. package/types/utils/inputValidation/eventValue.d.ts +1 -1
  219. package/types/utils/inputValidation/isOperational.d.ts +1 -1
  220. package/types/utils/inputValidation/key.d.ts +3 -3
  221. package/types/utils/inputValidation/preloadedData.d.ts +3 -3
  222. package/types/utils/inputValidation/split.d.ts +1 -1
  223. package/types/utils/inputValidation/splitExistance.d.ts +1 -1
  224. package/types/utils/inputValidation/splits.d.ts +1 -1
  225. package/types/utils/inputValidation/trafficType.d.ts +1 -1
  226. package/types/utils/inputValidation/trafficTypeExistance.d.ts +1 -1
  227. package/types/utils/key/index.d.ts +4 -4
  228. package/types/utils/settingsValidation/consent.d.ts +1 -2
  229. package/types/utils/settingsValidation/impressionsMode.d.ts +3 -3
  230. package/types/utils/settingsValidation/integrations/common.d.ts +1 -1
  231. package/types/utils/settingsValidation/integrations/configurable.d.ts +1 -1
  232. package/types/utils/settingsValidation/integrations/pluggable.d.ts +1 -2
  233. package/types/utils/settingsValidation/localhost/builtin.d.ts +1 -2
  234. package/types/utils/settingsValidation/localhost/pluggable.d.ts +1 -2
  235. package/types/utils/settingsValidation/logger/builtinLogger.d.ts +1 -1
  236. package/types/utils/settingsValidation/logger/pluggableLogger.d.ts +1 -1
  237. package/types/utils/settingsValidation/splitFilters.d.ts +1 -2
  238. package/types/utils/settingsValidation/storage/storageCS.d.ts +2 -3
  239. package/cjs/types.js +0 -2
  240. package/esm/types.js +0 -1
  241. package/src/types.ts +0 -1263
  242. package/types/integrations/ga/GaToSplitPlugin.d.ts +0 -3
  243. package/types/integrations/ga/SplitToGaPlugin.d.ts +0 -4
  244. package/types/integrations/ga/autoRequire.d.ts +0 -4
  245. package/types/logger/codes.d.ts +0 -2
  246. package/types/logger/codesConstants.d.ts +0 -117
  247. package/types/logger/codesConstantsBrowser.d.ts +0 -2
  248. package/types/logger/codesConstantsNode.d.ts +0 -14
  249. package/types/logger/codesDebug.d.ts +0 -1
  250. package/types/logger/codesDebugBrowser.d.ts +0 -1
  251. package/types/logger/codesDebugNode.d.ts +0 -1
  252. package/types/logger/codesError.d.ts +0 -1
  253. package/types/logger/codesErrorNode.d.ts +0 -1
  254. package/types/logger/codesInfo.d.ts +0 -1
  255. package/types/logger/codesWarn.d.ts +0 -1
  256. package/types/logger/codesWarnNode.d.ts +0 -1
  257. package/types/logger/debugLogger.d.ts +0 -2
  258. package/types/logger/errorLogger.d.ts +0 -2
  259. package/types/logger/infoLogger.d.ts +0 -2
  260. package/types/logger/messages/debugBrowser.d.ts +0 -1
  261. package/types/logger/messages/debugNode.d.ts +0 -1
  262. package/types/logger/messages/errorNode.d.ts +0 -1
  263. package/types/logger/messages/warnNode.d.ts +0 -1
  264. package/types/logger/noopLogger.d.ts +0 -2
  265. package/types/logger/warnLogger.d.ts +0 -2
  266. package/types/sdkClient/types.d.ts +0 -18
  267. package/types/sdkFactory/userConsentProps.d.ts +0 -6
  268. package/types/sdkManager/sdkManagerMethod.d.ts +0 -6
  269. package/types/storages/getRegisteredSegments.d.ts +0 -10
  270. package/types/storages/inMemory/CountsCacheInMemory.d.ts +0 -20
  271. package/types/storages/inMemory/LatenciesCacheInMemory.d.ts +0 -20
  272. package/types/storages/inMemory/index.d.ts +0 -10
  273. package/types/storages/inRedis/CountsCacheInRedis.d.ts +0 -9
  274. package/types/storages/inRedis/LatenciesCacheInRedis.d.ts +0 -9
  275. package/types/storages/parseSegments.d.ts +0 -6
  276. package/types/sync/offline/LocalhostFromFile.d.ts +0 -2
  277. package/types/sync/offline/splitsParser/splitsParserFromFile.d.ts +0 -2
  278. package/types/sync/polling/syncTasks/splitsSyncTask.copy.d.ts +0 -35
  279. package/types/sync/polling/syncTasks/splitsSyncTask.morelikeoriginal.d.ts +0 -35
  280. package/types/sync/streaming/AuthClient/indexV1.d.ts +0 -12
  281. package/types/sync/streaming/AuthClient/indexV2.d.ts +0 -8
  282. package/types/sync/streaming/pushManagerCS.d.ts +0 -1
  283. package/types/sync/streaming/pushManagerNoUsers.d.ts +0 -13
  284. package/types/sync/streaming/pushManagerSS.d.ts +0 -1
  285. package/types/sync/submitters/eventsSyncTask.d.ts +0 -8
  286. package/types/sync/submitters/impressionCountsSyncTask.d.ts +0 -13
  287. package/types/sync/submitters/impressionsSyncTask.d.ts +0 -14
  288. package/types/sync/submitters/metricsSyncTask.d.ts +0 -12
  289. package/types/sync/submitters/submitterSyncTask.d.ts +0 -10
  290. package/types/sync/submitters/telemetrySyncTask.d.ts +0 -0
  291. package/types/sync/submitters/uniqueKeysSubmitter.d.ts +0 -13
  292. package/types/sync/syncManagerFromFile.d.ts +0 -2
  293. package/types/sync/syncManagerFromObject.d.ts +0 -2
  294. package/types/sync/syncManagerOffline.d.ts +0 -9
  295. package/types/sync/syncTaskComposite.d.ts +0 -5
  296. package/types/trackers/strategy/strategyDebug.d.ts +0 -9
  297. package/types/trackers/strategy/strategyNone.d.ts +0 -10
  298. package/types/trackers/strategy/strategyOptimized.d.ts +0 -11
  299. package/types/trackers/telemetryRecorder.d.ts +0 -0
  300. package/types/trackers/uniqueKeysTracker.d.ts +0 -13
  301. package/types/types.d.ts +0 -1261
  302. package/types/utils/EventEmitter.d.ts +0 -4
  303. package/types/utils/consent.d.ts +0 -2
  304. package/types/utils/lang/errors.d.ts +0 -10
  305. package/types/utils/murmur3/commons.d.ts +0 -12
  306. package/types/utils/settingsValidation/buildMetadata.d.ts +0 -3
  307. package/types/utils/settingsValidation/localhost/index.d.ts +0 -9
  308. package/types/utils/settingsValidation/logger.d.ts +0 -11
  309. package/types/utils/settingsValidation/runtime/browser.d.ts +0 -2
  310. package/types/utils/settingsValidation/runtime/node.d.ts +0 -2
  311. package/types/utils/settingsValidation/userConsent.d.ts +0 -5
  312. package/types/utils/timeTracker/index.d.ts +0 -1
@@ -1,3 +0,0 @@
1
- import { IIntegrationFactoryParams } from '../types';
2
- import { GoogleAnalyticsToSplitOptions } from './types';
3
- export declare function GoogleAnalyticsToSplit(options: GoogleAnalyticsToSplitOptions): (params: IIntegrationFactoryParams) => void;
@@ -1,4 +0,0 @@
1
- import { IIntegrationFactoryParams } from '../types';
2
- import SplitToGa from './SplitToGa';
3
- import { SplitToGoogleAnalyticsOptions } from './types';
4
- export declare function SplitToGoogleAnalytics(options?: SplitToGoogleAnalyticsOptions): (params: IIntegrationFactoryParams) => SplitToGa;
@@ -1,4 +0,0 @@
1
- /**
2
- * Auto-require script to use with GaToSplit integration
3
- */
4
- export declare function autoRequire(): void;
@@ -1,2 +0,0 @@
1
- import { ICodes } from './types';
2
- export declare const codes: ICodes;
@@ -1,117 +0,0 @@
1
- export declare const DEBUG_0 = 0;
2
- export declare const DEBUG_1 = 1;
3
- export declare const DEBUG_2 = 2;
4
- export declare const DEBUG_3 = 3;
5
- export declare const DEBUG_4 = 4;
6
- export declare const DEBUG_5 = 5;
7
- export declare const DEBUG_6 = 6;
8
- export declare const DEBUG_7 = 7;
9
- export declare const DEBUG_8 = 8;
10
- export declare const DEBUG_9 = 9;
11
- export declare const DEBUG_10 = 10;
12
- export declare const DEBUG_11 = 11;
13
- export declare const DEBUG_12 = 12;
14
- export declare const DEBUG_13 = 13;
15
- export declare const DEBUG_14 = 14;
16
- export declare const DEBUG_15 = 15;
17
- export declare const DEBUG_16 = 16;
18
- export declare const DEBUG_17 = 17;
19
- export declare const DEBUG_18 = 18;
20
- export declare const DEBUG_19 = 19;
21
- export declare const DEBUG_20 = 20;
22
- export declare const DEBUG_21 = 21;
23
- export declare const DEBUG_22 = 22;
24
- export declare const DEBUG_23 = 23;
25
- export declare const DEBUG_24 = 24;
26
- export declare const DEBUG_25 = 25;
27
- export declare const DEBUG_31 = 31;
28
- export declare const DEBUG_32 = 32;
29
- export declare const DEBUG_33 = 33;
30
- export declare const DEBUG_36 = 36;
31
- export declare const DEBUG_42 = 42;
32
- export declare const DEBUG_43 = 43;
33
- export declare const DEBUG_44 = 44;
34
- export declare const DEBUG_45 = 45;
35
- export declare const DEBUG_46 = 46;
36
- export declare const DEBUG_47 = 47;
37
- export declare const DEBUG_48 = 48;
38
- export declare const DEBUG_49 = 49;
39
- export declare const DEBUG_50 = 50;
40
- export declare const DEBUG_51 = 51;
41
- export declare const INFO_0 = 100;
42
- export declare const INFO_1 = 101;
43
- export declare const INFO_2 = 102;
44
- export declare const INFO_3 = 103;
45
- export declare const INFO_4 = 104;
46
- export declare const INFO_5 = 105;
47
- export declare const INFO_6 = 106;
48
- export declare const INFO_7 = 107;
49
- export declare const INFO_8 = 108;
50
- export declare const INFO_9 = 109;
51
- export declare const INFO_10 = 110;
52
- export declare const INFO_11 = 111;
53
- export declare const INFO_12 = 112;
54
- export declare const INFO_13 = 113;
55
- export declare const INFO_14 = 114;
56
- export declare const INFO_15 = 115;
57
- export declare const INFO_16 = 116;
58
- export declare const INFO_17 = 117;
59
- export declare const INFO_18 = 118;
60
- export declare const INFO_19 = 119;
61
- export declare const INFO_20 = 120;
62
- export declare const INFO_21 = 121;
63
- export declare const WARN_0 = 200;
64
- export declare const WARN_1 = 201;
65
- export declare const WARN_2 = 202;
66
- export declare const WARN_4 = 204;
67
- export declare const WARN_5 = 205;
68
- export declare const WARN_6 = 206;
69
- export declare const WARN_7 = 207;
70
- export declare const WARN_8 = 208;
71
- export declare const WARN_9 = 209;
72
- export declare const WARN_10 = 210;
73
- export declare const WARN_11 = 211;
74
- export declare const WARN_12 = 212;
75
- export declare const WARN_13 = 213;
76
- export declare const WARN_14 = 214;
77
- export declare const WARN_15 = 215;
78
- export declare const WARN_17 = 217;
79
- export declare const WARN_18 = 218;
80
- export declare const WARN_19 = 219;
81
- export declare const WARN_20 = 220;
82
- export declare const WARN_21 = 221;
83
- export declare const WARN_22 = 222;
84
- export declare const WARN_23 = 223;
85
- export declare const WARN_24 = 224;
86
- export declare const WARN_25 = 225;
87
- export declare const ERROR_0 = 300;
88
- export declare const ERROR_2 = 302;
89
- export declare const ERROR_3 = 303;
90
- export declare const ERROR_4 = 304;
91
- export declare const ERROR_5 = 305;
92
- export declare const ERROR_7 = 307;
93
- export declare const ERROR_9 = 309;
94
- export declare const ERROR_10 = 310;
95
- export declare const ERROR_11 = 311;
96
- export declare const ERROR_12 = 312;
97
- export declare const ERROR_13 = 313;
98
- export declare const ERROR_14 = 314;
99
- export declare const ERROR_15 = 315;
100
- export declare const ERROR_16 = 316;
101
- export declare const ERROR_17 = 317;
102
- export declare const ERROR_18 = 318;
103
- export declare const ERROR_19 = 319;
104
- export declare const ERROR_20 = 320;
105
- export declare const ERROR_21 = 321;
106
- export declare const ERROR_22 = 322;
107
- export declare const ERROR_23 = 323;
108
- export declare const ERROR_24 = 324;
109
- export declare const ERROR_25 = 325;
110
- export declare const ERROR_26 = 326;
111
- export declare const ERROR_32 = 332;
112
- export declare const ERROR_33 = 333;
113
- export declare const ERROR_34 = 334;
114
- export declare const ERROR_35 = 335;
115
- export declare const ERROR_36 = 336;
116
- export declare const ERROR_37 = 337;
117
- export declare const ERROR_38 = 338;
@@ -1,2 +0,0 @@
1
- export declare const DEBUG_26 = 26;
2
- export declare const DEBUG_27 = 27;
@@ -1,14 +0,0 @@
1
- export declare const DEBUG_28 = 28;
2
- export declare const DEBUG_29 = 29;
3
- export declare const DEBUG_30 = 30;
4
- export declare const ERROR_1 = 301;
5
- export declare const DEBUG_39 = 39;
6
- export declare const DEBUG_40 = 40;
7
- export declare const DEBUG_41 = 41;
8
- export declare const ERROR_8 = 308;
9
- export declare const DEBUG_34 = 34;
10
- export declare const DEBUG_35 = 35;
11
- export declare const ERROR_6 = 306;
12
- export declare const WARN_3 = 203;
13
- export declare const DEBUG_37 = 37;
14
- export declare const DEBUG_38 = 38;
@@ -1 +0,0 @@
1
- export declare const codesDebug: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesDebugBrowser: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesDebugNode: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesError: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesErrorNode: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesInfo: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesWarn: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesWarnNode: [number, string][];
@@ -1,2 +0,0 @@
1
- import { Logger } from '.';
2
- export declare const debugLogger: Logger;
@@ -1,2 +0,0 @@
1
- import { Logger } from '.';
2
- export declare const errorLogger: Logger;
@@ -1,2 +0,0 @@
1
- import { Logger } from '.';
2
- export declare const infoLogger: Logger;
@@ -1 +0,0 @@
1
- export declare const codesDebugBrowser: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesDebugNode: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesErrorNode: [number, string][];
@@ -1 +0,0 @@
1
- export declare const codesWarnNode: [number, string][];
@@ -1,2 +0,0 @@
1
- import { ILogger } from './types';
2
- export declare const noopLogger: ILogger;
@@ -1,2 +0,0 @@
1
- import { Logger } from '.';
2
- export declare const warnLogger: Logger;
@@ -1,18 +0,0 @@
1
- import { ISignalListener } from '../listeners/types';
2
- import { ISdkReadinessManager } from '../readiness/types';
3
- import { IStorageAsync, IStorageSync } from '../storages/types';
4
- import { ISyncManager } from '../sync/types';
5
- import { IEventTracker, IImpressionsTracker } from '../trackers/types';
6
- import { ISettings } from '../types';
7
- export interface IClientFactoryParams {
8
- storage: IStorageSync | IStorageAsync;
9
- sdkReadinessManager: ISdkReadinessManager;
10
- settings: ISettings;
11
- impressionsTracker: IImpressionsTracker;
12
- eventTracker: IEventTracker;
13
- }
14
- export interface ISdkClientFactoryParams extends IClientFactoryParams {
15
- signalListener?: ISignalListener;
16
- syncManager?: ISyncManager;
17
- sharedClient?: boolean;
18
- }
@@ -1,6 +0,0 @@
1
- import { ISyncManager } from '../sync/types';
2
- import { ISettings } from '../types';
3
- export declare function userConsentProps(settings: ISettings, syncManager?: ISyncManager): {
4
- setUserConsent(consent: unknown): boolean;
5
- getUserConsent(): import("../types").ConsentStatus | undefined;
6
- };
@@ -1,6 +0,0 @@
1
- import { ISdkClientFactoryParams } from '../sdkClient/types';
2
- import { SplitIO } from '../types';
3
- /**
4
- * Factory of client method for server-side SDKs (ISDK and IAsyncSDK)
5
- */
6
- export declare function sdkManagerMethodFactory(params: ISdkClientFactoryParams): () => SplitIO.IManager | SplitIO.IAsyncManager;
@@ -1,10 +0,0 @@
1
- import { ISplit } from '../dtos/types';
2
- /**
3
- * Collect segments from a raw split definition.
4
- * Exported for testing purposes.
5
- */
6
- export declare function _parseSegments({ conditions }: ISplit): import("../utils/lang/sets").ISet<string>;
7
- /**
8
- * Computes the set of segments used by splits.
9
- */
10
- export declare function getRegisteredSegments(splitDefs: string[]): string[];
@@ -1,20 +0,0 @@
1
- import { ICountsCacheSync } from '../types';
2
- export declare class CountsCacheInMemory implements ICountsCacheSync {
3
- private counters;
4
- /**
5
- * Add counts.
6
- */
7
- track(metricName: string): boolean;
8
- /**
9
- * Clear the collector
10
- */
11
- clear(): void;
12
- /**
13
- * Get the collected data, used as payload for posting.
14
- */
15
- state(): Record<string, number>;
16
- /**
17
- * Check if the cache is empty.
18
- */
19
- isEmpty(): boolean;
20
- }
@@ -1,20 +0,0 @@
1
- import { ILatenciesCacheSync } from '../types';
2
- export declare class LatenciesCacheInMemory implements ILatenciesCacheSync {
3
- private counters;
4
- /**
5
- * Add latencies.
6
- */
7
- track(metricName: string, latency: number): boolean;
8
- /**
9
- * Clear the collector
10
- */
11
- clear(): void;
12
- /**
13
- * Get the collected data, used as payload for posting.
14
- */
15
- state(): Record<string, number[]>;
16
- /**
17
- * Check if the cache is empty.
18
- */
19
- isEmpty(): boolean;
20
- }
@@ -1,10 +0,0 @@
1
- import { IStorageFactoryParams, IStorageSync } from '../types';
2
- /**
3
- * InMemory storage factory for standalone server-side SplitFactory
4
- *
5
- * @param params parameters required by EventsCacheSync
6
- */
7
- export declare function InMemoryStorageFactory(params: IStorageFactoryParams): IStorageSync;
8
- export declare namespace InMemoryStorageFactory {
9
- var type: import("../types").StorageType;
10
- }
@@ -1,9 +0,0 @@
1
- import { ICountsCacheAsync } from '../types';
2
- import { KeyBuilderSS } from '../KeyBuilderSS';
3
- import { Redis } from 'ioredis';
4
- export declare class CountsCacheInRedis implements ICountsCacheAsync {
5
- private readonly redis;
6
- private readonly keys;
7
- constructor(keys: KeyBuilderSS, redis: Redis);
8
- track(metricName: string): Promise<boolean>;
9
- }
@@ -1,9 +0,0 @@
1
- import { ILatenciesCacheAsync } from '../types';
2
- import { KeyBuilderSS } from '../KeyBuilderSS';
3
- import { Redis } from 'ioredis';
4
- export declare class LatenciesCacheInRedis implements ILatenciesCacheAsync {
5
- private readonly redis;
6
- private readonly keys;
7
- constructor(keys: KeyBuilderSS, redis: Redis);
8
- track(metricName: string, latency: number): Promise<boolean>;
9
- }
@@ -1,6 +0,0 @@
1
- import { ISplit } from '../dtos/types';
2
- import { ISet } from '../utils/lang/sets';
3
- /**
4
- * Collect segments from a list of splits.
5
- */
6
- export declare function parseSegments(splits: ISplit[]): ISet<string>;
@@ -1,2 +0,0 @@
1
- import { SplitIO } from '../../types';
2
- export declare function LocalhostFromFile(): SplitIO.LocalhostFactory;
@@ -1,2 +0,0 @@
1
- import { ISplitsParser } from './types';
2
- export declare function splitsParserFromFileFactory(): ISplitsParser;
@@ -1,35 +0,0 @@
1
- import { ISet } from '../../../utils/lang/sets';
2
- import { ISegmentsCacheSync, ISplitsCacheSync, IStorageSync } from '../../../storages/types';
3
- import { ISplitChangesFetcher } from '../fetchers/types';
4
- import { ISplit } from '../../../dtos/types';
5
- import { IReadinessManager, ISplitsEventEmitter } from '../../../readiness/types';
6
- import { ISplitsSyncTask } from '../types';
7
- import { IFetchSplitChanges } from '../../../services/types';
8
- import { ISettings } from '../../../types';
9
- declare type ISplitChangesUpdater = (noCache?: boolean) => Promise<boolean>;
10
- /**
11
- * Collect segments from a raw split definition.
12
- * Exported for testing purposes.
13
- */
14
- export declare function parseSegments({ conditions }: ISplit): ISet<string>;
15
- interface ISplitMutations {
16
- added: [string, string][];
17
- removed: string[];
18
- segments: string[];
19
- }
20
- /**
21
- * Given the list of splits from /splitChanges endpoint, it returns the mutations,
22
- * i.e., an object with added splits, removed splits and used segments.
23
- * Exported for testing purposes.
24
- */
25
- export declare function computeSplitsMutation(entries: ISplit[]): ISplitMutations;
26
- /**
27
- * factory of SplitChanges updater (a.k.a, SplitsSyncTask), a task that:
28
- * - fetches split changes using `splitChangesFetcher`
29
- * - updates `splitsCache`
30
- * - uses `splitsEventEmitter` to emit events related to split data updates
31
- * Exported for testing purposes.
32
- */
33
- export declare function splitChangesUpdaterFactory(splitChangesFetcher: ISplitChangesFetcher, splitsCache: ISplitsCacheSync, segmentsCache: ISegmentsCacheSync, splitsEventEmitter: ISplitsEventEmitter, requestTimeoutBeforeReady: number, retriesOnFailureBeforeReady: number): ISplitChangesUpdater;
34
- export default function splitsSyncTaskFactory(fetchSplitChanges: IFetchSplitChanges, storage: IStorageSync, readiness: IReadinessManager, settings: ISettings): ISplitsSyncTask;
35
- export {};
@@ -1,35 +0,0 @@
1
- import { ISet } from '../../../utils/lang/sets';
2
- import { ISegmentsCacheSync, ISplitsCacheSync, IStorageSync } from '../../../storages/types';
3
- import { ISplitChangesFetcher } from '../fetchers/types';
4
- import { ISplit } from '../../../dtos/types';
5
- import { IReadinessManager, ISplitsEventEmitter } from '../../../readiness/types';
6
- import { ISplitsSyncTask } from '../types';
7
- import { IFetchSplitChanges } from '../../../services/types';
8
- import { ISettings } from '../../../types';
9
- declare type ISplitChangesUpdater = (noCache?: boolean) => Promise<boolean>;
10
- /**
11
- * Collect segments from a raw split definition.
12
- * Exported for testing purposes.
13
- */
14
- export declare function parseSegments({ conditions }: ISplit): ISet<string>;
15
- interface ISplitMutations {
16
- added: [string, string][];
17
- removed: string[];
18
- segments: string[];
19
- }
20
- /**
21
- * Given the list of splits from /splitChanges endpoint, it returns the mutations,
22
- * i.e., an object with added splits, removed splits and used segments.
23
- * Exported for testing purposes.
24
- */
25
- export declare function computeSplitsMutation(entries: ISplit[]): ISplitMutations;
26
- /**
27
- * factory of SplitChanges updater (a.k.a, SplitsSyncTask), a task that:
28
- * - fetches split changes using `splitChangesFetcher`
29
- * - updates `splitsCache`
30
- * - uses `splitsEventEmitter` to emit events related to split data updates
31
- * Exported for testing purposes.
32
- */
33
- export declare function splitChangesUpdaterFactory(splitChangesFetcher: ISplitChangesFetcher, splitsCache: ISplitsCacheSync, segmentsCache: ISegmentsCacheSync, splitsEventEmitter: ISplitsEventEmitter, requestTimeoutBeforeReady: number, retriesOnFailureBeforeReady: number): ISplitChangesUpdater;
34
- export default function splitsSyncTaskFactory(fetchSplitChanges: IFetchSplitChanges, storage: IStorageSync, readiness: IReadinessManager, settings: ISettings): ISplitsSyncTask;
35
- export {};
@@ -1,12 +0,0 @@
1
- import { IFetchAuth } from '../../../services/types';
2
- import { IAuthenticate } from './types';
3
- /**
4
- * Factory of authentication function.
5
- *
6
- * @param fetchAuth `SplitAPI.fetchAuth` endpoint
7
- */
8
- export declare function authenticateFactory(fetchAuth: IFetchAuth): IAuthenticate;
9
- /**
10
- * Returns the hash of a given user key
11
- */
12
- export declare function hashUserKey(userKey: string): string;
@@ -1,8 +0,0 @@
1
- import { IFetchAuthV2 } from '../../../services/types';
2
- import { IAuthenticateV2 } from './types';
3
- /**
4
- * Factory of authentication function.
5
- *
6
- * @param fetchAuth `SplitAPI.fetchAuth` endpoint
7
- */
8
- export declare function authenticateFactory(fetchAuthV2: IFetchAuthV2): IAuthenticateV2;
@@ -1 +0,0 @@
1
- export declare const pushManagerCSFactory: (params: import("../types").ISyncManagerFactoryParams, pollingManager: import("../polling/types").IPollingManager) => import("./types").IPushManager | undefined;
@@ -1,13 +0,0 @@
1
- import { IPushManagerCS } from './types';
2
- import { IStorageSync } from '../../storages/types';
3
- import { IReadinessManager } from '../../readiness/types';
4
- import { IPollingManager } from '../polling/types';
5
- import { IFetchAuthV2 } from '../../services/types';
6
- import { ISettings } from '../../types';
7
- import { IPlatform } from '../../sdkFactory/types';
8
- /**
9
- * PushManager factory:
10
- * - for server-side if key is not provided in settings.
11
- * - for client-side, with support for multiple clients, if key is provided in settings
12
- */
13
- export default function pushManagerFactory(pollingManager: IPollingManager, storage: IStorageSync, readiness: IReadinessManager, fetchAuthV2: IFetchAuthV2, platform: IPlatform, settings: ISettings): IPushManagerCS | undefined;
@@ -1 +0,0 @@
1
- export declare const pushManagerSSFactory: (params: import("../types").ISyncManagerFactoryParams, pollingManager: import("../polling/types").IPollingManager) => import("./types").IPushManager | undefined;
@@ -1,8 +0,0 @@
1
- import { IEventsCacheSync } from '../../storages/types';
2
- import { IPostEventsBulk } from '../../services/types';
3
- import { ISyncTask, ITimeTracker } from '../types';
4
- import { ILogger } from '../../logger/types';
5
- /**
6
- * Sync task that periodically posts tracked events
7
- */
8
- export declare function eventsSyncTaskFactory(log: ILogger, postEventsBulk: IPostEventsBulk, eventsCache: IEventsCacheSync, eventsPushRate: number, eventsFirstPushWindow: number, latencyTracker?: ITimeTracker): ISyncTask;
@@ -1,13 +0,0 @@
1
- import { ISyncTask, ITimeTracker } from '../types';
2
- import { IPostTestImpressionsCount } from '../../services/types';
3
- import { IImpressionCountsCacheSync } from '../../storages/types';
4
- import { ImpressionCountsPayload } from './types';
5
- import { ILogger } from '../../logger/types';
6
- /**
7
- * Converts `impressionCounts` data from cache into request payload.
8
- */
9
- export declare function fromImpressionCountsCollector(impressionsCount: Record<string, number>): ImpressionCountsPayload;
10
- /**
11
- * Sync task that periodically posts impression counts
12
- */
13
- export declare function impressionCountsSyncTaskFactory(log: ILogger, postTestImpressionsCount: IPostTestImpressionsCount, impressionCountsCache: IImpressionCountsCacheSync, latencyTracker?: ITimeTracker): ISyncTask;
@@ -1,14 +0,0 @@
1
- import { ISyncTask, ITimeTracker } from '../types';
2
- import { IPostTestImpressionsBulk } from '../../services/types';
3
- import { IImpressionsCacheSync } from '../../storages/types';
4
- import { ImpressionDTO } from '../../types';
5
- import { ImpressionsPayload } from './types';
6
- import { ILogger } from '../../logger/types';
7
- /**
8
- * Converts `impressions` data from cache into request payload.
9
- */
10
- export declare function fromImpressionsCollector(sendLabels: boolean, data: ImpressionDTO[]): ImpressionsPayload;
11
- /**
12
- * Sync task that periodically posts impressions data
13
- */
14
- export declare function impressionsSyncTaskFactory(log: ILogger, postTestImpressionsBulk: IPostTestImpressionsBulk, impressionsCache: IImpressionsCacheSync, impressionsRefreshRate: number, sendLabels?: boolean, latencyTracker?: ITimeTracker): ISyncTask;
@@ -1,12 +0,0 @@
1
- import { ICountsCacheSync, ILatenciesCacheSync } from '../../storages/types';
2
- import { IPostMetricsCounters, IPostMetricsTimes } from '../../services/types';
3
- import { ISyncTask, ITimeTracker } from '../types';
4
- import { ILogger } from '../../logger/types';
5
- /**
6
- * Sync task that periodically posts telemetry counts
7
- */
8
- export declare function countsSyncTaskFactory(log: ILogger, postMetricsCounters: IPostMetricsCounters, countsCache: ICountsCacheSync, metricsRefreshRate: number, latencyTracker?: ITimeTracker): ISyncTask;
9
- /**
10
- * Sync task that periodically posts telemetry latencies
11
- */
12
- export declare function latenciesSyncTaskFactory(log: ILogger, postMetricsLatencies: IPostMetricsTimes, latenciesCache: ILatenciesCacheSync, metricsRefreshRate: number, latencyTracker?: ITimeTracker): ISyncTask;
@@ -1,10 +0,0 @@
1
- import { ISyncTask, ITimeTracker } from '../types';
2
- import { IRecorderCacheProducerSync } from '../../storages/types';
3
- import { ILogger } from '../../logger/types';
4
- import { IResponse } from '../../services/types';
5
- /**
6
- * Base function to create submitter sync tasks, such as ImpressionsSyncTask and EventsSyncTask
7
- */
8
- export declare function submitterSyncTaskFactory<TState extends {
9
- length?: number;
10
- }>(log: ILogger, postClient: (body: string) => Promise<IResponse>, sourceCache: IRecorderCacheProducerSync<TState>, postRate: number, dataName: string, latencyTracker?: ITimeTracker, fromCacheToPayload?: (cacheData: TState) => any, maxRetries?: number, debugLogs?: boolean): ISyncTask<[], void>;
File without changes
@@ -1,13 +0,0 @@
1
- import { ISdkFactoryContextSync } from '../../sdkFactory/types';
2
- import { ISet } from '../../utils/lang/sets';
3
- import { UniqueKeysPayload } from './types';
4
- /**
5
- * Converts `uniqueKeys` data from cache into request payload.
6
- */
7
- export declare function fromUniqueKeysCollector(uniqueKeys: {
8
- [featureName: string]: ISet<string>;
9
- }): UniqueKeysPayload;
10
- /**
11
- * Submitter that periodically posts impression counts
12
- */
13
- export declare function uniqueKeysSubmitterFactory(params: ISdkFactoryContextSync): import("../types").ISyncTask<[], void>;
@@ -1,2 +0,0 @@
1
- import { SplitIO } from '../types';
2
- export declare function LocalhostFromFile(): SplitIO.LocalhostFactory;
@@ -1,2 +0,0 @@
1
- import { SplitIO } from '../types';
2
- export declare function LocalhostFromObject(): SplitIO.LocalhostFactory;
@@ -1,9 +0,0 @@
1
- import { ISyncManagerCS, ISyncManagerFactoryParams } from './types';
2
- import { ISplitsParser } from './offline/splitsParser/types';
3
- /**
4
- * Offline SyncManager factory.
5
- * Can be used for server-side API, and client-side API with or without multiple clients.
6
- *
7
- * @param splitsParser e.g., `splitsParserFromFile`, `splitsParserFromSettings`.
8
- */
9
- export declare function syncManagerOfflineFactory(splitsParserFactory: () => ISplitsParser): (params: ISyncManagerFactoryParams) => ISyncManagerCS;
@@ -1,5 +0,0 @@
1
- import { ISyncTask } from './types';
2
- /**
3
- * Composite Sync Task: group of sync tasks that are treated as a single one.
4
- */
5
- export declare function syncTaskComposite(syncTasks: ISyncTask[]): ISyncTask;
@@ -1,9 +0,0 @@
1
- import { IImpressionObserver } from '../impressionObserver/types';
2
- import { IStrategy } from '../types';
3
- /**
4
- * Debug strategy for impressions tracker. Wraps impressions to store and adds previousTime if it corresponds
5
- *
6
- * @param impressionsObserver impression observer. Previous time (pt property) is included in impression instances
7
- * @returns IStrategyResult
8
- */
9
- export declare function strategyDebugFactory(impressionsObserver: IImpressionObserver): IStrategy;
@@ -1,10 +0,0 @@
1
- import { IImpressionCountsCacheSync } from '../../storages/types';
2
- import { IStrategy, IUniqueKeysTracker } from '../types';
3
- /**
4
- * None strategy for impressions tracker.
5
- *
6
- * @param impressionsCounter cache to save impressions count. impressions will be deduped (OPTIMIZED mode)
7
- * @param uniqueKeysTracker unique keys tracker in charge of tracking the unique keys per split.
8
- * @returns IStrategyResult
9
- */
10
- export declare function strategyNoneFactory(impressionsCounter: IImpressionCountsCacheSync, uniqueKeysTracker: IUniqueKeysTracker): IStrategy;
@@ -1,11 +0,0 @@
1
- import { IImpressionCountsCacheSync } from '../../storages/types';
2
- import { IImpressionObserver } from '../impressionObserver/types';
3
- import { IStrategy } from '../types';
4
- /**
5
- * Optimized strategy for impressions tracker. Wraps impressions to store and adds previousTime if it corresponds
6
- *
7
- * @param impressionsObserver impression observer. previous time (pt property) is included in impression instances
8
- * @param impressionsCounter cache to save impressions count. impressions will be deduped (OPTIMIZED mode)
9
- * @returns IStrategyResult
10
- */
11
- export declare function strategyOptimizedFactory(impressionsObserver: IImpressionObserver, impressionsCounter: IImpressionCountsCacheSync): IStrategy;
File without changes