@microsoft/applicationinsights-analytics-js 2.7.5-nightly.2204-03 → 2.7.5-nightly.2204-23

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 (42) hide show
  1. package/browser/applicationinsights-analytics-js.integrity.json +9 -9
  2. package/browser/applicationinsights-analytics-js.js +668 -1624
  3. package/browser/applicationinsights-analytics-js.js.map +1 -1
  4. package/browser/applicationinsights-analytics-js.min.js +2 -2
  5. package/browser/applicationinsights-analytics-js.min.js.map +1 -1
  6. package/dist/applicationinsights-analytics-js.api.json +278 -97
  7. package/dist/applicationinsights-analytics-js.api.md +18 -8
  8. package/dist/applicationinsights-analytics-js.d.ts +104 -9
  9. package/dist/applicationinsights-analytics-js.js +668 -1624
  10. package/dist/applicationinsights-analytics-js.js.map +1 -1
  11. package/dist/applicationinsights-analytics-js.min.js +2 -2
  12. package/dist/applicationinsights-analytics-js.min.js.map +1 -1
  13. package/dist/applicationinsights-analytics-js.rollup.d.ts +104 -9
  14. package/dist-esm/JavaScriptSDK/ApplicationInsights.js +606 -0
  15. package/dist-esm/JavaScriptSDK/ApplicationInsights.js.map +1 -0
  16. package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js +8 -21
  17. package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js.map +1 -1
  18. package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +10 -10
  19. package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js.map +1 -1
  20. package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +5 -5
  21. package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js.map +1 -1
  22. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
  23. package/dist-esm/applicationinsights-analytics-js.js +2 -2
  24. package/dist-esm/applicationinsights-analytics-js.js.map +1 -1
  25. package/package.json +7 -7
  26. package/src/JavaScriptSDK/{AnalyticsPlugin.ts → ApplicationInsights.ts} +325 -403
  27. package/src/JavaScriptSDK/Telemetry/PageViewManager.ts +13 -32
  28. package/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts +6 -6
  29. package/src/JavaScriptSDK/Telemetry/PageVisitTimeManager.ts +1 -1
  30. package/src/applicationinsights-analytics-js.ts +1 -1
  31. package/types/JavaScriptSDK/{AnalyticsPlugin.d.ts → ApplicationInsights.d.ts} +16 -12
  32. package/types/JavaScriptSDK/Telemetry/PageViewManager.d.ts +1 -2
  33. package/types/JavaScriptSDK/Telemetry/PageViewPerformanceManager.d.ts +9 -9
  34. package/types/JavaScriptSDK/Telemetry/PageVisitTimeManager.d.ts +4 -4
  35. package/types/applicationinsights-analytics-js.d.ts +1 -1
  36. package/types/tsdoc-metadata.json +1 -1
  37. package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js +0 -674
  38. package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js.map +0 -1
  39. package/dist-esm/JavaScriptSDK/Timing.js +0 -39
  40. package/dist-esm/JavaScriptSDK/Timing.js.map +0 -1
  41. package/src/JavaScriptSDK/Timing.ts +0 -46
  42. package/types/JavaScriptSDK/Timing.d.ts +0 -18
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.19.5",
5
- "schemaVersion": 1004,
4
+ "toolVersion": "7.23.0",
5
+ "schemaVersion": 1005,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
8
8
  "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
@@ -156,7 +156,8 @@
156
156
  "@betaDocumentation": true,
157
157
  "@internalRemarks": true,
158
158
  "@preapproved": true
159
- }
159
+ },
160
+ "reportUnsupportedHtmlElements": false
160
161
  }
161
162
  },
162
163
  "kind": "Package",
