@microsoft/applicationinsights-core-js 3.0.0-beta.2210-04 → 3.0.0-beta.2210-07

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 (97) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +428 -231
  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 +81 -92
  7. package/dist/applicationinsights-core-js.api.md +3 -6
  8. package/dist/applicationinsights-core-js.d.ts +29 -10
  9. package/dist/applicationinsights-core-js.js +428 -231
  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 +29 -10
  14. package/dist-esm/Config/ConfigDefaults.js +5 -23
  15. package/dist-esm/Config/ConfigDefaults.js.map +1 -1
  16. package/dist-esm/Config/DynamicConfig.js +21 -9
  17. package/dist-esm/Config/DynamicConfig.js.map +1 -1
  18. package/dist-esm/Config/DynamicProperty.js +1 -1
  19. package/dist-esm/Config/DynamicState.js +7 -6
  20. package/dist-esm/Config/DynamicState.js.map +1 -1
  21. package/dist-esm/Config/DynamicSupport.js +10 -10
  22. package/dist-esm/Config/DynamicSupport.js.map +1 -1
  23. package/dist-esm/Config/IConfigDefaults.js +1 -1
  24. package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
  25. package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
  26. package/dist-esm/Config/IDynamicWatcher.js +1 -1
  27. package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
  28. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +5 -6
  29. package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
  30. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  31. package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
  32. package/dist-esm/JavaScriptSDK/CookieMgr.js +4 -5
  33. package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
  34. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  35. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  36. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  37. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  38. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
  39. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  40. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  41. package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
  42. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  43. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  44. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  45. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  46. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +24 -19
  47. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
  48. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  49. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  50. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  51. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  52. package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -2
  65. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js.map +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  69. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  70. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  71. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  72. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  73. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  74. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  75. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  76. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  77. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  78. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  79. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  80. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
  81. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  82. package/dist-esm/__DynamicConstants.js +2 -1
  83. package/dist-esm/__DynamicConstants.js.map +1 -1
  84. package/dist-esm/applicationinsights-core-js.js +1 -2
  85. package/dist-esm/applicationinsights-core-js.js.map +1 -1
  86. package/package.json +3 -3
  87. package/src/JavaScriptSDK/AppInsightsCore.ts +3 -4
  88. package/src/JavaScriptSDK/CookieMgr.ts +2 -3
  89. package/src/JavaScriptSDK/ProcessTelemetryContext.ts +25 -18
  90. package/src/JavaScriptSDK.Interfaces/IDiagnosticLogger.ts +6 -8
  91. package/types/Config/ConfigDefaults.d.ts +3 -3
  92. package/types/Config/IDynamicConfigHandler.d.ts +7 -0
  93. package/types/Config/IDynamicWatcher.d.ts +17 -2
  94. package/types/JavaScriptSDK.Interfaces/IDiagnosticLogger.d.ts +6 -6
  95. package/types/__DynamicConstants.d.ts +1 -0
  96. package/types/applicationinsights-core-js.d.ts +0 -1
  97. package/types/tsdoc-metadata.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.32.0",
4
+ "toolVersion": "7.32.1",
5
5
  "schemaVersion": 1009,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -4806,84 +4806,6 @@
4806
4806
  }
4807
4807
  ]
4808
4808
  },
