@microsoft/applicationinsights-core-js 2.8.0-nightly.2204-04 → 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.
Files changed (85) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +311 -276
  3. package/browser/applicationinsights-core-js.js.map +1 -1
  4. package/browser/applicationinsights-core-js.min.js +2 -2
  5. package/browser/applicationinsights-core-js.min.js.map +1 -1
  6. package/dist/applicationinsights-core-js.api.json +674 -36
  7. package/dist/applicationinsights-core-js.api.md +46 -98
  8. package/dist/applicationinsights-core-js.d.ts +94 -116
  9. package/dist/applicationinsights-core-js.js +311 -276
  10. package/dist/applicationinsights-core-js.js.map +1 -1
  11. package/dist/applicationinsights-core-js.min.js +2 -2
  12. package/dist/applicationinsights-core-js.min.js.map +1 -1
  13. package/dist/applicationinsights-core-js.rollup.d.ts +94 -116
  14. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +2 -4
  15. package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
  16. package/dist-esm/JavaScriptSDK/BaseCore.js +3 -3
  17. package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
  18. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  19. package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
  20. package/dist-esm/JavaScriptSDK/Constants.js +1 -1
  21. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  22. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  23. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  24. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  25. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  26. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +21 -1
  27. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
  28. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  29. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  30. package/dist-esm/JavaScriptSDK/HelperFuncs.js +12 -21
  31. package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
  32. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  33. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  34. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  35. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  36. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  37. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  38. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  39. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  40. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  41. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +51 -0
  42. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js.map +1 -0
  43. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +10 -9
  44. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js.map +1 -1
  45. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +2 -2
  46. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js.map +1 -1
  47. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  48. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  49. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  50. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  69. package/dist-esm/applicationinsights-core-js.js +4 -3
  70. package/dist-esm/applicationinsights-core-js.js.map +1 -1
  71. package/package.json +1 -1
  72. package/src/JavaScriptSDK/AppInsightsCore.ts +2 -4
  73. package/src/JavaScriptSDK/BaseCore.ts +2 -2
  74. package/src/JavaScriptSDK/DataCacheHelper.ts +1 -1
  75. package/src/JavaScriptSDK/DiagnosticLogger.ts +22 -0
  76. package/src/JavaScriptSDK/HelperFuncs.ts +13 -22
  77. package/src/JavaScriptSDK.Enums/EnumHelperFuncs.ts +56 -0
  78. package/src/JavaScriptSDK.Enums/EventsDiscardedReason.ts +48 -8
  79. package/src/JavaScriptSDK.Enums/LoggingEnums.ts +3 -4
  80. package/types/JavaScriptSDK/DiagnosticLogger.d.ts +13 -0
  81. package/types/JavaScriptSDK/HelperFuncs.d.ts +10 -6
  82. package/types/JavaScriptSDK.Enums/EnumHelperFuncs.d.ts +34 -0
  83. package/types/JavaScriptSDK.Enums/EventsDiscardedReason.d.ts +14 -9
  84. package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +2 -88
  85. package/types/applicationinsights-core-js.d.ts +4 -3
@@ -2207,14 +2207,32 @@
2207
2207
  },