@@ -171,12 +172,12 @@
171
172
  "members": [
172
173
  {
173
174
  "kind": "Class",
174
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin:class",
175
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights:class",
175
176
  "docComment": "",
176
177
  "excerptTokens": [
177
178
  {
178
179
  "kind": "Content",
179
- "text": "export declare class AnalyticsPlugin extends "
180
+ "text": "export declare class ApplicationInsights extends "
180
181
  },
181
182
  {
182
183
  "kind": "Reference",
@@ -211,11 +212,11 @@
211
212
  }
212
213
  ],
213
214
  "releaseTag": "Public",
214
- "name": "AnalyticsPlugin",
215
+ "name": "ApplicationInsights",
215
216
  "members": [
216
217
  {
217
218
  "kind": "Method",
218
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#_onerror:member(1)",
219
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_onerror:member(1)",
219
220
  "docComment": "/**\n * @description Custom error handler for Application Insights Analytics\n *\n * @param exception - @memberof ApplicationInsights\n */\n",
220
221
  "excerptTokens": [
221
222
  {
@@ -254,15 +255,141 @@
254
255
  "parameterTypeTokenRange": {
255
256
  "startIndex": 1,
256
257
  "endIndex": 2
257
- }
258
+ },
259
+ "isOptional": false
258
260
  }
259
261
  ],
260
262
  "name": "_onerror"
261
263
  },
264
+ {
265
+ "kind": "Property",
266
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_pageViewManager:member",
267
+ "docComment": "",
268
+ "excerptTokens": [
269
+ {
270
+ "kind": "Content",
271
+ "text": "protected _pageViewManager: "
272
+ },
273
+ {
274
+ "kind": "Reference",
275
+ "text": "PageViewManager",
276
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!PageViewManager:class"
277
+ },
278
+ {
279
+ "kind": "Content",
280
+ "text": ";"
281
+ }
282
+ ],
283
+ "isOptional": false,
284
+ "releaseTag": "Public",
285
+ "name": "_pageViewManager",
286
+ "propertyTypeTokenRange": {
287
+ "startIndex": 1,
288
+ "endIndex": 2
289
+ },
290
+ "isStatic": false
291
+ },
292
+ {
293
+ "kind": "Property",
294
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_pageViewPerformanceManager:member",
295
+ "docComment": "",
296
+ "excerptTokens": [
297
+ {
298
+ "kind": "Content",
299
+ "text": "protected _pageViewPerformanceManager: "
300
+ },
301
+ {
302
+ "kind": "Reference",
303
+ "text": "PageViewPerformanceManager",
304
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!PageViewPerformanceManager:class"
305
+ },
306
+ {
307
+ "kind": "Content",
308
+ "text": ";"
309
+ }
310
+ ],
311
+ "isOptional": false,
312
+ "releaseTag": "Public",
313
+ "name": "_pageViewPerformanceManager",
314
+ "propertyTypeTokenRange": {
315
+ "startIndex": 1,
316
+ "endIndex": 2
317
+ },
318
+ "isStatic": false
319
+ },
320
+ {
321
+ "kind": "Property",
322
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_pageVisitTimeManager:member",
323
+ "docComment": "",
324
+ "excerptTokens": [
325
+ {
326
+ "kind": "Content",
327
+ "text": "protected _pageVisitTimeManager: "
328
+ },
329
+ {
330
+ "kind": "Reference",
331
+ "text": "PageVisitTimeManager",
332
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!PageVisitTimeManager:class"
333
+ },
334
+ {
335
+ "kind": "Content",
336
+ "text": ";"
337
+ }
338
+ ],
339
+ "isOptional": false,
340
+ "releaseTag": "Public",
341
+ "name": "_pageVisitTimeManager",
342
+ "propertyTypeTokenRange": {
343
+ "startIndex": 1,
344
+ "endIndex": 2
345
+ },
346
+ "isStatic": false
347
+ },
348
+ {
349
+ "kind": "Property",
350
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_telemetryInitializers:member",
351
+ "docComment": "",
352
+ "excerptTokens": [
353
+ {
354
+ "kind": "Content",
355
+ "text": "protected _telemetryInitializers: "
356
+ },
357
+ {
358
+ "kind": "Reference",
359
+ "text": "Array",
360
+ "canonicalReference": "!Array:interface"
361
+ },
362
+ {
363
+ "kind": "Content",
364
+ "text": "<(envelope: "
365
+ },
366
+ {
367
+ "kind": "Reference",
368
+ "text": "ITelemetryItem",
369
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryItem:interface"
370
+ },
371
+ {
372
+ "kind": "Content",
373
+ "text": ") => boolean | void>"
374
+ },
375
+ {
376
+ "kind": "Content",
377
+ "text": ";"
378
+ }
379
+ ],
380
+ "isOptional": false,
381
+ "releaseTag": "Public",
382
+ "name": "_telemetryInitializers",
383
+ "propertyTypeTokenRange": {
384
+ "startIndex": 1,
385
+ "endIndex": 5
386
+ },
387
+ "isStatic": false
388
+ },
262
389
  {
263
390
  "kind": "Constructor",
264
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin:constructor(1)",
265
- "docComment": "/**\n * Constructs a new instance of the `AnalyticsPlugin` class\n */\n",
391
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights:constructor(1)",
392
+ "docComment": "/**\n * Constructs a new instance of the `ApplicationInsights` class\n */\n",
266
393
  "excerptTokens": [
267
394
  {
268
395
  "kind": "Content",
@@ -275,7 +402,7 @@
275
402
  },
276
403
  {
277
404
  "kind": "Method",
278
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#addTelemetryInitializer:member(1)",
405
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#addTelemetryInitializer:member(1)",
279
406
  "docComment": "",
280
407
  "excerptTokens": [
281
408
  {
@@ -299,14 +426,9 @@
299
426
  "kind": "Content",
300
427
  "text": "): "
301
428
  },
302
- {
303
- "kind": "Reference",
304
- "text": "ITelemetryInitializerHandler",
305
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryInitializerHandler:interface"
306
- },
307
429
  {
308
430
  "kind": "Content",
309
- "text": " | void"
431
+ "text": "void"
310
432
  },
311
433
  {
312
434
  "kind": "Content",
@@ -317,7 +439,7 @@
317
439
  "isStatic": false,
318
440
  "returnTypeTokenRange": {
319
441
  "startIndex": 5,
320
- "endIndex": 7
442
+ "endIndex": 6
321
443
  },
322
444
  "releaseTag": "Public",
323
445
  "overloadIndex": 1,
@@ -327,14 +449,15 @@
327
449
  "parameterTypeTokenRange": {
328
450
  "startIndex": 1,
329
451
  "endIndex": 4
330
- }
452
+ },
453
+ "isOptional": false
331
454
  }
332
455
  ],
333
456
  "name": "addTelemetryInitializer"
334
457
  },
335
458
  {
336
459
  "kind": "Property",
337
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#autoRoutePVDelay:member",
460
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#autoRoutePVDelay:member",
338
461
  "docComment": "",
339
462
  "excerptTokens": [
340
463
  {
@@ -361,7 +484,7 @@
361
484
  },
362
485
  {
363
486
  "kind": "Property",
364
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#config:member",
487
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#config:member",
365
488
  "docComment": "",
366
489
  "excerptTokens": [
367
490
  {
@@ -389,7 +512,7 @@
389
512
  },
390
513
  {
391
514
  "kind": "Method",
392
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#getCookieMgr:member(1)",
515
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#getCookieMgr:member(1)",
393
516
  "docComment": "/**\n * Get the current cookie manager for this instance\n */\n",
394
517
  "excerptTokens": [
395
518
  {
@@ -418,22 +541,27 @@
418
541
  "name": "getCookieMgr"
419
542
  },
420
543
  {
421
- "kind": "Property",
422
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin.getDefaultConfig:member",
544
+ "kind": "Method",
545
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights.getDefaultConfig:member(1)",
423
546
  "docComment": "",
424
547
  "excerptTokens": [
425
548
  {
426
549
  "kind": "Content",
427
- "text": "static getDefaultConfig: "
550
+ "text": "static getDefaultConfig(config?: "
551
+ },
552
+ {
553
+ "kind": "Reference",
554
+ "text": "IConfig",
555
+ "canonicalReference": "@microsoft/applicationinsights-common!IConfig:interface"
428
556
  },
429
557
  {
430
558
  "kind": "Content",
431
- "text": "typeof "
559
+ "text": "): "
432
560
  },
433
561
  {
434
562
  "kind": "Reference",
435
- "text": "_getDefaultConfig",
436
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!~_getDefaultConfig:function"
563
+ "text": "IConfig",
564
+ "canonicalReference": "@microsoft/applicationinsights-common!IConfig:interface"
437
565
  },
438
566
  {
439
567
  "kind": "Content",
@@ -441,17 +569,28 @@
441
569
  }
442
570
  ],
443
571
  "isOptional": false,
444
- "releaseTag": "Public",
445
- "name": "getDefaultConfig",
446
- "propertyTypeTokenRange": {
447
- "startIndex": 1,
448
- "endIndex": 3
572
+ "isStatic": true,
573
+ "returnTypeTokenRange": {
574
+ "startIndex": 3,
575
+ "endIndex": 4
449
576
  },
450
- "isStatic": true
577
+ "releaseTag": "Public",
578
+ "overloadIndex": 1,
579
+ "parameters": [
580
+ {
581
+ "parameterName": "config",
582
+ "parameterTypeTokenRange": {
583
+ "startIndex": 1,
584
+ "endIndex": 2
585
+ },
586
+ "isOptional": true
587
+ }
588
+ ],
589
+ "name": "getDefaultConfig"
451
590
  },
452
591
  {
453
592
  "kind": "Property",
454
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#identifier:member",
593
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#identifier:member",
455
594
  "docComment": "",
456
595
  "excerptTokens": [
457
596
  {
@@ -478,7 +617,7 @@
478
617
  },
479
618
  {
480
619
  "kind": "Method",
481
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#initialize:member(1)",
620
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#initialize:member(1)",
482
621
  "docComment": "",
483
622
  "excerptTokens": [
484
623
  {
@@ -557,35 +696,39 @@
557
696
  "parameterTypeTokenRange": {
558
697
  "startIndex": 1,
559
698
  "endIndex": 4
560
- }
699
+ },
700
+ "isOptional": false
561
701
  },
562
702
  {
563
703
  "parameterName": "core",
564
704
  "parameterTypeTokenRange": {
565
705
  "startIndex": 5,
566
706
  "endIndex": 6
567
- }
707
+ },
708
+ "isOptional": false
568
709
  },
569
710
  {
570
711
  "parameterName": "extensions",
571
712
  "parameterTypeTokenRange": {
572
713
  "startIndex": 7,
573
714
  "endIndex": 9
574
- }
715
+ },
716
+ "isOptional": false
575
717
  },
576
718
  {
577
719
  "parameterName": "pluginChain",
578
720
  "parameterTypeTokenRange": {
579
721
  "startIndex": 10,
580
722
  "endIndex": 11
581
- }
723
+ },
724
+ "isOptional": true
582
725
  }
583
726
  ],
584
727
  "name": "initialize"
585
728
  },
586
729
  {
587
730
  "kind": "Property",
588
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#priority:member",
731
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#priority:member",
589
732
  "docComment": "",
590
733
  "excerptTokens": [
591
734
  {
@@ -612,7 +755,7 @@
612
755
  },
613
756
  {
614
757
  "kind": "Method",
615
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#processTelemetry:member(1)",
758
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#processTelemetry:member(1)",
616
759
  "docComment": "",
617
760
  "excerptTokens": [
618
761
  {
@@ -660,21 +803,23 @@
660
803
  "parameterTypeTokenRange": {
661
804
  "startIndex": 1,
662
805
  "endIndex": 2
663
- }
806
+ },
807
+ "isOptional": false
664
808
  },
665
809
  {
666
810
  "parameterName": "itemCtx",
667
811
  "parameterTypeTokenRange": {
668
812
  "startIndex": 3,
669
813
  "endIndex": 4
670
- }
814
+ },
815
+ "isOptional": true
671
816
  }
672
817
  ],
673
818
  "name": "processTelemetry"
674
819
  },
675
820
  {
676
821
  "kind": "Property",
677
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#queue:member",
822
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#queue:member",
678
823
  "docComment": "",
679
824
  "excerptTokens": [
680
825
  {
@@ -706,7 +851,7 @@
706
851
  },
707
852
  {
708
853
  "kind": "Method",
709
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#sendExceptionInternal:member(1)",
854
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#sendExceptionInternal:member(1)",
710
855
  "docComment": "/**\n * @ignore INTERNAL ONLY\n *\n * @param exception - \n *\n * @param properties - \n *\n * @param systemProperties - \n */\n",
711
856
  "excerptTokens": [
712
857
  {
@@ -761,28 +906,31 @@
761
906
  "parameterTypeTokenRange": {
762
907
  "startIndex": 1,
763
908
  "endIndex": 2
764
- }
909
+ },
910
+ "isOptional": false
765
911
  },
766
912
  {
767
913
  "parameterName": "customProperties",
768
914
  "parameterTypeTokenRange": {
769
915
  "startIndex": 3,
770
916
  "endIndex": 4
771
- }
917
+ },
918
+ "isOptional": true
772
919
  },
773
920
  {
774
921
  "parameterName": "systemProperties",
775
922
  "parameterTypeTokenRange": {
776
923
  "startIndex": 5,
777
924
  "endIndex": 6
778
- }
925
+ },
926
+ "isOptional": true
779
927
  }
780
928
  ],
781
929
  "name": "sendExceptionInternal"
782
930
  },
783
931
  {
784
932
  "kind": "Method",
785
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#sendPageViewInternal:member(1)",
933
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#sendPageViewInternal:member(1)",
786
934
  "docComment": "/**\n * Create a page view telemetry item and send it to the SDK pipeline through the core.track API\n *\n * @param pageView - Page view item to be sent\n *\n * @param properties - Custom properties (Part C) that a user can add to the telemetry item\n *\n * @param systemProperties - System level properties (Part A) that a user can add to the telemetry item\n */\n",
787
935
  "excerptTokens": [
788
936
  {
@@ -837,28 +985,31 @@
837
985
  "parameterTypeTokenRange": {
838
986
  "startIndex": 1,
839
987
  "endIndex": 2
840
- }
988
+ },
989
+ "isOptional": false
841
990
  },
842
991
  {
843
992
  "parameterName": "properties",
844
993
  "parameterTypeTokenRange": {
845
994
  "startIndex": 3,
846
995
  "endIndex": 4
847
- }
996
+ },
997
+ "isOptional": true
848
998
  },
849
999
  {
850
1000
  "parameterName": "systemProperties",
851
1001
  "parameterTypeTokenRange": {
852
1002
  "startIndex": 5,
853
1003
  "endIndex": 6
854
- }
1004
+ },
1005
+ "isOptional": true
855
1006
  }
856
1007
  ],
857
1008
  "name": "sendPageViewInternal"
858
1009
  },
859
1010
  {
860
1011
  "kind": "Method",
861
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#sendPageViewPerformanceInternal:member(1)",
1012
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#sendPageViewPerformanceInternal:member(1)",
862
1013
  "docComment": "/**\n * @ignore INTERNAL ONLY\n *\n * @param pageViewPerformance - \n *\n * @param properties - \n */\n",
863
1014
  "excerptTokens": [
864
1015
  {
@@ -913,28 +1064,31 @@
913
1064
  "parameterTypeTokenRange": {
914
1065
  "startIndex": 1,
915
1066
  "endIndex": 2
916
- }
1067
+ },
1068
+ "isOptional": false
917
1069
  },
918
1070
  {
919
1071
  "parameterName": "properties",
920
1072
  "parameterTypeTokenRange": {
921
1073
  "startIndex": 3,
922
1074
  "endIndex": 4
923
- }
1075
+ },
1076
+ "isOptional": true
924
1077
  },
925
1078
  {
926
1079
  "parameterName": "systemProperties",
927
1080
  "parameterTypeTokenRange": {
928
1081
  "startIndex": 5,
929
1082
  "endIndex": 6
930
- }
1083
+ },
1084
+ "isOptional": true
931
1085
  }
932
1086
  ],
933
1087
  "name": "sendPageViewPerformanceInternal"
934
1088
  },
935
1089
  {
936
1090
  "kind": "Method",
937
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#startTrackEvent:member(1)",
1091
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#startTrackEvent:member(1)",
938
1092
  "docComment": "/**\n * Start timing an extended event. Call `stopTrackEvent` to log the event when it ends.\n *\n * @param name - A string that identifies this event uniquely within the document.\n */\n",
939
1093
  "excerptTokens": [
940
1094
  {
@@ -972,14 +1126,15 @@
972
1126
  "parameterTypeTokenRange": {
973
1127
  "startIndex": 1,
974
1128
  "endIndex": 2
975
- }
1129
+ },
1130
+ "isOptional": false
976
1131
  }
977
1132
  ],
978
1133
  "name": "startTrackEvent"
979
1134
  },
