@microsoft/applicationinsights-core-js 3.0.0-beta.2211-01 → 3.0.0-beta.2211-04

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 (101) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +1093 -1237
  3. package/browser/applicationinsights-core-js.js.map +1 -1
  4. package/browser/applicationinsights-core-js.min.js +2 -2
  5. package/browser/applicationinsights-core-js.min.js.map +1 -1
  6. package/dist/applicationinsights-core-js.api.json +91 -89
  7. package/dist/applicationinsights-core-js.api.md +11 -10
  8. package/dist/applicationinsights-core-js.d.ts +10 -9
  9. package/dist/applicationinsights-core-js.js +1093 -1237
  10. package/dist/applicationinsights-core-js.js.map +1 -1
  11. package/dist/applicationinsights-core-js.min.js +2 -2
  12. package/dist/applicationinsights-core-js.min.js.map +1 -1
  13. package/dist/applicationinsights-core-js.rollup.d.ts +10 -9
  14. package/dist-esm/Config/ConfigDefaults.js +1 -1
  15. package/dist-esm/Config/DynamicConfig.js +1 -1
  16. package/dist-esm/Config/DynamicProperty.js +1 -1
  17. package/dist-esm/Config/DynamicState.js +3 -3
  18. package/dist-esm/Config/DynamicState.js.map +1 -1
  19. package/dist-esm/Config/DynamicSupport.js +1 -1
  20. package/dist-esm/Config/IConfigDefaults.js +1 -1
  21. package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
  22. package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
  23. package/dist-esm/Config/IDynamicWatcher.js +1 -1
  24. package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
  25. package/dist-esm/JavaScriptSDK/AggregationError.js +1 -1
  26. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +115 -72
  27. package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
  28. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  29. package/dist-esm/JavaScriptSDK/Constants.js +8 -0
  30. package/dist-esm/JavaScriptSDK/Constants.js.map +1 -0
  31. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  32. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  33. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  34. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  35. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  36. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
  37. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  38. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  39. package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
  40. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  41. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  42. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  43. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  44. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +5 -5
  45. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
  46. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  47. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  48. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  49. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  50. package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  69. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  70. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  71. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  72. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  73. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  74. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  75. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  76. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  77. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
  78. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  79. package/dist-esm/__DynamicConstants.js +17 -17
  80. package/dist-esm/__DynamicConstants.js.map +1 -1
  81. package/dist-esm/applicationinsights-core-js.js +1 -1
  82. package/package.json +1 -1
  83. package/src/JavaScriptSDK/AppInsightsCore.ts +126 -79
  84. package/src/JavaScriptSDK/Constants.ts +4 -0
  85. package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +4 -3
  86. package/src/JavaScriptSDK.Interfaces/IChannelControls.ts +4 -4
  87. package/types/Config/IConfigDefaults.d.ts +3 -3
  88. package/types/Config/IDynamicWatcher.d.ts +1 -1
  89. package/types/JavaScriptSDK/AppInsightsCore.d.ts +3 -2
  90. package/types/JavaScriptSDK/Constants.d.ts +1 -0
  91. package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +1 -1
  92. package/types/JavaScriptSDK.Enums/EventsDiscardedReason.d.ts +1 -1
  93. package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +2 -2
  94. package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +3 -2
  95. package/types/JavaScriptSDK.Interfaces/IChannelControls.d.ts +4 -4
  96. package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +1 -1
  97. package/types/__DynamicConstants.d.ts +4 -4
  98. package/dist-esm/JavaScriptSDK/ChannelController.js +0 -217
  99. package/dist-esm/JavaScriptSDK/ChannelController.js.map +0 -1
  100. package/src/JavaScriptSDK/ChannelController.ts +0 -274
  101. package/types/JavaScriptSDK/ChannelController.d.ts +0 -19
