@microsoft/applicationinsights-web-basic 3.0.0-beta.2211-01 → 3.0.0-beta.2211-04
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 +953 -1103
- 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.2211-04.integrity.json +26 -0
- package/browser/{aib.3.0.0-beta.2211-01.js → aib.3.0.0-beta.2211-04.js} +954 -1104
- package/browser/aib.3.0.0-beta.2211-04.js.map +1 -0
- package/browser/aib.3.0.0-beta.2211-04.min.js +6 -0
- package/browser/aib.3.0.0-beta.2211-04.min.js.map +1 -0
- package/dist/applicationinsights-web-basic.api.json +75 -73
- package/dist/applicationinsights-web-basic.api.md +9 -8
- package/dist/applicationinsights-web-basic.d.ts +10 -9
- package/dist/applicationinsights-web-basic.js +953 -1103
- 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 +10 -9
- package/dist-esm/__DynamicConstants.js +1 -2
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/index.js +4 -10
- package/dist-esm/index.js.map +1 -1
- package/package.json +4 -4
- package/src/__DynamicConstants.ts +0 -1
- package/src/index.ts +1 -11
- package/types/__DynamicConstants.d.ts +0 -1
- package/browser/aib.3.0.0-beta.2211-01.integrity.json +0 -26
- package/browser/aib.3.0.0-beta.2211-01.js.map +0 -1
- package/browser/aib.3.0.0-beta.2211-01.min.js +0 -6
- package/browser/aib.3.0.0-beta.2211-01.min.js.map +0 -1
|
@@ -2664,6 +2664,41 @@
|
|
|
2664
2664
|
"isOptional": false,
|
|
2665
2665
|
"name": "flush"
|
|
2666
2666
|
},
|
|
2667
|
+
{
|
|
2668
|
+
"kind": "Method",
|
|
2669
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#getChannels:member(1)",
|
|
2670
|
+
"docComment": "",
|
|
2671
|
+
"excerptTokens": [
|
|
2672
|
+
{
|
|
2673
|
+
"kind": "Content",
|
|
2674
|
+
"text": "getChannels(): "
|
|
2675
|
+
},
|
|
2676
|
+
{
|
|
2677
|
+
"kind": "Reference",
|
|
2678
|
+
"text": "IChannelControls",
|
|
2679
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IChannelControls:interface"
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
"kind": "Content",
|
|
2683
|
+
"text": "[]"
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"kind": "Content",
|
|
2687
|
+
"text": ";"
|
|
2688
|
+
}
|
|
2689
|
+
],
|
|
2690
|
+
"isStatic": false,
|
|
2691
|
+
"returnTypeTokenRange": {
|
|
2692
|
+
"startIndex": 1,
|
|
2693
|
+
"endIndex": 3
|
|
2694
|
+
},
|
|
2695
|
+
"releaseTag": "Public",
|
|
2696
|
+
"isProtected": false,
|
|
2697
|
+
"overloadIndex": 1,
|
|
2698
|
+
"parameters": [],
|
|
2699
|
+
"isOptional": false,
|
|
2700
|
+
"name": "getChannels"
|
|
2701
|
+
},
|
|
2667
2702
|
{
|
|
2668
2703
|
"kind": "Method",
|
|
2669
2704
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#getCookieMgr:member(1)",
|
|
@@ -2923,41 +2958,6 @@
|
|
|
2923
2958
|
"isOptional": false,
|
|
2924
2959
|
"name": "getTraceCtx"
|
|
2925
2960
|
},
|
|
2926
|
-
{
|
|
2927
|
-
"kind": "Method",
|
|
2928
|
-
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#getTransmissionControls:member(1)",
|
|
2929
|
-
"docComment": "",
|
|
2930
|
-
"excerptTokens": [
|
|
2931
|
-
{
|
|
2932
|
-
"kind": "Content",
|
|
2933
|
-
"text": "getTransmissionControls(): "
|
|
2934
|
-
},
|
|
2935
|
-
{
|
|
2936
|
-
"kind": "Reference",
|
|
2937
|
-
"text": "IChannelControls",
|
|
2938
|
-
"canonicalReference": "@microsoft/applicationinsights-web-basic!IChannelControls:interface"
|
|
2939
|
-
},
|
|
2940
|
-
{
|
|
2941
|
-
"kind": "Content",
|
|
2942
|
-
"text": "[][]"
|
|
2943
|
-
},
|
|
2944
|
-
{
|
|
2945
|
-
"kind": "Content",
|
|
2946
|
-
"text": ";"
|
|
2947
|
-
}
|
|
2948
|
-
],
|
|
2949
|
-
"isStatic": false,
|
|
2950
|
-
"returnTypeTokenRange": {
|
|
2951
|
-
"startIndex": 1,
|
|
2952
|
-
"endIndex": 3
|
|
2953
|
-
},
|
|
2954
|
-
"releaseTag": "Public",
|
|
2955
|
-
"isProtected": false,
|
|
2956
|
-
"overloadIndex": 1,
|
|
2957
|
-
"parameters": [],
|
|
2958
|
-
"isOptional": false,
|
|
2959
|
-
"name": "getTransmissionControls"
|
|
2960
|
-
},
|
|
2961
2961
|
{
|
|
2962
2962
|
"kind": "Property",
|
|
2963
2963
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!AppInsightsCore#getWParam:member",
|
|
@@ -3309,8 +3309,9 @@
|
|
|
3309
3309
|
"text": "): "
|
|
3310
3310
|
},
|
|
3311
3311
|
{
|
|
3312
|
-
"kind": "
|
|
3313
|
-
"text": "
|
|
3312
|
+
"kind": "Reference",
|
|
3313
|
+
"text": "ITimerHandler",
|
|
3314
|
+
"canonicalReference": "@nevware21/ts-utils!ITimerHandler:interface"
|
|
3314
3315
|
},
|
|
3315
3316
|
{
|
|
3316
3317
|
"kind": "Content",
|
|
@@ -5164,6 +5165,39 @@
|
|
|
5164
5165
|
],
|
|
5165
5166
|
"name": "flush"
|
|
5166
5167
|
},
|
|
5168
|
+
{
|
|
5169
|
+
"kind": "MethodSignature",
|
|
5170
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#getChannels:member(1)",
|
|
5171
|
+
"docComment": "",
|
|
5172
|
+
"excerptTokens": [
|
|
5173
|
+
{
|
|
5174
|
+
"kind": "Content",
|
|
5175
|
+
"text": "getChannels(): "
|
|
5176
|
+
},
|
|
5177
|
+
{
|
|
5178
|
+
"kind": "Reference",
|
|
5179
|
+
"text": "IChannelControls",
|
|
5180
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IChannelControls:interface"
|
|
5181
|
+
},
|
|
5182
|
+
{
|
|
5183
|
+
"kind": "Content",
|
|
5184
|
+
"text": "[]"
|
|
5185
|
+
},
|
|
5186
|
+
{
|
|
5187
|
+
"kind": "Content",
|
|
5188
|
+
"text": ";"
|
|
5189
|
+
}
|
|
5190
|
+
],
|
|
5191
|
+
"isOptional": false,
|
|
5192
|
+
"returnTypeTokenRange": {
|
|
5193
|
+
"startIndex": 1,
|
|
5194
|
+
"endIndex": 3
|
|
5195
|
+
},
|
|
5196
|
+
"releaseTag": "Public",
|
|
5197
|
+
"overloadIndex": 1,
|
|
5198
|
+
"parameters": [],
|
|
5199
|
+
"name": "getChannels"
|
|
5200
|
+
},
|
|
5167
5201
|
{
|
|
5168
5202
|
"kind": "MethodSignature",
|
|
5169
5203
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#getCookieMgr:member(1)",
|
|
@@ -5382,39 +5416,6 @@
|
|
|
5382
5416
|
],
|
|
5383
5417
|
"name": "getTraceCtx"
|
|
5384
5418
|
},
|
|
5385
|
-
{
|
|
5386
|
-
"kind": "MethodSignature",
|
|
5387
|
-
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#getTransmissionControls:member(1)",
|
|
5388
|
-
"docComment": "",
|
|
5389
|
-
"excerptTokens": [
|
|
5390
|
-
{
|
|
5391
|
-
"kind": "Content",
|
|
5392
|
-
"text": "getTransmissionControls(): "
|
|
5393
|
-
},
|
|
5394
|
-
{
|
|
5395
|
-
"kind": "Reference",
|
|
5396
|
-
"text": "IChannelControls",
|
|
5397
|
-
"canonicalReference": "@microsoft/applicationinsights-web-basic!IChannelControls:interface"
|
|
5398
|
-
},
|
|
5399
|
-
{
|
|
5400
|
-
"kind": "Content",
|
|
5401
|
-
"text": "[][]"
|
|
5402
|
-
},
|
|
5403
|
-
{
|
|
5404
|
-
"kind": "Content",
|
|
5405
|
-
"text": ";"
|
|
5406
|
-
}
|
|
5407
|
-
],
|
|
5408
|
-
"isOptional": false,
|
|
5409
|
-
"returnTypeTokenRange": {
|
|
5410
|
-
"startIndex": 1,
|
|
5411
|
-
"endIndex": 3
|
|
5412
|
-
},
|
|
5413
|
-
"releaseTag": "Public",
|
|
5414
|
-
"overloadIndex": 1,
|
|
5415
|
-
"parameters": [],
|
|
5416
|
-
"name": "getTransmissionControls"
|
|
5417
|
-
},
|
|
5418
5419
|
{
|
|
5419
5420
|
"kind": "PropertySignature",
|
|
5420
5421
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#getWParam:member",
|
|
@@ -5752,8 +5753,9 @@
|
|
|
5752
5753
|
"text": "): "
|
|
5753
5754
|
},
|
|
5754
5755
|
{
|
|
5755
|
-
"kind": "
|
|
5756
|
-
"text": "
|
|
5756
|
+
"kind": "Reference",
|
|
5757
|
+
"text": "ITimerHandler",
|
|
5758
|
+
"canonicalReference": "@nevware21/ts-utils!ITimerHandler:interface"
|
|
5757
5759
|
},
|
|
5758
5760
|
{
|
|
5759
5761
|
"kind": "Content",
|
|
@@ -10652,7 +10654,7 @@
|
|
|
10652
10654
|
"excerptTokens": [
|
|
10653
10655
|
{
|
|
10654
10656
|
"kind": "Content",
|
|
10655
|
-
"text": "export
|
|
10657
|
+
"text": "export type SeverityLevel = "
|
|
10656
10658
|
},
|
|
10657
10659
|
{
|
|
10658
10660
|
"kind": "Content",
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import { arrForEach } from '@nevware21/ts-utils';
|
|
8
8
|
import { EnumCls } from '@nevware21/ts-utils';
|
|
9
9
|
import { isNullOrUndefined } from '@nevware21/ts-utils';
|
|
10
|
+
import { ITimerHandler } from '@nevware21/ts-utils';
|
|
10
11
|
import { throwError } from '@nevware21/ts-utils';
|
|
11
12
|
|
|
12
13
|
// @public (undocumented)
|
|
@@ -31,6 +32,10 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
31
32
|
eventCnt(): number;
|
|
32
33
|
evtNamespace(): string;
|
|
33
34
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
|
|
35
|
+
// Warning: (ae-forgotten-export) The symbol "IChannelControls" needs to be exported by the entry point index.d.ts
|
|
36
|
+
//
|
|
37
|
+
// (undocumented)
|
|
38
|
+
getChannels(): IChannelControls[];
|
|
34
39
|
// Warning: (ae-forgotten-export) The symbol "ICookieMgr" needs to be exported by the entry point index.d.ts
|
|
35
40
|
getCookieMgr(): ICookieMgr;
|
|
36
41
|
// (undocumented)
|
|
@@ -47,10 +52,6 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
47
52
|
getProcessTelContext(): IProcessTelemetryContext;
|
|
48
53
|
// Warning: (ae-forgotten-export) The symbol "IDistributedTraceContext" needs to be exported by the entry point index.d.ts
|
|
49
54
|
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
50
|
-
// Warning: (ae-forgotten-export) The symbol "IChannelControls" needs to be exported by the entry point index.d.ts
|
|
51
|
-
//
|
|
52
|
-
// (undocumented)
|
|
53
|
-
getTransmissionControls(): IChannelControls[][];
|
|
54
55
|
getWParam: () => number;
|
|
55
56
|
// Warning: (ae-forgotten-export) The symbol "INotificationManager" needs to be exported by the entry point index.d.ts
|
|
56
57
|
//
|
|
@@ -65,7 +66,7 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
65
66
|
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
66
67
|
readonly pluginVersionString: string;
|
|
67
68
|
readonly pluginVersionStringArr: string[];
|
|
68
|
-
pollInternalLogs(eventName?: string):
|
|
69
|
+
pollInternalLogs(eventName?: string): ITimerHandler;
|
|
69
70
|
// (undocumented)
|
|
70
71
|
protected releaseQueue(): void;
|
|
71
72
|
removeNotificationListener(listener: INotificationListener): void;
|
|
@@ -310,13 +311,13 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
310
311
|
config: IConfiguration;
|
|
311
312
|
evtNamespace(): string;
|
|
312
313
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
|
|
314
|
+
// (undocumented)
|
|
315
|
+
getChannels(): IChannelControls[];
|
|
313
316
|
getCookieMgr(): ICookieMgr;
|
|
314
317
|
getNotifyMgr(): INotificationManager;
|
|
315
318
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
316
319
|
getProcessTelContext(): IProcessTelemetryContext;
|
|
317
320
|
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
318
|
-
// (undocumented)
|
|
319
|
-
getTransmissionControls(): IChannelControls[][];
|
|
320
321
|
getWParam: () => number;
|
|
321
322
|
// (undocumented)
|
|
322
323
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
@@ -327,7 +328,7 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
327
328
|
readonly pluginVersionString: string;
|
|
328
329
|
readonly pluginVersionStringArr: string[];
|
|
329
330
|
// (undocumented)
|
|
330
|
-
pollInternalLogs?(eventName?: string):
|
|
331
|
+
pollInternalLogs?(eventName?: string): ITimerHandler;
|
|
331
332
|
removeNotificationListener?(listener: INotificationListener): void;
|
|
332
333
|
setCookieMgr(cookieMgr: ICookieMgr): void;
|
|
333
334
|
setTraceCtx(newTraceCtx: IDistributedTraceContext | null | undefined): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.0.0-beta.2211-
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.0.0-beta.2211-04
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -10,6 +10,7 @@ declare namespace ApplicationInsights {
|
|
|
10
10
|
import { arrForEach } from '@nevware21/ts-utils';
|
|
11
11
|
import { EnumCls } from '@nevware21/ts-utils';
|
|
12
12
|
import { isNullOrUndefined } from '@nevware21/ts-utils';
|
|
13
|
+
import { ITimerHandler } from '@nevware21/ts-utils';
|
|
13
14
|
import { throwError } from '@nevware21/ts-utils';
|
|
14
15
|
|
|
15
16
|
class AppInsightsCore implements IAppInsightsCore {
|
|
@@ -34,7 +35,7 @@ declare namespace ApplicationInsights {
|
|
|
34
35
|
getWParam: () => number;
|
|
35
36
|
constructor();
|
|
36
37
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
37
|
-
|
|
38
|
+
getChannels(): IChannelControls[];
|
|
38
39
|
track(telemetryItem: ITelemetryItem): void;
|
|
39
40
|
getProcessTelContext(): IProcessTelemetryContext;
|
|
40
41
|
getNotifyMgr(): INotificationManager;
|
|
@@ -65,7 +66,7 @@ declare namespace ApplicationInsights {
|
|
|
65
66
|
/**
|
|
66
67
|
* Periodically check logger.queue for
|
|
67
68
|
*/
|
|
68
|
-
pollInternalLogs(eventName?: string):
|
|
69
|
+
pollInternalLogs(eventName?: string): ITimerHandler;
|
|
69
70
|
/**
|
|
70
71
|
* Periodically check logger.queue for
|
|
71
72
|
*/
|
|
@@ -464,7 +465,7 @@ declare namespace ApplicationInsights {
|
|
|
464
465
|
*/
|
|
465
466
|
isInitialized?: () => boolean;
|
|
466
467
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
467
|
-
|
|
468
|
+
getChannels(): IChannelControls[];
|
|
468
469
|
track(telemetryItem: ITelemetryItem): void;
|
|
469
470
|
/**
|
|
470
471
|
* Get the current notification manager
|
|
@@ -497,7 +498,7 @@ declare namespace ApplicationInsights {
|
|
|
497
498
|
* @returns - A ITelemetryInitializerHandler to enable the initializer to be removed
|
|
498
499
|
*/
|
|
499
500
|
addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
|
|
500
|
-
pollInternalLogs?(eventName?: string):
|
|
501
|
+
pollInternalLogs?(eventName?: string): ITimerHandler;
|
|
501
502
|
stopPollingInternalLogs?(): void;
|
|
502
503
|
/**
|
|
503
504
|
* Return a new instance of the IProcessTelemetryContext for processing events
|
|
@@ -731,11 +732,11 @@ declare namespace ApplicationInsights {
|
|
|
731
732
|
/**
|
|
732
733
|
* Pause sending data
|
|
733
734
|
*/
|
|
734
|
-
pause(): void;
|
|
735
|
+
pause?(): void;
|
|
735
736
|
/**
|
|
736
737
|
* Resume sending data
|
|
737
738
|
*/
|
|
738
|
-
resume(): void;
|
|
739
|
+
resume?(): void;
|
|
739
740
|
/**
|
|
740
741
|
* Tear down the plugin and remove any hooked value, the plugin should be removed so that it is no longer initialized and
|
|
741
742
|
* therefore could be re-initialized after being torn down. The plugin should ensure that once this has been called any further
|
|
@@ -744,7 +745,7 @@ declare namespace ApplicationInsights {
|
|
|
744
745
|
* @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.
|
|
745
746
|
* @returns boolean - true if the plugin has or will call processNext(), this for backward compatibility as previously teardown was synchronous and returned nothing.
|
|
746
747
|
*/
|
|
747
|
-
teardown
|
|
748
|
+
teardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
|
|
748
749
|
/**
|
|
749
750
|
* Flush to send data immediately; channel should default to sending data asynchronously
|
|
750
751
|
* @param async - send data asynchronously when true
|
|
@@ -753,7 +754,7 @@ declare namespace ApplicationInsights {
|
|
|
753
754
|
* @param sendReason - specify the reason that you are calling "flush" defaults to ManualFlush (1) if not specified
|
|
754
755
|
* @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
|
|
755
756
|
*/
|
|
756
|
-
flush(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
|
|
757
|
+
flush?(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
|
|
757
758
|
}
|
|
758
759
|
|
|
759
760
|
interface IChannelControlsAI extends IChannelControls {
|