From 80d1318153882283fcea128d4730b879f1605c61 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 May 2025 16:03:52 +0000 Subject: [PATCH 1/4] Initial plan for issue From 438ac456aa71f96a20bf6baf86a64e410eff394f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 May 2025 16:21:16 +0000 Subject: [PATCH 2/4] Add IConfiguration export to Init.ts Co-authored-by: MSNev <54870357+MSNev@users.noreply.github.com> --- AISKU/src/Init.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/AISKU/src/Init.ts b/AISKU/src/Init.ts index 05b23a4d5..c574444ae 100644 --- a/AISKU/src/Init.ts +++ b/AISKU/src/Init.ts @@ -16,6 +16,7 @@ export { IApplicationInsights } from "./IApplicationInsights"; export { Snippet }; export { + IConfiguration, LoggingSeverity, PerfEvent, PerfManager, From 10f70e6aa4316956a7f56804c70baa6b442e7789 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 May 2025 16:51:55 +0000 Subject: [PATCH 3/4] Update typedoc.json to include re-exports and revert Init.ts change Co-authored-by: MSNev <54870357+MSNev@users.noreply.github.com> --- AISKU/src/Init.ts | 1 - AISKU/typedoc.json | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AISKU/src/Init.ts b/AISKU/src/Init.ts index c574444ae..05b23a4d5 100644 --- a/AISKU/src/Init.ts +++ b/AISKU/src/Init.ts @@ -16,7 +16,6 @@ export { IApplicationInsights } from "./IApplicationInsights"; export { Snippet }; export { - IConfiguration, LoggingSeverity, PerfEvent, PerfManager, diff --git a/AISKU/typedoc.json b/AISKU/typedoc.json index 6393e1991..449d286a7 100644 --- a/AISKU/typedoc.json +++ b/AISKU/typedoc.json @@ -1,6 +1,6 @@ { "$schema": "https://typedoc.org/schema.json", - "entryPoints": [ "./src/Init.ts" ], + "entryPoints": [ "./src/Init.ts", "./src/applicationinsights-web.ts" ], "exclude": [ "**/internal/**/*.ts", "node_modules/**" ], "externalPattern": [ "**/node_modules/**", @@ -18,6 +18,7 @@ "excludeInternal": true, "excludePrivate": true, "includeVersion": true, + "followSymlinks": true, "groupOrder": [ "Entrypoint", "Modules", From 7c44fe3fccb0a1e511b5eae886e9627745ab8860 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 May 2025 17:46:53 +0000 Subject: [PATCH 4/4] Revert typedoc.json changes and add interfaces/enums to Init.ts for typedoc Co-authored-by: MSNev <54870357+MSNev@users.noreply.github.com> --- AISKU/src/Init.ts | 64 ++++++++++++++++++++++++++++++++++++++++++++++ AISKU/typedoc.json | 3 +-- 2 files changed, 65 insertions(+), 2 deletions(-) diff --git a/AISKU/src/Init.ts b/AISKU/src/Init.ts index 05b23a4d5..22c39f5ab 100644 --- a/AISKU/src/Init.ts +++ b/AISKU/src/Init.ts @@ -50,6 +50,70 @@ export { // End of Exports available from the Cdn bundles // ---------------------------------------------------------------------------------------------------- +// ---------------------------------------------------------------------------------------------------- +// Additional exports available from applicationinsights-web.ts (interfaces and enums for typedoc) +// ---------------------------------------------------------------------------------------------------- +export { + IConfiguration, + IAppInsightsCore, + eLoggingSeverity, + ITelemetryItem, + ITelemetryPlugin, + IPerfEvent, + IPerfManager, + IPerfManagerProvider, + INotificationListener, + IPlugin, + IDiagnosticLogger, + ITelemetryPluginChain, + ICustomProperties, + INotificationManager, + IProcessTelemetryContext, + ILoadedPlugin +} from "@microsoft/applicationinsights-core-js"; + +export { + IConfig, + IDependencyTelemetry, + IPageViewPerformanceTelemetry, + IPageViewTelemetry, + IExceptionTelemetry, + IAutoExceptionTelemetry, + ITraceTelemetry, + IMetricTelemetry, + IEventTelemetry, + IAppInsights, + eSeverityLevel, + IRequestHeaders, + EventPersistence +} from "@microsoft/applicationinsights-common"; + +export { ISenderConfig } from "@microsoft/applicationinsights-channel-js"; + +export { IAppInsightsInternal } from "@microsoft/applicationinsights-analytics-js"; + +export { + IDependenciesPlugin, + DependencyListenerFunction, + DependencyInitializerFunction, + IDependencyInitializerHandler, + IDependencyListenerHandler +} from "@microsoft/applicationinsights-dependencies-js"; + +export { + ICfgSyncPlugin, + ICfgSyncConfig, + ICfgSyncEvent, + ICfgSyncMode, + NonOverrideCfg, + OnCompleteCallback, + SendGetFunction +} from "@microsoft/applicationinsights-cfgsync-js"; + +// ---------------------------------------------------------------------------------------------------- +// End of Additional exports +// ---------------------------------------------------------------------------------------------------- + function _logWarn(aiName:string, message:string) { // TODO: Find better place to warn to console when SDK initialization fails diff --git a/AISKU/typedoc.json b/AISKU/typedoc.json index 449d286a7..6393e1991 100644 --- a/AISKU/typedoc.json +++ b/AISKU/typedoc.json @@ -1,6 +1,6 @@ { "$schema": "https://typedoc.org/schema.json", - "entryPoints": [ "./src/Init.ts", "./src/applicationinsights-web.ts" ], + "entryPoints": [ "./src/Init.ts" ], "exclude": [ "**/internal/**/*.ts", "node_modules/**" ], "externalPattern": [ "**/node_modules/**", @@ -18,7 +18,6 @@ "excludeInternal": true, "excludePrivate": true, "includeVersion": true, - "followSymlinks": true, "groupOrder": [ "Entrypoint", "Modules",