2208
2208
  {
2209
2209
  "kind": "Content",
2210
- "text": "{\n BrowserDoesNotSupportLocalStorage: number;\n BrowserCannotReadLocalStorage: number;\n BrowserCannotReadSessionStorage: number;\n BrowserCannotWriteLocalStorage: number;\n BrowserCannotWriteSessionStorage: number;\n BrowserFailedRemovalFromLocalStorage: number;\n BrowserFailedRemovalFromSessionStorage: number;\n CannotSendEmptyTelemetry: number;\n ClientPerformanceMathError: number;\n ErrorParsingAISessionCookie: number;\n ErrorPVCalc: number;\n ExceptionWhileLoggingError: number;\n FailedAddingTelemetryToBuffer: number;\n FailedMonitorAjaxAbort: number;\n FailedMonitorAjaxDur: number;\n FailedMonitorAjaxOpen: number;\n FailedMonitorAjaxRSC: number;\n FailedMonitorAjaxSend: number;\n FailedMonitorAjaxGetCorrelationHeader: number;\n FailedToAddHandlerForOnBeforeUnload: number;\n FailedToSendQueuedTelemetry: number;\n FailedToReportDataLoss: number;\n FlushFailed: number;\n MessageLimitPerPVExceeded: number;\n MissingRequiredFieldSpecification: number;\n NavigationTimingNotSupported: number;\n OnError: number;\n SessionRenewalDateIsZero: number;\n SenderNotInitialized: number;\n StartTrackEventFailed: number;\n StopTrackEventFailed: number;\n StartTrackFailed: number;\n StopTrackFailed: number;\n TelemetrySampledAndNotSent: number;\n TrackEventFailed: number;\n TrackExceptionFailed: number;\n TrackMetricFailed: number;\n TrackPVFailed: number;\n TrackPVFailedCalc: number;\n TrackTraceFailed: number;\n TransmissionFailed: number;\n FailedToSetStorageBuffer: number;\n FailedToRestoreStorageBuffer: number;\n InvalidBackendResponse: number;\n FailedToFixDepricatedValues: number;\n InvalidDurationValue: number;\n TelemetryEnvelopeInvalid: number;\n CreateEnvelopeError: number;\n CannotSerializeObject: number;\n CannotSerializeObjectNonSerializable: number;\n CircularReferenceDetected: number;\n ClearAuthContextFailed: number;\n ExceptionTruncated: number;\n IllegalCharsInName: number;\n ItemNotInArray: number;\n MaxAjaxPerPVExceeded: number;\n MessageTruncated: number;\n NameTooLong: number;\n SampleRateOutOfRange: number;\n SetAuthContextFailed: number;\n SetAuthContextFailedAccountName: number;\n StringValueTooLong: number;\n StartCalledMoreThanOnce: number;\n StopCalledWithoutStart: number;\n TelemetryInitializerFailed: number;\n TrackArgumentsNotSpecified: number;\n UrlTooLong: number;\n SessionStorageBufferFull: number;\n CannotAccessCookie: number;\n IdTooLong: number;\n InvalidEvent: number;\n FailedMonitorAjaxSetRequestHeader: number;\n SendBrowserInfoOnUserInit: number;\n PluginException: number;\n NotificationException: number;\n SnippetScriptLoadFailure: number;\n InvalidInstrumentationKey: number;\n CannotParseAiBlobValue: number;\n InvalidContentBlob: number;\n TrackPageActionEventFailed: number;\n FailedAddingCustomDefinedRequestContext: number;\n InMemoryStorageBufferFull: number;\n}"
2210
+ "text": "import(\"../JavaScriptSDK.Enums/EnumHelperFuncs\")."
2211
+ },
2212
+ {
2213
+ "kind": "Reference",
2214
+ "text": "EnumValue",
2215
+ "canonicalReference": "@microsoft/applicationinsights-core-js!EnumValue:type"
2216
+ },
2217
+ {
2218
+ "kind": "Content",
2219
+ "text": "<typeof "
2220
+ },
2221
+ {
2222
+ "kind": "Reference",
2223
+ "text": "_eInternalMessageId",
2224
+ "canonicalReference": "@microsoft/applicationinsights-core-js!_eInternalMessageId:enum"
2225
+ },
2226
+ {
2227
+ "kind": "Content",
2228
+ "text": ">"
2211
2229
  }
2212
2230
  ],
2213
2231
  "releaseTag": "Public",
2214
2232
  "name": "_InternalMessageId",
2215
2233
  "variableTypeTokenRange": {
2216
2234
  "startIndex": 1,
2217
- "endIndex": 2
2235
+ "endIndex": 6
2218
2236
  }
2219
2237
  },
2220
2238
  {
@@ -2348,6 +2366,85 @@
2348
2366
  ],
2349
2367
  "name": "_legacyCookieMgr"
2350
2368
  },
