@microsoft/applicationinsights-web 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 (50) hide show
  1. package/browser/{ai.2.8.0-beta.2203-02.cjs.js → ai.2.8.0-beta.2203-05.cjs.js} +828 -359
  2. package/browser/ai.2.8.0-beta.2203-05.cjs.js.map +1 -0
  3. package/browser/ai.2.8.0-beta.2203-05.cjs.min.js +6 -0
  4. package/browser/ai.2.8.0-beta.2203-05.cjs.min.js.map +1 -0
  5. package/browser/{ai.2.8.0-beta.2203-02.gbl.js → ai.2.8.0-beta.2203-05.gbl.js} +828 -359
  6. package/browser/ai.2.8.0-beta.2203-05.gbl.js.map +1 -0
  7. package/browser/ai.2.8.0-beta.2203-05.gbl.min.js +6 -0
  8. package/browser/ai.2.8.0-beta.2203-05.gbl.min.js.map +1 -0
  9. package/browser/ai.2.8.0-beta.2203-05.integrity.json +66 -0
  10. package/browser/{ai.2.8.0-beta.2203-02.js → ai.2.8.0-beta.2203-05.js} +828 -359
  11. package/browser/ai.2.8.0-beta.2203-05.js.map +1 -0
  12. package/browser/ai.2.8.0-beta.2203-05.min.js +6 -0
  13. package/browser/ai.2.8.0-beta.2203-05.min.js.map +1 -0
  14. package/browser/ai.2.cjs.js +827 -358
  15. package/browser/ai.2.cjs.js.map +1 -1
  16. package/browser/ai.2.cjs.min.js +2 -2
  17. package/browser/ai.2.cjs.min.js.map +1 -1
  18. package/browser/ai.2.gbl.js +827 -358
  19. package/browser/ai.2.gbl.js.map +1 -1
  20. package/browser/ai.2.gbl.min.js +2 -2
  21. package/browser/ai.2.gbl.min.js.map +1 -1
  22. package/browser/ai.2.js +827 -358
  23. package/browser/ai.2.js.map +1 -1
  24. package/browser/ai.2.min.js +2 -2
  25. package/browser/ai.2.min.js.map +1 -1
  26. package/dist/applicationinsights-web.api.json +735 -167
  27. package/dist/applicationinsights-web.api.md +22 -19
  28. package/dist/applicationinsights-web.d.ts +168 -106
  29. package/dist/applicationinsights-web.js +828 -359
  30. package/dist/applicationinsights-web.js.map +1 -1
  31. package/dist/applicationinsights-web.min.js +2 -2
  32. package/dist/applicationinsights-web.min.js.map +1 -1
  33. package/dist/applicationinsights-web.rollup.d.ts +168 -106
  34. package/dist-esm/ApplicationInsightsContainer.js +1 -1
  35. package/dist-esm/ApplicationInsightsDeprecated.js +1 -1
  36. package/dist-esm/Init.js +1 -1
  37. package/dist-esm/Initialization.js +1 -1
  38. package/dist-esm/applicationinsights-web.js +1 -1
  39. package/package.json +7 -7
  40. package/types/Initialization.d.ts +1 -1
  41. package/browser/ai.2.8.0-beta.2203-02.cjs.js.map +0 -1
  42. package/browser/ai.2.8.0-beta.2203-02.cjs.min.js +0 -6
  43. package/browser/ai.2.8.0-beta.2203-02.cjs.min.js.map +0 -1
  44. package/browser/ai.2.8.0-beta.2203-02.gbl.js.map +0 -1
  45. package/browser/ai.2.8.0-beta.2203-02.gbl.min.js +0 -6
  46. package/browser/ai.2.8.0-beta.2203-02.gbl.min.js.map +0 -1
  47. package/browser/ai.2.8.0-beta.2203-02.integrity.json +0 -66
  48. package/browser/ai.2.8.0-beta.2203-02.js.map +0 -1
  49. package/browser/ai.2.8.0-beta.2203-02.min.js +0 -6
  50. package/browser/ai.2.8.0-beta.2203-02.min.js.map +0 -1
@@ -432,7 +432,7 @@
432
432
  "excerptTokens": [
433
433
  {
434
434
  "kind": "Content",
435
- "text": "export declare class ApplicationInsights extends "
435
+ "text": "export declare class AnalyticsPlugin extends "
436
436
  },
437
437
  {
438
438
  "kind": "Reference",
@@ -515,135 +515,10 @@
515
515
  ],
516
516
  "name": "_onerror"
517
517
  },