4809
- {
4810
- "kind": "Function",
4811
- "canonicalReference": "@microsoft/applicationinsights-core-js!applyDefaults:function(1)",
4812
- "docComment": "",
4813
- "excerptTokens": [
4814
- {
4815
- "kind": "Content",
4816
- "text": "export declare function applyDefaults<C>(theConfig: "
4817
- },
4818
- {
4819
- "kind": "Content",
4820
- "text": "C"
4821
- },
4822
- {
4823
- "kind": "Content",
4824
- "text": ", defaultValues: "
4825
- },
4826
- {
4827
- "kind": "Reference",
4828
- "text": "IConfigDefaults",
4829
- "canonicalReference": "@microsoft/applicationinsights-core-js!IConfigDefaults:type"
4830
- },
4831
- {
4832
- "kind": "Content",
4833
- "text": "<C>"
4834
- },
4835
- {
4836
- "kind": "Content",
4837
- "text": "): "
4838
- },
4839
- {
4840
- "kind": "Content",
4841
- "text": "C"
4842
- },
4843
- {
4844
- "kind": "Content",
4845
- "text": ";"
4846
- }
4847
- ],
4848
- "returnTypeTokenRange": {
4849
- "startIndex": 6,
4850
- "endIndex": 7
4851
- },
4852
- "releaseTag": "Public",
4853
- "overloadIndex": 1,
4854
- "parameters": [
4855
- {
4856
- "parameterName": "theConfig",
4857
- "parameterTypeTokenRange": {
4858
- "startIndex": 1,
4859
- "endIndex": 2
4860
- },
4861
- "isOptional": false
4862
- },
4863
- {
4864
- "parameterName": "defaultValues",
4865
- "parameterTypeTokenRange": {
4866
- "startIndex": 3,
4867
- "endIndex": 5
4868
- },
4869
- "isOptional": false
4870
- }
4871
- ],
4872
- "typeParameters": [
4873
- {
4874
- "typeParameterName": "C",
4875
- "constraintTokenRange": {
4876
- "startIndex": 0,
4877
- "endIndex": 0
4878
- },
4879
- "defaultTypeTokenRange": {
4880
- "startIndex": 0,
4881
- "endIndex": 0
4882
- }
4883
- }
4884
- ],
4885
- "name": "applyDefaults"
4886
- },
4887
4809
  {
4888
4810
  "kind": "Function",
4889
4811
  "canonicalReference": "@microsoft/applicationinsights-core-js!areCookiesSupported:function(1)",
@@ -12900,7 +12822,7 @@
12900
12822
  {
12901
12823
  "kind": "MethodSignature",
12902
12824
  "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#errorToConsole:member(1)",
12903
- "docComment": "/**\n * This will write an error to the console if possible. Provided by the default DiagnosticLogger instance, and internally the SDK will fall back to warnToConsole, however, direct callers MUST check for its existence on the logger as you can provide your own IDiagnosticLogger instance.\n *\n * @param message - - The error message\n */\n",
12825
+ "docComment": "/**\n * This will write an error to the console if possible. Provided by the default DiagnosticLogger instance, and internally the SDK will fall back to warnToConsole, however, direct callers MUST check for its existence on the logger as you can provide your own IDiagnosticLogger instance.\n *\n * @param message - The error message\n */\n",
12904
12826
  "excerptTokens": [
12905
12827
  {
12906
12828
  "kind": "Content",
@@ -12945,7 +12867,7 @@
12945
12867
  {
12946
12868
  "kind": "MethodSignature",
12947
12869
  "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#logInternalMessage:member(1)",
12948
- "docComment": "/**\n * Logs a message to the internal queue.\n *\n * @param severity - - The severity of the log message\n *\n * @param message - - The message to log.\n */\n",
12870
+ "docComment": "/**\n * Logs a message to the internal queue.\n *\n * @param severity - The severity of the log message\n *\n * @param message - The message to log.\n */\n",
12949
12871
  "excerptTokens": [
12950
12872
  {
12951
12873
  "kind": "Content",
@@ -13122,7 +13044,7 @@
13122
13044
  {
13123
13045
  "kind": "MethodSignature",
13124
13046
  "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#throwInternal:member(1)",
13125
- "docComment": "/**\n * This method will throw exceptions in debug mode or attempt to log the error as a console warning.\n *\n * @param severity - - The severity of the log message\n *\n * @param message - - The log message.\n */\n",
13047
+ "docComment": "/**\n * This method will throw exceptions in debug mode or attempt to log the error as a console warning.\n *\n * @param severity - The severity of the log message\n *\n * @param message - The log message.\n */\n",
13126
13048
  "excerptTokens": [
13127
13049
  {
13128
13050
  "kind": "Content",
@@ -13280,7 +13202,7 @@
13280
13202
  {
13281
13203
  "kind": "MethodSignature",
13282
13204
  "canonicalReference": "@microsoft/applicationinsights-core-js!IDiagnosticLogger#warnToConsole:member(1)",
13283
- "docComment": "/**\n * This will write a warning to the console if possible\n *\n * @param message - - The warning message\n */\n",
13205
+ "docComment": "/**\n * This will write a warning to the console if possible\n *\n * @param message - The warning message\n */\n",
13284
13206
  "excerptTokens": [
13285
13207
  {
13286
13208
  "kind": "Content",
@@ -13779,6 +13701,42 @@
13779
13701
  "endIndex": 2
13780
13702
  }
13781
13703
  },
13704
+ {
13705
+ "kind": "PropertySignature",
13706
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDynamicConfigHandler#setDf:member",
13707
+ "docComment": "/**\n * Set default values for the config if not present.\n *\n * @param theConfig - The configuration object to set default on (if missing)\n *\n * @param defaultValues - The default values to apply to the config\n */\n",
13708
+ "excerptTokens": [
13709
+ {
13710
+ "kind": "Content",
13711
+ "text": "setDf: "
13712
+ },
13713
+ {
13714
+ "kind": "Content",
13715
+ "text": "<C>(theConfig: C, defaultValues: "
13716
+ },
13717
+ {
13718
+ "kind": "Reference",
13719
+ "text": "IConfigDefaults",
13720
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IConfigDefaults:type"
13721
+ },
13722
+ {
13723
+ "kind": "Content",
13724
+ "text": "<C, T>) => C"
13725
+ },
13726
+ {
13727
+ "kind": "Content",
13728
+ "text": ";"
13729
+ }
13730
+ ],
13731
+ "isReadonly": false,
13732
+ "isOptional": false,
13733
+ "releaseTag": "Public",
13734
+ "name": "setDf",
13735
+ "propertyTypeTokenRange": {
13736
+ "startIndex": 1,
13737
+ "endIndex": 4
13738
+ }
13739
+ },
13782
13740
  {
13783
13741
  "kind": "PropertySignature",
13784
13742
  "canonicalReference": "@microsoft/applicationinsights-core-js!IDynamicConfigHandler#uid:member",
@@ -18948,7 +18906,7 @@
18948
18906
  {
18949
18907
  "kind": "PropertySignature",
18950
18908
  "canonicalReference": "@microsoft/applicationinsights-core-js!IWatchDetails#cfg:member",
18951
- "docComment": "",
18909
+ "docComment": "/**\n * The current config object\n */\n",
18952
18910
  "excerptTokens": [
18953
18911
  {
18954
18912
  "kind": "Content",
@@ -18974,21 +18932,52 @@
18974
18932
  },
18975
18933
  {
18976
18934
  "kind": "PropertySignature",
18977
- "canonicalReference": "@microsoft/applicationinsights-core-js!IWatchDetails#hdlr:member",
18978
- "docComment": "",
18935
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IWatchDetails#set:member",
18936
+ "docComment": "/**\n * Set the value against the provided config/name with the value, the property will be converted to be dynamic (if not already) as long as the provided config is already a tracked dynamic object.\n *\n * @throws\n *\n * TypeError if the provided config is not a monitored dynamic config\n */\n",
18937
+ "excerptTokens": [
18938
+ {
18939
+ "kind": "Content",
18940
+ "text": "set: "
18941
+ },
18942
+ {
18943
+ "kind": "Content",
18944
+ "text": "<C, V>(theConfig: C, name: string, value: V) => V"
18945
+ },
18946
+ {
18947
+ "kind": "Content",
18948
+ "text": ";"
18949
+ }
18950
+ ],
18951
+ "isReadonly": false,
18952
+ "isOptional": false,
18953
+ "releaseTag": "Public",
18954
+ "name": "set",
18955
+ "propertyTypeTokenRange": {
18956
+ "startIndex": 1,
18957
+ "endIndex": 2
18958
+ }
18959
+ },
18960
+ {
18961
+ "kind": "PropertySignature",
18962
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IWatchDetails#setDf:member",
18963
+ "docComment": "/**\n * Set default values for the config if not present.\n *\n * @param theConfig - The configuration object to set default on (if missing)\n *\n * @param defaultValues - The default values to apply to the config\n */\n",
18979
18964
  "excerptTokens": [
18980
18965
  {
18981
18966
  "kind": "Content",
18982
- "text": "hdlr: "
18967
+ "text": "setDf: "
18968
+ },
18969
+ {
18970
+ "kind": "Content",
18971
+ "text": "<C>(theConfig: C, defaultValues: "
18983
18972
  },
18984
18973
  {
18985
18974
  "kind": "Reference",
18986
- "text": "IDynamicConfigHandler",
18987
- "canonicalReference": "@microsoft/applicationinsights-core-js!IDynamicConfigHandler:interface"
18975
+ "text": "IConfigDefaults",
18976
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IConfigDefaults:type"
18988
18977
  },
18989
18978
  {
18990
18979
  "kind": "Content",
18991
- "text": "<T>"
18980
+ "text": "<C>) => C"
18992
18981
  },
18993
18982
  {
18994
18983
  "kind": "Content",
@@ -18998,10 +18987,10 @@
18998
18987
  "isReadonly": false,
18999
18988
  "isOptional": false,
19000
18989
  "releaseTag": "Public",
19001
- "name": "hdlr",
18990
+ "name": "setDf",
19002
18991
  "propertyTypeTokenRange": {
19003
18992
  "startIndex": 1,
19004
- "endIndex": 3
18993
+ "endIndex": 4
19005
18994
  }
19006
18995
  }
19007
18996
  ],
@@ -124,9 +124,6 @@ export class AppInsightsCore implements IAppInsightsCore {
124
124
  protected _updateHook?(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
125
125
  }
126
126
 
127
- // @public (undocumented)
128
- export function applyDefaults<C>(theConfig: C, defaultValues: IConfigDefaults<C>): C;
129
-
130
127
  // @public (undocumented)
131
128
  export function areCookiesSupported(logger?: IDiagnosticLogger): any;
132
129
 
@@ -713,6 +710,7 @@ export interface IDynamicConfigHandler<T extends IConfiguration> {
713
710
  logger: IDiagnosticLogger;
714
711
  notify: () => void;
715
712
  set: <C, V>(theConfig: C, name: string, value: V) => V;
713
+ setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C, T>) => C;
716
714
  readonly uid: string;
717
715
  watch: (configHandler: WatcherFunction<T>) => IWatcherHandler<T>;
718
716
  }
@@ -1056,10 +1054,9 @@ export interface IUnloadHook {
1056
1054
 
1057
1055
  // @public (undocumented)
1058
1056
  export interface IWatchDetails<T extends IConfiguration> {
1059
- // (undocumented)
1060
1057
  cfg: T;
1061
- // (undocumented)
1062
- hdlr: IDynamicConfigHandler<T>;
1058
+ set: <C, V>(theConfig: C, name: string, value: V) => V;
1059
+ setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C>) => C;
1063
1060
  }
1064
1061
 
1065
1062
  // @public (undocumented)
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2210-04
2
+ * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2210-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -251,8 +251,6 @@ declare namespace ApplicationInsights {
251
251
  protected _updateHook?(updateCtx: IProcessTelemetryUpdateContext, updateState: ITelemetryUpdateState): void | boolean;
252
252
  }
253
253
 
254
- function applyDefaults<C>(theConfig: C, defaultValues: IConfigDefaults<C>): C;
255
-
256
254
  function areCookiesSupported(logger?: IDiagnosticLogger): any;
257
255
 
258
256
  export { arrForEach }
@@ -1370,20 +1368,20 @@ declare namespace ApplicationInsights {
1370
1368
  queue: _InternalLogMessage[];
1371
1369
  /**
1372
1370
  * This method will throw exceptions in debug mode or attempt to log the error as a console warning.
1373
- * @param severity - {LoggingSeverity} - The severity of the log message
1374
- * @param message - {_InternalLogMessage} - The log message.
1371
+ * @param severity - The severity of the log message
1372
+ * @param message - The log message.
1375
1373
  */
1376
1374
  throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
1377
1375
  /**
1378
1376
  * This will write a warning to the console if possible
1379
- * @param message - {string} - The warning message
1377
+ * @param message - The warning message
1380
1378
  */
1381
1379
  warnToConsole(message: string): void;
1382
1380
  /**
1383
1381
  * This will write an error to the console if possible.
1384
1382
  * Provided by the default DiagnosticLogger instance, and internally the SDK will fall back to warnToConsole, however,
1385
1383
  * direct callers MUST check for its existence on the logger as you can provide your own IDiagnosticLogger instance.
1386
- * @param message - {string} - The error message
1384
+ * @param message - The error message
1387
1385
  */
1388
1386
  errorToConsole?(message: string): void;
1389
1387
  /**
@@ -1392,8 +1390,8 @@ declare namespace ApplicationInsights {
1392
1390
  resetInternalMessageCount(): void;
1393
1391
  /**
1394
1392
  * Logs a message to the internal queue.
1395
- * @param severity - {LoggingSeverity} - The severity of the log message
1396
- * @param message - {_InternalLogMessage} - The message to log.
1393
+ * @param severity - The severity of the log message
1394
+ * @param message - The message to log.
1397
1395
  */
1398
1396
  logInternalMessage?(severity: LoggingSeverity, message: _InternalLogMessage): void;
1399
1397
  /**
@@ -1478,6 +1476,12 @@ declare namespace ApplicationInsights {
1478
1476
  * @throws TypeError if the provided config is not a monitored dynamic config
1479
1477
  */
1480
1478
  set: <C, V>(theConfig: C, name: string, value: V) => V;
1479
+ /**
1480
+ * Set default values for the config if not present.
1481
+ * @param theConfig - The configuration object to set default on (if missing)
1482
+ * @param defaultValues - The default values to apply to the config
1483
+ */
1484
+ setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C, T>) => C;
1481
1485
  }
1482
1486
 
1483
1487
  interface IDynamicPropertyHandler<T> {
@@ -2258,8 +2262,23 @@ declare namespace ApplicationInsights {
2258
2262
  }
2259
2263
 
2260
2264
  interface IWatchDetails<T extends IConfiguration> {
2265
+ /**
2266
+ * The current config object
2267
+ */
2261
2268
  cfg: T;
2262
- hdlr: IDynamicConfigHandler<T>;
2269
+ /**
2270
+ * Set the value against the provided config/name with the value, the property
2271
+ * will be converted to be dynamic (if not already) as long as the provided config
2272
+ * is already a tracked dynamic object.
2273
+ * @throws TypeError if the provided config is not a monitored dynamic config
2274
+ */
2275
+ set: <C, V>(theConfig: C, name: string, value: V) => V;
2276
+ /**
2277
+ * Set default values for the config if not present.
2278
+ * @param theConfig - The configuration object to set default on (if missing)
2279
+ * @param defaultValues - The default values to apply to the config
2280
+ */
2281
+ setDf: <C>(theConfig: C, defaultValues: IConfigDefaults<C>) => C;
2263
2282
  }
2264
2283
 
2265
2284
  interface IWatcherHandler<T extends IConfiguration> extends IUnloadHook {