2369
+ {
2370
+ "kind": "Function",
2371
+ "canonicalReference": "@microsoft/applicationinsights-core-js!_logInternalMessage:function(1)",
2372
+ "docComment": "/**\n * Logs a message to the internal queue.\n *\n * @param logger - The Diagnostic Logger instance to use.\n *\n * @param severity - The severity of the log message\n *\n * @param message - The message to log.\n */\n",
2373
+ "excerptTokens": [
2374
+ {
2375
+ "kind": "Content",
2376
+ "text": "export declare function _logInternalMessage(logger: "
2377
+ },
2378
+ {
2379
+ "kind": "Reference",
2380
+ "text": "IDiagnosticLogger",
2381
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
2382
+ },
2383
+ {
2384
+ "kind": "Content",
2385
+ "text": ", severity: "
2386
+ },
2387
+ {
2388
+ "kind": "Reference",
2389
+ "text": "LoggingSeverity",
2390
+ "canonicalReference": "@microsoft/applicationinsights-core-js!LoggingSeverity:type"
2391
+ },
2392
+ {
2393
+ "kind": "Content",
2394
+ "text": ", message: "
2395
+ },
2396
+ {
2397
+ "kind": "Reference",
2398
+ "text": "_InternalLogMessage",
2399
+ "canonicalReference": "@microsoft/applicationinsights-core-js!_InternalLogMessage:class"
2400
+ },
2401
+ {
2402
+ "kind": "Content",
2403
+ "text": "): "
2404
+ },
2405
+ {
2406
+ "kind": "Content",
2407
+ "text": "void"
2408
+ },
2409
+ {
2410
+ "kind": "Content",
2411
+ "text": ";"
2412
+ }
2413
+ ],
2414
+ "returnTypeTokenRange": {
2415
+ "startIndex": 7,
2416
+ "endIndex": 8
2417
+ },
2418
+ "releaseTag": "Public",
2419
+ "overloadIndex": 1,
2420
+ "parameters": [
2421
+ {
2422
+ "parameterName": "logger",
2423
+ "parameterTypeTokenRange": {
2424
+ "startIndex": 1,
2425
+ "endIndex": 2
2426
+ },
2427
+ "isOptional": false
2428
+ },
2429
+ {
2430
+ "parameterName": "severity",
2431
+ "parameterTypeTokenRange": {
2432
+ "startIndex": 3,
2433
+ "endIndex": 4
2434
+ },
2435
+ "isOptional": false
2436
+ },
2437
+ {
2438
+ "parameterName": "message",
2439
+ "parameterTypeTokenRange": {
2440
+ "startIndex": 5,
2441
+ "endIndex": 6
2442
+ },
2443
+ "isOptional": false
2444
+ }
2445
+ ],
2446
+ "name": "_logInternalMessage"
2447
+ },
2351
2448
  {
2352
2449
  "kind": "Function",
2353
2450
  "canonicalReference": "@microsoft/applicationinsights-core-js!_throwInternal:function(1)",
@@ -2476,6 +2573,67 @@
2476
2573
  ],
2477
2574
  "name": "_throwInternal"
2478
2575
  },
2576
+ {
2577
+ "kind": "Function",
2578
+ "canonicalReference": "@microsoft/applicationinsights-core-js!_warnToConsole:function(1)",
2579
+ "docComment": "/**\n * This is a helper method which will call warnToConsole on the passed logger with the provided message.\n *\n * @param logger - The Diagnostic Logger instance to use.\n *\n * @param message - The log message.\n */\n",
2580
+ "excerptTokens": [
2581
+ {
2582
+ "kind": "Content",
2583
+ "text": "export declare function _warnToConsole(logger: "
2584
+ },
2585
+ {
2586
+ "kind": "Reference",
2587
+ "text": "IDiagnosticLogger",
2588
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
2589
+ },
2590
+ {
2591
+ "kind": "Content",
2592
+ "text": ", message: "
2593
+ },
2594
+ {
2595
+ "kind": "Content",
2596
+ "text": "string"
2597
+ },
2598
+ {
2599
+ "kind": "Content",
2600
+ "text": "): "
2601
+ },
2602
+ {
2603
+ "kind": "Content",
2604
+ "text": "void"
2605
+ },
2606
+ {
2607
+ "kind": "Content",
2608
+ "text": ";"
2609
+ }
2610
+ ],
2611
+ "returnTypeTokenRange": {
2612
+ "startIndex": 5,
2613
+ "endIndex": 6
2614
+ },
2615
+ "releaseTag": "Public",
2616
+ "overloadIndex": 1,
2617
+ "parameters": [
2618
+ {
2619
+ "parameterName": "logger",
2620
+ "parameterTypeTokenRange": {
2621
+ "startIndex": 1,
2622
+ "endIndex": 2
2623
+ },
2624
+ "isOptional": false
2625
+ },
2626
+ {
2627
+ "parameterName": "message",
2628
+ "parameterTypeTokenRange": {
2629
+ "startIndex": 3,
2630
+ "endIndex": 4
2631
+ },
2632
+ "isOptional": false
2633
+ }
2634
+ ],
2635
+ "name": "_warnToConsole"
2636
+ },
2479
2637
  {
2480
2638
  "kind": "Function",
2481
2639
  "canonicalReference": "@microsoft/applicationinsights-core-js!addEventHandler:function(1)",
@@ -6046,6 +6204,87 @@
6046
6204
  ],
6047
6205
  "name": "createCookieMgr"
6048
6206
  },