518
- {
519
- "kind": "Property",
520
- "canonicalReference": "@microsoft/applicationinsights-web!ApplicationAnalytics#_pageViewManager:member",
521
- "docComment": "",
522
- "excerptTokens": [
523
- {
524
- "kind": "Content",
525
- "text": "protected _pageViewManager: "
526
- },
527
- {
528
- "kind": "Reference",
529
- "text": "PageViewManager",
530
- "canonicalReference": "@microsoft/applicationinsights-web!PageViewManager:class"
531
- },
532
- {
533
- "kind": "Content",
534
- "text": ";"
535
- }
536
- ],
537
- "isOptional": false,
538
- "releaseTag": "Public",
539
- "name": "_pageViewManager",
540
- "propertyTypeTokenRange": {
541
- "startIndex": 1,
542
- "endIndex": 2
543
- },
544
- "isStatic": false
545
- },
546
- {
547
- "kind": "Property",
548
- "canonicalReference": "@microsoft/applicationinsights-web!ApplicationAnalytics#_pageViewPerformanceManager:member",
549
- "docComment": "",
550
- "excerptTokens": [
551
- {
552
- "kind": "Content",
553
- "text": "protected _pageViewPerformanceManager: "
554
- },
555
- {
556
- "kind": "Reference",
557
- "text": "PageViewPerformanceManager",
558
- "canonicalReference": "@microsoft/applicationinsights-web!PageViewPerformanceManager:class"
559
- },
560
- {
561
- "kind": "Content",
562
- "text": ";"
563
- }
564
- ],
565
- "isOptional": false,
566
- "releaseTag": "Public",
567
- "name": "_pageViewPerformanceManager",
568
- "propertyTypeTokenRange": {
569
- "startIndex": 1,
570
- "endIndex": 2
571
- },
572
- "isStatic": false
573
- },
574
- {
575
- "kind": "Property",
576
- "canonicalReference": "@microsoft/applicationinsights-web!ApplicationAnalytics#_pageVisitTimeManager:member",
577
- "docComment": "",
578
- "excerptTokens": [
579
- {
580
- "kind": "Content",
581
- "text": "protected _pageVisitTimeManager: "
582
- },
583
- {
584
- "kind": "Reference",
585
- "text": "PageVisitTimeManager",
586
- "canonicalReference": "@microsoft/applicationinsights-web!PageVisitTimeManager:class"
587
- },
588
- {
589
- "kind": "Content",
590
- "text": ";"
591
- }
592
- ],
593
- "isOptional": false,
594
- "releaseTag": "Public",
595
- "name": "_pageVisitTimeManager",
596
- "propertyTypeTokenRange": {
597
- "startIndex": 1,
598
- "endIndex": 2
599
- },
600
- "isStatic": false
601
- },
602
- {
603
- "kind": "Property",
604
- "canonicalReference": "@microsoft/applicationinsights-web!ApplicationAnalytics#_telemetryInitializers:member",
605
- "docComment": "",
606
- "excerptTokens": [
607
- {
608
- "kind": "Content",
609
- "text": "protected _telemetryInitializers: "
610
- },
611
- {
612
- "kind": "Reference",
613
- "text": "Array",
614
- "canonicalReference": "!Array:interface"
615
- },
616
- {
617
- "kind": "Content",
618
- "text": "<(envelope: "
619
- },
620
- {
621
- "kind": "Reference",
622
- "text": "ITelemetryItem",
623
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryItem:interface"
624
- },
625
- {
626
- "kind": "Content",
627
- "text": ") => boolean | void>"
628
- },
629
- {
630
- "kind": "Content",
631
- "text": ";"
632
- }
633
- ],
634
- "isOptional": false,
635
- "releaseTag": "Public",
636
- "name": "_telemetryInitializers",
637
- "propertyTypeTokenRange": {
638
- "startIndex": 1,
639
- "endIndex": 5
640
- },
641
- "isStatic": false
642
- },
643
518
  {
644
519
  "kind": "Constructor",
645
520
  "canonicalReference": "@microsoft/applicationinsights-web!ApplicationAnalytics:constructor(1)",
646
- "docComment": "/**\n * Constructs a new instance of the `ApplicationInsights` class\n */\n",
521
+ "docComment": "/**\n * Constructs a new instance of the `AnalyticsPlugin` class\n */\n",
647
522
  "excerptTokens": [
648
523
  {
649
524
  "kind": "Content",
@@ -680,9 +555,14 @@
680
555
  "kind": "Content",
681
556
  "text": "): "
682
557
  },
558
+ {
559
+ "kind": "Reference",
560
+ "text": "ITelemetryInitializerHandler",
561
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryInitializerHandler:interface"
562
+ },
683
563
  {
684
564
  "kind": "Content",
685
- "text": "void"
565
+ "text": " | void"
686
566
  },
687
567
  {
688
568
  "kind": "Content",
@@ -693,7 +573,7 @@
693
573
  "isStatic": false,
694
574
  "returnTypeTokenRange": {
695
575
  "startIndex": 5,
696
- "endIndex": 6
576
+ "endIndex": 7
697
577
  },
698
578
  "releaseTag": "Public",
699
579
  "overloadIndex": 1,
@@ -794,27 +674,22 @@
794
674
  "name": "getCookieMgr"
795
675
  },
796
676
  {
797
- "kind": "Method",
798
- "canonicalReference": "@microsoft/applicationinsights-web!ApplicationAnalytics.getDefaultConfig:member(1)",
677
+ "kind": "Property",
678
+ "canonicalReference": "@microsoft/applicationinsights-web!ApplicationAnalytics.getDefaultConfig:member",
799
679
  "docComment": "",
800
680
  "excerptTokens": [
801
681
  {
802
682
  "kind": "Content",
803
- "text": "static getDefaultConfig(config?: "
804
- },
805
- {
806
- "kind": "Reference",
807
- "text": "IConfig",
808
- "canonicalReference": "@microsoft/applicationinsights-web!IConfig:interface"
683
+ "text": "static getDefaultConfig: "
809
684
  },
810
685
  {
811
686
  "kind": "Content",
812
- "text": "): "
687
+ "text": "typeof "
813
688
  },
814
689
  {
815
690
  "kind": "Reference",
816
- "text": "IConfig",
817
- "canonicalReference": "@microsoft/applicationinsights-web!IConfig:interface"
691
+ "text": "_getDefaultConfig",
692
+ "canonicalReference": "@microsoft/applicationinsights-web!~_getDefaultConfig:function"
818
693
  },
819
694
  {
820
695
  "kind": "Content",
@@ -822,23 +697,13 @@
822
697
  }
823
698
  ],
824
699
  "isOptional": false,
825
- "isStatic": true,
826
- "returnTypeTokenRange": {
827
- "startIndex": 3,
828
- "endIndex": 4
829
- },
830
700
  "releaseTag": "Public",
831
- "overloadIndex": 1,
832
- "parameters": [
833
- {
834
- "parameterName": "config",
835
- "parameterTypeTokenRange": {
836
- "startIndex": 1,
837
- "endIndex": 2
838
- }
839
- }
840
- ],
841
- "name": "getDefaultConfig"
701
+ "name": "getDefaultConfig",
702
+ "propertyTypeTokenRange": {
703
+ "startIndex": 1,
704
+ "endIndex": 3
705
+ },
706
+ "isStatic": true
842
707
  },
843
708
  {
844
709
  "kind": "Property",
@@ -2166,7 +2031,12 @@
2166
2031
  },
2167
2032
  {
2168
2033
  "kind": "Content",
2169
- "text": "void"
2034
+ "text": "void | import(\"@microsoft/applicationinsights-core-js\")."
2035
+ },
2036
+ {
2037
+ "kind": "Reference",
2038
+ "text": "ITelemetryInitializerHandler",
2039
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryInitializerHandler:interface"
2170
2040
  },
2171
2041
  {
2172
2042
  "kind": "Content",
@@ -2177,7 +2047,7 @@
2177
2047
  "isStatic": false,
2178
2048
  "returnTypeTokenRange": {
2179
2049
  "startIndex": 5,
2180
- "endIndex": 6
2050
+ "endIndex": 7
2181
2051
  },
2182
2052
  "releaseTag": "Public",
2183
2053
  "overloadIndex": 1,
@@ -2204,7 +2074,7 @@
2204
2074
  {
2205
2075
  "kind": "Reference",
2206
2076
  "text": "ApplicationInsights",
2207
- "canonicalReference": "@microsoft/applicationinsights-web!ApplicationInsights:class"
2077
+ "canonicalReference": "@microsoft/applicationinsights-web!AnalyticsPlugin:class"
2208
2078
  },
2209
2079
  {
2210
2080
  "kind": "Content",
@@ -3596,6 +3466,68 @@
3596
3466
  },
3597
3467
  "isStatic": false
3598
3468
  },
3469
+ {
3470
+ "kind": "Method",
3471
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#_updateHook:member(1)",
3472
+ "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",
3473
+ "excerptTokens": [
3474
+ {
3475
+ "kind": "Content",
3476
+ "text": "protected _updateHook?(updateCtx: "
3477
+ },
3478
+ {
3479
+ "kind": "Reference",
3480
+ "text": "IProcessTelemetryUpdateContext",
3481
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUpdateContext:interface"
3482
+ },
3483
+ {
3484
+ "kind": "Content",
3485
+ "text": ", updateState: "
3486
+ },
3487
+ {
3488
+ "kind": "Reference",
3489
+ "text": "ITelemetryUpdateState",
3490
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUpdateState:interface"
3491
+ },
3492
+ {
3493
+ "kind": "Content",
3494
+ "text": "): "
3495
+ },
3496
+ {
3497
+ "kind": "Content",
3498
+ "text": "void | boolean"
3499
+ },
3500
+ {
3501
+ "kind": "Content",
3502
+ "text": ";"
3503
+ }
3504
+ ],
3505
+ "isOptional": true,
3506
+ "isStatic": false,
3507
+ "returnTypeTokenRange": {
3508
+ "startIndex": 5,
3509
+ "endIndex": 6
3510
+ },
3511
+ "releaseTag": "Public",
3512
+ "overloadIndex": 1,
3513
+ "parameters": [
3514
+ {
3515
+ "parameterName": "updateCtx",
3516
+ "parameterTypeTokenRange": {
3517
+ "startIndex": 1,
3518
+ "endIndex": 2
3519
+ }
3520
+ },
3521
+ {
3522
+ "parameterName": "updateState",
3523
+ "parameterTypeTokenRange": {
3524
+ "startIndex": 3,
3525
+ "endIndex": 4
3526
+ }
3527
+ }
3528
+ ],
3529
+ "name": "_updateHook"
3530
+ },
3599
3531
  {
3600
3532
  "kind": "Constructor",
3601
3533
  "canonicalReference": "@microsoft/applicationinsights-web!BaseCore:constructor(1)",
@@ -3656,6 +3588,131 @@
3656
3588
  ],
3657
3589
  "name": "addNotificationListener"
3658
3590
  },
3591
+ {
3592
+ "kind": "Method",
3593
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#addPlugin:member(1)",
3594
+ "docComment": "",
3595
+ "excerptTokens": [
3596
+ {
3597
+ "kind": "Content",
3598
+ "text": "addPlugin<T extends "
3599
+ },
3600
+ {
3601
+ "kind": "Reference",
3602
+ "text": "IPlugin",
3603
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
3604
+ },
3605
+ {
3606
+ "kind": "Content",
3607
+ "text": " "
3608
+ },
3609
+ {
3610
+ "kind": "Content",
3611
+ "text": "= "
3612
+ },
3613
+ {
3614
+ "kind": "Reference",
3615
+ "text": "ITelemetryPlugin",
3616
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin:interface"
3617
+ },
3618
+ {
3619
+ "kind": "Content",
3620
+ "text": ">(plugin: "
3621
+ },
3622
+ {
3623
+ "kind": "Content",
3624
+ "text": "T"
3625
+ },
3626
+ {
3627
+ "kind": "Content",
3628
+ "text": ", replaceExisting: "
3629
+ },
3630
+ {
3631
+ "kind": "Content",
3632
+ "text": "boolean"
3633
+ },
3634
+ {
3635
+ "kind": "Content",
3636
+ "text": ", doAsync: "
3637
+ },
3638
+ {
3639
+ "kind": "Content",
3640
+ "text": "boolean"
3641
+ },
3642
+ {
3643
+ "kind": "Content",
3644
+ "text": ", addCb?: "
3645
+ },
3646
+ {
3647
+ "kind": "Content",
3648
+ "text": "(added?: boolean) => void"
3649
+ },
3650
+ {
3651
+ "kind": "Content",
3652
+ "text": "): "
3653
+ },
3654
+ {
3655
+ "kind": "Content",
3656
+ "text": "void"
3657
+ },
3658
+ {
3659
+ "kind": "Content",
3660
+ "text": ";"
3661
+ }
3662
+ ],
3663
+ "isOptional": false,
3664
+ "isStatic": false,
3665
+ "returnTypeTokenRange": {
3666
+ "startIndex": 14,
3667
+ "endIndex": 15
3668
+ },
3669
+ "releaseTag": "Public",
3670
+ "overloadIndex": 1,
3671
+ "parameters": [
3672
+ {
3673
+ "parameterName": "plugin",
3674
+ "parameterTypeTokenRange": {
3675
+ "startIndex": 6,
3676
+ "endIndex": 7
3677
+ }
3678
+ },
3679
+ {
3680
+ "parameterName": "replaceExisting",
3681
+ "parameterTypeTokenRange": {
3682
+ "startIndex": 8,
3683
+ "endIndex": 9
3684
+ }
3685
+ },
3686
+ {
3687
+ "parameterName": "doAsync",
3688
+ "parameterTypeTokenRange": {
3689
+ "startIndex": 10,
3690
+ "endIndex": 11
3691
+ }
3692
+ },
3693
+ {
3694
+ "parameterName": "addCb",
3695
+ "parameterTypeTokenRange": {
3696
+ "startIndex": 12,
3697
+ "endIndex": 13
3698
+ }
3699
+ }
3700
+ ],
3701
+ "typeParameters": [
3702
+ {
3703
+ "typeParameterName": "T",
3704
+ "constraintTokenRange": {
3705
+ "startIndex": 1,
3706
+ "endIndex": 3
3707
+ },
3708
+ "defaultTypeTokenRange": {
3709
+ "startIndex": 4,
3710
+ "endIndex": 5
3711
+ }
3712
+ }
3713
+ ],
3714
+ "name": "addPlugin"
3715
+ },
3659
3716
  {
3660
3717
  "kind": "Method",
3661
3718
  "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#addTelemetryInitializer:member(1)",
@@ -3707,6 +3764,52 @@
3707
3764
  ],
3708
3765
  "name": "addTelemetryInitializer"
3709
3766
  },
