@microsoft/applicationinsights-core-js 2.7.5-nightly.2204-03 → 2.7.6

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 (160) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +774 -1973
  3. package/browser/applicationinsights-core-js.js.map +1 -1
  4. package/browser/applicationinsights-core-js.min.js +2 -2
  5. package/browser/applicationinsights-core-js.min.js.map +1 -1
  6. package/dist/applicationinsights-core-js.api.json +9840 -16439
  7. package/dist/applicationinsights-core-js.api.md +48 -425
  8. package/dist/applicationinsights-core-js.d.ts +123 -784
  9. package/dist/applicationinsights-core-js.js +774 -1973
  10. package/dist/applicationinsights-core-js.js.map +1 -1
  11. package/dist/applicationinsights-core-js.min.js +2 -2
  12. package/dist/applicationinsights-core-js.min.js.map +1 -1
  13. package/dist/applicationinsights-core-js.rollup.d.ts +123 -784
  14. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +69 -3
  15. package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
  16. package/dist-esm/JavaScriptSDK/BaseCore.js +99 -496
  17. package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
  18. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +21 -120
  19. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js.map +1 -1
  20. package/dist-esm/JavaScriptSDK/ChannelController.js +87 -202
  21. package/dist-esm/JavaScriptSDK/ChannelController.js.map +1 -1
  22. package/dist-esm/JavaScriptSDK/Constants.js +1 -1
  23. package/dist-esm/JavaScriptSDK/CookieMgr.js +4 -4
  24. package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
  25. package/dist-esm/JavaScriptSDK/CoreUtils.js +148 -7
  26. package/dist-esm/JavaScriptSDK/CoreUtils.js.map +1 -1
  27. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  28. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +14 -27
  29. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
  30. package/dist-esm/JavaScriptSDK/EnvUtils.js +12 -13
  31. package/dist-esm/JavaScriptSDK/EnvUtils.js.map +1 -1
  32. package/dist-esm/JavaScriptSDK/HelperFuncs.js +86 -89
  33. package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
  34. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -3
  35. package/dist-esm/JavaScriptSDK/InstrumentHooks.js.map +1 -1
  36. package/dist-esm/JavaScriptSDK/NotificationManager.js +42 -37
  37. package/dist-esm/JavaScriptSDK/NotificationManager.js.map +1 -1
  38. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  39. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +119 -430
  40. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
  41. package/dist-esm/JavaScriptSDK/RandomHelper.js +4 -30
  42. package/dist-esm/JavaScriptSDK/RandomHelper.js.map +1 -1
  43. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +14 -60
  44. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js.map +1 -1
  45. package/dist-esm/JavaScriptSDK/TelemetryPluginChain.js +76 -0
  46. package/dist-esm/JavaScriptSDK/TelemetryPluginChain.js.map +1 -0
  47. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  48. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +96 -90
  49. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js.map +1 -1
  50. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +2 -1
  52. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js.map +1 -1
  53. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +2 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js.map +1 -1
  68. package/dist-esm/applicationinsights-core-js.js +7 -12
  69. package/dist-esm/applicationinsights-core-js.js.map +1 -1
  70. package/package.json +67 -70
  71. package/src/JavaScriptSDK/AppInsightsCore.ts +101 -2
  72. package/src/JavaScriptSDK/BaseCore.ts +120 -696
  73. package/src/JavaScriptSDK/BaseTelemetryPlugin.ts +31 -205
  74. package/src/JavaScriptSDK/ChannelController.ts +103 -242
  75. package/src/JavaScriptSDK/CookieMgr.ts +5 -7
  76. package/src/JavaScriptSDK/CoreUtils.ts +172 -8
  77. package/src/JavaScriptSDK/DiagnosticLogger.ts +14 -29
  78. package/src/JavaScriptSDK/EnvUtils.ts +12 -13
  79. package/src/JavaScriptSDK/HelperFuncs.ts +97 -123
  80. package/src/JavaScriptSDK/InstrumentHooks.ts +2 -4
  81. package/src/JavaScriptSDK/NotificationManager.ts +37 -34
  82. package/src/JavaScriptSDK/PerfManager.ts +7 -4
  83. package/src/JavaScriptSDK/ProcessTelemetryContext.ts +134 -543
  84. package/src/JavaScriptSDK/RandomHelper.ts +3 -35
  85. package/src/JavaScriptSDK/TelemetryHelpers.ts +21 -83
  86. package/src/JavaScriptSDK/TelemetryPluginChain.ts +120 -0
  87. package/src/JavaScriptSDK.Enums/LoggingEnums.ts +87 -184
  88. package/src/JavaScriptSDK.Enums/SendRequestReason.ts +0 -5
  89. package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +2 -82
  90. package/src/JavaScriptSDK.Interfaces/IChannelControls.ts +5 -16
  91. package/src/JavaScriptSDK.Interfaces/IInstrumentHooks.ts +6 -16
  92. package/src/JavaScriptSDK.Interfaces/IProcessTelemetryContext.ts +14 -94
  93. package/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts +10 -28
  94. package/src/JavaScriptSDK.Interfaces/ITelemetryPluginChain.ts +11 -9
  95. package/types/JavaScriptSDK/AppInsightsCore.d.ts +21 -0
  96. package/types/JavaScriptSDK/BaseCore.d.ts +3 -81
  97. package/types/JavaScriptSDK/BaseTelemetryPlugin.d.ts +10 -53
  98. package/types/JavaScriptSDK/ChannelController.d.ts +17 -16
  99. package/types/JavaScriptSDK/CoreUtils.d.ts +48 -1
  100. package/types/JavaScriptSDK/DiagnosticLogger.d.ts +0 -10
  101. package/types/JavaScriptSDK/HelperFuncs.d.ts +32 -33
  102. package/types/JavaScriptSDK/PerfManager.d.ts +1 -1
  103. package/types/JavaScriptSDK/ProcessTelemetryContext.d.ts +6 -69
  104. package/types/JavaScriptSDK/RandomHelper.d.ts +0 -6
  105. package/types/JavaScriptSDK/TelemetryHelpers.d.ts +3 -23
  106. package/types/JavaScriptSDK/TelemetryPluginChain.d.ts +32 -0
  107. package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +2 -91
  108. package/types/JavaScriptSDK.Enums/SendRequestReason.d.ts +0 -4
  109. package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +1 -72
  110. package/types/JavaScriptSDK.Interfaces/IChannelControls.d.ts +5 -16
  111. package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +0 -9
  112. package/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext.d.ts +11 -82
  113. package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +8 -25
  114. package/types/JavaScriptSDK.Interfaces/ITelemetryPluginChain.d.ts +10 -9
  115. package/types/applicationinsights-core-js.d.ts +9 -18
  116. package/types/tsdoc-metadata.json +1 -1
  117. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +0 -93
  118. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +0 -1
  119. package/dist-esm/JavaScriptSDK/EventHelpers.js +0 -477
  120. package/dist-esm/JavaScriptSDK/EventHelpers.js.map +0 -1
  121. package/dist-esm/JavaScriptSDK/InternalConstants.js +0 -28
  122. package/dist-esm/JavaScriptSDK/InternalConstants.js.map +0 -1
  123. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +0 -81
  124. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +0 -1
  125. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +0 -33
  126. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js.map +0 -1
  127. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +0 -8
  128. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js.map +0 -1
  129. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +0 -8
  130. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js.map +0 -1
  131. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +0 -6
  132. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js.map +0 -1
  133. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +0 -8
  134. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js.map +0 -1
  135. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +0 -8
  136. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js.map +0 -1
  137. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +0 -6
  138. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js.map +0 -1
  139. package/src/JavaScriptSDK/DataCacheHelper.ts +0 -106
  140. package/src/JavaScriptSDK/EventHelpers.ts +0 -550
  141. package/src/JavaScriptSDK/InternalConstants.ts +0 -26
  142. package/src/JavaScriptSDK/TelemetryInitializerPlugin.ts +0 -111
  143. package/src/JavaScriptSDK/UnloadHandlerContainer.ts +0 -46
  144. package/src/JavaScriptSDK.Enums/TelemetryUnloadReason.ts +0 -27
  145. package/src/JavaScriptSDK.Enums/TelemetryUpdateReason.ts +0 -27
  146. package/src/JavaScriptSDK.Interfaces/ITelemetryInitializers.ts +0 -16
  147. package/src/JavaScriptSDK.Interfaces/ITelemetryUnloadState.ts +0 -10
  148. package/src/JavaScriptSDK.Interfaces/ITelemetryUpdateState.ts +0 -34
  149. package/src/JavaScriptSDK.Interfaces/IUnloadableComponent.ts +0 -17
  150. package/types/JavaScriptSDK/DataCacheHelper.d.ts +0 -13
  151. package/types/JavaScriptSDK/EventHelpers.d.ts +0 -154
  152. package/types/JavaScriptSDK/InternalConstants.d.ts +0 -20
  153. package/types/JavaScriptSDK/TelemetryInitializerPlugin.d.ts +0 -16
  154. package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +0 -11
  155. package/types/JavaScriptSDK.Enums/TelemetryUnloadReason.d.ts +0 -21
  156. package/types/JavaScriptSDK.Enums/TelemetryUpdateReason.d.ts +0 -20
  157. package/types/JavaScriptSDK.Interfaces/ITelemetryInitializers.d.ts +0 -13
  158. package/types/JavaScriptSDK.Interfaces/ITelemetryUnloadState.d.ts +0 -6
  159. package/types/JavaScriptSDK.Interfaces/ITelemetryUpdateState.d.ts +0 -22
  160. package/types/JavaScriptSDK.Interfaces/IUnloadableComponent.d.ts +0 -13