@@ -2251,7 +2251,7 @@
2251
2251
  "excerptTokens": [
2252
2252
  {
2253
2253
  "kind": "Content",
2254
- "text": "export declare type _InternalMessageId = "
2254
+ "text": "export type _InternalMessageId = "
2255
2255
  },
2256
2256
  {
2257
2257
  "kind": "Content",
@@ -3709,6 +3709,41 @@
3709
3709
  "isOptional": false,
3710
3710
  "name": "flush"
3711
3711
  },
3712
+ {
3713
+ "kind": "Method",
3714
+ "canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#getChannels:member(1)",
3715
+ "docComment": "",
3716
+ "excerptTokens": [
3717
+ {
3718
+ "kind": "Content",
3719
+ "text": "getChannels(): "
3720
+ },
3721
+ {
3722
+ "kind": "Reference",
3723
+ "text": "IChannelControls",
3724
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IChannelControls:interface"
3725
+ },
3726
+ {
3727
+ "kind": "Content",
3728
+ "text": "[]"
3729
+ },
3730
+ {
3731
+ "kind": "Content",
3732
+ "text": ";"
3733
+ }
3734
+ ],
3735
+ "isStatic": false,
3736
+ "returnTypeTokenRange": {
3737
+ "startIndex": 1,
3738
+ "endIndex": 3
3739
+ },
3740
+ "releaseTag": "Public",
3741
+ "isProtected": false,
3742
+ "overloadIndex": 1,
3743
+ "parameters": [],
3744
+ "isOptional": false,
3745
+ "name": "getChannels"
3746
+ },
3712
3747
  {
3713
3748
  "kind": "Method",
3714
3749
  "canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#getCookieMgr:member(1)",
@@ -3968,41 +4003,6 @@
3968
4003
  "isOptional": false,
3969
4004
  "name": "getTraceCtx"
3970
4005
  },
3971
- {
3972
- "kind": "Method",
3973
- "canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#getTransmissionControls:member(1)",
3974
- "docComment": "",
3975
- "excerptTokens": [
3976
- {
3977
- "kind": "Content",
3978
- "text": "getTransmissionControls(): "
3979
- },
3980
- {
3981
- "kind": "Reference",
3982
- "text": "IChannelControls",
3983
- "canonicalReference": "@microsoft/applicationinsights-core-js!IChannelControls:interface"
3984
- },
3985
- {
3986
- "kind": "Content",
3987
- "text": "[][]"
3988
- },
3989
- {
3990
- "kind": "Content",
3991
- "text": ";"
3992
- }
3993
- ],
3994
- "isStatic": false,
3995
- "returnTypeTokenRange": {
3996
- "startIndex": 1,
3997
- "endIndex": 3
3998
- },
3999
- "releaseTag": "Public",
4000
- "isProtected": false,
4001
- "overloadIndex": 1,
4002
- "parameters": [],
4003
- "isOptional": false,
4004
- "name": "getTransmissionControls"
4005
- },
4006
4006
  {
4007
4007
  "kind": "Property",
4008
4008
  "canonicalReference": "@microsoft/applicationinsights-core-js!AppInsightsCore#getWParam:member",
@@ -4354,8 +4354,9 @@
4354
4354
  "text": "): "
4355
4355
  },
4356
4356
  {
4357
- "kind": "Content",
4358
- "text": "number"
4357
+ "kind": "Reference",
4358
+ "text": "ITimerHandler",
4359
+ "canonicalReference": "@nevware21/ts-utils!ITimerHandler:interface"
4359
4360
  },
4360
4361
  {
4361
4362
  "kind": "Content",
@@ -7907,7 +7908,7 @@
7907
7908
  "excerptTokens": [
7908
7909
  {
7909
7910
  "kind": "Content",
7910
- "text": "export declare type EventsDiscardedReason = "
7911
+ "text": "export type EventsDiscardedReason = "
7911
7912
  },
7912
7913
  {
7913
7914
  "kind": "Content",
@@ -9247,6 +9248,39 @@
9247
9248
  ],
9248
9249
  "name": "flush"
9249
9250
  },
9251
+ {
9252
+ "kind": "MethodSignature",
9253
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#getChannels:member(1)",
9254
+ "docComment": "",
9255
+ "excerptTokens": [
9256
+ {
9257
+ "kind": "Content",
9258
+ "text": "getChannels(): "
9259
+ },
9260
+ {
9261
+ "kind": "Reference",
9262
+ "text": "IChannelControls",
9263
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IChannelControls:interface"
9264
+ },
9265
+ {
9266
+ "kind": "Content",
9267
+ "text": "[]"
9268
+ },
9269
+ {
9270
+ "kind": "Content",
9271
+ "text": ";"
9272
+ }
9273
+ ],
9274
+ "isOptional": false,
9275
+ "returnTypeTokenRange": {
9276
+ "startIndex": 1,
9277
+ "endIndex": 3
9278
+ },
9279
+ "releaseTag": "Public",
9280
+ "overloadIndex": 1,
9281
+ "parameters": [],
9282
+ "name": "getChannels"
9283
+ },
9250
9284
  {
9251
9285
  "kind": "MethodSignature",
9252
9286
  "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#getCookieMgr:member(1)",
@@ -9465,39 +9499,6 @@
9465
9499
  ],
9466
9500
  "name": "getTraceCtx"
9467
9501
  },
9468
- {
9469
- "kind": "MethodSignature",
9470
- "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#getTransmissionControls:member(1)",
9471
- "docComment": "",
9472
- "excerptTokens": [
9473
- {
9474
- "kind": "Content",
9475
- "text": "getTransmissionControls(): "
9476
- },
9477
- {
9478
- "kind": "Reference",
9479
- "text": "IChannelControls",
9480
- "canonicalReference": "@microsoft/applicationinsights-core-js!IChannelControls:interface"
9481
- },
9482
- {
9483
- "kind": "Content",
9484
- "text": "[][]"
9485
- },
9486
- {
9487
- "kind": "Content",
9488
- "text": ";"
9489
- }
9490
- ],
9491
- "isOptional": false,
9492
- "returnTypeTokenRange": {
9493
- "startIndex": 1,
9494
- "endIndex": 3
9495
- },
9496
- "releaseTag": "Public",
9497
- "overloadIndex": 1,
9498
- "parameters": [],
9499
- "name": "getTransmissionControls"
9500
- },
9501
9502
  {
9502
9503
  "kind": "PropertySignature",
9503
9504
  "canonicalReference": "@microsoft/applicationinsights-core-js!IAppInsightsCore#getWParam:member",
@@ -9835,8 +9836,9 @@
9835
9836
  "text": "): "
9836
9837
  },
9837
9838
  {
9838
- "kind": "Content",
9839
- "text": "number"
9839
+ "kind": "Reference",
9840
+ "text": "ITimerHandler",
9841
+ "canonicalReference": "@nevware21/ts-utils!ITimerHandler:interface"
9840
9842
  },
9841
9843
  {
9842
9844
  "kind": "Content",
@@ -10730,7 +10732,7 @@
10730
10732
  "excerptTokens": [
10731
10733
  {
10732
10734
  "kind": "Content",
10733
- "text": "flush(async: "
10735
+ "text": "flush?(async: "
10734
10736
  },
10735
10737
  {
10736
10738
  "kind": "Content",
@@ -10766,7 +10768,7 @@
10766
10768
  "text": ";"
10767
10769
  }
10768
10770
  ],
10769
- "isOptional": false,
10771
+ "isOptional": true,
10770
10772
  "returnTypeTokenRange": {
10771
10773
  "startIndex": 7,
10772
10774
  "endIndex": 8
@@ -10808,7 +10810,7 @@
10808
10810
  "excerptTokens": [
10809
10811
  {
10810
10812
  "kind": "Content",
10811
- "text": "pause(): "
10813
+ "text": "pause?(): "
10812
10814
  },
10813
10815
  {
10814
10816
  "kind": "Content",
@@ -10819,7 +10821,7 @@
10819
10821
  "text": ";"
10820
10822
  }
10821
10823
  ],
10822
- "isOptional": false,
10824
+ "isOptional": true,
10823
10825
  "returnTypeTokenRange": {
10824
10826
  "startIndex": 1,
10825
10827
  "endIndex": 2
@@ -10836,7 +10838,7 @@
10836
10838
  "excerptTokens": [
10837
10839
  {
10838
10840
  "kind": "Content",
10839
- "text": "resume(): "
10841
+ "text": "resume?(): "
10840
10842
  },
10841
10843
  {
10842
10844
  "kind": "Content",
@@ -10847,7 +10849,7 @@
10847
10849
  "text": ";"
10848
10850
  }
10849
10851
  ],
10850
- "isOptional": false,
10852
+ "isOptional": true,
10851
10853
  "returnTypeTokenRange": {
10852
10854
  "startIndex": 1,
10853
10855
  "endIndex": 2
@@ -10864,7 +10866,7 @@
10864
10866
  "excerptTokens": [
10865
10867
  {
10866
10868
  "kind": "Content",
10867
- "text": "teardown: "
10869
+ "text": "teardown?: "
10868
10870
  },
10869
10871
  {
10870
10872
  "kind": "Content",
@@ -10894,7 +10896,7 @@
10894
10896
  }
10895
10897
  ],
10896
10898
  "isReadonly": false,
10897
- "isOptional": false,
10899
+ "isOptional": true,
10898
10900
  "releaseTag": "Public",
10899
10901
  "name": "teardown",
10900
10902
  "propertyTypeTokenRange": {
@@ -10917,7 +10919,7 @@
10917
10919
  "excerptTokens": [
10918
10920
  {
10919
10921
  "kind": "Content",
10920
- "text": "export declare type IConfigCheckFn<V> = "
10922
+ "text": "export type IConfigCheckFn<V> = "
10921
10923
  },
10922
10924
  {
10923
10925
  "kind": "Content",
@@ -11181,7 +11183,7 @@
11181
11183
  "excerptTokens": [
11182
11184
  {
11183
11185
  "kind": "Content",
11184
- "text": "export declare type IConfigDefaults<T, C extends "
11186
+ "text": "export type IConfigDefaults<T, C extends "
11185
11187
  },
11186
11188
  {
11187
11189
  "kind": "Reference",
@@ -11258,7 +11260,7 @@
11258
11260
  "excerptTokens": [
11259
11261
  {
11260
11262
  "kind": "Content",
11261
- "text": "export declare type IConfigSetFn<T, V> = "
11263
+ "text": "export type IConfigSetFn<T, V> = "
11262
11264
  },
11263
11265
  {
11264
11266
  "kind": "Content",
@@ -15757,7 +15759,7 @@
15757
15759
  "excerptTokens": [
15758
15760
  {
15759
15761
  "kind": "Content",
15760
- "text": "export declare type InstrumentorHooksCallback = "
15762
+ "text": "export type InstrumentorHooksCallback = "
15761
15763
  },
15762
15764
  {
15763
15765
  "kind": "Content",
@@ -19333,7 +19335,7 @@
19333
19335
  "excerptTokens": [
19334
19336
  {
19335
19337
  "kind": "Content",
19336
- "text": "export declare type LoggingSeverity = "
19338
+ "text": "export type LoggingSeverity = "
19337
19339
  },
19338
19340
  {
19339
19341
  "kind": "Content",
@@ -24122,7 +24124,7 @@
24122
24124
  "excerptTokens": [
24123
24125
  {
24124
24126
  "kind": "Content",
24125
- "text": "export declare type UnloadHandler = "
24127
+ "text": "export type UnloadHandler = "
24126
24128
  },
24127
24129
  {
24128
24130
  "kind": "Content",
@@ -24194,7 +24196,7 @@
24194
24196
  "excerptTokens": [
24195
24197
  {
24196
24198
  "kind": "Content",
24197
- "text": "export declare type WatcherFunction<T extends "
24199
+ "text": "export type WatcherFunction<T extends "
24198
24200
  },
24199
24201
  {
24200
24202
  "kind": "Reference",
@@ -39,6 +39,7 @@ import { isSymbol } from '@nevware21/ts-utils';
39
39
  import { isTruthy } from '@nevware21/ts-utils';
40
40
  import { isTypeof } from '@nevware21/ts-utils';
41
41
  import { isUndefined } from '@nevware21/ts-utils';
42
+ import { ITimerHandler } from '@nevware21/ts-utils';
42
43
  import { objCreateFn as objCreate } from '@microsoft/applicationinsights-shims';
43
44
  import { objDefineAccessors } from '@nevware21/ts-utils';
44
45
  import { objForEachKey } from '@nevware21/ts-utils';
@@ -90,6 +91,8 @@ export class AppInsightsCore implements IAppInsightsCore {
90
91
  eventCnt(): number;
91
92
  evtNamespace(): string;
92
93
  flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
94
+ // (undocumented)
95
+ getChannels(): IChannelControls[];
93
96
  getCookieMgr(): ICookieMgr;
94
97
  // (undocumented)
95
98
  getNotifyMgr(): INotificationManager;
@@ -100,8 +103,6 @@ export class AppInsightsCore implements IAppInsightsCore {
100
103
  // (undocumented)
101
104
  getProcessTelContext(): IProcessTelemetryContext;
102
105
  getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
103
- // (undocumented)
104
- getTransmissionControls(): IChannelControls[][];
105
106
  getWParam: () => number;
106
107
  // (undocumented)
107
108
  initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
@@ -111,7 +112,7 @@ export class AppInsightsCore implements IAppInsightsCore {
111
112
  onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
112
113
  readonly pluginVersionString: string;
113
114
  readonly pluginVersionStringArr: string[];
114
- pollInternalLogs(eventName?: string): number;
115
+ pollInternalLogs(eventName?: string): ITimerHandler;
115
116
  // (undocumented)
116
117
  protected releaseQueue(): void;
117
118
  removeNotificationListener(listener: INotificationListener): void;
@@ -533,13 +534,13 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
533
534
  config: IConfiguration;
534
535
  evtNamespace(): string;
535
536
  flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
537
+ // (undocumented)
538
+ getChannels(): IChannelControls[];
536
539
  getCookieMgr(): ICookieMgr;
537
540
  getNotifyMgr(): INotificationManager;
538
541
  getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
539
542
  getProcessTelContext(): IProcessTelemetryContext;
540
543
  getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
541
- // (undocumented)
542
- getTransmissionControls(): IChannelControls[][];
543
544
  getWParam: () => number;
544
545
  // (undocumented)
545
546
  initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
@@ -550,7 +551,7 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
550
551
  readonly pluginVersionString: string;
551
552
  readonly pluginVersionStringArr: string[];
552
553
  // (undocumented)
553
- pollInternalLogs?(eventName?: string): number;
554
+ pollInternalLogs?(eventName?: string): ITimerHandler;
554
555
  removeNotificationListener?(listener: INotificationListener): void;
555
556
  setCookieMgr(cookieMgr: ICookieMgr): void;
556
557
  setTraceCtx(newTraceCtx: IDistributedTraceContext | null | undefined): void;
@@ -579,10 +580,10 @@ export interface IBaseProcessingContext {
579
580
 
580
581
  // @public
581
582
  export interface IChannelControls extends ITelemetryPlugin {
582
- flush(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
583
- pause(): void;
584
- resume(): void;
585
- teardown: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
583
+ flush?(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
584
+ pause?(): void;
585
+ resume?(): void;
586
+ teardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
586
587
  }
587
588
 
588
589
  // @public
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2211-01
2
+ * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2211-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -42,6 +42,7 @@ declare namespace ApplicationInsights {
42
42
  import { isTruthy } from '@nevware21/ts-utils';
43
43
  import { isTypeof } from '@nevware21/ts-utils';
44
44
  import { isUndefined } from '@nevware21/ts-utils';
45
+ import { ITimerHandler } from '@nevware21/ts-utils';
45
46
  import { objCreateFn as objCreate } from '@microsoft/applicationinsights-shims';
46
47
  import { objDefineAccessors } from '@nevware21/ts-utils';
47
48
  import { objForEachKey } from '@nevware21/ts-utils';
@@ -150,7 +151,7 @@ declare namespace ApplicationInsights {
150
151
  getWParam: () => number;
151
152
  constructor();
152
153
  initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
153
- getTransmissionControls(): IChannelControls[][];
154
+ getChannels(): IChannelControls[];
154
155
  track(telemetryItem: ITelemetryItem): void;
155
156
  getProcessTelContext(): IProcessTelemetryContext;
156
157
  getNotifyMgr(): INotificationManager;
@@ -181,7 +182,7 @@ declare namespace ApplicationInsights {
181
182
  /**
182
183
  * Periodically check logger.queue for
183
184
  */
184
- pollInternalLogs(eventName?: string): number;
185
+ pollInternalLogs(eventName?: string): ITimerHandler;
185
186
  /**
186
187
  * Periodically check logger.queue for
187
188
  */
@@ -853,7 +854,7 @@ declare namespace ApplicationInsights {
853
854
  */
854
855
  isInitialized?: () => boolean;
855
856
  initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
856
- getTransmissionControls(): IChannelControls[][];
857
+ getChannels(): IChannelControls[];
857
858
  track(telemetryItem: ITelemetryItem): void;
858
859
  /**
859
860
  * Get the current notification manager
@@ -886,7 +887,7 @@ declare namespace ApplicationInsights {
886
887
  * @returns - A ITelemetryInitializerHandler to enable the initializer to be removed
887
888
  */
888
889
  addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
889
- pollInternalLogs?(eventName?: string): number;
890
+ pollInternalLogs?(eventName?: string): ITimerHandler;
890
891
  stopPollingInternalLogs?(): void;
891
892
  /**
892
893
  * Return a new instance of the IProcessTelemetryContext for processing events
@@ -1039,11 +1040,11 @@ declare namespace ApplicationInsights {
1039
1040
  /**
1040
1041
  * Pause sending data
1041
1042
  */
1042
- pause(): void;
1043
+ pause?(): void;
1043
1044
  /**
1044
1045
  * Resume sending data
1045
1046
  */
1046
- resume(): void;
1047
+ resume?(): void;
1047
1048
  /**
1048
1049
  * Tear down the plugin and remove any hooked value, the plugin should be removed so that it is no longer initialized and
1049
1050
  * therefore could be re-initialized after being torn down. The plugin should ensure that once this has been called any further
@@ -1052,7 +1053,7 @@ declare namespace ApplicationInsights {
1052
1053
  * @param unloadState - The details / state of the unload process, it holds details like whether it should be unloaded synchronously or asynchronously and the reason for the unload.
1053
1054
  * @returns boolean - true if the plugin has or will call processNext(), this for backward compatibility as previously teardown was synchronous and returned nothing.
1054
1055
  */
1055
- teardown: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
1056
+ teardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
1056
1057
  /**
1057
1058
  * Flush to send data immediately; channel should default to sending data asynchronously
1058
1059
  * @param async - send data asynchronously when true
@@ -1061,7 +1062,7 @@ declare namespace ApplicationInsights {
1061
1062
  * @param sendReason - specify the reason that you are calling "flush" defaults to ManualFlush (1) if not specified
1062
1063
  * @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
1063
1064
  */
1064
- flush(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
1065
+ flush?(async: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): boolean | void;
1065
1066
  }
1066
1067
 
1067
1068
  /**