3767
+ {
3768
+ "kind": "Method",
3769
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#addUnloadCb:member(1)",
3770
+ "docComment": "/**\n * Add an unload handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
3771
+ "excerptTokens": [
3772
+ {
3773
+ "kind": "Content",
3774
+ "text": "addUnloadCb(handler: "
3775
+ },
3776
+ {
3777
+ "kind": "Reference",
3778
+ "text": "UnloadHandler",
3779
+ "canonicalReference": "@microsoft/applicationinsights-web!UnloadHandler:type"
3780
+ },
3781
+ {
3782
+ "kind": "Content",
3783
+ "text": "): "
3784
+ },
3785
+ {
3786
+ "kind": "Content",
3787
+ "text": "void"
3788
+ },
3789
+ {
3790
+ "kind": "Content",
3791
+ "text": ";"
3792
+ }
3793
+ ],
3794
+ "isOptional": false,
3795
+ "isStatic": false,
3796
+ "returnTypeTokenRange": {
3797
+ "startIndex": 3,
3798
+ "endIndex": 4
3799
+ },
3800
+ "releaseTag": "Public",
3801
+ "overloadIndex": 1,
3802
+ "parameters": [
3803
+ {
3804
+ "parameterName": "handler",
3805
+ "parameterTypeTokenRange": {
3806
+ "startIndex": 1,
3807
+ "endIndex": 2
3808
+ }
3809
+ }
3810
+ ],
3811
+ "name": "addUnloadCb"
3812
+ },
3710
3813
  {
3711
3814
  "kind": "Property",
3712
3815
  "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#config:member",
@@ -4499,6 +4602,90 @@
4499
4602
  }
