@microsoft/applicationinsights-core-js 3.1.1-nightly3.2402-16 → 3.1.1-nightly3.2402-22

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 (94) hide show
  1. package/browser/es5/applicationinsights-core-js.cjs.js +33 -1
  2. package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-core-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-core-js.gbl.js +35 -3
  6. package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-core-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-core-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-core-js.js +35 -3
  11. package/browser/es5/applicationinsights-core-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-core-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-core-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-core-js.js +33 -1
  15. package/dist/es5/applicationinsights-core-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-core-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-core-js.min.js.map +1 -1
  18. package/dist-es5/Config/ConfigDefaultHelpers.js +1 -1
  19. package/dist-es5/Config/ConfigDefaults.js +1 -1
  20. package/dist-es5/Config/DynamicConfig.js +1 -1
  21. package/dist-es5/Config/DynamicProperty.js +1 -1
  22. package/dist-es5/Config/DynamicState.js +1 -1
  23. package/dist-es5/Config/DynamicSupport.js +1 -1
  24. package/dist-es5/Config/IConfigDefaults.js +1 -1
  25. package/dist-es5/Config/IDynamicConfigHandler.js +1 -1
  26. package/dist-es5/Config/IDynamicPropertyHandler.js +1 -1
  27. package/dist-es5/Config/IDynamicWatcher.js +1 -1
  28. package/dist-es5/Config/_IDynamicConfigHandlerState.js +1 -1
  29. package/dist-es5/JavaScriptSDK/AggregationError.js +1 -1
  30. package/dist-es5/JavaScriptSDK/AppInsightsCore.js +1 -1
  31. package/dist-es5/JavaScriptSDK/AsyncUtils.js +1 -1
  32. package/dist-es5/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  33. package/dist-es5/JavaScriptSDK/Constants.js +1 -1
  34. package/dist-es5/JavaScriptSDK/CookieMgr.js +1 -1
  35. package/dist-es5/JavaScriptSDK/CoreUtils.js +1 -1
  36. package/dist-es5/JavaScriptSDK/DataCacheHelper.js +1 -1
  37. package/dist-es5/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  38. package/dist-es5/JavaScriptSDK/DiagnosticLogger.js +1 -1
  39. package/dist-es5/JavaScriptSDK/EnvUtils.js +1 -1
  40. package/dist-es5/JavaScriptSDK/EventHelpers.js +1 -1
  41. package/dist-es5/JavaScriptSDK/HelperFuncs.js +1 -1
  42. package/dist-es5/JavaScriptSDK/InstrumentHooks.js +1 -1
  43. package/dist-es5/JavaScriptSDK/InternalConstants.js +4 -1
  44. package/dist-es5/JavaScriptSDK/InternalConstants.js.map +1 -1
  45. package/dist-es5/JavaScriptSDK/NotificationManager.js +28 -3
  46. package/dist-es5/JavaScriptSDK/NotificationManager.js.map +1 -1
  47. package/dist-es5/JavaScriptSDK/PerfManager.js +1 -1
  48. package/dist-es5/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  49. package/dist-es5/JavaScriptSDK/RandomHelper.js +1 -1
  50. package/dist-es5/JavaScriptSDK/TelemetryHelpers.js +1 -1
  51. package/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  52. package/dist-es5/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  53. package/dist-es5/JavaScriptSDK/UnloadHookContainer.js +1 -1
  54. package/dist-es5/JavaScriptSDK/W3cTraceParent.js +1 -1
  55. package/dist-es5/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  56. package/dist-es5/JavaScriptSDK.Enums/EventsDiscardedReason.js +22 -1
  57. package/dist-es5/JavaScriptSDK.Enums/EventsDiscardedReason.js.map +1 -1
  58. package/dist-es5/JavaScriptSDK.Enums/FeatureOptInEnums.js +1 -1
  59. package/dist-es5/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  60. package/dist-es5/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  61. package/dist-es5/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  62. package/dist-es5/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  63. package/dist-es5/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  64. package/dist-es5/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  65. package/dist-es5/JavaScriptSDK.Interfaces/IChannelControlsHost.js +1 -1
  66. package/dist-es5/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  67. package/dist-es5/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  68. package/dist-es5/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  69. package/dist-es5/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  70. package/dist-es5/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  71. package/dist-es5/JavaScriptSDK.Interfaces/IFeatureOptIn.js +1 -1
  72. package/dist-es5/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  73. package/dist-es5/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  74. package/dist-es5/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  75. package/dist-es5/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  76. package/dist-es5/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  77. package/dist-es5/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  78. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  79. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  80. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  81. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  82. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  83. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  84. package/dist-es5/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  85. package/dist-es5/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
  86. package/dist-es5/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  87. package/dist-es5/JavaScriptSDK.Interfaces/IXHROverride.js +1 -1
  88. package/dist-es5/__DynamicConstants.js +2 -2
  89. package/dist-es5/__DynamicConstants.js.map +1 -1
  90. package/dist-es5/applicationinsights-core-js.js +2 -2
  91. package/dist-es5/applicationinsights-core-js.js.map +1 -1
  92. package/package.json +1 -1
  93. package/types/applicationinsights-core-js.d.ts +85 -1
  94. package/types/applicationinsights-core-js.namespaced.d.ts +85 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -13,7 +13,7 @@
