@microsoft/applicationinsights-core-js 3.0.0-beta.2303-11 → 3.0.0-nightly3.2304-28

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 (261) hide show
  1. package/browser/es5/applicationinsights-core-js.cjs.js +5477 -0
  2. package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-core-js.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -0
  5. package/browser/es5/applicationinsights-core-js.gbl.js +5481 -0
  6. package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-core-js.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-core-js.integrity.json +66 -0
  10. package/browser/{applicationinsights-core-js.js → es5/applicationinsights-core-js.js} +259 -223
  11. package/browser/es5/applicationinsights-core-js.js.map +1 -0
  12. package/browser/es5/applicationinsights-core-js.min.js +6 -0
  13. package/browser/es5/applicationinsights-core-js.min.js.map +1 -0
  14. package/dist/{applicationinsights-core-js.js → es5/applicationinsights-core-js.js} +259 -223
  15. package/dist/es5/applicationinsights-core-js.js.map +1 -0
  16. package/dist/es5/applicationinsights-core-js.min.js +6 -0
  17. package/dist/es5/applicationinsights-core-js.min.js.map +1 -0
  18. package/{dist-esm → dist-es5}/Config/ConfigDefaultHelpers.js +1 -1
  19. package/{dist-esm → dist-es5}/Config/ConfigDefaults.js +1 -1
  20. package/{dist-esm → dist-es5}/Config/DynamicConfig.js +1 -1
  21. package/{dist-esm → dist-es5}/Config/DynamicProperty.js +1 -1
  22. package/{dist-esm → dist-es5}/Config/DynamicState.js +1 -1
  23. package/{dist-esm → dist-es5}/Config/DynamicSupport.js +1 -1
  24. package/dist-es5/Config/IConfigDefaults.js +8 -0
  25. package/dist-es5/Config/IDynamicConfigHandler.js +8 -0
  26. package/dist-es5/Config/IDynamicPropertyHandler.js +8 -0
  27. package/dist-es5/Config/IDynamicWatcher.js +8 -0
  28. package/dist-es5/Config/_IDynamicConfigHandlerState.js +6 -0
  29. package/{dist-esm → dist-es5}/JavaScriptSDK/AggregationError.js +2 -2
  30. package/{dist-esm → dist-es5}/JavaScriptSDK/AggregationError.js.map +1 -1
  31. package/{dist-esm → dist-es5}/JavaScriptSDK/AppInsightsCore.js +1 -1
  32. package/{dist-esm → dist-es5}/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  33. package/{dist-esm → dist-es5}/JavaScriptSDK/Constants.js +1 -1
  34. package/{dist-esm → dist-es5}/JavaScriptSDK/CookieMgr.js +14 -8
  35. package/dist-es5/JavaScriptSDK/CookieMgr.js.map +1 -0
  36. package/{dist-esm → dist-es5}/JavaScriptSDK/CoreUtils.js +1 -1
  37. package/{dist-esm → dist-es5}/JavaScriptSDK/DataCacheHelper.js +2 -2
  38. package/dist-es5/JavaScriptSDK/DataCacheHelper.js.map +1 -0
  39. package/{dist-esm → dist-es5}/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  40. package/{dist-esm → dist-es5}/JavaScriptSDK/DiagnosticLogger.js +1 -1
  41. package/{dist-esm → dist-es5}/JavaScriptSDK/EnvUtils.js +1 -1
  42. package/{dist-esm → dist-es5}/JavaScriptSDK/EventHelpers.js +1 -1
  43. package/{dist-esm → dist-es5}/JavaScriptSDK/HelperFuncs.js +1 -1
  44. package/{dist-esm → dist-es5}/JavaScriptSDK/InstrumentHooks.js +1 -1
  45. package/{dist-esm → dist-es5}/JavaScriptSDK/InternalConstants.js +1 -1
  46. package/{dist-esm → dist-es5}/JavaScriptSDK/NotificationManager.js +1 -1
  47. package/{dist-esm → dist-es5}/JavaScriptSDK/PerfManager.js +1 -1
  48. package/{dist-esm → dist-es5}/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  49. package/{dist-esm → dist-es5}/JavaScriptSDK/RandomHelper.js +7 -5
  50. package/dist-es5/JavaScriptSDK/RandomHelper.js.map +1 -0
  51. package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryHelpers.js +1 -1
  52. package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryInitializerPlugin.js +44 -38
  53. package/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js.map +1 -0
  54. package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  55. package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHookContainer.js +1 -1
  56. package/{dist-esm → dist-es5}/JavaScriptSDK/W3cTraceParent.js +1 -1
  57. package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  58. package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  59. package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  60. package/dist-es5/JavaScriptSDK.Enums/SendRequestReason.js +6 -0
  61. package/dist-es5/JavaScriptSDK.Enums/TelemetryUnloadReason.js +8 -0
  62. package/dist-es5/JavaScriptSDK.Enums/TelemetryUpdateReason.js +8 -0
  63. package/dist-es5/JavaScriptSDK.Interfaces/IAppInsightsCore.js +6 -0
  64. package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  65. package/dist-es5/JavaScriptSDK.Interfaces/IChannelControlsHost.js +8 -0
  66. package/dist-es5/JavaScriptSDK.Interfaces/IConfiguration.js +7 -0
  67. package/dist-es5/JavaScriptSDK.Interfaces/ICookieMgr.js +8 -0
  68. package/dist-es5/JavaScriptSDK.Interfaces/IDbgExtension.js +8 -0
  69. package/dist-es5/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +6 -0
  70. package/dist-es5/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +8 -0
  71. package/dist-es5/JavaScriptSDK.Interfaces/IInstrumentHooks.js +8 -0
  72. package/dist-es5/JavaScriptSDK.Interfaces/INotificationListener.js +9 -0
  73. package/dist-es5/JavaScriptSDK.Interfaces/INotificationManager.js +6 -0
  74. package/dist-es5/JavaScriptSDK.Interfaces/IPerfEvent.js +8 -0
  75. package/dist-es5/JavaScriptSDK.Interfaces/IPerfManager.js +6 -0
  76. package/dist-es5/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +9 -0
  77. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +6 -0
  78. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryItem.js +9 -0
  79. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +9 -0
  80. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +8 -0
  81. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +8 -0
  82. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +8 -0
  83. package/dist-es5/JavaScriptSDK.Interfaces/ITraceParent.js +8 -0
  84. package/dist-es5/JavaScriptSDK.Interfaces/IUnloadHook.js +8 -0
  85. package/dist-es5/JavaScriptSDK.Interfaces/IUnloadableComponent.js +8 -0
  86. package/{dist-esm → dist-es5}/__DynamicConstants.js +2 -2
  87. package/{dist-esm → dist-es5}/__DynamicConstants.js.map +1 -1
  88. package/{dist-esm → dist-es5}/applicationinsights-core-js.js +2 -2
  89. package/dist-es5/applicationinsights-core-js.js.map +1 -0
  90. package/package.json +16 -15
  91. package/tsconfig.json +5 -4
  92. package/types/applicationinsights-core-js.d.ts +3074 -58
  93. package/{dist/applicationinsights-core-js.d.ts → types/applicationinsights-core-js.namespaced.d.ts} +1 -4
  94. package/browser/applicationinsights-core-js.integrity.json +0 -26
  95. package/browser/applicationinsights-core-js.js.map +0 -1
  96. package/browser/applicationinsights-core-js.min.js +0 -6
  97. package/browser/applicationinsights-core-js.min.js.map +0 -1
  98. package/dist/applicationinsights-core-js.api.json +0 -25423
  99. package/dist/applicationinsights-core-js.api.md +0 -1374
  100. package/dist/applicationinsights-core-js.js.map +0 -1
  101. package/dist/applicationinsights-core-js.min.js +0 -6
  102. package/dist/applicationinsights-core-js.min.js.map +0 -1
  103. package/dist/applicationinsights-core-js.rollup.d.ts +0 -3078
  104. package/dist-esm/Config/IConfigDefaults.js +0 -8
  105. package/dist-esm/Config/IDynamicConfigHandler.js +0 -8
  106. package/dist-esm/Config/IDynamicPropertyHandler.js +0 -8
  107. package/dist-esm/Config/IDynamicWatcher.js +0 -8
  108. package/dist-esm/Config/_IDynamicConfigHandlerState.js +0 -6
  109. package/dist-esm/JavaScriptSDK/CookieMgr.js.map +0 -1
  110. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +0 -1
  111. package/dist-esm/JavaScriptSDK/RandomHelper.js.map +0 -1
  112. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +0 -1
  113. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +0 -6
  114. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +0 -8
  115. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +0 -8
  116. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +0 -6
  117. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControlsHost.js +0 -8
  118. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +0 -7
  119. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +0 -8
  120. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +0 -8
  121. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +0 -6
  122. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +0 -8
  123. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +0 -8
  124. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +0 -9
  125. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +0 -6
  126. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +0 -8
  127. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +0 -6
  128. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +0 -9
  129. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +0 -6
  130. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +0 -9
  131. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +0 -9
  132. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +0 -8
  133. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +0 -8
  134. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +0 -8
  135. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +0 -8
  136. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +0 -8
  137. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +0 -8
  138. package/dist-esm/applicationinsights-core-js.js.map +0 -1
  139. package/types/Config/ConfigDefaultHelpers.d.ts +0 -47
  140. package/types/Config/ConfigDefaults.d.ts +0 -9
  141. package/types/Config/DynamicConfig.d.ts +0 -23
  142. package/types/Config/DynamicProperty.d.ts +0 -3
  143. package/types/Config/DynamicState.d.ts +0 -3
  144. package/types/Config/DynamicSupport.d.ts +0 -82
  145. package/types/Config/IConfigDefaults.d.ts +0 -63
  146. package/types/Config/IDynamicConfigHandler.d.ts +0 -69
  147. package/types/Config/IDynamicPropertyHandler.d.ts +0 -11
  148. package/types/Config/IDynamicWatcher.d.ts +0 -61
  149. package/types/Config/_IDynamicConfigHandlerState.d.ts +0 -52
  150. package/types/JavaScriptSDK/AggregationError.d.ts +0 -6
  151. package/types/JavaScriptSDK/AppInsightsCore.d.ts +0 -158
  152. package/types/JavaScriptSDK/BaseTelemetryPlugin.d.ts +0 -110
  153. package/types/JavaScriptSDK/Constants.d.ts +0 -1
  154. package/types/JavaScriptSDK/CookieMgr.d.ts +0 -15
  155. package/types/JavaScriptSDK/CoreUtils.d.ts +0 -13
  156. package/types/JavaScriptSDK/DataCacheHelper.d.ts +0 -13
  157. package/types/JavaScriptSDK/DbgExtensionUtils.d.ts +0 -5
  158. package/types/JavaScriptSDK/DiagnosticLogger.d.ts +0 -76
  159. package/types/JavaScriptSDK/EnvUtils.d.ts +0 -81
  160. package/types/JavaScriptSDK/EventHelpers.d.ts +0 -154
  161. package/types/JavaScriptSDK/HelperFuncs.d.ts +0 -106
  162. package/types/JavaScriptSDK/InstrumentHooks.d.ts +0 -43
  163. package/types/JavaScriptSDK/InternalConstants.d.ts +0 -20
  164. package/types/JavaScriptSDK/NotificationManager.d.ts +0 -46
  165. package/types/JavaScriptSDK/PerfManager.d.ts +0 -93
  166. package/types/JavaScriptSDK/ProcessTelemetryContext.d.ts +0 -119
  167. package/types/JavaScriptSDK/RandomHelper.d.ts +0 -29
  168. package/types/JavaScriptSDK/TelemetryHelpers.d.ts +0 -38
  169. package/types/JavaScriptSDK/TelemetryInitializerPlugin.d.ts +0 -16
  170. package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +0 -8
  171. package/types/JavaScriptSDK/UnloadHookContainer.d.ts +0 -16
  172. package/types/JavaScriptSDK/W3cTraceParent.d.ts +0 -59
  173. package/types/JavaScriptSDK.Enums/EnumHelperFuncs.d.ts +0 -22
  174. package/types/JavaScriptSDK.Enums/EventsDiscardedReason.d.ts +0 -34
  175. package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +0 -104
  176. package/types/JavaScriptSDK.Enums/SendRequestReason.d.ts +0 -45
  177. package/types/JavaScriptSDK.Enums/TelemetryUnloadReason.d.ts +0 -21
  178. package/types/JavaScriptSDK.Enums/TelemetryUpdateReason.d.ts +0 -21
  179. package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +0 -171
  180. package/types/JavaScriptSDK.Interfaces/IChannelControls.d.ts +0 -36
  181. package/types/JavaScriptSDK.Interfaces/IChannelControlsHost.d.ts +0 -9
  182. package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +0 -150
  183. package/types/JavaScriptSDK.Interfaces/ICookieMgr.d.ts +0 -97
  184. package/types/JavaScriptSDK.Interfaces/IDbgExtension.d.ts +0 -10
  185. package/types/JavaScriptSDK.Interfaces/IDiagnosticLogger.d.ts +0 -48
  186. package/types/JavaScriptSDK.Interfaces/IDistributedTraceContext.d.ts +0 -43
  187. package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +0 -81
  188. package/types/JavaScriptSDK.Interfaces/INotificationListener.d.ts +0 -32
  189. package/types/JavaScriptSDK.Interfaces/INotificationManager.d.ts +0 -43
  190. package/types/JavaScriptSDK.Interfaces/IPerfEvent.d.ts +0 -56
  191. package/types/JavaScriptSDK.Interfaces/IPerfManager.d.ts +0 -45
  192. package/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext.d.ts +0 -129
  193. package/types/JavaScriptSDK.Interfaces/ITelemetryInitializers.d.ts +0 -14
  194. package/types/JavaScriptSDK.Interfaces/ITelemetryItem.d.ts +0 -51
  195. package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +0 -80
  196. package/types/JavaScriptSDK.Interfaces/ITelemetryPluginChain.d.ts +0 -23
  197. package/types/JavaScriptSDK.Interfaces/ITelemetryUnloadState.d.ts +0 -6
  198. package/types/JavaScriptSDK.Interfaces/ITelemetryUpdateState.d.ts +0 -33
  199. package/types/JavaScriptSDK.Interfaces/ITraceParent.d.ts +0 -32
  200. package/types/JavaScriptSDK.Interfaces/IUnloadHook.d.ts +0 -18
  201. package/types/JavaScriptSDK.Interfaces/IUnloadableComponent.d.ts +0 -13
  202. package/types/__DynamicConstants.d.ts +0 -53
  203. package/types/tsdoc-metadata.json +0 -11
  204. /package/{dist-esm → dist-es5}/Config/ConfigDefaultHelpers.js.map +0 -0
  205. /package/{dist-esm → dist-es5}/Config/ConfigDefaults.js.map +0 -0
  206. /package/{dist-esm → dist-es5}/Config/DynamicConfig.js.map +0 -0
  207. /package/{dist-esm → dist-es5}/Config/DynamicProperty.js.map +0 -0
  208. /package/{dist-esm → dist-es5}/Config/DynamicState.js.map +0 -0
  209. /package/{dist-esm → dist-es5}/Config/DynamicSupport.js.map +0 -0
  210. /package/{dist-esm → dist-es5}/Config/IConfigDefaults.js.map +0 -0
  211. /package/{dist-esm → dist-es5}/Config/IDynamicConfigHandler.js.map +0 -0
  212. /package/{dist-esm → dist-es5}/Config/IDynamicPropertyHandler.js.map +0 -0
  213. /package/{dist-esm → dist-es5}/Config/IDynamicWatcher.js.map +0 -0
  214. /package/{dist-esm → dist-es5}/Config/_IDynamicConfigHandlerState.js.map +0 -0
  215. /package/{dist-esm → dist-es5}/JavaScriptSDK/AppInsightsCore.js.map +0 -0
  216. /package/{dist-esm → dist-es5}/JavaScriptSDK/BaseTelemetryPlugin.js.map +0 -0
  217. /package/{dist-esm → dist-es5}/JavaScriptSDK/Constants.js.map +0 -0
  218. /package/{dist-esm → dist-es5}/JavaScriptSDK/CoreUtils.js.map +0 -0
  219. /package/{dist-esm → dist-es5}/JavaScriptSDK/DbgExtensionUtils.js.map +0 -0
  220. /package/{dist-esm → dist-es5}/JavaScriptSDK/DiagnosticLogger.js.map +0 -0
  221. /package/{dist-esm → dist-es5}/JavaScriptSDK/EnvUtils.js.map +0 -0
  222. /package/{dist-esm → dist-es5}/JavaScriptSDK/EventHelpers.js.map +0 -0
  223. /package/{dist-esm → dist-es5}/JavaScriptSDK/HelperFuncs.js.map +0 -0
  224. /package/{dist-esm → dist-es5}/JavaScriptSDK/InstrumentHooks.js.map +0 -0
  225. /package/{dist-esm → dist-es5}/JavaScriptSDK/InternalConstants.js.map +0 -0
  226. /package/{dist-esm → dist-es5}/JavaScriptSDK/NotificationManager.js.map +0 -0
  227. /package/{dist-esm → dist-es5}/JavaScriptSDK/PerfManager.js.map +0 -0
  228. /package/{dist-esm → dist-es5}/JavaScriptSDK/ProcessTelemetryContext.js.map +0 -0
  229. /package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryHelpers.js.map +0 -0
  230. /package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHandlerContainer.js.map +0 -0
  231. /package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHookContainer.js.map +0 -0
  232. /package/{dist-esm → dist-es5}/JavaScriptSDK/W3cTraceParent.js.map +0 -0
  233. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EnumHelperFuncs.js.map +0 -0
  234. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EventsDiscardedReason.js.map +0 -0
  235. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/LoggingEnums.js.map +0 -0
  236. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/SendRequestReason.js.map +0 -0
  237. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/TelemetryUnloadReason.js.map +0 -0
  238. /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/TelemetryUpdateReason.js.map +0 -0
  239. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IAppInsightsCore.js.map +0 -0
  240. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControls.js.map +0 -0
  241. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControlsHost.js.map +0 -0
  242. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IConfiguration.js.map +0 -0
  243. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ICookieMgr.js.map +0 -0
  244. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDbgExtension.js.map +0 -0
  245. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDiagnosticLogger.js.map +0 -0
  246. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDistributedTraceContext.js.map +0 -0
  247. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IInstrumentHooks.js.map +0 -0
  248. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/INotificationListener.js.map +0 -0
  249. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/INotificationManager.js.map +0 -0
  250. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IPerfEvent.js.map +0 -0
  251. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IPerfManager.js.map +0 -0
  252. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js.map +0 -0
  253. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryInitializers.js.map +0 -0
  254. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryItem.js.map +0 -0
  255. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryPlugin.js.map +0 -0
  256. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js.map +0 -0
  257. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js.map +0 -0
  258. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js.map +0 -0
  259. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITraceParent.js.map +0 -0
  260. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IUnloadHook.js.map +0 -0
  261. /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IUnloadableComponent.js.map +0 -0
