@microsoft/applicationinsights-web-basic 3.0.0-beta.2210-01 → 3.0.0-beta.2210-03
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/aib.2.js +1349 -760
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/browser/aib.3.0.0-beta.2210-03.integrity.json +26 -0
- package/browser/{aib.3.0.0-beta.2210-01.js → aib.3.0.0-beta.2210-03.js} +1350 -761
- package/browser/aib.3.0.0-beta.2210-03.js.map +1 -0
- package/browser/aib.3.0.0-beta.2210-03.min.js +6 -0
- package/browser/aib.3.0.0-beta.2210-03.min.js.map +1 -0
- package/dist/applicationinsights-web-basic.api.json +2003 -158
- package/dist/applicationinsights-web-basic.api.md +76 -25
- package/dist/applicationinsights-web-basic.d.ts +296 -216
- package/dist/applicationinsights-web-basic.js +1349 -760
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +297 -217
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/index.js +11 -6
- package/dist-esm/index.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +14 -8
- package/types/index.d.ts +5 -5
- package/browser/aib.3.0.0-beta.2210-01.integrity.json +0 -26
- package/browser/aib.3.0.0-beta.2210-01.js.map +0 -1
- package/browser/aib.3.0.0-beta.2210-01.min.js +0 -6
- package/browser/aib.3.0.0-beta.2210-01.min.js.map +0 -1
|
@@ -9,30 +9,90 @@ import { EnumCls } from '@nevware21/ts-utils';
|
|
|
9
9
|
import { isNullOrUndefined } from '@nevware21/ts-utils';
|
|
10
10
|
import { throwError } from '@nevware21/ts-utils';
|
|
11
11
|
|
|
12
|
-
// Warning: (ae-forgotten-export) The symbol "BaseCore" needs to be exported by the entry point index.d.ts
|
|
13
|
-
//
|
|
14
12
|
// @public (undocumented)
|
|
15
|
-
export class AppInsightsCore
|
|
13
|
+
export class AppInsightsCore implements IAppInsightsCore {
|
|
16
14
|
constructor();
|
|
17
|
-
// Warning: (ae-forgotten-export) The symbol "
|
|
15
|
+
// Warning: (ae-forgotten-export) The symbol "INotificationListener" needs to be exported by the entry point index.d.ts
|
|
16
|
+
addNotificationListener(listener: INotificationListener): void;
|
|
17
|
+
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
|
|
18
|
+
// Warning: (ae-forgotten-export) The symbol "TelemetryInitializerFunction" needs to be exported by the entry point index.d.ts
|
|
19
|
+
// Warning: (ae-forgotten-export) The symbol "ITelemetryInitializerHandler" needs to be exported by the entry point index.d.ts
|
|
20
|
+
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
|
|
21
|
+
// Warning: (ae-forgotten-export) The symbol "UnloadHandler" needs to be exported by the entry point index.d.ts
|
|
22
|
+
addUnloadCb(handler: UnloadHandler): void;
|
|
23
|
+
// Warning: (ae-forgotten-export) The symbol "IUnloadHook" needs to be exported by the entry point index.d.ts
|
|
24
|
+
// Warning: (ae-forgotten-export) The symbol "ILegacyUnloadHook" needs to be exported by the entry point index.d.ts
|
|
25
|
+
addUnloadHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
|
|
26
|
+
// (undocumented)
|
|
27
|
+
config: IConfiguration;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
static defaultConfig: IConfiguration;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
eventCnt(): number;
|
|
32
|
+
evtNamespace(): string;
|
|
33
|
+
// (undocumented)
|
|
34
|
+
_extensions: IPlugin[];
|
|
35
|
+
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
|
|
36
|
+
// Warning: (ae-forgotten-export) The symbol "ICookieMgr" needs to be exported by the entry point index.d.ts
|
|
37
|
+
getCookieMgr(): ICookieMgr;
|
|
38
|
+
// (undocumented)
|
|
39
|
+
getNotifyMgr(): INotificationManager;
|
|
40
|
+
// Warning: (ae-forgotten-export) The symbol "IPerfManager" needs to be exported by the entry point index.d.ts
|
|
41
|
+
//
|
|
42
|
+
// (undocumented)
|
|
43
|
+
getPerfMgr(): IPerfManager;
|
|
44
|
+
// (undocumented)
|
|
45
|
+
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
46
|
+
// Warning: (ae-forgotten-export) The symbol "IProcessTelemetryContext" needs to be exported by the entry point index.d.ts
|
|
47
|
+
//
|
|
48
|
+
// (undocumented)
|
|
49
|
+
getProcessTelContext(): IProcessTelemetryContext;
|
|
50
|
+
// Warning: (ae-forgotten-export) The symbol "IDistributedTraceContext" needs to be exported by the entry point index.d.ts
|
|
51
|
+
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
52
|
+
// Warning: (ae-forgotten-export) The symbol "IChannelControls" needs to be exported by the entry point index.d.ts
|
|
53
|
+
//
|
|
54
|
+
// (undocumented)
|
|
55
|
+
getTransmissionControls(): IChannelControls[][];
|
|
18
56
|
// Warning: (ae-forgotten-export) The symbol "INotificationManager" needs to be exported by the entry point index.d.ts
|
|
19
57
|
//
|
|
20
58
|
// (undocumented)
|
|
21
59
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
22
60
|
// (undocumented)
|
|
61
|
+
isInitialized: () => boolean;
|
|
62
|
+
// Warning: (ae-forgotten-export) The symbol "IDiagnosticLogger" needs to be exported by the entry point index.d.ts
|
|
63
|
+
//
|
|
64
|
+
// (undocumented)
|
|
65
|
+
logger: IDiagnosticLogger;
|
|
66
|
+
// Warning: (ae-forgotten-export) The symbol "WatcherFunction" needs to be exported by the entry point index.d.ts
|
|
67
|
+
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
68
|
+
pollInternalLogs(eventName?: string): number;
|
|
69
|
+
// (undocumented)
|
|
70
|
+
protected releaseQueue(): void;
|
|
71
|
+
removeNotificationListener(listener: INotificationListener): void;
|
|
72
|
+
setCookieMgr(cookieMgr: ICookieMgr): void;
|
|
73
|
+
// (undocumented)
|
|
74
|
+
setPerfMgr(perfMgr: IPerfManager): void;
|
|
75
|
+
setTraceCtx(newTracectx: IDistributedTraceContext): void;
|
|
76
|
+
stopPollingInternalLogs(): void;
|
|
77
|
+
// (undocumented)
|
|
23
78
|
track(telemetryItem: ITelemetryItem): void;
|
|
79
|
+
// Warning: (ae-forgotten-export) The symbol "ITelemetryUnloadState" needs to be exported by the entry point index.d.ts
|
|
80
|
+
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
|
|
81
|
+
updateCfg<T extends IConfiguration = IConfiguration>(newConfig: T, mergeExisting?: boolean): void;
|
|
82
|
+
// Warning: (ae-forgotten-export) The symbol "IProcessTelemetryUpdateContext" needs to be exported by the entry point index.d.ts
|
|
83
|
+
// Warning: (ae-forgotten-export) The symbol "ITelemetryUpdateState" needs to be exported by the entry point index.d.ts
|
|
84
|
+
protected _updateHook?(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
|
|
24
85
|
}
|
|
25
86
|
|
|
26
87
|
// @public
|
|
27
88
|
export class ApplicationInsights {
|
|
28
89
|
constructor(config: IConfiguration & IConfig);
|
|
29
90
|
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting: boolean, doAsync: boolean, addCb?: (added?: boolean) => void): void;
|
|
30
|
-
// Warning: (ae-forgotten-export) The symbol "UnloadHandler" needs to be exported by the entry point index.d.ts
|
|
31
91
|
addUnloadCb(handler: UnloadHandler): void;
|
|
32
92
|
// Warning: (ae-forgotten-export) The symbol "IConfig" needs to be exported by the entry point index.d.ts
|
|
33
93
|
//
|
|
34
94
|
// (undocumented)
|
|
35
|
-
config: IConfiguration & IConfig;
|
|
95
|
+
readonly config: IConfiguration & IConfig;
|
|
36
96
|
evtNamespace(): string;
|
|
37
97
|
flush(async?: boolean): void;
|
|
38
98
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
@@ -82,8 +142,12 @@ export const enum _eInternalMessageId {
|
|
|
82
142
|
// (undocumented)
|
|
83
143
|
ClientPerformanceMathError = 8,
|
|
84
144
|
// (undocumented)
|
|
145
|
+
ConfigWatcherException = 107,
|
|
146
|
+
// (undocumented)
|
|
85
147
|
CreateEnvelopeError = 47,
|
|
86
148
|
// (undocumented)
|
|
149
|
+
DynamicConfigException = 108,
|
|
150
|
+
// (undocumented)
|
|
87
151
|
ErrorParsingAISessionCookie = 9,
|
|
88
152
|
// (undocumented)
|
|
89
153
|
ErrorPVCalc = 10,
|
|
@@ -237,27 +301,20 @@ export const enum eSeverityLevel {
|
|
|
237
301
|
//
|
|
238
302
|
// @public (undocumented)
|
|
239
303
|
export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
240
|
-
// Warning: (ae-forgotten-export) The symbol "INotificationListener" needs to be exported by the entry point index.d.ts
|
|
241
304
|
addNotificationListener?(listener: INotificationListener): void;
|
|
242
305
|
addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting?: boolean, doAsync?: boolean, addCb?: (added?: boolean) => void): void;
|
|
243
|
-
|
|
244
|
-
// Warning: (ae-forgotten-export) The symbol "ITelemetryInitializerHandler" needs to be exported by the entry point index.d.ts
|
|
245
|
-
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
|
|
306
|
+
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
|
|
246
307
|
addUnloadCb(handler: UnloadHandler): void;
|
|
308
|
+
addUnloadHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
|
|
247
309
|
// (undocumented)
|
|
248
310
|
config: IConfiguration;
|
|
249
311
|
evtNamespace(): string;
|
|
250
312
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
|
|
251
|
-
// Warning: (ae-forgotten-export) The symbol "ICookieMgr" needs to be exported by the entry point index.d.ts
|
|
252
313
|
getCookieMgr(): ICookieMgr;
|
|
253
314
|
getNotifyMgr(): INotificationManager;
|
|
254
315
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
255
|
-
// Warning: (ae-forgotten-export) The symbol "IProcessTelemetryContext" needs to be exported by the entry point index.d.ts
|
|
256
316
|
getProcessTelContext(): IProcessTelemetryContext;
|
|
257
|
-
// Warning: (ae-forgotten-export) The symbol "IDistributedTraceContext" needs to be exported by the entry point index.d.ts
|
|
258
317
|
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
259
|
-
// Warning: (ae-forgotten-export) The symbol "IChannelControls" needs to be exported by the entry point index.d.ts
|
|
260
|
-
//
|
|
261
318
|
// (undocumented)
|
|
262
319
|
getTransmissionControls(): IChannelControls[][];
|
|
263
320
|
// (undocumented)
|
|
@@ -265,6 +322,7 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
265
322
|
isInitialized?: () => boolean;
|
|
266
323
|
// (undocumented)
|
|
267
324
|
logger: IDiagnosticLogger;
|
|
325
|
+
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
268
326
|
// (undocumented)
|
|
269
327
|
pollInternalLogs?(eventName?: string): number;
|
|
270
328
|
removeNotificationListener?(listener: INotificationListener): void;
|
|
@@ -274,8 +332,8 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
274
332
|
stopPollingInternalLogs?(): void;
|
|
275
333
|
// (undocumented)
|
|
276
334
|
track(telemetryItem: ITelemetryItem): void;
|
|
277
|
-
// Warning: (ae-forgotten-export) The symbol "ITelemetryUnloadState" needs to be exported by the entry point index.d.ts
|
|
278
335
|
unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void;
|
|
336
|
+
updateCfg<T extends IConfiguration = IConfiguration>(newConfig: T, mergeExisting?: boolean): void;
|
|
279
337
|
}
|
|
280
338
|
|
|
281
339
|
// @public
|
|
@@ -300,7 +358,6 @@ export interface IConfiguration {
|
|
|
300
358
|
cookieCfg?: ICookieMgrConfig;
|
|
301
359
|
cookieDomain?: string;
|
|
302
360
|
cookiePath?: string;
|
|
303
|
-
// Warning: (ae-forgotten-export) The symbol "IPerfManager" needs to be exported by the entry point index.d.ts
|
|
304
361
|
createPerfMgr?: (core: IAppInsightsCore, notificationManager: INotificationManager) => IPerfManager;
|
|
305
362
|
diagnosticLogInterval?: number;
|
|
306
363
|
disableCookiesUsage?: boolean;
|
|
@@ -378,14 +435,6 @@ export interface IMetricTelemetry extends IPartC {
|
|
|
378
435
|
stdDev?: number;
|
|
379
436
|
}
|
|
380
437
|
|
|
381
|
-
// Warning: (ae-forgotten-export) The symbol "EnumValue" needs to be exported by the entry point index.d.ts
|
|
382
|
-
//
|
|
383
|
-
// @public
|
|
384
|
-
export const _InternalMessageId: EnumValue<typeof _eInternalMessageId>;
|
|
385
|
-
|
|
386
|
-
// @public (undocumented)
|
|
387
|
-
export type _InternalMessageId = number | _eInternalMessageId;
|
|
388
|
-
|
|
389
438
|
// @public (undocumented)
|
|
390
439
|
export interface IPageViewPerformanceTelemetry extends IPartC {
|
|
391
440
|
domProcessing?: string;
|
|
@@ -521,6 +570,8 @@ export const enum SendRequestReason {
|
|
|
521
570
|
Unload = 2
|
|
522
571
|
}
|
|
523
572
|
|
|
573
|
+
// Warning: (ae-forgotten-export) The symbol "EnumValue" needs to be exported by the entry point index.d.ts
|
|
574
|
+
//
|
|
524
575
|
// @public
|
|
525
576
|
export const SeverityLevel: EnumValue<typeof eSeverityLevel>;
|
|
526
577
|
|