@microsoft/applicationinsights-core-js 2.8.0-beta.2203-02 → 2.8.0-beta.2203-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 (107) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +319 -29
  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 +2458 -250
  7. package/dist/applicationinsights-core-js.api.md +87 -7
  8. package/dist/applicationinsights-core-js.d.ts +192 -7
  9. package/dist/applicationinsights-core-js.js +319 -29
  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 +195 -10
  14. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
  15. package/dist-esm/JavaScriptSDK/BaseCore.js +205 -13
  16. package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
  17. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +37 -3
  18. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js.map +1 -1
  19. package/dist-esm/JavaScriptSDK/ChannelController.js +14 -2
  20. package/dist-esm/JavaScriptSDK/ChannelController.js.map +1 -1
  21. package/dist-esm/JavaScriptSDK/Constants.js +1 -1
  22. package/dist-esm/JavaScriptSDK/CookieMgr.js +3 -2
  23. package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
  24. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  25. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +1 -1
  26. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  27. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +14 -1
  28. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
  29. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  30. package/dist-esm/JavaScriptSDK/EventHelpers.js +18 -13
  31. package/dist-esm/JavaScriptSDK/EventHelpers.js.map +1 -1
  32. package/dist-esm/JavaScriptSDK/HelperFuncs.js +3 -13
  33. package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
  34. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  35. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  36. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  37. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  38. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +71 -6
  39. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
  40. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  41. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  42. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +3 -2
  43. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +1 -1
  44. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +33 -0
  45. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js.map +1 -0
  46. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  47. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  48. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  49. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  50. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +8 -0
  51. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js.map +1 -0
  52. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  69. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +8 -0
  70. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js.map +1 -0
  71. package/dist-esm/applicationinsights-core-js.js +3 -2
  72. package/dist-esm/applicationinsights-core-js.js.map +1 -1
  73. package/package.json +1 -1
  74. package/src/JavaScriptSDK/BaseCore.ts +272 -14
  75. package/src/JavaScriptSDK/BaseTelemetryPlugin.ts +70 -4
  76. package/src/JavaScriptSDK/ChannelController.ts +18 -1
  77. package/src/JavaScriptSDK/CookieMgr.ts +3 -1
  78. package/src/JavaScriptSDK/DiagnosticLogger.ts +14 -0
  79. package/src/JavaScriptSDK/EventHelpers.ts +18 -12
  80. package/src/JavaScriptSDK/HelperFuncs.ts +4 -2
  81. package/src/JavaScriptSDK/ProcessTelemetryContext.ts +87 -10
  82. package/src/JavaScriptSDK/TelemetryInitializerPlugin.ts +3 -1
  83. package/src/JavaScriptSDK/UnloadHandlerContainer.ts +46 -0
  84. package/src/JavaScriptSDK.Enums/SendRequestReason.ts +5 -0
  85. package/src/JavaScriptSDK.Enums/TelemetryUnloadReason.ts +3 -3
  86. package/src/JavaScriptSDK.Enums/TelemetryUpdateReason.ts +27 -0
  87. package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +29 -2
  88. package/src/JavaScriptSDK.Interfaces/IInstrumentHooks.ts +11 -6
  89. package/src/JavaScriptSDK.Interfaces/IProcessTelemetryContext.ts +25 -2
  90. package/src/JavaScriptSDK.Interfaces/ITelemetryPlugin.ts +12 -1
  91. package/src/JavaScriptSDK.Interfaces/ITelemetryUpdateState.ts +34 -0
  92. package/types/JavaScriptSDK/BaseCore.d.ts +27 -2
  93. package/types/JavaScriptSDK/BaseTelemetryPlugin.d.ts +23 -1
  94. package/types/JavaScriptSDK/DiagnosticLogger.d.ts +10 -0
  95. package/types/JavaScriptSDK/EventHelpers.d.ts +4 -2
  96. package/types/JavaScriptSDK/HelperFuncs.d.ts +2 -1
  97. package/types/JavaScriptSDK/ProcessTelemetryContext.d.ts +11 -1
  98. package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +11 -0
  99. package/types/JavaScriptSDK.Enums/SendRequestReason.d.ts +4 -0
  100. package/types/JavaScriptSDK.Enums/TelemetryUnloadReason.d.ts +13 -1
  101. package/types/JavaScriptSDK.Enums/TelemetryUpdateReason.d.ts +20 -0
  102. package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +24 -1
  103. package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +5 -0
  104. package/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext.d.ts +23 -2
  105. package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +11 -1
  106. package/types/JavaScriptSDK.Interfaces/ITelemetryUpdateState.d.ts +22 -0
  107. package/types/applicationinsights-core-js.d.ts +6 -2
@@ -172,7 +172,7 @@
172
172
  {
173
173
  "kind": "Function",
174
174
  "canonicalReference": "@microsoft/applicationinsights-core-js!__getRegisteredEvents:function(1)",
175
- "docComment": "/**\n * Get all of the registered events on the target object, this is primarily used for testing cleanup but may also be used by applications to remove their own events\n *\n * @param target - The EventTarget that has registered events\n *\n * @param evtName - [Optional] The name of the event to return the registered handlers and full name (with namespaces)\n */\n",
175
+ "docComment": "/**\n * Get all of the registered events on the target object, this is primarily used for testing cleanup but may also be used by applications to remove their own events\n *\n * @param target - The EventTarget that has registered events\n *\n * @param eventName - [Optional] The name of the event to return the registered handlers and full name (with namespaces)\n *\n * @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace, if the eventName also includes a namespace the namespace(s) are merged into a single namespace\n */\n",
176
176
  "excerptTokens": [
177
177
  {
178
178
  "kind": "Content",
@@ -184,12 +184,20 @@
184
184
  },
185
185
  {
186
186
  "kind": "Content",
187
- "text": ", evtName?: "
187
+ "text": ", eventName?: "
188
188
  },
189
189
  {
190
190
  "kind": "Content",
191
191
  "text": "string"
192
192
  },
193
+ {
194
+ "kind": "Content",
195
+ "text": ", evtNamespace?: "
196
+ },
197
+ {
198
+ "kind": "Content",
199
+ "text": "string | string[]"
200
+ },
193
201
  {
194
202
  "kind": "Content",
195
203
  "text": "): "
@@ -209,8 +217,8 @@
209
217
  }
210
218
  ],
211
219
  "returnTypeTokenRange": {
212
- "startIndex": 5,
213
- "endIndex": 7
220
+ "startIndex": 7,
221
+ "endIndex": 9
214
222
  },
215
223
  "releaseTag": "Public",
216
224
  "overloadIndex": 1,
@@ -223,11 +231,18 @@
223
231
  }
224
232
  },
225
233
  {
226
- "parameterName": "evtName",
234
+ "parameterName": "eventName",
227
235
  "parameterTypeTokenRange": {
228
236
  "startIndex": 3,
229
237
  "endIndex": 4
230
238
  }
239
+ },
240
+ {
241
+ "parameterName": "evtNamespace",
242
+ "parameterTypeTokenRange": {
243
+ "startIndex": 5,
244
+ "endIndex": 6
245
+ }
231
246
  }
232
247
  ],
233
248
  "name": "__getRegisteredEvents"
@@ -2324,6 +2339,128 @@
2324
2339
  ],
2325
2340
  "name": "_legacyCookieMgr"
2326
2341
  },
2342
+ {
2343
+ "kind": "Function",
2344
+ "canonicalReference": "@microsoft/applicationinsights-core-js!_throwInternal:function(1)",
2345
+ "docComment": "/**\n * This is a helper method which will call throwInternal on the passed logger, will throw exceptions in debug mode or attempt to log the error as a console warning. This helper is provided mostly to better support minification as logger.throwInternal() will not compress the publish \"throwInternal\" used throughout the code.\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 log message.\n */\n",
2346
+ "excerptTokens": [
2347
+ {
2348
+ "kind": "Content",
2349
+ "text": "export declare function _throwInternal(logger: "
2350
+ },
2351
+ {
2352
+ "kind": "Reference",
2353
+ "text": "IDiagnosticLogger",
2354
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
2355
+ },
2356
+ {
2357
+ "kind": "Content",
2358
+ "text": ", severity: "
2359
+ },
2360
+ {
2361
+ "kind": "Reference",
2362
+ "text": "LoggingSeverity",
2363
+ "canonicalReference": "@microsoft/applicationinsights-core-js!LoggingSeverity:type"
2364
+ },
2365
+ {
2366
+ "kind": "Content",
2367
+ "text": ", msgId: "
2368
+ },
2369
+ {
2370
+ "kind": "Reference",
2371
+ "text": "_InternalMessageId",
2372
+ "canonicalReference": "@microsoft/applicationinsights-core-js!_InternalMessageId:type"
2373
+ },
2374
+ {
2375
+ "kind": "Content",
2376
+ "text": ", msg: "
2377
+ },
2378
+ {
2379
+ "kind": "Content",
2380
+ "text": "string"
2381
+ },
2382
+ {
2383
+ "kind": "Content",
2384
+ "text": ", properties?: "
2385
+ },
2386
+ {
2387
+ "kind": "Reference",
2388
+ "text": "Object",
2389
+ "canonicalReference": "!Object:interface"
2390
+ },
2391
+ {
2392
+ "kind": "Content",
2393
+ "text": ", isUserAct?: "
2394
+ },
2395
+ {
2396
+ "kind": "Content",
2397
+ "text": "boolean"
2398
+ },
2399
+ {
2400
+ "kind": "Content",
2401
+ "text": "): "
2402
+ },
2403
+ {
2404
+ "kind": "Content",
2405
+ "text": "void"
2406
+ },
2407
+ {
2408
+ "kind": "Content",
2409
+ "text": ";"
2410
+ }
2411
+ ],
2412
+ "returnTypeTokenRange": {
2413
+ "startIndex": 13,
2414
+ "endIndex": 14
2415
+ },
2416
+ "releaseTag": "Public",
2417
+ "overloadIndex": 1,
2418
+ "parameters": [
2419
+ {
2420
+ "parameterName": "logger",
2421
+ "parameterTypeTokenRange": {
2422
+ "startIndex": 1,
2423
+ "endIndex": 2
2424
+ }
2425
+ },
2426
+ {
2427
+ "parameterName": "severity",
2428
+ "parameterTypeTokenRange": {
2429
+ "startIndex": 3,
2430
+ "endIndex": 4
2431
+ }
2432
+ },
2433
+ {
2434
+ "parameterName": "msgId",
2435
+ "parameterTypeTokenRange": {
2436
+ "startIndex": 5,
2437
+ "endIndex": 6
2438
+ }
2439
+ },
2440
+ {
2441
+ "parameterName": "msg",
2442
+ "parameterTypeTokenRange": {
2443
+ "startIndex": 7,
2444
+ "endIndex": 8
2445
+ }
2446
+ },
2447
+ {
2448
+ "parameterName": "properties",
2449
+ "parameterTypeTokenRange": {
2450
+ "startIndex": 9,
2451
+ "endIndex": 10
2452
+ }
2453
+ },
2454
+ {
2455
+ "parameterName": "isUserAct",
2456
+ "parameterTypeTokenRange": {
2457
+ "startIndex": 11,
2458
+ "endIndex": 12
2459
+ }
2460
+ }
2461
+ ],
2462
+ "name": "_throwInternal"
2463
+ },
2327
2464
  {
2328
2465
  "kind": "Function",
2329
2466
  "canonicalReference": "@microsoft/applicationinsights-core-js!addEventHandler:function(1)",
@@ -3470,32 +3607,27 @@
3470
3607
  "isStatic": false
3471
3608
  },
3472
3609
  {
3473
- "kind": "Constructor",
3474
- "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore:constructor(1)",
3475
- "docComment": "/**\n * Constructs a new instance of the `BaseCore` class\n */\n",
3610
+ "kind": "Method",
3611
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#_updateHook:member(1)",
3612
+ "docComment": "/**\n * Hook for Core extensions to allow them to update their own configuration before updating all of the plugins.\n *\n * @param updateCtx - The plugin update context\n *\n * @param updateState - The Update State\n *\n * @returns boolean - True means the extension class will call updateState otherwise the Core will\n */\n",
3476
3613
  "excerptTokens": [
3477
3614
  {
3478
3615
  "kind": "Content",
3479
- "text": "constructor();"
3480
- }
3481
- ],
3482
- "releaseTag": "Public",
3483
- "overloadIndex": 1,
3484
- "parameters": []
3485
- },
3486
- {
3487
- "kind": "Method",
3488
- "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#addNotificationListener:member(1)",
3489
- "docComment": "/**\n * Adds a notification listener. The SDK calls methods on the listener when an appropriate notification is raised. The added plugins must raise notifications. If the plugins do not implement the notifications, then no methods will be called.\n *\n * @param listener - An INotificationListener object.\n */\n",
3490
- "excerptTokens": [
3616
+ "text": "protected _updateHook?(updateCtx: "
3617
+ },
3618
+ {
3619
+ "kind": "Reference",
3620
+ "text": "IProcessTelemetryUpdateContext",
3621
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUpdateContext:interface"
3622
+ },
3491
3623
  {
3492
3624
  "kind": "Content",
3493
- "text": "addNotificationListener(listener: "
3625
+ "text": ", updateState: "
3494
3626
  },
3495
3627
  {
3496
3628
  "kind": "Reference",
3497
- "text": "INotificationListener",
3498
- "canonicalReference": "@microsoft/applicationinsights-core-js!INotificationListener:interface"
3629
+ "text": "ITelemetryUpdateState",
3630
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUpdateState:interface"
3499
3631
  },
3500
3632
  {
3501
3633
  "kind": "Content",
@@ -3503,58 +3635,74 @@
3503
3635
  },
3504
3636
  {
3505
3637
  "kind": "Content",
3506
- "text": "void"
3638
+ "text": "void | boolean"
3507
3639
  },
3508
3640
  {
3509
3641
  "kind": "Content",
3510
3642
  "text": ";"
3511
3643
  }
3512
3644
  ],
3513
- "isOptional": false,
3645
+ "isOptional": true,
3514
3646
  "isStatic": false,
3515
3647
  "returnTypeTokenRange": {
3516
- "startIndex": 3,
3517
- "endIndex": 4
3648
+ "startIndex": 5,
3649
+ "endIndex": 6
3518
3650
  },
3519
3651
  "releaseTag": "Public",
3520
3652
  "overloadIndex": 1,