4500
4603
  ],
4501
4604
  "name": "track"
4605
+ },
4606
+ {
4607
+ "kind": "Method",
4608
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseCore#unload:member(1)",
4609
+ "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",
4610
+ "excerptTokens": [
4611
+ {
4612
+ "kind": "Content",
4613
+ "text": "unload(isAsync?: "
4614
+ },
4615
+ {
4616
+ "kind": "Content",
4617
+ "text": "boolean"
4618
+ },
4619
+ {
4620
+ "kind": "Content",
4621
+ "text": ", unloadComplete?: "
4622
+ },
4623
+ {
4624
+ "kind": "Content",
4625
+ "text": "(unloadState: "
4626
+ },
4627
+ {
4628
+ "kind": "Reference",
4629
+ "text": "ITelemetryUnloadState",
4630
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
4631
+ },
4632
+ {
4633
+ "kind": "Content",
4634
+ "text": ") => void"
4635
+ },
4636
+ {
4637
+ "kind": "Content",
4638
+ "text": ", cbTimeout?: "
4639
+ },
4640
+ {
4641
+ "kind": "Content",
4642
+ "text": "number"
4643
+ },
4644
+ {
4645
+ "kind": "Content",
4646
+ "text": "): "
4647
+ },
4648
+ {
4649
+ "kind": "Content",
4650
+ "text": "void"
4651
+ },
4652
+ {
4653
+ "kind": "Content",
4654
+ "text": ";"
4655
+ }
4656
+ ],
4657
+ "isOptional": false,
4658
+ "isStatic": false,
4659
+ "returnTypeTokenRange": {
4660
+ "startIndex": 9,
4661
+ "endIndex": 10
4662
+ },
4663
+ "releaseTag": "Public",
4664
+ "overloadIndex": 1,
4665
+ "parameters": [
4666
+ {
4667
+ "parameterName": "isAsync",
4668
+ "parameterTypeTokenRange": {
4669
+ "startIndex": 1,
4670
+ "endIndex": 2
4671
+ }
4672
+ },
4673
+ {
4674
+ "parameterName": "unloadComplete",
4675
+ "parameterTypeTokenRange": {
4676
+ "startIndex": 3,
4677
+ "endIndex": 6
4678
+ }
4679
+ },
4680
+ {
4681
+ "parameterName": "cbTimeout",
4682
+ "parameterTypeTokenRange": {
4683
+ "startIndex": 7,
4684
+ "endIndex": 8
4685
+ }
4686
+ }
4687
+ ],
4688
+ "name": "unload"
4502
4689
  }
