@microsoft/applicationinsights-web-basic 2.8.0-beta.2203-10 → 2.8.0-beta.2203-13

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.
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IConfiguration, ITelemetryItem } from "@microsoft/applicationinsights-core-js";
1
+ import { IConfiguration, ITelemetryItem, UnloadHandler, IPlugin, ITelemetryPlugin, ILoadedPlugin } from "@microsoft/applicationinsights-core-js";
2
2
  import { IConfig } from "@microsoft/applicationinsights-common";
3
3
  /**
4
4
  * @export
@@ -6,7 +6,6 @@ import { IConfig } from "@microsoft/applicationinsights-common";
6
6
  */
7
7
  export declare class ApplicationInsights {
8
8
  config: IConfiguration & IConfig;
9
- private core;
10
9
  /**
11
10
  * Creates an instance of ApplicationInsights.
12
11
  * @param {IConfiguration & IConfig} config
@@ -32,10 +31,40 @@ export declare class ApplicationInsights {
32
31
  * @memberof ApplicationInsights
33
32
  */
34
33
  flush(async?: boolean): void;
35
- private pollInternalLogs;
34
+ pollInternalLogs(): void;
36
35
  stopPollingInternalLogs(): void;
37
- private getSKUDefaults;
36
+ getSKUDefaults(): void;
37
+ /**
38
+ * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered
39
+ * to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous
40
+ * unload call return `true` stating that all plugins reported that they also unloaded, the recommended
41
+ * approach is to create a new instance and initialize that instance.
42
+ * This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable
43
+ * to successfully remove any global references or they may just be completing the unload process asynchronously.
44
+ */
45
+ unload(isAsync?: boolean, unloadComplete?: () => void): void;
46
+ /**
47
+ * Find and return the (first) plugin with the specified identifier if present
48
+ * @param pluginIdentifier
49
+ */
50
+ getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
51
+ /**
52
+ * Add a new plugin to the installation
53
+ * @param plugin - The new plugin to add
54
+ * @param replaceExisting - should any existing plugin be replaced
55
+ * @param doAsync - Should the add be performed asynchronously
56
+ */
57
+ addPlugin<T extends IPlugin = ITelemetryPlugin>(plugin: T, replaceExisting: boolean, doAsync: boolean, addCb?: (added?: boolean) => void): void;
58
+ /**
59
+ * Returns the unique event namespace that should be used
60
+ */
61
+ evtNamespace(): string;
62
+ /**
63
+ * Add an unload handler that will be called when the SDK is being unloaded
64
+ * @param handler - the handler
65
+ */
66
+ addUnloadCb(handler: UnloadHandler): void;
38
67
  }
39
- export { IConfiguration, AppInsightsCore, IAppInsightsCore, CoreUtils, ITelemetryItem } from "@microsoft/applicationinsights-core-js";
68
+ export { IConfiguration, AppInsightsCore, IAppInsightsCore, CoreUtils, ITelemetryItem, ILoadedPlugin, arrForEach, SendRequestReason, _eInternalMessageId, _InternalMessageId, isNullOrUndefined, throwError, proxyFunctions, IPlugin, ITelemetryPlugin } from "@microsoft/applicationinsights-core-js";
40
69
  export { SeverityLevel, IPageViewTelemetry, IDependencyTelemetry, IAutoExceptionTelemetry, IEventTelemetry, IMetricTelemetry, IPageViewPerformanceTelemetry, ITraceTelemetry } from "@microsoft/applicationinsights-common";
41
70
  export { Sender } from "@microsoft/applicationinsights-channel-js";
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.19.4"
8
+ "packageVersion": "7.19.5"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,26 +0,0 @@
1
- {
2
- "name": "aib",
3
- "version": "2.8.0-beta.2203-10",
4
- "ext": {
5
- "@js": {
6
- "file": "aib.2.8.0-beta.2203-10.js",
7
- "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-VE/LrOyTQqbMkTeT2aKhuGtSCIL4/5B9P8hW2GYxVCU= sha384-yJZJ0U1HjX0Xl0Sl36hboNmmchqi90IaRzKj0qw3juE8IgLYLwZXLSSFSh6RlVia sha512-lJBXZaq8fcDN8/YwGZwSeFWCq/RbTdzxdnlcgqqasnN2GRjg1gP37f4AMHuvduyvgTYh7GPDE3OD4QIwQgP1Dw==",
9
- "hashes": {
10
- "sha256": "VE/LrOyTQqbMkTeT2aKhuGtSCIL4/5B9P8hW2GYxVCU=",
11
- "sha384": "yJZJ0U1HjX0Xl0Sl36hboNmmchqi90IaRzKj0qw3juE8IgLYLwZXLSSFSh6RlVia",
12
- "sha512": "lJBXZaq8fcDN8/YwGZwSeFWCq/RbTdzxdnlcgqqasnN2GRjg1gP37f4AMHuvduyvgTYh7GPDE3OD4QIwQgP1Dw=="
13
- }
14
- },
15
- "@min.js": {
16
- "file": "aib.2.8.0-beta.2203-10.min.js",
17
- "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-5YwD/RfkMwR2iM1lnOjZEo6PLdIblo401no0IHTaxGA= sha384-huSkWlE4prk9B7GTyJu2otqRRLv65sFQTqauyvMm0HZ43JhpqfGJ7JmKbfbz5aeD sha512-DtrH9+X2H67h115mIjXX1BwfhRPozVDxbSr+ji5i8fcTNbQRWD6KeKRFsHFBgJ0xHayo6lR+s+2mwrPg7SmMFQ==",
19
- "hashes": {
20
- "sha256": "5YwD/RfkMwR2iM1lnOjZEo6PLdIblo401no0IHTaxGA=",
21
- "sha384": "huSkWlE4prk9B7GTyJu2otqRRLv65sFQTqauyvMm0HZ43JhpqfGJ7JmKbfbz5aeD",
22
- "sha512": "DtrH9+X2H67h115mIjXX1BwfhRPozVDxbSr+ji5i8fcTNbQRWD6KeKRFsHFBgJ0xHayo6lR+s+2mwrPg7SmMFQ=="
23
- }
24
- }
25
- }
26
- }