3521
3653
  "parameters": [
3522
3654
  {
3523
- "parameterName": "listener",
3655
+ "parameterName": "updateCtx",
3524
3656
  "parameterTypeTokenRange": {
3525
3657
  "startIndex": 1,
3526
3658
  "endIndex": 2
3527
3659
  }
3660
+ },
3661
+ {
3662
+ "parameterName": "updateState",
3663
+ "parameterTypeTokenRange": {
3664
+ "startIndex": 3,
3665
+ "endIndex": 4
3666
+ }
3528
3667
  }
3529
3668
  ],
3530
- "name": "addNotificationListener"
3669
+ "name": "_updateHook"
3670
+ },
3671
+ {
3672
+ "kind": "Constructor",
3673
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore:constructor(1)",
3674
+ "docComment": "/**\n * Constructs a new instance of the `BaseCore` class\n */\n",
3675
+ "excerptTokens": [
3676
+ {
3677
+ "kind": "Content",
3678
+ "text": "constructor();"
3679
+ }
3680
+ ],
3681
+ "releaseTag": "Public",
3682
+ "overloadIndex": 1,
3683
+ "parameters": []
3531
3684
  },
3532
3685
  {
3533
3686
  "kind": "Method",
3534
- "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#addTelemetryInitializer:member(1)",
3535
- "docComment": "/**\n * Add a telemetry processor to decorate or drop telemetry events.\n *\n * @param telemetryInitializer - The Telemetry Initializer function\n *\n * @returns - A ITelemetryInitializerHandler to enable the initializer to be removed\n */\n",
3687
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#addNotificationListener:member(1)",
3688
+ "docComment": "/**\n * Adds a notification listener. The SDK calls methods on the listener when an appropriate notification is raised. The added plugins must raise notifications. If the plugins do not implement the notifications, then no methods will be called.\n *\n * @param listener - An INotificationListener object.\n */\n",
3536
3689
  "excerptTokens": [
3537
3690
  {
3538
3691
  "kind": "Content",
3539
- "text": "addTelemetryInitializer(telemetryInitializer: "
3692
+ "text": "addNotificationListener(listener: "
3540
3693
  },
3541
3694
  {
3542
3695
  "kind": "Reference",
3543
- "text": "TelemetryInitializerFunction",
3544
- "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryInitializerFunction:type"
3696
+ "text": "INotificationListener",
3697
+ "canonicalReference": "@microsoft/applicationinsights-core-js!INotificationListener:interface"
3545
3698
  },
3546
3699
  {
3547
3700
  "kind": "Content",
3548
3701
  "text": "): "
3549
3702
  },
3550
- {
3551
- "kind": "Reference",
3552
- "text": "ITelemetryInitializerHandler",
3553
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryInitializerHandler:interface"
3554
- },
3555
3703
  {
3556
3704
  "kind": "Content",
3557
- "text": " | void"
3705
+ "text": "void"
3558
3706
  },
3559
3707
  {
3560
3708
  "kind": "Content",
@@ -3565,97 +3713,319 @@
3565
3713
  "isStatic": false,
3566
3714
  "returnTypeTokenRange": {
3567
3715
  "startIndex": 3,
3568
- "endIndex": 5
3716
+ "endIndex": 4
3569
3717
  },
3570
3718
  "releaseTag": "Public",
3571
3719
  "overloadIndex": 1,
3572
3720
  "parameters": [
3573
3721
  {
3574
- "parameterName": "telemetryInitializer",
3722
+ "parameterName": "listener",
3575
3723
  "parameterTypeTokenRange": {
3576
3724
  "startIndex": 1,
3577
3725
  "endIndex": 2
3578
3726
  }
3579
3727
  }
3580
3728
  ],
3581
- "name": "addTelemetryInitializer"
3729
+ "name": "addNotificationListener"
3582
3730
  },
3583
3731
  {
3584
- "kind": "Property",
3585
- "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#config:member",
3732
+ "kind": "Method",
3733
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#addPlugin:member(1)",
3586
3734
  "docComment": "",
3587
3735
  "excerptTokens": [
3588
3736
  {
3589
3737
  "kind": "Content",
3590
- "text": "config: "
3738
+ "text": "addPlugin<T extends "
3591
3739
  },
3592
3740
  {
3593
3741
  "kind": "Reference",
3594
- "text": "IConfiguration",
3595
- "canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration:interface"
3742
+ "text": "IPlugin",
3743
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
3596
3744
  },
3597
3745
  {
3598
3746
  "kind": "Content",
3599
- "text": ";"
3600
- }
3601
- ],
3602
- "isOptional": false,
3603
- "releaseTag": "Public",
3604
- "name": "config",
3605
- "propertyTypeTokenRange": {
3606
- "startIndex": 1,
3607
- "endIndex": 2
3608
- },
3609
- "isStatic": false
3610
- },
3611
- {
3612
- "kind": "Property",
3613
- "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore.defaultConfig:member",
3614
- "docComment": "",
3615
- "excerptTokens": [
3747
+ "text": " "
3748
+ },
3616
3749
  {
3617
3750
  "kind": "Content",
3618
- "text": "static defaultConfig: "
3751
+ "text": "= "
3619
3752
  },
3620
3753
  {
3621
3754
  "kind": "Reference",
3622
- "text": "IConfiguration",
3623
- "canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration:interface"
3755
+ "text": "ITelemetryPlugin",
3756
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPlugin:interface"
3624
3757
  },
3625
3758
  {
3626
3759
  "kind": "Content",
3627
- "text": ";"
3628
- }
3629
- ],
3630
- "isOptional": false,
3631
- "releaseTag": "Public",
3632
- "name": "defaultConfig",
3633
- "propertyTypeTokenRange": {
3634
- "startIndex": 1,
3635
- "endIndex": 2
3636
- },
3637
- "isStatic": true
3638
- },
3639
- {
3640
- "kind": "Method",
3641
- "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#eventCnt:member(1)",
3642
- "docComment": "",
3643
- "excerptTokens": [
3760
+ "text": ">(plugin: "
3761
+ },
3644
3762
  {
3645
3763
  "kind": "Content",
3646
- "text": "eventCnt(): "
3764
+ "text": "T"
3647
3765
  },
3648
3766
  {
3649
3767
  "kind": "Content",
3650
- "text": "number"
3768
+ "text": ", replaceExisting: "
3651
3769
  },
3652
3770
  {
3653
3771
  "kind": "Content",
3654
- "text": ";"
3655
- }
3656
- ],
3657
- "isOptional": false,
3658
- "isStatic": false,
3772
+ "text": "boolean"
3773
+ },
3774
+ {
3775
+ "kind": "Content",
3776
+ "text": ", doAsync: "
3777
+ },
3778
+ {
3779
+ "kind": "Content",
3780
+ "text": "boolean"
3781
+ },
3782
+ {
3783
+ "kind": "Content",
3784
+ "text": ", addCb?: "
3785
+ },
3786
+ {
3787
+ "kind": "Content",
3788
+ "text": "(added?: boolean) => void"
3789
+ },
3790
+ {
3791
+ "kind": "Content",
3792
+ "text": "): "
3793
+ },
3794
+ {
3795
+ "kind": "Content",
3796
+ "text": "void"
3797
+ },
3798
+ {
3799
+ "kind": "Content",
3800
+ "text": ";"
3801
+ }
3802
+ ],
3803
+ "isOptional": false,
3804
+ "isStatic": false,
3805
+ "returnTypeTokenRange": {
3806
+ "startIndex": 14,
3807
+ "endIndex": 15
3808
+ },
3809
+ "releaseTag": "Public",
3810
+ "overloadIndex": 1,
3811
+ "parameters": [
3812
+ {
3813
+ "parameterName": "plugin",
3814
+ "parameterTypeTokenRange": {
3815
+ "startIndex": 6,
3816
+ "endIndex": 7
3817
+ }
3818
+ },
3819
+ {
3820
+ "parameterName": "replaceExisting",
3821
+ "parameterTypeTokenRange": {
3822
+ "startIndex": 8,
3823
+ "endIndex": 9
3824
+ }
3825
+ },
3826
+ {
3827
+ "parameterName": "doAsync",
3828
+ "parameterTypeTokenRange": {
3829
+ "startIndex": 10,
3830
+ "endIndex": 11
3831
+ }
3832
+ },
3833
+ {
3834
+ "parameterName": "addCb",
3835
+ "parameterTypeTokenRange": {
3836
+ "startIndex": 12,
3837
+ "endIndex": 13
3838
+ }
3839
+ }
3840
+ ],
3841
+ "typeParameters": [
3842
+ {
3843
+ "typeParameterName": "T",
3844
+ "constraintTokenRange": {
3845
+ "startIndex": 1,
3846
+ "endIndex": 3
3847
+ },
3848
+ "defaultTypeTokenRange": {
3849
+ "startIndex": 4,
3850
+ "endIndex": 5
3851
+ }
3852
+ }
3853
+ ],
3854
+ "name": "addPlugin"
3855
+ },
3856
+ {
3857
+ "kind": "Method",
3858
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#addTelemetryInitializer:member(1)",
3859
+ "docComment": "/**\n * Add a telemetry processor to decorate or drop telemetry events.\n *\n * @param telemetryInitializer - The Telemetry Initializer function\n *\n * @returns - A ITelemetryInitializerHandler to enable the initializer to be removed\n */\n",
3860
+ "excerptTokens": [
3861
+ {
3862
+ "kind": "Content",
3863
+ "text": "addTelemetryInitializer(telemetryInitializer: "
3864
+ },
3865
+ {
3866
+ "kind": "Reference",
3867
+ "text": "TelemetryInitializerFunction",
3868
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryInitializerFunction:type"
3869
+ },
3870
+ {
3871
+ "kind": "Content",
3872
+ "text": "): "
3873
+ },
3874
+ {
3875
+ "kind": "Reference",
3876
+ "text": "ITelemetryInitializerHandler",
3877
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryInitializerHandler:interface"
3878
+ },
3879
+ {
3880
+ "kind": "Content",
3881
+ "text": " | void"
3882
+ },
3883
+ {
3884
+ "kind": "Content",
3885
+ "text": ";"
3886
+ }
3887
+ ],
3888
+ "isOptional": false,
3889
+ "isStatic": false,
3890
+ "returnTypeTokenRange": {
3891
+ "startIndex": 3,
3892
+ "endIndex": 5
3893
+ },
3894
+ "releaseTag": "Public",
3895
+ "overloadIndex": 1,
3896
+ "parameters": [
3897
+ {
3898
+ "parameterName": "telemetryInitializer",
3899
+ "parameterTypeTokenRange": {
3900
+ "startIndex": 1,
3901
+ "endIndex": 2
3902
+ }
3903
+ }
3904
+ ],
3905
+ "name": "addTelemetryInitializer"
3906
+ },
3907
+ {
3908
+ "kind": "Method",
3909
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#addUnloadCb:member(1)",
3910
+ "docComment": "/**\n * Add an unload handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
3911
+ "excerptTokens": [
3912
+ {
3913
+ "kind": "Content",
3914
+ "text": "addUnloadCb(handler: "
3915
+ },
3916
+ {
3917
+ "kind": "Reference",
3918
+ "text": "UnloadHandler",
3919
+ "canonicalReference": "@microsoft/applicationinsights-core-js!UnloadHandler:type"
3920
+ },
3921
+ {
3922
+ "kind": "Content",
3923
+ "text": "): "
3924
+ },
3925
+ {
3926
+ "kind": "Content",
3927
+ "text": "void"
3928
+ },
3929
+ {
3930
+ "kind": "Content",
3931
+ "text": ";"
3932
+ }
3933
+ ],
3934
+ "isOptional": false,
3935
+ "isStatic": false,
3936
+ "returnTypeTokenRange": {
3937
+ "startIndex": 3,
3938
+ "endIndex": 4
3939
+ },
3940
+ "releaseTag": "Public",
3941
+ "overloadIndex": 1,
3942
+ "parameters": [
3943
+ {
3944
+ "parameterName": "handler",
3945
+ "parameterTypeTokenRange": {
3946
+ "startIndex": 1,
3947
+ "endIndex": 2
3948
+ }
3949
+ }
3950
+ ],
3951
+ "name": "addUnloadCb"
3952
+ },
3953
+ {
3954
+ "kind": "Property",
3955
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#config:member",
3956
+ "docComment": "",
3957
+ "excerptTokens": [
3958
+ {
3959
+ "kind": "Content",
3960
+ "text": "config: "
3961
+ },
3962
+ {
3963
+ "kind": "Reference",
3964
+ "text": "IConfiguration",
3965
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration:interface"
3966
+ },
3967
+ {
3968
+ "kind": "Content",
3969
+ "text": ";"
3970
+ }
3971
+ ],
3972
+ "isOptional": false,
3973
+ "releaseTag": "Public",
3974
+ "name": "config",
3975
+ "propertyTypeTokenRange": {
3976
+ "startIndex": 1,
3977
+ "endIndex": 2
3978
+ },
3979
+ "isStatic": false
3980
+ },
3981
+ {
3982
+ "kind": "Property",
3983
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore.defaultConfig:member",
3984
+ "docComment": "",
3985
+ "excerptTokens": [
3986
+ {
3987
+ "kind": "Content",
3988
+ "text": "static defaultConfig: "
3989
+ },
3990
+ {
3991
+ "kind": "Reference",
3992
+ "text": "IConfiguration",
3993
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration:interface"
3994
+ },
3995
+ {
3996
+ "kind": "Content",
3997
+ "text": ";"
3998
+ }
3999
+ ],
4000
+ "isOptional": false,
4001
+ "releaseTag": "Public",
4002
+ "name": "defaultConfig",
4003
+ "propertyTypeTokenRange": {
4004
+ "startIndex": 1,
4005
+ "endIndex": 2
4006
+ },
4007
+ "isStatic": true
4008
+ },
4009
+ {
4010
+ "kind": "Method",
4011
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#eventCnt:member(1)",
4012
+ "docComment": "",
4013
+ "excerptTokens": [
4014
+ {
4015
+ "kind": "Content",
4016
+ "text": "eventCnt(): "
4017
+ },
4018
+ {
4019
+ "kind": "Content",
4020
+ "text": "number"
4021
+ },
4022
+ {
4023
+ "kind": "Content",
4024
+ "text": ";"
4025
+ }
4026
+ ],
4027
+ "isOptional": false,
4028
+ "isStatic": false,
3659
4029
  "returnTypeTokenRange": {
3660
4030
  "startIndex": 1,
3661
4031
  "endIndex": 2
@@ -4372,28 +4742,112 @@
4372
4742
  }
4373
4743
  ],
4374
4744
  "name": "track"