6207
+ {
6208
+ "kind": "Function",
6209
+ "canonicalReference": "@microsoft/applicationinsights-core-js!createEnumMap:function(1)",
6210
+ "docComment": "/**\n * Create a 2 index map that maps an enum's key as both the key and value, X[\"key\"] => \"key\" and X[0] => \"keyof 0\".\n *\n * @param values - The values to populate on the new object\n *\n * @returns \n */\n",
6211
+ "excerptTokens": [
6212
+ {
6213
+ "kind": "Content",
6214
+ "text": "export declare function createEnumMap<E, I = "
6215
+ },
6216
+ {
6217
+ "kind": "Content",
6218
+ "text": "keyof E"
6219
+ },
6220
+ {
6221
+ "kind": "Content",
6222
+ "text": ">(values: "
6223
+ },
6224
+ {
6225
+ "kind": "Content",
6226
+ "text": "{\n [key in keyof E]: E[keyof E];\n}"
6227
+ },
6228
+ {
6229
+ "kind": "Content",
6230
+ "text": "): "
6231
+ },
6232
+ {
6233
+ "kind": "Reference",
6234
+ "text": "EnumMap",
6235
+ "canonicalReference": "@microsoft/applicationinsights-core-js!EnumMap:type"
6236
+ },
6237
+ {
6238
+ "kind": "Content",
6239
+ "text": "<E, I>"
6240
+ },
6241
+ {
6242
+ "kind": "Content",
6243
+ "text": ";"
6244
+ }
6245
+ ],
6246
+ "returnTypeTokenRange": {
6247
+ "startIndex": 5,
6248
+ "endIndex": 7
6249
+ },
6250
+ "releaseTag": "Public",
6251
+ "overloadIndex": 1,
6252
+ "parameters": [
6253
+ {
6254
+ "parameterName": "values",
6255
+ "parameterTypeTokenRange": {
6256
+ "startIndex": 3,
6257
+ "endIndex": 4
6258
+ },
6259
+ "isOptional": false
6260
+ }
6261
+ ],
6262
+ "typeParameters": [
6263
+ {
6264
+ "typeParameterName": "E",
6265
+ "constraintTokenRange": {
6266
+ "startIndex": 0,
6267
+ "endIndex": 0
6268
+ },
6269
+ "defaultTypeTokenRange": {
6270
+ "startIndex": 0,
6271
+ "endIndex": 0
6272
+ }
6273
+ },
6274
+ {
6275
+ "typeParameterName": "I",
6276
+ "constraintTokenRange": {
6277
+ "startIndex": 0,
6278
+ "endIndex": 0
6279
+ },
6280
+ "defaultTypeTokenRange": {
6281
+ "startIndex": 1,
6282
+ "endIndex": 2
6283
+ }
6284
+ }
6285
+ ],
6286
+ "name": "createEnumMap"
6287
+ },
6049
6288
  {
6050
6289
  "kind": "Function",
6051
6290
  "canonicalReference": "@microsoft/applicationinsights-core-js!createEnumStyle:function(1)",
@@ -6053,19 +6292,24 @@
6053
6292
  "excerptTokens": [
6054
6293
  {
6055
6294
  "kind": "Content",
6056
- "text": "export declare function createEnumStyle<T>(values: "
6295
+ "text": "export declare function createEnumStyle<E>(values: "
6057
6296
  },
6058
6297
  {
6059
6298
  "kind": "Content",
6060
- "text": "T"
6299
+ "text": "{\n [key in keyof E]: E[keyof E];\n}"
6061
6300
  },
6062
6301
  {
6063
6302
  "kind": "Content",
6064
6303
  "text": "): "
6065
6304
  },
6305
+ {
6306
+ "kind": "Reference",
6307
+ "text": "EnumValue",
6308
+ "canonicalReference": "@microsoft/applicationinsights-core-js!EnumValue:type"
6309
+ },
6066
6310
  {
6067
6311
  "kind": "Content",
6068
- "text": "T"
6312
+ "text": "<E>"
6069
6313
  },
6070
6314
  {
6071
6315
  "kind": "Content",
@@ -6074,7 +6318,7 @@
6074
6318
  ],
6075
6319
  "returnTypeTokenRange": {
6076
6320
  "startIndex": 3,
6077
- "endIndex": 4
6321
+ "endIndex": 5
6078
6322
  },
6079
6323
  "releaseTag": "Public",
6080
6324
  "overloadIndex": 1,
@@ -6090,7 +6334,7 @@
6090
6334
  ],
6091
6335
  "typeParameters": [
6092
6336
  {
6093
- "typeParameterName": "T",
6337
+ "typeParameterName": "E",
6094
6338
  "constraintTokenRange": {
6095
6339
  "startIndex": 0,
6096
6340
  "endIndex": 0
@@ -6318,6 +6562,82 @@
6318
6562
  "parameters": [],
6319
6563
  "name": "createUnloadHandlerContainer"
6320
6564
  },
6565
+ {
6566
+ "kind": "Function",
6567
+ "canonicalReference": "@microsoft/applicationinsights-core-js!createValueMap:function(1)",
6568
+ "docComment": "/**\n * Create a 2 index map that maps an enum's key and value to the defined map value, X[\"key\"] => mapValue and X[0] => mapValue. Generic values - E = the const enum type (typeof eRequestHeaders); - V = Identifies the valid values for the keys, this should include both the enum numeric and string key of the type. The resulting \"Value\" of each entry identifies the valid values withing the assignments.\n *\n * @param values - The values to populate on the new object\n *\n * @returns \n */\n",
6569
+ "excerptTokens": [
6570
+ {
6571
+ "kind": "Content",
6572
+ "text": "export declare function createValueMap<E, V = "
6573
+ },
6574
+ {
6575
+ "kind": "Content",
6576
+ "text": "E"
6577
+ },
6578
+ {
6579
+ "kind": "Content",
6580
+ "text": ">(values: "
6581
+ },
6582
+ {
6583
+ "kind": "Content",
6584
+ "text": "{\n [key in keyof E]: [eValue: E[keyof E], mapValue: V[keyof V]];\n}"
6585
+ },
6586
+ {
6587
+ "kind": "Content",
6588
+ "text": "): "
6589
+ },
6590
+ {
6591
+ "kind": "Content",
6592
+ "text": "V"
6593
+ },
6594
+ {
6595
+ "kind": "Content",
6596
+ "text": ";"
6597
+ }
6598
+ ],
6599
+ "returnTypeTokenRange": {
6600
+ "startIndex": 5,
6601
+ "endIndex": 6
6602
+ },
6603
+ "releaseTag": "Public",
6604
+ "overloadIndex": 1,
6605
+ "parameters": [
6606
+ {
6607
+ "parameterName": "values",
6608
+ "parameterTypeTokenRange": {
6609
+ "startIndex": 3,
6610
+ "endIndex": 4
6611
+ },
6612
+ "isOptional": false
6613
+ }
6614
+ ],
6615
+ "typeParameters": [
6616
+ {
6617
+ "typeParameterName": "E",
6618
+ "constraintTokenRange": {
6619
+ "startIndex": 0,
6620
+ "endIndex": 0
6621
+ },
6622
+ "defaultTypeTokenRange": {
6623
+ "startIndex": 0,
6624
+ "endIndex": 0
6625
+ }
6626
+ },
6627
+ {
6628
+ "typeParameterName": "V",
6629
+ "constraintTokenRange": {
6630
+ "startIndex": 0,
6631
+ "endIndex": 0
6632
+ },
6633
+ "defaultTypeTokenRange": {
6634
+ "startIndex": 1,
6635
+ "endIndex": 2
6636
+ }
6637
+ }
6638
+ ],
6639
+ "name": "createValueMap"
6640
+ },
6321
6641
  {
6322
6642
  "kind": "Function",
6323
6643
  "canonicalReference": "@microsoft/applicationinsights-core-js!dateNow:function(1)",
@@ -7210,39 +7530,180 @@
7210
7530
  "text": "export declare function dumpObj(object: "
7211
7531
  },
7212
7532
  {
7213
- "kind": "Content",
7214
- "text": "any"
7533
+ "kind": "Content",
7534
+ "text": "any"
7535
+ },
7536
+ {
7537
+ "kind": "Content",
7538
+ "text": "): "
7539
+ },
7540
+ {
7541
+ "kind": "Content",
7542
+ "text": "string"
7543
+ },
7544
+ {
7545
+ "kind": "Content",
7546
+ "text": ";"
7547
+ }
7548
+ ],
7549
+ "returnTypeTokenRange": {
7550
+ "startIndex": 3,
7551
+ "endIndex": 4
7552
+ },
7553
+ "releaseTag": "Public",
7554
+ "overloadIndex": 1,
7555
+ "parameters": [
7556
+ {
7557
+ "parameterName": "object",
7558
+ "parameterTypeTokenRange": {
7559
+ "startIndex": 1,
7560
+ "endIndex": 2
7561
+ },
7562
+ "isOptional": false
7563
+ }
7564
+ ],
7565
+ "name": "dumpObj"
7566
+ },
7567
+ {
7568
+ "kind": "Enum",
7569
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason:enum",
7570
+ "docComment": "/**\n * The eEventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.\n */\n",
7571
+ "excerptTokens": [
7572
+ {
7573
+ "kind": "Content",
7574
+ "text": "export declare const enum eEventsDiscardedReason "
7575
+ }
7576
+ ],
7577
+ "releaseTag": "Public",
7578
+ "name": "eEventsDiscardedReason",
7579
+ "members": [
7580
+ {
7581
+ "kind": "EnumMember",
7582
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason.InvalidEvent:member",
7583
+ "docComment": "/**\n * The event is invalid.\n */\n",
7584
+ "excerptTokens": [
7585
+ {
7586
+ "kind": "Content",
7587
+ "text": "InvalidEvent = "
7588
+ },
7589
+ {
7590
+ "kind": "Content",
7591
+ "text": "2"
7592
+ }
7593
+ ],
7594
+ "releaseTag": "Public",
7595
+ "name": "InvalidEvent",
7596
+ "initializerTokenRange": {
7597
+ "startIndex": 1,
7598
+ "endIndex": 2
7599
+ }
7600
+ },
7601
+ {
7602
+ "kind": "EnumMember",
7603
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason.KillSwitch:member",
7604
+ "docComment": "/**\n * The server is not accepting events from this instrumentation key.\n */\n",
7605
+ "excerptTokens": [
7606
+ {
7607
+ "kind": "Content",
7608
+ "text": "KillSwitch = "
7609
+ },
7610
+ {
7611
+ "kind": "Content",
7612
+ "text": "4"
7613
+ }
7614
+ ],
7615
+ "releaseTag": "Public",
7616
+ "name": "KillSwitch",
7617
+ "initializerTokenRange": {
7618
+ "startIndex": 1,
7619
+ "endIndex": 2
7620
+ }
7215
7621
  },
7216
7622
  {
7217
- "kind": "Content",
7218
- "text": "): "
7623
+ "kind": "EnumMember",
7624
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason.NonRetryableStatus:member",
7625
+ "docComment": "/**\n * Status set to non-retryable.\n */\n",
7626
+ "excerptTokens": [
7627
+ {
7628
+ "kind": "Content",
7629
+ "text": "NonRetryableStatus = "
7630
+ },
7631
+ {
7632
+ "kind": "Content",
7633
+ "text": "1"
7634
+ }
7635
+ ],
7636
+ "releaseTag": "Public",
7637
+ "name": "NonRetryableStatus",
7638
+ "initializerTokenRange": {
7639
+ "startIndex": 1,
7640
+ "endIndex": 2
7641
+ }
7219
7642
  },
7220
7643
  {
7221
- "kind": "Content",
7222
- "text": "string"
7644
+ "kind": "EnumMember",
7645
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason.QueueFull:member",
7646
+ "docComment": "/**\n * The event queue is full.\n */\n",
7647
+ "excerptTokens": [
7648
+ {
7649
+ "kind": "Content",
7650
+ "text": "QueueFull = "
7651
+ },
7652
+ {
7653
+ "kind": "Content",
7654
+ "text": "5"
7655
+ }
7656
+ ],
7657
+ "releaseTag": "Public",
7658
+ "name": "QueueFull",
7659
+ "initializerTokenRange": {
7660
+ "startIndex": 1,
7661
+ "endIndex": 2
7662
+ }
7223
7663
  },
7224
7664
  {
7225
- "kind": "Content",
7226
- "text": ";"
7227
- }
7228
- ],
7229
- "returnTypeTokenRange": {
7230
- "startIndex": 3,
7231
- "endIndex": 4
7232
- },
7233
- "releaseTag": "Public",
7234
- "overloadIndex": 1,
7235
- "parameters": [
7665
+ "kind": "EnumMember",
7666
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason.SizeLimitExceeded:member",
7667
+ "docComment": "/**\n * The size of the event is too large.\n */\n",
7668
+ "excerptTokens": [
7669
+ {
7670
+ "kind": "Content",
7671
+ "text": "SizeLimitExceeded = "
7672
+ },
7673
+ {
7674
+ "kind": "Content",
7675
+ "text": "3"
7676
+ }
7677
+ ],
7678
+ "releaseTag": "Public",
7679
+ "name": "SizeLimitExceeded",
7680
+ "initializerTokenRange": {
7681
+ "startIndex": 1,
7682
+ "endIndex": 2
7683
+ }
7684
+ },
7236
7685
  {
7237
- "parameterName": "object",
7238
- "parameterTypeTokenRange": {
7686
+ "kind": "EnumMember",
7687
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason.Unknown:member",
7688
+ "docComment": "/**\n * Unknown.\n */\n",
7689
+ "excerptTokens": [
7690
+ {
7691
+ "kind": "Content",
7692
+ "text": "Unknown = "
7693
+ },
7694
+ {
7695
+ "kind": "Content",
7696
+ "text": "0"
7697
+ }
7698
+ ],
7699
+ "releaseTag": "Public",
7700
+ "name": "Unknown",
7701
+ "initializerTokenRange": {
7239
7702
  "startIndex": 1,
7240
7703
  "endIndex": 2
7241
- },
7242
- "isOptional": false
7704
+ }
7243
7705
  }
7244
- ],
7245
- "name": "dumpObj"
7706
+ ]
7246
7707
  },
