@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,1374 +0,0 @@
1
- ## API Report File for "@microsoft/applicationinsights-core-js"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { arrForEach } from '@nevware21/ts-utils';
8
- import { arrIndexOf } from '@nevware21/ts-utils';
9
- import { arrMap } from '@nevware21/ts-utils';
10
- import { arrReduce } from '@nevware21/ts-utils';
11
- import { asString } from '@nevware21/ts-utils';
12
- import { utcNow as dateNow } from '@nevware21/ts-utils';
13
- import { objDeepFreeze as deepFreeze } from '@nevware21/ts-utils';
14
- import { dumpObj } from '@nevware21/ts-utils';
15
- import { EnumCls } from '@nevware21/ts-utils';
16
- import { getDocument } from '@nevware21/ts-utils';
17
- import { getGlobal } from '@microsoft/applicationinsights-shims';
18
- import { getInst as getGlobalInst } from '@nevware21/ts-utils';
19
- import { getHistory } from '@nevware21/ts-utils';
20
- import { getNavigator } from '@nevware21/ts-utils';
21
- import { getPerformance } from '@nevware21/ts-utils';
22
- import { getWindow } from '@nevware21/ts-utils';
23
- import { hasDocument } from '@nevware21/ts-utils';
24
- import { hasHistory } from '@nevware21/ts-utils';
25
- import { hasNavigator } from '@nevware21/ts-utils';
26
- import { objHasOwnProperty as hasOwnProperty } from '@nevware21/ts-utils';
27
- import { hasWindow } from '@nevware21/ts-utils';
28
- import { isArray } from '@nevware21/ts-utils';
29
- import { isBoolean } from '@nevware21/ts-utils';
30
- import { isDate } from '@nevware21/ts-utils';
31
- import { isError } from '@nevware21/ts-utils';
32
- import { isFunction } from '@nevware21/ts-utils';
33
- import { isNotTruthy } from '@nevware21/ts-utils';
34
- import { isNullOrUndefined } from '@nevware21/ts-utils';
35
- import { isNumber } from '@nevware21/ts-utils';
36
- import { isObject } from '@nevware21/ts-utils';
37
- import { isString } from '@nevware21/ts-utils';
38
- import { isSymbol } from '@nevware21/ts-utils';
39
- import { isTruthy } from '@nevware21/ts-utils';
40
- import { isTypeof } from '@nevware21/ts-utils';
41
- import { isUndefined } from '@nevware21/ts-utils';
42
- import { ITimerHandler } from '@nevware21/ts-utils';
43
- import { objCreateFn as objCreate } from '@microsoft/applicationinsights-shims';
44
- import { objDefineAccessors } from '@nevware21/ts-utils';
45
- import { objForEachKey } from '@nevware21/ts-utils';
46
- import { objFreeze } from '@nevware21/ts-utils';
47
- import { objKeys } from '@nevware21/ts-utils';
48
- import { objSeal } from '@nevware21/ts-utils';
49
- import { objToString } from '@nevware21/ts-utils';
50
- import { perfNow } from '@nevware21/ts-utils';
51
- import { strEndsWith } from '@nevware21/ts-utils';
52
- import { strShimFunction as strFunction } from '@microsoft/applicationinsights-shims';
53
- import { strShimObject as strObject } from '@microsoft/applicationinsights-shims';
54
- import { strShimPrototype as strPrototype } from '@microsoft/applicationinsights-shims';
55
- import { strStartsWith } from '@nevware21/ts-utils';
56
- import { strTrim } from '@nevware21/ts-utils';
57
- import { strShimUndefined as strUndefined } from '@microsoft/applicationinsights-shims';
58
- import { throwError } from '@nevware21/ts-utils';
59
-
60
- // @public
61
- export function __getRegisteredEvents(target: any, eventName?: string, evtNamespace?: string | string[]): _IRegisteredEvents[];
62
-
63
- // @public
64
- export function addEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): boolean;
65
-
66
- // @public
67
- export function addEventListeners(events: string[], listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
68
-
69
- // @public
70
- export function addPageHideEventListener(listener: any, excludeEvents?: string[] | null, evtNamespace?: string | string[] | null): boolean;
71
-
72
- // @public
73
- export function addPageShowEventListener(listener: any, excludeEvents?: string[] | null, evtNamespace?: string | string[] | null): boolean;
74
-
75
- // @public
76
- export function addPageUnloadEventListener(listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
77
-
78
- // @public (undocumented)
79
- export class AppInsightsCore<CfgType extends IConfiguration = IConfiguration> implements IAppInsightsCore<CfgType> {
80
- constructor();
81
- addNotificationListener(listener: INotificationListener): void;
82
- addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
83
- addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
84
- addUnloadCb(handler: UnloadHandler): void;
85
- addUnloadHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
86
- // (undocumented)
87
- config: CfgType;
88
- // (undocumented)
89
- eventCnt(): number;
90
- evtNamespace(): string;
91
- flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
92
- // (undocumented)
93
- getChannels(): IChannelControls[];
94
- getCookieMgr(): ICookieMgr;
95
- // (undocumented)
96
- getNotifyMgr(): INotificationManager;
97
- // (undocumented)
98
- getPerfMgr(): IPerfManager;
99
- // (undocumented)
100
- getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
101
- // (undocumented)
102
- getProcessTelContext(): IProcessTelemetryContext;
103
- getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
104
- getWParam: () => number;
105
- // (undocumented)
106
- initialize(config: CfgType, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
107
- isInitialized: () => boolean;
108
- // (undocumented)
109
- logger: IDiagnosticLogger;
110
- onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
111
- readonly pluginVersionString: string;
112
- readonly pluginVersionStringArr: string[];
113
- pollInternalLogs(eventName?: string): ITimerHandler;
114
- // (undocumented)
115
- protected releaseQueue(): void;
116
- removeNotificationListener(listener: INotificationListener): void;
117
- setCookieMgr(cookieMgr: ICookieMgr): void;
118
- // (undocumented)
119
- setPerfMgr(perfMgr: IPerfManager): void;
120
- setTraceCtx(newTracectx: IDistributedTraceContext): void;
121
- stopPollingInternalLogs(): void;
122
- // (undocumented)
123
- track(telemetryItem: ITelemetryItem): void;
124
- unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
125
- updateCfg(newConfig: CfgType, mergeExisting?: boolean): void;
126
- protected _updateHook?(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
127
- }
128
-
129
- // @public (undocumented)
130
- export function areCookiesSupported(logger?: IDiagnosticLogger): any;
131
-
132
- export { arrForEach }
133
-
134
- export { arrIndexOf }
135
-
136
- export { arrMap }
137
-
138
- export { arrReduce }
139
-
140
- export { asString }
141
-
142
- // @public
143
- export function attachEvent(obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture?: boolean): boolean;
144
-
145
- // @public
146
- export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
147
- constructor();
148
- protected _addHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
149
- protected _addUnloadCb(handler: UnloadHandler): void;
150
- core: IAppInsightsCore;
151
- diagLog: (itemCtx?: IProcessTelemetryContext) => IDiagnosticLogger;
152
- protected _doTeardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
153
- protected _doUpdate?: (updateCtx?: IProcessTelemetryUpdateContext, updateState?: ITelemetryUpdateState, asyncCallback?: () => void) => void | boolean;
154
- protected _getTelCtx: (currentCtx?: IProcessTelemetryContext) => IProcessTelemetryContext;
155
- // (undocumented)
156
- identifier: string;
157
- // (undocumented)
158
- initialize(config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
159
- isInitialized: () => boolean;
160
- // (undocumented)
161
- priority: number;
162
- processNext: (env: ITelemetryItem, itemCtx: IProcessTelemetryContext) => void;
163
- // (undocumented)
164
- abstract processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
165
- protected setInitialized: (isInitialized: boolean) => void;
166
- setNextPlugin: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
167
- teardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void | boolean;
168
- protected readonly _unloadHooks: IUnloadHookContainer;
169
- update(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
170
- // (undocumented)
171
- version?: string;
172
- }
173
-
174
- // @public
175
- export function blockDynamicConversion<T>(value: T): T;
176
-
177
- // @public
178
- export function cfgDfBoolean<T, C = IConfiguration>(defaultValue?: boolean, fallBackName?: keyof T | keyof C | Array<keyof T | keyof C>): IConfigDefaultCheck<T, boolean, C>;
179
-
180
- // @public
181
- export function cfgDfFunc<V, T, C = IConfiguration>(defaultValue?: V): IConfigDefaultCheck<T, V, C>;
182
-
183
- // @public
184
- export function cfgDfMerge<V, T = IConfiguration, C = IConfiguration>(defaultValue: V | IConfigDefaults<V, T>): IConfigDefaultCheck<T, V, C>;
185
-
186
- // @public
187
- export function cfgDfSet<V, T, C = IConfiguration>(setter: IConfigSetFn<T, V>, defaultValue: V): IConfigDefaultCheck<T, V, C>;
188
-
189
- // @public
190
- export function cfgDfString<T, C = IConfiguration>(defaultValue?: string): IConfigDefaultCheck<T, string, C>;
191
-
192
- // @public
193
- export function cfgDfValidate<V, T, C = IConfiguration>(validator: IConfigCheckFn<V>, defaultValue: V, fallBackName?: keyof T | keyof C | Array<keyof T | keyof C>): IConfigDefaultCheck<T, V, C>;
194
-
195
- // @public
196
- export function createClassFromInterface<T>(defaults?: T): new () => T;
197
-
198
- // @public (undocumented)
199
- export function createCookieMgr(rootConfig?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
200
-
201
- // @public
202
- export function createDynamicConfig<T extends IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
203
-
204
- // @public
205
- export const createEnumStyle: <E>(values: {
206
- [key in keyof E]: E[keyof E];
207
- }) => EnumValue<E>;
208
-
209
- // @public
210
- export function createProcessTelemetryContext(telemetryChain: ITelemetryPluginChain | null, cfg: IConfiguration, core: IAppInsightsCore, startAt?: IPlugin): IProcessTelemetryContext;
211
-
212
- // @public
213
- export function createTraceParent(traceId?: string, spanId?: string, flags?: number, version?: string): ITraceParent;
214
-
215
- // @public (undocumented)
216
- export function createUniqueNamespace(name: string, includeVersion?: boolean): string;
217
-
218
- // @public (undocumented)
219
- export function createUnloadHandlerContainer(): IUnloadHandlerContainer;
220
-
221
- // @public
222
- export function createUnloadHookContainer(): IUnloadHookContainer;
223
-
224
- // @public
225
- export const createValueMap: <E, V = E>(values: {
226
- [key in keyof E]: [E[keyof E], V[keyof V]];
227
- }) => V;
228
-
229
- export { dateNow }
230
-
231
- export { deepFreeze }
232
-
233
- // @public
234
- export function detachEvent(obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture?: boolean): void;
235
-
236
- // @public (undocumented)
237
- export class DiagnosticLogger implements IDiagnosticLogger {
238
- constructor(config?: IConfiguration);
239
- consoleLoggingLevel(): number;
240
- errorToConsole(message: string): void;
241
- // (undocumented)
242
- identifier: string;
243
- logInternalMessage(severity: LoggingSeverity, message: _InternalLogMessage): void;
244
- queue: _InternalLogMessage[];
245
- resetInternalMessageCount(): void;
246
- throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
247
- // (undocumented)
248
- update(updateState: ITelemetryUpdateState): void;
249
- warnToConsole(message: string): void;
250
- }
251
-
252
- // @public
253
- export function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean): T;
254
-
255
- export { dumpObj }
256
-
257
- // @public
258
- export const enum eEventsDiscardedReason {
259
- InvalidEvent = 2,
260
- KillSwitch = 4,
261
- NonRetryableStatus = 1,
262
- QueueFull = 5,
263
- SizeLimitExceeded = 3,
264
- Unknown = 0
265
- }
266
-
267
- // @public (undocumented)
268
- export const enum _eInternalMessageId {
269
- // (undocumented)
270
- BrowserCannotReadLocalStorage = 1,
271
- // (undocumented)
272
- BrowserCannotReadSessionStorage = 2,
273
- // (undocumented)
274
- BrowserCannotWriteLocalStorage = 3,
275
- // (undocumented)
276
- BrowserCannotWriteSessionStorage = 4,
277
- // (undocumented)
278
- BrowserDoesNotSupportLocalStorage = 0,
279
- // (undocumented)
280
- BrowserFailedRemovalFromLocalStorage = 5,
281
- // (undocumented)
282
- BrowserFailedRemovalFromSessionStorage = 6,
283
- // (undocumented)
284
- CannotAccessCookie = 68,
285
- // (undocumented)
286
- CannotParseAiBlobValue = 101,
287
- // (undocumented)
288
- CannotSendEmptyTelemetry = 7,
289
- // (undocumented)
290
- CannotSerializeObject = 48,
291
- // (undocumented)
292
- CannotSerializeObjectNonSerializable = 49,
293
- // (undocumented)
294
- CircularReferenceDetected = 50,
295
- // (undocumented)
296
- ClearAuthContextFailed = 51,
297
- // (undocumented)
298
- ClientPerformanceMathError = 8,
299
- // (undocumented)
300
- ConfigWatcherException = 107,
301
- // (undocumented)
302
- CreateEnvelopeError = 47,
303
- // (undocumented)
304
- DynamicConfigException = 108,
305
- // (undocumented)
306
- ErrorParsingAISessionCookie = 9,
307
- // (undocumented)
308
- ErrorPVCalc = 10,
309
- // (undocumented)
310
- ExceptionTruncated = 52,
311
- // (undocumented)
312
- ExceptionWhileLoggingError = 11,
313
- // (undocumented)
314
- FailedAddingCustomDefinedRequestContext = 104,
315
- // (undocumented)
316
- FailedAddingTelemetryToBuffer = 12,
317
- // (undocumented)
318
- FailedMonitorAjaxAbort = 13,
319
- // (undocumented)
320
- FailedMonitorAjaxDur = 14,
321
- // (undocumented)
322
- FailedMonitorAjaxGetCorrelationHeader = 18,
323
- // (undocumented)
324
- FailedMonitorAjaxOpen = 15,
325
- // (undocumented)
326
- FailedMonitorAjaxRSC = 16,
327
- // (undocumented)
328
- FailedMonitorAjaxSend = 17,
329
- // (undocumented)
330
- FailedMonitorAjaxSetRequestHeader = 71,
331
- // (undocumented)
332
- FailedToAddHandlerForOnBeforeUnload = 19,
333
- // (undocumented)
334
- FailedToFixDepricatedValues = 44,
335
- // (undocumented)
336
- FailedToReportDataLoss = 21,
337
- // (undocumented)
338
- FailedToRestoreStorageBuffer = 42,
339
- // (undocumented)
340
- FailedToSendQueuedTelemetry = 20,
341
- // (undocumented)
342
- FailedToSetStorageBuffer = 41,
343
- // (undocumented)
344
- FlushFailed = 22,
345
- // (undocumented)
346
- IdTooLong = 69,
347
- // (undocumented)
348
- IllegalCharsInName = 53,
349
- // (undocumented)
350
- InMemoryStorageBufferFull = 105,
351
- // (undocumented)
352
- InstrumentationKeyDeprecation = 106,
353
- // (undocumented)
354
- InvalidBackendResponse = 43,
355
- // (undocumented)
356
- InvalidContentBlob = 102,
357
- // (undocumented)
358
- InvalidDurationValue = 45,
359
- // (undocumented)
360
- InvalidEvent = 70,
361
- // (undocumented)
362
- InvalidInstrumentationKey = 100,
363
- // (undocumented)
364
- ItemNotInArray = 54,
365
- // (undocumented)
366
- MaxAjaxPerPVExceeded = 55,
367
- // (undocumented)
368
- MessageLimitPerPVExceeded = 23,
369
- // (undocumented)
370
- MessageTruncated = 56,
371
- // (undocumented)
372
- MissingRequiredFieldSpecification = 24,
373
- // (undocumented)
374
- NameTooLong = 57,
375
- // (undocumented)
376
- NavigationTimingNotSupported = 25,
377
- // (undocumented)
378
- NotificationException = 74,
379
- // (undocumented)
380
- OnError = 26,
381
- // (undocumented)
382
- PluginException = 73,
383
- // (undocumented)
384
- SampleRateOutOfRange = 58,
385
- // (undocumented)
386
- SendBrowserInfoOnUserInit = 72,
387
- // (undocumented)
388
- SenderNotInitialized = 28,
389
- // (undocumented)
390
- SessionRenewalDateIsZero = 27,
391
- // (undocumented)
392
- SessionStorageBufferFull = 67,
393
- // (undocumented)
394
- SetAuthContextFailed = 59,
395
- // (undocumented)
396
- SetAuthContextFailedAccountName = 60,
397
- // (undocumented)
398
- SnippetScriptLoadFailure = 99,
399
- // (undocumented)
400
- StartCalledMoreThanOnce = 62,
401
- // (undocumented)
402
- StartTrackEventFailed = 29,
403
- // (undocumented)
404
- StartTrackFailed = 31,
405
- // (undocumented)
406
- StopCalledWithoutStart = 63,
407
- // (undocumented)
408
- StopTrackEventFailed = 30,
409
- // (undocumented)
410
- StopTrackFailed = 32,
411
- // (undocumented)
412
- StringValueTooLong = 61,
413
- // (undocumented)
414
- TelemetryEnvelopeInvalid = 46,
415
- // (undocumented)
416
- TelemetryInitializerFailed = 64,
417
- // (undocumented)
418
- TelemetrySampledAndNotSent = 33,
419
- // (undocumented)
420
- TrackArgumentsNotSpecified = 65,
421
- // (undocumented)
422
- TrackEventFailed = 34,
423
- // (undocumented)
424
- TrackExceptionFailed = 35,
425
- // (undocumented)
426
- TrackMetricFailed = 36,
427
- // (undocumented)
428
- TrackPageActionEventFailed = 103,
429
- // (undocumented)
430
- TrackPVFailed = 37,
431
- // (undocumented)
432
- TrackPVFailedCalc = 38,
433
- // (undocumented)
434
- TrackTraceFailed = 39,
435
- // (undocumented)
436
- TransmissionFailed = 40,
437
- // (undocumented)
438
- UrlTooLong = 66
439
- }
440
-
441
- // @public (undocumented)
442
- export const enum eLoggingSeverity {
443
- CRITICAL = 1,
444
- DISABLED = 0,
445
- WARNING = 2
446
- }
447
-
448
- // @public (undocumented)
449
- export type EnumValue<E = any> = EnumCls<E>;
450
-
451
- // @public
452
- export function eventOff<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): void;
453
-
454
- // @public
455
- export function eventOn<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): boolean;
456
-
457
- // @public
458
- export const EventsDiscardedReason: EnumValue<typeof eEventsDiscardedReason>;
459
-
460
- // @public (undocumented)
461
- export type EventsDiscardedReason = number | eEventsDiscardedReason;
462
-
463
- // @public
464
- export function findMetaTag(name: string): any;
465
-
466
- // @public
467
- export function findNamedServerTiming(name: string): any;
468
-
469
- // @public
470
- export function findW3cTraceParent(): ITraceParent;
471
-
472
- // @public
473
- export function forceDynamicConversion<T>(value: T): T;
474
-
475
- // @public
476
- export function formatTraceParent(value: ITraceParent): string;
477
-
478
- // @public
479
- export function generateW3CId(): string;
480
-
481
- // @public
482
- export function getConsole(): Console | null;
483
-
484
- // @public
485
- export function getCrypto(): Crypto | null;
486
-
487
- // @public (undocumented)
488
- export function getDebugExt(config: IConfiguration): IDbgExtension;
489
-
490
- // @public (undocumented)
491
- export function getDebugListener(config: IConfiguration): INotificationListener;
492
-
493
- export { getDocument }
494
-
495
- // Warning: (ae-internal-missing-underscore) The name "getDynamicConfigHandler" should be prefixed with an underscore because the declaration is marked as @internal
496
- //
497
- // @internal
498
- export function getDynamicConfigHandler<T>(value: T | IDynamicConfigHandler<T>): IDynamicConfigHandler<T> | null;
499
-
500
- // @public
501
- export function getExceptionName(object: any): string;
502
-
503
- // @public
504
- export function getGblPerfMgr(): IPerfManager;
505
-
506
- export { getGlobal }
507
-
508
- export { getGlobalInst }
509
-
510
- export { getHistory }
511
-
512
- // @public
513
- export function getIEVersion(userAgentStr?: string): number;
514
-
515
- // @public
516
- export function getJSON(): JSON | null;
517
-
518
- // @public
519
- export function getLocation(checkForMock?: boolean): Location | null;
520
-
521
- // @public
522
- export function getMsCrypto(): Crypto | null;
523
-
524
- export { getNavigator }
525
-
526
- export { getPerformance }
527
-
528
- // @public
529
- export function getSetValue<T, K extends keyof T>(target: T, field: K, defValue?: T[K]): T[K];
530
-
531
- export { getWindow }
532
-
533
- export { hasDocument }
534
-
535
- export { hasHistory }
536
-
537
- // @public
538
- export function hasJSON(): boolean;
539
-
540
- export { hasNavigator }
541
-
542
- export { hasOwnProperty }
543
-
544
- export { hasWindow }
545
-
546
- // @public (undocumented)
547
- export interface IAppInsightsCore<CfgType extends IConfiguration = IConfiguration> extends IPerfManagerProvider {
548
- addNotificationListener?(listener: INotificationListener): void;
549
- addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
550
- addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
551
- addUnloadCb(handler: UnloadHandler): void;
552
- addUnloadHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
553
- // (undocumented)
554
- readonly config: CfgType;
555
- evtNamespace(): string;
556
- flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
557
- // (undocumented)
558
- getChannels(): IChannelControls[];
559
- getCookieMgr(): ICookieMgr;
560
- getNotifyMgr(): INotificationManager;
561
- getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
562
- getProcessTelContext(): IProcessTelemetryContext;
563
- getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
564
- getWParam: () => number;
565
- // (undocumented)
566
- initialize(config: CfgType, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
567
- isInitialized?: () => boolean;
568
- readonly logger: IDiagnosticLogger;
569
- onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
570
- readonly pluginVersionString: string;
571
- readonly pluginVersionStringArr: string[];
572
- // (undocumented)
573
- pollInternalLogs?(eventName?: string): ITimerHandler;
574
- removeNotificationListener?(listener: INotificationListener): void;
575
- setCookieMgr(cookieMgr: ICookieMgr): void;
576
- setTraceCtx(newTraceCtx: IDistributedTraceContext | null | undefined): void;
577
- // (undocumented)
578
- stopPollingInternalLogs?(): void;
579
- // (undocumented)
580
- track(telemetryItem: ITelemetryItem): void;
581
- unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
582
- updateCfg(newConfig: CfgType, mergeExisting?: boolean): void;
583
- }
584
-
585
- // @public (undocumented)
586
- export interface IBaseProcessingContext {
587
- core: () => IAppInsightsCore;
588
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IBaseProcessingContext;
589
- diagLog: () => IDiagnosticLogger;
590
- getCfg: () => IConfiguration;
591
- getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean | string[] | RegExp[] | Function) => number | string | boolean | string[] | RegExp[] | Function;
592
- getExtCfg: <T>(identifier: string, defaultValue?: IConfigDefaults<T>) => T;
593
- getNext: () => ITelemetryPluginChain;
594
- hasNext: () => boolean;
595
- iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
596
- onComplete: (onComplete: () => void, that?: any, ...args: any[]) => void;
597
- setNext: (nextCtx: ITelemetryPluginChain) => void;
598
- }
599
-
600
- // @public
601
- export interface IChannelControls extends ITelemetryPlugin {
602
- flush?(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
603
- pause?(): void;
604
- resume?(): void;
605
- teardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
606
- }
607
-
608
- // @public (undocumented)
609
- export interface IChannelControlsHost extends IChannelControls {
610
- getChannel<T extends IPlugin = IPlugin>(pluginIdentifier: string): T;
611
- }
612
-
613
- // @public
614
- export type IConfigCheckFn<V> = (value: V) => boolean;
615
-
616
- // @public
617
- export interface IConfigDefaultCheck<T, V, C = IConfiguration> {
618
- dfVal?: (value: any) => boolean;
619
- fb?: keyof T | keyof C | Array<keyof T | keyof C>;
620
- isVal?: IConfigCheckFn<V>;
621
- mrg?: boolean;
622
- rdOnly?: boolean;
623
- ref?: boolean;
624
- set?: IConfigSetFn<T, V>;
625
- v?: V | IConfigDefaults<V, T>;
626
- }
627
-
628
- // @public
629
- export type IConfigDefaults<T, C = IConfiguration> = {
630
- [key in keyof T]: T[key] | IConfigDefaultCheck<T, T[key], C>;
631
- };
632
-
633
- // @public
634
- export type IConfigSetFn<T, V> = (value: any, defValue: V, theConfig: T) => V;
635
-
636
- // @public
637
- export interface IConfiguration {
638
- readonly channels?: IChannelControls[][];
639
- connectionString?: string;
640
- cookieCfg?: ICookieMgrConfig;
641
- cookieDomain?: string;
642
- cookiePath?: string;
643
- createPerfMgr?: (core: IAppInsightsCore, notificationManager: INotificationManager) => IPerfManager;
644
- diagnosticLogInterval?: number;
645
- disableCookiesUsage?: boolean;
646
- disableDbgExt?: boolean;
647
- disableInstrumentationKeyValidation?: boolean;
648
- disablePageShowEvents?: string[];
649
- disablePageUnloadEvents?: string[];
650
- enableDebug?: boolean;
651
- enablePerfMgr?: boolean;
652
- enableWParam?: boolean;
653
- endpointUrl?: string;
654
- extensionConfig?: {
655
- [key: string]: any;
656
- };
657
- readonly extensions?: ITelemetryPlugin[];
658
- idLength?: number;
659
- instrumentationKey?: string;
660
- loggingLevelConsole?: number;
661
- loggingLevelTelemetry?: number;
662
- maxMessageLimit?: number;
663
- perfEvtsSendAll?: boolean;
664
- }
665
-
666
- // @public (undocumented)
667
- export interface ICookieMgr {
668
- del(name: string, path?: string): boolean;
669
- get(name: string): string;
670
- isEnabled(): boolean;
671
- purge(name: string, path?: string): boolean;
672
- set(name: string, value: string, maxAgeSec?: number, domain?: string, path?: string): boolean;
673
- setEnabled(value: boolean): void;
674
- update?(updateState: ITelemetryUpdateState): void;
675
- }
676
-
677
- // @public
678
- export interface ICookieMgrConfig {
679
- blockedCookies?: string[];
680
- delCookie?: (name: string, cookieValue: string) => void;
681
- domain?: string;
682
- enabled?: boolean;
683
- getCookie?: (name: string) => string;
684
- ignoreCookies?: string[];
685
- path?: string;
686
- setCookie?: (name: string, value: string) => void;
687
- }
688
-
689
- // @public (undocumented)
690
- export interface ICustomProperties {
691
- // (undocumented)
692
- [key: string]: any;
693
- }
694
-
695
- // @public (undocumented)
696
- export interface IDbgExtension {
697
- // (undocumented)
698
- debugMsg?: (name: string, data: any) => void;
699
- // (undocumented)
700
- diagLog?: (name: string, data: any) => void;
701
- // (undocumented)
702
- disable: () => void;
703
- // (undocumented)
704
- enable: () => void;
705
- // (undocumented)
706
- isEnabled: () => boolean;
707
- // (undocumented)
708
- listener: INotificationListener;
709
- // (undocumented)
710
- sendEvt?: (name: string, data: any) => void;
711
- }
712
-
713
- // @public (undocumented)
714
- export interface IDiagnosticLogger {
715
- consoleLoggingLevel: () => number;
716
- errorToConsole?(message: string): void;
717
- logInternalMessage?(severity: LoggingSeverity, message: _InternalLogMessage): void;
718
- queue: _InternalLogMessage[];
719
- resetInternalMessageCount(): void;
720
- throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
721
- update?(updateState: ITelemetryUpdateState): void;
722
- warnToConsole(message: string): void;
723
- }
724
-
725
- // @public (undocumented)
726
- export interface IDistributedTraceContext {
727
- getName(): string;
728
- getSpanId(): string;
729
- getTraceFlags(): number | undefined;
730
- getTraceId(): string;
731
- setName(pageName: string): void;
732
- setSpanId(newValue: string): void;
733
- setTraceFlags(newValue?: number): void;
734
- setTraceId(newValue: string): void;
735
- }
736
-
737
- // @public
738
- export interface IDynamicConfigHandler<T extends IConfiguration> {
739
- cfg: T;
740
- logger: IDiagnosticLogger;
741
- notify: () => void;
742
- rdOnly: <C, V = any>(target: C, name: string) => V;
743
- ref: <C, V = any>(target: C, name: string) => V;
744
- set: <C, V>(theConfig: C, name: string, value: V) => V;
745
- setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C, T>) => C;
746
- readonly uid: string;
747
- watch: (configHandler: WatcherFunction<T>) => IWatcherHandler<T>;
748
- }
749
-
750
- // @public (undocumented)
751
- export interface IDynamicPropertyHandler<T> {
752
- h: IWatcherHandler<T>[];
753
- n: string;
754
- }
755
-
756
- // @public (undocumented)
757
- export interface IInstrumentCallDetails {
758
- ctx: () => any;
759
- err?: Error;
760
- evt?: Event;
761
- // (undocumented)
762
- inst: any;
763
- // (undocumented)
764
- name: string;
765
- rslt?: any;
766
- set: (idx: number, value: any) => void;
767
- }
768
-
769
- // @public
770
- export interface IInstrumentHook extends IUnloadHook {
771
- cbks: IInstrumentHooksCallbacks;
772
- id: number;
773
- rm: () => void;
774
- }
775
-
776
- // @public (undocumented)
777
- export interface IInstrumentHooks {
778
- // (undocumented)
779
- f: any;
780
- // (undocumented)
781
- h: IInstrumentHook[];
782
- // (undocumented)
783
- i: number;
784
- // (undocumented)
785
- n: string;
786
- }
787
-
788
- // @public
789
- export interface IInstrumentHooksCallbacks {
790
- fnErr?: InstrumentorHooksCallback;
791
- hkErr?: InstrumentorHooksCallback;
792
- ns?: string | string[];
793
- req?: InstrumentorHooksCallback;
794
- rsp?: InstrumentorHooksCallback;
795
- }
796
-
797
- // @public
798
- export interface ILegacyUnloadHook {
799
- remove: () => void;
800
- }
801
-
802
- // @public (undocumented)
803
- export interface ILoadedPlugin<T extends IPlugin> {
804
- isEnabled: () => boolean;
805
- // (undocumented)
806
- plugin: T;
807
- // (undocumented)
808
- remove: (isAsync?: boolean, removeCb?: (removed?: boolean) => void) => void;
809
- setEnabled: (isEnabled: boolean) => void;
810
- }
811
-
812
- // @public
813
- export function initializePlugins(processContext: IProcessTelemetryContext, extensions: IPlugin[]): void;
814
-
815
- // @public
816
- export interface INotificationListener {
817
- eventsDiscarded?: (events: ITelemetryItem[], reason: number) => void;
818
- eventsSendRequest?: (sendReason: number, isAsync?: boolean) => void;
819
- eventsSent?: (events: ITelemetryItem[]) => void;
820
- perfEvent?: (perfEvent: IPerfEvent) => void;
821
- }
822
-
823
- // @public
824
- export interface INotificationManager {
825
- addNotificationListener(listener: INotificationListener): void;
826
- eventsDiscarded(events: ITelemetryItem[], reason: number): void;
827
- eventsSendRequest?(sendReason: number, isAsync: boolean): void;
828
- eventsSent(events: ITelemetryItem[]): void;
829
- // (undocumented)
830
- listeners: INotificationListener[];
831
- perfEvent?(perfEvent: IPerfEvent): void;
832
- removeNotificationListener(listener: INotificationListener): void;
833
- }
834
-
835
- // @public
836
- export function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
837
-
838
- // @public
839
- export function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
840
-
841
- // @public
842
- export function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
843
-
844
- // @public
845
- export type InstrumentorHooksCallback = (funcArgs: IInstrumentCallDetails, ...orgArgs: any[]) => void;
846
-
847
- // @public
848
- export function InstrumentProto(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks): IInstrumentHook;
849
-
850
- // @public
851
- export function InstrumentProtos(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks): IInstrumentHook[];
852
-
853
- // @public (undocumented)
854
- export class _InternalLogMessage {
855
- constructor(msgId: _InternalMessageId, msg: string, isUserAct?: boolean, properties?: Object);
856
- // (undocumented)
857
- static dataType: string;
858
- // (undocumented)
859
- message: string;
860
- // (undocumented)
861
- messageId: _InternalMessageId;
862
- }
863
-
864
- // @public (undocumented)
865
- export type _InternalMessageId = number | _eInternalMessageId;
866
-
867
- // @public
868
- export interface IPerfEvent {
869
- childEvts?: IPerfEvent[];
870
- complete: () => void;
871
- exTime?: number;
872
- getCtx?: (key: string) => any;
873
- isAsync: boolean;
874
- isChildEvt: () => boolean;
875
- name: string;
876
- parent?: IPerfEvent;
877
- payload: any;
878
- setCtx?: (key: string, value: any) => void;
879
- start: number;
880
- time?: number;
881
- }
882
-
883
- // @public
884
- export interface IPerfManager {
885
- create(src: string, payloadDetails?: () => any, isAsync?: boolean): IPerfEvent | null | undefined;
886
- fire(perfEvent: IPerfEvent): void;
887
- getCtx(key: string): any;
888
- setCtx(key: string, value: any): void;
889
- }
890
-
891
- // @public
892
- export interface IPerfManagerProvider {
893
- getPerfMgr(): IPerfManager;
894
- setPerfMgr(perfMgr: IPerfManager): void;
895
- }
896
-
897
- // @public (undocumented)
898
- export interface IPlugin {
899
- core?: IAppInsightsCore;
900
- readonly identifier: string;
901
- initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
902
- isInitialized?: () => boolean;
903
- teardown?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
904
- readonly version?: string;
905
- }
906
-
907
- // @public
908
- export interface IProcessTelemetryContext extends IBaseProcessingContext {
909
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
910
- processNext: (env: ITelemetryItem) => boolean | void;
911
- }
912
-
913
- // @public
914
- export interface IProcessTelemetryUnloadContext extends IBaseProcessingContext {
915
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUnloadContext;
916
- processNext: (unloadState: ITelemetryUnloadState) => boolean | void;
917
- }
918
-
919
- // @public
920
- export interface IProcessTelemetryUpdateContext extends IBaseProcessingContext {
921
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUpdateContext;
922
- processNext: (updateState: ITelemetryUpdateState) => boolean | void;
923
- }
924
-
925
- // @public (undocumented)
926
- export interface _IRegisteredEvents {
927
- // (undocumented)
928
- handler: any;
929
- // (undocumented)
930
- name: string;
931
- }
932
-
933
- export { isArray }
934
-
935
- // @public
936
- export function isBeaconsSupported(): boolean;
937
-
938
- export { isBoolean }
939
-
940
- export { isDate }
941
-
942
- export { isError }
943
-
944
- // @public
945
- export function isFetchSupported(withKeepAlive?: boolean): boolean;
946
-
947
- export { isFunction }
948
-
949
- // @public
950
- export function isIE(): boolean;
951
-
952
- // @public (undocumented)
953
- export function isNotNullOrUndefined<T>(value: T): value is T;
954
-
955
- export { isNotTruthy }
956
-
957
- // @public (undocumented)
958
- export function isNotUndefined<T>(value: T): value is T;
959
-
960
- export { isNullOrUndefined }
961
-
962
- export { isNumber }
963
-
964
- export { isObject }
965
-
966
- // @public
967
- export function isReactNative(): boolean;
968
-
969
- // @public (undocumented)
970
- export function isSafari(userAgentStr?: string): boolean;
971
-
972
- // @public
973
- export function isSampledFlag(value: ITraceParent): boolean;
974
-
975
- export { isString }
976
-
977
- export { isSymbol }
978
-
979
- export { isTruthy }
980
-
981
- export { isTypeof }
982
-
983
- export { isUndefined }
984
-
985
- // @public
986
- export function isValidSpanId(value: string): boolean;
987
-
988
- // @public
989
- export function isValidTraceId(value: string): boolean;
990
-
991
- // @public
992
- export function isValidTraceParent(value: ITraceParent): boolean;
993
-
994
- // @public
995
- export function isXhrSupported(): boolean;
996
-
997
- // @public (undocumented)
998
- export interface ITelemetryInitializerContainer {
999
- addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
1000
- }
1001
-
1002
- // @public (undocumented)
1003
- export interface ITelemetryInitializerHandler extends ILegacyUnloadHook {
1004
- // (undocumented)
1005
- remove(): void;
1006
- }
1007
-
1008
- // @public
1009
- export interface ITelemetryItem {
1010
- baseData?: {
1011
- [key: string]: any;
1012
- };
1013
- baseType?: string;
1014
- data?: ICustomProperties;
1015
- ext?: {
1016
- [key: string]: any;
1017
- };
1018
- iKey?: string;
1019
- name: string;
1020
- tags?: Tags & Tags[];
1021
- time?: string;
1022
- ver?: string;
1023
- }
1024
-
1025
- // Warning: (ae-forgotten-export) The symbol "ITelemetryProcessor" needs to be exported by the entry point applicationinsights-core-js.d.ts
1026
- //
1027
- // @public
1028
- export interface ITelemetryPlugin extends ITelemetryProcessor, IPlugin {
1029
- readonly priority: number;
1030
- setNextPlugin?: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
1031
- }
1032
-
1033
- // @public
1034
- export interface ITelemetryPluginChain extends ITelemetryProcessor {
1035
- getNext: () => ITelemetryPluginChain;
1036
- getPlugin: () => ITelemetryPlugin;
1037
- unload?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
1038
- }
1039
-
1040
- // @public (undocumented)
1041
- export interface ITelemetryUnloadState {
1042
- // (undocumented)
1043
- flushComplete?: boolean;
1044
- // (undocumented)
1045
- isAsync: boolean;
1046
- // (undocumented)
1047
- reason: TelemetryUnloadReason;
1048
- }
1049
-
1050
- // @public (undocumented)
1051
- export interface ITelemetryUpdateState {
1052
- added?: IPlugin[];
1053
- cfg?: IConfiguration;
1054
- merge?: boolean;
1055
- newConfig?: IConfiguration;
1056
- oldCfg?: IConfiguration;
1057
- reason: TelemetryUpdateReason;
1058
- removed?: IPlugin[];
1059
- }
1060
-
1061
- // @public
1062
- export interface ITraceParent {
1063
- spanId: string;
1064
- traceFlags: number;
1065
- traceId: string;
1066
- version: string;
1067
- }
1068
-
1069
- // @public (undocumented)
1070
- export interface IUnloadableComponent {
1071
- _doUnload?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
1072
- }
1073
-
1074
- // @public (undocumented)
1075
- export interface IUnloadHandlerContainer {
1076
- // (undocumented)
1077
- add: (handler: UnloadHandler) => void;
1078
- // (undocumented)
1079
- run: (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
1080
- }
1081
-
1082
- // @public
1083
- export interface IUnloadHook {
1084
- rm: () => void;
1085
- }
1086
-
1087
- // @public
1088
- export interface IUnloadHookContainer {
1089
- // (undocumented)
1090
- add: (hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>) => void;
1091
- // (undocumented)
1092
- run: (logger?: IDiagnosticLogger) => void;
1093
- }
1094
-
1095
- // @public (undocumented)
1096
- export interface IWatchDetails<T extends IConfiguration> {
1097
- cfg: T;
1098
- rdOnly: <C, V = any>(target: C, name: string) => V;
1099
- ref: <C, V = any>(target: C, name: string) => V;
1100
- set: <C, V>(theConfig: C, name: string, value: V) => V;
1101
- setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C>) => C;
1102
- }
1103
-
1104
- // @public (undocumented)
1105
- export interface IWatcherHandler<T extends IConfiguration> extends IUnloadHook {
1106
- // (undocumented)
1107
- fn: WatcherFunction<T>;
1108
- // (undocumented)
1109
- rm: () => void;
1110
- }
1111
-
1112
- // @public (undocumented)
1113
- export const LoggingSeverity: EnumValue<typeof eLoggingSeverity>;
1114
-
1115
- // @public (undocumented)
1116
- export type LoggingSeverity = number | eLoggingSeverity;
1117
-
1118
- // @public
1119
- export function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage): void;
1120
-
1121
- // @public (undocumented)
1122
- export function mergeEvtNamespace(theNamespace: string, namespaces?: string | string[] | null): string | string[];
1123
-
1124
- // @public (undocumented)
1125
- export const MinChannelPriorty: number;
1126
-
1127
- // @public
1128
- export function mwcRandom32(signed?: boolean): number;
1129
-
1130
- // @public
1131
- export function mwcRandomSeed(value?: number): void;
1132
-
1133
- // @public (undocumented)
1134
- export function newGuid(): string;
1135
-
1136
- // @public
1137
- export function newId(maxLength?: number): string;
1138
-
1139
- // @public
1140
- export function normalizeJsName(name: string): string;
1141
-
1142
- // @public
1143
- export class NotificationManager implements INotificationManager {
1144
- constructor(config?: IConfiguration);
1145
- addNotificationListener(listener: INotificationListener): void;
1146
- eventsDiscarded(events: ITelemetryItem[], reason: number): void;
1147
- eventsSendRequest?(sendReason: number, isAsync: boolean): void;
1148
- eventsSent(events: ITelemetryItem[]): void;
1149
- // (undocumented)
1150
- listeners: INotificationListener[];
1151
- perfEvent?(perfEvent: IPerfEvent): void;
1152
- removeNotificationListener(listener: INotificationListener): void;
1153
- }
1154
-
1155
- export { objCreate }
1156
-
1157
- export { objDefineAccessors }
1158
-
1159
- // @public
1160
- export function objExtend<T2, T3, T4, T5, T6>(deepExtend?: boolean, obj2?: T2, obj3?: T3, obj4?: T4, obj5?: T5, obj6?: T6): T2 & T3 & T4 & T5 & T6;
1161
-
1162
- // @public (undocumented)
1163
- export 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;
1164
-
1165
- export { objForEachKey }
1166
-
1167
- export { objFreeze }
1168
-
1169
- export { objKeys }
1170
-
1171
- export { objSeal }
1172
-
1173
- export { objToString }
1174
-
1175
- // @public
1176
- export function onConfigChange<T>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
1177
-
1178
- // @public
1179
- export function optimizeObject<T>(theObject: T): T;
1180
-
1181
- // @public
1182
- export function parseTraceParent(value: string): ITraceParent;
1183
-
1184
- // @public (undocumented)
1185
- export class PerfEvent implements IPerfEvent {
1186
- constructor(name: string, payloadDetails: () => any, isAsync: boolean);
1187
- // (undocumented)
1188
- static ChildrenContextKey: string;
1189
- // (undocumented)
1190
- complete: () => void;
1191
- exTime?: number;
1192
- // (undocumented)
1193
- getCtx?: (key: string) => any | null | undefined;
1194
- isAsync: boolean;
1195
- isChildEvt: () => boolean;
1196
- name: string;
1197
- // (undocumented)
1198
- static ParentContextKey: string;
1199
- payload: any;
1200
- // (undocumented)
1201
- setCtx?: (key: string, value: any) => void;
1202
- start: number;
1203
- time?: number;
1204
- }
1205
-
1206
- // @public (undocumented)
1207
- export class PerfManager implements IPerfManager {
1208
- constructor(manager?: INotificationManager);
1209
- create(src: string, payload?: any, isAsync?: boolean): IPerfEvent | null | undefined;
1210
- fire(perfEvent: IPerfEvent): void;
1211
- getCtx(key: string): any;
1212
- setCtx(key: string, value: any): void;
1213
- }
1214
-
1215
- export { perfNow }
1216
-
1217
- // @public @deprecated
1218
- export class ProcessTelemetryContext implements IProcessTelemetryContext {
1219
- constructor(pluginChain: ITelemetryPluginChain, config: IConfiguration, core: IAppInsightsCore, startAt?: IPlugin);
1220
- core: () => IAppInsightsCore;
1221
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
1222
- diagLog: () => IDiagnosticLogger;
1223
- getCfg: () => IConfiguration;
1224
- // (undocumented)
1225
- getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean | string[] | RegExp[] | Function) => number | string | boolean | string[] | RegExp[] | Function;
1226
- // (undocumented)
1227
- getExtCfg: <T>(identifier: string, defaultValue?: IConfigDefaults<T>) => T;
1228
- getNext: () => ITelemetryPluginChain;
1229
- hasNext: () => boolean;
1230
- iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
1231
- onComplete: (onComplete: () => void) => void;
1232
- processNext: (env: ITelemetryItem) => boolean | void;
1233
- setNext: (nextCtx: ITelemetryPluginChain) => void;
1234
- }
1235
-
1236
- // @public
1237
- export function proxyAssign<T, S>(target: T, source: S, chkSet?: (name: string, isFunc?: boolean, source?: S, target?: T) => boolean): T;
1238
-
1239
- // @public
1240
- export function proxyFunctionAs<T, S>(target: T, name: string, source: S | (() => S), theFunc: (keyof S), overwriteTarget?: boolean): void;
1241
-
1242
- // @public
1243
- export function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget?: boolean): T;
1244
-
1245
- // @public
1246
- export function random32(signed?: boolean): number;
1247
-
1248
- // @public
1249
- export function randomValue(maxValue: number): number;
1250
-
1251
- // @public
1252
- export function removeEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): void;
1253
-
1254
- // @public
1255
- export function removeEventListeners(events: string[], listener: any, evtNamespace?: string | string[]): void;
1256
-
1257
- // @public
1258
- export function removePageHideEventListener(listener: any, evtNamespace?: string | string[] | null): void;
1259
-
1260
- // @public
1261
- export function removePageShowEventListener(listener: any, evtNamespace?: string | string[] | null): void;
1262
-
1263
- // @public
1264
- export function removePageUnloadEventListener(listener: any, evtNamespace?: string | string[]): void;
1265
-
1266
- // @public
1267
- export function safeGetCookieMgr(core: IAppInsightsCore, config?: IConfiguration): ICookieMgr;
1268
-
1269
- // @public (undocumented)
1270
- export function safeGetLogger(core: IAppInsightsCore, config?: IConfiguration): IDiagnosticLogger;
1271
-
1272
- // @public
1273
- export const enum SendRequestReason {
1274
- ManualFlush = 1,
1275
- MaxBatchSize = 10,
1276
- MaxQueuedEvents = 20,
1277
- NormalSchedule = 1,
1278
- Resumed = 4,
1279
- Retry = 5,
1280
- SdkUnload = 6,
1281
- SyncEvent = 3,
1282
- Undefined = 0,
1283
- Unload = 2
1284
- }
1285
-
1286
- // @public
1287
- export function setEnableEnvMocks(enabled: boolean): void;
1288
-
1289
- // @public
1290
- export function setGblPerfMgr(perfManager: IPerfManager): void;
1291
-
1292
- // @public
1293
- export 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];
1294
-
1295
- // @public (undocumented)
1296
- export function sortPlugins<T = IPlugin>(plugins: T[]): T[];
1297
-
1298
- // @public
1299
- export function strContains(value: string, search: string): boolean;
1300
-
1301
- export { strEndsWith }
1302
-
1303
- export { strFunction }
1304
-
1305
- export { strObject }
1306
-
1307
- export { strPrototype }
1308
-
1309
- export { strStartsWith }
1310
-
1311
- export { strTrim }
1312
-
1313
- export { strUndefined }
1314
-
1315
- // @public (undocumented)
1316
- export interface Tags {
1317
- // (undocumented)
1318
- [key: string]: any;
1319
- }
1320
-
1321
- // @public (undocumented)
1322
- export type TelemetryInitializerFunction = <T extends ITelemetryItem>(item: T) => boolean | void;
1323
-
1324
- // @public
1325
- export const enum TelemetryUnloadReason {
1326
- ManualTeardown = 0,
1327
- PluginReplace = 2,
1328
- PluginUnload = 1,
1329
- SdkUnload = 50
1330
- }
1331
-
1332
- // @public
1333
- export const enum TelemetryUpdateReason {
1334
- ConfigurationChanged = 1,
1335
- PluginAdded = 16,
1336
- PluginRemoved = 32,
1337
- Unknown = 0
1338
- }
1339
-
1340
- // @public
1341
- export function throwAggregationError(message: string, sourceErrors: any[]): never;
1342
-
1343
- export { throwError }
1344
-
1345
- // @public
1346
- export function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
1347
-
1348
- // @public
1349
- export function toISOString(date: Date): string;
1350
-
1351
- // @public (undocumented)
1352
- export function uaDisallowsSameSiteNone(userAgent: string): boolean;
1353
-
1354
- // @public (undocumented)
1355
- export const Undefined = "undefined";
1356
-
1357
- // @public
1358
- export function unloadComponents(components: any | IUnloadableComponent[], unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void): void | boolean;
1359
-
1360
- // @public (undocumented)
1361
- export type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
1362
-
1363
- // @public (undocumented)
1364
- export function useXDomainRequest(): boolean | undefined;
1365
-
1366
- // @public
1367
- export function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
1368
-
1369
- // @public (undocumented)
1370
- export type WatcherFunction<T extends IConfiguration> = (details: IWatchDetails<T>) => void;
1371
-
1372
- // (No @packageDocumentation comment for this package)
1373
-
1374
- ```