980
1135
  {
981
1136
  "kind": "Method",
982
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#startTrackPage:member(1)",
1137
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#startTrackPage:member(1)",
983
1138
  "docComment": "/**\n * Starts the timer for tracking a page load time. Use this instead of `trackPageView` if you want to control when the page view timer starts and stops, but don't want to calculate the duration yourself. This method doesn't send any telemetry. Call `stopTrackPage` to log the end of the page view and send the event.\n *\n * @param name - A string that idenfities this item, unique within this HTML document. Defaults to the document title.\n */\n",
984
1139
  "excerptTokens": [
985
1140
  {
@@ -1017,14 +1172,15 @@
1017
1172
  "parameterTypeTokenRange": {
1018
1173
  "startIndex": 1,
1019
1174
  "endIndex": 2
1020
- }
1175
+ },
1176
+ "isOptional": true
1021
1177
  }
1022
1178
  ],
1023
1179
  "name": "startTrackPage"
1024
1180
  },
1025
1181
  {
1026
1182
  "kind": "Method",
1027
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#stopTrackEvent:member(1)",
1183
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#stopTrackEvent:member(1)",
1028
1184
  "docComment": "/**\n * Log an extended event that you started timing with `startTrackEvent`.\n *\n * @param name - The string you used to identify this event in `startTrackEvent`.\n *\n * @param properties - map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty.\n *\n * @param measurements - map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty.\n */\n",
1029
1185
  "excerptTokens": [
1030
1186
  {
@@ -1078,28 +1234,31 @@
1078
1234
  "parameterTypeTokenRange": {
1079
1235
  "startIndex": 1,
1080
1236
  "endIndex": 2
1081
- }
1237
+ },
1238
+ "isOptional": false
1082
1239
  },
1083
1240
  {
1084
1241
  "parameterName": "properties",
1085
1242
  "parameterTypeTokenRange": {
1086
1243
  "startIndex": 3,
1087
1244
  "endIndex": 4
1088
- }
1245
+ },
1246
+ "isOptional": true
1089
1247
  },