7247
7708
  {
7248
7709
  "kind": "Enum",
@@ -7301,6 +7762,117 @@
7301
7762
  }
7302
7763
  ]
7303
7764
  },
7765
+ {
7766
+ "kind": "TypeAlias",
7767
+ "canonicalReference": "@microsoft/applicationinsights-core-js!EnumMap:type",
7768
+ "docComment": "",
7769
+ "excerptTokens": [
7770
+ {
7771
+ "kind": "Content",
7772
+ "text": "export declare type EnumMap<E = "
7773
+ },
7774
+ {
7775
+ "kind": "Content",
7776
+ "text": "any"
7777
+ },
7778
+ {
7779
+ "kind": "Content",
7780
+ "text": ", I = "
7781
+ },
7782
+ {
7783
+ "kind": "Content",
7784
+ "text": "E"
7785
+ },
7786
+ {
7787
+ "kind": "Content",
7788
+ "text": "> = "
7789
+ },
7790
+ {
7791
+ "kind": "Content",
7792
+ "text": "{\n readonly [key in keyof E extends string ? keyof E : never]: key extends string ? key : keyof E;\n} & I"
7793
+ },
7794
+ {
7795
+ "kind": "Content",
7796
+ "text": ";"
7797
+ }
7798
+ ],
7799
+ "releaseTag": "Public",
7800
+ "name": "EnumMap",
7801
+ "typeParameters": [
7802
+ {
7803
+ "typeParameterName": "E",
7804
+ "constraintTokenRange": {
7805
+ "startIndex": 0,
7806
+ "endIndex": 0
7807
+ },
7808
+ "defaultTypeTokenRange": {
7809
+ "startIndex": 1,
7810
+ "endIndex": 2
7811
+ }
7812
+ },
7813
+ {
7814
+ "typeParameterName": "I",
7815
+ "constraintTokenRange": {
7816
+ "startIndex": 0,
7817
+ "endIndex": 0
7818
+ },
7819
+ "defaultTypeTokenRange": {
7820
+ "startIndex": 3,
7821
+ "endIndex": 4
7822
+ }
7823
+ }
7824
+ ],
7825
+ "typeTokenRange": {
7826
+ "startIndex": 5,
7827
+ "endIndex": 6
7828
+ }
7829
+ },
7830
+ {
7831
+ "kind": "TypeAlias",
7832
+ "canonicalReference": "@microsoft/applicationinsights-core-js!EnumValue:type",
7833
+ "docComment": "",
7834
+ "excerptTokens": [
7835
+ {
7836
+ "kind": "Content",
7837
+ "text": "export declare type EnumValue<E = "
7838
+ },
7839
+ {
7840
+ "kind": "Content",
7841
+ "text": "any"
7842
+ },
7843
+ {
7844
+ "kind": "Content",
7845
+ "text": "> = "
7846
+ },
7847
+ {
7848
+ "kind": "Content",
7849
+ "text": "{\n readonly [key in keyof E]: E[key];\n}"
7850
+ },
7851
+ {
7852
+ "kind": "Content",
7853
+ "text": ";"
7854
+ }
7855
+ ],
7856
+ "releaseTag": "Public",
7857
+ "name": "EnumValue",
7858
+ "typeParameters": [
7859
+ {
7860
+ "typeParameterName": "E",
7861
+ "constraintTokenRange": {
7862
+ "startIndex": 0,
7863
+ "endIndex": 0
7864
+ },
7865
+ "defaultTypeTokenRange": {
7866
+ "startIndex": 1,
7867
+ "endIndex": 2
7868
+ }
7869
+ }
7870
+ ],
7871
+ "typeTokenRange": {
7872
+ "startIndex": 3,
7873
+ "endIndex": 4
7874
+ }
7875
+ },
7304
7876
  {
7305
7877
  "kind": "Variable",
7306
7878
  "canonicalReference": "@microsoft/applicationinsights-core-js!EventHelper:var",
@@ -7565,6 +8137,36 @@
7565
8137
  ],
