@microsoft/applicationinsights-analytics-js 3.3.5-nightly3.2411-14 → 3.3.5-nightly3.2412-01

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 (28) hide show
  1. package/browser/es5/applicationinsights-analytics-js.cjs.js +3 -3
  2. package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-analytics-js.gbl.js +5 -5
  6. package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-analytics-js.js +5 -5
  11. package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-analytics-js.js +3 -3
  15. package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
  18. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +4 -4
  19. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
  20. package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
  21. package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
  22. package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
  23. package/dist-es5/JavaScriptSDK/Timing.js +1 -1
  24. package/dist-es5/__DynamicConstants.js +1 -1
  25. package/dist-es5/applicationinsights-analytics-js.js +1 -1
  26. package/package.json +5 -5
  27. package/types/applicationinsights-analytics-js.d.ts +11 -11
  28. package/types/applicationinsights-analytics-js.namespaced.d.ts +32 -61
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK - Web Analytics, 3.3.5-nightly3.2411-14
2
+ * Microsoft Application Insights JavaScript SDK - Web Analytics, 3.3.5-nightly3.2412-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -39,8 +39,8 @@ declare namespace ApplicationInsights {
39
39
  }): void;
40
40
  /**
41
41
  * @description Log a diagnostic message
42
- * @param trace
43
- * @param ICustomProperties.
42
+ * @param trace - the trace message
43
+ * @param customProperties - Additional custom properties to include in the event
44
44
  */
45
45
  trackTrace(trace: ITraceTelemetry, customProperties?: ICustomProperties): void;
46
46
  /**
@@ -74,8 +74,8 @@ declare namespace ApplicationInsights {
74
74
  }): void;
75
75
  /**
76
76
  * @ignore INTERNAL ONLY
77
- * @param pageViewPerformance
78
- * @param properties
77
+ * @param pageViewPerformance - The page view performance item to be sent
78
+ * @param properties - Custom properties (Part C) that a user can add to the telemetry item
79
79
  */