@@ -12,28 +12,29 @@ import { strShimPrototype as strPrototype } from '@microsoft/applicationinsights
12
12
  import { strShimUndefined as strUndefined } from '@microsoft/applicationinsights-shims';
13
13
 
14
14
  // @public
15
- export function __getRegisteredEvents(target: any, eventName?: string, evtNamespace?: string | string[]): _IRegisteredEvents[];
15
+ export function addEventHandler(eventName: string, callback: any): boolean;
16
16
 
17
17
  // @public
18
- export function addEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): boolean;
18
+ export function addEventListeners(events: string[], listener: any, excludeEvents?: string[]): boolean;
19
19
 
20
20
  // @public
21
- export function addEventListeners(events: string[], listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
21
+ export function addPageHideEventListener(listener: any, excludeEvents?: string[]): boolean;
22
22
 
23
23
  // @public
24
- export function addPageHideEventListener(listener: any, excludeEvents?: string[] | null, evtNamespace?: string | string[] | null): boolean;
24
+ export function addPageShowEventListener(listener: any, excludeEvents?: string[]): boolean;
25
25
 
26
26
  // @public
27
- export function addPageShowEventListener(listener: any, excludeEvents?: string[] | null, evtNamespace?: string | string[] | null): boolean;
28
-
29
- // @public
30
- export function addPageUnloadEventListener(listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
27
+ export function addPageUnloadEventListener(listener: any, excludeEvents?: string[]): boolean;
31
28
 
32
29
  // @public (undocumented)
33
30
  export class AppInsightsCore extends BaseCore implements IAppInsightsCore {
34
31
  constructor();
32
+ addNotificationListener(listener: INotificationListener): void;
35
33
  // (undocumented)
36
34
  initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
35
+ pollInternalLogs(eventName?: string): number;
36
+ removeNotificationListener(listener: INotificationListener): void;
37
+ stopPollingInternalLogs(): void;
37
38
  // (undocumented)
38
39
  track(telemetryItem: ITelemetryItem): void;
39
40
  }
@@ -42,7 +43,7 @@ export class AppInsightsCore extends BaseCore implements IAppInsightsCore {
42
43
  export function areCookiesSupported(logger?: IDiagnosticLogger): any;
43
44
 
44
45
  // @public
45
- export function arrForEach<T = any>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => undefined | void | number, thisArg?: any): void;
46
+ export function arrForEach<T>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => void | number, thisArg?: any): void;
46
47
 
47
48
  // @public
48
49
  export function arrIndexOf<T>(arr: T[], searchElement: T, fromIndex?: number): number;
@@ -59,28 +60,20 @@ export function attachEvent(obj: any, eventNameWithoutOn: string, handlerRef: an
59
60
  // @public (undocumented)
60
61
  export class BaseCore implements IAppInsightsCore {
61
62
  constructor();
62
- addNotificationListener(listener: INotificationListener): void;
63
- addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
64
- addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
65
- addUnloadCb(handler: UnloadHandler): void;
66
63
  // (undocumented)
67
64
  config: IConfiguration;
68
65
  // (undocumented)
69
66
  static defaultConfig: IConfiguration;
70
67
  // (undocumented)
71
68
  eventCnt(): number;
72
- evtNamespace(): string;
73
69
  // (undocumented)
74
70
  _extensions: IPlugin[];
75
- flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
76
71
  getCookieMgr(): ICookieMgr;
77
72
  // (undocumented)
78
73
  getNotifyMgr(): INotificationManager;
79
74
  // (undocumented)
80
75
  getPerfMgr(): IPerfManager;
81
76
  // (undocumented)
82
- getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
83
- // (undocumented)
84
77
  getProcessTelContext(): IProcessTelemetryContext;
85
78
  // (undocumented)
86
79
  getTransmissionControls(): IChannelControls[][];
@@ -90,29 +83,20 @@ export class BaseCore implements IAppInsightsCore {
90
83
  isInitialized: () => boolean;
91
84
  // (undocumented)
92
85
  logger: IDiagnosticLogger;
93
- pollInternalLogs(eventName?: string): number;
94
86
  // (undocumented)
95
87
  protected releaseQueue(): void;
96
- removeNotificationListener(listener: INotificationListener): void;
97
88
  setCookieMgr(cookieMgr: ICookieMgr): void;
98
89
  // (undocumented)
99
90
  setPerfMgr(perfMgr: IPerfManager): void;
100
- stopPollingInternalLogs(): void;
101
91
  // (undocumented)
102
92
  track(telemetryItem: ITelemetryItem): void;
103
- unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
104
- protected _updateHook?(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
105
93
  }
106
94
 
107
95
  // @public
108
96
  export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
109
97
  constructor();
110
- protected _addHook(hooks: IInstrumentHook | IInstrumentHook[]): void;
111
- protected _addUnloadCb(handler: UnloadHandler): void;
112
98
  core: IAppInsightsCore;
113
99
  diagLog: (itemCtx?: IProcessTelemetryContext) => IDiagnosticLogger;
114
- protected _doTeardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
115
- protected _doUpdate?: (updateCtx?: IProcessTelemetryUpdateContext, updateState?: ITelemetryUpdateState, asyncCallback?: () => void) => void | boolean;
116
100
  protected _getTelCtx: (currentCtx?: IProcessTelemetryContext) => IProcessTelemetryContext;
117
101
  // (undocumented)
118
102
  identifier: string;
@@ -126,8 +110,6 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
126
110
  abstract processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
127
111
  protected setInitialized: (isInitialized: boolean) => void;
128
112
  setNextPlugin: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
129
- teardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void | boolean;
130
- update(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
131
113
  // (undocumented)
132
114
  version?: string;
133
115
  }
@@ -144,21 +126,6 @@ export function createClassFromInterface<T>(defaults?: T): new () => T;
144
126
  // @public (undocumented)
145
127
  export function createCookieMgr(rootConfig?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
146
128
 
147
- // @public
148
- export function createEnumStyle<T>(values: T): T;
149
-
150
- // @public
151
- export function createProcessTelemetryContext(telemetryChain: ITelemetryPluginChain | null, config: IConfiguration, core: IAppInsightsCore, startAt?: IPlugin): IProcessTelemetryContext;
152
-
153
- // @public (undocumented)
154
- export function createUniqueNamespace(name: string, includeVersion?: boolean): string;
155
-
156
- // @public (undocumented)
157
- export function createUnloadHandlerContainer(): {
158
- add: (handler: UnloadHandler) => void;
159
- run: (unloadCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
160
- };
161
-
162
129
  // @public
163
130
  export function dateNow(): number;
164
131
 
@@ -194,189 +161,9 @@ export function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSou
194
161
  // @public
195
162
  export function dumpObj(object: any): string;
196
163
 
197
- // @public (undocumented)
198
- export const enum _eInternalMessageId {
199
- // (undocumented)
200
- BrowserCannotReadLocalStorage = 1,
201
- // (undocumented)
202
- BrowserCannotReadSessionStorage = 2,
203
- // (undocumented)
204
- BrowserCannotWriteLocalStorage = 3,
205
- // (undocumented)
206
- BrowserCannotWriteSessionStorage = 4,
207
- // (undocumented)
208
- BrowserDoesNotSupportLocalStorage = 0,
209
- // (undocumented)
210
- BrowserFailedRemovalFromLocalStorage = 5,
211
- // (undocumented)
212
- BrowserFailedRemovalFromSessionStorage = 6,
213
- // (undocumented)
214
- CannotAccessCookie = 68,
215
- // (undocumented)
216
- CannotParseAiBlobValue = 101,
217
- // (undocumented)
218
- CannotSendEmptyTelemetry = 7,
219
- // (undocumented)
220
- CannotSerializeObject = 48,
221
- // (undocumented)
222
- CannotSerializeObjectNonSerializable = 49,
223
- // (undocumented)
224
- CircularReferenceDetected = 50,
225
- // (undocumented)
226
- ClearAuthContextFailed = 51,
227
- // (undocumented)
228
- ClientPerformanceMathError = 8,
229
- // (undocumented)
230
- CreateEnvelopeError = 47,
231
- // (undocumented)
232
- ErrorParsingAISessionCookie = 9,
233
- // (undocumented)
234
- ErrorPVCalc = 10,
235
- // (undocumented)
236
- ExceptionTruncated = 52,
237
- // (undocumented)
238
- ExceptionWhileLoggingError = 11,
239
- // (undocumented)
240
- FailedAddingCustomDefinedRequestContext = 104,
241
- // (undocumented)
242
- FailedAddingTelemetryToBuffer = 12,
243
- // (undocumented)
244
- FailedMonitorAjaxAbort = 13,
245
- // (undocumented)
246
- FailedMonitorAjaxDur = 14,
247
- // (undocumented)
248
- FailedMonitorAjaxGetCorrelationHeader = 18,
249
- // (undocumented)
250
- FailedMonitorAjaxOpen = 15,
251
- // (undocumented)
252
- FailedMonitorAjaxRSC = 16,
253
- // (undocumented)
254
- FailedMonitorAjaxSend = 17,
255
- // (undocumented)
256
- FailedMonitorAjaxSetRequestHeader = 71,
257
- // (undocumented)
258
- FailedToAddHandlerForOnBeforeUnload = 19,
259
- // (undocumented)
260
- FailedToFixDepricatedValues = 44,
261
- // (undocumented)
262
- FailedToReportDataLoss = 21,
263
- // (undocumented)
264
- FailedToRestoreStorageBuffer = 42,
265
- // (undocumented)
266
- FailedToSendQueuedTelemetry = 20,
267
- // (undocumented)
268
- FailedToSetStorageBuffer = 41,
269
- // (undocumented)
270
- FlushFailed = 22,
271
- // (undocumented)
272
- IdTooLong = 69,
273
- // (undocumented)
274
- IllegalCharsInName = 53,
275
- // (undocumented)
276
- InMemoryStorageBufferFull = 105,
277
- // (undocumented)
278
- InvalidBackendResponse = 43,
279
- // (undocumented)
280
- InvalidContentBlob = 102,
281
- // (undocumented)
282
- InvalidDurationValue = 45,
283
- // (undocumented)
284
- InvalidEvent = 70,
285
- // (undocumented)
286
- InvalidInstrumentationKey = 100,
287
- // (undocumented)
288
- ItemNotInArray = 54,
289
- // (undocumented)
290
- MaxAjaxPerPVExceeded = 55,
291
- // (undocumented)
292
- MessageLimitPerPVExceeded = 23,
293
- // (undocumented)
294
- MessageTruncated = 56,
295
- // (undocumented)
296
- MissingRequiredFieldSpecification = 24,
297
- // (undocumented)
298
- NameTooLong = 57,
299
- // (undocumented)
300
- NavigationTimingNotSupported = 25,
301
- // (undocumented)
302
- NotificationException = 74,
303
- // (undocumented)
304
- OnError = 26,
305
- // (undocumented)
306
- PluginException = 73,
307
- // (undocumented)
308
- SampleRateOutOfRange = 58,
309
- // (undocumented)
310
- SendBrowserInfoOnUserInit = 72,
311
- // (undocumented)
312
- SenderNotInitialized = 28,
313
- // (undocumented)
314
- SessionRenewalDateIsZero = 27,
315
- // (undocumented)
316
- SessionStorageBufferFull = 67,
317
- // (undocumented)
318
- SetAuthContextFailed = 59,
319
- // (undocumented)
320
- SetAuthContextFailedAccountName = 60,
321
- // (undocumented)
322
- SnippetScriptLoadFailure = 99,
323
- // (undocumented)
324
- StartCalledMoreThanOnce = 62,
325
- // (undocumented)
326
- StartTrackEventFailed = 29,
327
- // (undocumented)
328
- StartTrackFailed = 31,
329
- // (undocumented)
330
- StopCalledWithoutStart = 63,
331
- // (undocumented)
332
- StopTrackEventFailed = 30,
333
- // (undocumented)
334
- StopTrackFailed = 32,
335
- // (undocumented)
336
- StringValueTooLong = 61,
337
- // (undocumented)
338
- TelemetryEnvelopeInvalid = 46,
339
- // (undocumented)
340
- TelemetryInitializerFailed = 64,
341
- // (undocumented)
342
- TelemetrySampledAndNotSent = 33,
343
- // (undocumented)
344
- TrackArgumentsNotSpecified = 65,
345
- // (undocumented)
346
- TrackEventFailed = 34,
347
- // (undocumented)
348
- TrackExceptionFailed = 35,
349
- // (undocumented)
350
- TrackMetricFailed = 36,
351
- // (undocumented)
352
- TrackPageActionEventFailed = 103,
353
- // (undocumented)
354
- TrackPVFailed = 37,
355
- // (undocumented)
356
- TrackPVFailedCalc = 38,
357
- // (undocumented)
358
- TrackTraceFailed = 39,
359
- // (undocumented)
360
- TransmissionFailed = 40,
361
- // (undocumented)
362
- UrlTooLong = 66
363
- }
364
-
365
- // @public (undocumented)
366
- export const enum eLoggingSeverity {
367
- CRITICAL = 1,
368
- WARNING = 2
369
- }
370
-
371
164
  // @public (undocumented)
372
165
  export const EventHelper: IEventHelper;
373
166
 
374
- // @public
375
- export function eventOff<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): void;
376
-
377
- // @public
378
- export function eventOn<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): boolean;
379
-
380
167
  // @public
381
168
  export const EventsDiscardedReason: {
382
169
  Unknown: number;
@@ -411,16 +198,6 @@ export function getDocument(): Document | null;
411
198
  // @public
412
199
  export function getExceptionName(object: any): string;
413
200
 
414
- // @public (undocumented)
415
- export const enum GetExtCfgMergeType {
416
- // (undocumented)
417
- MergeDefaultFromRootOrDefault = 2,
418
- // (undocumented)
419
- MergeDefaultOnly = 1,
420
- // (undocumented)
421
- None = 0
422
- }
423
-
424
201
  // @public
425
202
  export function getGblPerfMgr(): IPerfManager;
426
203
 
@@ -477,16 +254,10 @@ export function hasWindow(): boolean;
477
254
  // @public (undocumented)
478
255
  export interface IAppInsightsCore extends IPerfManagerProvider {
479
256
  addNotificationListener?(listener: INotificationListener): void;
480
- addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
481
- addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
482
- addUnloadCb(handler: UnloadHandler): void;
483
257
  // (undocumented)
484
258
  config: IConfiguration;
485
- evtNamespace(): string;
486
- flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
487
259
  getCookieMgr(): ICookieMgr;
488
260
  getNotifyMgr(): INotificationManager;
489
- getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
490
261
  getProcessTelContext(): IProcessTelemetryContext;
491
262
  // (undocumented)
492
263
  getTransmissionControls(): IChannelControls[][];
@@ -503,30 +274,14 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
503
274
  stopPollingInternalLogs?(): void;
504
275
  // (undocumented)
505
276
  track(telemetryItem: ITelemetryItem): void;
506
- unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
507
- }
508
-
509
- // @public (undocumented)
510
- export interface IBaseProcessingContext {
511
- core: () => IAppInsightsCore;
512
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IBaseProcessingContext;
513
- diagLog: () => IDiagnosticLogger;
514
- getCfg: () => IConfiguration;
515
- getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean | string[] | RegExp[] | Function) => number | string | boolean | string[] | RegExp[] | Function;
516
- getExtCfg: <T>(identifier: string, defaultValue?: T | any, mergeDefault?: GetExtCfgMergeType) => T;
517
- getNext: () => ITelemetryPluginChain;
518
- hasNext: () => boolean;
519
- iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
520
- onComplete: (onComplete: () => void, that?: any, ...args: any[]) => void;
521
- setNext: (nextCtx: ITelemetryPluginChain) => void;
522
277
  }
523
278
 
524
279
  // @public
525
280
  export interface IChannelControls extends ITelemetryPlugin {
526
- flush(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
281
+ flush(async: boolean, callBack?: () => void): void;
527
282
  pause(): void;
528
283
  resume(): void;
529
- teardown: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
284
+ teardown(): void;
530
285
  }
531
286
 
532
287
  // @public
@@ -580,7 +335,7 @@ export interface ICookieMgrConfig {
580
335
 
581
336
  // @public @deprecated
582
337
  export interface ICoreUtils {
583
- addEventHandler: (eventName: string, callback: any, evtNamespace?: string | string[]) => boolean;
338
+ addEventHandler: (eventName: string, callback: any) => boolean;
584
339
  arrForEach: <T>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => void | number, thisArg?: any) => void;
585
340
  arrIndexOf: <T>(arr: T[], searchElement: T, fromIndex?: number) => number;
586
341
  arrMap: <T, R>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => R, thisArg?: any) => R[];
@@ -675,7 +430,6 @@ export interface IEventHelper {
675
430
  export interface IInstrumentCallDetails {
676
431
  ctx: () => any;
677
432
  err?: Error;
678
- evt?: Event;
679
433
  // (undocumented)
680
434
  inst: any;
681
435
  // (undocumented)
@@ -707,23 +461,12 @@ export interface IInstrumentHooks {
707
461
  export interface IInstrumentHooksCallbacks {
708
462
  fnErr?: InstrumentorHooksCallback;
709
463
  hkErr?: InstrumentorHooksCallback;
710
- ns?: string | string[];
711
464
  req?: InstrumentorHooksCallback;
712
465
  rsp?: InstrumentorHooksCallback;
713
466
  }
714
467
 
715
- // @public (undocumented)
716
- export interface ILoadedPlugin<T extends IPlugin> {
717
- isEnabled: () => boolean;
718
- // (undocumented)
719
- plugin: T;
720
- // (undocumented)
721
- remove: (isAsync?: boolean, removeCb?: (removed?: boolean) => void) => void;
722
- setEnabled: (isEnabled: boolean) => void;
723
- }
724
-
725
468
  // @public
726
- export function initializePlugins(processContext: IProcessTelemetryContext, extensions: IPlugin[]): void;
469
+ export function initializePlugins(processContext: ProcessTelemetryContext, extensions: IPlugin[]): void;
727
470
 
728
471
  // @public
729
472
  export interface INotificationListener {
@@ -858,7 +601,7 @@ export const _InternalMessageId: {
858
601
  };
859
602
 
860
603
  // @public (undocumented)
861
- export type _InternalMessageId = number | _eInternalMessageId;
604
+ export type _InternalMessageId = number | typeof _InternalMessageId;
862
605
 
863
606
  // @public
864
607
  export interface IPerfEvent {
@@ -895,34 +638,22 @@ export interface IPlugin {
895
638
  readonly identifier: string;
896
639
  initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
897
640
  isInitialized?: () => boolean;
898
- teardown?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
641
+ teardown?: () => void;
899
642
  readonly version?: string;
900
643
  }
901
644
 
902
645
  // @public
903
- export interface IProcessTelemetryContext extends IBaseProcessingContext {
646
+ export interface IProcessTelemetryContext {
647
+ core: () => IAppInsightsCore;
904
648
  createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
905
- processNext: (env: ITelemetryItem) => boolean | void;
906
- }
907
-
908
- // @public
909
- export interface IProcessTelemetryUnloadContext extends IBaseProcessingContext {
910
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUnloadContext;
911
- processNext: (unloadState: ITelemetryUnloadState) => boolean | void;
912
- }
913
-
914
- // @public
915
- export interface IProcessTelemetryUpdateContext extends IBaseProcessingContext {
916
- createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryUpdateContext;
917
- processNext: (updateState: ITelemetryUpdateState) => boolean | void;
918
- }
919
-
920
- // @public (undocumented)
921
- export interface _IRegisteredEvents {
922
- // (undocumented)
923
- handler: any;
924
- // (undocumented)
925
- name: string;
649
+ diagLog: () => IDiagnosticLogger;
650
+ getCfg: () => IConfiguration;
651
+ getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean) => number | string | boolean;
652
+ getExtCfg: <T>(identifier: string, defaultValue?: T | any) => T;
653
+ getNext: () => ITelemetryPluginChain;
654
+ hasNext: () => boolean;
655
+ processNext: (env: ITelemetryItem) => void;
656
+ setNext: (nextCtx: ITelemetryPluginChain) => void;
926
657
  }
927
658
 
928
659
  // @public
@@ -950,22 +681,22 @@ export function isFunction(value: any): value is Function;
950
681
  export function isIE(): boolean;
951
682
 
952
683
  // @public (undocumented)
953
- export function isNotNullOrUndefined<T>(value: T): value is T;
684
+ export function isNotNullOrUndefined(value: any): boolean;
954
685
 
955
686
  // @public (undocumented)
956
687
  export function isNotTruthy(value: any): boolean;
957
688
 
958
689
  // @public (undocumented)
959
- export function isNotUndefined<T>(value: T): value is T;
690
+ export function isNotUndefined(value: any): boolean;
960
691
 
961
692
  // @public (undocumented)
962
- export function isNullOrUndefined(value: any): value is null | undefined;
693
+ export function isNullOrUndefined(value: any): boolean;
963
694
 
964
695
  // @public
965
696
  export function isNumber(value: any): value is number;
966
697
 
967
698
  // @public (undocumented)
968
- export function isObject<T>(value: T): value is T;
699
+ export function isObject(value: any): boolean;
969
700
 
970
701
  // @public
971
702
  export function isReactNative(): boolean;
@@ -986,22 +717,11 @@ export function isTruthy(value: any): boolean;
986
717
  export function isTypeof(value: any, theType: string): boolean;
987
718
 
988
719
  // @public (undocumented)
989
- export function isUndefined(value: any): value is undefined;
720
+ export function isUndefined(value: any): boolean;
990
721
 
991
722
  // @public
992
723
  export function isXhrSupported(): boolean;
993
724
 
994
- // @public (undocumented)
995
- export interface ITelemetryInitializerContainer {
996
- addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
997
- }
998
-
999
- // @public (undocumented)
1000
- export interface ITelemetryInitializerHandler {
1001
- // (undocumented)
1002
- remove(): void;
1003
- }
1004
-
1005
725
  // @public
1006
726
  export interface ITelemetryItem {
1007
727
  baseData?: {
@@ -1019,65 +739,28 @@ export interface ITelemetryItem {
1019
739
  ver?: string;
1020
740
  }
1021
741
 
1022
- // Warning: (ae-forgotten-export) The symbol "ITelemetryProcessor" needs to be exported by the entry point applicationinsights-core-js.d.ts
1023
- //
1024
742
  // @public
1025
- export interface ITelemetryPlugin extends ITelemetryProcessor, IPlugin {
743
+ export interface ITelemetryPlugin extends IPlugin {
1026
744
  readonly priority: number;
745
+ processTelemetry: (env: ITelemetryItem, itemCtx?: IProcessTelemetryContext) => void;
1027
746
  setNextPlugin?: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
1028
747
  }
1029
748
 
1030
749
  // @public
1031
- export interface ITelemetryPluginChain extends ITelemetryProcessor {
750
+ export interface ITelemetryPluginChain {
1032
751
  getNext: () => ITelemetryPluginChain;
1033
752
  getPlugin: () => ITelemetryPlugin;
1034
- unload?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
1035
- }
1036
-
1037
- // @public (undocumented)
1038
- export interface ITelemetryUnloadState {
1039
- // (undocumented)
1040
- flushComplete?: boolean;
1041
- // (undocumented)
1042
- isAsync: boolean;
1043
- // (undocumented)
1044
- reason: TelemetryUnloadReason;
1045
- }
1046
-
1047
- // @public (undocumented)
1048
- export interface ITelemetryUpdateState {
1049
- added?: IPlugin[];
1050
- reason: TelemetryUpdateReason;
1051
- removed?: IPlugin[];
1052
- }
1053
-
1054
- // @public (undocumented)
1055
- export interface IUnloadableComponent {
1056
- _doUnload?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
1057
- }
1058
-
1059
- // @public (undocumented)
1060
- export interface IUnloadHandlerContainer {
1061
- // (undocumented)
1062
- add: (handler: UnloadHandler) => void;
1063
- // (undocumented)
1064
- run: (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
753
+ processTelemetry: (env: ITelemetryItem, itemCtx: IProcessTelemetryContext) => void;
1065
754
  }
1066
755
 
1067
756
  // @public
1068
757
  export function _legacyCookieMgr(config?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
1069
758
 
1070
759
  // @public (undocumented)
1071
- export const LoggingSeverity: {
1072
- CRITICAL: number;
1073
- WARNING: number;
1074
- };
1075
-
1076
- // @public (undocumented)
1077
- export type LoggingSeverity = number | eLoggingSeverity;
1078
-
1079
- // @public (undocumented)
1080
- export function mergeEvtNamespace(theNamespace: string, namespaces?: string | string[] | null): string | string[];
760
+ export enum LoggingSeverity {
761
+ CRITICAL = 1,
762
+ WARNING = 2
763
+ }
1081
764
 
1082
765
  // @public (undocumented)
1083
766
  export const MinChannelPriorty: number;
@@ -1116,13 +799,7 @@ export { objCreate }
1116
799
  export function objDefineAccessors<T>(target: any, prop: string, getProp?: () => T, setProp?: (v: T) => void): boolean;
1117
800
 
1118
801
  // @public
1119
- 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;
1120
-
1121
- // @public (undocumented)
1122
- 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;
1123
-
1124
- // @public
1125
- export function objForEachKey<T = any>(target: T, callbackfn: (name: string, value: T[keyof T]) => void): void;
802
+ export function objForEachKey(target: any, callbackfn: (name: string, value: any) => void): void;
1126
803
 
1127
804
  // @public (undocumented)
1128
805
  export const objFreeze: <T>(value: T) => T;
@@ -1133,9 +810,6 @@ export function objKeys(obj: {}): string[];
1133
810
  // @public (undocumented)
1134
811
  export const objSeal: <T>(value: T) => T;
1135
812
 
1136
- // @public (undocumented)
1137
- export function objToString(obj: any): any;
1138
-
1139
813
  // @public
1140
814
  export function optimizeObject<T>(theObject: T): T;
1141
815
 
@@ -1163,7 +837,7 @@ export class PerfEvent implements IPerfEvent {
1163
837
 
1164
838
  // @public (undocumented)
1165
839
  export class PerfManager implements IPerfManager {
1166
- constructor(manager?: INotificationManager);
840
+ constructor(manager: INotificationManager);
1167
841
  create(src: string, payload?: any, isAsync?: boolean): IPerfEvent | null | undefined;
1168
842
  fire(perfEvent: IPerfEvent): void;
1169
843
  getCtx(key: string): any;
@@ -1173,33 +847,25 @@ export class PerfManager implements IPerfManager {
1173
847
  // @public
1174
848
  export function perfNow(): number;
1175
849
 
1176
- // @public @deprecated
850
+ // @public (undocumented)
1177
851
  export class ProcessTelemetryContext implements IProcessTelemetryContext {
1178
- constructor(pluginChain: ITelemetryPluginChain, config: IConfiguration, core: IAppInsightsCore, startAt?: IPlugin);
852
+ constructor(plugins: IPlugin[] | ITelemetryPluginChain, config: IConfiguration, core: IAppInsightsCore, startAt?: IPlugin);
1179
853
  core: () => IAppInsightsCore;
1180
854
  createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
1181
855
  diagLog: () => IDiagnosticLogger;
1182
856
  getCfg: () => IConfiguration;
1183
857
  // (undocumented)
1184
- getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean | string[] | RegExp[] | Function) => number | string | boolean | string[] | RegExp[] | Function;
858
+ getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean) => number | string | boolean;
1185
859
  // (undocumented)
1186
860
  getExtCfg: <T>(identifier: string, defaultValue?: T | any) => T;
1187
861
  getNext: () => ITelemetryPluginChain;
1188
862
  hasNext: () => boolean;
1189
- iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
1190
- onComplete: (onComplete: () => void) => void;
1191
- processNext: (env: ITelemetryItem) => boolean | void;
863
+ processNext: (env: ITelemetryItem) => void;
1192
864
  setNext: (nextCtx: ITelemetryPluginChain) => void;
1193
865
  }
1194
866
 
1195
867
  // @public
1196
- export function proxyAssign<T, S>(target: T, source: S, chkSet?: (name: string, isFunc?: boolean, source?: S, target?: T) => boolean): T;
1197
-
1198
- // @public (undocumented)
1199
- export function proxyFunctionAs<T, S>(target: T, name: string, source: S | (() => S), theFunc: (keyof S), overwriteTarget?: boolean): void;
1200
-
1201
- // @public
1202
- export function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget?: boolean): T;
868
+ export function proxyAssign(target: any, source: any, chkSet?: (name: string, isFunc?: boolean, source?: any, target?: any) => boolean): any;
1203
869
 
1204
870
  // @public
1205
871
  export function random32(signed?: boolean): number;
@@ -1207,21 +873,6 @@ export function random32(signed?: boolean): number;
1207
873
  // @public
1208
874
  export function randomValue(maxValue: number): number;
1209
875
 
1210
- // @public
1211
- export function removeEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): void;
1212
-
1213
- // @public
1214
- export function removeEventListeners(events: string[], listener: any, evtNamespace?: string | string[]): void;
1215
-
1216
- // @public
1217
- export function removePageHideEventListener(listener: any, evtNamespace?: string | string[] | null): void;
1218
-
1219
- // @public
1220
- export function removePageShowEventListener(listener: any, evtNamespace?: string | string[] | null): void;
1221
-
1222
- // @public
1223
- export function removePageUnloadEventListener(listener: any, evtNamespace?: string | string[]): void;
1224
-
1225
876
  // @public
1226
877
  export function safeGetCookieMgr(core: IAppInsightsCore, config?: IConfiguration): ICookieMgr;
1227
878
 
@@ -1236,7 +887,6 @@ export const enum SendRequestReason {
1236
887
  NormalSchedule = 1,
1237
888
  Resumed = 4,
1238
889
  Retry = 5,
1239
- SdkUnload = 6,
1240
890
  SyncEvent = 3,
1241
891
  Undefined = 0,
1242
892
  Unload = 2
@@ -1252,10 +902,10 @@ export function setEnableEnvMocks(enabled: boolean): void;
1252
902
  export function setGblPerfMgr(perfManager: IPerfManager): void;
1253
903
 
1254
904
  // @public
1255
- 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];
905
+ export function setValue<T, K extends keyof T>(target: T, field: K, value: T[K], valChk?: (value: T[K]) => boolean, srcChk?: (value: T[K]) => boolean): T[K];
1256
906
 
1257
907
  // @public (undocumented)
1258
- export function sortPlugins<T = IPlugin>(plugins: T[]): T[];
908
+ export function sortPlugins(plugins: IPlugin[]): IPlugin[];
1259
909
 
1260
910
  // @public
1261
911
  export function strContains(value: string, search: string): boolean;
@@ -1289,30 +939,9 @@ export interface Tags {
1289
939
  [key: string]: any;
1290
940
  }
1291
941
 
1292
- // @public (undocumented)
1293
- export type TelemetryInitializerFunction = <T extends ITelemetryItem>(item: T) => boolean | void;
1294
-
1295
- // @public
1296
- export const enum TelemetryUnloadReason {
1297
- ManualTeardown = 0,
1298
- PluginReplace = 2,
1299
- PluginUnload = 1,
1300
- SdkUnload = 50
1301
- }
1302
-
1303
- // @public
1304
- export const enum TelemetryUpdateReason {
1305
- PluginAdded = 16,
1306
- PluginRemoved = 32,
1307
- Unknown = 0
1308
- }
1309
-
1310
942
  // @public (undocumented)
1311
943
  export function throwError(message: string): never;
1312
944
 
1313
- // @public
1314
- export function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
1315
-
1316
945
  // @public
1317
946
  export function toISOString(date: Date): string;
1318
947
 
@@ -1322,12 +951,6 @@ export function uaDisallowsSameSiteNone(userAgent: string): boolean;
1322
951
  // @public (undocumented)
1323
952
  export const Undefined = "undefined";
1324
953
 
1325
- // @public
1326
- export function unloadComponents(components: any | IUnloadableComponent[], unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void): void | boolean;
1327
-
1328
- // @public (undocumented)
1329
- export type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
1330
-
1331
954
  // @public (undocumented)
1332
955
  export function useXDomainRequest(): boolean | undefined;
1333
956