1090
1248
  {
1091
1249
  "parameterName": "measurements",
1092
1250
  "parameterTypeTokenRange": {
1093
1251
  "startIndex": 5,
1094
1252
  "endIndex": 6
1095
- }
1253
+ },
1254
+ "isOptional": true
1096
1255
  }
1097
1256
  ],
1098
1257
  "name": "stopTrackEvent"
1099
1258
  },
1100
1259
  {
1101
1260
  "kind": "Method",
1102
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#stopTrackPage:member(1)",
1261
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#stopTrackPage:member(1)",
1103
1262
  "docComment": "/**\n * Stops the timer that was started by calling `startTrackPage` and sends the pageview load time telemetry with the specified properties and measurements. The duration of the page view will be the time between calling `startTrackPage` and `stopTrackPage`.\n *\n * @param name - The string you used as the name in startTrackPage. Defaults to the document title.\n *\n * @param url - String - a relative or absolute URL that identifies the page or other item. Defaults to the window location.\n *\n * @param properties - map[string, string] - additional data used to filter pages and metrics in the portal. Defaults to empty.\n *\n * @param measurements - map[string, number] - metrics associated with this page, displayed in Metrics Explorer on the portal. Defaults to empty.\n */\n",
1104
1263
  "excerptTokens": [
1105
1264
  {
@@ -1161,35 +1320,39 @@
1161
1320
  "parameterTypeTokenRange": {
1162
1321
  "startIndex": 1,
1163
1322
  "endIndex": 2
1164
- }
1323
+ },
1324
+ "isOptional": true
1165
1325
  },
1166
1326
  {
1167
1327
  "parameterName": "url",
1168
1328
  "parameterTypeTokenRange": {
1169
1329
  "startIndex": 3,
1170
1330
  "endIndex": 4
1171
- }
1331
+ },
1332
+ "isOptional": true
1172
1333
  },
