@microsoft/applicationinsights-analytics-js 3.0.0-beta.2303-10 → 3.0.0-beta.2304-07
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/es5/applicationinsights-analytics-js.cjs.js +5452 -0
- package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.gbl.js +5456 -0
- package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.integrity.json +66 -0
- package/browser/{applicationinsights-analytics-js.js → es5/applicationinsights-analytics-js.js} +921 -885
- package/browser/es5/applicationinsights-analytics-js.js.map +1 -0
- package/browser/es5/applicationinsights-analytics-js.min.js +6 -0
- package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -0
- package/dist/{applicationinsights-analytics-js.js → es5/applicationinsights-analytics-js.js} +921 -885
- package/dist/es5/applicationinsights-analytics-js.js.map +1 -0
- package/dist/es5/applicationinsights-analytics-js.min.js +6 -0
- package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/AnalyticsPlugin.js +2 -2
- package/{dist-esm → dist-es5}/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Timing.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
- package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
- package/{dist-esm → dist-es5}/applicationinsights-analytics-js.js +1 -1
- package/package.json +19 -18
- package/tsconfig.json +5 -4
- package/types/applicationinsights-analytics-js.d.ts +181 -2
- package/{dist/applicationinsights-analytics-js.d.ts → types/applicationinsights-analytics-js.namespaced.d.ts} +1 -1
- package/browser/applicationinsights-analytics-js.integrity.json +0 -26
- package/browser/applicationinsights-analytics-js.js.map +0 -1
- package/browser/applicationinsights-analytics-js.min.js +0 -6
- package/browser/applicationinsights-analytics-js.min.js.map +0 -1
- package/dist/applicationinsights-analytics-js.api.json +0 -1845
- package/dist/applicationinsights-analytics-js.api.md +0 -100
- package/dist/applicationinsights-analytics-js.js.map +0 -1
- package/dist/applicationinsights-analytics-js.min.js +0 -6
- package/dist/applicationinsights-analytics-js.min.js.map +0 -1
- package/dist/applicationinsights-analytics-js.rollup.d.ts +0 -182
- package/src/JavaScriptSDK/AnalyticsPlugin.ts +0 -1064
- package/src/JavaScriptSDK/Telemetry/PageViewManager.ts +0 -249
- package/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts +0 -221
- package/src/JavaScriptSDK/Telemetry/PageVisitTimeManager.ts +0 -128
- package/src/JavaScriptSDK/Timing.ts +0 -46
- package/src/JavaScriptSDK.Interfaces/ITelemetryConfig.ts +0 -13
- package/src/__DynamicConstants.ts +0 -56
- package/src/applicationinsights-analytics-js.ts +0 -5
- package/types/JavaScriptSDK/AnalyticsPlugin.d.ts +0 -140
- package/types/JavaScriptSDK/Telemetry/PageViewManager.d.ts +0 -30
- package/types/JavaScriptSDK/Telemetry/PageViewPerformanceManager.d.ts +0 -23
- package/types/JavaScriptSDK/Telemetry/PageVisitTimeManager.d.ts +0 -25
- package/types/JavaScriptSDK/Timing.d.ts +0 -18
- package/types/JavaScriptSDK.Interfaces/ITelemetryConfig.d.ts +0 -10
- package/types/__DynamicConstants.d.ts +0 -44
- package/types/tsdoc-metadata.json +0 -11
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageViewManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Telemetry/PageVisitTimeManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Timing.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryConfig.js.map +0 -0
- /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
- /package/{dist-esm → dist-es5}/applicationinsights-analytics-js.js.map +0 -0
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK - Web Analytics, 3.0.0-beta.2303-10
|
|
3
|
-
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Microsoft Application Insights Team
|
|
6
|
-
* https://github.com/microsoft/ApplicationInsights-JS#readme
|
|
7
|
-
*
|
|
8
|
-
* ---------------------------------------------------------------------------
|
|
9
|
-
* This is a single combined (rollup) declaration file for the package,
|
|
10
|
-
* use this version if your build environment doesn't support the using the
|
|
11
|
-
* individual *.d.ts files or default namespace wrapped version.
|
|
12
|
-
* - Namespaced version: applicationinsights-analytics-js.d.ts
|
|
13
|
-
* ---------------------------------------------------------------------------
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
|
|
17
|
-
import { IAppInsights } from '@microsoft/applicationinsights-common';
|
|
18
|
-
import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
|
|
19
|
-
import { IAutoExceptionTelemetry } from '@microsoft/applicationinsights-common';
|
|
20
|
-
import { IConfig } from '@microsoft/applicationinsights-common';
|
|
21
|
-
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
22
|
-
import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
|
|
23
|
-
import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
|
|
24
|
-
import { IEventTelemetry } from '@microsoft/applicationinsights-common';
|
|
25
|
-
import { IExceptionTelemetry } from '@microsoft/applicationinsights-common';
|
|
26
|
-
import { IMetricTelemetry } from '@microsoft/applicationinsights-common';
|
|
27
|
-
import { IPageViewPerformanceTelemetry } from '@microsoft/applicationinsights-common';
|
|
28
|
-
import { IPageViewPerformanceTelemetryInternal } from '@microsoft/applicationinsights-common';
|
|
29
|
-
import { IPageViewTelemetry } from '@microsoft/applicationinsights-common';
|
|
30
|
-
import { IPageViewTelemetryInternal } from '@microsoft/applicationinsights-common';
|
|
31
|
-
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
32
|
-
import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
|
|
33
|
-
import { ITelemetryInitializerHandler } from '@microsoft/applicationinsights-core-js';
|
|
34
|
-
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
35
|
-
import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
|
|
36
|
-
import { ITraceTelemetry } from '@microsoft/applicationinsights-common';
|
|
37
|
-
|
|
38
|
-
declare class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
|
|
39
|
-
static Version: string;
|
|
40
|
-
identifier: string;
|
|
41
|
-
priority: number;
|
|
42
|
-
readonly config: IConfig;
|
|
43
|
-
queue: Array<() => void>;
|
|
44
|
-
autoRoutePVDelay: number;
|
|
45
|
-
constructor();
|
|
46
|
-
/**
|
|
47
|
-
* Get the current cookie manager for this instance
|
|
48
|
-
*/
|
|
49
|
-
getCookieMgr(): ICookieMgr;
|
|
50
|
-
processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
51
|
-
trackEvent(event: IEventTelemetry, customProperties?: ICustomProperties): void;
|
|
52
|
-
/**
|
|
53
|
-
* Start timing an extended event. Call `stopTrackEvent` to log the event when it ends.
|
|
54
|
-
* @param name A string that identifies this event uniquely within the document.
|
|
55
|
-
*/
|
|
56
|
-
startTrackEvent(name: string): void;
|
|
57
|
-
/**
|
|
58
|
-
* Log an extended event that you started timing with `startTrackEvent`.
|
|
59
|
-
* @param name The string you used to identify this event in `startTrackEvent`.
|
|
60
|
-
* @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty.
|
|
61
|
-
* @param measurements map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty.
|
|
62
|
-
*/
|
|
63
|
-
stopTrackEvent(name: string, properties?: {
|
|
64
|
-
[key: string]: string;
|
|
65
|
-
}, measurements?: {
|
|
66
|
-
[key: string]: number;
|
|
67
|
-
}): void;
|
|
68
|
-
/**
|
|
69
|
-
* @description Log a diagnostic message
|
|
70
|
-
* @param trace
|
|
71
|
-
* @param ICustomProperties.
|
|
72
|
-
* @memberof ApplicationInsights
|
|
73
|
-
*/
|
|
74
|
-
trackTrace(trace: ITraceTelemetry, customProperties?: ICustomProperties): void;
|
|
75
|
-
/**
|
|
76
|
-
* @description Log a numeric value that is not associated with a specific event. Typically
|
|
77
|
-
* used to send regular reports of performance indicators. To send single measurement, just
|
|
78
|
-
* use the name and average fields of {@link IMetricTelemetry}. If you take measurements
|
|
79
|
-
* frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements
|
|
80
|
-
* and sending the resulting average at intervals
|
|
81
|
-
* @param metric - input object argument. Only name and average are mandatory.
|
|
82
|
-
* @param } customProperties additional data used to filter metrics in the
|
|
83
|
-
* portal. Defaults to empty.
|
|
84
|
-
* @memberof ApplicationInsights
|
|
85
|
-
*/
|
|
86
|
-
trackMetric(metric: IMetricTelemetry, customProperties?: ICustomProperties): void;
|
|
87
|
-
/**
|
|
88
|
-
* Logs that a page or other item was viewed.
|
|
89
|
-
* @param IPageViewTelemetry - The string you used as the name in startTrackPage. Defaults to the document title.
|
|
90
|
-
* @param customProperties - Additional data used to filter events and metrics. Defaults to empty.
|
|
91
|
-
* If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration
|
|
92
|
-
*/
|
|
93
|
-
trackPageView(pageView?: IPageViewTelemetry, customProperties?: ICustomProperties): void;
|
|
94
|
-
/**
|
|
95
|
-
* Create a page view telemetry item and send it to the SDK pipeline through the core.track API
|
|
96
|
-
* @param pageView - Page view item to be sent
|
|
97
|
-
* @param properties - Custom properties (Part C) that a user can add to the telemetry item
|
|
98
|
-
* @param systemProperties - System level properties (Part A) that a user can add to the telemetry item
|
|
99
|
-
*/
|
|
100
|
-
sendPageViewInternal(pageView: IPageViewTelemetryInternal, properties?: {
|
|
101
|
-
[key: string]: any;
|
|
102
|
-
}, systemProperties?: {
|
|
103
|
-
[key: string]: any;
|
|
104
|
-
}): void;
|
|
105
|
-
/**
|
|
106
|
-
* @ignore INTERNAL ONLY
|
|
107
|
-
* @param pageViewPerformance
|
|
108
|
-
* @param properties
|
|
109
|
-
*/
|
|
110
|
-
sendPageViewPerformanceInternal(pageViewPerformance: IPageViewPerformanceTelemetryInternal, properties?: {
|
|
111
|
-
[key: string]: any;
|
|
112
|
-
}, systemProperties?: {
|
|
113
|
-
[key: string]: any;
|
|
114
|
-
}): void;
|
|
115
|
-
/**
|
|
116
|
-
* Send browser performance metrics.
|
|
117
|
-
* @param pageViewPerformance
|
|
118
|
-
* @param customProperties
|
|
119
|
-
*/
|
|
120
|
-
trackPageViewPerformance(pageViewPerformance: IPageViewPerformanceTelemetry, customProperties?: ICustomProperties): void;
|
|
121
|
-
/**
|
|
122
|
-
* Starts the timer for tracking a page load time. Use this instead of `trackPageView` if you want to control when the page view timer starts and stops,
|
|
123
|
-
* but don't want to calculate the duration yourself. This method doesn't send any telemetry. Call `stopTrackPage` to log the end of the page view
|
|
124
|
-
* and send the event.
|
|
125
|
-
* @param name - A string that idenfities this item, unique within this HTML document. Defaults to the document title.
|
|
126
|
-
*/
|
|
127
|
-
startTrackPage(name?: string): void;
|
|
128
|
-
/**
|
|
129
|
-
* Stops the timer that was started by calling `startTrackPage` and sends the pageview load time telemetry with the specified properties and measurements.
|
|
130
|
-
* The duration of the page view will be the time between calling `startTrackPage` and `stopTrackPage`.
|
|
131
|
-
* @param name The string you used as the name in startTrackPage. Defaults to the document title.
|
|
132
|
-
* @param url String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.
|
|
133
|
-
* @param properties map[string, string] - additional data used to filter pages and metrics in the portal. Defaults to empty.
|
|
134
|
-
* @param measurements map[string, number] - metrics associated with this page, displayed in Metrics Explorer on the portal. Defaults to empty.
|
|
135
|
-
*/
|
|
136
|
-
stopTrackPage(name?: string, url?: string, properties?: {
|
|
137
|
-
[key: string]: string;
|
|
138
|
-
}, measurement?: {
|
|
139
|
-
[key: string]: number;
|
|
140
|
-
}): void;
|
|
141
|
-
/**
|
|
142
|
-
* @ignore INTERNAL ONLY
|
|
143
|
-
* @param exception
|
|
144
|
-
* @param properties
|
|
145
|
-
* @param systemProperties
|
|
146
|
-
*/
|
|
147
|
-
sendExceptionInternal(exception: IExceptionTelemetry, customProperties?: {
|
|
148
|
-
[key: string]: any;
|
|
149
|
-
}, systemProperties?: {
|
|
150
|
-
[key: string]: any;
|
|
151
|
-
}): void;
|
|
152
|
-
/**
|
|
153
|
-
* Log an exception you have caught.
|
|
154
|
-
*
|
|
155
|
-
* @param exception - Object which contains exception to be sent
|
|
156
|
-
* @param } customProperties Additional data used to filter pages and metrics in the portal. Defaults to empty.
|
|
157
|
-
*
|
|
158
|
-
* Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric.
|
|
159
|
-
* @memberof ApplicationInsights
|
|
160
|
-
*/
|
|
161
|
-
trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
|
|
162
|
-
/**
|
|
163
|
-
* @description Custom error handler for Application Insights Analytics
|
|
164
|
-
* @param exception
|
|
165
|
-
* @memberof ApplicationInsights
|
|
166
|
-
*/
|
|
167
|
-
_onerror(exception: IAutoExceptionTelemetry): void;
|
|
168
|
-
addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler;
|
|
169
|
-
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
170
|
-
}
|
|
171
|
-
export { AnalyticsPlugin }
|
|
172
|
-
export { AnalyticsPlugin as ApplicationInsights }
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Internal interface to pass appInsights object to subcomponents without coupling
|
|
176
|
-
*/
|
|
177
|
-
export declare interface IAppInsightsInternal {
|
|
178
|
-
sendPageViewInternal(pageViewItem: IPageViewTelemetryInternal, properties?: Object, systemProperties?: Object): void;
|
|
179
|
-
sendPageViewPerformanceInternal(pageViewPerformance: IPageViewPerformanceTelemetryInternal, properties?: Object, systemProperties?: Object): void;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export { }
|