4375
- }
4376
- ],
4377
- "implementsTokenRanges": [
4378
- {
4379
- "startIndex": 1,
4380
- "endIndex": 3
4381
- }
4382
- ]
4383
- },
4384
- {
4385
- "kind": "Class",
4386
- "canonicalReference": "@microsoft/applicationinsights-core-js!BaseTelemetryPlugin:class",
4387
- "docComment": "/**\n * BaseTelemetryPlugin provides a basic implementation of the ITelemetryPlugin interface so that plugins can avoid implementation the same set of boiler plate code as well as provide a base implementation so that new default implementations can be added without breaking all plugins.\n */\n",
4388
- "excerptTokens": [
4389
- {
4390
- "kind": "Content",
4391
- "text": "export declare abstract class BaseTelemetryPlugin implements "
4392
4745
  },
4393
4746
  {
4394
- "kind": "Reference",
4395
- "text": "ITelemetryPlugin",
4396
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPlugin:interface"
4747
+ "kind": "Method",
4748
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseCore#unload:member(1)",
4749
+ "docComment": "/**\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous unload call return `true` stating that all plugins reported that they also unloaded, the recommended approach is to create a new instance and initialize that instance. This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable to successfully remove any global references or they may just be completing the unload process asynchronously.\n */\n",
4750
+ "excerptTokens": [
4751
+ {
4752
+ "kind": "Content",
4753
+ "text": "unload(isAsync?: "
4754
+ },
4755
+ {
4756
+ "kind": "Content",
4757
+ "text": "boolean"
4758
+ },
4759
+ {
4760
+ "kind": "Content",
4761
+ "text": ", unloadComplete?: "
4762
+ },
4763
+ {
4764
+ "kind": "Content",
4765
+ "text": "(unloadState: "
4766
+ },
4767
+ {
4768
+ "kind": "Reference",
4769
+ "text": "ITelemetryUnloadState",
4770
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface"
4771
+ },
4772
+ {
4773
+ "kind": "Content",
4774
+ "text": ") => void"
4775
+ },
4776
+ {
4777
+ "kind": "Content",
4778
+ "text": ", cbTimeout?: "
4779
+ },
4780
+ {
4781
+ "kind": "Content",
4782
+ "text": "number"
4783
+ },
4784
+ {
4785
+ "kind": "Content",
4786
+ "text": "): "
4787
+ },
4788
+ {
4789
+ "kind": "Content",
4790
+ "text": "void"
4791
+ },
4792
+ {
4793
+ "kind": "Content",
4794
+ "text": ";"
4795
+ }
4796
+ ],
4797
+ "isOptional": false,
4798
+ "isStatic": false,
4799
+ "returnTypeTokenRange": {
4800
+ "startIndex": 9,
4801
+ "endIndex": 10
4802
+ },
4803
+ "releaseTag": "Public",
4804
+ "overloadIndex": 1,
4805
+ "parameters": [
4806
+ {
4807
+ "parameterName": "isAsync",
4808
+ "parameterTypeTokenRange": {
4809
+ "startIndex": 1,
4810
+ "endIndex": 2
4811
+ }
4812
+ },
4813
+ {
4814
+ "parameterName": "unloadComplete",
4815
+ "parameterTypeTokenRange": {
4816
+ "startIndex": 3,
4817
+ "endIndex": 6
4818
+ }
4819
+ },
4820
+ {
4821
+ "parameterName": "cbTimeout",
4822
+ "parameterTypeTokenRange": {
4823
+ "startIndex": 7,
4824
+ "endIndex": 8
4825
+ }
4826
+ }
4827
+ ],
4828
+ "name": "unload"
4829
+ }
4830
+ ],
4831
+ "implementsTokenRanges": [
4832
+ {
4833
+ "startIndex": 1,
4834
+ "endIndex": 3
4835
+ }
4836
+ ]
4837
+ },
4838
+ {
4839
+ "kind": "Class",
4840
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseTelemetryPlugin:class",
4841
+ "docComment": "/**\n * BaseTelemetryPlugin provides a basic implementation of the ITelemetryPlugin interface so that plugins can avoid implementation the same set of boiler plate code as well as provide a base implementation so that new default implementations can be added without breaking all plugins.\n */\n",
4842
+ "excerptTokens": [
4843
+ {
4844
+ "kind": "Content",
4845
+ "text": "export declare abstract class BaseTelemetryPlugin implements "
4846
+ },
4847
+ {
4848
+ "kind": "Reference",
4849
+ "text": "ITelemetryPlugin",
4850
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPlugin:interface"
4397
4851
  },
4398
4852
  {
4399
4853
  "kind": "Content",
@@ -4462,6 +4916,52 @@
4462
4916
  ],
4463
4917
  "name": "_addHook"
4464
4918
  },
4919
+ {
4920
+ "kind": "Method",
4921
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseTelemetryPlugin#_addUnloadCb:member(1)",
4922
+ "docComment": "/**\n * Add an unload handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
4923
+ "excerptTokens": [
4924
+ {
4925
+ "kind": "Content",
4926
+ "text": "protected _addUnloadCb(handler: "
4927
+ },
4928
+ {
4929
+ "kind": "Reference",
4930
+ "text": "UnloadHandler",
4931
+ "canonicalReference": "@microsoft/applicationinsights-core-js!UnloadHandler:type"
4932
+ },
4933
+ {
4934
+ "kind": "Content",
4935
+ "text": "): "
4936
+ },
4937
+ {
4938
+ "kind": "Content",
4939
+ "text": "void"
4940
+ },
4941
+ {
4942
+ "kind": "Content",
4943
+ "text": ";"
4944
+ }
4945
+ ],
4946
+ "isOptional": false,
4947
+ "isStatic": false,
4948
+ "returnTypeTokenRange": {
4949
+ "startIndex": 3,
4950
+ "endIndex": 4
4951
+ },
4952
+ "releaseTag": "Public",
4953
+ "overloadIndex": 1,
4954
+ "parameters": [
4955
+ {
4956
+ "parameterName": "handler",
4957
+ "parameterTypeTokenRange": {
4958
+ "startIndex": 1,
4959
+ "endIndex": 2
4960
+ }
4961
+ }
4962
+ ],
4963
+ "name": "_addUnloadCb"
4964
+ },
4465
4965
  {
4466
4966
  "kind": "Property",
4467
4967
  "canonicalReference": "@microsoft/applicationinsights-core-js!BaseTelemetryPlugin#_doTeardown:member",
@@ -4507,6 +5007,51 @@
4507
5007
  },
4508
5008
  "isStatic": false
4509
5009
  },
5010
+ {
5011
+ "kind": "Property",
5012
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseTelemetryPlugin#_doUpdate:member",
5013
+ "docComment": "/**\n * Extension hook to allow implementations to perform some additional update operations before the BaseTelemetryPlugin finishes it's removal\n *\n * @param updateCtx - This is the context that should be used during updating.\n *\n * @param updateState - The details / state of the update process, it holds details like the current and previous configuration.\n *\n * @param asyncCallback - An optional callback that the plugin must call if it returns true to inform the caller that it has completed any async update operations.\n *\n * @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.\n */\n",
5014
+ "excerptTokens": [
5015
+ {
5016
+ "kind": "Content",
5017
+ "text": "protected _doUpdate?: "
5018
+ },
5019
+ {
5020
+ "kind": "Content",
5021
+ "text": "(updateCtx?: "
5022
+ },
5023
+ {
5024
+ "kind": "Reference",
5025
+ "text": "IProcessTelemetryUpdateContext",
5026
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUpdateContext:interface"
5027
+ },
5028
+ {
5029
+ "kind": "Content",
5030
+ "text": ", updateState?: "
5031
+ },
5032
+ {
5033
+ "kind": "Reference",
5034
+ "text": "ITelemetryUpdateState",
5035
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUpdateState:interface"
5036
+ },
5037
+ {
5038
+ "kind": "Content",
5039
+ "text": ", asyncCallback?: () => void) => void | boolean"
5040
+ },
5041
+ {
5042
+ "kind": "Content",
5043
+ "text": ";"
5044
+ }
5045
+ ],
5046
+ "isOptional": true,
5047
+ "releaseTag": "Public",
5048
+ "name": "_doUpdate",
5049
+ "propertyTypeTokenRange": {
5050
+ "startIndex": 1,
5051
+ "endIndex": 6
5052
+ },
5053
+ "isStatic": false
5054
+ },
4510
5055
  {
4511
5056
  "kind": "Property",
4512
5057
  "canonicalReference": "@microsoft/applicationinsights-core-js!BaseTelemetryPlugin#_getTelCtx:member",
@@ -5051,6 +5596,68 @@
5051
5596
  ],
5052
5597
  "name": "teardown"
5053
5598
  },