1173
1334
  {
1174
1335
  "parameterName": "properties",
1175
1336
  "parameterTypeTokenRange": {
1176
1337
  "startIndex": 5,
1177
1338
  "endIndex": 6
1178
- }
1339
+ },
1340
+ "isOptional": true
1179
1341
  },
1180
1342
  {
1181
1343
  "parameterName": "measurement",
1182
1344
  "parameterTypeTokenRange": {
1183
1345
  "startIndex": 7,
1184
1346
  "endIndex": 8
1185
- }
1347
+ },
1348
+ "isOptional": true
1186
1349
  }
1187
1350
  ],
1188
1351
  "name": "stopTrackPage"
1189
1352
  },
1190
1353
  {
1191
1354
  "kind": "Method",
1192
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackEvent:member(1)",
1355
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackEvent:member(1)",
1193
1356
  "docComment": "",
1194
1357
  "excerptTokens": [
1195
1358
  {
@@ -1237,21 +1400,23 @@
1237
1400
  "parameterTypeTokenRange": {
1238
1401
  "startIndex": 1,
1239
1402
  "endIndex": 2
1240
- }
1403
+ },
1404
+ "isOptional": false
1241
1405
  },
1242
1406
  {
1243
1407
  "parameterName": "customProperties",
1244
1408
  "parameterTypeTokenRange": {
1245
1409
  "startIndex": 3,
1246
1410
  "endIndex": 4
1247
- }
1411
+ },
1412
+ "isOptional": true
1248
1413
  }