80
80
  sendPageViewPerformanceInternal(pageViewPerformance: IPageViewPerformanceTelemetryInternal, properties?: {
81
81
  [key: string]: any;
@@ -84,8 +84,8 @@ declare namespace ApplicationInsights {
84
84
  }): void;
85
85
  /**
86
86
  * Send browser performance metrics.
87
- * @param pageViewPerformance
88
- * @param customProperties
87
+ * @param pageViewPerformance - The page view performance item to be sent
88
+ * @param customProperties - Additional data used to filter pages and metrics in the portal. Defaults to empty.
89
89
  */
90
90
  trackPageViewPerformance(pageViewPerformance: IPageViewPerformanceTelemetry, customProperties?: ICustomProperties): void;
91
91
  /**
@@ -110,9 +110,9 @@ declare namespace ApplicationInsights {
110
110
  }): void;
111
111
  /**
112
112
  * @ignore INTERNAL ONLY
113
- * @param exception
114
- * @param properties
115
- * @param systemProperties
113
+ * @param exception - The exception item to be sent
114
+ * @param properties - Custom properties (Part C) that a user can add to the telemetry item
115
+ * @param systemProperties - System level properties (Part A) that a user can add to the telemetry item
116
116
  */
117
117
  sendExceptionInternal(exception: IExceptionTelemetry, customProperties?: {
118
118
  [key: string]: any;
@@ -130,7 +130,7 @@ declare namespace ApplicationInsights {
130
130
  trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
131
131
  /**
132
132
  * @description Custom error handler for Application Insights Analytics
133
- * @param exception
133
+ * @param exception - The exception item to be sent
134
134
  */
135
135
  _onerror(exception: IAutoExceptionTelemetry): void;
136
136
  addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler;
@@ -550,7 +550,6 @@ declare namespace ApplicationInsights {
550
550
  unload(isAsync?: boolean, unloadComplete?: (unloadState: ITelemetryUnloadState) => void, cbTimeout?: number): void | IPromise<ITelemetryUnloadState>;
551
551
  /**
552
552
  * Find and return the (first) plugin with the specified identifier if present
553
- * @param pluginIdentifier
554
553
  */
555
554
  getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
556
555
  /**
@@ -605,7 +604,6 @@ declare namespace ApplicationInsights {
605
604
  /**
606
605
  * Watches and tracks changes for accesses to the current config, and if the accessed config changes the
607
606
  * handler will be recalled.
608
- * @param handler
609
607
  * @returns A watcher handler instance that can be used to remove itself when being unloaded
610
608
  */
611
609
  onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
@@ -646,47 +644,38 @@ declare namespace ApplicationInsights {
646
644
  interface IAutoExceptionTelemetry {
647
645
  /**
648
646
  * @description error message. Available as event in HTML onerror="" handler
649
- * @type {string}
650
647
  */
651
648
  message: string;
652
649
  /**
653
650
  * @description URL of the script where the error was raised
654
- * @type {string}
655
651
  */
656
652
  url: string;
657
653
  /**
658
654
  * @description Line number where error was raised
659
- * @type {number}
660
655
  */
661
656
  lineNumber: number;
662
657
  /**
663
658
  * @description Column number for the line where the error occurred
664
- * @type {number}
665
659
  */
666
660
  columnNumber: number;
667
661
  /**
668
662
  * @description Error Object (object)
669
- * @type {any}
670
663
  */
671
664
  error: any;
672
665
  /**
673
666
  * @description The event at the time of the exception (object)
674
- * @type {Event|string}
675
667
  */
676
668
  evt?: Event | string;
677
669
  /**
678
670
  * @description The provided stack for the error
679
- * @type {IStackDetails}
680
671
  */
681
672
  stackDetails?: IStackDetails;
682
673
  /**
683
674
  * @description The calculated type of the error
684
- * @type {string}
685
675
  */
686
676
  typeName?: string;
687
677
  /**
688
678
  * @description The descriptive source of the error
689
- * @type {string}
690
679
  */
691
680
  errorSrc?: string;
692
681
  }
@@ -913,7 +902,7 @@ declare namespace ApplicationInsights {
913
902
  */
914
903
  disableFlushOnBeforeUnload?: boolean;
915
904
  /**
916
- * Default value of {@link #disableFlushOnBeforeUnload}. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
905
+ * Default value of `disableFlushOnBeforeUnload`. If true, flush method will not be called when onPageHide or onVisibilityChange (hidden state) event(s) trigger.
917
906
  */
918
907
  disableFlushOnUnload?: boolean;
919
908
  /**
@@ -965,12 +954,12 @@ declare namespace ApplicationInsights {
965
954
  */
966
955
  isStorageUseDisabled?: boolean;
967
956
  /**
968
- * If false, the SDK will send all telemetry using the [Beacon API](https://www.w3.org/TR/beacon)
957
+ * If false, the SDK will send all telemetry using the <a href="https://www.w3.org/TR/beacon">Beacon API</a>.
969
958
  * @defaultValue true
970
959
  */
971
960
  isBeaconApiDisabled?: boolean;
972
961
  /**
973
- * Don't use XMLHttpRequest or XDomainRequest (for IE < 9) by default instead attempt to use fetch() or sendBeacon.
962
+ * Don't use XMLHttpRequest or XDomainRequest (for IE \< 9) by default instead attempt to use fetch() or sendBeacon.
974
963
  * If no other transport is available it will still use XMLHttpRequest
975
964
  */
976
965
  disableXhr?: boolean;
@@ -1227,8 +1216,8 @@ declare namespace ApplicationInsights {
1227
1216
  * be logged to console if their severity meets the configured loggingConsoleLevel
1228
1217
  *
1229
1218
  * 0: ALL console logging off
1230
- * 1: logs to console: severity >= CRITICAL
1231
- * 2: logs to console: severity >= WARNING
1219
+ * 1: logs to console: severity \>= CRITICAL
1220
+ * 2: logs to console: severity \>= WARNING
1232
1221
  */
1233
1222
  loggingLevelConsole?: number;
1234
1223
  /**
@@ -1237,8 +1226,8 @@ declare namespace ApplicationInsights {
1237
1226
  * the configured instrumentation key.
1238
1227
  *
1239
1228
  * 0: ALL iKey logging off
1240
- * 1: logs to iKey: severity >= CRITICAL
1241
- * 2: logs to iKey: severity >= WARNING
1229
+ * 1: logs to iKey: severity \>= CRITICAL
1230
+ * 2: logs to iKey: severity \>= WARNING
1242
1231
  */
1243
1232
  loggingLevelTelemetry?: number;
1244
1233
  /**
@@ -1265,7 +1254,6 @@ declare namespace ApplicationInsights {
1265
1254
  */
1266
1255
  readonly channels?: IChannelControls[][];
1267
1256
  /**
1268
- * @type {boolean}
1269
1257
  * Flag that disables the Instrumentation Key validation.
1270
1258
  */
1271
1259
  disableInstrumentationKeyValidation?: boolean;
@@ -1296,14 +1284,12 @@ declare namespace ApplicationInsights {
1296
1284
  /**
1297
1285
  * @description Custom cookie domain. This is helpful if you want to share Application Insights cookies across subdomains. It
1298
1286
  * can be set here or as part of the cookieCfg.domain, the cookieCfg takes precedence if both are specified.
1299
- * @type {string}
1300
1287
  * @defaultValue ""
1301
1288
  */
1302
1289
  cookieDomain?: string;
1303
1290
  /**
1304
1291
  * @description Custom cookie path. This is helpful if you want to share Application Insights cookies behind an application
1305
1292
  * gateway. It can be set here or as part of the cookieCfg.domain, the cookieCfg takes precedence if both are specified.
1306
- * @type {string}
1307
1293
  * @defaultValue ""
1308
1294
  */
1309
1295
  cookiePath?: string;
@@ -1415,7 +1401,7 @@ declare namespace ApplicationInsights {
1415
1401
  /**
1416
1402
  * Optional Callback hook to allow the cookie manager to update it's configuration, not generally implemented now that
1417
1403
  * dynamic configuration is supported
1418
- * @param updateState
1404
+ * @param updateState - The new configuration state to apply to the cookie manager
1419
1405
  */
1420
1406
  update?(updateState: ITelemetryUpdateState): void;
1421
1407
  /**
@@ -1529,7 +1515,7 @@ declare namespace ApplicationInsights {
1529
1515
  logInternalMessage?(severity: LoggingSeverity, message: _InternalLogMessage): void;
1530
1516
  /**
1531
1517
  * Optional Callback hook to allow the diagnostic logger to update it's configuration
1532
- * @param updateState
1518
+ * @param updateState - The new configuration state to apply to the diagnostic logger
1533
1519
  */
1534
1520
  update?(updateState: ITelemetryUpdateState): void;
1535
1521
  /**
@@ -1550,7 +1536,7 @@ declare namespace ApplicationInsights {
1550
1536
  getName(): string;
1551
1537
  /**
1552
1538
  * Sets the current name of the page
1553
- * @param pageName
1539
+ * @param pageName - The name of the page
1554
1540
  */
1555
1541
  setName(pageName: string): void;
1556
1542
  /**
@@ -1582,7 +1568,7 @@ declare namespace ApplicationInsights {
1582
1568
  getTraceFlags(): number | undefined;
1583
1569
  /**
1584
1570
  * https://www.w3.org/TR/trace-context/#trace-flags
1585
- * @param newValue
1571
+ * @param newValue - An integer representation of the W3C TraceContext trace-flags.
1586
1572
  */
1587
1573
  setTraceFlags(newValue?: number): void;
1588
1574
  }
@@ -1590,12 +1576,10 @@ declare namespace ApplicationInsights {
1590
1576
  interface IEventTelemetry extends IPartC {
1591
1577
  /**
1592
1578
  * @description An event name string
1593
- * @type {string}
1594
1579
  */
1595
1580
  name: string;
1596
1581
  /**
1597
1582
  * @description custom defined iKey
1598
- * @type {string}
1599
1583
  */
1600
1584
  iKey?: string;
1601
1585
  }
@@ -1634,10 +1618,10 @@ declare namespace ApplicationInsights {
1634
1618
  *
1635
1619
  * This callback is called before telemetry data is sent, allowing for dynamic customization of the logs.
1636
1620
  *
1637
- * @returns {Object} An object with the following property:
1621
+ * @returns An object with the following property:
1638
1622
  * - logs: An array of strings, where each string represents a log entry to be included in the telemetry.
1639
1623
  *
1640
- * @property {number} maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
1624
+ * @property maxLogs - Specifies the maximum number of logs that can be generated. If not explicitly set, it defaults to 50.
1641
1625
  */
1642
1626
  expLog?: () => {
1643
1627
  logs: string[];
@@ -1661,20 +1645,17 @@ declare namespace ApplicationInsights {
1661
1645
  */
1662
1646
  id?: string;
1663
1647
  /**
1664
- * @deprecated
1665
- * @type {Error}
1666
- * @description DEPRECATED: Please use exception instead. Behavior/usage for exception remains the same as this field.
1648
+ * @deprecated Please use the `exception` field instead. The behavior and usage of `exception` remains the same as this field.
1649
+ * Unique guid identifying this error.
1667
1650
  */
1668
1651
  error?: Error;
1669
1652
  /**
1670
- * @type {Error}
1671
1653
  * @description Error Object(s)
1672
1654
  */
1673
1655
  exception?: Error | IAutoExceptionTelemetry;
1674
1656
  /**
1675
1657
  * @description Specified severity of exception for use with
1676
1658
  * telemetry filtering in dashboard
1677
- * @type {(SeverityLevel | number)}
1678
1659
  */
1679
1660
  severityLevel?: SeverityLevel | number;
1680
1661
  }
@@ -1725,32 +1706,31 @@ declare namespace ApplicationInsights {
1725
1706
  getUrl: () => string;
1726
1707
  /**
1727
1708
  * Create payload data
1728
- * @param data data
1729
1709
  * @returns IPayloadData
1730
1710
  */
1731
1711
  createPayload: (data: string | Uint8Array) => IPayloadData;
1732
1712
  /**
1733
1713
  * Serialize an item into a string
1734
- * @param input telemetry item
1735
- * @param convertUndefined convert undefined to a custom-defined object
1714
+ * @param input - telemetry item
1715
+ * @param convertUndefined - convert undefined to a custom-defined object
1736
1716
  * @returns Serialized string
1737
1717
  */
1738
1718
  serialize?: (input: ITelemetryItem, convertUndefined?: any) => string;
1739
1719
  /**
1740
1720
  * Batch an array of strings into one string
1741
- * @param arr array of strings
1721
+ * @param arr - array of strings
1742
1722
  * @returns a string represent all items in the given array
1743
1723
  */
1744
1724
  batch?: (arr: string[]) => string;
1745
1725
  /**
1746
1726
  * If the item should be processed by offline channel
1747
- * @param evt telemetry item
1727
+ * @param evt - telemetry item
1748
1728
  * @returns should process or not
1749
1729
  */
1750
1730
  shouldProcess?: (evt: ITelemetryItem) => boolean;
1751
1731
  /**
1752
1732
  * Create 1ds payload data
1753
- * @param evts ITelemetryItems
1733
+ * @param evts - ITelemetryItems
1754
1734
  * @returns IPayloadData
1755
1735
  */
1756
1736
  createOneDSPayload?: (evts: ITelemetryItem[]) => IPayloadData;
@@ -1787,29 +1767,24 @@ declare namespace ApplicationInsights {
1787
1767
  interface IMetricTelemetry extends IPartC {
1788
1768
  /**
1789
1769
  * @description (required) - name of this metric
1790
- * @type {string}
1791
1770
  */
1792
1771
  name: string;
1793
1772
  /**
1794
1773
  * @description (required) - Recorded value/average for this metric
1795
- * @type {number}
1796
1774
  */
1797
1775
  average: number;
1798
1776
  /**
1799
1777
  * @description (optional) Number of samples represented by the average.
1800
- * @type {number=}
1801
1778
  * @default sampleCount=1
1802
1779
  */
1803
1780
  sampleCount?: number;
1804
1781
  /**
1805
1782
  * @description (optional) The smallest measurement in the sample. Defaults to the average
1806
- * @type {number}
1807
1783
  * @default min=average
1808
1784
  */
1809
1785
  min?: number;
1810
1786
  /**
1811
1787
  * @description (optional) The largest measurement in the sample. Defaults to the average.
1812
- * @type {number}
1813
1788
  * @default max=average
1814
1789
  */
1815
1790
  max?: number;
@@ -1819,7 +1794,6 @@ declare namespace ApplicationInsights {
1819
1794
  stdDev?: number;
1820
1795
  /**
1821
1796
  * @description custom defined iKey
1822
- * @type {string}
1823
1797
  */
1824
1798
  iKey?: string;
1825
1799
  }
@@ -1850,7 +1824,7 @@ declare namespace ApplicationInsights {
1850
1824
  /**
1851
1825
  * [Optional] This event is sent if you have enabled perf events, they are primarily used to track internal performance testing and debugging
1852
1826
  * the event can be displayed via the debug plugin extension.
1853
- * @param perfEvent
1827
+ * @param perfEvent - The performance event object
1854
1828
  */
1855
1829
  perfEvent?: (perfEvent: IPerfEvent) => void;
1856
1830
  /**
@@ -2845,17 +2819,14 @@ declare namespace ApplicationInsights {
2845
2819
  interface ITraceTelemetry extends IPartC {
2846
2820
  /**
2847
2821
  * @description A message string
2848
- * @type {string}
2849
2822
  */
2850
2823
  message: string;
2851
2824
  /**
2852
2825
  * @description Severity level of the logging message used for filtering in the portal
2853
- * @type {SeverityLevel}
2854
2826
  */
2855
2827
  severityLevel?: SeverityLevel;
2856
2828
  /**
2857
2829
  * @description custom defiend iKey
2858
- * @type {SeverityLevel}
2859
2830
  */
2860
2831
  iKey?: string;
2861
2832
  }