@microsoft/applicationinsights-analytics-js 2.8.0-beta.2203-04 → 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 (32) hide show
  1. package/browser/applicationinsights-analytics-js.integrity.json +9 -9
  2. package/browser/applicationinsights-analytics-js.js +754 -251
  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 +48 -183
  7. package/dist/applicationinsights-analytics-js.api.md +8 -18
  8. package/dist/applicationinsights-analytics-js.d.ts +9 -104
  9. package/dist/applicationinsights-analytics-js.js +754 -251
  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 +9 -104
  14. package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js +673 -0
  15. package/dist-esm/JavaScriptSDK/AnalyticsPlugin.js.map +1 -0
  16. package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
  17. package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
  18. package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
  19. package/dist-esm/JavaScriptSDK/Timing.js +39 -0
  20. package/dist-esm/JavaScriptSDK/Timing.js.map +1 -0
  21. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
  22. package/dist-esm/applicationinsights-analytics-js.js +2 -2
  23. package/dist-esm/applicationinsights-analytics-js.js.map +1 -1
  24. package/package.json +5 -5
  25. package/src/JavaScriptSDK/{ApplicationInsights.ts → AnalyticsPlugin.ts} +401 -324
  26. package/src/JavaScriptSDK/Timing.ts +46 -0
  27. package/src/applicationinsights-analytics-js.ts +1 -1
  28. package/types/JavaScriptSDK/{ApplicationInsights.d.ts → AnalyticsPlugin.d.ts} +7 -11
  29. package/types/JavaScriptSDK/Timing.d.ts +18 -0
  30. package/types/applicationinsights-analytics-js.d.ts +1 -1
  31. package/dist-esm/JavaScriptSDK/ApplicationInsights.js +0 -606
  32. package/dist-esm/JavaScriptSDK/ApplicationInsights.js.map +0 -1