5599
+ {
5600
+ "kind": "Method",
5601
+ "canonicalReference": "@microsoft/applicationinsights-core-js!BaseTelemetryPlugin#update:member(1)",
5602
+ "docComment": "/**\n * The the plugin should re-evaluate configuration and update any cached configuration settings.\n *\n * @param updateCtx - This is the context that should be used during updating.\n *\n * @param updateState - The details / state of the update process, it holds details like the current and previous configuration.\n *\n * @returns boolean - true if the plugin has or will call updateCtx.processNext(), this allows the plugin to perform any asynchronous operations.\n */\n",
5603
+ "excerptTokens": [
5604
+ {
5605
+ "kind": "Content",
5606
+ "text": "update(updateCtx: "
5607
+ },
5608
+ {
5609
+ "kind": "Reference",
5610
+ "text": "IProcessTelemetryUpdateContext",
5611
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUpdateContext:interface"
5612
+ },
5613
+ {
5614
+ "kind": "Content",
5615
+ "text": ", updateState: "
5616
+ },
5617
+ {
5618
+ "kind": "Reference",
5619
+ "text": "ITelemetryUpdateState",
5620
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUpdateState:interface"
5621
+ },
5622
+ {
5623
+ "kind": "Content",
5624
+ "text": "): "
5625
+ },
5626
+ {
5627
+ "kind": "Content",
5628
+ "text": "void | boolean"
5629
+ },
5630
+ {
5631
+ "kind": "Content",
5632
+ "text": ";"
5633
+ }
5634
+ ],
5635
+ "isOptional": false,
5636
+ "isStatic": false,
5637
+ "returnTypeTokenRange": {
5638
+ "startIndex": 5,
5639
+ "endIndex": 6
5640
+ },
5641
+ "releaseTag": "Public",
5642
+ "overloadIndex": 1,
5643
+ "parameters": [
5644
+ {
5645
+ "parameterName": "updateCtx",
5646
+ "parameterTypeTokenRange": {
5647
+ "startIndex": 1,
5648
+ "endIndex": 2
5649
+ }
5650
+ },
5651
+ {
5652
+ "parameterName": "updateState",
5653
+ "parameterTypeTokenRange": {
5654
+ "startIndex": 3,
5655
+ "endIndex": 4
5656
+ }
5657
+ }
5658
+ ],
5659
+ "name": "update"
5660
+ },
5054
5661
  {
5055
5662
  "kind": "Property",
5056
5663
  "canonicalReference": "@microsoft/applicationinsights-core-js!BaseTelemetryPlugin#version:member",
@@ -5328,7 +5935,7 @@
5328
5935
  {
5329
5936
  "kind": "Function",
5330
5937
  "canonicalReference": "@microsoft/applicationinsights-core-js!createProcessTelemetryContext:function(1)",
5331
- "docComment": "/**\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain\n *\n * @param plugins - The plugin instances that will be executed\n *\n * @param config - The current config\n *\n * @param core - The current core instance\n */\n",
5938
+ "docComment": "/**\n * Creates a new Telemetry Item context with the current config, core and plugin execution chain\n *\n * @param plugins - The plugin instances that will be executed\n *\n * @param config - The current config\n *\n * @param core - The current core instance\n *\n * @param startAt - Identifies the next plugin to execute, if null there is no \"next\" plugin and if undefined it should assume the start of the chain\n */\n",
5332
5939
  "excerptTokens": [
5333
5940
  {
5334
5941
  "kind": "Content",
@@ -5478,16 +6085,43 @@
5478
6085
  },
5479
6086
  {
5480
6087
  "kind": "Function",
5481
- "canonicalReference": "@microsoft/applicationinsights-core-js!dateNow:function(1)",
5482
- "docComment": "/**\n * Return the current time via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less) https://caniuse.com/#search=Date.now\n */\n",
6088
+ "canonicalReference": "@microsoft/applicationinsights-core-js!createUnloadHandlerContainer:function(1)",
6089
+ "docComment": "",
5483
6090
  "excerptTokens": [
5484
6091
  {
5485
6092
  "kind": "Content",
5486
- "text": "export declare function dateNow(): "
6093
+ "text": "export declare function createUnloadHandlerContainer(): "
5487
6094
  },
5488
6095
  {
5489
6096
  "kind": "Content",
5490
- "text": "number"
6097
+ "text": "{\n add: (handler: "
6098
+ },
6099
+ {
6100
+ "kind": "Reference",
6101
+ "text": "UnloadHandler",
6102
+ "canonicalReference": "@microsoft/applicationinsights-core-js!UnloadHandler:type"
6103
+ },
6104
+ {
6105
+ "kind": "Content",
6106
+ "text": ") => void;\n run: (unloadCtx: "
6107
+ },
6108
+ {
6109
+ "kind": "Reference",
6110
+ "text": "IProcessTelemetryUnloadContext",
6111
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext:interface"
6112
+ },
6113
+ {
6114
+ "kind": "Content",
6115
+ "text": ", unloadState: "
6116
+ },
6117
+ {
6118
+ "kind": "Reference",
6119
+ "text": "ITelemetryUnloadState",
6120
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface"
6121
+ },
6122
+ {
6123
+ "kind": "Content",
6124
+ "text": ") => void;\n}"
5491
6125
  },
5492
6126
  {
5493
6127
  "kind": "Content",
@@ -5496,27 +6130,54 @@
5496
6130
  ],
5497
6131
  "returnTypeTokenRange": {
5498
6132
  "startIndex": 1,
5499
- "endIndex": 2
6133
+ "endIndex": 8
5500
6134
  },
5501
6135
  "releaseTag": "Public",
5502
6136
  "overloadIndex": 1,
5503
6137
  "parameters": [],
5504
- "name": "dateNow"
6138
+ "name": "createUnloadHandlerContainer"
5505
6139
  },
5506
6140
  {
5507
6141
  "kind": "Function",
5508
- "canonicalReference": "@microsoft/applicationinsights-core-js!deleteCookie:function(1)",
5509
- "docComment": "/**\n * @deprecated\n *\n * - Use the core.getCookieMgr().del() Deletes a cookie by setting it's expiration time in the past.\n *\n * @param name - The name of the cookie to delete.\n */\n",
6142
+ "canonicalReference": "@microsoft/applicationinsights-core-js!dateNow:function(1)",
6143
+ "docComment": "/**\n * Return the current time via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less) https://caniuse.com/#search=Date.now\n */\n",
5510
6144
  "excerptTokens": [
5511
6145
  {
5512
6146
  "kind": "Content",
5513
- "text": "export declare function deleteCookie(logger: "
6147
+ "text": "export declare function dateNow(): "
5514
6148
  },
5515
6149
  {
5516
- "kind": "Reference",
5517
- "text": "IDiagnosticLogger",
5518
- "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
5519
- },
6150
+ "kind": "Content",
6151
+ "text": "number"
6152
+ },
6153
+ {
6154
+ "kind": "Content",
6155
+ "text": ";"
6156
+ }
6157
+ ],
6158
+ "returnTypeTokenRange": {
6159
+ "startIndex": 1,
6160
+ "endIndex": 2
6161
+ },
6162
+ "releaseTag": "Public",
6163
+ "overloadIndex": 1,
6164
+ "parameters": [],
6165
+ "name": "dateNow"
6166
+ },
6167
+ {
6168
+ "kind": "Function",
6169
+ "canonicalReference": "@microsoft/applicationinsights-core-js!deleteCookie:function(1)",
6170
+ "docComment": "/**\n * @deprecated\n *\n * - Use the core.getCookieMgr().del() Deletes a cookie by setting it's expiration time in the past.\n *\n * @param name - The name of the cookie to delete.\n */\n",
6171
+ "excerptTokens": [
6172
+ {
6173
+ "kind": "Content",
6174
+ "text": "export declare function deleteCookie(logger: "
6175
+ },
6176
+ {
6177
+ "kind": "Reference",
6178
+ "text": "IDiagnosticLogger",
6179
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
6180
+ },
5520
6181
  {
5521
6182
  "kind": "Content",
5522
6183
  "text": ", name: "
@@ -7837,6 +8498,130 @@
7837
8498
  ],
7838
8499
  "name": "addNotificationListener"
7839
8500
  },
8501
+ {
8502
+ "kind": "MethodSignature",
8503
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#addPlugin:member(1)",
8504
+ "docComment": "/**\n * Add a new plugin to the installation\n *\n * @param plugin - The new plugin to add\n *\n * @param replaceExisting - should any existing plugin be replaced\n *\n * @param doAsync - Should the add be performed asynchronously\n */\n",
8505
+ "excerptTokens": [
8506
+ {
8507
+ "kind": "Content",
8508
+ "text": "addPlugin<T extends "
8509
+ },
8510
+ {
8511
+ "kind": "Reference",
8512
+ "text": "IPlugin",
8513
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
8514
+ },
8515
+ {
8516
+ "kind": "Content",
8517
+ "text": " "
8518
+ },
8519
+ {
8520
+ "kind": "Content",
8521
+ "text": "= "
8522
+ },
8523
+ {
8524
+ "kind": "Reference",
8525
+ "text": "ITelemetryPlugin",
8526
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPlugin:interface"
8527
+ },
8528
+ {
8529
+ "kind": "Content",
8530
+ "text": ">(plugin: "
8531
+ },
8532
+ {
8533
+ "kind": "Content",
8534
+ "text": "T"
8535
+ },
8536
+ {
8537
+ "kind": "Content",
8538
+ "text": ", replaceExisting: "
8539
+ },
8540
+ {
8541
+ "kind": "Content",
8542
+ "text": "boolean"
8543
+ },
8544
+ {
8545
+ "kind": "Content",
8546
+ "text": ", doAsync: "
8547
+ },
8548
+ {
8549
+ "kind": "Content",
8550
+ "text": "boolean"
8551
+ },
8552
+ {
8553
+ "kind": "Content",
8554
+ "text": ", addCb?: "
8555
+ },
8556
+ {
8557
+ "kind": "Content",
8558
+ "text": "(added?: boolean) => void"
8559
+ },
8560
+ {
8561
+ "kind": "Content",
8562
+ "text": "): "
8563
+ },
8564
+ {
8565
+ "kind": "Content",
8566
+ "text": "void"
8567
+ },
8568
+ {
8569
+ "kind": "Content",
8570
+ "text": ";"
8571
+ }
8572
+ ],
8573
+ "isOptional": false,
8574
+ "returnTypeTokenRange": {
8575
+ "startIndex": 14,
8576
+ "endIndex": 15
8577
+ },
8578
+ "releaseTag": "Public",
8579
+ "overloadIndex": 1,
8580
+ "parameters": [
8581
+ {
8582
+ "parameterName": "plugin",
8583
+ "parameterTypeTokenRange": {
8584
+ "startIndex": 6,
8585
+ "endIndex": 7
8586
+ }
8587
+ },
8588
+ {
8589
+ "parameterName": "replaceExisting",
8590
+ "parameterTypeTokenRange": {
8591
+ "startIndex": 8,
8592
+ "endIndex": 9
8593
+ }
8594
+ },
8595
+ {
8596
+ "parameterName": "doAsync",
8597
+ "parameterTypeTokenRange": {
8598
+ "startIndex": 10,
8599
+ "endIndex": 11
8600
+ }
8601
+ },
8602
+ {
8603
+ "parameterName": "addCb",
8604
+ "parameterTypeTokenRange": {
8605
+ "startIndex": 12,
8606
+ "endIndex": 13
8607
+ }
8608
+ }
8609
+ ],
8610
+ "typeParameters": [
8611
+ {
8612
+ "typeParameterName": "T",
8613
+ "constraintTokenRange": {
8614
+ "startIndex": 1,
8615
+ "endIndex": 3
8616
+ },
8617
+ "defaultTypeTokenRange": {
8618
+ "startIndex": 4,
8619
+ "endIndex": 5
8620
+ }
8621
+ }
8622
+ ],
8623
+ "name": "addPlugin"
8624
+ },
7840
8625
  {
7841
8626
  "kind": "MethodSignature",
7842
8627
  "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#addTelemetryInitializer:member(1)",
@@ -7887,6 +8672,51 @@
7887
8672
  ],
7888
8673
  "name": "addTelemetryInitializer"
7889
8674
  },
8675
+ {
8676
+ "kind": "MethodSignature",
8677
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#addUnloadCb:member(1)",
8678
+ "docComment": "/**\n * Add a handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
8679
+ "excerptTokens": [
8680
+ {
8681
+ "kind": "Content",
8682
+ "text": "addUnloadCb(handler: "
8683
+ },
8684
+ {
8685
+ "kind": "Reference",
8686
+ "text": "UnloadHandler",
8687
+ "canonicalReference": "@microsoft/applicationinsights-core-js!UnloadHandler:type"
8688
+ },
8689
+ {
8690
+ "kind": "Content",
8691
+ "text": "): "
8692
+ },
8693
+ {
8694
+ "kind": "Content",
8695
+ "text": "void"
8696
+ },
8697
+ {
8698
+ "kind": "Content",
8699
+ "text": ";"
8700
+ }
8701
+ ],
8702
+ "isOptional": false,
8703
+ "returnTypeTokenRange": {
8704
+ "startIndex": 3,
8705
+ "endIndex": 4
8706
+ },
8707
+ "releaseTag": "Public",
8708
+ "overloadIndex": 1,
8709
+ "parameters": [
8710
+ {
8711
+ "parameterName": "handler",
8712
+ "parameterTypeTokenRange": {
8713
+ "startIndex": 1,
8714
+ "endIndex": 2
8715
+ }
8716
+ }
8717
+ ],
8718
+ "name": "addUnloadCb"
8719
+ },
7890
8720
  {
7891
8721
  "kind": "PropertySignature",
7892
8722
  "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#config:member",
@@ -8502,6 +9332,65 @@
8502
9332
  }
8503
9333
  ],
8504
9334
  "name": "track"
9335
+ },
9336
+ {
9337
+ "kind": "MethodSignature",
9338
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#unload:member(1)",
9339
+ "docComment": "/**\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous unload call return `true` stating that all plugins reported that they also unloaded, the recommended approach is to create a new instance and initialize that instance. This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable to successfully remove any global references or they may just be completing the unload process asynchronously.\n */\n",
9340
+ "excerptTokens": [
9341
+ {
9342
+ "kind": "Content",
9343
+ "text": "unload(isAsync?: "
9344
+ },
9345
+ {
9346
+ "kind": "Content",
9347
+ "text": "boolean"
9348
+ },
9349
+ {
9350
+ "kind": "Content",
9351
+ "text": ", unloadComplete?: "
9352
+ },
9353
+ {
9354
+ "kind": "Content",
9355
+ "text": "() => void"
9356
+ },
9357
+ {
9358
+ "kind": "Content",
9359
+ "text": "): "
9360
+ },
9361
+ {
9362
+ "kind": "Content",
9363
+ "text": "void"
9364
+ },
9365
+ {
9366
+ "kind": "Content",
9367
+ "text": ";"
9368
+ }
9369
+ ],
9370
+ "isOptional": false,
9371
+ "returnTypeTokenRange": {
9372
+ "startIndex": 5,
9373
+ "endIndex": 6
9374
+ },
9375
+ "releaseTag": "Public",
9376
+ "overloadIndex": 1,
9377
+ "parameters": [
9378
+ {
9379
+ "parameterName": "isAsync",
9380
+ "parameterTypeTokenRange": {
9381
+ "startIndex": 1,
9382
+ "endIndex": 2
9383
+ }
9384
+ },
9385
+ {
9386
+ "parameterName": "unloadComplete",
9387
+ "parameterTypeTokenRange": {
9388
+ "startIndex": 3,
9389
+ "endIndex": 4
9390
+ }
9391
+ }
9392
+ ],
9393
+ "name": "unload"
8505
9394
  }
8506
9395
  ],
8507
9396
  "extendsTokenRanges": [
@@ -8509,7 +9398,438 @@
8509
9398
  "startIndex": 1,
8510
9399
  "endIndex": 3
8511
9400
  }