13
13
  // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
14
  export var _DYN_TO_LOWER_CASE = "toLowerCase"; // Count: 9
15
15
  export var _DYN_BLK_VAL = "blkVal"; // Count: 5
16
- export var _DYN_LENGTH = "length"; // Count: 43
16
+ export var _DYN_LENGTH = "length"; // Count: 44
17
17
  export var _DYN_RD_ONLY = "rdOnly"; // Count: 4
18
18
  export var _DYN_NOTIFY = "notify"; // Count: 4
19
19
  export var _DYN_WARN_TO_CONSOLE = "warnToConsole"; // Count: 4
@@ -1 +1 @@
1
- {"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 9\r\nexport var _DYN_BLK_VAL = \"blkVal\"; // Count: 5\r\nexport var _DYN_LENGTH = \"length\"; // Count: 43\r\nexport var _DYN_RD_ONLY = \"rdOnly\"; // Count: 4\r\nexport var _DYN_NOTIFY = \"notify\"; // Count: 4\r\nexport var _DYN_WARN_TO_CONSOLE = \"warnToConsole\"; // Count: 4\r\nexport var _DYN_THROW_INTERNAL = \"throwInternal\"; // Count: 5\r\nexport var _DYN_SET_DF = \"setDf\"; // Count: 6\r\nexport var _DYN_WATCH = \"watch\"; // Count: 9\r\nexport var _DYN_LOGGER = \"logger\"; // Count: 21\r\nexport var _DYN_APPLY = \"apply\"; // Count: 7\r\nexport var _DYN_PUSH = \"push\"; // Count: 31\r\nexport var _DYN_SPLICE = \"splice\"; // Count: 8\r\nexport var _DYN_HDLR = \"hdlr\"; // Count: 6\r\nexport var _DYN_CANCEL = \"cancel\"; // Count: 5\r\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 4\r\nexport var _DYN_IDENTIFIER = \"identifier\"; // Count: 8\r\nexport var _DYN_IS_INITIALIZED = \"isInitialized\"; // Count: 10\r\nexport var _DYN_GET_PLUGIN = \"getPlugin\"; // Count: 6\r\nexport var _DYN_POLL_INTERNAL_LOGS = \"pollInternalLogs\"; // Count: 2\r\nexport var _DYN_NAME = \"name\"; // Count: 11\r\nexport var _DYN_TIME = \"time\"; // Count: 6\r\nexport var _DYN_PROCESS_NEXT = \"processNext\"; // Count: 15\r\nexport var _DYN_GET_PROCESS_TEL_CONT0 = \"getProcessTelContext\"; // Count: 2\r\nexport var _DYN_GET_NOTIFY_MGR = \"getNotifyMgr\"; // Count: 5\r\nexport var _DYN_ADD_NOTIFICATION_LIS1 = \"addNotificationListener\"; // Count: 4\r\nexport var _DYN_REMOVE_NOTIFICATION_2 = \"removeNotificationListener\"; // Count: 4\r\nexport var _DYN_ENABLED = \"enabled\"; // Count: 6\r\nexport var _DYN_STOP_POLLING_INTERNA3 = \"stopPollingInternalLogs\"; // Count: 2\r\nexport var _DYN_UNLOAD = \"unload\"; // Count: 9\r\nexport var _DYN_ON_COMPLETE = \"onComplete\"; // Count: 5\r\nexport var _DYN_VERSION = \"version\"; // Count: 6\r\nexport var _DYN_LOGGING_LEVEL_CONSOL4 = \"loggingLevelConsole\"; // Count: 2\r\nexport var _DYN_CREATE_NEW = \"createNew\"; // Count: 7\r\nexport var _DYN_TEARDOWN = \"teardown\"; // Count: 9\r\nexport var _DYN_MESSAGE_ID = \"messageId\"; // Count: 4\r\nexport var _DYN_MESSAGE = \"message\"; // Count: 6\r\nexport var _DYN_IS_ASYNC = \"isAsync\"; // Count: 6\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 10\r\nexport var _DYN__DO_TEARDOWN = \"_doTeardown\"; // Count: 4\r\nexport var _DYN_UPDATE = \"update\"; // Count: 6\r\nexport var _DYN_GET_NEXT = \"getNext\"; // Count: 12\r\nexport var _DYN_SET_NEXT_PLUGIN = \"setNextPlugin\"; // Count: 5\r\nexport var _DYN_USER_AGENT = \"userAgent\"; // Count: 5\r\nexport var _DYN_SPLIT = \"split\"; // Count: 6\r\nexport var _DYN_NODE_TYPE = \"nodeType\"; // Count: 3\r\nexport var _DYN_REPLACE = \"replace\"; // Count: 8\r\nexport var _DYN_LOG_INTERNAL_MESSAGE = \"logInternalMessage\"; // Count: 2\r\nexport var _DYN_TYPE = \"type\"; // Count: 14\r\nexport var _DYN_HANDLER = \"handler\"; // Count: 5\r\nexport var _DYN_IS_CHILD_EVT = \"isChildEvt\"; // Count: 3\r\nexport var _DYN_GET_CTX = \"getCtx\"; // Count: 6\r\nexport var _DYN_SET_CTX = \"setCtx\"; // Count: 10\r\nexport var _DYN_COMPLETE = \"complete\"; // Count: 3\r\nexport var _DYN_TRACE_ID = \"traceId\"; // Count: 5\r\nexport var _DYN_SPAN_ID = \"spanId\"; // Count: 5\r\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 6\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 9\r\nexport var _DYN_BLK_VAL = \"blkVal\"; // Count: 5\r\nexport var _DYN_LENGTH = \"length\"; // Count: 44\r\nexport var _DYN_RD_ONLY = \"rdOnly\"; // Count: 4\r\nexport var _DYN_NOTIFY = \"notify\"; // Count: 4\r\nexport var _DYN_WARN_TO_CONSOLE = \"warnToConsole\"; // Count: 4\r\nexport var _DYN_THROW_INTERNAL = \"throwInternal\"; // Count: 5\r\nexport var _DYN_SET_DF = \"setDf\"; // Count: 6\r\nexport var _DYN_WATCH = \"watch\"; // Count: 9\r\nexport var _DYN_LOGGER = \"logger\"; // Count: 21\r\nexport var _DYN_APPLY = \"apply\"; // Count: 7\r\nexport var _DYN_PUSH = \"push\"; // Count: 31\r\nexport var _DYN_SPLICE = \"splice\"; // Count: 8\r\nexport var _DYN_HDLR = \"hdlr\"; // Count: 6\r\nexport var _DYN_CANCEL = \"cancel\"; // Count: 5\r\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 4\r\nexport var _DYN_IDENTIFIER = \"identifier\"; // Count: 8\r\nexport var _DYN_IS_INITIALIZED = \"isInitialized\"; // Count: 10\r\nexport var _DYN_GET_PLUGIN = \"getPlugin\"; // Count: 6\r\nexport var _DYN_POLL_INTERNAL_LOGS = \"pollInternalLogs\"; // Count: 2\r\nexport var _DYN_NAME = \"name\"; // Count: 11\r\nexport var _DYN_TIME = \"time\"; // Count: 6\r\nexport var _DYN_PROCESS_NEXT = \"processNext\"; // Count: 15\r\nexport var _DYN_GET_PROCESS_TEL_CONT0 = \"getProcessTelContext\"; // Count: 2\r\nexport var _DYN_GET_NOTIFY_MGR = \"getNotifyMgr\"; // Count: 5\r\nexport var _DYN_ADD_NOTIFICATION_LIS1 = \"addNotificationListener\"; // Count: 4\r\nexport var _DYN_REMOVE_NOTIFICATION_2 = \"removeNotificationListener\"; // Count: 4\r\nexport var _DYN_ENABLED = \"enabled\"; // Count: 6\r\nexport var _DYN_STOP_POLLING_INTERNA3 = \"stopPollingInternalLogs\"; // Count: 2\r\nexport var _DYN_UNLOAD = \"unload\"; // Count: 9\r\nexport var _DYN_ON_COMPLETE = \"onComplete\"; // Count: 5\r\nexport var _DYN_VERSION = \"version\"; // Count: 6\r\nexport var _DYN_LOGGING_LEVEL_CONSOL4 = \"loggingLevelConsole\"; // Count: 2\r\nexport var _DYN_CREATE_NEW = \"createNew\"; // Count: 7\r\nexport var _DYN_TEARDOWN = \"teardown\"; // Count: 9\r\nexport var _DYN_MESSAGE_ID = \"messageId\"; // Count: 4\r\nexport var _DYN_MESSAGE = \"message\"; // Count: 6\r\nexport var _DYN_IS_ASYNC = \"isAsync\"; // Count: 6\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 10\r\nexport var _DYN__DO_TEARDOWN = \"_doTeardown\"; // Count: 4\r\nexport var _DYN_UPDATE = \"update\"; // Count: 6\r\nexport var _DYN_GET_NEXT = \"getNext\"; // Count: 12\r\nexport var _DYN_SET_NEXT_PLUGIN = \"setNextPlugin\"; // Count: 5\r\nexport var _DYN_USER_AGENT = \"userAgent\"; // Count: 5\r\nexport var _DYN_SPLIT = \"split\"; // Count: 6\r\nexport var _DYN_NODE_TYPE = \"nodeType\"; // Count: 3\r\nexport var _DYN_REPLACE = \"replace\"; // Count: 8\r\nexport var _DYN_LOG_INTERNAL_MESSAGE = \"logInternalMessage\"; // Count: 2\r\nexport var _DYN_TYPE = \"type\"; // Count: 14\r\nexport var _DYN_HANDLER = \"handler\"; // Count: 5\r\nexport var _DYN_IS_CHILD_EVT = \"isChildEvt\"; // Count: 3\r\nexport var _DYN_GET_CTX = \"getCtx\"; // Count: 6\r\nexport var _DYN_SET_CTX = \"setCtx\"; // Count: 10\r\nexport var _DYN_COMPLETE = \"complete\"; // Count: 3\r\nexport var _DYN_TRACE_ID = \"traceId\"; // Count: 5\r\nexport var _DYN_SPAN_ID = \"spanId\"; // Count: 5\r\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 6\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -1,9 +1,9 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-16
2
+ * Application Insights JavaScript SDK - Core, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export { MinChannelPriorty } from "./JavaScriptSDK.Interfaces/IChannelControls";
6
- export { EventsDiscardedReason } from "./JavaScriptSDK.Enums/EventsDiscardedReason";
6
+ export { EventsDiscardedReason, BatchDiscardedReason } from "./JavaScriptSDK.Enums/EventsDiscardedReason";
7
7
  export { throwAggregationError } from "./JavaScriptSDK/AggregationError";
8
8
  export { AppInsightsCore } from "./JavaScriptSDK/AppInsightsCore";
9
9
  export { BaseTelemetryPlugin } from "./JavaScriptSDK/BaseTelemetryPlugin";
@@ -1 +1 @@
1
- {"version":3,"file":"applicationinsights-core-js.js.map","sources":["applicationinsights-core-js.js"],"sourcesContent":["export { MinChannelPriorty } from \"./JavaScriptSDK.Interfaces/IChannelControls\";\r\nexport { EventsDiscardedReason } from \"./JavaScriptSDK.Enums/EventsDiscardedReason\";\r\nexport { throwAggregationError } from \"./JavaScriptSDK/AggregationError\";\r\nexport { AppInsightsCore } from \"./JavaScriptSDK/AppInsightsCore\";\r\nexport { BaseTelemetryPlugin } from \"./JavaScriptSDK/BaseTelemetryPlugin\";\r\nexport { randomValue, random32, mwcRandomSeed, mwcRandom32, newId } from \"./JavaScriptSDK/RandomHelper\";\r\nexport { Undefined, newGuid, generateW3CId } from \"./JavaScriptSDK/CoreUtils\";\r\nexport { runTargetUnload, doUnloadAll } from \"./JavaScriptSDK/AsyncUtils\";\r\nexport { normalizeJsName, toISOString, getExceptionName, strContains, setValue, getSetValue, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objExtend, isFeatureEnabled } from \"./JavaScriptSDK/HelperFuncs\";\r\nexport { isArray, isTypeof, isUndefined, isNullOrUndefined, objHasOwnProperty as hasOwnProperty, isObject, isFunction, strEndsWith, strStartsWith, isDate, isError, isString, isNumber, isBoolean, arrForEach, arrIndexOf, arrReduce, arrMap, strTrim, objKeys, objDefineAccessors, throwError, isSymbol, isNotTruthy, isTruthy, objFreeze, objSeal, objToString, objDeepFreeze as deepFreeze, getInst as getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, hasNavigator, getNavigator, hasHistory, getHistory, dumpObj, asString, objForEachKey, getPerformance, utcNow as dateNow, perfNow } from \"@nevware21/ts-utils\";\r\nexport { createEnumStyle, createValueMap } from \"./JavaScriptSDK.Enums/EnumHelperFuncs\";\r\nexport { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, __getRegisteredEvents } from \"./JavaScriptSDK/EventHelpers\";\r\nexport { getCrypto, getMsCrypto, getLocation, hasJSON, getJSON, isReactNative, getConsole, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported, findMetaTag, findNamedServerTiming, sendCustomEvent, dispatchEvent, createCustomDomEvent } from \"./JavaScriptSDK/EnvUtils\";\r\nexport { getGlobal, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from \"@microsoft/applicationinsights-shims\";\r\nexport { NotificationManager } from \"./JavaScriptSDK/NotificationManager\";\r\nexport { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from \"./JavaScriptSDK/PerfManager\";\r\nexport { safeGetLogger, DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole, _logInternalMessage } from \"./JavaScriptSDK/DiagnosticLogger\";\r\nexport { ProcessTelemetryContext, createProcessTelemetryContext\r\n// Explicitly NOT exporting createProcessTelemetryUnloadContext() and createProcessTelemetryUpdateContext() as these should only be created internally\r\n } from \"./JavaScriptSDK/ProcessTelemetryContext\";\r\nexport { initializePlugins, sortPlugins, unloadComponents } from \"./JavaScriptSDK/TelemetryHelpers\";\r\nexport { LoggingSeverity } from \"./JavaScriptSDK.Enums/LoggingEnums\";\r\nexport { InstrumentProto, InstrumentProtos, InstrumentFunc, InstrumentFuncs, InstrumentEvent } from \"./JavaScriptSDK/InstrumentHooks\";\r\nexport { createCookieMgr, safeGetCookieMgr, uaDisallowsSameSiteNone, areCookiesSupported } from \"./JavaScriptSDK/CookieMgr\";\r\nexport { getDebugListener, getDebugExt } from \"./JavaScriptSDK/DbgExtensionUtils\";\r\nexport { createUniqueNamespace } from \"./JavaScriptSDK/DataCacheHelper\";\r\nexport { createUnloadHandlerContainer } from \"./JavaScriptSDK/UnloadHandlerContainer\";\r\nexport { createUnloadHookContainer } from \"./JavaScriptSDK/UnloadHookContainer\";\r\nexport { createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"./JavaScriptSDK/W3cTraceParent\";\r\nexport { createDynamicConfig, onConfigChange } from \"./Config/DynamicConfig\";\r\nexport { getDynamicConfigHandler, blockDynamicConversion, forceDynamicConversion } from \"./Config/DynamicSupport\";\r\nexport { cfgDfValidate, cfgDfMerge, cfgDfBoolean, cfgDfFunc, cfgDfString, cfgDfSet, cfgDfBlockPropValue } from \"./Config/ConfigDefaultHelpers\";\r\n//# sourceMappingURL=applicationinsights-core-js.js.map"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"applicationinsights-core-js.js.map","sources":["applicationinsights-core-js.js"],"sourcesContent":["export { MinChannelPriorty } from \"./JavaScriptSDK.Interfaces/IChannelControls\";\r\nexport { EventsDiscardedReason, BatchDiscardedReason } from \"./JavaScriptSDK.Enums/EventsDiscardedReason\";\r\nexport { throwAggregationError } from \"./JavaScriptSDK/AggregationError\";\r\nexport { AppInsightsCore } from \"./JavaScriptSDK/AppInsightsCore\";\r\nexport { BaseTelemetryPlugin } from \"./JavaScriptSDK/BaseTelemetryPlugin\";\r\nexport { randomValue, random32, mwcRandomSeed, mwcRandom32, newId } from \"./JavaScriptSDK/RandomHelper\";\r\nexport { Undefined, newGuid, generateW3CId } from \"./JavaScriptSDK/CoreUtils\";\r\nexport { runTargetUnload, doUnloadAll } from \"./JavaScriptSDK/AsyncUtils\";\r\nexport { normalizeJsName, toISOString, getExceptionName, strContains, setValue, getSetValue, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objExtend, isFeatureEnabled } from \"./JavaScriptSDK/HelperFuncs\";\r\nexport { isArray, isTypeof, isUndefined, isNullOrUndefined, objHasOwnProperty as hasOwnProperty, isObject, isFunction, strEndsWith, strStartsWith, isDate, isError, isString, isNumber, isBoolean, arrForEach, arrIndexOf, arrReduce, arrMap, strTrim, objKeys, objDefineAccessors, throwError, isSymbol, isNotTruthy, isTruthy, objFreeze, objSeal, objToString, objDeepFreeze as deepFreeze, getInst as getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, hasNavigator, getNavigator, hasHistory, getHistory, dumpObj, asString, objForEachKey, getPerformance, utcNow as dateNow, perfNow } from \"@nevware21/ts-utils\";\r\nexport { createEnumStyle, createValueMap } from \"./JavaScriptSDK.Enums/EnumHelperFuncs\";\r\nexport { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, __getRegisteredEvents } from \"./JavaScriptSDK/EventHelpers\";\r\nexport { getCrypto, getMsCrypto, getLocation, hasJSON, getJSON, isReactNative, getConsole, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported, findMetaTag, findNamedServerTiming, sendCustomEvent, dispatchEvent, createCustomDomEvent } from \"./JavaScriptSDK/EnvUtils\";\r\nexport { getGlobal, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from \"@microsoft/applicationinsights-shims\";\r\nexport { NotificationManager } from \"./JavaScriptSDK/NotificationManager\";\r\nexport { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from \"./JavaScriptSDK/PerfManager\";\r\nexport { safeGetLogger, DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole, _logInternalMessage } from \"./JavaScriptSDK/DiagnosticLogger\";\r\nexport { ProcessTelemetryContext, createProcessTelemetryContext\r\n// Explicitly NOT exporting createProcessTelemetryUnloadContext() and createProcessTelemetryUpdateContext() as these should only be created internally\r\n } from \"./JavaScriptSDK/ProcessTelemetryContext\";\r\nexport { initializePlugins, sortPlugins, unloadComponents } from \"./JavaScriptSDK/TelemetryHelpers\";\r\nexport { LoggingSeverity } from \"./JavaScriptSDK.Enums/LoggingEnums\";\r\nexport { InstrumentProto, InstrumentProtos, InstrumentFunc, InstrumentFuncs, InstrumentEvent } from \"./JavaScriptSDK/InstrumentHooks\";\r\nexport { createCookieMgr, safeGetCookieMgr, uaDisallowsSameSiteNone, areCookiesSupported } from \"./JavaScriptSDK/CookieMgr\";\r\nexport { getDebugListener, getDebugExt } from \"./JavaScriptSDK/DbgExtensionUtils\";\r\nexport { createUniqueNamespace } from \"./JavaScriptSDK/DataCacheHelper\";\r\nexport { createUnloadHandlerContainer } from \"./JavaScriptSDK/UnloadHandlerContainer\";\r\nexport { createUnloadHookContainer } from \"./JavaScriptSDK/UnloadHookContainer\";\r\nexport { createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"./JavaScriptSDK/W3cTraceParent\";\r\nexport { createDynamicConfig, onConfigChange } from \"./Config/DynamicConfig\";\r\nexport { getDynamicConfigHandler, blockDynamicConversion, forceDynamicConversion } from \"./Config/DynamicSupport\";\r\nexport { cfgDfValidate, cfgDfMerge, cfgDfBoolean, cfgDfFunc, cfgDfString, cfgDfSet, cfgDfBlockPropValue } from \"./Config/ConfigDefaultHelpers\";\r\n//# sourceMappingURL=applicationinsights-core-js.js.map"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-core-js",
3
3
  "author": "Microsoft Application Insights Team",
4
- "version": "3.1.1-nightly3.2402-16",
4
+ "version": "3.1.1-nightly3.2402-22",
5
5
  "description": "Microsoft Application Insights Core Javascript SDK",
6
6
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
7
7
  "keywords": [
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.1.1-nightly3.2402-16
2
+ * Microsoft Application Insights Core Javascript SDK, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -408,6 +408,13 @@ export declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
408
408
  protected _addHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
409
409
  }
410
410
 
411
+ /**
412
+ * The eBatchDiscardedReason enumeration contains a set of values that specify the reason for discarding offline batches.
413
+ */
414
+ export declare const BatchDiscardedReason: EnumValue<typeof eBatchDiscardedReason>;
415
+
416
+ export declare type BatchDiscardedReason = number | eBatchDiscardedReason;
417
+
411
418
  /**
412
419
  * Mark the provided value so that if it's included into the configuration it will NOT have
413
420
  * its properties converted into a dynamic (reactive) object. If the object is not a plain object
@@ -703,6 +710,28 @@ export declare function doUnloadAll<T>(targets: Array<{
703
710
 
704
711
  export { dumpObj }
705
712
 
713
+ /**
714
+ * The eBatchDiscardedReason enumeration contains a set of values that specify the reason for discarding offline batches.
715
+ */
716
+ export declare const enum eBatchDiscardedReason {
717
+ /**
718
+ * Unknown.
719
+ */
720
+ Unknown = 0,
721
+ /**
722
+ * Status set to non-retryable after sending
723
+ */
724
+ NonRetryableStatus = 1,
725
+ /**
726
+ * Batches with lower number of critical events are dropped to free up storage space
727
+ */
728
+ CleanStorage = 2,
729
+ /**
730
+ * The batches in storage exceed max allowed time
731
+ */
732
+ MaxInStorageTimeExceeded = 3
733
+ }
734
+
706
735
  /**
707
736
  * The eEventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
708
737
  */
@@ -2080,6 +2109,25 @@ export declare interface INotificationListener {
2080
2109
  * / Promise to allow any listeners to wait for the operation to complete.
2081
2110
  */
2082
2111
  unload?(isAsync?: boolean): void | IPromise<void>;
2112
+ /**
2113
+ * [Optional] A function called when the offline events have been stored to the persistent storage
2114
+ * @param events - items that are stored in the persistent storage
2115
+ * @since v3.1.1
2116
+ */
2117
+ offlineEventsStored?(events: ITelemetryItem[]): void;
2118
+ /**
2119
+ * [Optional] A function called when the offline events have been sent from the persistent storage
2120
+ * @param batch - payload data that is sent from the persistent storage
2121
+ * @since v3.1.1
2122
+ */
2123
+ offlineBatchSent?(batch: IPayloadData): void;
2124
+ /**
2125
+ * [Optional] A function called when the offline events have been dropped from the persistent storage
2126
+ * @param cnt - count of batches dropped
2127
+ * @param reason - the reason why the batches is dropped
2128
+ * @since v3.1.1
2129
+ */
2130
+ offlineBatchDrop?(cnt: number, reason?: number): void;
2083
2131
  }
2084
2132
 
2085
2133
  /**
@@ -2130,6 +2178,25 @@ export declare interface INotificationManager {
2130
2178
  * / Promise to allow any listeners to wait for the operation to complete.
2131
2179
  */
2132
2180
  unload?(isAsync?: boolean): void | IPromise<void>;
2181
+ /**
2182
+ * [Optional] A function called when the offline events have been stored to the persistent storage
2183
+ * @param events - items that are stored in the persistent storage
2184
+ * @since v3.1.1
2185
+ */
2186
+ offlineEventsStored?(events: ITelemetryItem[]): void;
2187
+ /**
2188
+ * [Optional] A function called when the offline events have been sent from the persistent storage
2189
+ * @param batch - payload data that is sent from the persistent storage
2190
+ * @since v3.1.1
2191
+ */
2192
+ offlineBatchSent?(batch: IPayloadData): void;
2193
+ /**
2194
+ * [Optional] A function called when the offline events have been dropped from the persistent storage
2195
+ * @param cnt - count of batches dropped
2196
+ * @param reason - the reason why the batches is dropped
2197
+ * @since v3.1.1
2198
+ */
2199
+ offlineBatchDrop?(cnt: number, reason?: number): void;
2133
2200
  }
2134
2201
 
2135
2202
  /**
@@ -2882,6 +2949,23 @@ export declare class NotificationManager implements INotificationManager {
2882
2949
  * / Promise to allow any listeners to wait for the operation to complete.
2883
2950
  */
2884
2951
  unload?(isAsync?: boolean): void | IPromise<void>;
2952
+ /**
2953
+ * [Optional] A function called when the offline events have been stored to the persistent storage
2954
+ * @param events - events that are stored in the persistent storage
2955
+ */
2956
+ offlineEventsStored?(events: ITelemetryItem[]): void;
2957
+ /**
2958
+ * [Optional] A function called when the offline events have been sent from the persistent storage
2959
+ * @param batch - payload data that is sent from the persistent storage
2960
+ */
2961
+ offlineBatchSent?(batch: IPayloadData): void;
2962
+ /**
2963
+ * [Optional] A function called when the offline events have been dropped from the persistent storage
2964
+ * @param cnt - count of batches dropped
2965
+ * @param reason - the reason why the batches is dropped
2966
+ * @since v3.1.1
2967
+ */
2968
+ offlineBatchDrop?(cnt: number, reason?: number): void;
2885
2969
  }
2886
2970
 
2887
2971
  export { objDefineAccessors }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.1.1-nightly3.2402-16
2
+ * Microsoft Application Insights Core Javascript SDK, 3.1.1-nightly3.2402-22
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -603,6 +603,13 @@ declare namespace ApplicationInsights {
603
603
  protected _addHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void;
604
604
  }
605
605
 
606
+ /**
607
+ * The eBatchDiscardedReason enumeration contains a set of values that specify the reason for discarding offline batches.
608
+ */
609
+ const BatchDiscardedReason: EnumValue<typeof eBatchDiscardedReason>;
610
+
611
+ type BatchDiscardedReason = number | eBatchDiscardedReason;
612
+
606
613
  /**
607
614
  * Mark the provided value so that if it's included into the configuration it will NOT have
608
615
  * its properties converted into a dynamic (reactive) object. If the object is not a plain object
@@ -975,6 +982,28 @@ declare namespace ApplicationInsights {
975
982
  */
976
983
  function dumpObj(object: any, format?: boolean | number): string;
977
984
 
985
+ /**
986
+ * The eBatchDiscardedReason enumeration contains a set of values that specify the reason for discarding offline batches.
987
+ */
988
+ const enum eBatchDiscardedReason {
989
+ /**
990
+ * Unknown.
991
+ */
992
+ Unknown = 0,
993
+ /**
994
+ * Status set to non-retryable after sending
995
+ */
996
+ NonRetryableStatus = 1,
997
+ /**
998
+ * Batches with lower number of critical events are dropped to free up storage space
999
+ */
1000
+ CleanStorage = 2,
1001
+ /**
1002
+ * The batches in storage exceed max allowed time
1003
+ */
1004
+ MaxInStorageTimeExceeded = 3
1005
+ }
1006
+
978
1007
  /**
979
1008
  * The eEventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event.
980
1009
  */
@@ -2489,6 +2518,25 @@ declare namespace ApplicationInsights {
2489
2518
  * / Promise to allow any listeners to wait for the operation to complete.
2490
2519
  */
2491
2520
  unload?(isAsync?: boolean): void | IPromise<void>;
2521
+ /**
2522
+ * [Optional] A function called when the offline events have been stored to the persistent storage
2523
+ * @param events - items that are stored in the persistent storage
2524
+ * @since v3.1.1
2525
+ */
2526
+ offlineEventsStored?(events: ITelemetryItem[]): void;
2527
+ /**
2528
+ * [Optional] A function called when the offline events have been sent from the persistent storage
2529
+ * @param batch - payload data that is sent from the persistent storage
2530
+ * @since v3.1.1
2531
+ */
2532
+ offlineBatchSent?(batch: IPayloadData): void;
2533
+ /**
2534
+ * [Optional] A function called when the offline events have been dropped from the persistent storage
2535
+ * @param cnt - count of batches dropped
2536
+ * @param reason - the reason why the batches is dropped
2537
+ * @since v3.1.1
2538
+ */
2539
+ offlineBatchDrop?(cnt: number, reason?: number): void;
2492
2540
  }
2493
2541
 
2494
2542
  /**
@@ -2539,6 +2587,25 @@ declare namespace ApplicationInsights {
2539
2587
  * / Promise to allow any listeners to wait for the operation to complete.
2540
2588
  */
2541
2589
  unload?(isAsync?: boolean): void | IPromise<void>;
2590
+ /**
2591
+ * [Optional] A function called when the offline events have been stored to the persistent storage
2592
+ * @param events - items that are stored in the persistent storage
2593
+ * @since v3.1.1
2594
+ */
2595
+ offlineEventsStored?(events: ITelemetryItem[]): void;
2596
+ /**
2597
+ * [Optional] A function called when the offline events have been sent from the persistent storage
2598
+ * @param batch - payload data that is sent from the persistent storage
2599
+ * @since v3.1.1
2600
+ */
2601
+ offlineBatchSent?(batch: IPayloadData): void;
2602
+ /**
2603
+ * [Optional] A function called when the offline events have been dropped from the persistent storage
2604
+ * @param cnt - count of batches dropped
2605
+ * @param reason - the reason why the batches is dropped
2606
+ * @since v3.1.1
2607
+ */
2608
+ offlineBatchDrop?(cnt: number, reason?: number): void;
2542
2609
  }
2543
2610
 
2544
2611
  /**
@@ -3816,6 +3883,23 @@ declare namespace ApplicationInsights {
3816
3883
  * / Promise to allow any listeners to wait for the operation to complete.
3817
3884
  */
3818
3885
  unload?(isAsync?: boolean): void | IPromise<void>;
3886
+ /**
3887
+ * [Optional] A function called when the offline events have been stored to the persistent storage
3888
+ * @param events - events that are stored in the persistent storage
3889
+ */
3890
+ offlineEventsStored?(events: ITelemetryItem[]): void;
3891
+ /**
3892
+ * [Optional] A function called when the offline events have been sent from the persistent storage
3893
+ * @param batch - payload data that is sent from the persistent storage
3894
+ */
3895
+ offlineBatchSent?(batch: IPayloadData): void;
3896
+ /**
3897
+ * [Optional] A function called when the offline events have been dropped from the persistent storage
3898
+ * @param cnt - count of batches dropped
3899
+ * @param reason - the reason why the batches is dropped
3900
+ * @since v3.1.1
3901
+ */
3902
+ offlineBatchDrop?(cnt: number, reason?: number): void;
3819
3903
  }
3820
3904
 
3821
3905
  /**