@@ -171,12 +171,12 @@
171
171
  "members": [
172
172
  {
173
173
  "kind": "Class",
174
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights:class",
174
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin:class",
175
175
  "docComment": "",
176
176
  "excerptTokens": [
177
177
  {
178
178
  "kind": "Content",
179
- "text": "export declare class ApplicationInsights extends "
179
+ "text": "export declare class AnalyticsPlugin extends "
180
180
  },
181
181
  {
182
182
  "kind": "Reference",
@@ -211,11 +211,11 @@
211
211
  }
212
212
  ],
213
213
  "releaseTag": "Public",
214
- "name": "ApplicationInsights",
214
+ "name": "AnalyticsPlugin",
215
215
  "members": [
216
216
  {
217
217
  "kind": "Method",
218
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_onerror:member(1)",
218
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#_onerror:member(1)",
219
219
  "docComment": "/**\n * @description Custom error handler for Application Insights Analytics\n *\n * @param exception - @memberof ApplicationInsights\n */\n",
220
220
  "excerptTokens": [
221
221
  {
@@ -259,135 +259,10 @@
259
259
  ],
260
260
  "name": "_onerror"
261
261
  },
262
- {
263
- "kind": "Property",
264
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_pageViewManager:member",
265
- "docComment": "",
266
- "excerptTokens": [
267
- {
268
- "kind": "Content",
269
- "text": "protected _pageViewManager: "
270
- },
271
- {
272
- "kind": "Reference",
273
- "text": "PageViewManager",
274
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!PageViewManager:class"
275
- },
276
- {
277
- "kind": "Content",
278
- "text": ";"
279
- }
280
- ],
281
- "isOptional": false,
282
- "releaseTag": "Public",
283
- "name": "_pageViewManager",
284
- "propertyTypeTokenRange": {
285
- "startIndex": 1,
286
- "endIndex": 2
287
- },
288
- "isStatic": false
289
- },
290
- {
291
- "kind": "Property",
292
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_pageViewPerformanceManager:member",
293
- "docComment": "",
294
- "excerptTokens": [
295
- {
296
- "kind": "Content",
297
- "text": "protected _pageViewPerformanceManager: "
298
- },
299
- {
300
- "kind": "Reference",
301
- "text": "PageViewPerformanceManager",
302
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!PageViewPerformanceManager:class"
303
- },
304
- {
305
- "kind": "Content",
306
- "text": ";"
307
- }
308
- ],
309
- "isOptional": false,
310
- "releaseTag": "Public",
311
- "name": "_pageViewPerformanceManager",
312
- "propertyTypeTokenRange": {
313
- "startIndex": 1,
314
- "endIndex": 2
315
- },
316
- "isStatic": false
317
- },
318
- {
319
- "kind": "Property",
320
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_pageVisitTimeManager:member",
321
- "docComment": "",
322
- "excerptTokens": [
323
- {
324
- "kind": "Content",
325
- "text": "protected _pageVisitTimeManager: "
326
- },
327
- {
328
- "kind": "Reference",
329
- "text": "PageVisitTimeManager",
330
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!PageVisitTimeManager:class"
331
- },
332
- {
333
- "kind": "Content",
334
- "text": ";"
335
- }
336
- ],
337
- "isOptional": false,
338
- "releaseTag": "Public",
339
- "name": "_pageVisitTimeManager",
340
- "propertyTypeTokenRange": {
341
- "startIndex": 1,
342
- "endIndex": 2
343
- },
344
- "isStatic": false
345
- },
346
- {
347
- "kind": "Property",
348
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#_telemetryInitializers:member",
349
- "docComment": "",
350
- "excerptTokens": [
351
- {
352
- "kind": "Content",
353
- "text": "protected _telemetryInitializers: "
354
- },
355
- {
356
- "kind": "Reference",
357
- "text": "Array",
358
- "canonicalReference": "!Array:interface"
359
- },
360
- {
361
- "kind": "Content",
362
- "text": "<(envelope: "
363
- },
364
- {
365
- "kind": "Reference",
366
- "text": "ITelemetryItem",
367
- "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryItem:interface"
368
- },
369
- {
370
- "kind": "Content",
371
- "text": ") => boolean | void>"
372
- },
373
- {
374
- "kind": "Content",
375
- "text": ";"
376
- }
377
- ],
378
- "isOptional": false,
379
- "releaseTag": "Public",
380
- "name": "_telemetryInitializers",
381
- "propertyTypeTokenRange": {
382
- "startIndex": 1,
383
- "endIndex": 5
384
- },
385
- "isStatic": false
386
- },
387
262
  {
388
263
  "kind": "Constructor",
389
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights:constructor(1)",
390
- "docComment": "/**\n * Constructs a new instance of the `ApplicationInsights` class\n */\n",
264
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin:constructor(1)",
265
+ "docComment": "/**\n * Constructs a new instance of the `AnalyticsPlugin` class\n */\n",
391
266
  "excerptTokens": [
392
267
  {
393
268
  "kind": "Content",
@@ -400,7 +275,7 @@
400
275
  },
401
276
  {
402
277
  "kind": "Method",
403
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#addTelemetryInitializer:member(1)",
278
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#addTelemetryInitializer:member(1)",
404
279
  "docComment": "",
405
280
  "excerptTokens": [
406
281
  {
@@ -424,9 +299,14 @@
424
299
  "kind": "Content",
425
300
  "text": "): "
426
301
  },
302
+ {
303
+ "kind": "Reference",
304
+ "text": "ITelemetryInitializerHandler",
305
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ITelemetryInitializerHandler:interface"
306
+ },
427
307
  {
428
308
  "kind": "Content",
429
- "text": "void"
309
+ "text": " | void"
430
310
  },
431
311
  {
432
312
  "kind": "Content",
@@ -437,7 +317,7 @@
437
317
  "isStatic": false,
438
318
  "returnTypeTokenRange": {
439
319
  "startIndex": 5,
440
- "endIndex": 6
320
+ "endIndex": 7
441
321
  },
442
322
  "releaseTag": "Public",
443
323
  "overloadIndex": 1,
@@ -454,7 +334,7 @@
454
334
  },
455
335
  {
456
336
  "kind": "Property",
457
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#autoRoutePVDelay:member",
337
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#autoRoutePVDelay:member",
458
338
  "docComment": "",
459
339
  "excerptTokens": [
460
340
  {
@@ -481,7 +361,7 @@
481
361
  },
482
362
  {
483
363
  "kind": "Property",
484
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#config:member",
364
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#config:member",
485
365
  "docComment": "",
486
366
  "excerptTokens": [
487
367
  {
@@ -509,7 +389,7 @@
509
389
  },
510
390
  {
511
391
  "kind": "Method",
512
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#getCookieMgr:member(1)",
392
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#getCookieMgr:member(1)",
513
393
  "docComment": "/**\n * Get the current cookie manager for this instance\n */\n",
514
394
  "excerptTokens": [
515
395
  {
@@ -538,27 +418,22 @@
538
418
  "name": "getCookieMgr"
539
419
  },
540
420
  {
541
- "kind": "Method",
542
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights.getDefaultConfig:member(1)",
421
+ "kind": "Property",
422
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin.getDefaultConfig:member",
543
423
  "docComment": "",
544
424
  "excerptTokens": [
545
425
  {
546
426
  "kind": "Content",
547
- "text": "static getDefaultConfig(config?: "
548
- },
549
- {
550
- "kind": "Reference",
551
- "text": "IConfig",
552
- "canonicalReference": "@microsoft/applicationinsights-common!IConfig:interface"
427
+ "text": "static getDefaultConfig: "
553
428
  },
554
429
  {
555
430
  "kind": "Content",
556
- "text": "): "
431
+ "text": "typeof "
557
432
  },
558
433
  {
559
434
  "kind": "Reference",
560
- "text": "IConfig",
561
- "canonicalReference": "@microsoft/applicationinsights-common!IConfig:interface"
435
+ "text": "_getDefaultConfig",
436
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!~_getDefaultConfig:function"
562
437
  },
563
438
  {
564
439
  "kind": "Content",
@@ -566,27 +441,17 @@
566
441
  }
567
442
  ],
568
443
  "isOptional": false,
569
- "isStatic": true,
570
- "returnTypeTokenRange": {
571
- "startIndex": 3,
572
- "endIndex": 4
573
- },
574
444
  "releaseTag": "Public",
575
- "overloadIndex": 1,
576
- "parameters": [
577
- {
578
- "parameterName": "config",
579
- "parameterTypeTokenRange": {
580
- "startIndex": 1,
581
- "endIndex": 2
582
- }
583
- }
584
- ],
585
- "name": "getDefaultConfig"
445
+ "name": "getDefaultConfig",
446
+ "propertyTypeTokenRange": {
447
+ "startIndex": 1,
448
+ "endIndex": 3
449
+ },
450
+ "isStatic": true
586
451
  },
587
452
  {
588
453
  "kind": "Property",
589
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#identifier:member",
454
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#identifier:member",
590
455
  "docComment": "",
591
456
  "excerptTokens": [
592
457
  {
@@ -613,7 +478,7 @@
613
478
  },
614
479
  {
615
480
  "kind": "Method",
616
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#initialize:member(1)",
481
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#initialize:member(1)",
617
482
  "docComment": "",
618
483
  "excerptTokens": [
619
484
  {
@@ -720,7 +585,7 @@
720
585
  },
721
586
  {
722
587
  "kind": "Property",
723
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#priority:member",
588
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#priority:member",
724
589
  "docComment": "",
725
590
  "excerptTokens": [
726
591
  {
@@ -747,7 +612,7 @@
747
612
  },
748
613
  {
749
614
  "kind": "Method",
750
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#processTelemetry:member(1)",
615
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#processTelemetry:member(1)",
751
616
  "docComment": "",
752
617
  "excerptTokens": [
753
618
  {
@@ -809,7 +674,7 @@
809
674
  },
810
675
  {
811
676
  "kind": "Property",
812
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#queue:member",
677
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#queue:member",
813
678
  "docComment": "",
814
679
  "excerptTokens": [
815
680
  {
@@ -841,7 +706,7 @@
841
706
  },
842
707
  {
843
708
  "kind": "Method",
844
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#sendExceptionInternal:member(1)",
709
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#sendExceptionInternal:member(1)",
845
710
  "docComment": "/**\n * @ignore INTERNAL ONLY\n *\n * @param exception - \n *\n * @param properties - \n *\n * @param systemProperties - \n */\n",
846
711
  "excerptTokens": [
847
712
  {
@@ -917,7 +782,7 @@
917
782
  },
918
783
  {
919
784
  "kind": "Method",
920
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#sendPageViewInternal:member(1)",
785
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#sendPageViewInternal:member(1)",
921
786
  "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",
922
787
  "excerptTokens": [
923
788
  {
@@ -993,7 +858,7 @@
993
858
  },
994
859
  {
995
860
  "kind": "Method",
996
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#sendPageViewPerformanceInternal:member(1)",
861
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#sendPageViewPerformanceInternal:member(1)",
997
862
  "docComment": "/**\n * @ignore INTERNAL ONLY\n *\n * @param pageViewPerformance - \n *\n * @param properties - \n */\n",
998
863
  "excerptTokens": [
999
864
  {
@@ -1069,7 +934,7 @@
1069
934
  },
1070
935
  {
1071
936
  "kind": "Method",
1072
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#startTrackEvent:member(1)",
937
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#startTrackEvent:member(1)",
1073
938
  "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",
1074
939
  "excerptTokens": [
1075
940
  {
@@ -1114,7 +979,7 @@
1114
979
  },
1115
980
  {
1116
981
  "kind": "Method",
1117
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#startTrackPage:member(1)",
982
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#startTrackPage:member(1)",
1118
983
  "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",
1119
984
  "excerptTokens": [
1120
985
  {
@@ -1159,7 +1024,7 @@
1159
1024
  },
1160
1025
  {
1161
1026
  "kind": "Method",
1162
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#stopTrackEvent:member(1)",
1027
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#stopTrackEvent:member(1)",
1163
1028
  "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",
1164
1029
  "excerptTokens": [
1165
1030
  {
@@ -1234,7 +1099,7 @@
1234
1099
  },
1235
1100
  {
1236
1101
  "kind": "Method",
1237
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#stopTrackPage:member(1)",
1102
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#stopTrackPage:member(1)",
1238
1103
  "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",
1239
1104
  "excerptTokens": [
1240
1105
  {
@@ -1324,7 +1189,7 @@
1324
1189
  },
1325
1190
  {
1326
1191
  "kind": "Method",
1327
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackEvent:member(1)",
1192
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackEvent:member(1)",
1328
1193
  "docComment": "",
1329
1194
  "excerptTokens": [
1330
1195
  {
@@ -1386,7 +1251,7 @@
1386
1251
  },
1387
1252
  {
1388
1253
  "kind": "Method",
1389
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackException:member(1)",
1254
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackException:member(1)",
1390
1255
  "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",
1391
1256
  "excerptTokens": [
1392
1257
  {
@@ -1448,7 +1313,7 @@
1448
1313
  },
1449
1314
  {
1450
1315
  "kind": "Method",
1451
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackMetric:member(1)",
1316
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackMetric:member(1)",
1452
1317
  "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",
1453
1318
  "excerptTokens": [
1454
1319
  {
@@ -1510,7 +1375,7 @@
1510
1375
  },
1511
1376
  {
1512
1377
  "kind": "Method",
1513
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackPageView:member(1)",
1378
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackPageView:member(1)",
1514
1379
  "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",
1515
1380
  "excerptTokens": [
1516
1381
  {
@@ -1572,7 +1437,7 @@
1572
1437
  },
1573
1438
  {
1574
1439
  "kind": "Method",
1575
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackPageViewPerformance:member(1)",
1440
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackPageViewPerformance:member(1)",
1576
1441
  "docComment": "/**\n * Send browser performance metrics.\n *\n * @param pageViewPerformance - \n *\n * @param customProperties - \n */\n",
1577
1442
  "excerptTokens": [
1578
1443
  {
@@ -1634,7 +1499,7 @@
1634
1499
  },
1635
1500
  {
1636
1501
  "kind": "Method",
1637
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights#trackTrace:member(1)",
1502
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin#trackTrace:member(1)",
1638
1503
  "docComment": "/**\n * @description Log a diagnostic message\n *\n * @param trace - \n *\n * @param - ICustomProperties. @memberof ApplicationInsights\n */\n",
1639
1504
  "excerptTokens": [
1640
1505
  {
@@ -1696,7 +1561,7 @@
1696
1561
  },
1697
1562
  {
1698
1563
  "kind": "Property",
1699
- "canonicalReference": "@microsoft/applicationinsights-analytics-js!ApplicationInsights.Version:member",
1564
+ "canonicalReference": "@microsoft/applicationinsights-analytics-js!AnalyticsPlugin.Version:member",
1700
1565
  "docComment": "",
1701
1566
  "excerptTokens": [
1702
1567
  {
@@ -12,7 +12,6 @@ import { IConfig } from '@microsoft/applicationinsights-common';
12
12
  import { IConfiguration } from '@microsoft/applicationinsights-core-js';
13
13
  import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
14
14
  import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
15
- import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
16
15
  import { IEventTelemetry } from '@microsoft/applicationinsights-common';
17
16
  import { IExceptionTelemetry } from '@microsoft/applicationinsights-common';
18
17
  import { IMetricTelemetry } from '@microsoft/applicationinsights-common';
@@ -22,39 +21,30 @@ import { IPageViewTelemetry } from '@microsoft/applicationinsights-common';
22
21
  import { IPageViewTelemetryInternal } from '@microsoft/applicationinsights-common';
23
22
  import { IPlugin } from '@microsoft/applicationinsights-core-js';
24
23
  import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
24
+ import { ITelemetryInitializerHandler } from '@microsoft/applicationinsights-core-js';
25
25
  import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
26
26
  import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
27
27
  import { ITraceTelemetry } from '@microsoft/applicationinsights-common';
28
28
 
29
29
  // @public (undocumented)
30
- export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
30
+ class AnalyticsPlugin extends BaseTelemetryPlugin implements IAppInsights, IAppInsightsInternal {
31
31
  constructor();
32
32
  // (undocumented)
33
- addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): void;
33
+ addTelemetryInitializer(telemetryInitializer: (item: ITelemetryItem) => boolean | void): ITelemetryInitializerHandler | void;
34
34
  // (undocumented)
35
35
  autoRoutePVDelay: number;
36
36
  // (undocumented)
37
37
  config: IConfig;
38
38
  getCookieMgr(): ICookieMgr;
39
+ // Warning: (ae-forgotten-export) The symbol "_getDefaultConfig" needs to be exported by the entry point applicationinsights-analytics-js.d.ts
40
+ //
39
41
  // (undocumented)
40
- static getDefaultConfig(config?: IConfig): IConfig;
42
+ static getDefaultConfig: typeof _getDefaultConfig;
41
43
  // (undocumented)
42
44
  identifier: string;
43
45
  // (undocumented)
44
46
  initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
45
47
  _onerror(exception: IAutoExceptionTelemetry): void;
46
- // Warning: (ae-forgotten-export) The symbol "PageViewManager" needs to be exported by the entry point applicationinsights-analytics-js.d.ts
47
- //
48
- // (undocumented)
49
- protected _pageViewManager: PageViewManager;
50
- // Warning: (ae-forgotten-export) The symbol "PageViewPerformanceManager" needs to be exported by the entry point applicationinsights-analytics-js.d.ts
51
- //
52
- // (undocumented)
53
- protected _pageViewPerformanceManager: PageViewPerformanceManager;
54
- // Warning: (ae-forgotten-export) The symbol "PageVisitTimeManager" needs to be exported by the entry point applicationinsights-analytics-js.d.ts
55
- //
56
- // (undocumented)
57
- protected _pageVisitTimeManager: PageVisitTimeManager;
58
48
  // (undocumented)
59
49
  priority: number;
60
50
  // (undocumented)
@@ -89,8 +79,6 @@ export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsi
89
79
  [key: string]: number;
90
80
  }): void;
91
81
  // (undocumented)
92
- protected _telemetryInitializers: Array<(envelope: ITelemetryItem) => boolean | void>;
93
- // (undocumented)
94
82
  trackEvent(event: IEventTelemetry, customProperties?: ICustomProperties): void;
95
83
  trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
96
84
  trackMetric(metric: IMetricTelemetry, customProperties?: ICustomProperties): void;
@@ -100,6 +88,8 @@ export class ApplicationInsights extends BaseTelemetryPlugin implements IAppInsi
100
88
  // (undocumented)
101
89
  static Version: string;
102
90
  }
91
+ export { AnalyticsPlugin }
92
+ export { AnalyticsPlugin as ApplicationInsights }
103
93
 
104
94
  // @public
105
95
  export interface IAppInsightsInternal {