@microsoft/applicationinsights-web-basic 2.8.0-beta.2203-16 → 2.8.0-nightly.2204-05

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-beta.2203-16
2
+ * Microsoft.ApplicationInsights, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -295,11 +295,11 @@ declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
295
295
  */
296
296
  export declare const CoreUtils: ICoreUtils;
297
297
 
298
- declare const DistributedTracingModes: {
299
- AI: number;
300
- AI_AND_W3C: number;
301
- W3C: number;
302
- };
298
+ declare const DistributedTracingModes: EnumValue< {
299
+ AI: number;
300
+ AI_AND_W3C: number;
301
+ W3C: number;
302
+ }>;
303
303
 
304
304
  declare type DistributedTracingModes = number | eDistributedTracingModes;
305
305
 
@@ -414,6 +414,10 @@ declare const enum eLoggingSeverity {
414
414
  WARNING = 2
415
415
  }
416
416
 
417
+ declare type EnumValue<E = any> = {
418
+ readonly [key in keyof E]: E[key];
419
+ };
420
+
417
421
  declare const enum GetExtCfgMergeType {
418
422
  None = 0,
419
423
  MergeDefaultOnly = 1,
@@ -1492,15 +1496,39 @@ declare interface IDiagnosticLogger {
1492
1496
  }
1493
1497
 
1494
1498
  declare interface IEnvelope extends ISerializable {
1499
+ /**
1500
+ * Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
1501
+ */
1495
1502
  ver: number;
1503
+ /**
1504
+ * Type name of telemetry data item.
1505
+ */
1496
1506
  name: string;
1507
+ /**
1508
+ * Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z.
1509
+ */
1497
1510
  time: string;
1511
+ /**
1512
+ * Sampling rate used in application. This telemetry item represents 1 / sampleRate actual telemetry items.
1513
+ */
1498
1514
  sampleRate: number;
1515
+ /**
1516
+ * Sequence field used to track absolute order of uploaded events.
1517
+ */
1499
1518
  seq: string;
1519
+ /**
1520
+ * The application's instrumentation key. The key is typically represented as a GUID, but there are cases when it is not a guid. No code should rely on iKey being a GUID. Instrumentation key is case insensitive.
1521
+ */
1500
1522
  iKey: string;
1523
+ /**
1524
+ * Key/value collection of context properties. See ContextTagKeys for information on available properties.
1525
+ */
1501
1526
  tags: {
1502
1527
  [name: string]: any;
1503
1528
  };
1529
+ /**
1530
+ * Telemetry data item.
1531
+ */
1504
1532
  data: any;
1505
1533
  }
1506
1534
 
@@ -1743,90 +1771,7 @@ declare class _InternalLogMessage {
1743
1771
  /**
1744
1772
  * Internal message ID. Please create a new one for every conceptually different message. Please keep alphabetically ordered
1745
1773
  */
1746
- export declare const _InternalMessageId: {
1747
- BrowserDoesNotSupportLocalStorage: number;
1748
- BrowserCannotReadLocalStorage: number;
1749
- BrowserCannotReadSessionStorage: number;
1750
- BrowserCannotWriteLocalStorage: number;
1751
- BrowserCannotWriteSessionStorage: number;
1752
- BrowserFailedRemovalFromLocalStorage: number;
1753
- BrowserFailedRemovalFromSessionStorage: number;
1754
- CannotSendEmptyTelemetry: number;
1755
- ClientPerformanceMathError: number;
1756
- ErrorParsingAISessionCookie: number;
1757
- ErrorPVCalc: number;
1758
- ExceptionWhileLoggingError: number;
1759
- FailedAddingTelemetryToBuffer: number;
1760
- FailedMonitorAjaxAbort: number;
1761
- FailedMonitorAjaxDur: number;
1762
- FailedMonitorAjaxOpen: number;
1763
- FailedMonitorAjaxRSC: number;
1764
- FailedMonitorAjaxSend: number;
1765
- FailedMonitorAjaxGetCorrelationHeader: number;
1766
- FailedToAddHandlerForOnBeforeUnload: number;
1767
- FailedToSendQueuedTelemetry: number;
1768
- FailedToReportDataLoss: number;
1769
- FlushFailed: number;
1770
- MessageLimitPerPVExceeded: number;
1771
- MissingRequiredFieldSpecification: number;
1772
- NavigationTimingNotSupported: number;
1773
- OnError: number;
1774
- SessionRenewalDateIsZero: number;
1775
- SenderNotInitialized: number;
1776
- StartTrackEventFailed: number;
1777
- StopTrackEventFailed: number;
1778
- StartTrackFailed: number;
1779
- StopTrackFailed: number;
1780
- TelemetrySampledAndNotSent: number;
1781
- TrackEventFailed: number;
1782
- TrackExceptionFailed: number;
1783
- TrackMetricFailed: number;
1784
- TrackPVFailed: number;
1785
- TrackPVFailedCalc: number;
1786
- TrackTraceFailed: number;
1787
- TransmissionFailed: number;
1788
- FailedToSetStorageBuffer: number;
1789
- FailedToRestoreStorageBuffer: number;
1790
- InvalidBackendResponse: number;
1791
- FailedToFixDepricatedValues: number;
1792
- InvalidDurationValue: number;
1793
- TelemetryEnvelopeInvalid: number;
1794
- CreateEnvelopeError: number;
1795
- CannotSerializeObject: number;
1796
- CannotSerializeObjectNonSerializable: number;
1797
- CircularReferenceDetected: number;
1798
- ClearAuthContextFailed: number;
1799
- ExceptionTruncated: number;
1800
- IllegalCharsInName: number;
1801
- ItemNotInArray: number;
1802
- MaxAjaxPerPVExceeded: number;
1803
- MessageTruncated: number;
1804
- NameTooLong: number;
1805
- SampleRateOutOfRange: number;
1806
- SetAuthContextFailed: number;
1807
- SetAuthContextFailedAccountName: number;
1808
- StringValueTooLong: number;
1809
- StartCalledMoreThanOnce: number;
1810
- StopCalledWithoutStart: number;
1811
- TelemetryInitializerFailed: number;
1812
- TrackArgumentsNotSpecified: number;
1813
- UrlTooLong: number;
1814
- SessionStorageBufferFull: number;
1815
- CannotAccessCookie: number;
1816
- IdTooLong: number;
1817
- InvalidEvent: number;
1818
- FailedMonitorAjaxSetRequestHeader: number;
1819
- SendBrowserInfoOnUserInit: number;
1820
- PluginException: number;
1821
- NotificationException: number;
1822
- SnippetScriptLoadFailure: number;
1823
- InvalidInstrumentationKey: number;
1824
- CannotParseAiBlobValue: number;
1825
- InvalidContentBlob: number;
1826
- TrackPageActionEventFailed: number;
1827
- FailedAddingCustomDefinedRequestContext: number;
1828
- InMemoryStorageBufferFull: number;
1829
- };
1774
+ export declare const _InternalMessageId: EnumValue<typeof _eInternalMessageId>;
1830
1775
 
1831
1776
  export declare type _InternalMessageId = number | _eInternalMessageId;
1832
1777
 
@@ -2420,10 +2365,7 @@ export declare interface ITraceTelemetry extends IPartC {
2420
2365
  iKey?: string;
2421
2366
  }
2422
2367
 
2423
- declare const LoggingSeverity: {
2424
- CRITICAL: number;
2425
- WARNING: number;
2426
- };
2368
+ declare const LoggingSeverity: EnumValue<typeof eLoggingSeverity>;
2427
2369
 
2428
2370
  declare type LoggingSeverity = number | eLoggingSeverity;
2429
2371
 
@@ -2433,6 +2375,7 @@ declare type LoggingSeverity = number | eLoggingSeverity;
2433
2375
  * @param target - The target object to be assigned with the source properties and functions
2434
2376
  * @param source - The source object which will be assigned / called by setting / calling the targets proxies
2435
2377
  * @param functionsToProxy - An array of function names that will be proxied on the target
2378
+ * @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name
2436
2379
  */
2437
2380
  export declare function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget?: boolean): T;
2438
2381
 
package/dist-esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript Web SDK - Basic, 2.8.0-beta.2203-16
2
+ * Application Insights JavaScript Web SDK - Basic, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-web-basic",
3
- "version": "2.8.0-beta.2203-16",
3
+ "version": "2.8.0-nightly.2204-05",
4
4
  "description": "Microsoft Application Insights Javascript SDK core and channel",
5
5
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
6
  "author": "Microsoft Application Insights Team",
@@ -51,12 +51,12 @@
51
51
  "dependencies": {
52
52
  "@microsoft/dynamicproto-js": "^1.1.4",
53
53
  "@microsoft/applicationinsights-shims": "2.0.1",
54
- "@microsoft/applicationinsights-common": "2.8.0-beta.2203-16",
55
- "@microsoft/applicationinsights-channel-js": "2.8.0-beta.2203-16",
56
- "@microsoft/applicationinsights-core-js": "2.8.0-beta.2203-16"
54
+ "@microsoft/applicationinsights-common": "2.8.0-nightly.2204-05",
55
+ "@microsoft/applicationinsights-channel-js": "2.8.0-nightly.2204-05",
56
+ "@microsoft/applicationinsights-core-js": "2.8.0-nightly.2204-05"
57
57
  },
58
58
  "license": "MIT",
59
59
  "publishConfig": {
60
- "tag": "beta"
60
+ "tag": "nightly"
61
61
  }
62
62
  }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.19.5"