4503
4690
  ],
4504
4691
  "implementsTokenRanges": [
@@ -4589,6 +4776,52 @@
4589
4776
  ],
4590
4777
  "name": "_addHook"
4591
4778
  },
4779
+ {
4780
+ "kind": "Method",
4781
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_addUnloadCb:member(1)",
4782
+ "docComment": "/**\n * Add an unload handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
4783
+ "excerptTokens": [
4784
+ {
4785
+ "kind": "Content",
4786
+ "text": "protected _addUnloadCb(handler: "
4787
+ },
4788
+ {
4789
+ "kind": "Reference",
4790
+ "text": "UnloadHandler",
4791
+ "canonicalReference": "@microsoft/applicationinsights-web!UnloadHandler:type"
4792
+ },
4793
+ {
4794
+ "kind": "Content",
4795
+ "text": "): "
4796
+ },
4797
+ {
4798
+ "kind": "Content",
4799
+ "text": "void"
4800
+ },
4801
+ {
4802
+ "kind": "Content",
4803
+ "text": ";"
4804
+ }
4805
+ ],
4806
+ "isOptional": false,
4807
+ "isStatic": false,
4808
+ "returnTypeTokenRange": {
4809
+ "startIndex": 3,
4810
+ "endIndex": 4
4811
+ },
4812
+ "releaseTag": "Public",
4813
+ "overloadIndex": 1,
4814
+ "parameters": [
4815
+ {
4816
+ "parameterName": "handler",
4817
+ "parameterTypeTokenRange": {
4818
+ "startIndex": 1,
4819
+ "endIndex": 2
4820
+ }
4821
+ }
4822
+ ],
4823
+ "name": "_addUnloadCb"
4824
+ },
4592
4825
  {
4593
4826
  "kind": "Property",
4594
4827
  "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_doTeardown:member",
@@ -4600,21 +4833,66 @@
4600
4833
  },