@@ -1,76 +0,0 @@
1
- import { LoggingSeverity, _InternalMessageId } from "../JavaScriptSDK.Enums/LoggingEnums";
2
- import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
3
- import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
4
- import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
5
- import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
6
- export declare class _InternalLogMessage {
7
- static dataType: string;
8
- message: string;
9
- messageId: _InternalMessageId;
10
- constructor(msgId: _InternalMessageId, msg: string, isUserAct?: boolean, properties?: Object);
11
- }
12
- export declare function safeGetLogger(core: IAppInsightsCore, config?: IConfiguration): IDiagnosticLogger;
13
- export declare class DiagnosticLogger implements IDiagnosticLogger {
14
- identifier: string;
15
- /**
16
- * The internal logging queue
17
- */
18
- queue: _InternalLogMessage[];
19
- constructor(config?: IConfiguration);
20
- /**
21
- * 0: OFF (default)
22
- * 1: CRITICAL
23
- * 2: >= WARNING
24
- */
25
- consoleLoggingLevel(): number;
26
- /**
27
- * This method will throw exceptions in debug mode or attempt to log the error as a console warning.
28
- * @param severity - {LoggingSeverity} - The severity of the log message
29
- * @param message - {_InternalLogMessage} - The log message.
30
- */
31
- throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
32
- /**
33
- * This will write a warning to the console if possible
34
- * @param message - {string} - The warning message
35
- */
36
- warnToConsole(message: string): void;
37
- /**
38
- * This will write an error to the console if possible
39
- * @param message - {string} - The warning message
40
- */
41
- errorToConsole(message: string): void;
42
- /**
43
- * Resets the internal message count
44
- */
45
- resetInternalMessageCount(): void;
46
- /**
47
- * Logs a message to the internal queue.
48
- * @param severity - {LoggingSeverity} - The severity of the log message
49
- * @param message - {_InternalLogMessage} - The message to log.
50
- */
51
- logInternalMessage(severity: LoggingSeverity, message: _InternalLogMessage): void;
52
- update(updateState: ITelemetryUpdateState): void;
53
- }
54
- /**
55
- * This is a helper method which will call throwInternal on the passed logger, will throw exceptions in
56
- * debug mode or attempt to log the error as a console warning. This helper is provided mostly to better
57
- * support minification as logger.throwInternal() will not compress the publish "throwInternal" used throughout
58
- * the code.
59
- * @param logger - The Diagnostic Logger instance to use.
60
- * @param severity - {LoggingSeverity} - The severity of the log message
61
- * @param message - {_InternalLogMessage} - The log message.
62
- */
63
- export declare function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
64
- /**
65
- * This is a helper method which will call warnToConsole on the passed logger with the provided message.
66
- * @param logger - The Diagnostic Logger instance to use.
67
- * @param message - {_InternalLogMessage} - The log message.
68
- */
69
- export declare function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
70
- /**
71
- * Logs a message to the internal queue.
72
- * @param logger - The Diagnostic Logger instance to use.
73
- * @param severity - {LoggingSeverity} - The severity of the log message
74
- * @param message - {_InternalLogMessage} - The message to log.
75
- */
76
- export declare function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage): void;
@@ -1,81 +0,0 @@
1
- /**
2
- * Enable the lookup of test mock objects if requested
3
- * @param enabled
4
- */
5
- export declare function setEnableEnvMocks(enabled: boolean): void;
6
- /**
7
- * Returns the global location object if it is present otherwise null.
8
- * This helper is used to access the location object without causing an exception
9
- * "Uncaught ReferenceError: location is not defined"
10
- */
11
- export declare function getLocation(checkForMock?: boolean): Location | null;
12
- /**
13
- * Returns the global console object
14
- */
15
- export declare function getConsole(): Console | null;
16
- /**
17
- * Checks if JSON object is available, this is required as we support the API running without a
18
- * window /document (eg. Node server, electron webworkers) and if we attempt to assign a history
19
- * object to a local variable or pass as an argument an "Uncaught ReferenceError: JSON is not defined"
20
- * exception will be thrown.
21
- * Defined as a function to support lazy / late binding environments.
22
- */
23
- export declare function hasJSON(): boolean;
24
- /**
25
- * Returns the global JSON object if it is present otherwise null.
26
- * This helper is used to access the JSON object without causing an exception
27
- * "Uncaught ReferenceError: JSON is not defined"
28
- */
29
- export declare function getJSON(): JSON | null;
30
- /**
31
- * Returns the crypto object if it is present otherwise null.
32
- * This helper is used to access the crypto object from the current
33
- * global instance which could be window or globalThis for a web worker
34
- */
35
- export declare function getCrypto(): Crypto | null;
36
- /**
37
- * Returns the crypto object if it is present otherwise null.
38
- * This helper is used to access the crypto object from the current
39
- * global instance which could be window or globalThis for a web worker
40
- */
41
- export declare function getMsCrypto(): Crypto | null;
42
- /**
43
- * Returns whether the environment is reporting that we are running in a React Native Environment
44
- */
45
- export declare function isReactNative(): boolean;
46
- /**
47
- * Identifies whether the current environment appears to be IE
48
- */
49
- export declare function isIE(): boolean;
50
- /**
51
- * Gets IE version returning the document emulation mode if we are running on IE, or null otherwise
52
- */
53
- export declare function getIEVersion(userAgentStr?: string): number;
54
- export declare function isSafari(userAgentStr?: string): boolean;
55
- /**
56
- * Checks if HTML5 Beacons are supported in the current environment.
57
- * @returns True if supported, false otherwise.
58
- */
59
- export declare function isBeaconsSupported(): boolean;
60
- /**
61
- * Checks if the Fetch API is supported in the current environment.
62
- * @param withKeepAlive - [Optional] If True, check if fetch is available and it supports the keepalive feature, otherwise only check if fetch is supported
63
- * @returns True if supported, otherwise false
64
- */
65
- export declare function isFetchSupported(withKeepAlive?: boolean): boolean;
66
- export declare function useXDomainRequest(): boolean | undefined;
67
- /**
68
- * Checks if XMLHttpRequest is supported
69
- * @returns True if supported, otherwise false
70
- */
71
- export declare function isXhrSupported(): boolean;
72
- /**
73
- * Helper function to fetch the named meta-tag from the page.
74
- * @param name
75
- */
76
- export declare function findMetaTag(name: string): any;
77
- /**
78
- * Helper function to fetch the named server timing value from the page response (first navigation event).
79
- * @param name
80
- */
81
- export declare function findNamedServerTiming(name: string): any;
@@ -1,154 +0,0 @@
1
- export interface _IRegisteredEvents {
2
- name: string;
3
- handler: any;
4
- }
5
- /**
6
- * Get all of the registered events on the target object, this is primarily used for testing cleanup but may also be used by
7
- * applications to remove their own events
8
- * @param target - The EventTarget that has registered events
9
- * @param eventName - [Optional] The name of the event to return the registered handlers and full name (with namespaces)
10
- * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,
11
- * if the eventName also includes a namespace the namespace(s) are merged into a single namespace
12
- */
13
- export declare function __getRegisteredEvents(target: any, eventName?: string, evtNamespace?: string | string[]): _IRegisteredEvents[];
14
- export declare function mergeEvtNamespace(theNamespace: string, namespaces?: string | string[] | null): string | string[];
15
- /**
16
- * Binds the specified function to an event, so that the function gets called whenever the event fires on the object
17
- * @param obj - Object to add the event too.
18
- * @param eventName - String that specifies any of the standard DHTML Events without "on" prefix, if may also include an optional (dot "." prefixed)
19
- * namespaces "click" "click.mynamespace" in addition to specific namespaces.
20
- * @param handlerRef - Pointer that specifies the function to call when event fires
21
- * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,
22
- * if the eventName also includes a namespace the namespace(s) are merged into a single namespace
23
- * @param useCapture - [Optional] Defaults to false
24
- * @returns True if the function was bound successfully to the event, otherwise false
25
- */
26
- export declare function eventOn<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): boolean;
27
- /**
28
- * Removes an event handler for the specified event
29
- * @param Object - to remove the event from
30
- * @param eventName - {string} - The name of the event, with optional namespaces or just the namespaces,
31
- * such as "click", "click.mynamespace" or ".mynamespace"
32
- * @param handlerRef - {any} - The callback function that needs to be removed from the given event, when using a
33
- * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
34
- * otherwise this will only remove events with this specific handler.
35
- * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,
36
- * if the eventName also includes a namespace the namespace(s) are merged into a single namespace
37
- * @param useCapture - [Optional] Defaults to false
38
- */
39
- export declare function eventOff<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): void;
40
- /**
41
- * Binds the specified function to an event, so that the function gets called whenever the event fires on the object
42
- * @param obj - Object to add the event too.
43
- * @param eventNameWithoutOn - String that specifies any of the standard DHTML Events without "on" prefix and optional (dot "." prefixed) namespaces "click" "click.mynamespace".
44
- * @param handlerRef - Pointer that specifies the function to call when event fires
45
- * @param useCapture - [Optional] Defaults to false
46
- * @returns True if the function was bound successfully to the event, otherwise false
47
- */
48
- export declare function attachEvent(obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture?: boolean): boolean;
49
- /**
50
- * Removes an event handler for the specified event
51
- * @param Object - to remove the event from
52
- * @param eventNameWithoutOn - {string} - The name of the event, with optional namespaces or just the namespaces,
53
- * such as "click", "click.mynamespace" or ".mynamespace"
54
- * @param handlerRef - {any} - The callback function that needs to be removed from the given event, when using a
55
- * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
56
- * otherwise this will only remove events with this specific handler.
57
- * @param useCapture - [Optional] Defaults to false
58
- */
59
- export declare function detachEvent(obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture?: boolean): void;
60
- /**
61
- * Trys to add an event handler for the specified event to the window, body and document
62
- * @param eventName - {string} - The name of the event
63
- * @param callback - {any} - The callback function that needs to be executed for the given event
64
- * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
65
- * @return {boolean} - true if the handler was successfully added
66
- */
67
- export declare function addEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): boolean;
68
- /**
69
- * Trys to remove event handler(s) for the specified event/namespace to the window, body and document
70
- * @param eventName - {string} - The name of the event, with optional namespaces or just the namespaces,
71
- * such as "click", "click.mynamespace" or ".mynamespace"
72
- * @param callback - {any} - - The callback function that needs to be removed from the given event, when using a
73
- * namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
74
- * otherwise this will only remove events with this specific handler.
75
- * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
76
- */
77
- export declare function removeEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): void;
78
- /**
79
- * Bind the listener to the array of events
80
- * @param events - An string array of event names to bind the listener to
81
- * @param listener - The event callback to call when the event is triggered
82
- * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
83
- * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
84
- * @returns true - when at least one of the events was registered otherwise false
85
- */
86
- export declare function addEventListeners(events: string[], listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
87
- /**
88
- * Remove the listener from the array of events
89
- * @param events - An string array of event names to bind the listener to
90
- * @param listener - The event callback to call when the event is triggered
91
- * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
92
- */
93
- export declare function removeEventListeners(events: string[], listener: any, evtNamespace?: string | string[]): void;
94
- /**
95
- * Listen to the 'beforeunload', 'unload' and 'pagehide' events which indicates a page unload is occurring,
96
- * this does NOT listen to the 'visibilitychange' event as while it does indicate that the page is being hidden
97
- * it does not *necessarily* mean that the page is being completely unloaded, it can mean that the user is
98
- * just navigating to a different Tab and may come back (without unloading the page). As such you may also
99
- * need to listen to the 'addPageHideEventListener' and 'addPageShowEventListener' events.
100
- * @param listener - The event callback to call when a page unload event is triggered
101
- * @param excludeEvents - [Optional] An array of events that should not be hooked, unless no other events can be.
102
- * @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
103
- * @returns true - when at least one of the events was registered otherwise false
104
- */
105
- export declare function addPageUnloadEventListener(listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
106
- /**
107
- * Remove any matching 'beforeunload', 'unload' and 'pagehide' events that may have been added via addEventListener,
108
- * addEventListeners, addPageUnloadEventListener or addPageHideEventListener.
109
- * @param listener - The specific event callback to to be removed
110
- * @param evtNamespace - [Optional] Namespace(s) uniquely identified and removed based on this namespace.
111
- * @returns true - when at least one of the events was registered otherwise false
112
- */
113
- export declare function removePageUnloadEventListener(listener: any, evtNamespace?: string | string[]): void;
114
- /**
115
- * Listen to the pagehide and visibility changing to 'hidden' events, because the 'visibilitychange' uses
116
- * an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call
117
- * removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.
118
- * @param listener - The event callback to call when a page hide event is triggered
119
- * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
120
- * @param evtNamespace - [Optional] A Namespace to append to the event listeners so they can be uniquely identified and removed
121
- * based on this namespace. This call also adds an additional unique "pageshow" namespace to the events
122
- * so that only the matching "removePageHideEventListener" can remove these events.
123
- * Suggestion: pass as true if you are also calling addPageUnloadEventListener as that also hooks pagehide
124
- * @returns true - when at least one of the events was registered otherwise false
125
- */
126
- export declare function addPageHideEventListener(listener: any, excludeEvents?: string[] | null, evtNamespace?: string | string[] | null): boolean;
127
- /**
128
- * Removes the pageHide event listeners added by addPageHideEventListener, because the 'visibilitychange' uses
129
- * an internal proxy to detect the visibility state you SHOULD use a unique namespace when calling addPageHideEventListener
130
- * as the remove ignores the listener argument for the 'visibilitychange' event.
131
- * @param listener - The specific listener to remove for the 'pageshow' event only (ignored for 'visibilitychange')
132
- * @param evtNamespace - The unique namespace used when calling addPageShowEventListener
133
- */
134
- export declare function removePageHideEventListener(listener: any, evtNamespace?: string | string[] | null): void;
135
- /**
136
- * Listen to the pageshow and visibility changing to 'visible' events, because the 'visibilitychange' uses
137
- * an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call
138
- * removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.
139
- * @param listener - The event callback to call when a page is show event is triggered
140
- * @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
141
- * @param evtNamespace - [Optional/Recommended] A Namespace to append to the event listeners so they can be uniquely
142
- * identified and removed based on this namespace. This call also adds an additional unique "pageshow" namespace to the events
143
- * so that only the matching "removePageShowEventListener" can remove these events.
144
- * @returns true - when at least one of the events was registered otherwise false
145
- */
146
- export declare function addPageShowEventListener(listener: any, excludeEvents?: string[] | null, evtNamespace?: string | string[] | null): boolean;
147
- /**
148
- * Removes the pageShow event listeners added by addPageShowEventListener, because the 'visibilitychange' uses
149
- * an internal proxy to detect the visibility state you SHOULD use a unique namespace when calling addPageShowEventListener
150
- * as the remove ignores the listener argument for the 'visibilitychange' event.
151
- * @param listener - The specific listener to remove for the 'pageshow' event only (ignored for 'visibilitychange')
152
- * @param evtNamespace - The unique namespace used when calling addPageShowEventListener
153
- */
154
- export declare function removePageShowEventListener(listener: any, evtNamespace?: string | string[] | null): void;
@@ -1,106 +0,0 @@
1
- export declare let _getObjProto: (o: any) => any;
2
- export declare function isNotUndefined<T>(value: T): value is T;
3
- export declare function isNotNullOrUndefined<T>(value: T): value is T;
4
- /**
5
- * Validates that the string name conforms to the JS IdentifierName specification and if not
6
- * normalizes the name so that it would. This method does not identify or change any keywords
7
- * meaning that if you pass in a known keyword the same value will be returned.
8
- * This is a simplified version
9
- * @param name - The name to validate
10
- */
11
- export declare function normalizeJsName(name: string): string;
12
- /**
13
- * A simple wrapper (for minification support) to check if the value contains the search string.
14
- * @param value - The string value to check for the existence of the search value
15
- * @param search - The value search within the value
16
- */
17
- export declare function strContains(value: string, search: string): boolean;
18
- /**
19
- * Convert a date to I.S.O. format in IE8
20
- */
21
- export declare function toISOString(date: Date): string;
22
- export declare const deepFreeze: <T>(obj: T) => T;
23
- /**
24
- * Returns the name of object if it's an Error. Otherwise, returns empty string.
25
- */
26
- export declare function getExceptionName(object: any): string;
27
- /**
28
- * Sets the provided value on the target instance using the field name when the provided chk function returns true, the chk
29
- * function will only be called if the new value is no equal to the original value.
30
- * @param target - The target object
31
- * @param field - The key of the target
32
- * @param value - The value to set
33
- * @param valChk - [Optional] Callback to check the value that if supplied will be called check if the new value can be set
34
- * @param srcChk - [Optional] Callback to check to original value that if supplied will be called if the new value should be set (if allowed)
35
- * @returns The existing or new value, depending what was set
36
- */
37
- export declare function setValue<T, K extends keyof T>(target: T, field: K, value: T[K], valChk?: ((value: T[K]) => boolean) | null, srcChk?: ((value: T[K]) => boolean) | null): T[K];
38
- /**
39
- * Returns the current value from the target object if not null or undefined otherwise sets the new value and returns it
40
- * @param target - The target object to return or set the default value
41
- * @param field - The key for the field to set on the target
42
- * @param defValue - [Optional] The value to set if not already present, when not provided a empty object will be added
43
- */
44
- export declare function getSetValue<T, K extends keyof T>(target: T, field: K, defValue?: T[K]): T[K];
45
- /**
46
- * Effectively assigns all enumerable properties (not just own properties) and functions (including inherited prototype) from
47
- * the source object to the target, it attempts to use proxy getters / setters (if possible) and proxy functions to avoid potential
48
- * implementation issues by assigning prototype functions as instance ones
49
- *
50
- * This method is the primary method used to "update" the snippet proxy with the ultimate implementations.
51
- *
52
- * Special ES3 Notes:
53
- * Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the
54
- * properties of "referenced" object will work (target.context.newValue = 10 => will be reflected in the source.context as it's the
55
- * same object). ES3 Failures: assigning target.myProp = 3 -> Won't change source.myProp = 3, likewise the reverse would also fail.
56
- * @param target - The target object to be assigned with the source properties and functions
57
- * @param source - The source object which will be assigned / called by setting / calling the targets proxies
58
- * @param chkSet - An optional callback to determine whether a specific property/function should be proxied
59
- */
60
- export declare function proxyAssign<T, S>(target: T, source: S, chkSet?: (name: string, isFunc?: boolean, source?: S, target?: T) => boolean): T;
61
- /**
62
- * Creates a proxy function on the target which internally will call the source version with all arguments passed to the target method.
63
- *
64
- * @param target - The target object to be assigned with the source properties and functions
65
- * @param name - The function name that will be added on the target
66
- * @param source - The source object which will be assigned / called by setting / calling the targets proxies
67
- * @param theFunc - The function name on the source that will be proxied on the target
68
- * @param overwriteTarget - If `false` this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name
69
- */
70
- export declare function proxyFunctionAs<T, S>(target: T, name: string, source: S | (() => S), theFunc: (keyof S), overwriteTarget?: boolean): void;
71
- /**
72
- * Creates proxy functions on the target which internally will call the source version with all arguments passed to the target method.
73
- *
74
- * @param target - The target object to be assigned with the source properties and functions
75
- * @param source - The source object which will be assigned / called by setting / calling the targets proxies
76
- * @param functionsToProxy - An array of function names that will be proxied on the target
77
- * @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name
78
- */
79
- export declare function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget?: boolean): T;
80
- /**
81
- * Simpler helper to create a dynamic class that implements the interface and populates the values with the defaults.
82
- * Only instance properties (hasOwnProperty) values are copied from the defaults to the new instance
83
- * @param defaults - Simple helper
84
- */
85
- export declare function createClassFromInterface<T>(defaults?: T): new () => T;
86
- /**
87
- * A helper function to assist with JIT performance for objects that have properties added / removed dynamically
88
- * this is primarily for chromium based browsers and has limited effects on Firefox and none of IE. Only call this
89
- * function after you have finished "updating" the object, calling this within loops reduces or defeats the benefits.
90
- * This helps when iterating using for..in, objKeys() and objForEach()
91
- * @param theObject - The object to be optimized if possible
92
- */
93
- export declare function optimizeObject<T>(theObject: T): T;
94
- /**
95
- * Pass in the objects to merge as arguments, this will only "merge" (extend) properties that are owned by the object.
96
- * It will NOT merge inherited or non-enumerable properties.
97
- * @param obj1 - object to merge. Set this argument to 'true' for a deep extend.
98
- * @param obj2 - object to merge.
99
- * @param obj3 - object to merge.
100
- * @param obj4 - object to merge.
101
- * @param obj5 - object to merge.
102
- * @returns The extended first object.
103
- */
104
- export declare function objExtend<T2, T3, T4, T5, T6>(deepExtend?: boolean, obj2?: T2, obj3?: T3, obj4?: T4, obj5?: T5, obj6?: T6): T2 & T3 & T4 & T5 & T6;
105
- export declare function objExtend<T1, T2, T3, T4, T5, T6>(obj1?: T1, obj2?: T2, obj3?: T3, obj4?: T4, obj5?: T5, obj6?: T6): T1 & T2 & T3 & T4 & T5 & T6;
106
- export declare const asString: (value: any) => string;
@@ -1,43 +0,0 @@
1
- import { IInstrumentHook, IInstrumentHooksCallbacks } from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
2
- /**
3
- * Intercept the named prototype functions for the target class / object
4
- * @param target - The target object
5
- * @param funcName - The function name
6
- * @param callbacks - The callbacks to configure and call whenever the function is called
7
- */
8
- export declare function InstrumentProto(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks): IInstrumentHook;
9
- /**
10
- * Intercept the named prototype functions for the target class / object
11
- * @param target - The target object
12
- * @param funcNames - The function names to intercept and call
13
- * @param callbacks - The callbacks to configure and call whenever the function is called
14
- */
15
- export declare function InstrumentProtos(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks): IInstrumentHook[];
16
- /**
17
- * Intercept the named prototype functions for the target class / object
18
- * @param target - The target object
19
- * @param funcName - The function name
20
- * @param callbacks - The callbacks to configure and call whenever the function is called
21
- * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
22
- * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
23
- */
24
- export declare function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
25
- /**
26
- * Intercept the named functions for the target class / object
27
- * @param target - The target object
28
- * @param funcNames - The function names to intercept and call
29
- * @param callbacks - The callbacks to configure and call whenever the function is called
30
- * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
31
- * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
32
- */
33
- export declare function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
34
- /**
35
- * Add an instrumentation hook to the provided named "event" for the target class / object, this doesn't check whether the
36
- * named "event" is in fact a function and just assigns the instrumentation hook to the target[evtName]
37
- * @param target - The target object
38
- * @param evtName - The name of the event
39
- * @param callbacks - The callbacks to configure and call whenever the function is called
40
- * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
41
- * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
42
- */
43
- export declare function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
@@ -1,20 +0,0 @@
1
- export declare const UNDEFINED_VALUE: any;
2
- export declare const STR_EMPTY = "";
3
- export declare const STR_CHANNELS = "channels";
4
- export declare const STR_CORE = "core";
5
- export declare const STR_CREATE_PERF_MGR = "createPerfMgr";
6
- export declare const STR_DISABLED = "disabled";
7
- export declare const STR_EXTENSION_CONFIG = "extensionConfig";
8
- export declare const STR_EXTENSIONS = "extensions";
9
- export declare const STR_PROCESS_TELEMETRY = "processTelemetry";
10
- export declare const STR_PRIORITY = "priority";
11
- export declare const STR_EVENTS_SENT = "eventsSent";
12
- export declare const STR_EVENTS_DISCARDED = "eventsDiscarded";
13
- export declare const STR_EVENTS_SEND_REQUEST = "eventsSendRequest";
14
- export declare const STR_PERF_EVENT = "perfEvent";
15
- export declare const STR_ERROR_TO_CONSOLE = "errorToConsole";
16
- export declare const STR_WARN_TO_CONSOLE = "warnToConsole";
17
- export declare const STR_GET_PERF_MGR = "getPerfMgr";
18
- export declare const STR_DOMAIN = "domain";
19
- export declare const STR_PATH = "path";
20
- export declare const STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
@@ -1,46 +0,0 @@
1
- import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
2
- import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
3
- import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
4
- import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
5
- import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
6
- /**
7
- * Class to manage sending notifications to all the listeners.
8
- */
9
- export declare class NotificationManager implements INotificationManager {
10
- listeners: INotificationListener[];
11
- constructor(config?: IConfiguration);
12
- /**
13
- * Adds a notification listener.
14
- * @param listener - The notification listener to be added.
15
- */
16
- addNotificationListener(listener: INotificationListener): void;
17
- /**
18
- * Removes all instances of the listener.
19
- * @param listener - AWTNotificationListener to remove.
20
- */
21
- removeNotificationListener(listener: INotificationListener): void;
22
- /**
23
- * Notification for events sent.
24
- * @param events - The array of events that have been sent.
25
- */
26
- eventsSent(events: ITelemetryItem[]): void;
27
- /**
28
- * Notification for events being discarded.
29
- * @param events - The array of events that have been discarded by the SDK.
30
- * @param reason - The reason for which the SDK discarded the events. The EventsDiscardedReason
31
- * constant should be used to check the different values.
32
- */
33
- eventsDiscarded(events: ITelemetryItem[], reason: number): void;
34
- /**
35
- * [Optional] A function called when the events have been requested to be sent to the sever.
36
- * @param sendReason - The reason why the event batch is being sent.
37
- * @param isAsync - A flag which identifies whether the requests are being sent in an async or sync manner.
38
- */
39
- eventsSendRequest?(sendReason: number, isAsync: boolean): void;
40
- /**
41
- * [Optional] This event is sent if you have enabled perf events, they are primarily used to track internal performance testing and debugging
42
- * the event can be displayed via the debug plugin extension.
43
- * @param perfEvent
44
- */
45
- perfEvent?(perfEvent: IPerfEvent): void;
46
- }
@@ -1,93 +0,0 @@
1
- import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
2
- import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
3
- import { IPerfManager, IPerfManagerProvider } from "../JavaScriptSDK.Interfaces/IPerfManager";
4
- export declare class PerfEvent implements IPerfEvent {
5
- static ParentContextKey: string;
6
- static ChildrenContextKey: string;
7
- /**
8
- * The name of the event
9
- */
10
- name: string;
11
- /**
12
- * The start time of the event in ms
13
- */
14
- start: number;
15
- /**
16
- * The payload (contents) of the perfEvent, may be null or only set after the event has completed depending on
17
- * the runtime environment.
18
- */
19
- payload: any;
20
- /**
21
- * Is this occurring from an asynchronous event
22
- */
23
- isAsync: boolean;
24
- /**
25
- * Identifies the total inclusive time spent for this event, including the time spent for child events,
26
- * this will be undefined until the event is completed
27
- */
28
- time?: number;
29
- /**
30
- * Identifies the exclusive time spent in for this event (not including child events),
31
- * this will be undefined until the event is completed.
32
- */
33
- exTime?: number;
34
- /**
35
- * Identifies whether this event is a child event of a parent
36
- */
37
- isChildEvt: () => boolean;
38
- getCtx?: (key: string) => any | null | undefined;
39
- setCtx?: (key: string, value: any) => void;
40
- complete: () => void;
41
- constructor(name: string, payloadDetails: () => any, isAsync: boolean);
42
- }
43
- export declare class PerfManager implements IPerfManager {
44
- /**
45
- * General bucket used for execution context set and retrieved via setCtx() and getCtx.
46
- * Defined as private so it can be visualized via the DebugPlugin
47
- */
48
- private ctx;
49
- constructor(manager?: INotificationManager);
50
- /**
51
- * Create a new event and start timing, the manager may return null/undefined to indicate that it does not
52
- * want to monitor this source event.
53
- * @param src - The source name of the event
54
- * @param payloadDetails - An optional callback function to fetch the payload details for the event.
55
- * @param isAsync - Is the event occurring from a async event
56
- */
57
- create(src: string, payload?: any, isAsync?: boolean): IPerfEvent | null | undefined;
58
- /**
59
- * Complete the perfEvent and fire any notifications.
60
- * @param perfEvent - Fire the event which will also complete the passed event
61
- */
62
- fire(perfEvent: IPerfEvent): void;
63
- /**
64
- * Set an execution context value
65
- * @param key - The context key name
66
- * @param value - The value
67
- */
68
- setCtx(key: string, value: any): void;
69
- /**
70
- * Get the execution context value
71
- * @param key - The context key
72
- */
73
- getCtx(key: string): any;
74
- }
75
- /**
76
- * Helper function to wrap a function with a perf event
77
- * @param mgrSource - The Performance Manager or a Performance provider source (may be null)
78
- * @param getSource - The callback to create the source name for the event (if perf monitoring is enabled)
79
- * @param func - The function to call and measure
80
- * @param details - A function to return the payload details
81
- * @param isAsync - Is the event / function being call asynchronously or synchronously
82
- */
83
- export declare function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean): T;
84
- /**
85
- * Set the global performance manager to use when there is no core instance or it has not been initialized yet.
86
- * @param perfManager - The IPerfManager instance to use when no performance manager is supplied.
87
- */
88
- export declare function setGblPerfMgr(perfManager: IPerfManager): void;
89
- /**
90
- * Get the current global performance manager that will be used with no performance manager is supplied.
91
- * @returns - The current default manager
92
- */
93
- export declare function getGblPerfMgr(): IPerfManager;