8512
- ]
9401
+ ]
9402
+ },
9403
+ {
9404
+ "kind": "Interface",
9405
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext:interface",
9406
+ "docComment": "",
9407
+ "excerptTokens": [
9408
+ {
9409
+ "kind": "Content",
9410
+ "text": "export interface IBaseProcessingContext "
9411
+ }
9412
+ ],
9413
+ "releaseTag": "Public",
9414
+ "name": "IBaseProcessingContext",
9415
+ "members": [
9416
+ {
9417
+ "kind": "PropertySignature",
9418
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#core:member",
9419
+ "docComment": "/**\n * The current core instance for the request\n */\n",
9420
+ "excerptTokens": [
9421
+ {
9422
+ "kind": "Content",
9423
+ "text": "core: "
9424
+ },
9425
+ {
9426
+ "kind": "Content",
9427
+ "text": "() => "
9428
+ },
9429
+ {
9430
+ "kind": "Reference",
9431
+ "text": "IAppInsightsCore",
9432
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore:interface"
9433
+ },
9434
+ {
9435
+ "kind": "Content",
9436
+ "text": ";"
9437
+ }
9438
+ ],
9439
+ "isOptional": false,
9440
+ "releaseTag": "Public",
9441
+ "name": "core",
9442
+ "propertyTypeTokenRange": {
9443
+ "startIndex": 1,
9444
+ "endIndex": 3
9445
+ }
9446
+ },
9447
+ {
9448
+ "kind": "PropertySignature",
9449
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#createNew:member",
9450
+ "docComment": "/**\n * Create a new context using the core and config from the current instance, returns a new instance of the same type\n *\n * @param plugins - The execution order to process the plugins, if null or not supplied then the current execution order will be copied.\n *\n * @param startAt - The plugin to start processing from, if missing from the execution order then the next plugin will be NOT set.\n */\n",
9451
+ "excerptTokens": [
9452
+ {
9453
+ "kind": "Content",
9454
+ "text": "createNew: "
9455
+ },
9456
+ {
9457
+ "kind": "Content",
9458
+ "text": "(plugins?: "
9459
+ },
9460
+ {
9461
+ "kind": "Reference",
9462
+ "text": "IPlugin",
9463
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
9464
+ },
9465
+ {
9466
+ "kind": "Content",
9467
+ "text": "[] | "
9468
+ },
9469
+ {
9470
+ "kind": "Reference",
9471
+ "text": "ITelemetryPluginChain",
9472
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain:interface"
9473
+ },
9474
+ {
9475
+ "kind": "Content",
9476
+ "text": ", startAt?: "
9477
+ },
9478
+ {
9479
+ "kind": "Reference",
9480
+ "text": "IPlugin",
9481
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
9482
+ },
9483
+ {
9484
+ "kind": "Content",
9485
+ "text": ") => "
9486
+ },
9487
+ {
9488
+ "kind": "Reference",
9489
+ "text": "IBaseProcessingContext",
9490
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext:interface"
9491
+ },
9492
+ {
9493
+ "kind": "Content",
9494
+ "text": ";"
9495
+ }
9496
+ ],
9497
+ "isOptional": false,
9498
+ "releaseTag": "Public",
9499
+ "name": "createNew",
9500
+ "propertyTypeTokenRange": {
9501
+ "startIndex": 1,
9502
+ "endIndex": 9
9503
+ }
9504
+ },
9505
+ {
9506
+ "kind": "PropertySignature",
9507
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#diagLog:member",
9508
+ "docComment": "/**\n * THe current diagnostic logger for the request\n */\n",
9509
+ "excerptTokens": [
9510
+ {
9511
+ "kind": "Content",
9512
+ "text": "diagLog: "
9513
+ },
9514
+ {
9515
+ "kind": "Content",
9516
+ "text": "() => "
9517
+ },
9518
+ {
9519
+ "kind": "Reference",
9520
+ "text": "IDiagnosticLogger",
9521
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger:interface"
9522
+ },
9523
+ {
9524
+ "kind": "Content",
9525
+ "text": ";"
9526
+ }
9527
+ ],
9528
+ "isOptional": false,
9529
+ "releaseTag": "Public",
9530
+ "name": "diagLog",
9531
+ "propertyTypeTokenRange": {
9532
+ "startIndex": 1,
9533
+ "endIndex": 3
9534
+ }
9535
+ },
9536
+ {
9537
+ "kind": "PropertySignature",
9538
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#getCfg:member",
9539
+ "docComment": "/**\n * Gets the current core config instance\n */\n",
9540
+ "excerptTokens": [
9541
+ {
9542
+ "kind": "Content",
9543
+ "text": "getCfg: "
9544
+ },
9545
+ {
9546
+ "kind": "Content",
9547
+ "text": "() => "
9548
+ },
9549
+ {
9550
+ "kind": "Reference",
9551
+ "text": "IConfiguration",
9552
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IConfiguration:interface"
9553
+ },
9554
+ {
9555
+ "kind": "Content",
9556
+ "text": ";"
9557
+ }
9558
+ ],
9559
+ "isOptional": false,
9560
+ "releaseTag": "Public",
9561
+ "name": "getCfg",
9562
+ "propertyTypeTokenRange": {
9563
+ "startIndex": 1,
9564
+ "endIndex": 3
9565
+ }
9566
+ },
9567
+ {
9568
+ "kind": "PropertySignature",
9569
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#getConfig:member",
9570
+ "docComment": "/**\n * Gets the named config from either the named identifier extension or core config if neither exist then the default value is returned\n *\n * @param identifier - The named extension identifier\n *\n * @param field - The config field name\n *\n * @param defaultValue - The default value to return if no defined config exists\n */\n",
9571
+ "excerptTokens": [
9572
+ {
9573
+ "kind": "Content",
9574
+ "text": "getConfig: "
9575
+ },
9576
+ {
9577
+ "kind": "Content",
9578
+ "text": "(identifier: string, field: string, defaultValue?: number | string | boolean | string[] | "
9579
+ },
9580
+ {
9581
+ "kind": "Reference",
9582
+ "text": "RegExp",
9583
+ "canonicalReference": "!RegExp:interface"
9584
+ },
9585
+ {
9586
+ "kind": "Content",
9587
+ "text": "[] | "
9588
+ },
9589
+ {
9590
+ "kind": "Reference",
9591
+ "text": "Function",
9592
+ "canonicalReference": "!Function:interface"
9593
+ },
9594
+ {
9595
+ "kind": "Content",
9596
+ "text": ") => number | string | boolean | string[] | "
9597
+ },
9598
+ {
9599
+ "kind": "Reference",
9600
+ "text": "RegExp",
9601
+ "canonicalReference": "!RegExp:interface"
9602
+ },
9603
+ {
9604
+ "kind": "Content",
9605
+ "text": "[] | "
9606
+ },
9607
+ {
9608
+ "kind": "Reference",
9609
+ "text": "Function",
9610
+ "canonicalReference": "!Function:interface"
9611
+ },
9612
+ {
9613
+ "kind": "Content",
9614
+ "text": ";"
9615
+ }
9616
+ ],
9617
+ "isOptional": false,
9618
+ "releaseTag": "Public",
9619
+ "name": "getConfig",
9620
+ "propertyTypeTokenRange": {
9621
+ "startIndex": 1,
9622
+ "endIndex": 9
9623
+ }
9624
+ },
9625
+ {
9626
+ "kind": "PropertySignature",
9627
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#getExtCfg:member",
9628
+ "docComment": "/**\n * Gets the named extension config\n */\n",
9629
+ "excerptTokens": [
9630
+ {
9631
+ "kind": "Content",
9632
+ "text": "getExtCfg: "
9633
+ },
9634
+ {
9635
+ "kind": "Content",
9636
+ "text": "<T>(identifier: string, defaultValue?: T | any, mergeDefault?: "
9637
+ },
9638
+ {
9639
+ "kind": "Reference",
9640
+ "text": "GetExtCfgMergeType",
9641
+ "canonicalReference": "@microsoft/applicationinsights-core-js!GetExtCfgMergeType:enum"
9642
+ },
9643
+ {
9644
+ "kind": "Content",
9645
+ "text": ") => T"
9646
+ },
9647
+ {
9648
+ "kind": "Content",
9649
+ "text": ";"
9650
+ }
9651
+ ],
9652
+ "isOptional": false,
9653
+ "releaseTag": "Public",
9654
+ "name": "getExtCfg",
9655
+ "propertyTypeTokenRange": {
9656
+ "startIndex": 1,
9657
+ "endIndex": 4
9658
+ }
9659
+ },
9660
+ {
9661
+ "kind": "PropertySignature",
9662
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#getNext:member",
9663
+ "docComment": "/**\n * Returns the next configured plugin proxy\n */\n",
9664
+ "excerptTokens": [
9665
+ {
9666
+ "kind": "Content",
9667
+ "text": "getNext: "
9668
+ },
9669
+ {
9670
+ "kind": "Content",
9671
+ "text": "() => "
9672
+ },
9673
+ {
9674
+ "kind": "Reference",
9675
+ "text": "ITelemetryPluginChain",
9676
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain:interface"
9677
+ },
9678
+ {
9679
+ "kind": "Content",
9680
+ "text": ";"
9681
+ }
9682
+ ],
9683
+ "isOptional": false,
9684
+ "releaseTag": "Public",
9685
+ "name": "getNext",
9686
+ "propertyTypeTokenRange": {
9687
+ "startIndex": 1,
9688
+ "endIndex": 3
9689
+ }
9690
+ },
9691
+ {
9692
+ "kind": "PropertySignature",
9693
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#hasNext:member",
9694
+ "docComment": "/**\n * Helper to allow plugins to check and possibly shortcut executing code only required if there is a nextPlugin\n */\n",
9695
+ "excerptTokens": [
9696
+ {
9697
+ "kind": "Content",
9698
+ "text": "hasNext: "
9699
+ },
9700
+ {
9701
+ "kind": "Content",
9702
+ "text": "() => boolean"
9703
+ },
9704
+ {
9705
+ "kind": "Content",
9706
+ "text": ";"
9707
+ }
9708
+ ],
9709
+ "isOptional": false,
9710
+ "releaseTag": "Public",
9711
+ "name": "hasNext",
9712
+ "propertyTypeTokenRange": {
9713
+ "startIndex": 1,
9714
+ "endIndex": 2
9715
+ }
9716
+ },
9717
+ {
9718
+ "kind": "PropertySignature",
9719
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#iterate:member",
9720
+ "docComment": "/**\n * Synchronously iterate over the context chain running the callback for each plugin, once every plugin has been executed via the callback, any associated onComplete will be called.\n *\n * @param callback - The function call for each plugin in the context chain\n */\n",
9721
+ "excerptTokens": [
9722
+ {
9723
+ "kind": "Content",
9724
+ "text": "iterate: "
9725
+ },
9726
+ {
9727
+ "kind": "Content",
9728
+ "text": "<T extends "
9729
+ },
9730
+ {
9731
+ "kind": "Reference",
9732
+ "text": "ITelemetryPlugin",
9733
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPlugin:interface"
9734
+ },
9735
+ {
9736
+ "kind": "Content",
9737
+ "text": " = "
9738
+ },
9739
+ {
9740
+ "kind": "Reference",
9741
+ "text": "ITelemetryPlugin",
9742
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPlugin:interface"
9743
+ },
9744
+ {
9745
+ "kind": "Content",
9746
+ "text": ">(callback: (plugin: T) => void) => void"
9747
+ },
9748
+ {
9749
+ "kind": "Content",
9750
+ "text": ";"
9751
+ }
9752
+ ],
9753
+ "isOptional": false,
9754
+ "releaseTag": "Public",
9755
+ "name": "iterate",
9756
+ "propertyTypeTokenRange": {
9757
+ "startIndex": 1,
9758
+ "endIndex": 6
9759
+ }
9760
+ },
9761
+ {
9762
+ "kind": "PropertySignature",
9763
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#onComplete:member",
9764
+ "docComment": "/**\n * Set the function to call when the current chain has executed all processNext or unloadNext items.\n *\n * @param onComplete - The onComplete to call\n *\n * @param that - The \"this\" value to use for the onComplete call, if not provided or undefined defaults to the current context\n *\n * @param args - Any additional arguments to pass to the onComplete function\n */\n",
9765
+ "excerptTokens": [
9766
+ {
9767
+ "kind": "Content",
9768
+ "text": "onComplete: "
9769
+ },
9770
+ {
9771
+ "kind": "Content",
9772
+ "text": "(onComplete: "
9773
+ },
9774
+ {
9775
+ "kind": "Reference",
9776
+ "text": "Function",
9777
+ "canonicalReference": "!Function:interface"
9778
+ },
9779
+ {
9780
+ "kind": "Content",
9781
+ "text": ", that?: any, ...args: any[]) => void"
9782
+ },
9783
+ {
9784
+ "kind": "Content",
9785
+ "text": ";"
9786
+ }
9787
+ ],
9788
+ "isOptional": false,
9789
+ "releaseTag": "Public",
9790
+ "name": "onComplete",
9791
+ "propertyTypeTokenRange": {
9792
+ "startIndex": 1,
9793
+ "endIndex": 4
9794
+ }
9795
+ },
9796
+ {
9797
+ "kind": "PropertySignature",
9798
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext#setNext:member",
9799
+ "docComment": "/**\n * Helper to set the next plugin proxy\n */\n",
9800
+ "excerptTokens": [
9801
+ {
9802
+ "kind": "Content",
9803
+ "text": "setNext: "
9804
+ },
9805
+ {
9806
+ "kind": "Content",
9807
+ "text": "(nextCtx: "
9808
+ },
9809
+ {
9810
+ "kind": "Reference",
9811
+ "text": "ITelemetryPluginChain",
9812
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain:interface"
9813
+ },
9814
+ {
9815
+ "kind": "Content",
9816
+ "text": ") => void"
9817
+ },
9818
+ {
9819
+ "kind": "Content",
9820
+ "text": ";"
9821
+ }
9822
+ ],
9823
+ "isOptional": false,
9824
+ "releaseTag": "Public",
9825
+ "name": "setNext",
9826
+ "propertyTypeTokenRange": {
9827
+ "startIndex": 1,
9828
+ "endIndex": 4
9829
+ }
9830
+ }
9831
+ ],
9832
+ "extendsTokenRanges": []
8513
9833
  },
8514
9834
  {
8515
9835
  "kind": "Interface",
@@ -12167,6 +13487,32 @@
12167
13487
  "endIndex": 2
12168
13488
  }
12169
13489
  },
13490
+ {
13491
+ "kind": "PropertySignature",
13492
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IInstrumentHooksCallbacks#ns:member",
13493
+ "docComment": "/**\n * [Optional] Namespace details (same as the namespace used for events), useful for debugging and testing to identify the source of the instrumented hooks\n */\n",
13494
+ "excerptTokens": [
13495
+ {
13496
+ "kind": "Content",
13497
+ "text": "ns?: "
13498
+ },
13499
+ {
13500
+ "kind": "Content",
13501
+ "text": "string | string[]"
13502
+ },
13503
+ {
13504
+ "kind": "Content",
13505
+ "text": ";"
13506
+ }
13507
+ ],
13508
+ "isOptional": true,
13509
+ "releaseTag": "Public",
13510
+ "name": "ns",
13511
+ "propertyTypeTokenRange": {
13512
+ "startIndex": 1,
13513
+ "endIndex": 2
13514
+ }
13515
+ },
12170
13516
  {
12171
13517
  "kind": "PropertySignature",
12172
13518
  "canonicalReference": "@microsoft/applicationinsights-core-js!IInstrumentHooksCallbacks#req:member",
@@ -14017,25 +15363,271 @@
14017
15363
  "text": ";"
14018
15364
  }
14019
15365
  ],