4601
4834
  {
4602
4835
  "kind": "Content",
4603
- "text": "(unloadCtx?: "
4836
+ "text": "(unloadCtx?: "
4837
+ },
4838
+ {
4839
+ "kind": "Reference",
4840
+ "text": "IProcessTelemetryUnloadContext",
4841
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
4842
+ },
4843
+ {
4844
+ "kind": "Content",
4845
+ "text": ", unloadState?: "
4846
+ },
4847
+ {
4848
+ "kind": "Reference",
4849
+ "text": "ITelemetryUnloadState",
4850
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
4851
+ },
4852
+ {
4853
+ "kind": "Content",
4854
+ "text": ", asyncCallback?: () => void) => void | boolean"
4855
+ },
4856
+ {
4857
+ "kind": "Content",
4858
+ "text": ";"
4859
+ }
4860
+ ],
4861
+ "isOptional": true,
4862
+ "releaseTag": "Public",
4863
+ "name": "_doTeardown",
4864
+ "propertyTypeTokenRange": {
4865
+ "startIndex": 1,
4866
+ "endIndex": 6
4867
+ },
4868
+ "isStatic": false
4869
+ },
4870
+ {
4871
+ "kind": "Property",
4872
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#_doUpdate:member",
4873
+ "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",
4874
+ "excerptTokens": [
4875
+ {
4876
+ "kind": "Content",
4877
+ "text": "protected _doUpdate?: "
4878
+ },
4879
+ {
4880
+ "kind": "Content",
4881
+ "text": "(updateCtx?: "
4604
4882
  },
4605
4883
  {
4606
4884
  "kind": "Reference",
4607
- "text": "IProcessTelemetryUnloadContext",
4608
- "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUnloadContext:interface"
4885
+ "text": "IProcessTelemetryUpdateContext",
4886
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUpdateContext:interface"
4609
4887
  },
4610
4888
  {
4611
4889
  "kind": "Content",
4612
- "text": ", unloadState?: "
4890
+ "text": ", updateState?: "
4613
4891
  },
4614
4892
  {
4615
4893
  "kind": "Reference",
4616
- "text": "ITelemetryUnloadState",
4617
- "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUnloadState:interface"
4894
+ "text": "ITelemetryUpdateState",
4895
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUpdateState:interface"
4618
4896
  },
4619
4897
  {
4620
4898
  "kind": "Content",
@@ -4627,7 +4905,7 @@
4627
4905
  ],
4628
4906
  "isOptional": true,
4629
4907
  "releaseTag": "Public",
4630
- "name": "_doTeardown",
4908
+ "name": "_doUpdate",
4631
4909
  "propertyTypeTokenRange": {
4632
4910
  "startIndex": 1,
4633
4911
  "endIndex": 6
@@ -5178,6 +5456,68 @@
5178
5456
  ],
5179
5457
  "name": "teardown"
5180
5458
  },
5459
+ {
5460
+ "kind": "Method",
5461
+ "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#update:member(1)",
5462
+ "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",
5463
+ "excerptTokens": [
5464
+ {
5465
+ "kind": "Content",
5466
+ "text": "update(updateCtx: "
5467
+ },
5468
+ {
5469
+ "kind": "Reference",
5470
+ "text": "IProcessTelemetryUpdateContext",
5471
+ "canonicalReference": "@microsoft/applicationinsights-web!IProcessTelemetryUpdateContext:interface"
5472
+ },
5473
+ {
5474
+ "kind": "Content",
5475
+ "text": ", updateState: "
5476
+ },
5477
+ {
5478
+ "kind": "Reference",
5479
+ "text": "ITelemetryUpdateState",
5480
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryUpdateState:interface"
5481
+ },
5482
+ {
5483
+ "kind": "Content",
5484
+ "text": "): "
5485
+ },
5486
+ {
5487
+ "kind": "Content",
5488
+ "text": "void | boolean"
5489
+ },
5490
+ {
5491
+ "kind": "Content",
5492
+ "text": ";"
5493
+ }
5494
+ ],
5495
+ "isOptional": false,
5496
+ "isStatic": false,
5497
+ "returnTypeTokenRange": {
5498
+ "startIndex": 5,
5499
+ "endIndex": 6
5500
+ },
5501
+ "releaseTag": "Public",
5502
+ "overloadIndex": 1,
5503
+ "parameters": [
5504
+ {
5505
+ "parameterName": "updateCtx",
5506
+ "parameterTypeTokenRange": {
5507
+ "startIndex": 1,
5508
+ "endIndex": 2
5509
+ }
5510
+ },
5511
+ {
5512
+ "parameterName": "updateState",
5513
+ "parameterTypeTokenRange": {
5514
+ "startIndex": 3,
5515
+ "endIndex": 4
5516
+ }
5517
+ }
5518
+ ],
5519
+ "name": "update"
5520
+ },
5181
5521
  {
5182
5522
  "kind": "Property",
5183
5523
  "canonicalReference": "@microsoft/applicationinsights-web!BaseTelemetryPlugin#version:member",
@@ -7906,6 +8246,130 @@
7906
8246
  ],
7907
8247
  "name": "addNotificationListener"
7908
8248
  },
