@microsoft/applicationinsights-web-basic 2.8.0-nightly.2204-04 → 2.8.0-nightly.2204-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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 2.8.0-nightly.2204-04
2
+ * Microsoft.ApplicationInsights, 2.8.0-nightly.2204-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -289,11 +289,7 @@ declare namespace ApplicationInsights {
289
289
  */
290
290
  const CoreUtils: ICoreUtils;
291
291
 
292
- const DistributedTracingModes: {
293
- AI: number;
294
- AI_AND_W3C: number;
295
- W3C: number;
296
- };
292
+ const DistributedTracingModes: EnumValue<typeof eDistributedTracingModes>;
297
293
 
298
294
  type DistributedTracingModes = number | eDistributedTracingModes;
299
295
 
@@ -408,6 +404,21 @@ declare namespace ApplicationInsights {
408
404
  WARNING = 2
409
405
  }
410
406
 
407
+ type EnumValue<E = any> = {
408
+ readonly [key in keyof E]: E[key];
409
+ };
410
+
411
+ /**
412
+ * Defines the level of severity for the event.
413
+ */
414
+ const enum eSeverityLevel {
415
+ Verbose = 0,
416
+ Information = 1,
417
+ Warning = 2,
418
+ Error = 3,
419
+ Critical = 4
420
+ }
421
+
411
422
  const enum GetExtCfgMergeType {
412
423
  None = 0,
413
424
  MergeDefaultOnly = 1,
@@ -823,7 +834,7 @@ declare namespace ApplicationInsights {
823
834
  */
824
835
  enableSessionStorageBuffer?: boolean;
825
836
  /**
826
- * @deprecated Use either disableCookiesUsage or specify a cookieMgrCfg with the enabled value set.
837
+ * @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
827
838
  * If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
828
839
  * isCookieUseDisabled and disableCookiesUsage are used disableCookiesUsage will take precedent.
829
840
  * @defaultValue false
@@ -831,7 +842,7 @@ declare namespace ApplicationInsights {
831
842
  isCookieUseDisabled?: boolean;
832
843
  /**
833
844
  * If true, the SDK will not store or read any data from cookies. Default is false.
834
- * If you have also specified a cookieMgrCfg then enabled property (if specified) will take precedent over this value.
845
+ * If you have also specified a cookieCfg then enabled property (if specified) will take precedent over this value.
835
846
  * @defaultValue false
836
847
  */
837
848
  disableCookiesUsage?: boolean;
@@ -845,12 +856,6 @@ declare namespace ApplicationInsights {
845
856
  * @defaultValue ""
846
857
  */
847
858
  cookiePath?: string;
848
- /**
849
- * [Optional] A Cookie Manager configuration which includes hooks to allow interception of the get, set and delete cookie
850
- * operations. If this configuration is specified any specified enabled and domain properties will take precedence over the
851
- * cookieDomain and disableCookiesUsage values.
852
- */
853
- cookieMgrCfg?: ICookieMgrConfig;
854
859
  /**
855
860
  * Default false. If false, retry on 206 (partial success), 408 (timeout), 429 (too many requests), 500 (internal server error), 503 (service unavailable), and 0 (offline, only if detected)
856
861
  * @description
@@ -1761,90 +1766,7 @@ declare namespace ApplicationInsights {
1761
1766
  /**
1762
1767
  * Internal message ID. Please create a new one for every conceptually different message. Please keep alphabetically ordered
1763
1768
  */
1764
- const _InternalMessageId: {
1765
- BrowserDoesNotSupportLocalStorage: number;
1766
- BrowserCannotReadLocalStorage: number;
1767
- BrowserCannotReadSessionStorage: number;
1768
- BrowserCannotWriteLocalStorage: number;
1769
- BrowserCannotWriteSessionStorage: number;
1770
- BrowserFailedRemovalFromLocalStorage: number;
1771
- BrowserFailedRemovalFromSessionStorage: number;
1772
- CannotSendEmptyTelemetry: number;
1773
- ClientPerformanceMathError: number;
1774
- ErrorParsingAISessionCookie: number;
1775
- ErrorPVCalc: number;
1776
- ExceptionWhileLoggingError: number;
1777
- FailedAddingTelemetryToBuffer: number;
1778
- FailedMonitorAjaxAbort: number;
1779
- FailedMonitorAjaxDur: number;
1780
- FailedMonitorAjaxOpen: number;
1781
- FailedMonitorAjaxRSC: number;
1782
- FailedMonitorAjaxSend: number;
1783
- FailedMonitorAjaxGetCorrelationHeader: number;
1784
- FailedToAddHandlerForOnBeforeUnload: number;
1785
- FailedToSendQueuedTelemetry: number;
1786
- FailedToReportDataLoss: number;
1787
- FlushFailed: number;
1788
- MessageLimitPerPVExceeded: number;
1789
- MissingRequiredFieldSpecification: number;
1790
- NavigationTimingNotSupported: number;
1791
- OnError: number;
1792
- SessionRenewalDateIsZero: number;
1793
- SenderNotInitialized: number;
1794
- StartTrackEventFailed: number;
1795
- StopTrackEventFailed: number;
1796
- StartTrackFailed: number;
1797
- StopTrackFailed: number;
1798
- TelemetrySampledAndNotSent: number;
1799
- TrackEventFailed: number;
1800
- TrackExceptionFailed: number;
1801
- TrackMetricFailed: number;
1802
- TrackPVFailed: number;
1803
- TrackPVFailedCalc: number;
1804
- TrackTraceFailed: number;
1805
- TransmissionFailed: number;
1806
- FailedToSetStorageBuffer: number;
1807
- FailedToRestoreStorageBuffer: number;
1808
- InvalidBackendResponse: number;
1809
- FailedToFixDepricatedValues: number;
1810
- InvalidDurationValue: number;
1811
- TelemetryEnvelopeInvalid: number;
1812
- CreateEnvelopeError: number;
1813
- CannotSerializeObject: number;
1814
- CannotSerializeObjectNonSerializable: number;
1815
- CircularReferenceDetected: number;
1816
- ClearAuthContextFailed: number;
1817
- ExceptionTruncated: number;
1818
- IllegalCharsInName: number;
1819
- ItemNotInArray: number;
1820
- MaxAjaxPerPVExceeded: number;
1821
- MessageTruncated: number;
1822
- NameTooLong: number;
1823
- SampleRateOutOfRange: number;
1824
- SetAuthContextFailed: number;
1825
- SetAuthContextFailedAccountName: number;
1826
- StringValueTooLong: number;
1827
- StartCalledMoreThanOnce: number;
1828
- StopCalledWithoutStart: number;
1829
- TelemetryInitializerFailed: number;
1830
- TrackArgumentsNotSpecified: number;
1831
- UrlTooLong: number;
1832
- SessionStorageBufferFull: number;
1833
- CannotAccessCookie: number;
1834
- IdTooLong: number;
1835
- InvalidEvent: number;
1836
- FailedMonitorAjaxSetRequestHeader: number;
1837
- SendBrowserInfoOnUserInit: number;
1838
- PluginException: number;
1839
- NotificationException: number;
1840
- SnippetScriptLoadFailure: number;
1841
- InvalidInstrumentationKey: number;
1842
- CannotParseAiBlobValue: number;
1843
- InvalidContentBlob: number;
1844
- TrackPageActionEventFailed: number;
1845
- FailedAddingCustomDefinedRequestContext: number;
1846
- InMemoryStorageBufferFull: number;
1847
- };
1769
+ const _InternalMessageId: EnumValue<typeof _eInternalMessageId>;
1848
1770
 
1849
1771
  type _InternalMessageId = number | _eInternalMessageId;
1850
1772
 
@@ -2438,10 +2360,7 @@ declare namespace ApplicationInsights {
2438
2360
  iKey?: string;
2439
2361
  }
2440
2362
 
2441
- const LoggingSeverity: {
2442
- CRITICAL: number;
2443
- WARNING: number;
2444
- };
2363
+ const LoggingSeverity: EnumValue<typeof eLoggingSeverity>;
2445
2364
 
2446
2365
  type LoggingSeverity = number | eLoggingSeverity;
2447
2366
 
@@ -2451,6 +2370,7 @@ declare namespace ApplicationInsights {
2451
2370
  * @param target - The target object to be assigned with the source properties and functions
2452
2371
  * @param source - The source object which will be assigned / called by setting / calling the targets proxies
2453
2372
  * @param functionsToProxy - An array of function names that will be proxied on the target
2373
+ * @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name
2454
2374
  */
2455
2375
  function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget?: boolean): T;
2456
2376
 
@@ -2585,13 +2505,9 @@ declare namespace ApplicationInsights {
2585
2505
  /**
2586
2506
  * Defines the level of severity for the event.
2587
2507
  */
2588
- enum SeverityLevel {
2589
- Verbose = 0,
2590
- Information = 1,
2591
- Warning = 2,
2592
- Error = 3,
2593
- Critical = 4
2594
- }
2508
+ const SeverityLevel: EnumValue<typeof eSeverityLevel>;
2509
+
2510
+ type SeverityLevel = number | eSeverityLevel;
2595
2511
 
2596
2512
  interface Tags {
2597
2513
  [key: string]: any;