14020
- "isOptional": true,
15366
+ "isOptional": true,
15367
+ "releaseTag": "Public",
15368
+ "name": "version",
15369
+ "propertyTypeTokenRange": {
15370
+ "startIndex": 1,
15371
+ "endIndex": 2
15372
+ }
15373
+ }
15374
+ ],
15375
+ "extendsTokenRanges": []
15376
+ },
15377
+ {
15378
+ "kind": "Interface",
15379
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryContext:interface",
15380
+ "docComment": "/**\n * The current context for the current call to processTelemetry(), used to support sharing the same plugin instance between multiple AppInsights instances\n */\n",
15381
+ "excerptTokens": [
15382
+ {
15383
+ "kind": "Content",
15384
+ "text": "export interface IProcessTelemetryContext extends "
15385
+ },
15386
+ {
15387
+ "kind": "Reference",
15388
+ "text": "IBaseProcessingContext",
15389
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext:interface"
15390
+ },
15391
+ {
15392
+ "kind": "Content",
15393
+ "text": " "
15394
+ }
15395
+ ],
15396
+ "releaseTag": "Public",
15397
+ "name": "IProcessTelemetryContext",
15398
+ "members": [
15399
+ {
15400
+ "kind": "PropertySignature",
15401
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryContext#createNew:member",
15402
+ "docComment": "/**\n * Create a new context using the core and config from the current instance, returns a new instance of the same type\n *\n * @param plugins - The execution order to process the plugins, if null or not supplied then the current execution order will be copied.\n *\n * @param startAt - The plugin to start processing from, if missing from the execution order then the next plugin will be NOT set.\n */\n",
15403
+ "excerptTokens": [
15404
+ {
15405
+ "kind": "Content",
15406
+ "text": "createNew: "
15407
+ },
15408
+ {
15409
+ "kind": "Content",
15410
+ "text": "(plugins?: "
15411
+ },
15412
+ {
15413
+ "kind": "Reference",
15414
+ "text": "IPlugin",
15415
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
15416
+ },
15417
+ {
15418
+ "kind": "Content",
15419
+ "text": "[] | "
15420
+ },
15421
+ {
15422
+ "kind": "Reference",
15423
+ "text": "ITelemetryPluginChain",
15424
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain:interface"
15425
+ },
15426
+ {
15427
+ "kind": "Content",
15428
+ "text": ", startAt?: "
15429
+ },
15430
+ {
15431
+ "kind": "Reference",
15432
+ "text": "IPlugin",
15433
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
15434
+ },
15435
+ {
15436
+ "kind": "Content",
15437
+ "text": ") => "
15438
+ },
15439
+ {
15440
+ "kind": "Reference",
15441
+ "text": "IProcessTelemetryContext",
15442
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryContext:interface"
15443
+ },
15444
+ {
15445
+ "kind": "Content",
15446
+ "text": ";"
15447
+ }
15448
+ ],
15449
+ "isOptional": false,
15450
+ "releaseTag": "Public",
15451
+ "name": "createNew",
15452
+ "propertyTypeTokenRange": {
15453
+ "startIndex": 1,
15454
+ "endIndex": 9
15455
+ }
15456
+ },
15457
+ {
15458
+ "kind": "PropertySignature",
15459
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryContext#processNext:member",
15460
+ "docComment": "/**\n * Call back for telemetry processing before it it is sent\n *\n * @param env - This is the current event being reported\n *\n * @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)\n */\n",
15461
+ "excerptTokens": [
15462
+ {
15463
+ "kind": "Content",
15464
+ "text": "processNext: "
15465
+ },
15466
+ {
15467
+ "kind": "Content",
15468
+ "text": "(env: "
15469
+ },
15470
+ {
15471
+ "kind": "Reference",
15472
+ "text": "ITelemetryItem",
15473
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryItem:interface"
15474
+ },
15475
+ {
15476
+ "kind": "Content",
15477
+ "text": ") => boolean | void"
15478
+ },
15479
+ {
15480
+ "kind": "Content",
15481
+ "text": ";"
15482
+ }
15483
+ ],
15484
+ "isOptional": false,
15485
+ "releaseTag": "Public",
15486
+ "name": "processNext",
15487
+ "propertyTypeTokenRange": {
15488
+ "startIndex": 1,
15489
+ "endIndex": 4
15490
+ }
15491
+ }
15492
+ ],
15493
+ "extendsTokenRanges": [
15494
+ {
15495
+ "startIndex": 1,
15496
+ "endIndex": 3
15497
+ }
15498
+ ]
15499
+ },
15500
+ {
15501
+ "kind": "Interface",
15502
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext:interface",
15503
+ "docComment": "/**\n * The current context for the current call to teardown() implementations, used to support when plugins are being removed or the SDK is being unloaded.\n */\n",
15504
+ "excerptTokens": [
15505
+ {
15506
+ "kind": "Content",
15507
+ "text": "export interface IProcessTelemetryUnloadContext extends "
15508
+ },
15509
+ {
15510
+ "kind": "Reference",
15511
+ "text": "IBaseProcessingContext",
15512
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IBaseProcessingContext:interface"
15513
+ },
15514
+ {
15515
+ "kind": "Content",
15516
+ "text": " "
15517
+ }
15518
+ ],
15519
+ "releaseTag": "Public",
15520
+ "name": "IProcessTelemetryUnloadContext",
15521
+ "members": [
15522
+ {
15523
+ "kind": "PropertySignature",
15524
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext#createNew:member",
15525
+ "docComment": "/**\n * Create a new context using the core and config from the current instance, returns a new instance of the same type\n *\n * @param plugins - The execution order to process the plugins, if null or not supplied then the current execution order will be copied.\n *\n * @param startAt - The plugin to start processing from, if missing from the execution order then the next plugin will be NOT set.\n */\n",
15526
+ "excerptTokens": [
15527
+ {
15528
+ "kind": "Content",
15529
+ "text": "createNew: "
15530
+ },
15531
+ {
15532
+ "kind": "Content",
15533
+ "text": "(plugins?: "
15534
+ },
15535
+ {
15536
+ "kind": "Reference",
15537
+ "text": "IPlugin",
15538
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
15539
+ },
15540
+ {
15541
+ "kind": "Content",
15542
+ "text": "[] | "
15543
+ },
15544
+ {
15545
+ "kind": "Reference",
15546
+ "text": "ITelemetryPluginChain",
15547
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain:interface"
15548
+ },
15549
+ {
15550
+ "kind": "Content",
15551
+ "text": ", startAt?: "
15552
+ },
15553
+ {
15554
+ "kind": "Reference",
15555
+ "text": "IPlugin",
15556
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
15557
+ },
15558
+ {
15559
+ "kind": "Content",
15560
+ "text": ") => "
15561
+ },
15562
+ {
15563
+ "kind": "Reference",
15564
+ "text": "IProcessTelemetryUnloadContext",
15565
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext:interface"
15566
+ },
15567
+ {
15568
+ "kind": "Content",
15569
+ "text": ";"
15570
+ }
15571
+ ],
15572
+ "isOptional": false,
15573
+ "releaseTag": "Public",
15574
+ "name": "createNew",
15575
+ "propertyTypeTokenRange": {
15576
+ "startIndex": 1,
15577
+ "endIndex": 9
15578
+ }
15579
+ },
15580
+ {
15581
+ "kind": "PropertySignature",
15582
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext#processNext:member",
15583
+ "docComment": "/**\n * This Plugin has finished unloading, so unload the next one\n *\n * @param uploadState - The state of the unload process\n *\n * @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)\n */\n",
15584
+ "excerptTokens": [
15585
+ {
15586
+ "kind": "Content",
15587
+ "text": "processNext: "
15588
+ },
15589
+ {
15590
+ "kind": "Content",
15591
+ "text": "(unloadState: "
15592
+ },
15593
+ {
15594
+ "kind": "Reference",
15595
+ "text": "ITelemetryUnloadState",
15596
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface"
15597
+ },
15598
+ {
15599
+ "kind": "Content",
15600
+ "text": ") => boolean | void"
15601
+ },
15602
+ {
15603
+ "kind": "Content",
15604
+ "text": ";"
15605
+ }
15606
+ ],
15607
+ "isOptional": false,
14021
15608
  "releaseTag": "Public",
14022
- "name": "version",
15609
+ "name": "processNext",
14023
15610
  "propertyTypeTokenRange": {
14024
15611
  "startIndex": 1,
14025
- "endIndex": 2
15612
+ "endIndex": 4
14026
15613
  }
14027
15614
  }
14028
15615
  ],
14029
- "extendsTokenRanges": []
15616
+ "extendsTokenRanges": [
15617
+ {
15618
+ "startIndex": 1,
15619
+ "endIndex": 3
15620
+ }
15621
+ ]
14030
15622
  },