8249
+ {
8250
+ "kind": "MethodSignature",
8251
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#addPlugin:member(1)",
8252
+ "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",
8253
+ "excerptTokens": [
8254
+ {
8255
+ "kind": "Content",
8256
+ "text": "addPlugin<T extends "
8257
+ },
8258
+ {
8259
+ "kind": "Reference",
8260
+ "text": "IPlugin",
8261
+ "canonicalReference": "@microsoft/applicationinsights-web!IPlugin:interface"
8262
+ },
8263
+ {
8264
+ "kind": "Content",
8265
+ "text": " "
8266
+ },
8267
+ {
8268
+ "kind": "Content",
8269
+ "text": "= "
8270
+ },
8271
+ {
8272
+ "kind": "Reference",
8273
+ "text": "ITelemetryPlugin",
8274
+ "canonicalReference": "@microsoft/applicationinsights-web!ITelemetryPlugin:interface"
8275
+ },
8276
+ {
8277
+ "kind": "Content",
8278
+ "text": ">(plugin: "
8279
+ },
8280
+ {
8281
+ "kind": "Content",
8282
+ "text": "T"
8283
+ },
8284
+ {
8285
+ "kind": "Content",
8286
+ "text": ", replaceExisting: "
8287
+ },
8288
+ {
8289
+ "kind": "Content",
8290
+ "text": "boolean"
8291
+ },
8292
+ {
8293
+ "kind": "Content",
8294
+ "text": ", doAsync: "
8295
+ },
8296
+ {
8297
+ "kind": "Content",
8298
+ "text": "boolean"
8299
+ },
8300
+ {
8301
+ "kind": "Content",
8302
+ "text": ", addCb?: "
8303
+ },
8304
+ {
8305
+ "kind": "Content",
8306
+ "text": "(added?: boolean) => void"
8307
+ },
8308
+ {
8309
+ "kind": "Content",
8310
+ "text": "): "
8311
+ },
8312
+ {
8313
+ "kind": "Content",
8314
+ "text": "void"
8315
+ },
8316
+ {
8317
+ "kind": "Content",
8318
+ "text": ";"
8319
+ }
8320
+ ],
8321
+ "isOptional": false,
8322
+ "returnTypeTokenRange": {
8323
+ "startIndex": 14,
8324
+ "endIndex": 15
8325
+ },
8326
+ "releaseTag": "Public",
8327
+ "overloadIndex": 1,
8328
+ "parameters": [
8329
+ {
8330
+ "parameterName": "plugin",
8331
+ "parameterTypeTokenRange": {
8332
+ "startIndex": 6,
8333
+ "endIndex": 7
8334
+ }
8335
+ },
8336
+ {
8337
+ "parameterName": "replaceExisting",
8338
+ "parameterTypeTokenRange": {
8339
+ "startIndex": 8,
8340
+ "endIndex": 9
8341
+ }
8342
+ },
8343
+ {
8344
+ "parameterName": "doAsync",
8345
+ "parameterTypeTokenRange": {
8346
+ "startIndex": 10,
8347
+ "endIndex": 11
8348
+ }
8349
+ },
8350
+ {
8351
+ "parameterName": "addCb",
8352
+ "parameterTypeTokenRange": {
8353
+ "startIndex": 12,
8354
+ "endIndex": 13
8355
+ }
8356
+ }
8357
+ ],
8358
+ "typeParameters": [
8359
+ {
8360
+ "typeParameterName": "T",
8361
+ "constraintTokenRange": {
8362
+ "startIndex": 1,
8363
+ "endIndex": 3
8364
+ },
8365
+ "defaultTypeTokenRange": {
8366
+ "startIndex": 4,
8367
+ "endIndex": 5
8368
+ }
8369
+ }
8370
+ ],
8371
+ "name": "addPlugin"
8372
+ },
7909
8373
  {
7910
8374
  "kind": "MethodSignature",
7911
8375
  "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#addTelemetryInitializer:member(1)",
@@ -7956,6 +8420,51 @@
7956
8420
  ],