1249
1414
  ],
1250
1415
  "name": "trackEvent"
1251
1416
  },
1252
1417
  {
1253
1418
  "kind": "Method",
1254
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackException:member(1)",
1419
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackException:member(1)",
1255
1420
  "docComment": "/**\n * Log an exception you have caught.\n *\n * @param exception - Object which contains exception to be sent\n *\n * @param customProperties - Additional data used to filter pages and metrics in the portal. Defaults to empty.\n *\n * Any property of type double will be considered a measurement, and will be treated by Application Insights as a metric. @memberof ApplicationInsights\n */\n",
1256
1421
  "excerptTokens": [
1257
1422
  {
@@ -1299,21 +1464,23 @@
1299
1464
  "parameterTypeTokenRange": {
1300
1465
  "startIndex": 1,
1301
1466
  "endIndex": 2
1302
- }
1467
+ },
1468
+ "isOptional": false
1303
1469
  },
1304
1470
  {
1305
1471
  "parameterName": "customProperties",
1306
1472
  "parameterTypeTokenRange": {
1307
1473
  "startIndex": 3,
1308
1474
  "endIndex": 4
1309
- }
1475
+ },
1476
+ "isOptional": true
1310
1477
  }
1311
1478
  ],
1312
1479
  "name": "trackException"