14031
15623
  {
14032
15624
  "kind": "Interface",
14033
- "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryContext:interface",
14034
- "docComment": "/**\n * The current context for the current call to processTelemetry(), used to support sharing the same plugin instance between multiple AppInsights instances\n */\n",
15625
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUpdateContext:interface",
15626
+ "docComment": "/**\n * The current context for the current call to the plugin update() implementations, used to support the notifications for when plugins are added, removed or the configuration was changed.\n */\n",
14035
15627
  "excerptTokens": [
14036
15628
  {
14037
15629
  "kind": "Content",
14038
- "text": "export interface IProcessTelemetryContext extends "
15630
+ "text": "export interface IProcessTelemetryUpdateContext extends "
14039
15631
  },
14040
15632
  {
14041
15633
  "kind": "Reference",
@@ -14048,11 +15640,11 @@
14048
15640
  }
14049
15641
  ],
14050
15642
  "releaseTag": "Public",
14051
- "name": "IProcessTelemetryContext",
15643
+ "name": "IProcessTelemetryUpdateContext",
14052
15644
  "members": [
14053
15645
  {
14054
15646
  "kind": "PropertySignature",
14055
- "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryContext#createNew:member",
15647
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUpdateContext#createNew:member",
14056
15648
  "docComment": "/**\n * Create a new context using the core and config from the current instance, returns a new instance of the same type\n *\n * @param plugins - The execution order to process the plugins, if null or not supplied then the current execution order will be copied.\n *\n * @param startAt - The plugin to start processing from, if missing from the execution order then the next plugin will be NOT set.\n */\n",
14057
15649
  "excerptTokens": [
14058
15650
  {
@@ -14092,8 +15684,8 @@
14092
15684
  },
14093
15685
  {
14094
15686
  "kind": "Reference",
14095
- "text": "IProcessTelemetryContext",
14096
- "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryContext:interface"
15687
+ "text": "IProcessTelemetryUpdateContext",
15688
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUpdateContext:interface"
14097
15689
  },
14098
15690
  {
14099
15691
  "kind": "Content",
@@ -14110,8 +15702,8 @@
14110
15702
  },
14111
15703
  {
14112
15704
  "kind": "PropertySignature",
14113
- "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryContext#processNext:member",
14114
- "docComment": "/**\n * Call back for telemetry processing before it it is sent\n *\n * @param env - This is the current event being reported\n *\n * @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)\n */\n",
15705
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUpdateContext#processNext:member",
15706
+ "docComment": "/**\n * This Plugin has finished unloading, so unload the next one\n *\n * @param updateState - The update State\n *\n * @returns boolean (true) if there is no more plugins to process otherwise false or undefined (void)\n */\n",
14115
15707
  "excerptTokens": [
14116
15708
  {
14117
15709
  "kind": "Content",
@@ -14119,12 +15711,12 @@
14119
15711
  },
14120
15712
  {
14121
15713
  "kind": "Content",
14122
- "text": "(env: "
15714
+ "text": "(updateState: "
14123
15715
  },
14124
15716
  {
14125
15717
  "kind": "Reference",
14126
- "text": "ITelemetryItem",
14127
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryItem:interface"
15718
+ "text": "ITelemetryUpdateState",
15719
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUpdateState:interface"
14128
15720
  },
14129
15721
  {
14130
15722
  "kind": "Content",
@@ -15584,47 +17176,269 @@
15584
17176
  "excerptTokens": [
15585
17177
  {
15586
17178
  "kind": "Content",
15587
- "text": "export interface ITelemetryPluginChain extends "
15588
- },
15589
- {
15590
- "kind": "Reference",
15591
- "text": "ITelemetryProcessor",
15592
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryProcessor:interface"
15593
- },
15594
- {
15595
- "kind": "Content",
15596
- "text": " "
17179
+ "text": "export interface ITelemetryPluginChain extends "
17180
+ },
17181
+ {
17182
+ "kind": "Reference",
17183
+ "text": "ITelemetryProcessor",
17184
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryProcessor:interface"
17185
+ },
17186
+ {
17187
+ "kind": "Content",
17188
+ "text": " "
17189
+ }
17190
+ ],
17191
+ "releaseTag": "Public",
17192
+ "name": "ITelemetryPluginChain",
17193
+ "members": [
17194
+ {
17195
+ "kind": "PropertySignature",
17196
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain#getNext:member",
17197
+ "docComment": "/**\n * Returns the next plugin\n */\n",
17198
+ "excerptTokens": [
17199
+ {
17200
+ "kind": "Content",
17201
+ "text": "getNext: "
17202
+ },
17203
+ {
17204
+ "kind": "Content",
17205
+ "text": "() => "
17206
+ },
17207
+ {
17208
+ "kind": "Reference",
17209
+ "text": "ITelemetryPluginChain",
17210
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain:interface"
17211
+ },
17212
+ {
17213
+ "kind": "Content",
17214
+ "text": ";"
17215
+ }
17216
+ ],
17217
+ "isOptional": false,
17218
+ "releaseTag": "Public",
17219
+ "name": "getNext",
17220
+ "propertyTypeTokenRange": {
17221
+ "startIndex": 1,
17222
+ "endIndex": 3
17223
+ }
17224
+ },
17225
+ {
17226
+ "kind": "PropertySignature",
17227
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain#getPlugin:member",
17228
+ "docComment": "/**\n * Returns the underlying plugin that is being proxied for the processTelemetry call\n */\n",
17229
+ "excerptTokens": [
17230
+ {
17231
+ "kind": "Content",
17232
+ "text": "getPlugin: "
17233
+ },
17234
+ {
17235
+ "kind": "Content",
17236
+ "text": "() => "
17237
+ },
17238
+ {
17239
+ "kind": "Reference",
17240
+ "text": "ITelemetryPlugin",
17241
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPlugin:interface"
17242
+ },
17243
+ {
17244
+ "kind": "Content",
17245
+ "text": ";"
17246
+ }
17247
+ ],
17248
+ "isOptional": false,
17249
+ "releaseTag": "Public",
17250
+ "name": "getPlugin",
17251
+ "propertyTypeTokenRange": {
17252
+ "startIndex": 1,
17253
+ "endIndex": 3
17254
+ }
17255
+ },
17256
+ {
17257
+ "kind": "PropertySignature",
17258
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain#unload:member",
17259
+ "docComment": "/**\n * This plugin is being unloaded and should remove any hooked events and cleanup any global/scoped values, after this call the plugin will be removed from the telemetry processing chain and will no longer receive any events..\n *\n * @param unloadCtx - The unload context to use for this call.\n *\n * @param unloadState - The details of the unload operation\n */\n",
17260
+ "excerptTokens": [
17261
+ {
17262
+ "kind": "Content",
17263
+ "text": "unload?: "
17264
+ },
17265
+ {
17266
+ "kind": "Content",
17267
+ "text": "(unloadCtx: "
17268
+ },
17269
+ {
17270
+ "kind": "Reference",
17271
+ "text": "IProcessTelemetryUnloadContext",
17272
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext:interface"
17273
+ },
17274
+ {
17275
+ "kind": "Content",
17276
+ "text": ", unloadState: "
17277
+ },
17278
+ {
17279
+ "kind": "Reference",
17280
+ "text": "ITelemetryUnloadState",
17281
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface"
17282
+ },
17283
+ {
17284
+ "kind": "Content",
17285
+ "text": ") => void"
17286
+ },
17287
+ {
17288
+ "kind": "Content",
17289
+ "text": ";"
17290
+ }
17291
+ ],
17292
+ "isOptional": true,
17293
+ "releaseTag": "Public",
17294
+ "name": "unload",
17295
+ "propertyTypeTokenRange": {
17296
+ "startIndex": 1,
17297
+ "endIndex": 6
17298
+ }
17299
+ }
17300
+ ],
17301
+ "extendsTokenRanges": [
17302
+ {
17303
+ "startIndex": 1,
17304
+ "endIndex": 3
17305
+ }
17306
+ ]
17307
+ },
17308
+ {
17309
+ "kind": "Interface",
17310
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface",
17311
+ "docComment": "",
17312
+ "excerptTokens": [
17313
+ {
17314
+ "kind": "Content",
17315
+ "text": "export interface ITelemetryUnloadState "
17316
+ }
17317
+ ],
17318
+ "releaseTag": "Public",
17319
+ "name": "ITelemetryUnloadState",
17320
+ "members": [
17321
+ {
17322
+ "kind": "PropertySignature",
17323
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState#flushComplete:member",
17324
+ "docComment": "",
17325
+ "excerptTokens": [
17326
+ {
17327
+ "kind": "Content",
17328
+ "text": "flushComplete?: "
17329
+ },
17330
+ {
17331
+ "kind": "Content",
17332
+ "text": "boolean"
17333
+ },
17334
+ {
17335
+ "kind": "Content",
17336
+ "text": ";"
17337
+ }
17338
+ ],
17339
+ "isOptional": true,
17340
+ "releaseTag": "Public",
17341
+ "name": "flushComplete",
17342
+ "propertyTypeTokenRange": {
17343
+ "startIndex": 1,
17344
+ "endIndex": 2
17345
+ }
17346
+ },
17347
+ {
17348
+ "kind": "PropertySignature",
17349
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState#isAsync:member",
17350
+ "docComment": "",
17351
+ "excerptTokens": [
17352
+ {
17353
+ "kind": "Content",
17354
+ "text": "isAsync: "
17355
+ },
17356
+ {
17357
+ "kind": "Content",
17358
+ "text": "boolean"
17359
+ },
17360
+ {
17361
+ "kind": "Content",
17362
+ "text": ";"
17363
+ }
17364
+ ],
17365
+ "isOptional": false,
17366
+ "releaseTag": "Public",
17367
+ "name": "isAsync",
17368
+ "propertyTypeTokenRange": {
17369
+ "startIndex": 1,
17370
+ "endIndex": 2
17371
+ }
17372
+ },
17373
+ {
17374
+ "kind": "PropertySignature",
17375
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState#reason:member",
17376
+ "docComment": "",
17377
+ "excerptTokens": [
17378
+ {
17379
+ "kind": "Content",
17380
+ "text": "reason: "
17381
+ },
17382
+ {
17383
+ "kind": "Reference",
17384
+ "text": "TelemetryUnloadReason",
17385
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUnloadReason:enum"
17386
+ },
17387
+ {
17388
+ "kind": "Content",
17389
+ "text": ";"
17390
+ }
17391
+ ],
17392
+ "isOptional": false,
17393
+ "releaseTag": "Public",
17394
+ "name": "reason",
17395
+ "propertyTypeTokenRange": {
17396
+ "startIndex": 1,
17397
+ "endIndex": 2
17398
+ }
17399
+ }
17400
+ ],
17401
+ "extendsTokenRanges": []
17402
+ },
17403
+ {
17404
+ "kind": "Interface",
17405
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUpdateState:interface",
17406
+ "docComment": "",
17407
+ "excerptTokens": [
17408
+ {
17409
+ "kind": "Content",
17410
+ "text": "export interface ITelemetryUpdateState "
15597
17411
  }
15598
17412
  ],
15599
17413
  "releaseTag": "Public",
15600
- "name": "ITelemetryPluginChain",
17414
+ "name": "ITelemetryUpdateState",
15601
17415
  "members": [
15602
17416
  {
15603
17417
  "kind": "PropertySignature",
15604
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain#getNext:member",
15605
- "docComment": "/**\n * Returns the next plugin\n */\n",
17418
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUpdateState#added:member",
17419
+ "docComment": "/**\n * This holds a collection of plugins that have been added (if the reason identifies that one or more plugins have been added)\n */\n",
15606
17420
  "excerptTokens": [
15607
17421
  {
15608
17422
  "kind": "Content",
15609
- "text": "getNext: "
17423
+ "text": "added?: "
15610
17424
  },
15611
17425
  {
15612
- "kind": "Content",
15613
- "text": "() => "
17426
+ "kind": "Reference",
17427
+ "text": "IPlugin",
17428
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
15614
17429
  },
15615
17430
  {
15616
- "kind": "Reference",
15617
- "text": "ITelemetryPluginChain",
15618
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain:interface"
17431
+ "kind": "Content",
17432
+ "text": "[]"
15619
17433
  },
15620
17434
  {
15621
17435
  "kind": "Content",
15622
17436
  "text": ";"
15623
17437
  }
15624
17438
  ],
15625
- "isOptional": false,
17439
+ "isOptional": true,
15626
17440
  "releaseTag": "Public",
15627
- "name": "getNext",
17441
+ "name": "added",
15628
17442
  "propertyTypeTokenRange": {
15629
17443
  "startIndex": 1,
15630
17444
  "endIndex": 3
@@ -15632,21 +17446,17 @@
15632
17446
  },
15633
17447
  {
15634
17448
  "kind": "PropertySignature",
15635
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain#getPlugin:member",
15636
- "docComment": "/**\n * Returns the underlying plugin that is being proxied for the processTelemetry call\n */\n",
17449
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUpdateState#reason:member",
17450
+ "docComment": "/**\n * Identifies the reason for the update notification, this is a bitwise numeric value\n */\n",
15637
17451
  "excerptTokens": [
15638
17452
  {
15639
17453
  "kind": "Content",
15640
- "text": "getPlugin: "
15641
- },
15642
- {
15643
- "kind": "Content",
15644
- "text": "() => "
17454
+ "text": "reason: "
15645
17455
  },
15646
17456
  {
15647
17457
  "kind": "Reference",
15648
- "text": "ITelemetryPlugin",
15649
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPlugin:interface"
17458
+ "text": "TelemetryUpdateReason",
17459
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUpdateReason:enum"
15650
17460
  },
15651
17461
  {
15652
17462
  "kind": "Content",
@@ -15655,42 +17465,29 @@
15655
17465
  ],
15656
17466
  "isOptional": false,
15657
17467
  "releaseTag": "Public",
15658
- "name": "getPlugin",
17468
+ "name": "reason",
15659
17469
  "propertyTypeTokenRange": {
15660
17470
  "startIndex": 1,
15661
- "endIndex": 3
17471
+ "endIndex": 2
15662
17472
  }
15663
17473
  },
15664
17474
  {
15665
17475
  "kind": "PropertySignature",
15666
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryPluginChain#unload:member",
15667
- "docComment": "/**\n * This plugin is being unloaded and should remove any hooked events and cleanup any global/scoped values, after this call the plugin will be removed from the telemetry processing chain and will no longer receive any events..\n *\n * @param unloadCtx - The unload context to use for this call.\n *\n * @param unloadState - The details of the unload operation\n */\n",
17476
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUpdateState#removed:member",
17477
+ "docComment": "/**\n * This holds a collection of plugins that have been removed (if the reason identifies that one or more plugins have been removed)\n */\n",
15668
17478
  "excerptTokens": [
15669
17479
  {
15670
17480
  "kind": "Content",
15671
- "text": "unload?: "
15672
- },
15673
- {
15674
- "kind": "Content",
15675
- "text": "(unloadCtx: "
15676
- },
15677
- {
15678
- "kind": "Reference",
15679
- "text": "IProcessTelemetryUnloadContext",
15680
- "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext:interface"
15681
- },
15682
- {
15683
- "kind": "Content",
15684
- "text": ", unloadState: "
17481
+ "text": "removed?: "
15685
17482
  },
15686
17483
  {
15687
17484
  "kind": "Reference",
15688
- "text": "ITelemetryUnloadState",
15689
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface"
17485
+ "text": "IPlugin",
17486
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IPlugin:interface"
15690
17487
  },
15691
17488
  {
15692
17489
  "kind": "Content",
15693
- "text": ") => void"
17490
+ "text": "[]"
15694
17491
  },
15695
17492
  {
15696
17493
  "kind": "Content",
@@ -15699,98 +17496,93 @@
15699
17496
  ],
15700
17497
  "isOptional": true,
15701
17498
  "releaseTag": "Public",
15702
- "name": "unload",
17499
+ "name": "removed",
15703
17500
  "propertyTypeTokenRange": {
15704
17501
  "startIndex": 1,
15705
- "endIndex": 6
17502
+ "endIndex": 3
15706
17503
  }
15707
17504
  }
15708
17505
  ],
15709
- "extendsTokenRanges": [
15710
- {
15711
- "startIndex": 1,
15712
- "endIndex": 3
15713
- }
15714
- ]
17506
+ "extendsTokenRanges": []
15715
17507
  },
15716
17508
  {
15717
17509
  "kind": "Interface",
15718
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface",
17510
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IUnloadHandlerContainer:interface",
15719
17511
  "docComment": "",
15720
17512
  "excerptTokens": [
15721
17513
  {
15722
17514
  "kind": "Content",
15723
- "text": "export interface ITelemetryUnloadState "
17515
+ "text": "export interface IUnloadHandlerContainer "
15724
17516
  }
15725
17517
  ],
15726
17518
  "releaseTag": "Public",
15727
- "name": "ITelemetryUnloadState",
17519
+ "name": "IUnloadHandlerContainer",
15728
17520
  "members": [
15729
17521
  {
15730
17522
  "kind": "PropertySignature",
15731
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState#flushComplete:member",
17523
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IUnloadHandlerContainer#add:member",
15732
17524
  "docComment": "",
15733
17525
  "excerptTokens": [
15734
17526
  {
15735
17527
  "kind": "Content",
15736
- "text": "flushComplete?: "
17528
+ "text": "add: "
15737
17529
  },
15738
17530
  {
15739
17531
  "kind": "Content",
15740
- "text": "boolean"
17532
+ "text": "(handler: "
17533
+ },
17534
+ {
17535
+ "kind": "Reference",
17536
+ "text": "UnloadHandler",
17537
+ "canonicalReference": "@microsoft/applicationinsights-core-js!UnloadHandler:type"
17538
+ },
17539
+ {
17540
+ "kind": "Content",
17541
+ "text": ") => void"
15741
17542
  },
15742
17543
  {
15743
17544
  "kind": "Content",
15744
17545
  "text": ";"
15745
17546
  }
15746
17547
  ],
15747
- "isOptional": true,
17548
+ "isOptional": false,
15748
17549
  "releaseTag": "Public",
15749
- "name": "flushComplete",
17550
+ "name": "add",
15750
17551
  "propertyTypeTokenRange": {
15751
17552
  "startIndex": 1,
15752
- "endIndex": 2
17553
+ "endIndex": 4
15753
17554
  }
15754
17555
  },
15755
17556
  {
15756
17557
  "kind": "PropertySignature",
15757
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState#isAsync:member",
17558
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IUnloadHandlerContainer#run:member",
15758
17559
  "docComment": "",
15759
17560
  "excerptTokens": [
15760
17561
  {
15761
17562
  "kind": "Content",
15762
- "text": "isAsync: "
17563
+ "text": "run: "
15763
17564
  },
15764
17565
  {
15765
17566
  "kind": "Content",
15766
- "text": "boolean"
17567
+ "text": "(itemCtx: "
15767
17568
  },
15768
17569
  {
15769
- "kind": "Content",
15770
- "text": ";"
15771
- }
15772
- ],
15773
- "isOptional": false,
15774
- "releaseTag": "Public",
15775
- "name": "isAsync",
15776
- "propertyTypeTokenRange": {
15777
- "startIndex": 1,
15778
- "endIndex": 2
15779
- }
15780
- },
15781
- {
15782
- "kind": "PropertySignature",
15783
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState#reason:member",
15784
- "docComment": "",
15785
- "excerptTokens": [
17570
+ "kind": "Reference",
17571
+ "text": "IProcessTelemetryUnloadContext",
17572
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext:interface"
17573
+ },
15786
17574
  {
15787
17575
  "kind": "Content",
15788
- "text": "reason: "
17576
+ "text": ", unloadState: "
15789
17577
  },
15790
17578
  {
15791
17579
  "kind": "Reference",
15792
- "text": "TelemetryUnloadReason",
15793
- "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUnloadReason:enum"
17580
+ "text": "ITelemetryUnloadState",
17581
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface"
17582
+ },
17583
+ {
17584
+ "kind": "Content",
17585
+ "text": ") => void"
15794
17586
  },
15795
17587
  {
15796
17588
  "kind": "Content",
@@ -15799,10 +17591,10 @@
15799
17591
  ],
15800
17592
  "isOptional": false,
15801
17593
  "releaseTag": "Public",
15802
- "name": "reason",
17594
+ "name": "run",
15803
17595
  "propertyTypeTokenRange": {
15804
17596
  "startIndex": 1,
15805
- "endIndex": 2
17597
+ "endIndex": 6
15806
17598
  }
15807
17599
  }
15808
17600
  ],
@@ -16615,23 +18407,198 @@
16615
18407
  }
16616
18408
  },
16617
18409
  {
16618
- "parameterName": "getProp",
18410
+ "parameterName": "getProp",
18411
+ "parameterTypeTokenRange": {
18412
+ "startIndex": 5,
18413
+ "endIndex": 6
18414
+ }
18415
+ },
18416
+ {
18417
+ "parameterName": "setProp",
18418
+ "parameterTypeTokenRange": {
18419
+ "startIndex": 7,
18420
+ "endIndex": 8
18421
+ }
18422
+ }
18423
+ ],
18424
+ "typeParameters": [
18425
+ {
18426
+ "typeParameterName": "T",
18427
+ "constraintTokenRange": {
18428
+ "startIndex": 0,
18429
+ "endIndex": 0
18430
+ },
18431
+ "defaultTypeTokenRange": {
18432
+ "startIndex": 0,
18433
+ "endIndex": 0
18434
+ }
18435
+ }
18436
+ ],
18437
+ "name": "objDefineAccessors"
18438
+ },
18439
+ {
18440
+ "kind": "Function",
18441
+ "canonicalReference": "@microsoft/applicationinsights-core-js!objExtend:function(1)",
18442
+ "docComment": "/**\n * Pass in the objects to merge as arguments, this will only \"merge\" (extend) properties that are owned by the object. It will NOT merge inherited or non-enumerable properties.\n *\n * @param obj1 - object to merge. Set this argument to 'true' for a deep extend.\n *\n * @param obj2 - object to merge.\n *\n * @param obj3 - object to merge.\n *\n * @param obj4 - object to merge.\n *\n * @param obj5 - object to merge.\n *\n * @returns The extended first object.\n */\n",
18443
+ "excerptTokens": [
18444
+ {
18445
+ "kind": "Content",
18446
+ "text": "export declare function objExtend<T2, T3, T4, T5, T6>(deepExtend?: "
18447
+ },
18448
+ {
18449
+ "kind": "Content",
18450
+ "text": "boolean"
18451
+ },
18452
+ {
18453
+ "kind": "Content",
18454
+ "text": ", obj2?: "
18455
+ },
18456
+ {
18457
+ "kind": "Content",
18458
+ "text": "T2"
18459
+ },
18460
+ {
18461
+ "kind": "Content",
18462
+ "text": ", obj3?: "
18463
+ },
18464
+ {
18465
+ "kind": "Content",
18466
+ "text": "T3"
18467
+ },
18468
+ {
18469
+ "kind": "Content",
18470
+ "text": ", obj4?: "
18471
+ },
18472
+ {
18473
+ "kind": "Content",
18474
+ "text": "T4"
18475
+ },
18476
+ {
18477
+ "kind": "Content",
18478
+ "text": ", obj5?: "
18479
+ },
18480
+ {
18481
+ "kind": "Content",
18482
+ "text": "T5"
18483
+ },
18484
+ {
18485
+ "kind": "Content",
18486
+ "text": ", obj6?: "
18487
+ },
18488
+ {
18489
+ "kind": "Content",
18490
+ "text": "T6"
18491
+ },
18492
+ {
18493
+ "kind": "Content",
18494
+ "text": "): "
18495
+ },
18496
+ {
18497
+ "kind": "Content",
18498
+ "text": "T2 & T3 & T4 & T5 & T6"
18499
+ },
18500
+ {
18501
+ "kind": "Content",
18502
+ "text": ";"
18503
+ }
18504
+ ],
18505
+ "returnTypeTokenRange": {
18506
+ "startIndex": 13,
18507
+ "endIndex": 14
18508
+ },
18509
+ "releaseTag": "Public",
18510
+ "overloadIndex": 1,
18511
+ "parameters": [
18512
+ {
18513
+ "parameterName": "deepExtend",
18514
+ "parameterTypeTokenRange": {
18515
+ "startIndex": 1,
18516
+ "endIndex": 2
18517
+ }
18518
+ },
18519
+ {
18520
+ "parameterName": "obj2",
18521
+ "parameterTypeTokenRange": {
18522
+ "startIndex": 3,
18523
+ "endIndex": 4
18524
+ }
18525
+ },
18526
+ {
18527
+ "parameterName": "obj3",
18528
+ "parameterTypeTokenRange": {
18529
+ "startIndex": 5,
18530
+ "endIndex": 6
18531
+ }
18532
+ },
18533
+ {
18534
+ "parameterName": "obj4",
18535
+ "parameterTypeTokenRange": {
18536
+ "startIndex": 7,
18537
+ "endIndex": 8
18538
+ }
18539
+ },
18540
+ {
18541
+ "parameterName": "obj5",
16619
18542
  "parameterTypeTokenRange": {
16620
- "startIndex": 5,
16621
- "endIndex": 6
18543
+ "startIndex": 9,
18544
+ "endIndex": 10
16622
18545
  }
16623
18546
  },
16624
18547
  {
16625
- "parameterName": "setProp",
18548
+ "parameterName": "obj6",
16626
18549
  "parameterTypeTokenRange": {
16627
- "startIndex": 7,
16628
- "endIndex": 8
18550
+ "startIndex": 11,
18551
+ "endIndex": 12
16629
18552
  }
16630
18553
  }
16631
18554
  ],
16632
18555
  "typeParameters": [
16633
18556
  {
16634
- "typeParameterName": "T",
18557
+ "typeParameterName": "T2",
18558
+ "constraintTokenRange": {
18559
+ "startIndex": 0,
18560
+ "endIndex": 0
18561
+ },
18562
+ "defaultTypeTokenRange": {
18563
+ "startIndex": 0,
18564
+ "endIndex": 0
18565
+ }
18566
+ },
18567
+ {
18568
+ "typeParameterName": "T3",
18569
+ "constraintTokenRange": {
18570
+ "startIndex": 0,
18571
+ "endIndex": 0
18572
+ },
18573
+ "defaultTypeTokenRange": {
18574
+ "startIndex": 0,
18575
+ "endIndex": 0
18576
+ }
18577
+ },
18578
+ {
18579
+ "typeParameterName": "T4",
18580
+ "constraintTokenRange": {
18581
+ "startIndex": 0,
18582
+ "endIndex": 0
18583
+ },
18584
+ "defaultTypeTokenRange": {
18585
+ "startIndex": 0,
18586
+ "endIndex": 0
18587
+ }
18588
+ },
18589
+ {
18590
+ "typeParameterName": "T5",
18591
+ "constraintTokenRange": {
18592
+ "startIndex": 0,
18593
+ "endIndex": 0
18594
+ },
18595
+ "defaultTypeTokenRange": {
18596
+ "startIndex": 0,
18597
+ "endIndex": 0
18598
+ }
18599
+ },
18600
+ {
18601
+ "typeParameterName": "T6",
16635
18602
  "constraintTokenRange": {
16636
18603
  "startIndex": 0,
16637
18604
  "endIndex": 0
@@ -16642,20 +18609,20 @@
16642
18609
  }
16643
18610
  }
16644
18611
  ],
16645
- "name": "objDefineAccessors"
18612
+ "name": "objExtend"
16646
18613
  },
16647
18614
  {
16648
18615
  "kind": "Function",
16649
- "canonicalReference": "@microsoft/applicationinsights-core-js!objExtend:function(1)",
16650
- "docComment": "/**\n * Pass in the objects to merge as arguments, this will only \"merge\" (extend) properties that are owned by the object. It will NOT merge inherited or non-enumerable properties.\n *\n * @param obj1 - object to merge. Set this argument to 'true' for a deep extend.\n *\n * @param obj2 - object to merge.\n *\n * @param obj3 - object to merge.\n *\n * @param obj4 - object to merge.\n *\n * @param obj5 - object to merge.\n *\n * @returns The extended first object.\n */\n",
18616
+ "canonicalReference": "@microsoft/applicationinsights-core-js!objExtend:function(2)",
18617
+ "docComment": "",
16651
18618
  "excerptTokens": [
16652
18619
  {
16653
18620
  "kind": "Content",
16654
- "text": "export declare function objExtend<T1, T2, T3, T4, T5, T6>(obj?: "
18621
+ "text": "export declare function objExtend<T1, T2, T3, T4, T5, T6>(obj1?: "
16655
18622
  },
16656
18623
  {
16657
18624
  "kind": "Content",
16658
- "text": "boolean | T1"
18625
+ "text": "T1"
16659
18626
  },
16660
18627
  {
16661
18628
  "kind": "Content",
@@ -16715,10 +18682,10 @@
16715
18682
  "endIndex": 14
16716
18683
  },
16717
18684
  "releaseTag": "Public",
16718
- "overloadIndex": 1,
18685
+ "overloadIndex": 2,
16719
18686
  "parameters": [
16720
18687
  {
16721
- "parameterName": "obj",
18688
+ "parameterName": "obj1",
16722
18689
  "parameterTypeTokenRange": {
16723
18690
  "startIndex": 1,
16724
18691
  "endIndex": 2
@@ -19249,6 +21216,27 @@
19249
21216
  "endIndex": 2
19250
21217
  }
19251
21218
  },
21219
+ {
21220
+ "kind": "EnumMember",
21221
+ "canonicalReference": "@microsoft/applicationinsights-core-js!SendRequestReason.SdkUnload:member",
21222
+ "docComment": "/**\n * The SDK is unloading\n */\n",
21223
+ "excerptTokens": [
21224
+ {
21225
+ "kind": "Content",
21226
+ "text": "SdkUnload = "
21227
+ },
21228
+ {
21229
+ "kind": "Content",
21230
+ "text": "6"
21231
+ }
21232
+ ],
21233
+ "releaseTag": "Public",
21234
+ "name": "SdkUnload",
21235
+ "initializerTokenRange": {
21236
+ "startIndex": 1,
21237
+ "endIndex": 2
21238
+ }
21239
+ },
19252
21240
  {
19253
21241
  "kind": "EnumMember",
19254
21242
  "canonicalReference": "@microsoft/applicationinsights-core-js!SendRequestReason.SyncEvent:member",
@@ -20033,6 +22021,183 @@
20033
22021
  "endIndex": 4
20034
22022
  }
20035
22023
  },
22024
+ {
22025
+ "kind": "Enum",
22026
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUnloadReason:enum",
22027
+ "docComment": "/**\n * The TelemetryUnloadReason enumeration contains the possible reasons for why a plugin is being unloaded / torndown().\n */\n",
22028
+ "excerptTokens": [
22029
+ {
22030
+ "kind": "Content",
22031
+ "text": "export declare const enum TelemetryUnloadReason "
22032
+ }
22033
+ ],
22034
+ "releaseTag": "Public",
22035
+ "name": "TelemetryUnloadReason",
22036
+ "members": [
22037
+ {
22038
+ "kind": "EnumMember",
22039
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUnloadReason.ManualTeardown:member",
22040
+ "docComment": "/**\n * Teardown has been called without any context.\n */\n",
22041
+ "excerptTokens": [
22042
+ {
22043
+ "kind": "Content",
22044
+ "text": "ManualTeardown = "
22045
+ },
22046
+ {
22047
+ "kind": "Content",
22048
+ "text": "0"
22049
+ }
22050
+ ],
22051
+ "releaseTag": "Public",
22052
+ "name": "ManualTeardown",
22053
+ "initializerTokenRange": {
22054
+ "startIndex": 1,
22055
+ "endIndex": 2
22056
+ }
22057
+ },
22058
+ {
22059
+ "kind": "EnumMember",
22060
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUnloadReason.PluginReplace:member",
22061
+ "docComment": "/**\n * This instance of the plugin is being removed and replaced\n */\n",
22062
+ "excerptTokens": [
22063
+ {
22064
+ "kind": "Content",
22065
+ "text": "PluginReplace = "
22066
+ },
22067
+ {
22068
+ "kind": "Content",
22069
+ "text": "2"
22070
+ }
22071
+ ],
22072
+ "releaseTag": "Public",
22073
+ "name": "PluginReplace",
22074
+ "initializerTokenRange": {
22075
+ "startIndex": 1,
22076
+ "endIndex": 2
22077
+ }
22078
+ },
22079
+ {
22080
+ "kind": "EnumMember",
22081
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUnloadReason.PluginUnload:member",
22082
+ "docComment": "/**\n * Just this plugin is being removed\n */\n",
22083
+ "excerptTokens": [
22084
+ {
22085
+ "kind": "Content",
22086
+ "text": "PluginUnload = "
22087
+ },
22088
+ {
22089
+ "kind": "Content",
22090
+ "text": "1"
22091
+ }
22092
+ ],
22093
+ "releaseTag": "Public",
22094
+ "name": "PluginUnload",
22095
+ "initializerTokenRange": {
22096
+ "startIndex": 1,
22097
+ "endIndex": 2
22098
+ }
22099
+ },
22100
+ {
22101
+ "kind": "EnumMember",
22102
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUnloadReason.SdkUnload:member",
22103
+ "docComment": "/**\n * The entire SDK is being unloaded\n */\n",
22104
+ "excerptTokens": [
22105
+ {
22106
+ "kind": "Content",
22107
+ "text": "SdkUnload = "
22108
+ },
22109
+ {
22110
+ "kind": "Content",
22111
+ "text": "50"
22112
+ }
22113
+ ],
22114
+ "releaseTag": "Public",
22115
+ "name": "SdkUnload",
22116
+ "initializerTokenRange": {
22117
+ "startIndex": 1,
22118
+ "endIndex": 2
22119
+ }
22120
+ }
22121
+ ]
22122
+ },
22123
+ {
22124
+ "kind": "Enum",
22125
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUpdateReason:enum",
22126
+ "docComment": "/**\n * The TelemetryUpdateReason enumeration contains a set of bit-wise values that specify the reason for update request.\n */\n",
22127
+ "excerptTokens": [
22128
+ {
22129
+ "kind": "Content",
22130
+ "text": "export declare const enum TelemetryUpdateReason "
22131
+ }
22132
+ ],
22133
+ "releaseTag": "Public",
22134
+ "name": "TelemetryUpdateReason",
22135
+ "members": [
22136
+ {
22137
+ "kind": "EnumMember",
22138
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUpdateReason.PluginAdded:member",
22139
+ "docComment": "/**\n * One or more plugins have been added\n */\n",
22140
+ "excerptTokens": [
22141
+ {
22142
+ "kind": "Content",
22143
+ "text": "PluginAdded = "
22144
+ },
22145
+ {
22146
+ "kind": "Content",
22147
+ "text": "16"
22148
+ }
22149
+ ],
22150
+ "releaseTag": "Public",
22151
+ "name": "PluginAdded",
22152
+ "initializerTokenRange": {
22153
+ "startIndex": 1,
22154
+ "endIndex": 2
22155
+ }
22156
+ },
22157
+ {
22158
+ "kind": "EnumMember",
22159
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUpdateReason.PluginRemoved:member",
22160
+ "docComment": "/**\n * One or more plugins have been removed\n */\n",
22161
+ "excerptTokens": [
22162
+ {
22163
+ "kind": "Content",
22164
+ "text": "PluginRemoved = "
22165
+ },
22166
+ {
22167
+ "kind": "Content",
22168
+ "text": "32"
22169
+ }
22170
+ ],
22171
+ "releaseTag": "Public",
22172
+ "name": "PluginRemoved",
22173
+ "initializerTokenRange": {
22174
+ "startIndex": 1,
22175
+ "endIndex": 2
22176
+ }
22177
+ },
22178
+ {
22179
+ "kind": "EnumMember",
22180
+ "canonicalReference": "@microsoft/applicationinsights-core-js!TelemetryUpdateReason.Unknown:member",
22181
+ "docComment": "/**\n * Unknown.\n */\n",
22182
+ "excerptTokens": [
22183
+ {
22184
+ "kind": "Content",
22185
+ "text": "Unknown = "
22186
+ },
22187
+ {
22188
+ "kind": "Content",
22189
+ "text": "0"
22190
+ }
22191
+ ],
22192
+ "releaseTag": "Public",
22193
+ "name": "Unknown",
22194
+ "initializerTokenRange": {
22195
+ "startIndex": 1,
22196
+ "endIndex": 2
22197
+ }
22198
+ }
22199
+ ]
22200
+ },
20036
22201
  {
20037
22202
  "kind": "Function",
20038
22203
  "canonicalReference": "@microsoft/applicationinsights-core-js!throwError:function(1)",
@@ -20180,6 +22345,49 @@
20180
22345
  "endIndex": 0
20181
22346
  }
20182
22347
  },
22348
+ {
22349
+ "kind": "TypeAlias",
22350
+ "canonicalReference": "@microsoft/applicationinsights-core-js!UnloadHandler:type",
22351
+ "docComment": "",
22352
+ "excerptTokens": [
22353
+ {
22354
+ "kind": "Content",
22355
+ "text": "export declare type UnloadHandler = "
22356
+ },
22357
+ {
22358
+ "kind": "Content",
22359
+ "text": "(itemCtx: "
22360
+ },
22361
+ {
22362
+ "kind": "Reference",
22363
+ "text": "IProcessTelemetryUnloadContext",
22364
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IProcessTelemetryUnloadContext:interface"
22365
+ },
22366
+ {
22367
+ "kind": "Content",
22368
+ "text": ", unloadState: "
22369
+ },
22370
+ {
22371
+ "kind": "Reference",
22372
+ "text": "ITelemetryUnloadState",
22373
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryUnloadState:interface"
22374
+ },
22375
+ {
22376
+ "kind": "Content",
22377
+ "text": ") => void"
22378
+ },
22379
+ {
22380
+ "kind": "Content",
22381
+ "text": ";"
22382
+ }
22383
+ ],
22384
+ "releaseTag": "Public",
22385
+ "name": "UnloadHandler",
22386
+ "typeTokenRange": {
22387
+ "startIndex": 1,
22388
+ "endIndex": 6
22389
+ }
22390
+ },
20183
22391
  {
20184
22392
  "kind": "Function",
20185
22393
  "canonicalReference": "@microsoft/applicationinsights-core-js!useXDomainRequest:function(1)",