7957
8421
  "name": "addTelemetryInitializer"
7958
8422
  },
8423
+ {
8424
+ "kind": "MethodSignature",
8425
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#addUnloadCb:member(1)",
8426
+ "docComment": "/**\n * Add a handler that will be called when the SDK is being unloaded\n *\n * @param handler - the handler\n */\n",
8427
+ "excerptTokens": [
8428
+ {
8429
+ "kind": "Content",
8430
+ "text": "addUnloadCb(handler: "
8431
+ },
8432
+ {
8433
+ "kind": "Reference",
8434
+ "text": "UnloadHandler",
8435
+ "canonicalReference": "@microsoft/applicationinsights-web!UnloadHandler:type"
8436
+ },
8437
+ {
8438
+ "kind": "Content",
8439
+ "text": "): "
8440
+ },
8441
+ {
8442
+ "kind": "Content",
8443
+ "text": "void"
8444
+ },
8445
+ {
8446
+ "kind": "Content",
8447
+ "text": ";"
8448
+ }
8449
+ ],
8450
+ "isOptional": false,
8451
+ "returnTypeTokenRange": {
8452
+ "startIndex": 3,
8453
+ "endIndex": 4
8454
+ },
8455
+ "releaseTag": "Public",
8456
+ "overloadIndex": 1,
8457
+ "parameters": [
8458
+ {
8459
+ "parameterName": "handler",
8460
+ "parameterTypeTokenRange": {
8461
+ "startIndex": 1,
8462
+ "endIndex": 2
8463
+ }
8464
+ }
8465
+ ],
8466
+ "name": "addUnloadCb"
8467
+ },
7959
8468
  {
7960
8469
  "kind": "PropertySignature",
7961
8470
  "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#config:member",
@@ -8571,6 +9080,65 @@
8571
9080
  }
8572
9081
  ],
8573
9082
  "name": "track"
9083
+ },
9084
+ {
9085
+ "kind": "MethodSignature",
9086
+ "canonicalReference": "@microsoft/applicationinsights-web!IAppInsightsCore#unload:member(1)",
9087
+ "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",
9088
+ "excerptTokens": [
9089
+ {
9090
+ "kind": "Content",
9091
+ "text": "unload(isAsync?: "
9092
+ },
9093
+ {
9094
+ "kind": "Content",
9095
+ "text": "boolean"
9096
+ },
9097
+ {
9098
+ "kind": "Content",
9099
+ "text": ", unloadComplete?: "
9100
+ },
9101
+ {
9102
+ "kind": "Content",
9103
+ "text": "() => void"
9104
+ },
9105
+ {
9106
+ "kind": "Content",
9107
+ "text": "): "
9108
+ },
9109
+ {
9110
+ "kind": "Content",
9111
+ "text": "void"
9112
+ },
9113
+ {
9114
+ "kind": "Content",
9115
+ "text": ";"
9116
+ }
9117
+ ],
9118
+ "isOptional": false,
9119
+ "returnTypeTokenRange": {
9120
+ "startIndex": 5,
9121
+ "endIndex": 6
9122
+ },
9123
+ "releaseTag": "Public",
9124
+ "overloadIndex": 1,
9125
+ "parameters": [
9126
+ {
9127
+ "parameterName": "isAsync",
9128
+ "parameterTypeTokenRange": {
9129
+ "startIndex": 1,
9130
+ "endIndex": 2
9131
+ }
9132
+ },
9133
+ {
9134
+ "parameterName": "unloadComplete",
9135
+ "parameterTypeTokenRange": {
9136
+ "startIndex": 3,
9137
+ "endIndex": 4
9138
+ }
9139
+ }
9140
+ ],
9141
+ "name": "unload"
8574
9142
  }
8575
9143
  ],
8576
9144
  "extendsTokenRanges": [
@@ -10091,7 +10659,7 @@
10091
10659
  {
10092
10660
  "kind": "Reference",
10093
10661
  "text": "ApplicationInsights",
10094
- "canonicalReference": "@microsoft/applicationinsights-web!ApplicationInsights:class"
10662
+ "canonicalReference": "@microsoft/applicationinsights-web!AnalyticsPlugin:class"
10095
10663
  },
10096
10664
  {
10097
10665
  "kind": "Content",