7566
8138
  "name": "eventOn"
7567
8139
  },
8140
+ {
8141
+ "kind": "TypeAlias",
8142
+ "canonicalReference": "@microsoft/applicationinsights-core-js!EventsDiscardedReason:type",
8143
+ "docComment": "",
8144
+ "excerptTokens": [
8145
+ {
8146
+ "kind": "Content",
8147
+ "text": "export declare type EventsDiscardedReason = "
8148
+ },
8149
+ {
8150
+ "kind": "Content",
8151
+ "text": "number | "
8152
+ },
8153
+ {
8154
+ "kind": "Reference",
8155
+ "text": "eEventsDiscardedReason",
8156
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason:enum"
8157
+ },
8158
+ {
8159
+ "kind": "Content",
8160
+ "text": ";"
8161
+ }
8162
+ ],
8163
+ "releaseTag": "Public",
8164
+ "name": "EventsDiscardedReason",
8165
+ "typeTokenRange": {
8166
+ "startIndex": 1,
8167
+ "endIndex": 3
8168
+ }
8169
+ },
7568
8170
  {
7569
8171
  "kind": "Variable",
7570
8172
  "canonicalReference": "@microsoft/applicationinsights-core-js!EventsDiscardedReason:var",
@@ -7576,14 +8178,32 @@
7576
8178
  },