1313
1480
  },
1314
1481
  {
1315
1482
  "kind": "Method",
1316
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackMetric:member(1)",
1483
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackMetric:member(1)",
1317
1484
  "docComment": "/**\n * @description Log a numeric value that is not associated with a specific event. Typically used to send regular reports of performance indicators. To send single measurement, just use the name and average fields of {@link IMetricTelemetry}. If you take measurements frequently, you can reduce the telemetry bandwidth by aggregating multiple measurements and sending the resulting average at intervals\n *\n * @param metric - input object argument. Only name and average are mandatory.\n *\n * @param customProperties - additional data used to filter metrics in the portal. Defaults to empty. @memberof ApplicationInsights\n */\n",
1318
1485
  "excerptTokens": [
1319
1486
  {
@@ -1361,21 +1528,23 @@
1361
1528
  "parameterTypeTokenRange": {
1362
1529
  "startIndex": 1,
1363
1530
  "endIndex": 2
1364
- }
1531
+ },
1532
+ "isOptional": false
1365
1533
  },
1366
1534
  {
1367
1535
  "parameterName": "customProperties",
1368
1536
  "parameterTypeTokenRange": {
1369
1537
  "startIndex": 3,
1370
1538
  "endIndex": 4
1371
- }
1539
+ },
1540
+ "isOptional": true
1372
1541
  }
1373
1542
  ],
1374
1543
  "name": "trackMetric"
1375
1544
  },
1376
1545
  {
1377
1546
  "kind": "Method",
1378
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackPageView:member(1)",
1547
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackPageView:member(1)",
1379
1548
  "docComment": "/**\n * Logs that a page or other item was viewed.\n *\n * @param IPageViewTelemetry - The string you used as the name in startTrackPage. Defaults to the document title.\n *\n * @param customProperties - Additional data used to filter events and metrics. Defaults to empty. If a user wants to provide duration for pageLoad, it'll have to be in pageView.properties.duration\n */\n",
1380
1549
  "excerptTokens": [
1381
1550
  {
@@ -1423,21 +1592,23 @@
1423
1592
  "parameterTypeTokenRange": {
1424
1593
  "startIndex": 1,
1425
1594
  "endIndex": 2
1426
- }
1595
+ },
1596
+ "isOptional": true
1427
1597
  },
1428
1598
  {
1429
1599
  "parameterName": "customProperties",
1430
1600
  "parameterTypeTokenRange": {
1431
1601
  "startIndex": 3,
1432
1602
  "endIndex": 4
1433
- }
1603
+ },
1604
+ "isOptional": true
1434
1605
  }
1435
1606
  ],
1436
1607
  "name": "trackPageView"
1437
1608
  },