8
+ "packageVersion": "7.20.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,26 +0,0 @@
1
- {
2
- "name": "aib",
3
- "version": "2.8.0-beta.2203-16",
4
- "ext": {
5
- "@js": {
6
- "file": "aib.2.8.0-beta.2203-16.js",
7
- "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-mY6wpNSRnvRQ6dwUlAKjKKhNQk85XY6ckW2M1B3VJV8= sha384-a3Mkw40xMzxAHQWfJrFpjen7ZjEH1QzcKG37XxdXCRoednJVybPO9DsQSUs3w43W sha512-bKL9reaFwGKFnjPM0uOBnfnwpoEj4AylP0P+WwndZbiRbZf0a02SCJK8DYZo1LHIVARp0hVvxoRviQbigY0OtQ==",
9
- "hashes": {
10
- "sha256": "mY6wpNSRnvRQ6dwUlAKjKKhNQk85XY6ckW2M1B3VJV8=",
11
- "sha384": "a3Mkw40xMzxAHQWfJrFpjen7ZjEH1QzcKG37XxdXCRoednJVybPO9DsQSUs3w43W",
12
- "sha512": "bKL9reaFwGKFnjPM0uOBnfnwpoEj4AylP0P+WwndZbiRbZf0a02SCJK8DYZo1LHIVARp0hVvxoRviQbigY0OtQ=="
13
- }
14
- },
15
- "@min.js": {
16
- "file": "aib.2.8.0-beta.2203-16.min.js",
17
- "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-6uk0TcNqYFmw6qP/B+VieHTTZnbiw6RZGtXXRxNrDPc= sha384-h2UTonLWl3CdQOYG+Gj0av+l1ojBGree+K2bL0UuRkHso0lIKhkxdXTGdq5UP82H sha512-lmqfvRn1NaIiz4BllMQKYIphvHFGAAakl4NycOjhV3aqdsapVKS+z6K3d8z1VOFTjY2Yx0Zp7SA1zdPMNgW7aw==",
19
- "hashes": {
20
- "sha256": "6uk0TcNqYFmw6qP/B+VieHTTZnbiw6RZGtXXRxNrDPc=",
21
- "sha384": "h2UTonLWl3CdQOYG+Gj0av+l1ojBGree+K2bL0UuRkHso0lIKhkxdXTGdq5UP82H",
22
- "sha512": "lmqfvRn1NaIiz4BllMQKYIphvHFGAAakl4NycOjhV3aqdsapVKS+z6K3d8z1VOFTjY2Yx0Zp7SA1zdPMNgW7aw=="
23
- }
24
- }
25
- }
26
- }