7577
8179
  {
7578
8180
  "kind": "Content",
7579
- "text": "{\n Unknown: number;\n NonRetryableStatus: number;\n InvalidEvent: number;\n SizeLimitExceeded: number;\n KillSwitch: number;\n QueueFull: number;\n}"
8181
+ "text": "import(\"../JavaScriptSDK.Enums/EnumHelperFuncs\")."
8182
+ },
8183
+ {
8184
+ "kind": "Reference",
8185
+ "text": "EnumValue",
8186
+ "canonicalReference": "@microsoft/applicationinsights-core-js!EnumValue:type"
8187
+ },
8188
+ {
8189
+ "kind": "Content",
8190
+ "text": "<typeof "
8191
+ },
8192
+ {
8193
+ "kind": "Reference",
8194
+ "text": "eEventsDiscardedReason",
8195
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eEventsDiscardedReason:enum"
8196
+ },
8197
+ {
8198
+ "kind": "Content",
8199
+ "text": ">"
7580
8200
  }
7581
8201
  ],
7582
8202
  "releaseTag": "Public",
7583
8203
  "name": "EventsDiscardedReason",
7584
8204
  "variableTypeTokenRange": {
7585
8205
  "startIndex": 1,
7586
- "endIndex": 2
8206
+ "endIndex": 6
7587
8207
  }
