@microsoft/applicationinsights-core-js 2.8.0-beta.2202-06 → 2.8.0-beta.2203-02
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.
- package/browser/applicationinsights-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +945 -479
- package/browser/applicationinsights-core-js.js.map +1 -1
- package/browser/applicationinsights-core-js.min.js +2 -2
- package/browser/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.api.json +3904 -877
- package/dist/applicationinsights-core-js.api.md +264 -30
- package/dist/applicationinsights-core-js.d.ts +410 -89
- package/dist/applicationinsights-core-js.js +945 -479
- package/dist/applicationinsights-core-js.js.map +1 -1
- package/dist/applicationinsights-core-js.min.js +2 -2
- package/dist/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +410 -89
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +66 -23
- package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +44 -5
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js.map +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +105 -73
- package/dist-esm/JavaScriptSDK/ChannelController.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Constants.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +3 -4
- package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +6 -122
- package/dist-esm/JavaScriptSDK/CoreUtils.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js +93 -0
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -0
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +12 -12
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +8 -7
- package/dist-esm/JavaScriptSDK/EnvUtils.js.map +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +472 -0
- package/dist-esm/JavaScriptSDK/EventHelpers.js.map +1 -0
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +32 -59
- package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +28 -0
- package/dist-esm/JavaScriptSDK/InternalConstants.js.map +1 -0
- package/dist-esm/JavaScriptSDK/NotificationManager.js +8 -11
- package/dist-esm/JavaScriptSDK/NotificationManager.js.map +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +184 -110
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +3 -2
- package/dist-esm/JavaScriptSDK/RandomHelper.js.map +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +32 -13
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js.map +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +4 -6
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +90 -96
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js.map +1 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +8 -0
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js.map +1 -0
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -2
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js.map +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +8 -0
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js.map +1 -0
- package/dist-esm/applicationinsights-core-js.js +8 -4
- package/dist-esm/applicationinsights-core-js.js.map +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/BaseCore.ts +80 -24
- package/src/JavaScriptSDK/BaseTelemetryPlugin.ts +76 -5
- package/src/JavaScriptSDK/ChannelController.ts +107 -61
- package/src/JavaScriptSDK/CookieMgr.ts +4 -4
- package/src/JavaScriptSDK/CoreUtils.ts +6 -143
- package/src/JavaScriptSDK/DataCacheHelper.ts +106 -0
- package/src/JavaScriptSDK/DiagnosticLogger.ts +12 -11
- package/src/JavaScriptSDK/EnvUtils.ts +7 -6
- package/src/JavaScriptSDK/EventHelpers.ts +542 -0
- package/src/JavaScriptSDK/HelperFuncs.ts +35 -54
- package/src/JavaScriptSDK/InternalConstants.ts +26 -0
- package/src/JavaScriptSDK/NotificationManager.ts +7 -11
- package/src/JavaScriptSDK/ProcessTelemetryContext.ts +237 -124
- package/src/JavaScriptSDK/RandomHelper.ts +2 -1
- package/src/JavaScriptSDK/TelemetryHelpers.ts +47 -15
- package/src/JavaScriptSDK/TelemetryInitializerPlugin.ts +5 -15
- package/src/JavaScriptSDK.Enums/LoggingEnums.ts +184 -87
- package/src/JavaScriptSDK.Enums/TelemetryUnloadReason.ts +27 -0
- package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +20 -0
- package/src/JavaScriptSDK.Interfaces/IChannelControls.ts +9 -2
- package/src/JavaScriptSDK.Interfaces/IProcessTelemetryContext.ts +55 -16
- package/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts +16 -9
- package/src/JavaScriptSDK.Interfaces/ITelemetryPluginChain.ts +9 -11
- package/src/JavaScriptSDK.Interfaces/ITelemetryUnloadState.ts +10 -0
- package/types/JavaScriptSDK/BaseCore.d.ts +4 -0
- package/types/JavaScriptSDK/BaseTelemetryPlugin.d.ts +20 -1
- package/types/JavaScriptSDK/ChannelController.d.ts +4 -0
- package/types/JavaScriptSDK/CoreUtils.d.ts +1 -42
- package/types/JavaScriptSDK/DataCacheHelper.d.ts +13 -0
- package/types/JavaScriptSDK/EventHelpers.d.ts +152 -0
- package/types/JavaScriptSDK/HelperFuncs.d.ts +8 -17
- package/types/JavaScriptSDK/InternalConstants.d.ts +20 -0
- package/types/JavaScriptSDK/ProcessTelemetryContext.d.ts +10 -3
- package/types/JavaScriptSDK/TelemetryHelpers.d.ts +8 -0
- package/types/JavaScriptSDK/TelemetryInitializerPlugin.d.ts +0 -7
- package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +91 -2
- package/types/JavaScriptSDK.Enums/TelemetryUnloadReason.d.ts +9 -0
- package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +17 -0
- package/types/JavaScriptSDK.Interfaces/IChannelControls.d.ts +9 -2
- package/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext.d.ts +49 -14
- package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +15 -8
- package/types/JavaScriptSDK.Interfaces/ITelemetryPluginChain.d.ts +9 -10
- package/types/JavaScriptSDK.Interfaces/ITelemetryUnloadState.d.ts +6 -0
- package/types/applicationinsights-core-js.d.ts +6 -3
|
@@ -12,19 +12,22 @@ 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
|
|
15
|
+
export function __getRegisteredEvents(target: any, evtName?: string): _IRegisteredEvents[];
|
|
16
16
|
|
|
17
17
|
// @public
|
|
18
|
-
export function
|
|
18
|
+
export function addEventHandler(eventName: string, callback: any, evtNamespace?: string | string[]): boolean;
|
|
19
19
|
|
|
20
20
|
// @public
|
|
21
|
-
export function
|
|
21
|
+
export function addEventListeners(events: string[], listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
|
|
22
22
|
|
|
23
23
|
// @public
|
|
24
|
-
export function
|
|
24
|
+
export function addPageHideEventListener(listener: any, excludeEvents: string[], evtNamespace?: string | string[]): boolean;
|
|
25
25
|
|
|
26
26
|
// @public
|
|
27
|
-
export function
|
|
27
|
+
export function addPageShowEventListener(listener: any, excludeEvents: string[], evtNamespace?: string | string[]): boolean;
|
|
28
|
+
|
|
29
|
+
// @public
|
|
30
|
+
export function addPageUnloadEventListener(listener: any, excludeEvents: string[], evtNamespace?: string | string[]): boolean;
|
|
28
31
|
|
|
29
32
|
// @public (undocumented)
|
|
30
33
|
export class AppInsightsCore extends BaseCore implements IAppInsightsCore {
|
|
@@ -64,6 +67,7 @@ export class BaseCore implements IAppInsightsCore {
|
|
|
64
67
|
static defaultConfig: IConfiguration;
|
|
65
68
|
// (undocumented)
|
|
66
69
|
eventCnt(): number;
|
|
70
|
+
evtNamespace(): string;
|
|
67
71
|
// (undocumented)
|
|
68
72
|
_extensions: IPlugin[];
|
|
69
73
|
getCookieMgr(): ICookieMgr;
|
|
@@ -103,6 +107,8 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
103
107
|
protected _addHook(hooks: IInstrumentHook | IInstrumentHook[]): void;
|
|
104
108
|
core: IAppInsightsCore;
|
|
105
109
|
diagLog: (itemCtx?: IProcessTelemetryContext) => IDiagnosticLogger;
|
|
110
|
+
// Warning: (ae-forgotten-export) The symbol "IProcessTelemetryUnloadContext" needs to be exported by the entry point applicationinsights-core-js.d.ts
|
|
111
|
+
protected _doTeardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
|
|
106
112
|
protected _getTelCtx: (currentCtx?: IProcessTelemetryContext) => IProcessTelemetryContext;
|
|
107
113
|
// (undocumented)
|
|
108
114
|
identifier: string;
|
|
@@ -116,6 +122,7 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
116
122
|
abstract processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
117
123
|
protected setInitialized: (isInitialized: boolean) => void;
|
|
118
124
|
setNextPlugin: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
|
|
125
|
+
teardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void | boolean;
|
|
119
126
|
// (undocumented)
|
|
120
127
|
version?: string;
|
|
121
128
|
}
|
|
@@ -132,9 +139,15 @@ export function createClassFromInterface<T>(defaults?: T): new () => T;
|
|
|
132
139
|
// @public (undocumented)
|
|
133
140
|
export function createCookieMgr(rootConfig?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
|
|
134
141
|
|
|
142
|
+
// @public
|
|
143
|
+
export function createEnumStyle<T>(values: T): T;
|
|
144
|
+
|
|
135
145
|
// @public
|
|
136
146
|
export function createProcessTelemetryContext(telemetryChain: ITelemetryPluginChain, config: IConfiguration, core: IAppInsightsCore, startAt?: IPlugin): IProcessTelemetryContext;
|
|
137
147
|
|
|
148
|
+
// @public (undocumented)
|
|
149
|
+
export function createUniqueNamespace(name: string, includeVersion?: boolean): string;
|
|
150
|
+
|
|
138
151
|
// @public
|
|
139
152
|
export function dateNow(): number;
|
|
140
153
|
|
|
@@ -170,9 +183,189 @@ export function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSou
|
|
|
170
183
|
// @public
|
|
171
184
|
export function dumpObj(object: any): string;
|
|
172
185
|
|
|
186
|
+
// @public (undocumented)
|
|
187
|
+
export const enum _eInternalMessageId {
|
|
188
|
+
// (undocumented)
|
|
189
|
+
BrowserCannotReadLocalStorage = 1,
|
|
190
|
+
// (undocumented)
|
|
191
|
+
BrowserCannotReadSessionStorage = 2,
|
|
192
|
+
// (undocumented)
|
|
193
|
+
BrowserCannotWriteLocalStorage = 3,
|
|
194
|
+
// (undocumented)
|
|
195
|
+
BrowserCannotWriteSessionStorage = 4,
|
|
196
|
+
// (undocumented)
|
|
197
|
+
BrowserDoesNotSupportLocalStorage = 0,
|
|
198
|
+
// (undocumented)
|
|
199
|
+
BrowserFailedRemovalFromLocalStorage = 5,
|
|
200
|
+
// (undocumented)
|
|
201
|
+
BrowserFailedRemovalFromSessionStorage = 6,
|
|
202
|
+
// (undocumented)
|
|
203
|
+
CannotAccessCookie = 68,
|
|
204
|
+
// (undocumented)
|
|
205
|
+
CannotParseAiBlobValue = 101,
|
|
206
|
+
// (undocumented)
|
|
207
|
+
CannotSendEmptyTelemetry = 7,
|
|
208
|
+
// (undocumented)
|
|
209
|
+
CannotSerializeObject = 48,
|
|
210
|
+
// (undocumented)
|
|
211
|
+
CannotSerializeObjectNonSerializable = 49,
|
|
212
|
+
// (undocumented)
|
|
213
|
+
CircularReferenceDetected = 50,
|
|
214
|
+
// (undocumented)
|
|
215
|
+
ClearAuthContextFailed = 51,
|
|
216
|
+
// (undocumented)
|
|
217
|
+
ClientPerformanceMathError = 8,
|
|
218
|
+
// (undocumented)
|
|
219
|
+
CreateEnvelopeError = 47,
|
|
220
|
+
// (undocumented)
|
|
221
|
+
ErrorParsingAISessionCookie = 9,
|
|
222
|
+
// (undocumented)
|
|
223
|
+
ErrorPVCalc = 10,
|
|
224
|
+
// (undocumented)
|
|
225
|
+
ExceptionTruncated = 52,
|
|
226
|
+
// (undocumented)
|
|
227
|
+
ExceptionWhileLoggingError = 11,
|
|
228
|
+
// (undocumented)
|
|
229
|
+
FailedAddingCustomDefinedRequestContext = 104,
|
|
230
|
+
// (undocumented)
|
|
231
|
+
FailedAddingTelemetryToBuffer = 12,
|
|
232
|
+
// (undocumented)
|
|
233
|
+
FailedMonitorAjaxAbort = 13,
|
|
234
|
+
// (undocumented)
|
|
235
|
+
FailedMonitorAjaxDur = 14,
|
|
236
|
+
// (undocumented)
|
|
237
|
+
FailedMonitorAjaxGetCorrelationHeader = 18,
|
|
238
|
+
// (undocumented)
|
|
239
|
+
FailedMonitorAjaxOpen = 15,
|
|
240
|
+
// (undocumented)
|
|
241
|
+
FailedMonitorAjaxRSC = 16,
|
|
242
|
+
// (undocumented)
|
|
243
|
+
FailedMonitorAjaxSend = 17,
|
|
244
|
+
// (undocumented)
|
|
245
|
+
FailedMonitorAjaxSetRequestHeader = 71,
|
|
246
|
+
// (undocumented)
|
|
247
|
+
FailedToAddHandlerForOnBeforeUnload = 19,
|
|
248
|
+
// (undocumented)
|
|
249
|
+
FailedToFixDepricatedValues = 44,
|
|
250
|
+
// (undocumented)
|
|
251
|
+
FailedToReportDataLoss = 21,
|
|
252
|
+
// (undocumented)
|
|
253
|
+
FailedToRestoreStorageBuffer = 42,
|
|
254
|
+
// (undocumented)
|
|
255
|
+
FailedToSendQueuedTelemetry = 20,
|
|
256
|
+
// (undocumented)
|
|
257
|
+
FailedToSetStorageBuffer = 41,
|
|
258
|
+
// (undocumented)
|
|
259
|
+
FlushFailed = 22,
|
|
260
|
+
// (undocumented)
|
|
261
|
+
IdTooLong = 69,
|
|
262
|
+
// (undocumented)
|
|
263
|
+
IllegalCharsInName = 53,
|
|
264
|
+
// (undocumented)
|
|
265
|
+
InMemoryStorageBufferFull = 105,
|
|
266
|
+
// (undocumented)
|
|
267
|
+
InvalidBackendResponse = 43,
|
|
268
|
+
// (undocumented)
|
|
269
|
+
InvalidContentBlob = 102,
|
|
270
|
+
// (undocumented)
|
|
271
|
+
InvalidDurationValue = 45,
|
|
272
|
+
// (undocumented)
|
|
273
|
+
InvalidEvent = 70,
|
|
274
|
+
// (undocumented)
|
|
275
|
+
InvalidInstrumentationKey = 100,
|
|
276
|
+
// (undocumented)
|
|
277
|
+
ItemNotInArray = 54,
|
|
278
|
+
// (undocumented)
|
|
279
|
+
MaxAjaxPerPVExceeded = 55,
|
|
280
|
+
// (undocumented)
|
|
281
|
+
MessageLimitPerPVExceeded = 23,
|
|
282
|
+
// (undocumented)
|
|
283
|
+
MessageTruncated = 56,
|
|
284
|
+
// (undocumented)
|
|
285
|
+
MissingRequiredFieldSpecification = 24,
|
|
286
|
+
// (undocumented)
|
|
287
|
+
NameTooLong = 57,
|
|
288
|
+
// (undocumented)
|
|
289
|
+
NavigationTimingNotSupported = 25,
|
|
290
|
+
// (undocumented)
|
|
291
|
+
NotificationException = 74,
|
|
292
|
+
// (undocumented)
|
|
293
|
+
OnError = 26,
|
|
294
|
+
// (undocumented)
|
|
295
|
+
PluginException = 73,
|
|
296
|
+
// (undocumented)
|
|
297
|
+
SampleRateOutOfRange = 58,
|
|
298
|
+
// (undocumented)
|
|
299
|
+
SendBrowserInfoOnUserInit = 72,
|
|
300
|
+
// (undocumented)
|
|
301
|
+
SenderNotInitialized = 28,
|
|
302
|
+
// (undocumented)
|
|
303
|
+
SessionRenewalDateIsZero = 27,
|
|
304
|
+
// (undocumented)
|
|
305
|
+
SessionStorageBufferFull = 67,
|
|
306
|
+
// (undocumented)
|
|
307
|
+
SetAuthContextFailed = 59,
|
|
308
|
+
// (undocumented)
|
|
309
|
+
SetAuthContextFailedAccountName = 60,
|
|
310
|
+
// (undocumented)
|
|
311
|
+
SnippetScriptLoadFailure = 99,
|
|
312
|
+
// (undocumented)
|
|
313
|
+
StartCalledMoreThanOnce = 62,
|
|
314
|
+
// (undocumented)
|
|
315
|
+
StartTrackEventFailed = 29,
|
|
316
|
+
// (undocumented)
|
|
317
|
+
StartTrackFailed = 31,
|
|
318
|
+
// (undocumented)
|
|
319
|
+
StopCalledWithoutStart = 63,
|
|
320
|
+
// (undocumented)
|
|
321
|
+
StopTrackEventFailed = 30,
|
|
322
|
+
// (undocumented)
|
|
323
|
+
StopTrackFailed = 32,
|
|
324
|
+
// (undocumented)
|
|
325
|
+
StringValueTooLong = 61,
|
|
326
|
+
// (undocumented)
|
|
327
|
+
TelemetryEnvelopeInvalid = 46,
|
|
328
|
+
// (undocumented)
|
|
329
|
+
TelemetryInitializerFailed = 64,
|
|
330
|
+
// (undocumented)
|
|
331
|
+
TelemetrySampledAndNotSent = 33,
|
|
332
|
+
// (undocumented)
|
|
333
|
+
TrackArgumentsNotSpecified = 65,
|
|
334
|
+
// (undocumented)
|
|
335
|
+
TrackEventFailed = 34,
|
|
336
|
+
// (undocumented)
|
|
337
|
+
TrackExceptionFailed = 35,
|
|
338
|
+
// (undocumented)
|
|
339
|
+
TrackMetricFailed = 36,
|
|
340
|
+
// (undocumented)
|
|
341
|
+
TrackPageActionEventFailed = 103,
|
|
342
|
+
// (undocumented)
|
|
343
|
+
TrackPVFailed = 37,
|
|
344
|
+
// (undocumented)
|
|
345
|
+
TrackPVFailedCalc = 38,
|
|
346
|
+
// (undocumented)
|
|
347
|
+
TrackTraceFailed = 39,
|
|
348
|
+
// (undocumented)
|
|
349
|
+
TransmissionFailed = 40,
|
|
350
|
+
// (undocumented)
|
|
351
|
+
UrlTooLong = 66
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// @public (undocumented)
|
|
355
|
+
export const enum eLoggingSeverity {
|
|
356
|
+
CRITICAL = 1,
|
|
357
|
+
WARNING = 2
|
|
358
|
+
}
|
|
359
|
+
|
|
173
360
|
// @public (undocumented)
|
|
174
361
|
export const EventHelper: IEventHelper;
|
|
175
362
|
|
|
363
|
+
// @public
|
|
364
|
+
export function eventOff<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[], useCapture?: boolean): void;
|
|
365
|
+
|
|
366
|
+
// @public
|
|
367
|
+
export function eventOn<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[], useCapture?: boolean): boolean;
|
|
368
|
+
|
|
176
369
|
// @public
|
|
177
370
|
export const EventsDiscardedReason: {
|
|
178
371
|
Unknown: number;
|
|
@@ -276,6 +469,7 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
276
469
|
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
|
|
277
470
|
// (undocumented)
|
|
278
471
|
config: IConfiguration;
|
|
472
|
+
evtNamespace(): string;
|
|
279
473
|
getCookieMgr(): ICookieMgr;
|
|
280
474
|
getNotifyMgr(): INotificationManager;
|
|
281
475
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
@@ -302,7 +496,7 @@ export interface IChannelControls extends ITelemetryPlugin {
|
|
|
302
496
|
flush(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
|
|
303
497
|
pause(): void;
|
|
304
498
|
resume(): void;
|
|
305
|
-
teardown()
|
|
499
|
+
teardown: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
|
|
306
500
|
}
|
|
307
501
|
|
|
308
502
|
// @public
|
|
@@ -356,7 +550,7 @@ export interface ICookieMgrConfig {
|
|
|
356
550
|
|
|
357
551
|
// @public @deprecated
|
|
358
552
|
export interface ICoreUtils {
|
|
359
|
-
addEventHandler: (eventName: string, callback: any) => boolean;
|
|
553
|
+
addEventHandler: (eventName: string, callback: any, evtNamespace?: string | string[]) => boolean;
|
|
360
554
|
arrForEach: <T>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => void | number, thisArg?: any) => void;
|
|
361
555
|
arrIndexOf: <T>(arr: T[], searchElement: T, fromIndex?: number) => number;
|
|
362
556
|
arrMap: <T, R>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => R, thisArg?: any) => R[];
|
|
@@ -623,7 +817,7 @@ export const _InternalMessageId: {
|
|
|
623
817
|
};
|
|
624
818
|
|
|
625
819
|
// @public (undocumented)
|
|
626
|
-
export type _InternalMessageId = number |
|
|
820
|
+
export type _InternalMessageId = number | _eInternalMessageId;
|
|
627
821
|
|
|
628
822
|
// @public
|
|
629
823
|
export interface IPerfEvent {
|
|
@@ -660,24 +854,24 @@ export interface IPlugin {
|
|
|
660
854
|
readonly identifier: string;
|
|
661
855
|
initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
|
|
662
856
|
isInitialized?: () => boolean;
|
|
663
|
-
teardown?: () => void;
|
|
857
|
+
teardown?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
|
|
664
858
|
readonly version?: string;
|
|
665
859
|
}
|
|
666
860
|
|
|
861
|
+
// Warning: (ae-forgotten-export) The symbol "IBaseProcessingContext" needs to be exported by the entry point applicationinsights-core-js.d.ts
|
|
862
|
+
//
|
|
667
863
|
// @public
|
|
668
|
-
export interface IProcessTelemetryContext {
|
|
669
|
-
core: () => IAppInsightsCore;
|
|
864
|
+
export interface IProcessTelemetryContext extends IBaseProcessingContext {
|
|
670
865
|
createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
setNext: (nextCtx: ITelemetryPluginChain) => void;
|
|
866
|
+
processNext: (env: ITelemetryItem) => boolean | void;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
// @public (undocumented)
|
|
870
|
+
export interface _IRegisteredEvents {
|
|
871
|
+
// (undocumented)
|
|
872
|
+
handler: any;
|
|
873
|
+
// (undocumented)
|
|
874
|
+
name: string;
|
|
681
875
|
}
|
|
682
876
|
|
|
683
877
|
// @public
|
|
@@ -774,28 +968,47 @@ export interface ITelemetryItem {
|
|
|
774
968
|
ver?: string;
|
|
775
969
|
}
|
|
776
970
|
|
|
971
|
+
// Warning: (ae-forgotten-export) The symbol "ITelemetryProcessor" needs to be exported by the entry point applicationinsights-core-js.d.ts
|
|
972
|
+
//
|
|
777
973
|
// @public
|
|
778
|
-
export interface ITelemetryPlugin extends IPlugin {
|
|
974
|
+
export interface ITelemetryPlugin extends ITelemetryProcessor, IPlugin {
|
|
779
975
|
readonly priority: number;
|
|
780
|
-
processTelemetry: (env: ITelemetryItem, itemCtx?: IProcessTelemetryContext) => void;
|
|
781
976
|
setNextPlugin?: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
|
|
782
977
|
}
|
|
783
978
|
|
|
784
979
|
// @public
|
|
785
|
-
export interface ITelemetryPluginChain {
|
|
980
|
+
export interface ITelemetryPluginChain extends ITelemetryProcessor {
|
|
786
981
|
getNext: () => ITelemetryPluginChain;
|
|
787
982
|
getPlugin: () => ITelemetryPlugin;
|
|
788
|
-
|
|
983
|
+
unload?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
// @public (undocumented)
|
|
987
|
+
export interface ITelemetryUnloadState {
|
|
988
|
+
// (undocumented)
|
|
989
|
+
flushComplete?: boolean;
|
|
990
|
+
// (undocumented)
|
|
991
|
+
isAsync: boolean;
|
|
992
|
+
// Warning: (ae-forgotten-export) The symbol "TelemetryUnloadReason" needs to be exported by the entry point applicationinsights-core-js.d.ts
|
|
993
|
+
//
|
|
994
|
+
// (undocumented)
|
|
995
|
+
reason: TelemetryUnloadReason;
|
|
789
996
|
}
|
|
790
997
|
|
|
791
998
|
// @public
|
|
792
999
|
export function _legacyCookieMgr(config?: IConfiguration, logger?: IDiagnosticLogger): ICookieMgr;
|
|
793
1000
|
|
|
794
1001
|
// @public (undocumented)
|
|
795
|
-
export
|
|
796
|
-
CRITICAL
|
|
797
|
-
WARNING
|
|
798
|
-
}
|
|
1002
|
+
export const LoggingSeverity: {
|
|
1003
|
+
CRITICAL: number;
|
|
1004
|
+
WARNING: number;
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
// @public (undocumented)
|
|
1008
|
+
export type LoggingSeverity = number | eLoggingSeverity;
|
|
1009
|
+
|
|
1010
|
+
// @public (undocumented)
|
|
1011
|
+
export function mergeEvtNamespace(theNamespace: string, namespaces: string | string[]): string | string[];
|
|
799
1012
|
|
|
800
1013
|
// @public (undocumented)
|
|
801
1014
|
export const MinChannelPriorty: number;
|
|
@@ -833,6 +1046,9 @@ export { objCreate }
|
|
|
833
1046
|
// @public
|
|
834
1047
|
export function objDefineAccessors<T>(target: any, prop: string, getProp?: () => T, setProp?: (v: T) => void): boolean;
|
|
835
1048
|
|
|
1049
|
+
// @public
|
|
1050
|
+
export function objExtend<T1, T2, T3, T4, T5, T6>(obj?: boolean | T1, obj2?: T2, obj3?: T3, obj4?: T4, obj5?: T5, obj6?: T6): T1 & T2 & T3 & T4 & T5 & T6;
|
|
1051
|
+
|
|
836
1052
|
// @public
|
|
837
1053
|
export function objForEachKey<T = any>(target: T, callbackfn: (name: string, value: T[keyof T]) => void): void;
|
|
838
1054
|
|
|
@@ -897,19 +1113,37 @@ export class ProcessTelemetryContext implements IProcessTelemetryContext {
|
|
|
897
1113
|
hasNext: () => boolean;
|
|
898
1114
|
iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
|
|
899
1115
|
onComplete: (onComplete: () => void) => void;
|
|
900
|
-
processNext: (env: ITelemetryItem) => void;
|
|
1116
|
+
processNext: (env: ITelemetryItem) => boolean | void;
|
|
901
1117
|
setNext: (nextCtx: ITelemetryPluginChain) => void;
|
|
902
1118
|
}
|
|
903
1119
|
|
|
904
1120
|
// @public
|
|
905
1121
|
export function proxyAssign<T, S>(target: T, source: S, chkSet?: (name: string, isFunc?: boolean, source?: S, target?: T) => boolean): T;
|
|
906
1122
|
|
|
1123
|
+
// @public (undocumented)
|
|
1124
|
+
export function proxyFunctionAs<T, S>(target: T, name: string, source: S | (() => S), theFunc: (keyof S), overwriteTarget?: boolean): void;
|
|
1125
|
+
|
|
1126
|
+
// @public
|
|
1127
|
+
export function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget?: boolean): T;
|
|
1128
|
+
|
|
907
1129
|
// @public
|
|
908
1130
|
export function random32(signed?: boolean): number;
|
|
909
1131
|
|
|
910
1132
|
// @public
|
|
911
1133
|
export function randomValue(maxValue: number): number;
|
|
912
1134
|
|
|
1135
|
+
// @public
|
|
1136
|
+
export function removeEventHandler(eventName: string, callback: any, evtNamespace?: string | string[]): void;
|
|
1137
|
+
|
|
1138
|
+
// @public
|
|
1139
|
+
export function removeEventListeners(events: string[], listener: any, evtNamespace?: string | string[]): void;
|
|
1140
|
+
|
|
1141
|
+
// @public
|
|
1142
|
+
export function removePageHideEventListener(listener: any, evtNamespace?: string | string[]): void;
|
|
1143
|
+
|
|
1144
|
+
// @public
|
|
1145
|
+
export function removePageUnloadEventListener(listener: any, evtNamespace?: string | string[]): void;
|
|
1146
|
+
|
|
913
1147
|
// @public
|
|
914
1148
|
export function safeGetCookieMgr(core: IAppInsightsCore, config?: IConfiguration): ICookieMgr;
|
|
915
1149
|
|