1438
1609
  {
1439
1610
  "kind": "Method",
1440
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackPageViewPerformance:member(1)",
1611
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackPageViewPerformance:member(1)",
1441
1612
  "docComment": "/**\n * Send browser performance metrics.\n *\n * @param pageViewPerformance - \n *\n * @param customProperties - \n */\n",
1442
1613
  "excerptTokens": [
1443
1614
  {
@@ -1485,21 +1656,23 @@
1485
1656
  "parameterTypeTokenRange": {
1486
1657
  "startIndex": 1,
1487
1658
  "endIndex": 2
1488
- }
1659
+ },
1660
+ "isOptional": false
1489
1661
  },
1490
1662
  {
1491
1663
  "parameterName": "customProperties",
1492
1664
  "parameterTypeTokenRange": {
1493
1665
  "startIndex": 3,
1494
1666
  "endIndex": 4
1495
- }
1667
+ },
1668
+ "isOptional": true
1496
1669
  }
1497
1670
  ],
1498
1671
  "name": "trackPageViewPerformance"
1499
1672
  },
1500
1673
  {
1501
1674
  "kind": "Method",
1502
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackTrace:member(1)",
1675
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackTrace:member(1)",
1503
1676
  "docComment": "/**\n * @description Log a diagnostic message\n *\n * @param trace - \n *\n * @param - ICustomProperties. @memberof ApplicationInsights\n */\n",
1504
1677
  "excerptTokens": [
1505
1678
  {
@@ -1547,21 +1720,23 @@
1547
1720
  "parameterTypeTokenRange": {
1548
1721
  "startIndex": 1,
1549
1722
  "endIndex": 2
1550
- }
1723
+ },
1724
+ "isOptional": false
1551
1725
  },
1552
1726
  {
1553
1727
  "parameterName": "customProperties",
1554
1728
  "parameterTypeTokenRange": {
1555
1729
  "startIndex": 3,
1556
1730
  "endIndex": 4
1557
- }
1731
+ },
1732
+ "isOptional": true
1558
1733
  }
1559
1734
  ],
1560
1735
  "name": "trackTrace"
1561
1736
  },
1562
1737
  {
1563
1738
  "kind": "Property",
1564
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin.Version:member",
1739
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights.Version:member",
1565
1740
  "docComment": "",
1566
1741
  "excerptTokens": [
1567
1742
  {
@@ -1589,7 +1764,7 @@
1589
1764
  ],
1590
1765
  "extendsTokenRange": {
1591
1766
  "startIndex": 1,
1592
- "endIndex": 3
1767
+ "endIndex": 2
1593
1768
  },
1594
1769
  "implementsTokenRanges": [
1595
1770
  {
@@ -1598,7 +1773,7 @@
1598
1773
  },
1599
1774
  {
1600
1775
  "startIndex": 6,
1601
- "endIndex": 8
1776
+ "endIndex": 7
1602
1777
  }
1603
1778
  ]
1604
1779
  },
@@ -1673,21 +1848,24 @@
1673
1848
  "parameterTypeTokenRange": {
1674
1849
  "startIndex": 1,
1675
1850
  "endIndex": 2
1676
- }
1851
+ },
1852
+ "isOptional": false
1677
1853
  },
1678
1854
  {
1679
1855
  "parameterName": "properties",
1680
1856
  "parameterTypeTokenRange": {
1681
1857
  "startIndex": 3,
1682
1858
  "endIndex": 4
1683
- }
1859
+ },
1860
+ "isOptional": true
1684
1861
  },
1685
1862
  {
1686
1863
  "parameterName": "systemProperties",
1687
1864
  "parameterTypeTokenRange": {
1688
1865
  "startIndex": 5,
1689
1866
  "endIndex": 6
1690
- }
1867
+ },
1868
+ "isOptional": true
1691
1869
  }
1692
1870
  ],
1693
1871
  "name": "sendPageViewInternal"
@@ -1750,21 +1928,24 @@
1750
1928
  "parameterTypeTokenRange": {
1751
1929
  "startIndex": 1,
1752
1930
  "endIndex": 2
1753
- }
1931
+ },
1932
+ "isOptional": false
1754
1933
  },
1755
1934
  {
1756
1935
  "parameterName": "properties",
1757
1936
  "parameterTypeTokenRange": {
1758
1937
  "startIndex": 3,
1759
1938
  "endIndex": 4
1760
- }
1939
+ },
1940
+ "isOptional": true
1761
1941
  },
1762
1942
  {
1763
1943
  "parameterName": "systemProperties",
1764
1944
  "parameterTypeTokenRange": {
1765
1945
  "startIndex": 5,
1766
1946
  "endIndex": 6
1767
- }
1947
+ },
1948
+ "isOptional": true
1768
1949
  }
1769
1950
  ],
1770
1951
  "name": "sendPageViewPerformanceInternal"