7588
8208
  },
7589
8209
  {
@@ -18336,14 +18956,32 @@
18336
18956
  },
18337
18957
  {
18338
18958
  "kind": "Content",
18339
- "text": "{\n CRITICAL: number;\n WARNING: number;\n}"
18959
+ "text": "import(\"../JavaScriptSDK.Enums/EnumHelperFuncs\")."
18960
+ },
18961
+ {
18962
+ "kind": "Reference",
18963
+ "text": "EnumValue",
18964
+ "canonicalReference": "@microsoft/applicationinsights-core-js!EnumValue:type"
18965
+ },
18966
+ {
18967
+ "kind": "Content",
18968
+ "text": "<typeof "
18969
+ },
18970
+ {
18971
+ "kind": "Reference",
18972
+ "text": "eLoggingSeverity",
18973
+ "canonicalReference": "@microsoft/applicationinsights-core-js!eLoggingSeverity:enum"
18974
+ },
18975
+ {
18976
+ "kind": "Content",
18977
+ "text": ">"
18340
18978
  }
18341
18979
  ],
18342
18980
  "releaseTag": "Public",
18343
18981
  "name": "LoggingSeverity",
18344
18982
  "variableTypeTokenRange": {
18345
18983
  "startIndex": 1,
18346
- "endIndex": 2
18984
+ "endIndex": 6
18347
18985
  }
18348
18986
  },
18349
18987
  {
@@ -21195,7 +21833,7 @@
21195
21833
  {
21196
21834
  "kind": "Function",
21197
21835
  "canonicalReference": "@microsoft/applicationinsights-core-js!proxyFunctionAs:function(1)",
21198
- "docComment": "",
21836
+ "docComment": "/**\n * Creates a proxy function on the target which internally will call the source version with all arguments passed to the target method.\n *\n * @param target - The target object to be assigned with the source properties and functions\n *\n * @param name - The function name that will be added on the target\n *\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\n *\n * @param theFunc - The function name on the source that will be proxied on the target\n *\n * @param overwriteTarget - If `false` this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name\n */\n",
21199
21837
  "excerptTokens": [
21200
21838
  {
21201
21839
  "kind": "Content",
@@ -21327,7 +21965,7 @@
21327
21965
  {
21328
21966
  "kind": "Function",
21329
21967
  "canonicalReference": "@microsoft/applicationinsights-core-js!proxyFunctions:function(1)",
21330
- "docComment": "/**\n * Creates proxy functions on the target which internally will call the source version with all arguments passed to the target method.\n *\n * @param target - The target object to be assigned with the source properties and functions\n *\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\n *\n * @param functionsToProxy - An array of function names that will be proxied on the target\n */\n",
21968
+ "docComment": "/**\n * Creates proxy functions on the target which internally will call the source version with all arguments passed to the target method.\n *\n * @param target - The target object to be assigned with the source properties and functions\n *\n * @param source - The source object which will be assigned / called by setting / calling the targets proxies\n *\n * @param functionsToProxy - An array of function names that will be proxied on the target\n *\n * @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name\n */\n",
21331
21969
  "excerptTokens": [
21332
21970
  {
21333
21971
  "kind": "Content",