diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 61b20febc9b17..5d6f6a2e43147 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -42,6 +42,7 @@ test/analytics/plugins/analytics_plugin_a @elastic/kibana-core packages/kbn-apm-config-loader @elastic/kibana-core @vigneshshanmugam x-pack/plugins/observability_solution/apm_data_access @elastic/obs-knowledge-team @elastic/obs-ux-infra_services-team packages/kbn-apm-data-view @elastic/obs-ux-infra_services-team +x-pack/plugins/observability_solution/apm/ftr_e2e @elastic/obs-ux-infra_services-team x-pack/plugins/observability_solution/apm @elastic/obs-ux-infra_services-team packages/kbn-apm-synthtrace @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team packages/kbn-apm-synthtrace-client @elastic/obs-ux-infra_services-team @elastic/obs-ux-logs-team @@ -622,6 +623,7 @@ x-pack/packages/observability/alerting_test_data @elastic/obs-ux-management-team x-pack/test/cases_api_integration/common/plugins/observability @elastic/response-ops x-pack/packages/observability/get_padded_alert_time_range_util @elastic/obs-ux-management-team x-pack/plugins/observability_solution/observability_logs_explorer @elastic/obs-ux-logs-team +x-pack/plugins/observability_solution/observability_onboarding/e2e @elastic/obs-ux-logs-team @elastic/obs-ux-onboarding-team x-pack/plugins/observability_solution/observability_onboarding @elastic/obs-ux-logs-team @elastic/obs-ux-onboarding-team x-pack/plugins/observability_solution/observability @elastic/obs-ux-management-team x-pack/plugins/observability_solution/observability_shared @elastic/observability-ui @@ -773,6 +775,7 @@ packages/kbn-securitysolution-t-grid @elastic/security-detection-engine packages/kbn-securitysolution-utils @elastic/security-detection-engine packages/kbn-server-http-tools @elastic/kibana-core packages/kbn-server-route-repository @elastic/obs-knowledge-team +packages/kbn-server-route-repository-utils @elastic/obs-knowledge-team x-pack/plugins/serverless @elastic/appex-sharedux packages/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management x-pack/plugins/serverless_observability @elastic/obs-ux-management-team @@ -856,6 +859,7 @@ test/server_integration/plugins/status_plugin_b @elastic/kibana-core packages/kbn-std @elastic/kibana-core packages/kbn-stdio-dev-helpers @elastic/kibana-operations packages/kbn-storybook @elastic/kibana-operations +x-pack/plugins/observability_solution/synthetics/e2e @elastic/obs-ux-management-team x-pack/plugins/observability_solution/synthetics @elastic/obs-ux-management-team x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture @elastic/response-ops x-pack/test/plugin_api_perf/plugins/task_manager_performance @elastic/response-ops @@ -871,6 +875,10 @@ packages/kbn-test-eui-helpers @elastic/kibana-visualizations x-pack/test/licensing_plugin/plugins/test_feature_usage @elastic/kibana-security packages/kbn-test-jest-helpers @elastic/kibana-operations @elastic/appex-qa packages/kbn-test-subj-selector @elastic/kibana-operations @elastic/appex-qa +x-pack/test_serverless @elastic/appex-qa +test @elastic/appex-qa +x-pack/test @elastic/appex-qa +x-pack/performance @elastic/appex-qa x-pack/examples/testing_embedded_lens @elastic/kibana-visualizations packages/kbn-text-based-editor @elastic/kibana-esql x-pack/examples/third_party_lens_navigation_prompt @elastic/kibana-visualizations diff --git a/examples/controls_example/public/react_controls/control_group/init_controls_manager.ts b/examples/controls_example/public/react_controls/control_group/init_controls_manager.ts index 292566185b6bb..378bfe4d82567 100644 --- a/examples/controls_example/public/react_controls/control_group/init_controls_manager.ts +++ b/examples/controls_example/public/react_controls/control_group/init_controls_manager.ts @@ -12,7 +12,7 @@ import { PanelPackage, PresentationContainer, } from '@kbn/presentation-containers'; -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { BehaviorSubject, first, merge } from 'rxjs'; import { PublishingSubject } from '@kbn/presentation-publishing'; import { omit } from 'lodash'; diff --git a/examples/embeddable_examples/public/react_embeddables/field_list/field_list_react_embeddable.tsx b/examples/embeddable_examples/public/react_embeddables/field_list/field_list_react_embeddable.tsx index 6c296b00786e9..b29cf99c507b3 100644 --- a/examples/embeddable_examples/public/react_embeddables/field_list/field_list_react_embeddable.tsx +++ b/examples/embeddable_examples/public/react_embeddables/field_list/field_list_react_embeddable.tsx @@ -8,7 +8,7 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { css } from '@emotion/react'; -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { CoreStart } from '@kbn/core-lifecycle-browser'; import { DataView } from '@kbn/data-views-plugin/common'; import { DATA_VIEW_SAVED_OBJECT_TYPE } from '@kbn/data-views-plugin/public'; diff --git a/package.json b/package.json index 44e4ca7d5157e..dc845db5fa5d3 100644 --- a/package.json +++ b/package.json @@ -789,6 +789,7 @@ "@kbn/securitysolution-utils": "link:packages/kbn-securitysolution-utils", "@kbn/server-http-tools": "link:packages/kbn-server-http-tools", "@kbn/server-route-repository": "link:packages/kbn-server-route-repository", + "@kbn/server-route-repository-utils": "link:packages/kbn-server-route-repository-utils", "@kbn/serverless": "link:x-pack/plugins/serverless", "@kbn/serverless-common-settings": "link:packages/serverless/settings/common", "@kbn/serverless-observability": "link:x-pack/plugins/serverless_observability", @@ -1280,6 +1281,7 @@ "@kbn/ambient-ftr-types": "link:packages/kbn-ambient-ftr-types", "@kbn/ambient-storybook-types": "link:packages/kbn-ambient-storybook-types", "@kbn/ambient-ui-types": "link:packages/kbn-ambient-ui-types", + "@kbn/apm-ftr-e2e": "link:x-pack/plugins/observability_solution/apm/ftr_e2e", "@kbn/apm-synthtrace": "link:packages/kbn-apm-synthtrace", "@kbn/apm-synthtrace-client": "link:packages/kbn-apm-synthtrace-client", "@kbn/axe-config": "link:packages/kbn-axe-config", @@ -1385,6 +1387,7 @@ "@kbn/management-storybook-config": "link:packages/kbn-management/storybook/config", "@kbn/mock-idp-plugin": "link:packages/kbn-mock-idp-plugin", "@kbn/mock-idp-utils": "link:packages/kbn-mock-idp-utils", + "@kbn/observability-onboarding-e2e": "link:x-pack/plugins/observability_solution/observability_onboarding/e2e", "@kbn/openapi-bundler": "link:packages/kbn-openapi-bundler", "@kbn/openapi-generator": "link:packages/kbn-openapi-generator", "@kbn/optimizer": "link:packages/kbn-optimizer", @@ -1407,11 +1410,16 @@ "@kbn/spec-to-console": "link:packages/kbn-spec-to-console", "@kbn/stdio-dev-helpers": "link:packages/kbn-stdio-dev-helpers", "@kbn/storybook": "link:packages/kbn-storybook", + "@kbn/synthetics-e2e": "link:x-pack/plugins/observability_solution/synthetics/e2e", "@kbn/telemetry-tools": "link:packages/kbn-telemetry-tools", "@kbn/test": "link:packages/kbn-test", "@kbn/test-eui-helpers": "link:packages/kbn-test-eui-helpers", "@kbn/test-jest-helpers": "link:packages/kbn-test-jest-helpers", "@kbn/test-subj-selector": "link:packages/kbn-test-subj-selector", + "@kbn/test-suites-serverless": "link:x-pack/test_serverless", + "@kbn/test-suites-src": "link:test", + "@kbn/test-suites-xpack": "link:x-pack/test", + "@kbn/test-suites-xpack-performance": "link:x-pack/performance", "@kbn/tooling-log": "link:packages/kbn-tooling-log", "@kbn/ts-projects": "link:packages/kbn-ts-projects", "@kbn/ts-type-check-cli": "link:packages/kbn-ts-type-check-cli", diff --git a/packages/content-management/content_editor/kibana.jsonc b/packages/content-management/content_editor/kibana.jsonc index b81ccf9573c96..27bd7a53b1ee6 100644 --- a/packages/content-management/content_editor/kibana.jsonc +++ b/packages/content-management/content_editor/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/content-management-content-editor", "owner": "@elastic/appex-sharedux", } diff --git a/packages/content-management/user_profiles/kibana.jsonc b/packages/content-management/user_profiles/kibana.jsonc index 6422efa40b631..5b9c73619d771 100644 --- a/packages/content-management/user_profiles/kibana.jsonc +++ b/packages/content-management/user_profiles/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/content-management-user-profiles", "owner": "@elastic/appex-sharedux" } diff --git a/packages/core/analytics/core-analytics-browser-internal/kibana.jsonc b/packages/core/analytics/core-analytics-browser-internal/kibana.jsonc index 459e71b2c0e5a..b762d25410ad1 100644 --- a/packages/core/analytics/core-analytics-browser-internal/kibana.jsonc +++ b/packages/core/analytics/core-analytics-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-analytics-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/analytics/core-analytics-browser-mocks/kibana.jsonc b/packages/core/analytics/core-analytics-browser-mocks/kibana.jsonc index 34e790b37c1bf..b3012a5456fd0 100644 --- a/packages/core/analytics/core-analytics-browser-mocks/kibana.jsonc +++ b/packages/core/analytics/core-analytics-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-analytics-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/analytics/core-analytics-browser/kibana.jsonc b/packages/core/analytics/core-analytics-browser/kibana.jsonc index a82e9d1c78f38..3b98d20b277f7 100644 --- a/packages/core/analytics/core-analytics-browser/kibana.jsonc +++ b/packages/core/analytics/core-analytics-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-analytics-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/analytics/core-analytics-server-internal/kibana.jsonc b/packages/core/analytics/core-analytics-server-internal/kibana.jsonc index 3d660a39be144..e9eaa029903b5 100644 --- a/packages/core/analytics/core-analytics-server-internal/kibana.jsonc +++ b/packages/core/analytics/core-analytics-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-analytics-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/analytics/core-analytics-server-mocks/kibana.jsonc b/packages/core/analytics/core-analytics-server-mocks/kibana.jsonc index 53c4ffb2026f5..325f0216755ec 100644 --- a/packages/core/analytics/core-analytics-server-mocks/kibana.jsonc +++ b/packages/core/analytics/core-analytics-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-analytics-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/analytics/core-analytics-server/kibana.jsonc b/packages/core/analytics/core-analytics-server/kibana.jsonc index ab497b22d0c9f..8f56bff10b6c3 100644 --- a/packages/core/analytics/core-analytics-server/kibana.jsonc +++ b/packages/core/analytics/core-analytics-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-analytics-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/application/core-application-browser-internal/kibana.jsonc b/packages/core/application/core-application-browser-internal/kibana.jsonc index 2c21e932f1ccd..56bd06188558f 100644 --- a/packages/core/application/core-application-browser-internal/kibana.jsonc +++ b/packages/core/application/core-application-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-application-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/application/core-application-browser-mocks/kibana.jsonc b/packages/core/application/core-application-browser-mocks/kibana.jsonc index dc516ef5c9552..f1f9ae3f1b6c5 100644 --- a/packages/core/application/core-application-browser-mocks/kibana.jsonc +++ b/packages/core/application/core-application-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-application-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/application/core-application-browser/kibana.jsonc b/packages/core/application/core-application-browser/kibana.jsonc index 6d8428610bba0..11ff8b45731fd 100644 --- a/packages/core/application/core-application-browser/kibana.jsonc +++ b/packages/core/application/core-application-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-application-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/apps/core-apps-browser-internal/kibana.jsonc b/packages/core/apps/core-apps-browser-internal/kibana.jsonc index 29b64390ec547..e271c86c9e972 100644 --- a/packages/core/apps/core-apps-browser-internal/kibana.jsonc +++ b/packages/core/apps/core-apps-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-apps-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/apps/core-apps-browser-mocks/kibana.jsonc b/packages/core/apps/core-apps-browser-mocks/kibana.jsonc index 731bb6ff85d0e..9b6a0e45ce07b 100644 --- a/packages/core/apps/core-apps-browser-mocks/kibana.jsonc +++ b/packages/core/apps/core-apps-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-apps-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/apps/core-apps-server-internal/kibana.jsonc b/packages/core/apps/core-apps-server-internal/kibana.jsonc index 8c73dfc0752d4..fd5224a191823 100644 --- a/packages/core/apps/core-apps-server-internal/kibana.jsonc +++ b/packages/core/apps/core-apps-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-apps-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/base/core-base-browser-internal/kibana.jsonc b/packages/core/base/core-base-browser-internal/kibana.jsonc index e264f079717ed..bb1d4c322ca2e 100644 --- a/packages/core/base/core-base-browser-internal/kibana.jsonc +++ b/packages/core/base/core-base-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-base-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/base/core-base-browser-mocks/kibana.jsonc b/packages/core/base/core-base-browser-mocks/kibana.jsonc index 75e25bf270abc..5d07dc98fb926 100644 --- a/packages/core/base/core-base-browser-mocks/kibana.jsonc +++ b/packages/core/base/core-base-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-base-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/base/core-base-server-internal/kibana.jsonc b/packages/core/base/core-base-server-internal/kibana.jsonc index 569148c437ddc..2bd0a2f910422 100644 --- a/packages/core/base/core-base-server-internal/kibana.jsonc +++ b/packages/core/base/core-base-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-base-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/base/core-base-server-mocks/kibana.jsonc b/packages/core/base/core-base-server-mocks/kibana.jsonc index 1286250c208ce..f43820e330509 100644 --- a/packages/core/base/core-base-server-mocks/kibana.jsonc +++ b/packages/core/base/core-base-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-base-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/capabilities/core-capabilities-browser-internal/kibana.jsonc b/packages/core/capabilities/core-capabilities-browser-internal/kibana.jsonc index 4986d1386610f..3bf55481bf59d 100644 --- a/packages/core/capabilities/core-capabilities-browser-internal/kibana.jsonc +++ b/packages/core/capabilities/core-capabilities-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-capabilities-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/capabilities/core-capabilities-browser-mocks/kibana.jsonc b/packages/core/capabilities/core-capabilities-browser-mocks/kibana.jsonc index e359b398d6ecf..f418f2fe7a565 100644 --- a/packages/core/capabilities/core-capabilities-browser-mocks/kibana.jsonc +++ b/packages/core/capabilities/core-capabilities-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-capabilities-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/capabilities/core-capabilities-server-internal/kibana.jsonc b/packages/core/capabilities/core-capabilities-server-internal/kibana.jsonc index 89591227f2542..e4ffc9a803292 100644 --- a/packages/core/capabilities/core-capabilities-server-internal/kibana.jsonc +++ b/packages/core/capabilities/core-capabilities-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-capabilities-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/capabilities/core-capabilities-server-mocks/kibana.jsonc b/packages/core/capabilities/core-capabilities-server-mocks/kibana.jsonc index e8e84de6cef6b..e881e0f0de944 100644 --- a/packages/core/capabilities/core-capabilities-server-mocks/kibana.jsonc +++ b/packages/core/capabilities/core-capabilities-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-capabilities-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/capabilities/core-capabilities-server/kibana.jsonc b/packages/core/capabilities/core-capabilities-server/kibana.jsonc index cfa34dba13ad9..5fb36e34a068d 100644 --- a/packages/core/capabilities/core-capabilities-server/kibana.jsonc +++ b/packages/core/capabilities/core-capabilities-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-capabilities-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/chrome/core-chrome-browser-internal/kibana.jsonc b/packages/core/chrome/core-chrome-browser-internal/kibana.jsonc index da80249250739..cfadc0fadeb80 100644 --- a/packages/core/chrome/core-chrome-browser-internal/kibana.jsonc +++ b/packages/core/chrome/core-chrome-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-chrome-browser-internal", "owner": "@elastic/appex-sharedux" } diff --git a/packages/core/chrome/core-chrome-browser-mocks/kibana.jsonc b/packages/core/chrome/core-chrome-browser-mocks/kibana.jsonc index b040712b338fd..7acd89dd4acf2 100644 --- a/packages/core/chrome/core-chrome-browser-mocks/kibana.jsonc +++ b/packages/core/chrome/core-chrome-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-chrome-browser-mocks", "devOnly": true, "owner": "@elastic/appex-sharedux" diff --git a/packages/core/chrome/core-chrome-browser/kibana.jsonc b/packages/core/chrome/core-chrome-browser/kibana.jsonc index bac6a50bdbe01..257c3aea58746 100644 --- a/packages/core/chrome/core-chrome-browser/kibana.jsonc +++ b/packages/core/chrome/core-chrome-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-chrome-browser", "owner": "@elastic/appex-sharedux" } diff --git a/packages/core/config/core-config-server-internal/kibana.jsonc b/packages/core/config/core-config-server-internal/kibana.jsonc index 7b1e11349fc73..db0adc8629097 100644 --- a/packages/core/config/core-config-server-internal/kibana.jsonc +++ b/packages/core/config/core-config-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-config-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/custom-branding/core-custom-branding-browser-internal/kibana.jsonc b/packages/core/custom-branding/core-custom-branding-browser-internal/kibana.jsonc index 134e7269013ab..a7934eead5934 100644 --- a/packages/core/custom-branding/core-custom-branding-browser-internal/kibana.jsonc +++ b/packages/core/custom-branding/core-custom-branding-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-custom-branding-browser-internal", "owner": "@elastic/appex-sharedux", } diff --git a/packages/core/custom-branding/core-custom-branding-browser-mocks/kibana.jsonc b/packages/core/custom-branding/core-custom-branding-browser-mocks/kibana.jsonc index 3a39229822bc7..a38fb4e9ba04a 100644 --- a/packages/core/custom-branding/core-custom-branding-browser-mocks/kibana.jsonc +++ b/packages/core/custom-branding/core-custom-branding-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-custom-branding-browser-mocks", "owner": "@elastic/appex-sharedux", } diff --git a/packages/core/custom-branding/core-custom-branding-browser/kibana.jsonc b/packages/core/custom-branding/core-custom-branding-browser/kibana.jsonc index 79234981b43b6..506f5d23be4b6 100644 --- a/packages/core/custom-branding/core-custom-branding-browser/kibana.jsonc +++ b/packages/core/custom-branding/core-custom-branding-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-custom-branding-browser", "owner": "@elastic/appex-sharedux", } diff --git a/packages/core/custom-branding/core-custom-branding-server-internal/kibana.jsonc b/packages/core/custom-branding/core-custom-branding-server-internal/kibana.jsonc index 328ac5aadff8b..60370f95342fb 100644 --- a/packages/core/custom-branding/core-custom-branding-server-internal/kibana.jsonc +++ b/packages/core/custom-branding/core-custom-branding-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-custom-branding-server-internal", "owner": "@elastic/appex-sharedux", } diff --git a/packages/core/custom-branding/core-custom-branding-server-mocks/kibana.jsonc b/packages/core/custom-branding/core-custom-branding-server-mocks/kibana.jsonc index 9fb4201dc7e57..5ed605b18dd37 100644 --- a/packages/core/custom-branding/core-custom-branding-server-mocks/kibana.jsonc +++ b/packages/core/custom-branding/core-custom-branding-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-custom-branding-server-mocks", "owner": "@elastic/appex-sharedux", } diff --git a/packages/core/custom-branding/core-custom-branding-server/kibana.jsonc b/packages/core/custom-branding/core-custom-branding-server/kibana.jsonc index 693715f46f30b..e6a7c037d461e 100644 --- a/packages/core/custom-branding/core-custom-branding-server/kibana.jsonc +++ b/packages/core/custom-branding/core-custom-branding-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-custom-branding-server", "owner": "@elastic/appex-sharedux", } diff --git a/packages/core/deprecations/core-deprecations-browser-internal/kibana.jsonc b/packages/core/deprecations/core-deprecations-browser-internal/kibana.jsonc index 7db30fcf05173..c4fd76e10bd88 100644 --- a/packages/core/deprecations/core-deprecations-browser-internal/kibana.jsonc +++ b/packages/core/deprecations/core-deprecations-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-deprecations-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/deprecations/core-deprecations-browser-mocks/kibana.jsonc b/packages/core/deprecations/core-deprecations-browser-mocks/kibana.jsonc index 79a4354f8278c..f52fc09438249 100644 --- a/packages/core/deprecations/core-deprecations-browser-mocks/kibana.jsonc +++ b/packages/core/deprecations/core-deprecations-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-deprecations-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/deprecations/core-deprecations-browser/kibana.jsonc b/packages/core/deprecations/core-deprecations-browser/kibana.jsonc index 624ce8f9a24c2..d24e14cb049e7 100644 --- a/packages/core/deprecations/core-deprecations-browser/kibana.jsonc +++ b/packages/core/deprecations/core-deprecations-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-deprecations-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/deprecations/core-deprecations-server-internal/kibana.jsonc b/packages/core/deprecations/core-deprecations-server-internal/kibana.jsonc index 7c9e02b525c04..335b964f4b25c 100644 --- a/packages/core/deprecations/core-deprecations-server-internal/kibana.jsonc +++ b/packages/core/deprecations/core-deprecations-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-deprecations-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/deprecations/core-deprecations-server-mocks/kibana.jsonc b/packages/core/deprecations/core-deprecations-server-mocks/kibana.jsonc index 7a4729b822579..7d32dce1a9f7f 100644 --- a/packages/core/deprecations/core-deprecations-server-mocks/kibana.jsonc +++ b/packages/core/deprecations/core-deprecations-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-deprecations-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/deprecations/core-deprecations-server/kibana.jsonc b/packages/core/deprecations/core-deprecations-server/kibana.jsonc index 6747cae836866..8985ca948a65e 100644 --- a/packages/core/deprecations/core-deprecations-server/kibana.jsonc +++ b/packages/core/deprecations/core-deprecations-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-deprecations-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/doc-links/core-doc-links-browser-internal/kibana.jsonc b/packages/core/doc-links/core-doc-links-browser-internal/kibana.jsonc index 8b54adc776848..0a541080ce1a3 100644 --- a/packages/core/doc-links/core-doc-links-browser-internal/kibana.jsonc +++ b/packages/core/doc-links/core-doc-links-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-doc-links-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/doc-links/core-doc-links-browser-mocks/kibana.jsonc b/packages/core/doc-links/core-doc-links-browser-mocks/kibana.jsonc index 0bfa8221ad87c..3d37d0652c5cc 100644 --- a/packages/core/doc-links/core-doc-links-browser-mocks/kibana.jsonc +++ b/packages/core/doc-links/core-doc-links-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-doc-links-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/doc-links/core-doc-links-browser/kibana.jsonc b/packages/core/doc-links/core-doc-links-browser/kibana.jsonc index e21e71f26fbe0..0386303378778 100644 --- a/packages/core/doc-links/core-doc-links-browser/kibana.jsonc +++ b/packages/core/doc-links/core-doc-links-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-doc-links-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/doc-links/core-doc-links-server-internal/kibana.jsonc b/packages/core/doc-links/core-doc-links-server-internal/kibana.jsonc index 2e8ef46d85c88..9c42d96aa6f0d 100644 --- a/packages/core/doc-links/core-doc-links-server-internal/kibana.jsonc +++ b/packages/core/doc-links/core-doc-links-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-doc-links-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/doc-links/core-doc-links-server-mocks/kibana.jsonc b/packages/core/doc-links/core-doc-links-server-mocks/kibana.jsonc index 22a0368bfcda1..d7eabe4c4c502 100644 --- a/packages/core/doc-links/core-doc-links-server-mocks/kibana.jsonc +++ b/packages/core/doc-links/core-doc-links-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-doc-links-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/doc-links/core-doc-links-server/kibana.jsonc b/packages/core/doc-links/core-doc-links-server/kibana.jsonc index 74063c462a4bd..2f514e6031ea8 100644 --- a/packages/core/doc-links/core-doc-links-server/kibana.jsonc +++ b/packages/core/doc-links/core-doc-links-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-doc-links-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/kibana.jsonc b/packages/core/elasticsearch/core-elasticsearch-client-server-internal/kibana.jsonc index 064e503803d9a..3591e6f14213f 100644 --- a/packages/core/elasticsearch/core-elasticsearch-client-server-internal/kibana.jsonc +++ b/packages/core/elasticsearch/core-elasticsearch-client-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-elasticsearch-client-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/elasticsearch/core-elasticsearch-client-server-mocks/kibana.jsonc b/packages/core/elasticsearch/core-elasticsearch-client-server-mocks/kibana.jsonc index 9e2eec284c98d..da7297ebef408 100644 --- a/packages/core/elasticsearch/core-elasticsearch-client-server-mocks/kibana.jsonc +++ b/packages/core/elasticsearch/core-elasticsearch-client-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-elasticsearch-client-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/elasticsearch/core-elasticsearch-server-internal/kibana.jsonc b/packages/core/elasticsearch/core-elasticsearch-server-internal/kibana.jsonc index d7d99fa587f47..9ac8f0e982fdf 100644 --- a/packages/core/elasticsearch/core-elasticsearch-server-internal/kibana.jsonc +++ b/packages/core/elasticsearch/core-elasticsearch-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-elasticsearch-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/elasticsearch/core-elasticsearch-server-mocks/kibana.jsonc b/packages/core/elasticsearch/core-elasticsearch-server-mocks/kibana.jsonc index e08bba9ad0e34..77f9199a531e1 100644 --- a/packages/core/elasticsearch/core-elasticsearch-server-mocks/kibana.jsonc +++ b/packages/core/elasticsearch/core-elasticsearch-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-elasticsearch-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/elasticsearch/core-elasticsearch-server/kibana.jsonc b/packages/core/elasticsearch/core-elasticsearch-server/kibana.jsonc index 0cc1c07fa2b30..e855f5d75a618 100644 --- a/packages/core/elasticsearch/core-elasticsearch-server/kibana.jsonc +++ b/packages/core/elasticsearch/core-elasticsearch-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-elasticsearch-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/environment/core-environment-server-internal/kibana.jsonc b/packages/core/environment/core-environment-server-internal/kibana.jsonc index c25c03c1a433d..7e0d68e96d35f 100644 --- a/packages/core/environment/core-environment-server-internal/kibana.jsonc +++ b/packages/core/environment/core-environment-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-environment-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/environment/core-environment-server-mocks/kibana.jsonc b/packages/core/environment/core-environment-server-mocks/kibana.jsonc index 52b0d1fd67358..6dbbc97b8ba6a 100644 --- a/packages/core/environment/core-environment-server-mocks/kibana.jsonc +++ b/packages/core/environment/core-environment-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-environment-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/execution-context/core-execution-context-browser-internal/kibana.jsonc b/packages/core/execution-context/core-execution-context-browser-internal/kibana.jsonc index 36f56a25426a8..58bc6361a167a 100644 --- a/packages/core/execution-context/core-execution-context-browser-internal/kibana.jsonc +++ b/packages/core/execution-context/core-execution-context-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-execution-context-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/execution-context/core-execution-context-browser-mocks/kibana.jsonc b/packages/core/execution-context/core-execution-context-browser-mocks/kibana.jsonc index 2f26eabba462b..1aeb9063aaeda 100644 --- a/packages/core/execution-context/core-execution-context-browser-mocks/kibana.jsonc +++ b/packages/core/execution-context/core-execution-context-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-execution-context-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/execution-context/core-execution-context-browser/kibana.jsonc b/packages/core/execution-context/core-execution-context-browser/kibana.jsonc index ee8dd2fad5ebe..570753b177b7c 100644 --- a/packages/core/execution-context/core-execution-context-browser/kibana.jsonc +++ b/packages/core/execution-context/core-execution-context-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-execution-context-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/execution-context/core-execution-context-server-internal/kibana.jsonc b/packages/core/execution-context/core-execution-context-server-internal/kibana.jsonc index 7da11bd3d4571..b7377b5cc8fc0 100644 --- a/packages/core/execution-context/core-execution-context-server-internal/kibana.jsonc +++ b/packages/core/execution-context/core-execution-context-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-execution-context-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/execution-context/core-execution-context-server-mocks/kibana.jsonc b/packages/core/execution-context/core-execution-context-server-mocks/kibana.jsonc index f00127ed53fd3..db21d4a76c292 100644 --- a/packages/core/execution-context/core-execution-context-server-mocks/kibana.jsonc +++ b/packages/core/execution-context/core-execution-context-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-execution-context-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/execution-context/core-execution-context-server/kibana.jsonc b/packages/core/execution-context/core-execution-context-server/kibana.jsonc index 3249180ad327e..97a1236880656 100644 --- a/packages/core/execution-context/core-execution-context-server/kibana.jsonc +++ b/packages/core/execution-context/core-execution-context-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-execution-context-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-internal/kibana.jsonc b/packages/core/fatal-errors/core-fatal-errors-browser-internal/kibana.jsonc index 5b5b044518d52..a2abf8bdac3fc 100644 --- a/packages/core/fatal-errors/core-fatal-errors-browser-internal/kibana.jsonc +++ b/packages/core/fatal-errors/core-fatal-errors-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-fatal-errors-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/fatal-errors/core-fatal-errors-browser-mocks/kibana.jsonc b/packages/core/fatal-errors/core-fatal-errors-browser-mocks/kibana.jsonc index 7f109e5a82a33..fa9111fb12dad 100644 --- a/packages/core/fatal-errors/core-fatal-errors-browser-mocks/kibana.jsonc +++ b/packages/core/fatal-errors/core-fatal-errors-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-fatal-errors-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/fatal-errors/core-fatal-errors-browser/kibana.jsonc b/packages/core/fatal-errors/core-fatal-errors-browser/kibana.jsonc index a8e7670392301..ad3f9422482c7 100644 --- a/packages/core/fatal-errors/core-fatal-errors-browser/kibana.jsonc +++ b/packages/core/fatal-errors/core-fatal-errors-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-fatal-errors-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-browser-internal/kibana.jsonc b/packages/core/http/core-http-browser-internal/kibana.jsonc index aca4d47656686..628fabf38eb5b 100644 --- a/packages/core/http/core-http-browser-internal/kibana.jsonc +++ b/packages/core/http/core-http-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-http-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-browser-mocks/kibana.jsonc b/packages/core/http/core-http-browser-mocks/kibana.jsonc index 1a6824642b610..a97b6052fa0fd 100644 --- a/packages/core/http/core-http-browser-mocks/kibana.jsonc +++ b/packages/core/http/core-http-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-http-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/http/core-http-browser/kibana.jsonc b/packages/core/http/core-http-browser/kibana.jsonc index 8c1fdee8d3298..ee7f45d35429d 100644 --- a/packages/core/http/core-http-browser/kibana.jsonc +++ b/packages/core/http/core-http-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-http-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-context-server-internal/kibana.jsonc b/packages/core/http/core-http-context-server-internal/kibana.jsonc index 434d1c3055670..20d82599501f8 100644 --- a/packages/core/http/core-http-context-server-internal/kibana.jsonc +++ b/packages/core/http/core-http-context-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-context-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-context-server-mocks/kibana.jsonc b/packages/core/http/core-http-context-server-mocks/kibana.jsonc index 19c6c700b54e6..20778b8e10538 100644 --- a/packages/core/http/core-http-context-server-mocks/kibana.jsonc +++ b/packages/core/http/core-http-context-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-context-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/http/core-http-request-handler-context-server-internal/kibana.jsonc b/packages/core/http/core-http-request-handler-context-server-internal/kibana.jsonc index 5e5099ff6933b..8fc7abfabeeec 100644 --- a/packages/core/http/core-http-request-handler-context-server-internal/kibana.jsonc +++ b/packages/core/http/core-http-request-handler-context-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-request-handler-context-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-request-handler-context-server/kibana.jsonc b/packages/core/http/core-http-request-handler-context-server/kibana.jsonc index 488812d9ae1f0..45786e53decbe 100644 --- a/packages/core/http/core-http-request-handler-context-server/kibana.jsonc +++ b/packages/core/http/core-http-request-handler-context-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-request-handler-context-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-resources-server-internal/kibana.jsonc b/packages/core/http/core-http-resources-server-internal/kibana.jsonc index 5aaa476b2b770..d9217be8446de 100644 --- a/packages/core/http/core-http-resources-server-internal/kibana.jsonc +++ b/packages/core/http/core-http-resources-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-resources-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-resources-server-mocks/kibana.jsonc b/packages/core/http/core-http-resources-server-mocks/kibana.jsonc index 3b2bbee18b260..e6ec34b3b590d 100644 --- a/packages/core/http/core-http-resources-server-mocks/kibana.jsonc +++ b/packages/core/http/core-http-resources-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-resources-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/http/core-http-resources-server/kibana.jsonc b/packages/core/http/core-http-resources-server/kibana.jsonc index dd204cfcd25e0..2b80c017c4d9d 100644 --- a/packages/core/http/core-http-resources-server/kibana.jsonc +++ b/packages/core/http/core-http-resources-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-resources-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-router-server-internal/kibana.jsonc b/packages/core/http/core-http-router-server-internal/kibana.jsonc index 329d03a5490cb..31b2f2dec88ad 100644 --- a/packages/core/http/core-http-router-server-internal/kibana.jsonc +++ b/packages/core/http/core-http-router-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-router-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-router-server-mocks/kibana.jsonc b/packages/core/http/core-http-router-server-mocks/kibana.jsonc index 5c6cbef3e8bd6..505cad6714c81 100644 --- a/packages/core/http/core-http-router-server-mocks/kibana.jsonc +++ b/packages/core/http/core-http-router-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-router-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/http/core-http-server-internal/kibana.jsonc b/packages/core/http/core-http-server-internal/kibana.jsonc index 984aaa761f171..b3c59759d39af 100644 --- a/packages/core/http/core-http-server-internal/kibana.jsonc +++ b/packages/core/http/core-http-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/http/core-http-server-mocks/kibana.jsonc b/packages/core/http/core-http-server-mocks/kibana.jsonc index 07b23a084f966..9af9873c9bd5e 100644 --- a/packages/core/http/core-http-server-mocks/kibana.jsonc +++ b/packages/core/http/core-http-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/http/core-http-server/kibana.jsonc b/packages/core/http/core-http-server/kibana.jsonc index 6ff36f0dea0d6..3e1bc4b7b248a 100644 --- a/packages/core/http/core-http-server/kibana.jsonc +++ b/packages/core/http/core-http-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-http-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/i18n/core-i18n-browser-internal/kibana.jsonc b/packages/core/i18n/core-i18n-browser-internal/kibana.jsonc index 40d9d2ffbb869..472c9906f8910 100644 --- a/packages/core/i18n/core-i18n-browser-internal/kibana.jsonc +++ b/packages/core/i18n/core-i18n-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-i18n-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/i18n/core-i18n-browser-mocks/kibana.jsonc b/packages/core/i18n/core-i18n-browser-mocks/kibana.jsonc index 1c8b1d19d51ee..e1e06ed6fd62b 100644 --- a/packages/core/i18n/core-i18n-browser-mocks/kibana.jsonc +++ b/packages/core/i18n/core-i18n-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-i18n-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/i18n/core-i18n-browser/kibana.jsonc b/packages/core/i18n/core-i18n-browser/kibana.jsonc index ef5cba0b357e0..5d716dd511601 100644 --- a/packages/core/i18n/core-i18n-browser/kibana.jsonc +++ b/packages/core/i18n/core-i18n-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-i18n-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/i18n/core-i18n-server-internal/kibana.jsonc b/packages/core/i18n/core-i18n-server-internal/kibana.jsonc index fe63ef9f53f9a..267895c3f6910 100644 --- a/packages/core/i18n/core-i18n-server-internal/kibana.jsonc +++ b/packages/core/i18n/core-i18n-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-i18n-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/i18n/core-i18n-server-mocks/kibana.jsonc b/packages/core/i18n/core-i18n-server-mocks/kibana.jsonc index 1d651ce8a767b..d5c3c4ae63629 100644 --- a/packages/core/i18n/core-i18n-server-mocks/kibana.jsonc +++ b/packages/core/i18n/core-i18n-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-i18n-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/i18n/core-i18n-server/kibana.jsonc b/packages/core/i18n/core-i18n-server/kibana.jsonc index 52cd43387a99c..4502f90576967 100644 --- a/packages/core/i18n/core-i18n-server/kibana.jsonc +++ b/packages/core/i18n/core-i18n-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-i18n-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-internal/kibana.jsonc b/packages/core/injected-metadata/core-injected-metadata-browser-internal/kibana.jsonc index efa2b0d56127e..e899f3410c37f 100644 --- a/packages/core/injected-metadata/core-injected-metadata-browser-internal/kibana.jsonc +++ b/packages/core/injected-metadata/core-injected-metadata-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-injected-metadata-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/injected-metadata/core-injected-metadata-browser-mocks/kibana.jsonc b/packages/core/injected-metadata/core-injected-metadata-browser-mocks/kibana.jsonc index c353636f8b2a6..4dfed6e72d7fb 100644 --- a/packages/core/injected-metadata/core-injected-metadata-browser-mocks/kibana.jsonc +++ b/packages/core/injected-metadata/core-injected-metadata-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-injected-metadata-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/integrations/core-integrations-browser-internal/kibana.jsonc b/packages/core/integrations/core-integrations-browser-internal/kibana.jsonc index 73312e0e70a99..6b51ef7e6ef89 100644 --- a/packages/core/integrations/core-integrations-browser-internal/kibana.jsonc +++ b/packages/core/integrations/core-integrations-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-integrations-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/integrations/core-integrations-browser-mocks/kibana.jsonc b/packages/core/integrations/core-integrations-browser-mocks/kibana.jsonc index c1506381719ad..ee13f1e79a59d 100644 --- a/packages/core/integrations/core-integrations-browser-mocks/kibana.jsonc +++ b/packages/core/integrations/core-integrations-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-integrations-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/lifecycle/core-lifecycle-browser-internal/kibana.jsonc b/packages/core/lifecycle/core-lifecycle-browser-internal/kibana.jsonc index 33ea1f94aecc5..4e7a537a6d138 100644 --- a/packages/core/lifecycle/core-lifecycle-browser-internal/kibana.jsonc +++ b/packages/core/lifecycle/core-lifecycle-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-lifecycle-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/lifecycle/core-lifecycle-browser-mocks/kibana.jsonc b/packages/core/lifecycle/core-lifecycle-browser-mocks/kibana.jsonc index d70f77670c1e4..2834401d929cb 100644 --- a/packages/core/lifecycle/core-lifecycle-browser-mocks/kibana.jsonc +++ b/packages/core/lifecycle/core-lifecycle-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-lifecycle-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/lifecycle/core-lifecycle-browser/kibana.jsonc b/packages/core/lifecycle/core-lifecycle-browser/kibana.jsonc index 664562cba4d09..c757e67b8ed3a 100644 --- a/packages/core/lifecycle/core-lifecycle-browser/kibana.jsonc +++ b/packages/core/lifecycle/core-lifecycle-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-lifecycle-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/lifecycle/core-lifecycle-server-internal/kibana.jsonc b/packages/core/lifecycle/core-lifecycle-server-internal/kibana.jsonc index d456283f5a607..9cb8ad860034e 100644 --- a/packages/core/lifecycle/core-lifecycle-server-internal/kibana.jsonc +++ b/packages/core/lifecycle/core-lifecycle-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-lifecycle-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/lifecycle/core-lifecycle-server-mocks/kibana.jsonc b/packages/core/lifecycle/core-lifecycle-server-mocks/kibana.jsonc index 4f780278c2806..93f8b8b8eb954 100644 --- a/packages/core/lifecycle/core-lifecycle-server-mocks/kibana.jsonc +++ b/packages/core/lifecycle/core-lifecycle-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-lifecycle-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/lifecycle/core-lifecycle-server/kibana.jsonc b/packages/core/lifecycle/core-lifecycle-server/kibana.jsonc index 76017c824b42a..6ee8465d66cfa 100644 --- a/packages/core/lifecycle/core-lifecycle-server/kibana.jsonc +++ b/packages/core/lifecycle/core-lifecycle-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-lifecycle-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/logging/core-logging-browser-internal/kibana.jsonc b/packages/core/logging/core-logging-browser-internal/kibana.jsonc index 326b03a2367f0..da41db7028f8c 100644 --- a/packages/core/logging/core-logging-browser-internal/kibana.jsonc +++ b/packages/core/logging/core-logging-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-logging-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/logging/core-logging-browser-mocks/kibana.jsonc b/packages/core/logging/core-logging-browser-mocks/kibana.jsonc index 04b3c2bd699df..97044b2219169 100644 --- a/packages/core/logging/core-logging-browser-mocks/kibana.jsonc +++ b/packages/core/logging/core-logging-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-logging-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/logging/core-logging-server-internal/kibana.jsonc b/packages/core/logging/core-logging-server-internal/kibana.jsonc index 827b3e7ed1203..180b112fa0047 100644 --- a/packages/core/logging/core-logging-server-internal/kibana.jsonc +++ b/packages/core/logging/core-logging-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-logging-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/logging/core-logging-server-mocks/kibana.jsonc b/packages/core/logging/core-logging-server-mocks/kibana.jsonc index 443efb6cdcfe6..b0457e357feff 100644 --- a/packages/core/logging/core-logging-server-mocks/kibana.jsonc +++ b/packages/core/logging/core-logging-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-logging-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/logging/core-logging-server/kibana.jsonc b/packages/core/logging/core-logging-server/kibana.jsonc index 92940b93a8dbe..d522793fc7cb8 100644 --- a/packages/core/logging/core-logging-server/kibana.jsonc +++ b/packages/core/logging/core-logging-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-logging-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/metrics/core-metrics-collectors-server-internal/kibana.jsonc b/packages/core/metrics/core-metrics-collectors-server-internal/kibana.jsonc index a277d5fad2112..a6e5c586df1c9 100644 --- a/packages/core/metrics/core-metrics-collectors-server-internal/kibana.jsonc +++ b/packages/core/metrics/core-metrics-collectors-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-metrics-collectors-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/metrics/core-metrics-collectors-server-mocks/kibana.jsonc b/packages/core/metrics/core-metrics-collectors-server-mocks/kibana.jsonc index 7629dd18a55b5..709f4fa7137fe 100644 --- a/packages/core/metrics/core-metrics-collectors-server-mocks/kibana.jsonc +++ b/packages/core/metrics/core-metrics-collectors-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-metrics-collectors-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/metrics/core-metrics-server-internal/kibana.jsonc b/packages/core/metrics/core-metrics-server-internal/kibana.jsonc index 303c3a46d8eaf..229e11fd697a5 100644 --- a/packages/core/metrics/core-metrics-server-internal/kibana.jsonc +++ b/packages/core/metrics/core-metrics-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-metrics-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/metrics/core-metrics-server-mocks/kibana.jsonc b/packages/core/metrics/core-metrics-server-mocks/kibana.jsonc index b722ae6c1e702..e04bb7a6a414c 100644 --- a/packages/core/metrics/core-metrics-server-mocks/kibana.jsonc +++ b/packages/core/metrics/core-metrics-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-metrics-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/metrics/core-metrics-server/kibana.jsonc b/packages/core/metrics/core-metrics-server/kibana.jsonc index 094d9112f26b1..34654016db00d 100644 --- a/packages/core/metrics/core-metrics-server/kibana.jsonc +++ b/packages/core/metrics/core-metrics-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-metrics-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/mount-utils/core-mount-utils-browser-internal/kibana.jsonc b/packages/core/mount-utils/core-mount-utils-browser-internal/kibana.jsonc index 4f22bf70d7983..886d309507490 100644 --- a/packages/core/mount-utils/core-mount-utils-browser-internal/kibana.jsonc +++ b/packages/core/mount-utils/core-mount-utils-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-mount-utils-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/mount-utils/core-mount-utils-browser/kibana.jsonc b/packages/core/mount-utils/core-mount-utils-browser/kibana.jsonc index 87b8148dbed3c..733fbd5b374d3 100644 --- a/packages/core/mount-utils/core-mount-utils-browser/kibana.jsonc +++ b/packages/core/mount-utils/core-mount-utils-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-mount-utils-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/node/core-node-server-internal/kibana.jsonc b/packages/core/node/core-node-server-internal/kibana.jsonc index 15542a4e3042e..23fe9ae5eeb7f 100644 --- a/packages/core/node/core-node-server-internal/kibana.jsonc +++ b/packages/core/node/core-node-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-node-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/node/core-node-server-mocks/kibana.jsonc b/packages/core/node/core-node-server-mocks/kibana.jsonc index 4a04e244899e5..095a3bd154cca 100644 --- a/packages/core/node/core-node-server-mocks/kibana.jsonc +++ b/packages/core/node/core-node-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-node-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/node/core-node-server/kibana.jsonc b/packages/core/node/core-node-server/kibana.jsonc index 4f4a4d0969bda..a0ae2183674f4 100644 --- a/packages/core/node/core-node-server/kibana.jsonc +++ b/packages/core/node/core-node-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-node-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/notifications/core-notifications-browser-internal/kibana.jsonc b/packages/core/notifications/core-notifications-browser-internal/kibana.jsonc index f41a7a0867ccb..0fc1017568936 100644 --- a/packages/core/notifications/core-notifications-browser-internal/kibana.jsonc +++ b/packages/core/notifications/core-notifications-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-notifications-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/notifications/core-notifications-browser-mocks/kibana.jsonc b/packages/core/notifications/core-notifications-browser-mocks/kibana.jsonc index e5971c404204f..a1a4166e5071e 100644 --- a/packages/core/notifications/core-notifications-browser-mocks/kibana.jsonc +++ b/packages/core/notifications/core-notifications-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-notifications-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/notifications/core-notifications-browser/kibana.jsonc b/packages/core/notifications/core-notifications-browser/kibana.jsonc index 0bbdd53e56eb2..57f94b45d3b4e 100644 --- a/packages/core/notifications/core-notifications-browser/kibana.jsonc +++ b/packages/core/notifications/core-notifications-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-notifications-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/overlays/core-overlays-browser-internal/kibana.jsonc b/packages/core/overlays/core-overlays-browser-internal/kibana.jsonc index b0b38b2e851c0..fd9cb866623da 100644 --- a/packages/core/overlays/core-overlays-browser-internal/kibana.jsonc +++ b/packages/core/overlays/core-overlays-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-overlays-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/overlays/core-overlays-browser-mocks/kibana.jsonc b/packages/core/overlays/core-overlays-browser-mocks/kibana.jsonc index ee4989cc38d1f..dfaa8ee75a3e5 100644 --- a/packages/core/overlays/core-overlays-browser-mocks/kibana.jsonc +++ b/packages/core/overlays/core-overlays-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-overlays-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/overlays/core-overlays-browser/kibana.jsonc b/packages/core/overlays/core-overlays-browser/kibana.jsonc index 6d5de7ad36d43..eb984476abc69 100644 --- a/packages/core/overlays/core-overlays-browser/kibana.jsonc +++ b/packages/core/overlays/core-overlays-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-overlays-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/plugins/core-plugins-base-server-internal/kibana.jsonc b/packages/core/plugins/core-plugins-base-server-internal/kibana.jsonc index 313d463f8f8c5..a4613a19a0797 100644 --- a/packages/core/plugins/core-plugins-base-server-internal/kibana.jsonc +++ b/packages/core/plugins/core-plugins-base-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-plugins-base-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/plugins/core-plugins-browser-internal/kibana.jsonc b/packages/core/plugins/core-plugins-browser-internal/kibana.jsonc index a55852a5f5249..69463787683bc 100644 --- a/packages/core/plugins/core-plugins-browser-internal/kibana.jsonc +++ b/packages/core/plugins/core-plugins-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-plugins-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/plugins/core-plugins-browser-mocks/kibana.jsonc b/packages/core/plugins/core-plugins-browser-mocks/kibana.jsonc index 8dd092a0835d1..ced5e9a156fdc 100644 --- a/packages/core/plugins/core-plugins-browser-mocks/kibana.jsonc +++ b/packages/core/plugins/core-plugins-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-plugins-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/plugins/core-plugins-browser/kibana.jsonc b/packages/core/plugins/core-plugins-browser/kibana.jsonc index 2f521b0048f73..75ae0e37db655 100644 --- a/packages/core/plugins/core-plugins-browser/kibana.jsonc +++ b/packages/core/plugins/core-plugins-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-plugins-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/plugins/core-plugins-contracts-browser/kibana.jsonc b/packages/core/plugins/core-plugins-contracts-browser/kibana.jsonc index d4c93363d0def..4363d5a4048b5 100644 --- a/packages/core/plugins/core-plugins-contracts-browser/kibana.jsonc +++ b/packages/core/plugins/core-plugins-contracts-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-plugins-contracts-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/plugins/core-plugins-contracts-server/kibana.jsonc b/packages/core/plugins/core-plugins-contracts-server/kibana.jsonc index 8ce77051c273d..dc29e2f6343b9 100644 --- a/packages/core/plugins/core-plugins-contracts-server/kibana.jsonc +++ b/packages/core/plugins/core-plugins-contracts-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-plugins-contracts-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/plugins/core-plugins-server-internal/kibana.jsonc b/packages/core/plugins/core-plugins-server-internal/kibana.jsonc index e4cbaaef2341d..b9e0f861ef68d 100644 --- a/packages/core/plugins/core-plugins-server-internal/kibana.jsonc +++ b/packages/core/plugins/core-plugins-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-plugins-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/plugins/core-plugins-server-mocks/kibana.jsonc b/packages/core/plugins/core-plugins-server-mocks/kibana.jsonc index f56fe9da7ab06..85cbd66366bdd 100644 --- a/packages/core/plugins/core-plugins-server-mocks/kibana.jsonc +++ b/packages/core/plugins/core-plugins-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-plugins-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/plugins/core-plugins-server/kibana.jsonc b/packages/core/plugins/core-plugins-server/kibana.jsonc index e152670fd40e7..3ecaaf32ee1c1 100644 --- a/packages/core/plugins/core-plugins-server/kibana.jsonc +++ b/packages/core/plugins/core-plugins-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-plugins-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/preboot/core-preboot-server-internal/kibana.jsonc b/packages/core/preboot/core-preboot-server-internal/kibana.jsonc index 2f391bdfd0f5d..397670fdcb6f2 100644 --- a/packages/core/preboot/core-preboot-server-internal/kibana.jsonc +++ b/packages/core/preboot/core-preboot-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-preboot-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/preboot/core-preboot-server-mocks/kibana.jsonc b/packages/core/preboot/core-preboot-server-mocks/kibana.jsonc index de65649980659..725c8917b5c89 100644 --- a/packages/core/preboot/core-preboot-server-mocks/kibana.jsonc +++ b/packages/core/preboot/core-preboot-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-preboot-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/preboot/core-preboot-server/kibana.jsonc b/packages/core/preboot/core-preboot-server/kibana.jsonc index adcbf3c84aeed..efadbe758dda5 100644 --- a/packages/core/preboot/core-preboot-server/kibana.jsonc +++ b/packages/core/preboot/core-preboot-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-preboot-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/rendering/core-rendering-browser-internal/kibana.jsonc b/packages/core/rendering/core-rendering-browser-internal/kibana.jsonc index 87f174de187ff..c1fd6e01a8e4c 100644 --- a/packages/core/rendering/core-rendering-browser-internal/kibana.jsonc +++ b/packages/core/rendering/core-rendering-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-rendering-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/rendering/core-rendering-browser-mocks/kibana.jsonc b/packages/core/rendering/core-rendering-browser-mocks/kibana.jsonc index 25279626447cb..5d2d1b81e3684 100644 --- a/packages/core/rendering/core-rendering-browser-mocks/kibana.jsonc +++ b/packages/core/rendering/core-rendering-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-rendering-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/rendering/core-rendering-server-internal/kibana.jsonc b/packages/core/rendering/core-rendering-server-internal/kibana.jsonc index 9f7f2ea9c43a1..aed5dd9ca56c7 100644 --- a/packages/core/rendering/core-rendering-server-internal/kibana.jsonc +++ b/packages/core/rendering/core-rendering-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-rendering-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/rendering/core-rendering-server-mocks/kibana.jsonc b/packages/core/rendering/core-rendering-server-mocks/kibana.jsonc index f56b1a1c735b3..4f21e2965c05a 100644 --- a/packages/core/rendering/core-rendering-server-mocks/kibana.jsonc +++ b/packages/core/rendering/core-rendering-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-rendering-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/root/core-root-browser-internal/kibana.jsonc b/packages/core/root/core-root-browser-internal/kibana.jsonc index e99eaefd0e847..688f03f72f9a6 100644 --- a/packages/core/root/core-root-browser-internal/kibana.jsonc +++ b/packages/core/root/core-root-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-root-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/root/core-root-server-internal/kibana.jsonc b/packages/core/root/core-root-server-internal/kibana.jsonc index 45446380c4498..ce17c8da954d8 100644 --- a/packages/core/root/core-root-server-internal/kibana.jsonc +++ b/packages/core/root/core-root-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-root-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-api-browser/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-api-browser/kibana.jsonc index 29d24ccc6a086..03af10ac7574d 100644 --- a/packages/core/saved-objects/core-saved-objects-api-browser/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-api-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-saved-objects-api-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-api-server-internal/kibana.jsonc index e85d65a507884..aa37176be967a 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server-internal/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-api-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-api-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-api-server-mocks/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-api-server-mocks/kibana.jsonc index 396eaf6911868..6861249ad218c 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server-mocks/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-api-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-api-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/saved-objects/core-saved-objects-api-server/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-api-server/kibana.jsonc index 4f6c6b3f761dd..f6c63453e8cdb 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-api-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-api-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-base-server-internal/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-base-server-internal/kibana.jsonc index fba789e2893c8..54d1713159131 100644 --- a/packages/core/saved-objects/core-saved-objects-base-server-internal/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-base-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-base-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-base-server-mocks/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-base-server-mocks/kibana.jsonc index ec80952e8e88a..fe587abdc39ab 100644 --- a/packages/core/saved-objects/core-saved-objects-base-server-mocks/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-base-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-base-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/saved-objects/core-saved-objects-browser-internal/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-browser-internal/kibana.jsonc index 85abf04f839f4..60e888d1b3b3c 100644 --- a/packages/core/saved-objects/core-saved-objects-browser-internal/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-saved-objects-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-browser-mocks/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-browser-mocks/kibana.jsonc index d23c1c7eaf8fb..94359faaca959 100644 --- a/packages/core/saved-objects/core-saved-objects-browser-mocks/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-saved-objects-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/saved-objects/core-saved-objects-browser/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-browser/kibana.jsonc index b09f75ea9f6c9..57cb6bd12f1c4 100644 --- a/packages/core/saved-objects/core-saved-objects-browser/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-saved-objects-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-import-export-server-internal/kibana.jsonc index cde6f2516df0d..fe57ff428f976 100644 --- a/packages/core/saved-objects/core-saved-objects-import-export-server-internal/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-import-export-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-import-export-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-import-export-server-mocks/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-import-export-server-mocks/kibana.jsonc index 94155855e5a69..603d097e62565 100644 --- a/packages/core/saved-objects/core-saved-objects-import-export-server-mocks/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-import-export-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-import-export-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-internal/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-migration-server-internal/kibana.jsonc index 05f06aeb86b89..cb6444d2841ad 100644 --- a/packages/core/saved-objects/core-saved-objects-migration-server-internal/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-migration-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-migration-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-migration-server-mocks/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-migration-server-mocks/kibana.jsonc index 3085afaf90d13..f892512e6564d 100644 --- a/packages/core/saved-objects/core-saved-objects-migration-server-mocks/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-migration-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-migration-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/saved-objects/core-saved-objects-server-internal/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-server-internal/kibana.jsonc index 4e71454f9ca73..5c6c74e11ac17 100644 --- a/packages/core/saved-objects/core-saved-objects-server-internal/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-server-mocks/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-server-mocks/kibana.jsonc index ed6812237c399..48db247796e90 100644 --- a/packages/core/saved-objects/core-saved-objects-server-mocks/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/saved-objects/core-saved-objects-server/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-server/kibana.jsonc index b6baeefd08b95..5c463bd67b910 100644 --- a/packages/core/saved-objects/core-saved-objects-server/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/saved-objects/core-saved-objects-utils-server/kibana.jsonc b/packages/core/saved-objects/core-saved-objects-utils-server/kibana.jsonc index 17724acc7468f..5a638dc512dd8 100644 --- a/packages/core/saved-objects/core-saved-objects-utils-server/kibana.jsonc +++ b/packages/core/saved-objects/core-saved-objects-utils-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-saved-objects-utils-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/security/core-security-browser-internal/kibana.jsonc b/packages/core/security/core-security-browser-internal/kibana.jsonc index f58fc6ebbcf13..74eb1bc18dea8 100644 --- a/packages/core/security/core-security-browser-internal/kibana.jsonc +++ b/packages/core/security/core-security-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-security-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/security/core-security-browser-mocks/kibana.jsonc b/packages/core/security/core-security-browser-mocks/kibana.jsonc index 30caeaf0e9755..33682e42a043d 100644 --- a/packages/core/security/core-security-browser-mocks/kibana.jsonc +++ b/packages/core/security/core-security-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-security-browser-mocks", "owner": "@elastic/kibana-core" } diff --git a/packages/core/security/core-security-browser/kibana.jsonc b/packages/core/security/core-security-browser/kibana.jsonc index 366bfd7a77512..d772272394270 100644 --- a/packages/core/security/core-security-browser/kibana.jsonc +++ b/packages/core/security/core-security-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-security-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/security/core-security-server-internal/kibana.jsonc b/packages/core/security/core-security-server-internal/kibana.jsonc index 649d849be4844..c361f06d57981 100644 --- a/packages/core/security/core-security-server-internal/kibana.jsonc +++ b/packages/core/security/core-security-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-security-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/security/core-security-server-mocks/kibana.jsonc b/packages/core/security/core-security-server-mocks/kibana.jsonc index 6c9214ecb3281..2a523bfd2a715 100644 --- a/packages/core/security/core-security-server-mocks/kibana.jsonc +++ b/packages/core/security/core-security-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-security-server-mocks", "owner": "@elastic/kibana-core" } diff --git a/packages/core/security/core-security-server/kibana.jsonc b/packages/core/security/core-security-server/kibana.jsonc index 378945f80bb6f..bf89f90c64e7f 100644 --- a/packages/core/security/core-security-server/kibana.jsonc +++ b/packages/core/security/core-security-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-security-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/status/core-status-server-internal/kibana.jsonc b/packages/core/status/core-status-server-internal/kibana.jsonc index 166476e13adaa..ee806bea35cc8 100644 --- a/packages/core/status/core-status-server-internal/kibana.jsonc +++ b/packages/core/status/core-status-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-status-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/status/core-status-server-mocks/kibana.jsonc b/packages/core/status/core-status-server-mocks/kibana.jsonc index 91ee9ce8065bd..1b4ed5a6e7cd2 100644 --- a/packages/core/status/core-status-server-mocks/kibana.jsonc +++ b/packages/core/status/core-status-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-status-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/status/core-status-server/kibana.jsonc b/packages/core/status/core-status-server/kibana.jsonc index 7e7eafcbe13c2..dd7ab2ca731cd 100644 --- a/packages/core/status/core-status-server/kibana.jsonc +++ b/packages/core/status/core-status-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-status-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/test-helpers/core-test-helpers-kbn-server/kibana.jsonc b/packages/core/test-helpers/core-test-helpers-kbn-server/kibana.jsonc index 399c4032208ce..38e166e1d42b6 100644 --- a/packages/core/test-helpers/core-test-helpers-kbn-server/kibana.jsonc +++ b/packages/core/test-helpers/core-test-helpers-kbn-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-test-helpers-kbn-server", "owner": "@elastic/kibana-core", "devOnly": true diff --git a/packages/core/theme/core-theme-browser-internal/kibana.jsonc b/packages/core/theme/core-theme-browser-internal/kibana.jsonc index 4f52d3655e060..b960ca19a1621 100644 --- a/packages/core/theme/core-theme-browser-internal/kibana.jsonc +++ b/packages/core/theme/core-theme-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-theme-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/theme/core-theme-browser-mocks/kibana.jsonc b/packages/core/theme/core-theme-browser-mocks/kibana.jsonc index 5955ef8eb8beb..4abe096bf9526 100644 --- a/packages/core/theme/core-theme-browser-mocks/kibana.jsonc +++ b/packages/core/theme/core-theme-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-theme-browser-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/theme/core-theme-browser/kibana.jsonc b/packages/core/theme/core-theme-browser/kibana.jsonc index 28faccea003bb..a83f9d100e893 100644 --- a/packages/core/theme/core-theme-browser/kibana.jsonc +++ b/packages/core/theme/core-theme-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-theme-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/ui-settings/core-ui-settings-browser-internal/kibana.jsonc b/packages/core/ui-settings/core-ui-settings-browser-internal/kibana.jsonc index 8ed0f675a5e14..3df21a50e4eed 100644 --- a/packages/core/ui-settings/core-ui-settings-browser-internal/kibana.jsonc +++ b/packages/core/ui-settings/core-ui-settings-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-ui-settings-browser-internal", "owner": "@elastic/appex-sharedux" } diff --git a/packages/core/ui-settings/core-ui-settings-browser-mocks/kibana.jsonc b/packages/core/ui-settings/core-ui-settings-browser-mocks/kibana.jsonc index 42af85121662e..5bad0a8987f38 100644 --- a/packages/core/ui-settings/core-ui-settings-browser-mocks/kibana.jsonc +++ b/packages/core/ui-settings/core-ui-settings-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-ui-settings-browser-mocks", "devOnly": true, "owner": "@elastic/appex-sharedux" diff --git a/packages/core/ui-settings/core-ui-settings-browser/kibana.jsonc b/packages/core/ui-settings/core-ui-settings-browser/kibana.jsonc index 2428df187ca31..b659a8483b121 100644 --- a/packages/core/ui-settings/core-ui-settings-browser/kibana.jsonc +++ b/packages/core/ui-settings/core-ui-settings-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-ui-settings-browser", "owner": "@elastic/appex-sharedux" } diff --git a/packages/core/ui-settings/core-ui-settings-server-internal/kibana.jsonc b/packages/core/ui-settings/core-ui-settings-server-internal/kibana.jsonc index f8d6cde5db4da..7d159eb886a9c 100644 --- a/packages/core/ui-settings/core-ui-settings-server-internal/kibana.jsonc +++ b/packages/core/ui-settings/core-ui-settings-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-ui-settings-server-internal", "owner": "@elastic/appex-sharedux" } diff --git a/packages/core/ui-settings/core-ui-settings-server-mocks/kibana.jsonc b/packages/core/ui-settings/core-ui-settings-server-mocks/kibana.jsonc index 5d91163b19f44..2db68ae26f2ce 100644 --- a/packages/core/ui-settings/core-ui-settings-server-mocks/kibana.jsonc +++ b/packages/core/ui-settings/core-ui-settings-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-ui-settings-server-mocks", "devOnly": true, "owner": "@elastic/appex-sharedux" diff --git a/packages/core/ui-settings/core-ui-settings-server/kibana.jsonc b/packages/core/ui-settings/core-ui-settings-server/kibana.jsonc index f839dbc1f35a9..a060e4ed93ccd 100644 --- a/packages/core/ui-settings/core-ui-settings-server/kibana.jsonc +++ b/packages/core/ui-settings/core-ui-settings-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-ui-settings-server", "owner": "@elastic/appex-sharedux" } diff --git a/packages/core/usage-data/core-usage-data-base-server-internal/kibana.jsonc b/packages/core/usage-data/core-usage-data-base-server-internal/kibana.jsonc index 8c2a2c4b191d9..f1dba28f7a822 100644 --- a/packages/core/usage-data/core-usage-data-base-server-internal/kibana.jsonc +++ b/packages/core/usage-data/core-usage-data-base-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-usage-data-base-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/usage-data/core-usage-data-server-internal/kibana.jsonc b/packages/core/usage-data/core-usage-data-server-internal/kibana.jsonc index 9e8be00d3c9dd..005599f123507 100644 --- a/packages/core/usage-data/core-usage-data-server-internal/kibana.jsonc +++ b/packages/core/usage-data/core-usage-data-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-usage-data-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/usage-data/core-usage-data-server-mocks/kibana.jsonc b/packages/core/usage-data/core-usage-data-server-mocks/kibana.jsonc index 65dd20ad22ece..02e9d1e3a5c34 100644 --- a/packages/core/usage-data/core-usage-data-server-mocks/kibana.jsonc +++ b/packages/core/usage-data/core-usage-data-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-usage-data-server-mocks", "devOnly": true, "owner": "@elastic/kibana-core" diff --git a/packages/core/usage-data/core-usage-data-server/kibana.jsonc b/packages/core/usage-data/core-usage-data-server/kibana.jsonc index 722bd81550aa8..b90d5b3027b42 100644 --- a/packages/core/usage-data/core-usage-data-server/kibana.jsonc +++ b/packages/core/usage-data/core-usage-data-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-usage-data-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/user-profile/core-user-profile-browser-internal/kibana.jsonc b/packages/core/user-profile/core-user-profile-browser-internal/kibana.jsonc index 00e00c831988e..b3ffc7c2d1f7c 100644 --- a/packages/core/user-profile/core-user-profile-browser-internal/kibana.jsonc +++ b/packages/core/user-profile/core-user-profile-browser-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-user-profile-browser-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/user-profile/core-user-profile-browser-mocks/kibana.jsonc b/packages/core/user-profile/core-user-profile-browser-mocks/kibana.jsonc index 49e11fd3d169d..557849cb6a39c 100644 --- a/packages/core/user-profile/core-user-profile-browser-mocks/kibana.jsonc +++ b/packages/core/user-profile/core-user-profile-browser-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-user-profile-browser-mocks", "owner": "@elastic/kibana-core" } diff --git a/packages/core/user-profile/core-user-profile-browser/kibana.jsonc b/packages/core/user-profile/core-user-profile-browser/kibana.jsonc index 376ee21cdb901..01bdb62b0fd0d 100644 --- a/packages/core/user-profile/core-user-profile-browser/kibana.jsonc +++ b/packages/core/user-profile/core-user-profile-browser/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/core-user-profile-browser", "owner": "@elastic/kibana-core" } diff --git a/packages/core/user-profile/core-user-profile-server-internal/kibana.jsonc b/packages/core/user-profile/core-user-profile-server-internal/kibana.jsonc index dc23dd4450d28..6d10f1f7b4b42 100644 --- a/packages/core/user-profile/core-user-profile-server-internal/kibana.jsonc +++ b/packages/core/user-profile/core-user-profile-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-user-profile-server-internal", "owner": "@elastic/kibana-core" } diff --git a/packages/core/user-profile/core-user-profile-server-mocks/kibana.jsonc b/packages/core/user-profile/core-user-profile-server-mocks/kibana.jsonc index bd62cf371dbc3..9a5fd404a673f 100644 --- a/packages/core/user-profile/core-user-profile-server-mocks/kibana.jsonc +++ b/packages/core/user-profile/core-user-profile-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-user-profile-server-mocks", "owner": "@elastic/kibana-core" } diff --git a/packages/core/user-profile/core-user-profile-server/kibana.jsonc b/packages/core/user-profile/core-user-profile-server/kibana.jsonc index 8d47dde6b5a6f..4a6f847fc5ee9 100644 --- a/packages/core/user-profile/core-user-profile-server/kibana.jsonc +++ b/packages/core/user-profile/core-user-profile-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-user-profile-server", "owner": "@elastic/kibana-core" } diff --git a/packages/core/user-settings/core-user-settings-server-internal/kibana.jsonc b/packages/core/user-settings/core-user-settings-server-internal/kibana.jsonc index ff5d2a67af094..c7716aa9b61f8 100644 --- a/packages/core/user-settings/core-user-settings-server-internal/kibana.jsonc +++ b/packages/core/user-settings/core-user-settings-server-internal/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-user-settings-server-internal", "owner": "@elastic/kibana-security", } diff --git a/packages/core/user-settings/core-user-settings-server-mocks/kibana.jsonc b/packages/core/user-settings/core-user-settings-server-mocks/kibana.jsonc index af71f0c99d734..9860eb095122e 100644 --- a/packages/core/user-settings/core-user-settings-server-mocks/kibana.jsonc +++ b/packages/core/user-settings/core-user-settings-server-mocks/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-user-settings-server-mocks", "owner": "@elastic/kibana-security", } diff --git a/packages/core/user-settings/core-user-settings-server/kibana.jsonc b/packages/core/user-settings/core-user-settings-server/kibana.jsonc index bcf4627a5c5d9..eac6fde03c287 100644 --- a/packages/core/user-settings/core-user-settings-server/kibana.jsonc +++ b/packages/core/user-settings/core-user-settings-server/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/core-user-settings-server", "owner": "@elastic/kibana-security", } diff --git a/packages/kbn-alerts-ui-shared/kibana.jsonc b/packages/kbn-alerts-ui-shared/kibana.jsonc index da035e4fbb8f8..a4cfc39e987f9 100644 --- a/packages/kbn-alerts-ui-shared/kibana.jsonc +++ b/packages/kbn-alerts-ui-shared/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/alerts-ui-shared", "owner": "@elastic/response-ops" } diff --git a/packages/kbn-content-management-utils/src/types.ts b/packages/kbn-content-management-utils/src/types.ts index 9c9da41f6e00a..2b6637be19423 100644 --- a/packages/kbn-content-management-utils/src/types.ts +++ b/packages/kbn-content-management-utils/src/types.ts @@ -28,13 +28,13 @@ export interface ServicesDefinitionSet { [version: Version]: ServicesDefinition; } -import { +import type { SortOrder, AggregationsAggregationContainer, SortResults, } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { +import type { MutatingOperationRefreshSetting, SavedObjectsPitParams, SavedObjectsFindOptionsReference, diff --git a/packages/kbn-content-management-utils/src/utils.ts b/packages/kbn-content-management-utils/src/utils.ts index f7c1a13da67fd..2fb6b4a34be06 100644 --- a/packages/kbn-content-management-utils/src/utils.ts +++ b/packages/kbn-content-management-utils/src/utils.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { SavedObjectsFindOptions } from '@kbn/core-saved-objects-api-server'; +import type { SavedObjectsFindOptions } from '@kbn/core-saved-objects-api-server'; export const tagsToFindOptions = ({ included, diff --git a/packages/kbn-custom-integrations/kibana.jsonc b/packages/kbn-custom-integrations/kibana.jsonc index 995d5bb4ef69d..b354b8e51cfe1 100644 --- a/packages/kbn-custom-integrations/kibana.jsonc +++ b/packages/kbn-custom-integrations/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/custom-integrations", "owner": "@elastic/obs-ux-logs-team" } diff --git a/packages/kbn-docs-utils/src/find_plugins.ts b/packages/kbn-docs-utils/src/find_plugins.ts index 8fbe47ad90d02..8dd0a3de98535 100644 --- a/packages/kbn-docs-utils/src/find_plugins.ts +++ b/packages/kbn-docs-utils/src/find_plugins.ts @@ -19,6 +19,7 @@ function toApiScope(pkg: Package): ApiScope { return ApiScope.CLIENT; case 'shared-server': return ApiScope.SERVER; + case 'core': case 'test-helper': case 'functional-tests': case 'shared-common': diff --git a/packages/kbn-es-archiver/kibana.jsonc b/packages/kbn-es-archiver/kibana.jsonc index 1bf6c53d4bb54..ae651e3873d0b 100644 --- a/packages/kbn-es-archiver/kibana.jsonc +++ b/packages/kbn-es-archiver/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "test-helper", "id": "@kbn/es-archiver", "devOnly": true, "owner": ["@elastic/kibana-operations", "@elastic/appex-qa"], diff --git a/packages/kbn-ftr-common-functional-services/kibana.jsonc b/packages/kbn-ftr-common-functional-services/kibana.jsonc index 68f45c75c6a80..c82496f10987b 100644 --- a/packages/kbn-ftr-common-functional-services/kibana.jsonc +++ b/packages/kbn-ftr-common-functional-services/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "test-helper", "id": "@kbn/ftr-common-functional-services", "owner": ["@elastic/kibana-operations", "@elastic/appex-qa"], "devOnly": true diff --git a/packages/kbn-ftr-common-functional-ui-services/kibana.jsonc b/packages/kbn-ftr-common-functional-ui-services/kibana.jsonc index 5437a12260a9c..a92a8cd4c4a9b 100644 --- a/packages/kbn-ftr-common-functional-ui-services/kibana.jsonc +++ b/packages/kbn-ftr-common-functional-ui-services/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "test-helper", "id": "@kbn/ftr-common-functional-ui-services", "owner": "@elastic/appex-qa", "devOnly": true diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx b/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx index 8813689f8b74d..7888b254a771a 100644 --- a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx +++ b/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.tsx @@ -11,7 +11,7 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import { groupBy, keys } from 'lodash'; -import { ApplicationStart } from '@kbn/core-application-browser'; +import type { ApplicationStart } from '@kbn/core-application-browser'; import { GuideId, GuideState } from '../../../types'; import { GuideFilterValues } from './guide_filters'; diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx b/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx index aeb448ef2a5bf..add3861ece515 100644 --- a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx +++ b/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_filters.tsx @@ -10,7 +10,7 @@ import React from 'react'; import { EuiButton, EuiFlexGroup, EuiFlexItem, useEuiTheme } from '@elastic/eui'; import { css } from '@emotion/react'; import { FormattedMessage } from '@kbn/i18n-react'; -import { ApplicationStart } from '@kbn/core-application-browser'; +import type { ApplicationStart } from '@kbn/core-application-browser'; import { GuideCardSolutions } from './guide_cards'; const filterButtonCss = css` diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx b/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx index c5132cc1fd146..47f76cafaef0e 100644 --- a/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx +++ b/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_filters.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { EuiButton, EuiFlexGroup, EuiFlexItem, useEuiTheme } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { ApplicationStart } from '@kbn/core-application-browser'; +import type { ApplicationStart } from '@kbn/core-application-browser'; import { css } from '@emotion/react'; import { METRIC_TYPE, UiCounterMetricType } from '@kbn/analytics'; import { GuideFilterValuesClassic } from '../../../../classic'; diff --git a/packages/kbn-management/settings/application/kibana.jsonc b/packages/kbn-management/settings/application/kibana.jsonc index f50463a894a07..5ae6bb5132b2e 100644 --- a/packages/kbn-management/settings/application/kibana.jsonc +++ b/packages/kbn-management/settings/application/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-application", "owner": "@elastic/kibana-management" } diff --git a/packages/kbn-management/settings/components/field_category/kibana.jsonc b/packages/kbn-management/settings/components/field_category/kibana.jsonc index 4a893b35daa5c..7161a8c75f49e 100644 --- a/packages/kbn-management/settings/components/field_category/kibana.jsonc +++ b/packages/kbn-management/settings/components/field_category/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-components-field-category", "owner": "@elastic/kibana-management" } diff --git a/packages/kbn-management/settings/components/field_input/kibana.jsonc b/packages/kbn-management/settings/components/field_input/kibana.jsonc index e5d091cb8b0f2..ce990d2955950 100644 --- a/packages/kbn-management/settings/components/field_input/kibana.jsonc +++ b/packages/kbn-management/settings/components/field_input/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-components-field-input", "owner": "@elastic/kibana-management" } diff --git a/packages/kbn-management/settings/components/field_row/kibana.jsonc b/packages/kbn-management/settings/components/field_row/kibana.jsonc index 8b30b47dca8fc..e39c157f53252 100644 --- a/packages/kbn-management/settings/components/field_row/kibana.jsonc +++ b/packages/kbn-management/settings/components/field_row/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-components-field-row", "owner": "@elastic/kibana-management" } diff --git a/packages/kbn-management/settings/components/form/kibana.jsonc b/packages/kbn-management/settings/components/form/kibana.jsonc index 177e93fd1f066..58daacd2622a4 100644 --- a/packages/kbn-management/settings/components/form/kibana.jsonc +++ b/packages/kbn-management/settings/components/form/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-components-form", "owner": "@elastic/kibana-management" } diff --git a/packages/kbn-management/settings/field_definition/kibana.jsonc b/packages/kbn-management/settings/field_definition/kibana.jsonc index 8d4215c7b561c..23459871d7882 100644 --- a/packages/kbn-management/settings/field_definition/kibana.jsonc +++ b/packages/kbn-management/settings/field_definition/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-field-definition", "owner": "@elastic/kibana-management" } diff --git a/packages/kbn-management/settings/section_registry/kibana.jsonc b/packages/kbn-management/settings/section_registry/kibana.jsonc index d9937aa3e8d87..53a9aea666df3 100644 --- a/packages/kbn-management/settings/section_registry/kibana.jsonc +++ b/packages/kbn-management/settings/section_registry/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-section-registry", "owner": "@elastic/appex-sharedux @elastic/kibana-management" } diff --git a/packages/kbn-management/settings/types/kibana.jsonc b/packages/kbn-management/settings/types/kibana.jsonc index 291616c13e049..54a3836a48380 100644 --- a/packages/kbn-management/settings/types/kibana.jsonc +++ b/packages/kbn-management/settings/types/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-types", "owner": "@elastic/kibana-management" } diff --git a/packages/kbn-management/settings/utilities/kibana.jsonc b/packages/kbn-management/settings/utilities/kibana.jsonc index d3c9c86a0f3d2..a32f319da8f66 100644 --- a/packages/kbn-management/settings/utilities/kibana.jsonc +++ b/packages/kbn-management/settings/utilities/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/management-settings-utilities", "owner": "@elastic/kibana-management" } diff --git a/packages/kbn-repo-packages/modern/parse_helpers.js b/packages/kbn-repo-packages/modern/parse_helpers.js index 72afa44602689..2e765bea6f356 100644 --- a/packages/kbn-repo-packages/modern/parse_helpers.js +++ b/packages/kbn-repo-packages/modern/parse_helpers.js @@ -9,6 +9,7 @@ /** @type {{ [k in import('./types').KibanaPackageType]: true }} */ const PACKAGE_TYPE_MAP = { 'functional-tests': true, + core: true, plugin: true, 'shared-browser': true, 'shared-common': true, diff --git a/packages/kbn-repo-packages/modern/parse_package_manifest.js b/packages/kbn-repo-packages/modern/parse_package_manifest.js index d82ca10bf2b1c..aaf5107165ece 100644 --- a/packages/kbn-repo-packages/modern/parse_package_manifest.js +++ b/packages/kbn-repo-packages/modern/parse_package_manifest.js @@ -279,7 +279,12 @@ function validatePackageManifest(parsed, repoRoot, path) { }; // return if this is one of the more basic types of package types - if (type === 'shared-server' || type === 'functional-tests' || type === 'test-helper') { + if ( + type === 'shared-server' || + type === 'functional-tests' || + type === 'test-helper' || + type === 'core' + ) { return { type, ...base, diff --git a/packages/kbn-repo-packages/modern/types.ts b/packages/kbn-repo-packages/modern/types.ts index c0aff593dcd6a..8610fc443992b 100644 --- a/packages/kbn-repo-packages/modern/types.ts +++ b/packages/kbn-repo-packages/modern/types.ts @@ -34,6 +34,7 @@ export interface ParsedPackageJson { } export type KibanaPackageType = + | 'core' | 'plugin' | 'shared-browser' | 'shared-server' @@ -125,7 +126,7 @@ export interface SharedBrowserPackageManifest extends PackageManifestBaseFields } export interface BasePackageManifest extends PackageManifestBaseFields { - type: 'shared-server' | 'functional-tests' | 'test-helper' | 'shared-scss'; + type: 'shared-server' | 'functional-tests' | 'test-helper' | 'shared-scss' | 'core'; } export type KibanaPackageManifest = diff --git a/packages/kbn-repo-source-classifier/src/repo_source_classifier.ts b/packages/kbn-repo-source-classifier/src/repo_source_classifier.ts index 6aed1f1497d0e..5bbbf1878e596 100644 --- a/packages/kbn-repo-source-classifier/src/repo_source_classifier.ts +++ b/packages/kbn-repo-source-classifier/src/repo_source_classifier.ts @@ -189,6 +189,7 @@ export class RepoSourceClassifier { return 'static'; case 'shared-common': return 'common package'; + case 'core': case 'plugin': // classification in plugins is more complicated, fall through to remaining logic break; @@ -200,7 +201,7 @@ export class RepoSourceClassifier { const [root, ...dirs] = rel.split('/'); - if (pkgId === '@kbn/core' && root === 'types') { + if (root === 'types') { return 'common package'; } diff --git a/packages/kbn-resizable-layout/kibana.jsonc b/packages/kbn-resizable-layout/kibana.jsonc index b578e1b774dcc..abc49ac47ffbf 100644 --- a/packages/kbn-resizable-layout/kibana.jsonc +++ b/packages/kbn-resizable-layout/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/resizable-layout", "description": "A component for creating resizable layouts containing a fixed width panel and a flexible panel, with support for horizontal and vertical layouts.", "owner": "@elastic/kibana-data-discovery" diff --git a/packages/kbn-router-to-openapispec/kibana.jsonc b/packages/kbn-router-to-openapispec/kibana.jsonc index 909e9076bb285..a14f443ce27ec 100644 --- a/packages/kbn-router-to-openapispec/kibana.jsonc +++ b/packages/kbn-router-to-openapispec/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/router-to-openapispec", "owner": "@elastic/kibana-core" } diff --git a/packages/kbn-search-connectors/lib/cancel_sync.test.ts b/packages/kbn-search-connectors/lib/cancel_sync.test.ts index 609a62edd831e..eb7713ac9b9f6 100644 --- a/packages/kbn-search-connectors/lib/cancel_sync.test.ts +++ b/packages/kbn-search-connectors/lib/cancel_sync.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { cancelSync } from './cancel_sync'; describe('cancelSync lib function', () => { diff --git a/packages/kbn-search-connectors/lib/cancel_sync.ts b/packages/kbn-search-connectors/lib/cancel_sync.ts index b3f31bb8a41b4..aa6bebba6d149 100644 --- a/packages/kbn-search-connectors/lib/cancel_sync.ts +++ b/packages/kbn-search-connectors/lib/cancel_sync.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { ConnectorAPICancelSyncResponse } from '../types'; export const cancelSync = async (client: ElasticsearchClient, syncJobId: string) => { diff --git a/packages/kbn-search-connectors/lib/cancel_syncs.test.ts b/packages/kbn-search-connectors/lib/cancel_syncs.test.ts index 0fd769099a155..feff884682239 100644 --- a/packages/kbn-search-connectors/lib/cancel_syncs.test.ts +++ b/packages/kbn-search-connectors/lib/cancel_syncs.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import { SyncStatus } from '../types/connectors'; diff --git a/packages/kbn-search-connectors/lib/cancel_syncs.ts b/packages/kbn-search-connectors/lib/cancel_syncs.ts index df66ceee5864e..10c29e9256cd3 100644 --- a/packages/kbn-search-connectors/lib/cancel_syncs.ts +++ b/packages/kbn-search-connectors/lib/cancel_syncs.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { asyncForEach } from '@kbn/std'; import { fetchSyncJobs, cancelSync } from '..'; diff --git a/packages/kbn-search-connectors/lib/collect_connector_stats.ts b/packages/kbn-search-connectors/lib/collect_connector_stats.ts index 1ccb552f9119f..23f026945524c 100644 --- a/packages/kbn-search-connectors/lib/collect_connector_stats.ts +++ b/packages/kbn-search-connectors/lib/collect_connector_stats.ts @@ -6,8 +6,8 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; -import { AggregationsCardinalityAggregate } from '@elastic/elasticsearch/lib/api/types'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { AggregationsCardinalityAggregate } from '@elastic/elasticsearch/lib/api/types'; import { Connector, ConnectorConfigProperties, diff --git a/packages/kbn-search-connectors/lib/create_connector.test.ts b/packages/kbn-search-connectors/lib/create_connector.test.ts index 66d8ce226c1a8..26c45364e14a5 100644 --- a/packages/kbn-search-connectors/lib/create_connector.test.ts +++ b/packages/kbn-search-connectors/lib/create_connector.test.ts @@ -8,7 +8,7 @@ import { errors } from '@elastic/elasticsearch'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { FeatureName } from '../types'; import { createConnector } from './create_connector'; diff --git a/packages/kbn-search-connectors/lib/create_connector.ts b/packages/kbn-search-connectors/lib/create_connector.ts index 5aaf8d2610dd0..bc1e05aaf9340 100644 --- a/packages/kbn-search-connectors/lib/create_connector.ts +++ b/packages/kbn-search-connectors/lib/create_connector.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import { i18n } from '@kbn/i18n'; import { fetchConnectorById } from '..'; diff --git a/packages/kbn-search-connectors/lib/create_connector_secret.test.ts b/packages/kbn-search-connectors/lib/create_connector_secret.test.ts index 15184804e1110..147baf79b82b5 100644 --- a/packages/kbn-search-connectors/lib/create_connector_secret.test.ts +++ b/packages/kbn-search-connectors/lib/create_connector_secret.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { createConnectorSecret } from './create_connector_secret'; diff --git a/packages/kbn-search-connectors/lib/create_connector_secret.ts b/packages/kbn-search-connectors/lib/create_connector_secret.ts index 5060868384548..2a27c2ed7b541 100644 --- a/packages/kbn-search-connectors/lib/create_connector_secret.ts +++ b/packages/kbn-search-connectors/lib/create_connector_secret.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { ConnectorSecretCreateResponse } from '../types/connectors_api'; export const createConnectorSecret = async (client: ElasticsearchClient, value: string) => { diff --git a/packages/kbn-search-connectors/lib/delete_connector.test.ts b/packages/kbn-search-connectors/lib/delete_connector.test.ts index 240bfb1141fa8..63d6beabc6875 100644 --- a/packages/kbn-search-connectors/lib/delete_connector.test.ts +++ b/packages/kbn-search-connectors/lib/delete_connector.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { deleteConnectorById } from './delete_connector'; diff --git a/packages/kbn-search-connectors/lib/delete_connector.ts b/packages/kbn-search-connectors/lib/delete_connector.ts index 57ad48b8ff578..e391429a5fea4 100644 --- a/packages/kbn-search-connectors/lib/delete_connector.ts +++ b/packages/kbn-search-connectors/lib/delete_connector.ts @@ -7,7 +7,7 @@ */ import { AcknowledgedResponseBase } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { cancelSyncs } from './cancel_syncs'; export const deleteConnectorById = async (client: ElasticsearchClient, id: string) => { diff --git a/packages/kbn-search-connectors/lib/delete_connector_secret.test.ts b/packages/kbn-search-connectors/lib/delete_connector_secret.test.ts index 164a37f3ccb57..8d5abefabe903 100644 --- a/packages/kbn-search-connectors/lib/delete_connector_secret.test.ts +++ b/packages/kbn-search-connectors/lib/delete_connector_secret.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { deleteConnectorSecret } from './delete_connector_secret'; diff --git a/packages/kbn-search-connectors/lib/delete_connector_secret.ts b/packages/kbn-search-connectors/lib/delete_connector_secret.ts index c0888e1f8b0a0..2b03404ab5b79 100644 --- a/packages/kbn-search-connectors/lib/delete_connector_secret.ts +++ b/packages/kbn-search-connectors/lib/delete_connector_secret.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { Result } from '@elastic/elasticsearch/lib/api/types'; export const deleteConnectorSecret = async (client: ElasticsearchClient, id: string) => { diff --git a/packages/kbn-search-connectors/lib/fetch_connector_index_names.test.ts b/packages/kbn-search-connectors/lib/fetch_connector_index_names.test.ts index 9da9de7c72d34..b9a7e7eaa7d5c 100644 --- a/packages/kbn-search-connectors/lib/fetch_connector_index_names.test.ts +++ b/packages/kbn-search-connectors/lib/fetch_connector_index_names.test.ts @@ -8,7 +8,7 @@ import { errors } from '@elastic/elasticsearch'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { fetchConnectorIndexNames } from './fetch_connector_index_names'; diff --git a/packages/kbn-search-connectors/lib/fetch_connector_index_names.ts b/packages/kbn-search-connectors/lib/fetch_connector_index_names.ts index b7ef5efcddf61..fabe99147a29a 100644 --- a/packages/kbn-search-connectors/lib/fetch_connector_index_names.ts +++ b/packages/kbn-search-connectors/lib/fetch_connector_index_names.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { fetchConnectors } from './fetch_connectors'; import { isIndexNotFoundException } from '../utils/identify_exceptions'; diff --git a/packages/kbn-search-connectors/lib/fetch_connectors.test.ts b/packages/kbn-search-connectors/lib/fetch_connectors.test.ts index e90f5c200a439..722249313d1a2 100644 --- a/packages/kbn-search-connectors/lib/fetch_connectors.test.ts +++ b/packages/kbn-search-connectors/lib/fetch_connectors.test.ts @@ -8,7 +8,7 @@ import { errors } from '@elastic/elasticsearch'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { fetchConnectorById, fetchConnectorByIndexName, fetchConnectors } from './fetch_connectors'; diff --git a/packages/kbn-search-connectors/lib/fetch_connectors.ts b/packages/kbn-search-connectors/lib/fetch_connectors.ts index 724c943877208..9f266b96ff1ef 100644 --- a/packages/kbn-search-connectors/lib/fetch_connectors.ts +++ b/packages/kbn-search-connectors/lib/fetch_connectors.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { ConnectorAPIListConnectorsResponse } from '..'; diff --git a/packages/kbn-search-connectors/lib/fetch_sync_jobs.ts b/packages/kbn-search-connectors/lib/fetch_sync_jobs.ts index fec6be0cc7eb2..97cbdde5054c9 100644 --- a/packages/kbn-search-connectors/lib/fetch_sync_jobs.ts +++ b/packages/kbn-search-connectors/lib/fetch_sync_jobs.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { ConnectorsAPISyncJobResponse } from '..'; import { ConnectorSyncJob, SyncStatus } from '../types/connectors'; diff --git a/packages/kbn-search-connectors/lib/start_sync.test.ts b/packages/kbn-search-connectors/lib/start_sync.test.ts index 5b8aac3d246ea..71ee5e11294b9 100644 --- a/packages/kbn-search-connectors/lib/start_sync.test.ts +++ b/packages/kbn-search-connectors/lib/start_sync.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/start_sync.ts b/packages/kbn-search-connectors/lib/start_sync.ts index 3f3ad5d4f5e0f..8e3c54b26bf73 100644 --- a/packages/kbn-search-connectors/lib/start_sync.ts +++ b/packages/kbn-search-connectors/lib/start_sync.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { SyncJobType } from '../types/connectors'; diff --git a/packages/kbn-search-connectors/lib/update_connector_api_key_id.test.ts b/packages/kbn-search-connectors/lib/update_connector_api_key_id.test.ts index e7c0e0f0df7e4..d292d8ebf1901 100644 --- a/packages/kbn-search-connectors/lib/update_connector_api_key_id.test.ts +++ b/packages/kbn-search-connectors/lib/update_connector_api_key_id.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { updateConnectorApiKeyId } from './update_connector_api_key_id'; diff --git a/packages/kbn-search-connectors/lib/update_connector_api_key_id.ts b/packages/kbn-search-connectors/lib/update_connector_api_key_id.ts index 9ddf64e687d2c..545035528c8e4 100644 --- a/packages/kbn-search-connectors/lib/update_connector_api_key_id.ts +++ b/packages/kbn-search-connectors/lib/update_connector_api_key_id.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { Result } from '@elastic/elasticsearch/lib/api/types'; export const updateConnectorApiKeyId = async ( diff --git a/packages/kbn-search-connectors/lib/update_connector_configuration.test.ts b/packages/kbn-search-connectors/lib/update_connector_configuration.test.ts index 7ed0bae6cf53e..f4b29300822b9 100644 --- a/packages/kbn-search-connectors/lib/update_connector_configuration.test.ts +++ b/packages/kbn-search-connectors/lib/update_connector_configuration.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_connector_configuration.ts b/packages/kbn-search-connectors/lib/update_connector_configuration.ts index c05c4ba4f6049..f0994a75e9737 100644 --- a/packages/kbn-search-connectors/lib/update_connector_configuration.ts +++ b/packages/kbn-search-connectors/lib/update_connector_configuration.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { Result } from '@elastic/elasticsearch/lib/api/types'; import { fetchConnectorById } from './fetch_connectors'; diff --git a/packages/kbn-search-connectors/lib/update_connector_index_name.test.ts b/packages/kbn-search-connectors/lib/update_connector_index_name.test.ts index 6dec1b9575114..aaaf6c5fe88fa 100644 --- a/packages/kbn-search-connectors/lib/update_connector_index_name.test.ts +++ b/packages/kbn-search-connectors/lib/update_connector_index_name.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_connector_index_name.ts b/packages/kbn-search-connectors/lib/update_connector_index_name.ts index 279750390aaca..10fd217a696f7 100644 --- a/packages/kbn-search-connectors/lib/update_connector_index_name.ts +++ b/packages/kbn-search-connectors/lib/update_connector_index_name.ts @@ -7,7 +7,7 @@ */ import { Result } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; export const updateConnectorIndexName = async ( client: ElasticsearchClient, diff --git a/packages/kbn-search-connectors/lib/update_connector_name_and_description.test.ts b/packages/kbn-search-connectors/lib/update_connector_name_and_description.test.ts index 77ba55027501d..d96c67ec12e43 100644 --- a/packages/kbn-search-connectors/lib/update_connector_name_and_description.test.ts +++ b/packages/kbn-search-connectors/lib/update_connector_name_and_description.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_connector_name_and_description.ts b/packages/kbn-search-connectors/lib/update_connector_name_and_description.ts index 1929018bed37f..01b06fded63ec 100644 --- a/packages/kbn-search-connectors/lib/update_connector_name_and_description.ts +++ b/packages/kbn-search-connectors/lib/update_connector_name_and_description.ts @@ -7,7 +7,7 @@ */ import { Result } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { Connector } from '../types/connectors'; diff --git a/packages/kbn-search-connectors/lib/update_connector_scheduling.test.ts b/packages/kbn-search-connectors/lib/update_connector_scheduling.test.ts index b386338a8cf6c..cae18d30664f9 100644 --- a/packages/kbn-search-connectors/lib/update_connector_scheduling.test.ts +++ b/packages/kbn-search-connectors/lib/update_connector_scheduling.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_connector_scheduling.ts b/packages/kbn-search-connectors/lib/update_connector_scheduling.ts index 04ec6e33515e3..0aee5db3f327c 100644 --- a/packages/kbn-search-connectors/lib/update_connector_scheduling.ts +++ b/packages/kbn-search-connectors/lib/update_connector_scheduling.ts @@ -7,7 +7,7 @@ */ import { Result } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { i18n } from '@kbn/i18n'; import { isNotFoundException } from '../utils/identify_exceptions'; diff --git a/packages/kbn-search-connectors/lib/update_connector_secret.test.ts b/packages/kbn-search-connectors/lib/update_connector_secret.test.ts index 80eb98a37babd..d36543bcf5651 100644 --- a/packages/kbn-search-connectors/lib/update_connector_secret.test.ts +++ b/packages/kbn-search-connectors/lib/update_connector_secret.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { updateConnectorSecret } from './update_connector_secret'; diff --git a/packages/kbn-search-connectors/lib/update_connector_secret.ts b/packages/kbn-search-connectors/lib/update_connector_secret.ts index a59ad128d4f89..11ce98b6c0635 100644 --- a/packages/kbn-search-connectors/lib/update_connector_secret.ts +++ b/packages/kbn-search-connectors/lib/update_connector_secret.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { Result } from '@elastic/elasticsearch/lib/api/types'; export const updateConnectorSecret = async ( diff --git a/packages/kbn-search-connectors/lib/update_connector_service_type.test.ts b/packages/kbn-search-connectors/lib/update_connector_service_type.test.ts index 9a452e982430d..f653e8c36259c 100644 --- a/packages/kbn-search-connectors/lib/update_connector_service_type.test.ts +++ b/packages/kbn-search-connectors/lib/update_connector_service_type.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_connector_service_type.ts b/packages/kbn-search-connectors/lib/update_connector_service_type.ts index 70d1105e69c3c..ea4ef7bac6ead 100644 --- a/packages/kbn-search-connectors/lib/update_connector_service_type.ts +++ b/packages/kbn-search-connectors/lib/update_connector_service_type.ts @@ -7,7 +7,7 @@ */ import { Result } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; export const updateConnectorServiceType = async ( client: ElasticsearchClient, diff --git a/packages/kbn-search-connectors/lib/update_connector_status.test.ts b/packages/kbn-search-connectors/lib/update_connector_status.test.ts index 522c0c2d8991f..9cc4c8e53fa71 100644 --- a/packages/kbn-search-connectors/lib/update_connector_status.test.ts +++ b/packages/kbn-search-connectors/lib/update_connector_status.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_connector_status.ts b/packages/kbn-search-connectors/lib/update_connector_status.ts index cff5927ce6ae9..ace2c7def3c8e 100644 --- a/packages/kbn-search-connectors/lib/update_connector_status.ts +++ b/packages/kbn-search-connectors/lib/update_connector_status.ts @@ -7,7 +7,7 @@ */ import { Result } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { ConnectorStatus } from '../types/connectors'; diff --git a/packages/kbn-search-connectors/lib/update_filtering.test.ts b/packages/kbn-search-connectors/lib/update_filtering.test.ts index 284210539230b..b40f446a78b7a 100644 --- a/packages/kbn-search-connectors/lib/update_filtering.test.ts +++ b/packages/kbn-search-connectors/lib/update_filtering.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_filtering.ts b/packages/kbn-search-connectors/lib/update_filtering.ts index 0c02b9da899a4..7854f7832999f 100644 --- a/packages/kbn-search-connectors/lib/update_filtering.ts +++ b/packages/kbn-search-connectors/lib/update_filtering.ts @@ -7,7 +7,7 @@ */ import { Result } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { fetchConnectorById } from './fetch_connectors'; import { FilteringRules } from '../types/connectors'; diff --git a/packages/kbn-search-connectors/lib/update_filtering_draft.test.ts b/packages/kbn-search-connectors/lib/update_filtering_draft.test.ts index cfbc4e9d70713..ea6a1fa413a33 100644 --- a/packages/kbn-search-connectors/lib/update_filtering_draft.test.ts +++ b/packages/kbn-search-connectors/lib/update_filtering_draft.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_filtering_draft.ts b/packages/kbn-search-connectors/lib/update_filtering_draft.ts index 6d580604004c8..d4154bb263326 100644 --- a/packages/kbn-search-connectors/lib/update_filtering_draft.ts +++ b/packages/kbn-search-connectors/lib/update_filtering_draft.ts @@ -7,7 +7,7 @@ */ import { Result } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { fetchConnectorById } from './fetch_connectors'; import { FilteringRule, FilteringRules } from '../types/connectors'; diff --git a/packages/kbn-search-connectors/lib/update_native.test.ts b/packages/kbn-search-connectors/lib/update_native.test.ts index b0c87b919b514..0598cbb6139f4 100644 --- a/packages/kbn-search-connectors/lib/update_native.test.ts +++ b/packages/kbn-search-connectors/lib/update_native.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { errors } from '@elastic/elasticsearch'; diff --git a/packages/kbn-search-connectors/lib/update_native.ts b/packages/kbn-search-connectors/lib/update_native.ts index 4f5bf4e66613f..aca9d7728f08e 100644 --- a/packages/kbn-search-connectors/lib/update_native.ts +++ b/packages/kbn-search-connectors/lib/update_native.ts @@ -8,7 +8,7 @@ import { Result } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; export const putUpdateNative = async ( client: ElasticsearchClient, diff --git a/packages/kbn-search-index-documents/lib/fetch_search_results.ts b/packages/kbn-search-index-documents/lib/fetch_search_results.ts index 3abca93516c5a..7136e3f0556a3 100644 --- a/packages/kbn-search-index-documents/lib/fetch_search_results.ts +++ b/packages/kbn-search-index-documents/lib/fetch_search_results.ts @@ -7,7 +7,7 @@ */ import { SearchHit } from '@elastic/elasticsearch/lib/api/types'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; import { DEFAULT_DOCS_PER_PAGE, Paginate } from '../types'; import { escapeLuceneChars } from '../utils/escape_lucene_charts'; import { fetchWithPagination } from '../utils/fetch_with_pagination'; diff --git a/packages/kbn-search-index-documents/tsconfig.json b/packages/kbn-search-index-documents/tsconfig.json index 1d598380b1fc9..cffc6f03fbbd5 100644 --- a/packages/kbn-search-index-documents/tsconfig.json +++ b/packages/kbn-search-index-documents/tsconfig.json @@ -20,5 +20,6 @@ "@kbn/i18n-react", "@kbn/ui-theme", "@kbn/core", + "@kbn/core-elasticsearch-server", ] } diff --git a/packages/kbn-search-response-warnings/kibana.jsonc b/packages/kbn-search-response-warnings/kibana.jsonc index bf1e5616172f4..5c8127c27319e 100644 --- a/packages/kbn-search-response-warnings/kibana.jsonc +++ b/packages/kbn-search-response-warnings/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/search-response-warnings", "owner": "@elastic/kibana-data-discovery" } diff --git a/packages/kbn-server-route-repository-utils/README.md b/packages/kbn-server-route-repository-utils/README.md new file mode 100644 index 0000000000000..b01f85dfbab0b --- /dev/null +++ b/packages/kbn-server-route-repository-utils/README.md @@ -0,0 +1,3 @@ +# @kbn/server-route-repository-utils + +Extension of `@kbn/server-route-repository` with common utils that can be imported from the browser and the server. \ No newline at end of file diff --git a/packages/kbn-server-route-repository/browser_index.ts b/packages/kbn-server-route-repository-utils/index.ts similarity index 68% rename from packages/kbn-server-route-repository/browser_index.ts rename to packages/kbn-server-route-repository-utils/index.ts index 3a7f16eac02db..02ff5f70211fa 100644 --- a/packages/kbn-server-route-repository/browser_index.ts +++ b/packages/kbn-server-route-repository-utils/index.ts @@ -8,14 +8,3 @@ export { formatRequest } from './src/format_request'; export { parseEndpoint } from './src/parse_endpoint'; -export type { - RouteRepositoryClient, - ReturnOf, - EndpointOf, - ClientRequestParamsOf, - DecodedRequestParamsOf, - ServerRouteRepository, - ServerRoute, - RouteParamsRT, - RouteState, -} from './src/typings'; diff --git a/packages/kbn-server-route-repository-utils/jest.config.js b/packages/kbn-server-route-repository-utils/jest.config.js new file mode 100644 index 0000000000000..e93f12695c35c --- /dev/null +++ b/packages/kbn-server-route-repository-utils/jest.config.js @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../..', + roots: ['/packages/kbn-server-route-repository-utils'], +}; diff --git a/packages/kbn-server-route-repository-utils/kibana.jsonc b/packages/kbn-server-route-repository-utils/kibana.jsonc new file mode 100644 index 0000000000000..3a7e69d98a060 --- /dev/null +++ b/packages/kbn-server-route-repository-utils/kibana.jsonc @@ -0,0 +1,5 @@ +{ + "type": "shared-common", + "id": "@kbn/server-route-repository-utils", + "owner": "@elastic/obs-knowledge-team" +} diff --git a/packages/kbn-server-route-repository-utils/package.json b/packages/kbn-server-route-repository-utils/package.json new file mode 100644 index 0000000000000..bfd18c61da4d5 --- /dev/null +++ b/packages/kbn-server-route-repository-utils/package.json @@ -0,0 +1,6 @@ +{ + "name": "@kbn/server-route-repository-utils", + "private": true, + "version": "1.0.0", + "license": "SSPL-1.0 OR Elastic License 2.0" +} \ No newline at end of file diff --git a/packages/kbn-server-route-repository/src/format_request.ts b/packages/kbn-server-route-repository-utils/src/format_request.ts similarity index 100% rename from packages/kbn-server-route-repository/src/format_request.ts rename to packages/kbn-server-route-repository-utils/src/format_request.ts diff --git a/packages/kbn-server-route-repository/src/parse_endpoint.ts b/packages/kbn-server-route-repository-utils/src/parse_endpoint.ts similarity index 100% rename from packages/kbn-server-route-repository/src/parse_endpoint.ts rename to packages/kbn-server-route-repository-utils/src/parse_endpoint.ts diff --git a/packages/kbn-server-route-repository-utils/tsconfig.json b/packages/kbn-server-route-repository-utils/tsconfig.json new file mode 100644 index 0000000000000..87f865132f4b4 --- /dev/null +++ b/packages/kbn-server-route-repository-utils/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "types": [ + "jest", + "node", + "react" + ] + }, + "include": [ + "**/*.ts", + "**/*.tsx", + ], + "exclude": [ + "target/**/*" + ], + "kbn_references": [] +} diff --git a/packages/kbn-server-route-repository/README.md b/packages/kbn-server-route-repository/README.md index 13d7972028cb7..6810b092403bc 100644 --- a/packages/kbn-server-route-repository/README.md +++ b/packages/kbn-server-route-repository/README.md @@ -8,8 +8,6 @@ TBD ## Server vs. Browser entry points -This package exposes utils that can be used on both: the server and the browser. -However, importing the package might bring in server-only code, affecting the bundle size. -To avoid this, the package exposes 2 entry points: [`index.js`](./src/index.ts) and [`web_index.js`](./src/web_index.ts). +This package can only be used on the server. The browser utilities can be found in `@kbn/server-route-repository-utils`. When adding utilities to this package, please make sure to update the entry points accordingly and the [BUILD.bazel](./BUILD.bazel)'s `target_web` target build to include all the necessary files. diff --git a/packages/kbn-server-route-repository/index.ts b/packages/kbn-server-route-repository/index.ts index 95007711ca0aa..ef942919f1480 100644 --- a/packages/kbn-server-route-repository/index.ts +++ b/packages/kbn-server-route-repository/index.ts @@ -6,9 +6,8 @@ * Side Public License, v 1. */ +export { formatRequest, parseEndpoint } from '@kbn/server-route-repository-utils'; export { createServerRouteFactory } from './src/create_server_route_factory'; -export { formatRequest } from './src/format_request'; -export { parseEndpoint } from './src/parse_endpoint'; export { decodeRequestParams } from './src/decode_request_params'; export { routeValidationObject } from './src/route_validation_object'; export { registerRoutes } from './src/register_routes'; diff --git a/packages/kbn-server-route-repository/kibana.jsonc b/packages/kbn-server-route-repository/kibana.jsonc index c10021164c722..5137b5593cfd5 100644 --- a/packages/kbn-server-route-repository/kibana.jsonc +++ b/packages/kbn-server-route-repository/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/server-route-repository", "owner": ["@elastic/obs-knowledge-team"] } diff --git a/packages/kbn-server-route-repository/package.json b/packages/kbn-server-route-repository/package.json index a1c4cfa515633..7d39edc9cc923 100644 --- a/packages/kbn-server-route-repository/package.json +++ b/packages/kbn-server-route-repository/package.json @@ -2,6 +2,5 @@ "name": "@kbn/server-route-repository", "version": "1.0.0", "license": "SSPL-1.0 OR Elastic License 2.0", - "private": true, - "browser": "./browser_index" + "private": true } \ No newline at end of file diff --git a/packages/kbn-server-route-repository/src/register_routes.ts b/packages/kbn-server-route-repository/src/register_routes.ts index 6e15bc6cf9416..4f409adda9577 100644 --- a/packages/kbn-server-route-repository/src/register_routes.ts +++ b/packages/kbn-server-route-repository/src/register_routes.ts @@ -14,8 +14,8 @@ import type { CoreSetup } from '@kbn/core-lifecycle-server'; import type { Logger } from '@kbn/logging'; import * as t from 'io-ts'; import { merge, pick } from 'lodash'; +import { parseEndpoint } from '@kbn/server-route-repository-utils'; import { decodeRequestParams } from './decode_request_params'; -import { parseEndpoint } from './parse_endpoint'; import { routeValidationObject } from './route_validation_object'; import type { ServerRoute, ServerRouteCreateOptions } from './typings'; diff --git a/packages/kbn-server-route-repository/tsconfig.json b/packages/kbn-server-route-repository/tsconfig.json index 2ab8bda824600..5202a5bf0c422 100644 --- a/packages/kbn-server-route-repository/tsconfig.json +++ b/packages/kbn-server-route-repository/tsconfig.json @@ -20,6 +20,7 @@ "@kbn/logging", "@kbn/core", "@kbn/logging-mocks", + "@kbn/server-route-repository-utils", ], "exclude": [ "target/**/*", diff --git a/packages/kbn-shared-ux-utility/src/with_suspense.tsx b/packages/kbn-shared-ux-utility/src/with_suspense.tsx index 753ceb6fccb6d..faa52715e5ff1 100644 --- a/packages/kbn-shared-ux-utility/src/with_suspense.tsx +++ b/packages/kbn-shared-ux-utility/src/with_suspense.tsx @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { AnalyticsServiceStart } from '@kbn/core-analytics-browser'; +import type { AnalyticsServiceStart } from '@kbn/core-analytics-browser'; import { KibanaErrorBoundary, KibanaErrorBoundaryProvider } from '@kbn/shared-ux-error-boundary'; import React, { ComponentType, ReactElement, Ref, Suspense } from 'react'; diff --git a/packages/kbn-unified-data-table/kibana.jsonc b/packages/kbn-unified-data-table/kibana.jsonc index de49c4caff1e5..3fe1b76b931c3 100644 --- a/packages/kbn-unified-data-table/kibana.jsonc +++ b/packages/kbn-unified-data-table/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/unified-data-table", "description": "Contains functionality for the unified data table which can be integrated into apps", "owner": "@elastic/kibana-data-discovery" diff --git a/packages/kbn-unified-field-list/kibana.jsonc b/packages/kbn-unified-field-list/kibana.jsonc index 5599de45eec56..4c3201f503f8a 100644 --- a/packages/kbn-unified-field-list/kibana.jsonc +++ b/packages/kbn-unified-field-list/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/unified-field-list", "description": "Contains functionality for the field list and field stats which can be integrated into apps", "owner": "@elastic/kibana-data-discovery" diff --git a/packages/kbn-unsaved-changes-prompt/kibana.jsonc b/packages/kbn-unsaved-changes-prompt/kibana.jsonc index 3d3f2f6199dd6..d41be0d07af30 100644 --- a/packages/kbn-unsaved-changes-prompt/kibana.jsonc +++ b/packages/kbn-unsaved-changes-prompt/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/unsaved-changes-prompt", "owner": "@elastic/kibana-management" } diff --git a/packages/presentation/presentation_containers/interfaces/serialized_state.ts b/packages/presentation/presentation_containers/interfaces/serialized_state.ts index be9e9d4236c33..5073a0c515c2f 100644 --- a/packages/presentation/presentation_containers/interfaces/serialized_state.ts +++ b/packages/presentation/presentation_containers/interfaces/serialized_state.ts @@ -6,8 +6,8 @@ * Side Public License, v 1. */ -import { Reference } from '@kbn/content-management-utils'; -import { MaybePromise } from '@kbn/utility-types'; +import type { Reference } from '@kbn/content-management-utils'; +import type { MaybePromise } from '@kbn/utility-types'; /** * A package containing the serialized Embeddable state, with references extracted. When saving Embeddables using any diff --git a/packages/presentation/presentation_containers/kibana.jsonc b/packages/presentation/presentation_containers/kibana.jsonc index 77aef11b4df52..4e16421b36204 100644 --- a/packages/presentation/presentation_containers/kibana.jsonc +++ b/packages/presentation/presentation_containers/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/presentation-containers", "owner": "@elastic/kibana-presentation" } diff --git a/packages/presentation/presentation_publishing/kibana.jsonc b/packages/presentation/presentation_publishing/kibana.jsonc index 265e0564b963c..6063d383c3f97 100644 --- a/packages/presentation/presentation_publishing/kibana.jsonc +++ b/packages/presentation/presentation_publishing/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/presentation-publishing", "owner": "@elastic/kibana-presentation" } diff --git a/packages/react/kibana_context/common/kibana.jsonc b/packages/react/kibana_context/common/kibana.jsonc index b52bc6a40d0cc..90fde56f05df6 100644 --- a/packages/react/kibana_context/common/kibana.jsonc +++ b/packages/react/kibana_context/common/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/react-kibana-context-common", "owner": "@elastic/appex-sharedux" } diff --git a/packages/react/kibana_context/root/kibana.jsonc b/packages/react/kibana_context/root/kibana.jsonc index 740d92da927c9..80a029c6ed487 100644 --- a/packages/react/kibana_context/root/kibana.jsonc +++ b/packages/react/kibana_context/root/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/react-kibana-context-root", "owner": "@elastic/appex-sharedux" } diff --git a/packages/react/kibana_context/theme/kibana.jsonc b/packages/react/kibana_context/theme/kibana.jsonc index 56ae8b57a6682..b3f8ba25cc5d3 100644 --- a/packages/react/kibana_context/theme/kibana.jsonc +++ b/packages/react/kibana_context/theme/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/react-kibana-context-theme", "owner": "@elastic/appex-sharedux" } diff --git a/packages/react/kibana_mount/mount_point_portal.tsx b/packages/react/kibana_mount/mount_point_portal.tsx index 5e950bcec19b6..e9b10ef773041 100644 --- a/packages/react/kibana_mount/mount_point_portal.tsx +++ b/packages/react/kibana_mount/mount_point_portal.tsx @@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n'; import React, { useRef, useEffect, useState, Component, FC, PropsWithChildren } from 'react'; import ReactDOM from 'react-dom'; -import { MountPoint } from '@kbn/core/public'; +import type { MountPoint } from '@kbn/core/public'; import { useIfMounted } from './utils'; export interface MountPointPortalProps { diff --git a/packages/shared-ux/link/redirect_app/impl/kibana.jsonc b/packages/shared-ux/link/redirect_app/impl/kibana.jsonc index 5b6d19ecb0cbc..9521500eae23e 100644 --- a/packages/shared-ux/link/redirect_app/impl/kibana.jsonc +++ b/packages/shared-ux/link/redirect_app/impl/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/shared-ux-link-redirect-app", "owner": "@elastic/appex-sharedux" } diff --git a/scripts/saved_objs_info.js b/scripts/saved_objs_info.js index 7bf0fd6244209..f17a2897b83da 100644 --- a/scripts/saved_objs_info.js +++ b/scripts/saved_objs_info.js @@ -7,4 +7,4 @@ */ require('../src/setup_node_env'); -require('../test/common/services/saved_object_info').runSavedObjInfoSvc(); +require('@kbn/test-suites-src/common/services/saved_object_info').runSavedObjInfoSvc(); diff --git a/src/core/kibana.jsonc b/src/core/kibana.jsonc index fc757811b882d..40487ceb89e41 100644 --- a/src/core/kibana.jsonc +++ b/src/core/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "core", "id": "@kbn/core", "owner": "@elastic/kibana-core", "description": "The core plugin has core functionality", diff --git a/src/plugins/dashboard/common/dashboard_container/persistable_state/dashboard_container_references.ts b/src/plugins/dashboard/common/dashboard_container/persistable_state/dashboard_container_references.ts index 987fce0f0455b..f1f6efb0d6678 100644 --- a/src/plugins/dashboard/common/dashboard_container/persistable_state/dashboard_container_references.ts +++ b/src/plugins/dashboard/common/dashboard_container/persistable_state/dashboard_container_references.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { CONTROL_GROUP_TYPE, PersistableControlGroupInput } from '@kbn/controls-plugin/common'; import { EmbeddableInput, diff --git a/src/plugins/dashboard/common/dashboard_container/types.ts b/src/plugins/dashboard/common/dashboard_container/types.ts index 3983d4112c5da..1f012375b8e92 100644 --- a/src/plugins/dashboard/common/dashboard_container/types.ts +++ b/src/plugins/dashboard/common/dashboard_container/types.ts @@ -13,7 +13,7 @@ import { SavedObjectEmbeddableInput, } from '@kbn/embeddable-plugin/common'; import { Filter, Query, TimeRange } from '@kbn/es-query'; -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { RefreshInterval } from '@kbn/data-plugin/common'; import { KibanaExecutionContext } from '@kbn/core-execution-context-common'; diff --git a/src/plugins/dashboard/common/dashboard_saved_object/persistable_state/dashboard_saved_object_references.ts b/src/plugins/dashboard/common/dashboard_saved_object/persistable_state/dashboard_saved_object_references.ts index b25c07a4342c9..94e8582ebecae 100644 --- a/src/plugins/dashboard/common/dashboard_saved_object/persistable_state/dashboard_saved_object_references.ts +++ b/src/plugins/dashboard/common/dashboard_saved_object/persistable_state/dashboard_saved_object_references.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { EmbeddablePersistableStateService } from '@kbn/embeddable-plugin/common/types'; import { rawControlGroupAttributesToControlGroupInput } from '@kbn/controls-plugin/common'; diff --git a/src/plugins/dashboard/common/lib/dashboard_panel_converters.ts b/src/plugins/dashboard/common/lib/dashboard_panel_converters.ts index ed13140e0afb5..7c33cf38c6838 100644 --- a/src/plugins/dashboard/common/lib/dashboard_panel_converters.ts +++ b/src/plugins/dashboard/common/lib/dashboard_panel_converters.ts @@ -10,7 +10,7 @@ import { v4 } from 'uuid'; import { omit } from 'lodash'; import { EmbeddableInput, SavedObjectEmbeddableInput } from '@kbn/embeddable-plugin/common'; -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { DashboardPanelMap, DashboardPanelState } from '..'; import { SavedDashboardPanel } from '../content_management'; import { diff --git a/src/plugins/dashboard/common/types.ts b/src/plugins/dashboard/common/types.ts index 178c28b97dfa1..b5492d62ea220 100644 --- a/src/plugins/dashboard/common/types.ts +++ b/src/plugins/dashboard/common/types.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { EmbeddableStateWithType } from '@kbn/embeddable-plugin/common'; import { PersistableControlGroupInput } from '@kbn/controls-plugin/common'; diff --git a/src/plugins/dashboard/public/dashboard_container/embeddable/api/run_save_functions.tsx b/src/plugins/dashboard/public/dashboard_container/embeddable/api/run_save_functions.tsx index 67cad4bd7bf83..df246be4e5d99 100644 --- a/src/plugins/dashboard/public/dashboard_container/embeddable/api/run_save_functions.tsx +++ b/src/plugins/dashboard/public/dashboard_container/embeddable/api/run_save_functions.tsx @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import type { PersistableControlGroupInput } from '@kbn/controls-plugin/common'; import { reportPerformanceMetricEvent } from '@kbn/ebt-tools'; import { diff --git a/src/plugins/dashboard/public/dashboard_container/embeddable/dashboard_container.tsx b/src/plugins/dashboard/public/dashboard_container/embeddable/dashboard_container.tsx index eff68d395f0b7..162b80306ed4f 100644 --- a/src/plugins/dashboard/public/dashboard_container/embeddable/dashboard_container.tsx +++ b/src/plugins/dashboard/public/dashboard_container/embeddable/dashboard_container.tsx @@ -7,7 +7,7 @@ */ import { METRIC_TYPE } from '@kbn/analytics'; -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import type { ControlGroupContainer } from '@kbn/controls-plugin/public'; import type { I18nStart, KibanaExecutionContext, OverlayRef } from '@kbn/core/public'; import { diff --git a/src/plugins/dashboard/public/services/dashboard_content_management/lib/find_dashboards.ts b/src/plugins/dashboard/public/services/dashboard_content_management/lib/find_dashboards.ts index b10f2216cfddf..47673bad811d3 100644 --- a/src/plugins/dashboard/public/services/dashboard_content_management/lib/find_dashboards.ts +++ b/src/plugins/dashboard/public/services/dashboard_content_management/lib/find_dashboards.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { SavedObjectError, SavedObjectsFindOptionsReference } from '@kbn/core/public'; import { diff --git a/src/plugins/dashboard/public/services/dashboard_content_management/types.ts b/src/plugins/dashboard/public/services/dashboard_content_management/types.ts index 900d8e6d09972..ac8b921672e2d 100644 --- a/src/plugins/dashboard/public/services/dashboard_content_management/types.ts +++ b/src/plugins/dashboard/public/services/dashboard_content_management/types.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { Reference } from '@kbn/content-management-utils'; +import type { Reference } from '@kbn/content-management-utils'; import { PersistableControlGroupInput } from '@kbn/controls-plugin/common'; import { SavedObjectSaveOpts } from '@kbn/saved-objects-plugin/public'; diff --git a/src/plugins/discover/common/constants.ts b/src/plugins/discover/common/constants.ts index 5a203cba55878..1083257175d10 100644 --- a/src/plugins/discover/common/constants.ts +++ b/src/plugins/discover/common/constants.ts @@ -7,7 +7,7 @@ */ import { SAMPLE_ROWS_PER_PAGE_SETTING } from '@kbn/discover-utils'; -import { IUiSettingsClient } from '@kbn/core/public'; +import type { IUiSettingsClient } from '@kbn/core/public'; export const DEFAULT_ROWS_PER_PAGE = 100; export const ROWS_PER_PAGE_OPTIONS = [10, 25, 50, DEFAULT_ROWS_PER_PAGE, 250, 500]; diff --git a/src/plugins/es_ui_shared/__packages_do_not_import__/authorization/components/page_error.tsx b/src/plugins/es_ui_shared/__packages_do_not_import__/authorization/components/page_error.tsx index 274e98525145f..2629845aec486 100644 --- a/src/plugins/es_ui_shared/__packages_do_not_import__/authorization/components/page_error.tsx +++ b/src/plugins/es_ui_shared/__packages_do_not_import__/authorization/components/page_error.tsx @@ -8,7 +8,7 @@ import { EuiSpacer, EuiPageTemplate } from '@elastic/eui'; import React from 'react'; -import { APP_WRAPPER_CLASS } from '@kbn/core/public'; +import { APP_WRAPPER_CLASS } from '@kbn/core-application-common'; import { Error } from '../types'; interface Props { diff --git a/src/plugins/es_ui_shared/tsconfig.json b/src/plugins/es_ui_shared/tsconfig.json index 508146c5f8f40..f3dc3bb39a31d 100644 --- a/src/plugins/es_ui_shared/tsconfig.json +++ b/src/plugins/es_ui_shared/tsconfig.json @@ -25,6 +25,7 @@ "@kbn/shared-ux-link-redirect-app", "@kbn/code-editor", "@kbn/react-kibana-context-render", + "@kbn/core-application-common", ], "exclude": [ "target/**/*", diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/request_event_annotations.ts b/src/plugins/event_annotation/common/fetch_event_annotations/request_event_annotations.ts index 36f5b0a5595a8..bb47c2d9bcc2d 100644 --- a/src/plugins/event_annotation/common/fetch_event_annotations/request_event_annotations.ts +++ b/src/plugins/event_annotation/common/fetch_event_annotations/request_event_annotations.ts @@ -21,7 +21,7 @@ import { ExecutionContext } from '@kbn/expressions-plugin/common'; import moment from 'moment'; import { ESCalendarInterval, ESFixedInterval, roundDateToESInterval } from '@elastic/charts'; import { Adapters } from '@kbn/inspector-plugin/common'; -import { IUiSettingsClient } from '@kbn/core-ui-settings-browser'; +import type { IUiSettingsClient } from '@kbn/core-ui-settings-browser'; import { i18n } from '@kbn/i18n'; import { handleRequest } from './handle_request'; import { diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/types.ts b/src/plugins/event_annotation/common/fetch_event_annotations/types.ts index 79921cd2e1399..f016dedc8efb9 100644 --- a/src/plugins/event_annotation/common/fetch_event_annotations/types.ts +++ b/src/plugins/event_annotation/common/fetch_event_annotations/types.ts @@ -14,7 +14,7 @@ import { ISearchStartSearchSource, } from '@kbn/data-plugin/common'; import { ExpressionFunctionDefinition, Datatable } from '@kbn/expressions-plugin/common'; -import { IUiSettingsClient } from '@kbn/core-ui-settings-browser'; +import type { IUiSettingsClient } from '@kbn/core-ui-settings-browser'; import { EventAnnotationGroupOutput } from '../event_annotation_group'; export type FetchEventAnnotationsOutput = Observable< diff --git a/src/plugins/event_annotation/common/fetch_event_annotations/utils.ts b/src/plugins/event_annotation/common/fetch_event_annotations/utils.ts index 9dfe4199d887d..5b29ac68277a7 100644 --- a/src/plugins/event_annotation/common/fetch_event_annotations/utils.ts +++ b/src/plugins/event_annotation/common/fetch_event_annotations/utils.ts @@ -11,7 +11,7 @@ import { Datatable, DatatableColumn, DatatableRow } from '@kbn/expressions-plugi import { omit, pick } from 'lodash'; import dateMath from '@kbn/datemath'; import moment from 'moment'; -import { IUiSettingsClient } from '@kbn/core-ui-settings-browser'; +import type { IUiSettingsClient } from '@kbn/core-ui-settings-browser'; import type { LineStyle } from '@kbn/visualization-ui-components'; import type { AvailableAnnotationIcon, PointStyleProps } from '@kbn/event-annotation-common'; import { diff --git a/src/plugins/saved_search/common/expressions/kibana_context.ts b/src/plugins/saved_search/common/expressions/kibana_context.ts index 35e675783ba7f..34bc962a02f58 100644 --- a/src/plugins/saved_search/common/expressions/kibana_context.ts +++ b/src/plugins/saved_search/common/expressions/kibana_context.ts @@ -12,7 +12,7 @@ import { ExecutionContext } from '@kbn/expressions-plugin/common'; import { Filter, fromCombinedFilter } from '@kbn/es-query'; import { Query, uniqFilters } from '@kbn/es-query'; import { unboxExpressionValue } from '@kbn/expressions-plugin/common'; -import { SavedObjectReference } from '@kbn/core/server'; +import type { SavedObjectReference } from '@kbn/core/server'; import { ExpressionFunctionKibanaContext } from '@kbn/data-plugin/common'; import { SavedSearch } from '../types'; diff --git a/test/kibana.jsonc b/test/kibana.jsonc new file mode 100644 index 0000000000000..fc078e7405190 --- /dev/null +++ b/test/kibana.jsonc @@ -0,0 +1,6 @@ +{ + "type": "test-helper", + "id": "@kbn/test-suites-src", + "owner": "@elastic/appex-qa", + "devOnly": true +} diff --git a/tsconfig.base.json b/tsconfig.base.json index 894f8684d535b..60f6ff081014a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -78,6 +78,8 @@ "@kbn/apm-data-access-plugin/*": ["x-pack/plugins/observability_solution/apm_data_access/*"], "@kbn/apm-data-view": ["packages/kbn-apm-data-view"], "@kbn/apm-data-view/*": ["packages/kbn-apm-data-view/*"], + "@kbn/apm-ftr-e2e": ["x-pack/plugins/observability_solution/apm/ftr_e2e"], + "@kbn/apm-ftr-e2e/*": ["x-pack/plugins/observability_solution/apm/ftr_e2e/*"], "@kbn/apm-plugin": ["x-pack/plugins/observability_solution/apm"], "@kbn/apm-plugin/*": ["x-pack/plugins/observability_solution/apm/*"], "@kbn/apm-synthtrace": ["packages/kbn-apm-synthtrace"], @@ -1238,6 +1240,8 @@ "@kbn/observability-get-padded-alert-time-range-util/*": ["x-pack/packages/observability/get_padded_alert_time_range_util/*"], "@kbn/observability-logs-explorer-plugin": ["x-pack/plugins/observability_solution/observability_logs_explorer"], "@kbn/observability-logs-explorer-plugin/*": ["x-pack/plugins/observability_solution/observability_logs_explorer/*"], + "@kbn/observability-onboarding-e2e": ["x-pack/plugins/observability_solution/observability_onboarding/e2e"], + "@kbn/observability-onboarding-e2e/*": ["x-pack/plugins/observability_solution/observability_onboarding/e2e/*"], "@kbn/observability-onboarding-plugin": ["x-pack/plugins/observability_solution/observability_onboarding"], "@kbn/observability-onboarding-plugin/*": ["x-pack/plugins/observability_solution/observability_onboarding/*"], "@kbn/observability-plugin": ["x-pack/plugins/observability_solution/observability"], @@ -1540,6 +1544,8 @@ "@kbn/server-http-tools/*": ["packages/kbn-server-http-tools/*"], "@kbn/server-route-repository": ["packages/kbn-server-route-repository"], "@kbn/server-route-repository/*": ["packages/kbn-server-route-repository/*"], + "@kbn/server-route-repository-utils": ["packages/kbn-server-route-repository-utils"], + "@kbn/server-route-repository-utils/*": ["packages/kbn-server-route-repository-utils/*"], "@kbn/serverless": ["x-pack/plugins/serverless"], "@kbn/serverless/*": ["x-pack/plugins/serverless/*"], "@kbn/serverless-common-settings": ["packages/serverless/settings/common"], @@ -1706,6 +1712,8 @@ "@kbn/stdio-dev-helpers/*": ["packages/kbn-stdio-dev-helpers/*"], "@kbn/storybook": ["packages/kbn-storybook"], "@kbn/storybook/*": ["packages/kbn-storybook/*"], + "@kbn/synthetics-e2e": ["x-pack/plugins/observability_solution/synthetics/e2e"], + "@kbn/synthetics-e2e/*": ["x-pack/plugins/observability_solution/synthetics/e2e/*"], "@kbn/synthetics-plugin": ["x-pack/plugins/observability_solution/synthetics"], "@kbn/synthetics-plugin/*": ["x-pack/plugins/observability_solution/synthetics/*"], "@kbn/task-manager-fixture-plugin": ["x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture"], @@ -1736,6 +1744,14 @@ "@kbn/test-jest-helpers/*": ["packages/kbn-test-jest-helpers/*"], "@kbn/test-subj-selector": ["packages/kbn-test-subj-selector"], "@kbn/test-subj-selector/*": ["packages/kbn-test-subj-selector/*"], + "@kbn/test-suites-serverless": ["x-pack/test_serverless"], + "@kbn/test-suites-serverless/*": ["x-pack/test_serverless/*"], + "@kbn/test-suites-src": ["test"], + "@kbn/test-suites-src/*": ["test/*"], + "@kbn/test-suites-xpack": ["x-pack/test"], + "@kbn/test-suites-xpack/*": ["x-pack/test/*"], + "@kbn/test-suites-xpack-performance": ["x-pack/performance"], + "@kbn/test-suites-xpack-performance/*": ["x-pack/performance/*"], "@kbn/testing-embedded-lens-plugin": ["x-pack/examples/testing_embedded_lens"], "@kbn/testing-embedded-lens-plugin/*": ["x-pack/examples/testing_embedded_lens/*"], "@kbn/text-based-editor": ["packages/kbn-text-based-editor"], diff --git a/x-pack/packages/index-management/src/home_sections.ts b/x-pack/packages/index-management/src/home_sections.ts index aa69f3c034303..1169e24afa499 100644 --- a/x-pack/packages/index-management/src/home_sections.ts +++ b/x-pack/packages/index-management/src/home_sections.ts @@ -6,7 +6,7 @@ */ import { FunctionComponent, ReactNode } from 'react'; -import { ApplicationStart } from '@kbn/core-application-browser'; +import type { ApplicationStart } from '@kbn/core-application-browser'; import { EuiBreadcrumb } from '@elastic/eui'; import { Index } from './types'; diff --git a/x-pack/packages/index-management/src/services/extensions_service.ts b/x-pack/packages/index-management/src/services/extensions_service.ts index 047c290ba06ec..3f0b3235b02c4 100644 --- a/x-pack/packages/index-management/src/services/extensions_service.ts +++ b/x-pack/packages/index-management/src/services/extensions_service.ts @@ -6,7 +6,7 @@ */ import { FunctionComponent, ReactNode } from 'react'; -import { ApplicationStart } from '@kbn/core-application-browser'; +import type { ApplicationStart } from '@kbn/core-application-browser'; import { EuiBadgeProps } from '@elastic/eui'; import { IndexDetailsTab } from '../home_sections'; import { Index } from '../types'; diff --git a/x-pack/packages/ml/date_picker/kibana.jsonc b/x-pack/packages/ml/date_picker/kibana.jsonc index 3fde0bf8c3bf2..d5ba9fb472f9b 100644 --- a/x-pack/packages/ml/date_picker/kibana.jsonc +++ b/x-pack/packages/ml/date_picker/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-browser", "id": "@kbn/ml-date-picker", "owner": "@elastic/ml-ui" } diff --git a/x-pack/performance/configs/apm_config.ts b/x-pack/performance/configs/apm_config.ts index ebcfeb1aa3448..755f9c4c5c128 100644 --- a/x-pack/performance/configs/apm_config.ts +++ b/x-pack/performance/configs/apm_config.ts @@ -11,8 +11,7 @@ import { CA_CERT_PATH } from '@kbn/dev-utils'; // eslint-disable-next-line import/no-default-export export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xpackFunctionalConfig = await readConfigFile( - // eslint-disable-next-line @kbn/imports/no_boundary_crossing - require.resolve('../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-xpack/functional/config.base') ); return { diff --git a/x-pack/performance/configs/cloud_security_posture_config.ts b/x-pack/performance/configs/cloud_security_posture_config.ts index 3d4f36bb2c605..d00bce11387a1 100644 --- a/x-pack/performance/configs/cloud_security_posture_config.ts +++ b/x-pack/performance/configs/cloud_security_posture_config.ts @@ -10,8 +10,7 @@ import type { FtrConfigProviderContext } from '@kbn/test'; // eslint-disable-next-line import/no-default-export export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xpackFunctionalConfig = await readConfigFile( - // eslint-disable-next-line @kbn/imports/no_boundary_crossing - require.resolve('../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-xpack/functional/config.base') ); return { diff --git a/x-pack/performance/kibana.jsonc b/x-pack/performance/kibana.jsonc new file mode 100644 index 0000000000000..a84d733b81224 --- /dev/null +++ b/x-pack/performance/kibana.jsonc @@ -0,0 +1,6 @@ +{ + "type": "test-helper", + "id": "@kbn/test-suites-xpack-performance", + "owner": "@elastic/appex-qa", + "devOnly": true +} diff --git a/x-pack/plugins/alerting/common/saved_objects/rules/mappings.ts b/x-pack/plugins/alerting/common/saved_objects/rules/mappings.ts index 2cec5bdd449e6..8bde7839f44e8 100644 --- a/x-pack/plugins/alerting/common/saved_objects/rules/mappings.ts +++ b/x-pack/plugins/alerting/common/saved_objects/rules/mappings.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsTypeMappingDefinition } from '@kbn/core/server'; +import type { SavedObjectsTypeMappingDefinition } from '@kbn/core/server'; export const alertMappings: SavedObjectsTypeMappingDefinition = { dynamic: false, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_search.ts b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_search.ts index 445bcdda3bffe..089d39ea6299e 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_search.ts +++ b/x-pack/plugins/canvas/canvas_plugin_src/functions/external/saved_search.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { ExpressionFunctionDefinition } from '@kbn/expressions-plugin/common'; +import type { ExpressionFunctionDefinition } from '@kbn/expressions-plugin/common'; import type { SearchEmbeddableSerializedState } from '@kbn/discover-plugin/public'; -import { SavedObjectReference } from '@kbn/core/types'; -import { Filter } from '@kbn/es-query'; -import { ViewMode } from '@kbn/presentation-publishing'; +import type { SavedObjectReference } from '@kbn/core/types'; +import type { Filter } from '@kbn/es-query'; +import type { ViewMode } from '@kbn/presentation-publishing'; import { EmbeddableTypes, EmbeddableExpressionType, diff --git a/x-pack/plugins/canvas/types/embeddables.ts b/x-pack/plugins/canvas/types/embeddables.ts index 18d85d49b24c3..dfdce31c9058b 100644 --- a/x-pack/plugins/canvas/types/embeddables.ts +++ b/x-pack/plugins/canvas/types/embeddables.ts @@ -8,13 +8,13 @@ import type { TimeRange } from '@kbn/es-query'; import { Filter } from '@kbn/es-query'; import { EmbeddableInput as Input } from '@kbn/embeddable-plugin/common'; -import { +import type { HasAppContext, HasDisableTriggers, PublishesViewMode, PublishesUnifiedSearch, } from '@kbn/presentation-publishing'; -import { CanAddNewPanel, HasSerializedChildState } from '@kbn/presentation-containers'; +import type { CanAddNewPanel, HasSerializedChildState } from '@kbn/presentation-containers'; export type EmbeddableInput = Input & { timeRange?: TimeRange; diff --git a/x-pack/plugins/enterprise_search/server/utils/connectors_search_result_provider.ts b/x-pack/plugins/enterprise_search/server/utils/connectors_search_result_provider.ts index bfb42c846b6dc..7e81d5b6d09ec 100644 --- a/x-pack/plugins/enterprise_search/server/utils/connectors_search_result_provider.ts +++ b/x-pack/plugins/enterprise_search/server/utils/connectors_search_result_provider.ts @@ -7,7 +7,7 @@ import { from, takeUntil } from 'rxjs'; -import { IStaticAssets } from '@kbn/core-http-browser'; +import type { IStaticAssets } from '@kbn/core-http-browser'; import { GlobalSearchProviderResult, diff --git a/x-pack/plugins/enterprise_search/server/utils/indices_search_result_provider.ts b/x-pack/plugins/enterprise_search/server/utils/indices_search_result_provider.ts index 295441e125aa4..a8e7532398dea 100644 --- a/x-pack/plugins/enterprise_search/server/utils/indices_search_result_provider.ts +++ b/x-pack/plugins/enterprise_search/server/utils/indices_search_result_provider.ts @@ -7,7 +7,7 @@ import { from, takeUntil } from 'rxjs'; -import { IStaticAssets } from '@kbn/core-http-browser'; +import type { IStaticAssets } from '@kbn/core-http-browser'; import { GlobalSearchProviderResult, GlobalSearchResultProvider, @@ -36,9 +36,10 @@ export function getIndicesSearchResultProvider( const score = calculateScore(term, indexName); return { + icon: staticAssets.getPluginAssetHref('images/index.svg'), id: indexName, + score, title: indexName, - icon: staticAssets.getPluginAssetHref('images/index.svg'), type: i18n.translate('xpack.enterpriseSearch.searchIndexProvider.type.name', { defaultMessage: 'Index', }), @@ -46,7 +47,6 @@ export function getIndicesSearchResultProvider( path: `${ENTERPRISE_SEARCH_CONTENT_PLUGIN.URL}/search_indices/${indexName}`, prependBasePath: true, }, - score, }; }) .filter(({ score }) => score > 0) diff --git a/x-pack/plugins/global_search/common/types.ts b/x-pack/plugins/global_search/common/types.ts index 676cb421c4a15..1de5632238dee 100644 --- a/x-pack/plugins/global_search/common/types.ts +++ b/x-pack/plugins/global_search/common/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { Observable } from 'rxjs'; -import { Serializable } from '@kbn/utility-types'; -import { IScopedClusterClient } from '@kbn/core/server'; +import type { Observable } from 'rxjs'; +import type { Serializable } from '@kbn/utility-types'; +import type { IScopedClusterClient } from '@kbn/core/server'; /** * Options provided to {@link GlobalSearchResultProvider | a result provider}'s `find` method. diff --git a/x-pack/plugins/global_search/public/services/types.ts b/x-pack/plugins/global_search/public/services/types.ts index 7cc622b82fba8..d7f073391ab96 100644 --- a/x-pack/plugins/global_search/public/services/types.ts +++ b/x-pack/plugins/global_search/public/services/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Observable } from 'rxjs'; -import { IScopedClusterClient } from '@kbn/core/server'; +import type { Observable } from 'rxjs'; +import type { IScopedClusterClient } from '@kbn/core/server'; /** * Options for the server-side {@link GlobalSearchPluginStart.find | find API} diff --git a/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/transaction_details/generate_span_links_data.ts b/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/transaction_details/generate_span_links_data.ts index eecf9aebc56e0..4f4985224be6f 100644 --- a/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/transaction_details/generate_span_links_data.ts +++ b/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/transaction_details/generate_span_links_data.ts @@ -5,7 +5,7 @@ * 2.0. */ import { apm, timerange } from '@kbn/apm-synthtrace-client'; -import { SpanLink } from '../../../../typings/es_schemas/raw/fields/span_links'; +import { SpanLink } from '@kbn/apm-plugin/typings/es_schemas/raw/fields/span_links'; import { synthtrace } from '../../../synthtrace'; function getProducerInternalOnly() { diff --git a/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/transaction_details/transaction_details.cy.ts b/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/transaction_details/transaction_details.cy.ts index e62c8085d48c6..2dc2aefc74dbb 100644 --- a/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/transaction_details/transaction_details.cy.ts +++ b/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/e2e/transaction_details/transaction_details.cy.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import type { APIReturnType } from '../../../../public/services/rest/create_call_apm_api'; +import type { APIReturnType } from '@kbn/apm-plugin/public/services/rest/create_call_apm_api'; import { synthtrace } from '../../../synthtrace'; import { opbeans } from '../../fixtures/synthtrace/opbeans'; diff --git a/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/support/commands.ts b/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/support/commands.ts index 0942a5cdc472f..1cfb68cdcfd57 100644 --- a/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/support/commands.ts +++ b/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress/support/commands.ts @@ -10,7 +10,7 @@ import 'cypress-axe'; import moment from 'moment'; import '@frsource/cypress-plugin-visual-regression-diff'; import { AXE_CONFIG, AXE_OPTIONS } from '@kbn/axe-config'; -import { ApmUsername } from '../../../server/test_helpers/create_apm_users/authentication'; +import { ApmUsername } from '@kbn/apm-plugin/server/test_helpers/create_apm_users/authentication'; Cypress.Commands.add('loginAsSuperUser', () => { return cy.loginAs({ username: 'elastic', password: 'changeme' }); diff --git a/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress_test_runner.ts b/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress_test_runner.ts index 73e42cff27db8..f33e4aa5b72e1 100644 --- a/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress_test_runner.ts +++ b/x-pack/plugins/observability_solution/apm/ftr_e2e/cypress_test_runner.ts @@ -9,7 +9,7 @@ import { ApmSynthtraceKibanaClient, createLogger, LogLevel } from '@kbn/apm-synt import cypress from 'cypress'; import path from 'path'; import Url from 'url'; -import { createApmUsers } from '../server/test_helpers/create_apm_users/create_apm_users'; +import { createApmUsers } from '@kbn/apm-plugin/server/test_helpers/create_apm_users/create_apm_users'; import { FtrProviderContext } from './ftr_provider_context'; export async function cypressTestRunner({ getService }: FtrProviderContext) { diff --git a/x-pack/plugins/observability_solution/apm/ftr_e2e/ftr_config.ts b/x-pack/plugins/observability_solution/apm/ftr_e2e/ftr_config.ts index 7029887b5f554..9a0ccb56f1ad6 100644 --- a/x-pack/plugins/observability_solution/apm/ftr_e2e/ftr_config.ts +++ b/x-pack/plugins/observability_solution/apm/ftr_e2e/ftr_config.ts @@ -12,10 +12,10 @@ import { FtrProviderContext } from './ftr_provider_context'; async function ftrConfig({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( - require.resolve('../../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-xpack/functional/config.base') ); return { diff --git a/x-pack/plugins/observability_solution/apm/ftr_e2e/kibana.jsonc b/x-pack/plugins/observability_solution/apm/ftr_e2e/kibana.jsonc new file mode 100644 index 0000000000000..e0bf29cc4757c --- /dev/null +++ b/x-pack/plugins/observability_solution/apm/ftr_e2e/kibana.jsonc @@ -0,0 +1,6 @@ +{ + "type": "test-helper", + "id": "@kbn/apm-ftr-e2e", + "owner": "@elastic/obs-ux-infra_services-team", + "devOnly": true +} diff --git a/x-pack/plugins/observability_solution/apm/ftr_e2e/tsconfig.json b/x-pack/plugins/observability_solution/apm/ftr_e2e/tsconfig.json index 4c2eb87feda9b..6da58add924b0 100644 --- a/x-pack/plugins/observability_solution/apm/ftr_e2e/tsconfig.json +++ b/x-pack/plugins/observability_solution/apm/ftr_e2e/tsconfig.json @@ -8,13 +8,12 @@ "isolatedModules": false }, "kbn_references": [ - { "path": "../../../../test/tsconfig.json" }, - { "path": "../../../../../test/tsconfig.json" }, "@kbn/test", "@kbn/apm-synthtrace", "@kbn/apm-synthtrace-client", "@kbn/dev-utils", "@kbn/axe-config", - "@kbn/cypress-config" + "@kbn/cypress-config", + "@kbn/apm-plugin" ] } diff --git a/x-pack/plugins/observability_solution/apm/public/services/rest/create_call_apm_api.ts b/x-pack/plugins/observability_solution/apm/public/services/rest/create_call_apm_api.ts index c2cbb097c91e2..0ea4b965a1d77 100644 --- a/x-pack/plugins/observability_solution/apm/public/services/rest/create_call_apm_api.ts +++ b/x-pack/plugins/observability_solution/apm/public/services/rest/create_call_apm_api.ts @@ -12,7 +12,7 @@ import type { RouteRepositoryClient, ServerRouteRepository, } from '@kbn/server-route-repository'; -import { formatRequest } from '@kbn/server-route-repository'; +import { formatRequest } from '@kbn/server-route-repository-utils'; import { InspectResponse } from '@kbn/observability-plugin/typings/common'; import { FetchOptions } from '../../../common/fetch_options'; import { CallApi, callApi } from './call_api'; diff --git a/x-pack/plugins/observability_solution/apm/public/services/telemetry/telemetry_client.ts b/x-pack/plugins/observability_solution/apm/public/services/telemetry/telemetry_client.ts index 4b1d645fab78c..da50242c970d8 100644 --- a/x-pack/plugins/observability_solution/apm/public/services/telemetry/telemetry_client.ts +++ b/x-pack/plugins/observability_solution/apm/public/services/telemetry/telemetry_client.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AnalyticsServiceSetup } from '@kbn/core-analytics-server'; +import { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; import { ITelemetryClient, SearchQuerySubmittedParams, diff --git a/x-pack/plugins/observability_solution/apm/public/services/telemetry/telemetry_service.ts b/x-pack/plugins/observability_solution/apm/public/services/telemetry/telemetry_service.ts index cf0a017da930b..d5dfa09c1c9c6 100644 --- a/x-pack/plugins/observability_solution/apm/public/services/telemetry/telemetry_service.ts +++ b/x-pack/plugins/observability_solution/apm/public/services/telemetry/telemetry_service.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { AnalyticsServiceSetup } from '@kbn/core-analytics-server'; +import { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; import { TelemetryServiceSetupParams, ITelemetryClient, TelemetryEventParams } from './types'; import { apmTelemetryEventBasedTypes } from './telemetry_events'; import { TelemetryClient } from './telemetry_client'; diff --git a/x-pack/plugins/observability_solution/apm/tsconfig.json b/x-pack/plugins/observability_solution/apm/tsconfig.json index 371119d697f9f..f9db8e36fd63d 100644 --- a/x-pack/plugins/observability_solution/apm/tsconfig.json +++ b/x-pack/plugins/observability_solution/apm/tsconfig.json @@ -98,7 +98,6 @@ "@kbn/metrics-data-access-plugin", "@kbn/profiling-data-access-plugin", "@kbn/profiling-utils", - "@kbn/core-analytics-server", "@kbn/monaco", "@kbn/deeplinks-observability", "@kbn/custom-icons", @@ -125,7 +124,10 @@ "@kbn/entityManager-plugin", "@kbn/react-hooks", "@kbn/shared-ux-avatar-solution", - "@kbn/shared-ux-page-no-data-config-types" + "@kbn/shared-ux-page-no-data-config-types", + "@kbn/react-hooks", + "@kbn/server-route-repository-utils", + "@kbn/core-analytics-browser" ], "exclude": [ "target/**/*" diff --git a/x-pack/plugins/observability_solution/dataset_quality/common/rest/call_api.ts b/x-pack/plugins/observability_solution/dataset_quality/common/rest/call_api.ts index a70e2f8d407e5..509c162b0e657 100644 --- a/x-pack/plugins/observability_solution/dataset_quality/common/rest/call_api.ts +++ b/x-pack/plugins/observability_solution/dataset_quality/common/rest/call_api.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CoreSetup, CoreStart } from '@kbn/core/public'; +import type { CoreSetup, CoreStart } from '@kbn/core/public'; import { FetchOptions } from '..'; function getFetchOptions(fetchOptions: FetchOptions) { diff --git a/x-pack/plugins/observability_solution/dataset_quality/common/rest/create_call_dataset_quality_api.ts b/x-pack/plugins/observability_solution/dataset_quality/common/rest/create_call_dataset_quality_api.ts index 8e3929bb77e74..39e8f8afa0eac 100644 --- a/x-pack/plugins/observability_solution/dataset_quality/common/rest/create_call_dataset_quality_api.ts +++ b/x-pack/plugins/observability_solution/dataset_quality/common/rest/create_call_dataset_quality_api.ts @@ -5,13 +5,13 @@ * 2.0. */ -import { CoreSetup, CoreStart } from '@kbn/core/public'; +import type { CoreSetup, CoreStart } from '@kbn/core/public'; import type { ClientRequestParamsOf, ReturnOf, RouteRepositoryClient, } from '@kbn/server-route-repository'; -import { formatRequest } from '@kbn/server-route-repository'; +import { formatRequest } from '@kbn/server-route-repository-utils'; import { FetchOptions } from '..'; import type { APIEndpoint, DatasetQualityServerRouteRepository } from '../../server/routes'; import { CallApi, callApi } from './call_api'; diff --git a/x-pack/plugins/observability_solution/dataset_quality/public/services/telemetry/telemetry_client.ts b/x-pack/plugins/observability_solution/dataset_quality/public/services/telemetry/telemetry_client.ts index bf73c3b695aa2..1b0db5ca71add 100644 --- a/x-pack/plugins/observability_solution/dataset_quality/public/services/telemetry/telemetry_client.ts +++ b/x-pack/plugins/observability_solution/dataset_quality/public/services/telemetry/telemetry_client.ts @@ -6,7 +6,7 @@ */ import { v4 as uuidv4 } from 'uuid'; -import { AnalyticsServiceSetup } from '@kbn/core-analytics-server'; +import { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; import { ITelemetryClient, DatasetDetailsEbtProps, diff --git a/x-pack/plugins/observability_solution/dataset_quality/public/services/telemetry/telemetry_service.ts b/x-pack/plugins/observability_solution/dataset_quality/public/services/telemetry/telemetry_service.ts index 45f1221cebd32..ad986377c6073 100644 --- a/x-pack/plugins/observability_solution/dataset_quality/public/services/telemetry/telemetry_service.ts +++ b/x-pack/plugins/observability_solution/dataset_quality/public/services/telemetry/telemetry_service.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AnalyticsServiceSetup } from '@kbn/core-analytics-server'; +import { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; import { TelemetryServiceSetupParams, ITelemetryClient } from './types'; import { datasetQualityEbtEvents } from './telemetry_events'; import { TelemetryClient } from './telemetry_client'; diff --git a/x-pack/plugins/observability_solution/dataset_quality/tsconfig.json b/x-pack/plugins/observability_solution/dataset_quality/tsconfig.json index 0ea6e9df38b7e..c509b18758f95 100644 --- a/x-pack/plugins/observability_solution/dataset_quality/tsconfig.json +++ b/x-pack/plugins/observability_solution/dataset_quality/tsconfig.json @@ -50,10 +50,11 @@ "@kbn/calculate-auto", "@kbn/discover-plugin", "@kbn/shared-ux-prompt-no-data-views-types", - "@kbn/core-analytics-server", "@kbn/ebt", "@kbn/ebt-tools", - "@kbn/fields-metadata-plugin" + "@kbn/fields-metadata-plugin", + "@kbn/server-route-repository-utils", + "@kbn/core-analytics-browser" ], "exclude": [ "target/**/*" diff --git a/x-pack/plugins/observability_solution/exploratory_view/e2e/synthetics_run.ts b/x-pack/plugins/observability_solution/exploratory_view/e2e/synthetics_run.ts index eadb62dc44a72..70a290ce9900a 100644 --- a/x-pack/plugins/observability_solution/exploratory_view/e2e/synthetics_run.ts +++ b/x-pack/plugins/observability_solution/exploratory_view/e2e/synthetics_run.ts @@ -12,7 +12,7 @@ import { argv } from './parse_args_params'; const { headless, grep, bail: pauseOnError } = argv; async function runE2ETests({ readConfigFile }: FtrConfigProviderContext) { - const kibanaConfig = await readConfigFile(require.resolve('@kbn/synthetics-plugin/e2e/config')); + const kibanaConfig = await readConfigFile(require.resolve('@kbn/synthetics-e2e/config')); return { ...kibanaConfig.getAll(), diff --git a/x-pack/plugins/observability_solution/infra/common/saved_views/types.ts b/x-pack/plugins/observability_solution/infra/common/saved_views/types.ts index 01bf806da44d9..0b4e19abf197b 100644 --- a/x-pack/plugins/observability_solution/infra/common/saved_views/types.ts +++ b/x-pack/plugins/observability_solution/infra/common/saved_views/types.ts @@ -11,7 +11,7 @@ import { UseMutateFunction, } from '@tanstack/react-query'; -import { IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser'; +import type { IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser'; export type ServerError = IHttpFetchError; diff --git a/x-pack/plugins/observability_solution/infra/public/services/telemetry/telemetry_service.ts b/x-pack/plugins/observability_solution/infra/public/services/telemetry/telemetry_service.ts index be58505d6fc77..87495ae8221e9 100644 --- a/x-pack/plugins/observability_solution/infra/public/services/telemetry/telemetry_service.ts +++ b/x-pack/plugins/observability_solution/infra/public/services/telemetry/telemetry_service.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { AnalyticsServiceSetup } from '@kbn/core-analytics-server'; +import { AnalyticsServiceSetup } from '@kbn/core-analytics-browser'; import { TelemetryServiceSetupParams, ITelemetryClient, InfraTelemetryEventParams } from './types'; import { infraTelemetryEvents } from './telemetry_events'; import { TelemetryClient } from './telemetry_client'; diff --git a/x-pack/plugins/observability_solution/infra/tsconfig.json b/x-pack/plugins/observability_solution/infra/tsconfig.json index 39d6ef203cce2..c796ae14486a0 100644 --- a/x-pack/plugins/observability_solution/infra/tsconfig.json +++ b/x-pack/plugins/observability_solution/infra/tsconfig.json @@ -102,11 +102,12 @@ "@kbn/router-utils", "@kbn/react-kibana-context-render", "@kbn/react-kibana-context-theme", - "@kbn/observability-alerting-rule-utils", "@kbn/presentation-publishing", "@kbn/presentation-containers", "@kbn/deeplinks-observability", - "@kbn/event-annotation-common" + "@kbn/event-annotation-common", + "@kbn/core-analytics-browser", + "@kbn/observability-alerting-rule-utils" ], "exclude": [ "target/**/*" diff --git a/x-pack/plugins/observability_solution/investigate_app/public/api/index.ts b/x-pack/plugins/observability_solution/investigate_app/public/api/index.ts index c79fe1e0cdd03..8421a212ac1a4 100644 --- a/x-pack/plugins/observability_solution/investigate_app/public/api/index.ts +++ b/x-pack/plugins/observability_solution/investigate_app/public/api/index.ts @@ -11,7 +11,7 @@ import type { ReturnOf, RouteRepositoryClient, } from '@kbn/server-route-repository'; -import { formatRequest } from '@kbn/server-route-repository/src/format_request'; +import { formatRequest } from '@kbn/server-route-repository-utils/src/format_request'; import type { InvestigateAppServerRouteRepository } from '../../server'; type FetchOptions = Omit & { diff --git a/x-pack/plugins/observability_solution/investigate_app/tsconfig.json b/x-pack/plugins/observability_solution/investigate_app/tsconfig.json index 7dc7f89ca178b..7ad57bf2c01a7 100644 --- a/x-pack/plugins/observability_solution/investigate_app/tsconfig.json +++ b/x-pack/plugins/observability_solution/investigate_app/tsconfig.json @@ -51,5 +51,6 @@ "@kbn/security-plugin", "@kbn/ui-actions-plugin", "@kbn/esql-datagrid", + "@kbn/server-route-repository-utils", ], } diff --git a/x-pack/plugins/observability_solution/observability/common/utils/alerting/alert_url.ts b/x-pack/plugins/observability_solution/observability/common/utils/alerting/alert_url.ts index cf3f81c2e9e08..b6fef8cb04ee5 100644 --- a/x-pack/plugins/observability_solution/observability/common/utils/alerting/alert_url.ts +++ b/x-pack/plugins/observability_solution/observability/common/utils/alerting/alert_url.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { IBasePath } from '@kbn/core-http-server'; +import type { IBasePath } from '@kbn/core-http-server'; import { LocatorPublic } from '@kbn/share-plugin/common'; import { addSpaceIdToPath } from '@kbn/spaces-plugin/common'; import moment from 'moment'; diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/api/index.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/public/api/index.ts index ad80d738be335..bf7ec4731baee 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/public/api/index.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/public/api/index.ts @@ -11,7 +11,7 @@ import type { ReturnOf, RouteRepositoryClient, } from '@kbn/server-route-repository'; -import { formatRequest } from '@kbn/server-route-repository'; +import { formatRequest } from '@kbn/server-route-repository-utils'; import type { ObservabilityAIAssistantServerRouteRepository } from '../../server'; type FetchOptions = Omit & { diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts index ab6201780038a..4c82f79fcba8d 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { RootSchema, EventTypeOpts } from '@kbn/core/public'; +import { RootSchema, EventTypeOpts } from '@kbn/core/server'; interface ScoredDocument { content: string; diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/tsconfig.json b/x-pack/plugins/observability_solution/observability_ai_assistant/tsconfig.json index 4626a3716759a..56b34fc81ca46 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/tsconfig.json +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/tsconfig.json @@ -40,6 +40,7 @@ "@kbn/serverless", "@kbn/core-elasticsearch-server", "@kbn/core-ui-settings-server", + "@kbn/server-route-repository-utils", ], "exclude": ["target/**/*"] } diff --git a/x-pack/plugins/observability_solution/observability_onboarding/e2e/cypress/support/commands.ts b/x-pack/plugins/observability_solution/observability_onboarding/e2e/cypress/support/commands.ts index 4b63eaf207d72..dd07f4dc3dd4a 100644 --- a/x-pack/plugins/observability_solution/observability_onboarding/e2e/cypress/support/commands.ts +++ b/x-pack/plugins/observability_solution/observability_onboarding/e2e/cypress/support/commands.ts @@ -6,7 +6,7 @@ */ import URL from 'url'; -import { ObservabilityOnboardingUsername } from '../../../server/test_helpers/create_observability_onboarding_users/authentication'; +import { ObservabilityOnboardingUsername } from '@kbn/observability-onboarding-plugin/server/test_helpers/create_observability_onboarding_users/authentication'; export type InstallationStep = | 'ea-download' diff --git a/x-pack/plugins/observability_solution/observability_onboarding/e2e/cypress_test_runner.ts b/x-pack/plugins/observability_solution/observability_onboarding/e2e/cypress_test_runner.ts index 451c7cfd84527..4a8326d81b246 100644 --- a/x-pack/plugins/observability_solution/observability_onboarding/e2e/cypress_test_runner.ts +++ b/x-pack/plugins/observability_solution/observability_onboarding/e2e/cypress_test_runner.ts @@ -8,8 +8,8 @@ import cypress from 'cypress'; import path from 'path'; import Url from 'url'; +import { createObservabilityOnboardingUsers } from '@kbn/observability-onboarding-plugin/server/test_helpers/create_observability_onboarding_users'; import { FtrProviderContext } from './ftr_provider_context'; -import { createObservabilityOnboardingUsers } from '../server/test_helpers/create_observability_onboarding_users'; export async function cypressTestRunner({ ftrProviderContext: { getService }, diff --git a/x-pack/plugins/observability_solution/observability_onboarding/e2e/ftr_config.ts b/x-pack/plugins/observability_solution/observability_onboarding/e2e/ftr_config.ts index 876ca1d2abfe4..757382042c5e9 100644 --- a/x-pack/plugins/observability_solution/observability_onboarding/e2e/ftr_config.ts +++ b/x-pack/plugins/observability_solution/observability_onboarding/e2e/ftr_config.ts @@ -13,10 +13,10 @@ const kibanaYamlFilePath = path.join(__dirname, './ftr_kibana.yml'); async function ftrConfig({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( - require.resolve('../../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-xpack/functional/config.base') ); return { diff --git a/x-pack/plugins/observability_solution/observability_onboarding/e2e/kibana.jsonc b/x-pack/plugins/observability_solution/observability_onboarding/e2e/kibana.jsonc new file mode 100644 index 0000000000000..551d012935b44 --- /dev/null +++ b/x-pack/plugins/observability_solution/observability_onboarding/e2e/kibana.jsonc @@ -0,0 +1,9 @@ +{ + "type": "test-helper", + "id": "@kbn/observability-onboarding-e2e", + "owner": [ + "@elastic/obs-ux-logs-team", + "@elastic/obs-ux-onboarding-team" + ], + "devOnly": true +} diff --git a/x-pack/plugins/observability_solution/observability_onboarding/e2e/tsconfig.json b/x-pack/plugins/observability_solution/observability_onboarding/e2e/tsconfig.json index 3f586efcfc2d9..8970ccc1749df 100644 --- a/x-pack/plugins/observability_solution/observability_onboarding/e2e/tsconfig.json +++ b/x-pack/plugins/observability_solution/observability_onboarding/e2e/tsconfig.json @@ -9,9 +9,9 @@ }, "kbn_references": [ { "path": "../../../test/tsconfig.json" }, - { "path": "../../../../test/tsconfig.json" }, "@kbn/test", "@kbn/dev-utils", - "@kbn/cypress-config" + "@kbn/cypress-config", + "@kbn/observability-onboarding-plugin" ] } diff --git a/x-pack/plugins/observability_solution/observability_onboarding/public/services/rest/create_call_api.ts b/x-pack/plugins/observability_solution/observability_onboarding/public/services/rest/create_call_api.ts index 3df5dc37d9f6f..ec19a8ef7691b 100644 --- a/x-pack/plugins/observability_solution/observability_onboarding/public/services/rest/create_call_api.ts +++ b/x-pack/plugins/observability_solution/observability_onboarding/public/services/rest/create_call_api.ts @@ -11,7 +11,7 @@ import type { ReturnOf, RouteRepositoryClient, } from '@kbn/server-route-repository'; -import { formatRequest } from '@kbn/server-route-repository'; +import { formatRequest } from '@kbn/server-route-repository-utils'; import { FetchOptions } from '../../../common/fetch_options'; import type { APIEndpoint, diff --git a/x-pack/plugins/observability_solution/observability_onboarding/tsconfig.json b/x-pack/plugins/observability_solution/observability_onboarding/tsconfig.json index 921379f83de08..202db65ba9936 100644 --- a/x-pack/plugins/observability_solution/observability_onboarding/tsconfig.json +++ b/x-pack/plugins/observability_solution/observability_onboarding/tsconfig.json @@ -43,7 +43,8 @@ "@kbn/spaces-plugin", "@kbn/ebt", "@kbn/deeplinks-analytics", - "@kbn/custom-integrations-plugin" + "@kbn/custom-integrations-plugin", + "@kbn/server-route-repository-utils" ], "exclude": [ "target/**/*" diff --git a/x-pack/plugins/observability_solution/profiling/e2e/ftr_config.ts b/x-pack/plugins/observability_solution/profiling/e2e/ftr_config.ts index 876ca1d2abfe4..757382042c5e9 100644 --- a/x-pack/plugins/observability_solution/profiling/e2e/ftr_config.ts +++ b/x-pack/plugins/observability_solution/profiling/e2e/ftr_config.ts @@ -13,10 +13,10 @@ const kibanaYamlFilePath = path.join(__dirname, './ftr_kibana.yml'); async function ftrConfig({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( - require.resolve('../../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-xpack/functional/config.base') ); return { diff --git a/x-pack/plugins/observability_solution/profiling/e2e/tsconfig.json b/x-pack/plugins/observability_solution/profiling/e2e/tsconfig.json index 30abba7217ad9..6e8b7e3a8d3bb 100644 --- a/x-pack/plugins/observability_solution/profiling/e2e/tsconfig.json +++ b/x-pack/plugins/observability_solution/profiling/e2e/tsconfig.json @@ -9,7 +9,6 @@ }, "kbn_references": [ { "path": "../../../test/tsconfig.json" }, - { "path": "../../../../test/tsconfig.json" }, "@kbn/test", "@kbn/dev-utils", "@kbn/cypress-config", diff --git a/x-pack/plugins/observability_solution/profiling_data_access/common/fleet_policies.ts b/x-pack/plugins/observability_solution/profiling_data_access/common/fleet_policies.ts index ad599bb1e2551..ecdd2fc1cc684 100644 --- a/x-pack/plugins/observability_solution/profiling_data_access/common/fleet_policies.ts +++ b/x-pack/plugins/observability_solution/profiling_data_access/common/fleet_policies.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import type { PackagePolicyClient } from '@kbn/fleet-plugin/server'; import { PACKAGE_POLICY_SAVED_OBJECT_TYPE, PackagePolicy } from '@kbn/fleet-plugin/common'; import { getApmPolicy } from './get_apm_policy'; diff --git a/x-pack/plugins/observability_solution/profiling_data_access/common/get_apm_policy.ts b/x-pack/plugins/observability_solution/profiling_data_access/common/get_apm_policy.ts index 8631b6480878f..3d09365e8c47a 100644 --- a/x-pack/plugins/observability_solution/profiling_data_access/common/get_apm_policy.ts +++ b/x-pack/plugins/observability_solution/profiling_data_access/common/get_apm_policy.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; import type { PackagePolicyClient } from '@kbn/fleet-plugin/server'; export const ELASTIC_CLOUD_APM_POLICY = 'elastic-cloud-apm'; diff --git a/x-pack/plugins/observability_solution/profiling_data_access/common/profiling_es_client.ts b/x-pack/plugins/observability_solution/profiling_data_access/common/profiling_es_client.ts index a5ef490d720d1..788cb0106861c 100644 --- a/x-pack/plugins/observability_solution/profiling_data_access/common/profiling_es_client.ts +++ b/x-pack/plugins/observability_solution/profiling_data_access/common/profiling_es_client.ts @@ -6,7 +6,7 @@ */ import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { ElasticsearchClient } from '@kbn/core/server'; +import type { ElasticsearchClient } from '@kbn/core/server'; import type { ESSearchRequest, InferSearchResponseOf } from '@kbn/es-types'; import type { AggregationField, diff --git a/x-pack/plugins/observability_solution/profiling_data_access/common/setup.ts b/x-pack/plugins/observability_solution/profiling_data_access/common/setup.ts index 625423f48ab20..de80da6c7532e 100644 --- a/x-pack/plugins/observability_solution/profiling_data_access/common/setup.ts +++ b/x-pack/plugins/observability_solution/profiling_data_access/common/setup.ts @@ -5,7 +5,7 @@ * 2.0. */ import { RecursivePartial } from '@elastic/eui'; -import { Logger, SavedObjectsClientContract } from '@kbn/core/server'; +import type { Logger, SavedObjectsClientContract } from '@kbn/core/server'; import { merge } from 'lodash'; import { ProfilingESClient } from './profiling_es_client'; diff --git a/x-pack/plugins/observability_solution/slo/e2e/page_objects/slo_app.tsx b/x-pack/plugins/observability_solution/slo/e2e/page_objects/slo_app.tsx index 09d3470bea775..5310bffb03d92 100644 --- a/x-pack/plugins/observability_solution/slo/e2e/page_objects/slo_app.tsx +++ b/x-pack/plugins/observability_solution/slo/e2e/page_objects/slo_app.tsx @@ -5,9 +5,9 @@ * 2.0. */ import { Page } from '@elastic/synthetics'; -import { loginPageProvider } from '@kbn/synthetics-plugin/e2e/page_objects/login'; -import { utilsPageProvider } from '@kbn/synthetics-plugin/e2e/page_objects/utils'; -import { recordVideo } from '@kbn/synthetics-plugin/e2e/helpers/record_video'; +import { loginPageProvider } from '@kbn/synthetics-e2e/page_objects/login'; +import { utilsPageProvider } from '@kbn/synthetics-e2e/page_objects/utils'; +import { recordVideo } from '@kbn/synthetics-e2e/helpers/record_video'; export function sloAppPageProvider({ page, kibanaUrl }: { page: Page; kibanaUrl: string }) { page.setDefaultTimeout(60 * 1000); diff --git a/x-pack/plugins/observability_solution/slo/e2e/synthetics_run.ts b/x-pack/plugins/observability_solution/slo/e2e/synthetics_run.ts index d8a4946cfc447..642b7ef4cff23 100644 --- a/x-pack/plugins/observability_solution/slo/e2e/synthetics_run.ts +++ b/x-pack/plugins/observability_solution/slo/e2e/synthetics_run.ts @@ -5,12 +5,12 @@ * 2.0. */ import { FtrConfigProviderContext } from '@kbn/test'; -import { SyntheticsRunner, argv } from '@kbn/synthetics-plugin/e2e'; +import { SyntheticsRunner, argv } from '@kbn/synthetics-e2e'; const { headless, grep, bail: pauseOnError } = argv; async function runE2ETests({ readConfigFile }: FtrConfigProviderContext) { - const kibanaConfig = await readConfigFile(require.resolve('@kbn/synthetics-plugin/e2e/config')); + const kibanaConfig = await readConfigFile(require.resolve('@kbn/synthetics-e2e/config')); return { ...kibanaConfig.getAll(), testRunner: async ({ getService }: any) => { diff --git a/x-pack/plugins/observability_solution/slo/e2e/tsconfig.json b/x-pack/plugins/observability_solution/slo/e2e/tsconfig.json index 46ac09ac5a0d5..6c4be7e101a02 100644 --- a/x-pack/plugins/observability_solution/slo/e2e/tsconfig.json +++ b/x-pack/plugins/observability_solution/slo/e2e/tsconfig.json @@ -8,11 +8,9 @@ "isolatedModules": false, }, "kbn_references": [ - { "path": "../../../../test/tsconfig.json" }, - { "path": "../../../../../test/tsconfig.json" }, "@kbn/test", "@kbn/ftr-common-functional-services", - "@kbn/synthetics-plugin/e2e", "@kbn/data-forge", + "@kbn/synthetics-e2e", ] } diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/config.ts b/x-pack/plugins/observability_solution/synthetics/e2e/config.ts index 38af7ab93bc1f..ea3d57ff4fca5 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/config.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/config.ts @@ -14,10 +14,10 @@ const SERVICE_USERNAME = 'xpack.uptime.service.username'; async function config({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( - require.resolve('../../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-xpack/functional/config.base') ); const kibanaConfig = readKibanaConfig(); diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/kibana.jsonc b/x-pack/plugins/observability_solution/synthetics/e2e/kibana.jsonc new file mode 100644 index 0000000000000..178c7b2e8e84f --- /dev/null +++ b/x-pack/plugins/observability_solution/synthetics/e2e/kibana.jsonc @@ -0,0 +1,6 @@ +{ + "type": "test-helper", + "id": "@kbn/synthetics-e2e", + "owner": "@elastic/obs-ux-management-team", + "devOnly": true +} diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/add_monitor.journey.ts b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/add_monitor.journey.ts index 6e317150907ca..ca4806ebdd5ae 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/add_monitor.journey.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/add_monitor.journey.ts @@ -6,7 +6,7 @@ */ import { v4 as uuidv4 } from 'uuid'; import { journey, step, expect, Page } from '@elastic/synthetics'; -import { FormMonitorType } from '../../../common/runtime_types'; +import { FormMonitorType } from '@kbn/synthetics-plugin/common/runtime_types'; import { syntheticsAppPageProvider } from '../page_objects/synthetics_app'; const customLocation = process.env.SYNTHETICS_TEST_LOCATION; diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/alert_rules/default_status_alert.journey.ts b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/alert_rules/default_status_alert.journey.ts index 70327eb614ba7..4807255cc28ee 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/alert_rules/default_status_alert.journey.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/alert_rules/default_status_alert.journey.ts @@ -9,7 +9,7 @@ import { journey, step, before, after, expect } from '@elastic/synthetics'; import { byTestId } from '@kbn/ux-plugin/e2e/journeys/utils'; import { RetryService } from '@kbn/ftr-common-functional-services'; import { v4 as uuidv4 } from 'uuid'; -import { getReasonMessage } from '../../../../server/alert_rules/status_rule/message_utils'; +import { getReasonMessage } from '@kbn/synthetics-plugin/server/alert_rules/status_rule/message_utils'; import { syntheticsAppPageProvider } from '../../page_objects/synthetics_app'; import { SyntheticsServices } from '../services/synthetics_services'; diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/monitor_form_validation.journey.ts b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/monitor_form_validation.journey.ts index 7fdce8d921055..1b3e7343bef86 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/monitor_form_validation.journey.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/monitor_form_validation.journey.ts @@ -5,7 +5,7 @@ * 2.0. */ import { expect, journey, Page, step } from '@elastic/synthetics'; -import { FormMonitorType } from '../../../common/runtime_types'; +import { FormMonitorType } from '@kbn/synthetics-plugin/common/runtime_types'; import { syntheticsAppPageProvider } from '../page_objects/synthetics_app'; import { isEuiFormFieldInValid, diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/project_api_keys.journey.ts b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/project_api_keys.journey.ts index 0605f9a51a92a..44cfcbebc6616 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/project_api_keys.journey.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/project_api_keys.journey.ts @@ -6,7 +6,7 @@ */ import { journey, step, expect, before } from '@elastic/synthetics'; -import { SYNTHETICS_API_URLS } from '../../../common/constants'; +import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants'; import { recordVideo } from '../../helpers/record_video'; journey('ProjectAPIKeys', async ({ page }) => { diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/project_monitor_read_only.journey.ts b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/project_monitor_read_only.journey.ts index 4c9d73f3be815..c57d154e6f079 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/project_monitor_read_only.journey.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/project_monitor_read_only.journey.ts @@ -6,11 +6,11 @@ */ import { after, before, expect, journey, step } from '@elastic/synthetics'; +import { SyntheticsMonitor } from '@kbn/synthetics-plugin/common/runtime_types'; import { SyntheticsServices } from './services/synthetics_services'; import { cleanTestMonitors, enableMonitorManagedViaApi } from './services/add_monitor'; import { addTestMonitorProject } from './services/add_monitor_project'; import { syntheticsAppPageProvider } from '../page_objects/synthetics_app'; -import { SyntheticsMonitor } from '../../../common/runtime_types'; journey('ProjectMonitorReadOnly', async ({ page, params }) => { const services = new SyntheticsServices(params); diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/add_monitor.ts b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/add_monitor.ts index 0fb37446219eb..6384179a71bb9 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/add_monitor.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/add_monitor.ts @@ -6,11 +6,11 @@ */ import axios from 'axios'; -import { SYNTHETICS_API_URLS } from '../../../../common/constants'; +import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants'; import { privateLocationsSavedObjectId, privateLocationsSavedObjectName, -} from '../../../../common/saved_objects/private_locations'; +} from '@kbn/synthetics-plugin/common/saved_objects/private_locations'; export const enableMonitorManagedViaApi = async (kibanaUrl: string) => { try { diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/add_monitor_project.ts b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/add_monitor_project.ts index 47bc130896e9f..8cc9529e94c9f 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/add_monitor_project.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/add_monitor_project.ts @@ -6,7 +6,7 @@ */ import axios from 'axios'; -import { SYNTHETICS_API_URLS } from '../../../../common/constants'; +import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants'; export const addTestMonitorProject = async ( kibanaUrl: string, diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/synthetics_services.ts b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/synthetics_services.ts index 84e6933e0c52b..988327ee3fc19 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/synthetics_services.ts +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/journeys/services/synthetics_services.ts @@ -9,8 +9,8 @@ import axios from 'axios'; import type { Client } from '@elastic/elasticsearch'; import { KbnClient } from '@kbn/test'; import pMap from 'p-map'; -import { SyntheticsMonitor } from '../../../../common/runtime_types'; -import { SYNTHETICS_API_URLS } from '../../../../common/constants'; +import { SyntheticsMonitor } from '@kbn/synthetics-plugin/common/runtime_types'; +import { SYNTHETICS_API_URLS } from '@kbn/synthetics-plugin/common/constants'; import { journeyStart, journeySummary, step1, step2 } from './data/browser_docs'; import { firstDownHit, getUpHit } from './data/sample_docs'; diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/page_objects/synthetics_app.tsx b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/page_objects/synthetics_app.tsx index 49aefae295b39..f6d5ce45b96c3 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/page_objects/synthetics_app.tsx +++ b/x-pack/plugins/observability_solution/synthetics/e2e/synthetics/page_objects/synthetics_app.tsx @@ -6,8 +6,8 @@ */ import { expect, Page } from '@elastic/synthetics'; import { RetryService } from '@kbn/ftr-common-functional-services'; +import { FormMonitorType } from '@kbn/synthetics-plugin/common/runtime_types/monitor_management'; import { recordVideo } from '../../helpers/record_video'; -import { FormMonitorType } from '../../../common/runtime_types/monitor_management'; import { loginPageProvider } from '../../page_objects/login'; import { utilsPageProvider } from '../../page_objects/utils'; diff --git a/x-pack/plugins/observability_solution/synthetics/e2e/tsconfig.json b/x-pack/plugins/observability_solution/synthetics/e2e/tsconfig.json index 3299fb727d2c8..6fc40dded4e72 100644 --- a/x-pack/plugins/observability_solution/synthetics/e2e/tsconfig.json +++ b/x-pack/plugins/observability_solution/synthetics/e2e/tsconfig.json @@ -8,14 +8,13 @@ "isolatedModules": false }, "kbn_references": [ - { "path": "../../../../test/tsconfig.json" }, - { "path": "../../../../../test/tsconfig.json" }, "@kbn/test", "@kbn/dev-utils", "@kbn/ux-plugin/e2e", "@kbn/ftr-common-functional-services", "@kbn/apm-plugin", "@kbn/es-archiver", - "@kbn/repo-info" + "@kbn/repo-info", + "@kbn/synthetics-plugin" ] } diff --git a/x-pack/plugins/observability_solution/uptime/e2e/config.ts b/x-pack/plugins/observability_solution/uptime/e2e/config.ts index 1638fb9bcb2b6..18fe9bfd1712a 100644 --- a/x-pack/plugins/observability_solution/uptime/e2e/config.ts +++ b/x-pack/plugins/observability_solution/uptime/e2e/config.ts @@ -14,10 +14,10 @@ const SERVICE_USERNAME = 'xpack.uptime.service.username'; async function config({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( - require.resolve('../../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-xpack/functional/config.base') ); const kibanaConfig = readKibanaConfig(); diff --git a/x-pack/plugins/observability_solution/uptime/e2e/tsconfig.json b/x-pack/plugins/observability_solution/uptime/e2e/tsconfig.json index 62f576144b154..84a2627b487fe 100644 --- a/x-pack/plugins/observability_solution/uptime/e2e/tsconfig.json +++ b/x-pack/plugins/observability_solution/uptime/e2e/tsconfig.json @@ -8,8 +8,6 @@ "isolatedModules": false }, "kbn_references": [ - { "path": "../../../../test/tsconfig.json" }, - { "path": "../../../../../test/tsconfig.json" }, "@kbn/test", "@kbn/dev-utils", "@kbn/ux-plugin/e2e", diff --git a/x-pack/plugins/observability_solution/ux/e2e/synthetics_run.ts b/x-pack/plugins/observability_solution/ux/e2e/synthetics_run.ts index 49db74a71b61a..7c7581b10e6a6 100644 --- a/x-pack/plugins/observability_solution/ux/e2e/synthetics_run.ts +++ b/x-pack/plugins/observability_solution/ux/e2e/synthetics_run.ts @@ -12,7 +12,7 @@ import { SyntheticsRunner } from './helpers/synthetics_runner'; const { headless, grep, bail: pauseOnError } = argv; async function runE2ETests({ readConfigFile }: FtrConfigProviderContext) { - const kibanaConfig = await readConfigFile(require.resolve('@kbn/synthetics-plugin/e2e/config')); + const kibanaConfig = await readConfigFile(require.resolve('@kbn/synthetics-e2e/config')); return { ...kibanaConfig.getAll(), diff --git a/x-pack/plugins/observability_solution/ux/public/services/rest/create_call_apm_api.ts b/x-pack/plugins/observability_solution/ux/public/services/rest/create_call_apm_api.ts index cf52a0b9d82f0..1f9fd67049328 100644 --- a/x-pack/plugins/observability_solution/ux/public/services/rest/create_call_apm_api.ts +++ b/x-pack/plugins/observability_solution/ux/public/services/rest/create_call_apm_api.ts @@ -12,7 +12,7 @@ import type { RouteRepositoryClient, ServerRouteRepository, } from '@kbn/server-route-repository'; -import { formatRequest } from '@kbn/server-route-repository'; +import { formatRequest } from '@kbn/server-route-repository-utils'; import type { APMServerRouteRepository, APIEndpoint } from '@kbn/apm-plugin/server'; import { InspectResponse } from '@kbn/observability-plugin/typings/common'; import { CallApi, callApi } from './call_api'; diff --git a/x-pack/plugins/observability_solution/ux/tsconfig.json b/x-pack/plugins/observability_solution/ux/tsconfig.json index e4fb69ed200c7..94da70641f150 100644 --- a/x-pack/plugins/observability_solution/ux/tsconfig.json +++ b/x-pack/plugins/observability_solution/ux/tsconfig.json @@ -48,7 +48,8 @@ "@kbn/deeplinks-observability", "@kbn/react-kibana-context-render", "@kbn/react-kibana-context-theme", - "@kbn/search-types" + "@kbn/search-types", + "@kbn/server-route-repository-utils" ], "exclude": ["target/**/*"] } diff --git a/x-pack/plugins/osquery/cypress/cypress.config.ts b/x-pack/plugins/osquery/cypress/cypress.config.ts index b8c0ef91a8217..4f2a078244ced 100644 --- a/x-pack/plugins/osquery/cypress/cypress.config.ts +++ b/x-pack/plugins/osquery/cypress/cypress.config.ts @@ -11,9 +11,9 @@ import path from 'path'; import { safeLoad as loadYaml } from 'js-yaml'; import { readFileSync } from 'fs'; +import type { YamlRoleDefinitions } from '@kbn/test-suites-serverless/shared/lib'; +import { setupUserDataLoader } from '@kbn/test-suites-serverless/functional/test_suites/security/cypress/support/setup_data_loader_tasks'; import { getFailedSpecVideos } from './support/filter_videos'; -import type { YamlRoleDefinitions } from '../../../test_serverless/shared/lib'; -import { setupUserDataLoader } from '../../../test_serverless/functional/test_suites/security/cypress/support/setup_data_loader_tasks'; const ROLES_YAML_FILE_PATH = path.join( `${__dirname}/support`, 'project_controller_osquery_roles.yml' diff --git a/x-pack/plugins/osquery/cypress/serverless_cypress.config.ts b/x-pack/plugins/osquery/cypress/serverless_cypress.config.ts index c116fb3830e39..d2beac0ecbe9a 100644 --- a/x-pack/plugins/osquery/cypress/serverless_cypress.config.ts +++ b/x-pack/plugins/osquery/cypress/serverless_cypress.config.ts @@ -6,8 +6,8 @@ */ import { defineCypressConfig } from '@kbn/cypress-config'; +import { setupUserDataLoader } from '@kbn/test-suites-serverless/functional/test_suites/security/cypress/support/setup_data_loader_tasks'; import { getFailedSpecVideos } from './support/filter_videos'; -import { setupUserDataLoader } from '../../../test_serverless/functional/test_suites/security/cypress/support/setup_data_loader_tasks'; // eslint-disable-next-line import/no-default-export export default defineCypressConfig({ diff --git a/x-pack/plugins/osquery/cypress/support/roles.ts b/x-pack/plugins/osquery/cypress/support/roles.ts index b257803631e40..b4df2ed6fafd3 100644 --- a/x-pack/plugins/osquery/cypress/support/roles.ts +++ b/x-pack/plugins/osquery/cypress/support/roles.ts @@ -5,4 +5,4 @@ * 2.0. */ -export { ServerlessRoleName } from '../../../../test_serverless/shared/lib/security/types'; +export { ServerlessRoleName } from '@kbn/test-suites-serverless/shared/lib/security/types'; diff --git a/x-pack/plugins/osquery/cypress/tasks/live_query.ts b/x-pack/plugins/osquery/cypress/tasks/live_query.ts index 0d7d8043ca2c3..ad6bfb1183bfd 100644 --- a/x-pack/plugins/osquery/cypress/tasks/live_query.ts +++ b/x-pack/plugins/osquery/cypress/tasks/live_query.ts @@ -5,11 +5,11 @@ * 2.0. */ +import { waitForAlertsToPopulate } from '@kbn/test-suites-xpack/security_solution_cypress/cypress/tasks/create_new_rule'; import { disableNewFeaturesTours } from './navigation'; import { getAdvancedButton } from '../screens/integrations'; import { ServerlessRoleName } from '../support/roles'; import { LIVE_QUERY_EDITOR, OSQUERY_FLYOUT_BODY_EDITOR } from '../screens/live_query'; -import { waitForAlertsToPopulate } from '../../../../test/security_solution_cypress/cypress/tasks/create_new_rule'; export const DEFAULT_QUERY = 'select * from processes;'; export const BIG_QUERY = 'select * from processes, users limit 110;'; diff --git a/x-pack/plugins/osquery/cypress/tsconfig.json b/x-pack/plugins/osquery/cypress/tsconfig.json index 2670568ae91c5..7af5d7797dde2 100644 --- a/x-pack/plugins/osquery/cypress/tsconfig.json +++ b/x-pack/plugins/osquery/cypress/tsconfig.json @@ -19,9 +19,7 @@ "resolveJsonModule": true, }, "kbn_references": [ - { - "path": "../../../test_serverless/tsconfig.json" - }, + "@kbn/test-suites-serverless", { "path": "../../../test/security_solution_cypress/cypress/tsconfig.json" }, @@ -37,5 +35,6 @@ "@kbn/fleet-plugin", "@kbn/cases-plugin", "@kbn/security-solution-plugin/public/management/cypress", + "@kbn/test-suites-xpack/security_solution_cypress/cypress", ] } diff --git a/x-pack/plugins/search_connectors/common/lib/connector_types.ts b/x-pack/plugins/search_connectors/common/lib/connector_types.ts index 4924d561c102f..387b405b45774 100644 --- a/x-pack/plugins/search_connectors/common/lib/connector_types.ts +++ b/x-pack/plugins/search_connectors/common/lib/connector_types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { IStaticAssets } from '@kbn/core-http-browser'; +import type { IStaticAssets } from '@kbn/core-http-browser'; import { ConnectorServerSideDefinition, CONNECTOR_DEFINITIONS } from '../connectors'; import { getConnectorsDict } from '../constants'; diff --git a/x-pack/plugins/threat_intelligence/cypress/tasks/login.ts b/x-pack/plugins/threat_intelligence/cypress/tasks/login.ts index 32188787b9cf2..ccb135b677ba1 100644 --- a/x-pack/plugins/threat_intelligence/cypress/tasks/login.ts +++ b/x-pack/plugins/threat_intelligence/cypress/tasks/login.ts @@ -15,7 +15,7 @@ import { NEW_FEATURES_TOUR_STORAGE_KEYS } from '@kbn/security-solution-plugin/co import { LOADING_INDICATOR, LOADING_INDICATOR_HIDDEN, -} from '../../../../test/security_solution_cypress/cypress/screens/security_header'; +} from '@kbn/test-suites-xpack/security_solution_cypress/cypress/screens/security_header'; import type { ROLES } from './privileges'; const LOGIN_API_ENDPOINT = '/internal/security/login'; diff --git a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx index b81b24b0806be..7d34fb42409d0 100644 --- a/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx +++ b/x-pack/plugins/triggers_actions_ui/public/application/sections/action_connector_form/action_type_form.tsx @@ -43,7 +43,7 @@ import { getDurationUnitValue, parseDuration, } from '@kbn/alerting-plugin/common/parse_duration'; -import { SavedObjectAttribute } from '@kbn/core-saved-objects-api-server'; +import type { SavedObjectAttribute } from '@kbn/core-saved-objects-api-server'; import { transformActionVariables } from '@kbn/alerts-ui-shared/src/action_variables/transforms'; import { RuleActionsNotifyWhen } from '@kbn/alerts-ui-shared/src/rule_form/rule_actions/rule_actions_notify_when'; import { RuleActionsAlertsFilterTimeframe } from '@kbn/alerts-ui-shared/src/rule_form/rule_actions/rule_actions_alerts_filter_timeframe'; diff --git a/x-pack/test/accessibility/services.ts b/x-pack/test/accessibility/services.ts index 06aab6d5feed7..d7f56d3be6dd8 100644 --- a/x-pack/test/accessibility/services.ts +++ b/x-pack/test/accessibility/services.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { services as kibanaA11yServices } from '../../../test/accessibility/services'; +import { services as kibanaA11yServices } from '@kbn/test-suites-src/accessibility/services'; import { services as functionalServices } from '../functional/services'; export const services = { diff --git a/x-pack/test/alerting_api_integration/common/plugins/aad/tsconfig.json b/x-pack/test/alerting_api_integration/common/plugins/aad/tsconfig.json new file mode 100644 index 0000000000000..75a25119dafb5 --- /dev/null +++ b/x-pack/test/alerting_api_integration/common/plugins/aad/tsconfig.json @@ -0,0 +1,22 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + "@kbn/config-schema", + "@kbn/encrypted-saved-objects-plugin", + "@kbn/spaces-plugin", + "@kbn/alerting-plugin", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/alerting_api_integration/common/plugins/actions_simulators/tsconfig.json b/x-pack/test/alerting_api_integration/common/plugins/actions_simulators/tsconfig.json new file mode 100644 index 0000000000000..075519d68fb67 --- /dev/null +++ b/x-pack/test/alerting_api_integration/common/plugins/actions_simulators/tsconfig.json @@ -0,0 +1,25 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + "@kbn/config-schema", + "@kbn/encrypted-saved-objects-plugin", + "@kbn/features-plugin", + "@kbn/actions-plugin", + "@kbn/alerting-api-integration-helpers", + "@kbn/expect", + "@kbn/dev-utils", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/alerting_api_integration/common/plugins/alerts/server/routes.ts b/x-pack/test/alerting_api_integration/common/plugins/alerts/server/routes.ts index 6530a1768826b..3e6b469ce2cc0 100644 --- a/x-pack/test/alerting_api_integration/common/plugins/alerts/server/routes.ts +++ b/x-pack/test/alerting_api_integration/common/plugins/alerts/server/routes.ts @@ -540,8 +540,8 @@ export function defineRoutes( const emailService = notifications.getEmailService(); - emailService.sendPlainTextEmail({ to, subject, message }); - emailService.sendHTMLEmail({ to, subject, message, messageHTML }); + await emailService.sendPlainTextEmail({ to, subject, message }); + await emailService.sendHTMLEmail({ to, subject, message, messageHTML }); return res.ok({ body: { ok: true } }); } diff --git a/x-pack/test/alerting_api_integration/common/plugins/alerts/tsconfig.json b/x-pack/test/alerting_api_integration/common/plugins/alerts/tsconfig.json new file mode 100644 index 0000000000000..9088008908f1b --- /dev/null +++ b/x-pack/test/alerting_api_integration/common/plugins/alerts/tsconfig.json @@ -0,0 +1,33 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + "@kbn/config-schema", + "@kbn/actions-plugin", + "@kbn/alerting-plugin", + "@kbn/task-manager-plugin", + "@kbn/encrypted-saved-objects-plugin", + "@kbn/features-plugin", + "@kbn/spaces-plugin", + "@kbn/security-plugin", + "@kbn/rule-registry-plugin", + "@kbn/event-log-plugin", + "@kbn/notifications-plugin", + "@kbn/core-saved-objects-server", + "@kbn/logging", + "@kbn/rule-data-utils", + "@kbn/alerting-api-integration-helpers", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/alerting_api_integration/common/plugins/alerts_restricted/tsconfig.json b/x-pack/test/alerting_api_integration/common/plugins/alerts_restricted/tsconfig.json new file mode 100644 index 0000000000000..b7c131e481e30 --- /dev/null +++ b/x-pack/test/alerting_api_integration/common/plugins/alerts_restricted/tsconfig.json @@ -0,0 +1,23 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + "@kbn/alerting-plugin", + "@kbn/config-schema", + "@kbn/actions-plugin", + "@kbn/encrypted-saved-objects-plugin", + "@kbn/features-plugin", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture/tsconfig.json b/x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture/tsconfig.json new file mode 100644 index 0000000000000..7155e57d2b591 --- /dev/null +++ b/x-pack/test/alerting_api_integration/common/plugins/task_manager_fixture/tsconfig.json @@ -0,0 +1,20 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + "@kbn/config-schema", + "@kbn/task-manager-plugin", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/api_integration/apis/cloud_security_posture/helper.ts b/x-pack/test/api_integration/apis/cloud_security_posture/helper.ts index 87d59e556d314..632d6965e12a8 100644 --- a/x-pack/test/api_integration/apis/cloud_security_posture/helper.ts +++ b/x-pack/test/api_integration/apis/cloud_security_posture/helper.ts @@ -11,7 +11,7 @@ import expect from '@kbn/expect'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; import type { IndexDetails } from '@kbn/cloud-security-posture-plugin/common/types_old'; import { CLOUD_SECURITY_PLUGIN_VERSION } from '@kbn/cloud-security-posture-plugin/common/constants'; -import { SecurityService } from '../../../../../test/common/services/security/security'; +import { SecurityService } from '@kbn/test-suites-src/common/services/security/security'; export interface RoleCredentials { apiKey: { id: string; name: string }; diff --git a/x-pack/test/api_integration/apis/search/search.ts b/x-pack/test/api_integration/apis/search/search.ts index d7bbbcac2bf64..166410e3aba4a 100644 --- a/x-pack/test/api_integration/apis/search/search.ts +++ b/x-pack/test/api_integration/apis/search/search.ts @@ -9,8 +9,8 @@ import expect from '@kbn/expect'; import { parse as parseCookie } from 'tough-cookie'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; import { DataViewType } from '@kbn/data-views-plugin/common'; +import { verifyErrorResponse } from '@kbn/test-suites-src/api_integration/apis/search/verify_error'; import { FtrProviderContext } from '../../ftr_provider_context'; -import { verifyErrorResponse } from '../../../../../test/api_integration/apis/search/verify_error'; export default function ({ getService }: FtrProviderContext) { const supertest = getService('supertest'); diff --git a/x-pack/test/api_integration/apis/synthetics/services/private_location_test_service.ts b/x-pack/test/api_integration/apis/synthetics/services/private_location_test_service.ts index 99ba316d3f850..2b79c36cecc28 100644 --- a/x-pack/test/api_integration/apis/synthetics/services/private_location_test_service.ts +++ b/x-pack/test/api_integration/apis/synthetics/services/private_location_test_service.ts @@ -8,8 +8,8 @@ import { v4 as uuidv4 } from 'uuid'; import { privateLocationsSavedObjectName } from '@kbn/synthetics-plugin/common/saved_objects/private_locations'; import { privateLocationsSavedObjectId } from '@kbn/synthetics-plugin/server/saved_objects/private_locations'; import { SyntheticsPrivateLocations } from '@kbn/synthetics-plugin/common/runtime_types'; +import { KibanaSupertestProvider } from '@kbn/test-suites-src/api_integration/services/supertest'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { KibanaSupertestProvider } from '../../../../../../test/api_integration/services/supertest'; export const INSTALLED_VERSION = '1.1.1'; diff --git a/x-pack/test/api_integration/apis/synthetics/services/synthetics_monitor_test_service.ts b/x-pack/test/api_integration/apis/synthetics/services/synthetics_monitor_test_service.ts index b8422bcb3f393..4fc4c172eb6c5 100644 --- a/x-pack/test/api_integration/apis/synthetics/services/synthetics_monitor_test_service.ts +++ b/x-pack/test/api_integration/apis/synthetics/services/synthetics_monitor_test_service.ts @@ -12,8 +12,8 @@ import { MonitorInspectResponse } from '@kbn/synthetics-plugin/public/apps/synth import { v4 as uuidv4 } from 'uuid'; import expect from '@kbn/expect'; import { ProjectAPIKeyResponse } from '@kbn/synthetics-plugin/server/routes/monitor_cruds/get_api_key'; +import { KibanaSupertestProvider } from '@kbn/test-suites-src/api_integration/services/supertest'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { KibanaSupertestProvider } from '../../../../../../test/api_integration/services/supertest'; export class SyntheticsMonitorTestService { private supertest: ReturnType; diff --git a/x-pack/test/api_integration/apis/telemetry/telemetry.ts b/x-pack/test/api_integration/apis/telemetry/telemetry.ts index bdaa36c1a7d54..9c0a9b16bd835 100644 --- a/x-pack/test/api_integration/apis/telemetry/telemetry.ts +++ b/x-pack/test/api_integration/apis/telemetry/telemetry.ts @@ -25,9 +25,9 @@ import { ELASTIC_HTTP_VERSION_HEADER, X_ELASTIC_INTERNAL_ORIGIN_REQUEST, } from '@kbn/core-http-common'; +import type { SecurityService } from '@kbn/test-suites-src/common/services/security/security'; import basicClusterFixture from './fixtures/basiccluster.json'; import multiClusterFixture from './fixtures/multicluster.json'; -import type { SecurityService } from '../../../../../test/common/services/security/security'; import type { FtrProviderContext } from '../../ftr_provider_context'; function omitCacheDetails(usagePayload: Array>) { diff --git a/x-pack/test/api_integration/apis/telemetry/telemetry_local.ts b/x-pack/test/api_integration/apis/telemetry/telemetry_local.ts index 51e60c2e22bd1..bc59b02955ba0 100644 --- a/x-pack/test/api_integration/apis/telemetry/telemetry_local.ts +++ b/x-pack/test/api_integration/apis/telemetry/telemetry_local.ts @@ -16,7 +16,7 @@ import { ELASTIC_HTTP_VERSION_HEADER, X_ELASTIC_INTERNAL_ORIGIN_REQUEST, } from '@kbn/core-http-common'; -import { flatKeys } from '../../../../../test/api_integration/apis/telemetry/utils'; +import { flatKeys } from '@kbn/test-suites-src/api_integration/apis/telemetry/utils'; import type { FtrProviderContext } from '../../ftr_provider_context'; const disableCollection = { diff --git a/x-pack/test/api_integration/services/index.ts b/x-pack/test/api_integration/services/index.ts index 5d2508ee627c7..d3dd76767f489 100644 --- a/x-pack/test/api_integration/services/index.ts +++ b/x-pack/test/api_integration/services/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { services as kibanaApiIntegrationServices } from '../../../../test/api_integration/services'; +import { services as kibanaApiIntegrationServices } from '@kbn/test-suites-src/api_integration/services'; import { services as commonServices } from '../../common/services'; // @ts-ignore not ts yet diff --git a/x-pack/test/cases_api_integration/common/plugins/cases/tsconfig.json b/x-pack/test/cases_api_integration/common/plugins/cases/tsconfig.json new file mode 100644 index 0000000000000..0e0443d2930e9 --- /dev/null +++ b/x-pack/test/cases_api_integration/common/plugins/cases/tsconfig.json @@ -0,0 +1,25 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/cases-plugin", + "@kbn/core", + "@kbn/files-plugin", + "@kbn/config-schema", + "@kbn/actions-plugin", + "@kbn/features-plugin", + "@kbn/spaces-plugin", + "@kbn/security-plugin", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/cases_api_integration/common/plugins/observability/tsconfig.json b/x-pack/test/cases_api_integration/common/plugins/observability/tsconfig.json new file mode 100644 index 0000000000000..78b4caaf4bf97 --- /dev/null +++ b/x-pack/test/cases_api_integration/common/plugins/observability/tsconfig.json @@ -0,0 +1,22 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + "@kbn/files-plugin", + "@kbn/features-plugin", + "@kbn/spaces-plugin", + "@kbn/security-plugin", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/cases_api_integration/common/plugins/security_solution/tsconfig.json b/x-pack/test/cases_api_integration/common/plugins/security_solution/tsconfig.json new file mode 100644 index 0000000000000..78b4caaf4bf97 --- /dev/null +++ b/x-pack/test/cases_api_integration/common/plugins/security_solution/tsconfig.json @@ -0,0 +1,22 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + "@kbn/files-plugin", + "@kbn/features-plugin", + "@kbn/spaces-plugin", + "@kbn/security-plugin", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/cloud_integration/config.ts b/x-pack/test/cloud_integration/config.ts index 6ce2950753394..a1c5c57e3a0bd 100644 --- a/x-pack/test/cloud_integration/config.ts +++ b/x-pack/test/cloud_integration/config.ts @@ -23,10 +23,10 @@ const RUN_CHAT_TESTS = Boolean(CHAT_URL); // that returns an object with the projects config values export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); const kibanaPort = kibanaFunctionalConfig.get('servers.kibana.port'); diff --git a/x-pack/test/common/services/index.ts b/x-pack/test/common/services/index.ts index b5045fd94f8e5..5e931b440654a 100644 --- a/x-pack/test/common/services/index.ts +++ b/x-pack/test/common/services/index.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { services as kibanaApiIntegrationServices } from '../../../../test/api_integration/services'; -import { services as kibanaCommonServices } from '../../../../test/common/services'; +import { services as kibanaApiIntegrationServices } from '@kbn/test-suites-src/api_integration/services'; +import { services as kibanaCommonServices } from '@kbn/test-suites-src/common/services'; import { InfraLogViewsServiceProvider } from './infra_log_views'; import { SpacesServiceProvider } from './spaces'; import { BsearchSecureService } from './bsearch_secure'; diff --git a/x-pack/test/defend_workflows_cypress/config.ts b/x-pack/test/defend_workflows_cypress/config.ts index bc771a8790e38..09c08fca6996c 100644 --- a/x-pack/test/defend_workflows_cypress/config.ts +++ b/x-pack/test/defend_workflows_cypress/config.ts @@ -12,7 +12,7 @@ import { services } from './services'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( require.resolve('../functional/config.base.js') diff --git a/x-pack/test/defend_workflows_cypress/serverless_config.ts b/x-pack/test/defend_workflows_cypress/serverless_config.ts index 2efc55ea48081..0434c13cd2392 100644 --- a/x-pack/test/defend_workflows_cypress/serverless_config.ts +++ b/x-pack/test/defend_workflows_cypress/serverless_config.ts @@ -15,7 +15,7 @@ import { DefendWorkflowsCypressCliTestRunner } from './runner'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const defendWorkflowsCypressConfig = await readConfigFile( require.resolve( - '../../test_serverless/functional/test_suites/security/cypress/security_config.base.ts' + '@kbn/test-suites-serverless/functional/test_suites/security/cypress/security_config.base' ) ); const config = defendWorkflowsCypressConfig.getAll(); diff --git a/x-pack/test/defend_workflows_cypress/services.ts b/x-pack/test/defend_workflows_cypress/services.ts index 5e063134081ad..272cf7eb8da4e 100644 --- a/x-pack/test/defend_workflows_cypress/services.ts +++ b/x-pack/test/defend_workflows_cypress/services.ts @@ -5,4 +5,4 @@ * 2.0. */ -export * from '../../../test/common/services'; +export * from '@kbn/test-suites-src/common/services'; diff --git a/x-pack/test/examples/embedded_lens/index.ts b/x-pack/test/examples/embedded_lens/index.ts index b418e69584a9a..0c67d8e5822fc 100644 --- a/x-pack/test/examples/embedded_lens/index.ts +++ b/x-pack/test/examples/embedded_lens/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PluginFunctionalProviderContext } from '../../../../test/plugin_functional/services'; +import { PluginFunctionalProviderContext } from '@kbn/test-suites-src/plugin_functional/services'; // eslint-disable-next-line import/no-default-export export default function ({ getService, loadTestFile }: PluginFunctionalProviderContext) { diff --git a/x-pack/test/examples/screenshotting/index.ts b/x-pack/test/examples/screenshotting/index.ts index f8c8327217d15..57bbeee628fd1 100644 --- a/x-pack/test/examples/screenshotting/index.ts +++ b/x-pack/test/examples/screenshotting/index.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default function ({ diff --git a/x-pack/test/examples/search_examples/index.ts b/x-pack/test/examples/search_examples/index.ts index cee873dfed53a..4eab653ea90fd 100644 --- a/x-pack/test/examples/search_examples/index.ts +++ b/x-pack/test/examples/search_examples/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { PluginFunctionalProviderContext } from '../../../../test/plugin_functional/services'; +import { PluginFunctionalProviderContext } from '@kbn/test-suites-src/plugin_functional/services'; // eslint-disable-next-line import/no-default-export export default function ({ getService, loadTestFile }: PluginFunctionalProviderContext) { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/global_rule_event_log_list.ts b/x-pack/test/examples/triggers_actions_ui_examples/global_rule_event_log_list.ts index 660e76c549ff4..82557e7588388 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/global_rule_event_log_list.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/global_rule_event_log_list.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ getPageObjects, getService }: FtrProviderContext) => { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/index.ts b/x-pack/test/examples/triggers_actions_ui_examples/index.ts index 8f99b3b6a732a..230058d1601d6 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/index.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/index.ts @@ -4,7 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ loadTestFile }: FtrProviderContext) => { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/rule_event_log_list.ts b/x-pack/test/examples/triggers_actions_ui_examples/rule_event_log_list.ts index c8418b7d9a613..4e25562136df2 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/rule_event_log_list.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/rule_event_log_list.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ getPageObjects, getService }: FtrProviderContext) => { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/rule_status_dropdown.ts b/x-pack/test/examples/triggers_actions_ui_examples/rule_status_dropdown.ts index 9cbf5556260e4..e6f5e4af81a0e 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/rule_status_dropdown.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/rule_status_dropdown.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ getPageObjects, getService }: FtrProviderContext) => { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/rule_status_filter.ts b/x-pack/test/examples/triggers_actions_ui_examples/rule_status_filter.ts index 9129dcf2e8570..1ca68c5e16194 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/rule_status_filter.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/rule_status_filter.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ getPageObjects, getService }: FtrProviderContext) => { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/rule_tag_badge.ts b/x-pack/test/examples/triggers_actions_ui_examples/rule_tag_badge.ts index 81fef57bcca6d..28d45573b1387 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/rule_tag_badge.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/rule_tag_badge.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ getPageObjects, getService }: FtrProviderContext) => { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/rule_tag_filter.ts b/x-pack/test/examples/triggers_actions_ui_examples/rule_tag_filter.ts index c0532e6588237..1d05e1b4aa5b3 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/rule_tag_filter.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/rule_tag_filter.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ getPageObjects, getService }: FtrProviderContext) => { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/rules_list.ts b/x-pack/test/examples/triggers_actions_ui_examples/rules_list.ts index 0b1608023b607..7868172b106ce 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/rules_list.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/rules_list.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ getPageObjects, getService }: FtrProviderContext) => { diff --git a/x-pack/test/examples/triggers_actions_ui_examples/rules_settings_link.ts b/x-pack/test/examples/triggers_actions_ui_examples/rules_settings_link.ts index 13e591806757c..fc07e65ccd3cc 100644 --- a/x-pack/test/examples/triggers_actions_ui_examples/rules_settings_link.ts +++ b/x-pack/test/examples/triggers_actions_ui_examples/rules_settings_link.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import { FtrProviderContext } from '../../../../test/functional/ftr_provider_context'; +import { FtrProviderContext } from '@kbn/test-suites-src/functional/ftr_provider_context'; // eslint-disable-next-line import/no-default-export export default ({ getPageObjects, getService }: FtrProviderContext) => { diff --git a/x-pack/test/fleet_api_integration/apis/test_users.ts b/x-pack/test/fleet_api_integration/apis/test_users.ts index bbb1b489fcca5..2a89477e77b7f 100644 --- a/x-pack/test/fleet_api_integration/apis/test_users.ts +++ b/x-pack/test/fleet_api_integration/apis/test_users.ts @@ -5,7 +5,7 @@ * 2.0. */ -import type { SecurityService } from '../../../../test/common/services/security/security'; +import type { SecurityService } from '@kbn/test-suites-src/common/services/security/security'; export const testUsers: { [rollName: string]: { username: string; password: string; permissions?: any }; diff --git a/x-pack/test/fleet_cypress/config.ts b/x-pack/test/fleet_cypress/config.ts index c4f05b4daed8b..da0d8aa7af271 100644 --- a/x-pack/test/fleet_cypress/config.ts +++ b/x-pack/test/fleet_cypress/config.ts @@ -11,7 +11,7 @@ import { CA_CERT_PATH } from '@kbn/dev-utils'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( require.resolve('../functional/config.base.js') diff --git a/x-pack/test/fleet_cypress/services.ts b/x-pack/test/fleet_cypress/services.ts index 5e063134081ad..272cf7eb8da4e 100644 --- a/x-pack/test/fleet_cypress/services.ts +++ b/x-pack/test/fleet_cypress/services.ts @@ -5,4 +5,4 @@ * 2.0. */ -export * from '../../../test/common/services'; +export * from '@kbn/test-suites-src/common/services'; diff --git a/x-pack/test/functional/apps/infra/logs/ml_job_id_formats/request_tracker.ts b/x-pack/test/functional/apps/infra/logs/ml_job_id_formats/request_tracker.ts index df02224012ccf..4175cf4f5dc31 100644 --- a/x-pack/test/functional/apps/infra/logs/ml_job_id_formats/request_tracker.ts +++ b/x-pack/test/functional/apps/infra/logs/ml_job_id_formats/request_tracker.ts @@ -6,7 +6,7 @@ */ import type { Browser } from '@kbn/ftr-common-functional-ui-services'; -import { CommonPageObject } from '../../../../../../../test/functional/page_objects/common_page'; +import { CommonPageObject } from '@kbn/test-suites-src/functional/page_objects/common_page'; type PerformanceResourceTimingWithHttpStatus = PerformanceResourceTiming & { responseStatus: number; diff --git a/x-pack/test/functional/config.base.js b/x-pack/test/functional/config.base.js index 1bf939c537b7c..834aee5fbaa8c 100644 --- a/x-pack/test/functional/config.base.js +++ b/x-pack/test/functional/config.base.js @@ -20,10 +20,10 @@ export const dockerImage = 'docker.elastic.co/package-registry/distribution:lite // that returns an object with the projects config values export default async function ({ readConfigFile }) { const kibanaCommonConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); return { diff --git a/x-pack/test/functional/config_security_basic.ts b/x-pack/test/functional/config_security_basic.ts index d56b91d45a63e..0a1212f311b2f 100644 --- a/x-pack/test/functional/config_security_basic.ts +++ b/x-pack/test/functional/config_security_basic.ts @@ -17,10 +17,10 @@ import { pageObjects } from './page_objects'; // that returns an object with the projects config values export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); return { diff --git a/x-pack/test/functional/page_objects/index.ts b/x-pack/test/functional/page_objects/index.ts index 155bc0901ae4d..e0d12bdd7459e 100644 --- a/x-pack/test/functional/page_objects/index.ts +++ b/x-pack/test/functional/page_objects/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { pageObjects as kibanaFunctionalPageObjects } from '../../../../test/functional/page_objects'; +import { pageObjects as kibanaFunctionalPageObjects } from '@kbn/test-suites-src/functional/page_objects'; import { AccountSettingsPageObject } from './account_settings_page'; import { ApiKeysPageProvider } from './api_keys_page'; diff --git a/x-pack/test/functional/services/index.ts b/x-pack/test/functional/services/index.ts index d7aab70c44cbc..708e0c29aa711 100644 --- a/x-pack/test/functional/services/index.ts +++ b/x-pack/test/functional/services/index.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { services as kibanaFunctionalServices } from '../../../../test/functional/services'; -import { services as kibanaApiIntegrationServices } from '../../../../test/api_integration/services'; +import { services as kibanaFunctionalServices } from '@kbn/test-suites-src/functional/services'; +import { services as kibanaApiIntegrationServices } from '@kbn/test-suites-src/api_integration/services'; import { services as kibanaXPackApiIntegrationServices } from '../../api_integration/services'; import { services as commonServices } from '../../common/services'; import { ReportingFunctionalProvider } from '../../reporting_functional/services'; diff --git a/x-pack/test/functional_enterprise_search/base_config.ts b/x-pack/test/functional_enterprise_search/base_config.ts index 3ef0881ec2dc3..e5ea6fd616ca9 100644 --- a/x-pack/test/functional_enterprise_search/base_config.ts +++ b/x-pack/test/functional_enterprise_search/base_config.ts @@ -15,7 +15,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) { ); const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); return { // common test config diff --git a/x-pack/test/functional_enterprise_search/cli_config.ts b/x-pack/test/functional_enterprise_search/cli_config.ts index ec7e75f01c288..05fe67f6be01a 100644 --- a/x-pack/test/functional_enterprise_search/cli_config.ts +++ b/x-pack/test/functional_enterprise_search/cli_config.ts @@ -10,7 +10,7 @@ import { EnterpriseSearchCypressCliTestRunner } from './runner'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const baseConfig = await readConfigFile(require.resolve('./cypress.config')); diff --git a/x-pack/test/functional_enterprise_search/visual_config.ts b/x-pack/test/functional_enterprise_search/visual_config.ts index 300d1b23b4191..3bbe099ac61ec 100644 --- a/x-pack/test/functional_enterprise_search/visual_config.ts +++ b/x-pack/test/functional_enterprise_search/visual_config.ts @@ -10,7 +10,7 @@ import { EnterpriseSearchCypressVisualTestRunner } from './runner'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const baseConfig = await readConfigFile(require.resolve('./cypress.config')); diff --git a/x-pack/test/kibana.jsonc b/x-pack/test/kibana.jsonc new file mode 100644 index 0000000000000..28ec73724560e --- /dev/null +++ b/x-pack/test/kibana.jsonc @@ -0,0 +1,6 @@ +{ + "type": "test-helper", + "id": "@kbn/test-suites-xpack", + "owner": "@elastic/appex-qa", + "devOnly": true +} diff --git a/x-pack/test/load/config.ts b/x-pack/test/load/config.ts index 8eb59da75acc5..b2559ead7af95 100644 --- a/x-pack/test/load/config.ts +++ b/x-pack/test/load/config.ts @@ -21,7 +21,7 @@ const branchName = process.env.KIBANA_BRANCH; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( require.resolve('../functional/config.base.js') diff --git a/x-pack/test/observability_ai_assistant_functional/common/config.ts b/x-pack/test/observability_ai_assistant_functional/common/config.ts index e80597cc2b2b0..c0f649d51d90d 100644 --- a/x-pack/test/observability_ai_assistant_functional/common/config.ts +++ b/x-pack/test/observability_ai_assistant_functional/common/config.ts @@ -8,14 +8,14 @@ import { FtrConfigProviderContext } from '@kbn/test'; import { merge } from 'lodash'; import { UrlObject } from 'url'; +import { + KibanaEBTServerProvider, + KibanaEBTUIProvider, +} from '@kbn/test-suites-src/analytics/services/kibana_ebt'; import { editorUser, viewerUser, } from '../../observability_ai_assistant_api_integration/common/users/users'; -import { - KibanaEBTServerProvider, - KibanaEBTUIProvider, -} from '../../../../test/analytics/services/kibana_ebt'; import { ObservabilityAIAssistantFtrConfig, createObservabilityAIAssistantAPIConfig, diff --git a/x-pack/test/osquery_cypress/config.ts b/x-pack/test/osquery_cypress/config.ts index ec8658e3398a3..37b522e424164 100644 --- a/x-pack/test/osquery_cypress/config.ts +++ b/x-pack/test/osquery_cypress/config.ts @@ -11,7 +11,7 @@ import { CA_CERT_PATH } from '@kbn/dev-utils'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( require.resolve('../functional/config.base.js') diff --git a/x-pack/test/osquery_cypress/serverless_cli_config.ts b/x-pack/test/osquery_cypress/serverless_cli_config.ts index 723a65dda94ca..0ed1be5e332d3 100644 --- a/x-pack/test/osquery_cypress/serverless_cli_config.ts +++ b/x-pack/test/osquery_cypress/serverless_cli_config.ts @@ -13,7 +13,7 @@ import { startOsqueryCypress } from './runner'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const securitySolutionCypressConfig = await readConfigFile( require.resolve( - '../../test_serverless/functional/test_suites/security/cypress/security_config.base.ts' + '@kbn/test-suites-serverless/functional/test_suites/security/cypress/security_config.base' ) ); diff --git a/x-pack/test/osquery_cypress/services.ts b/x-pack/test/osquery_cypress/services.ts index 5e063134081ad..272cf7eb8da4e 100644 --- a/x-pack/test/osquery_cypress/services.ts +++ b/x-pack/test/osquery_cypress/services.ts @@ -5,4 +5,4 @@ * 2.0. */ -export * from '../../../test/common/services'; +export * from '@kbn/test-suites-src/common/services'; diff --git a/x-pack/test/profiling_api_integration/common/create_profiling_users/helpers/create_or_update_user.ts b/x-pack/test/profiling_api_integration/common/create_profiling_users/helpers/create_or_update_user.ts index 974e2ccc4671f..d82751a4b8b33 100644 --- a/x-pack/test/profiling_api_integration/common/create_profiling_users/helpers/create_or_update_user.ts +++ b/x-pack/test/profiling_api_integration/common/create_profiling_users/helpers/create_or_update_user.ts @@ -8,9 +8,9 @@ /* eslint-disable no-console */ import { difference, union } from 'lodash'; +import { SecurityService } from '@kbn/test-suites-src/common/services/security/security'; import { Elasticsearch, Kibana } from '..'; import { callKibana, isAxiosError } from './call_kibana'; -import { SecurityService } from '../../../../../../test/common/services/security/security'; interface User { username: string; diff --git a/x-pack/test/profiling_api_integration/common/create_profiling_users/index.ts b/x-pack/test/profiling_api_integration/common/create_profiling_users/index.ts index 58131390c45e0..d7c101dd52eaa 100644 --- a/x-pack/test/profiling_api_integration/common/create_profiling_users/index.ts +++ b/x-pack/test/profiling_api_integration/common/create_profiling_users/index.ts @@ -5,10 +5,10 @@ * 2.0. */ import { asyncForEach } from '@kbn/std'; +import { SecurityService } from '@kbn/test-suites-src/common/services/security/security'; import { ProfilingUsername, profilingUsers } from './authentication'; import { AbortError, callKibana } from './helpers/call_kibana'; import { createOrUpdateUser } from './helpers/create_or_update_user'; -import { SecurityService } from '../../../../../test/common/services/security/security'; export interface Elasticsearch { node: string; diff --git a/x-pack/test/saved_object_api_integration/common/config.ts b/x-pack/test/saved_object_api_integration/common/config.ts index 59832a5249b72..553762760b197 100644 --- a/x-pack/test/saved_object_api_integration/common/config.ts +++ b/x-pack/test/saved_object_api_integration/common/config.ts @@ -26,7 +26,7 @@ export function createTestConfig(name: string, options: CreateTestConfigOptions) kibana: { api: await readConfigFile(path.resolve(REPO_ROOT, 'test/api_integration/config.js')), functional: await readConfigFile( - require.resolve('../../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ), }, xpack: { diff --git a/x-pack/test/saved_object_api_integration/common/plugins/saved_object_test_plugin/tsconfig.json b/x-pack/test/saved_object_api_integration/common/plugins/saved_object_test_plugin/tsconfig.json new file mode 100644 index 0000000000000..201ae6ddf08eb --- /dev/null +++ b/x-pack/test/saved_object_api_integration/common/plugins/saved_object_test_plugin/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/saved_object_api_integration/common/services/index.ts b/x-pack/test/saved_object_api_integration/common/services/index.ts index 2af52609f1822..eac92136695f8 100644 --- a/x-pack/test/saved_object_api_integration/common/services/index.ts +++ b/x-pack/test/saved_object_api_integration/common/services/index.ts @@ -5,10 +5,10 @@ * 2.0. */ +import { services as kibanaApiIntegrationServices } from '@kbn/test-suites-src/api_integration/services'; +import { services as kibanaFunctionalServices } from '@kbn/test-suites-src/functional/services'; import { services as commonServices } from '../../../common/services'; import { services as apiIntegrationServices } from '../../../api_integration/services'; -import { services as kibanaApiIntegrationServices } from '../../../../../test/api_integration/services'; -import { services as kibanaFunctionalServices } from '../../../../../test/functional/services'; export const services = { ...commonServices, diff --git a/x-pack/test/saved_objects_field_count/config.ts b/x-pack/test/saved_objects_field_count/config.ts index ab5154adb8d59..eb2aeb1df90a9 100644 --- a/x-pack/test/saved_objects_field_count/config.ts +++ b/x-pack/test/saved_objects_field_count/config.ts @@ -9,7 +9,7 @@ import { FtrConfigProviderContext } from '@kbn/test'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); return { diff --git a/x-pack/test/security_api_integration/anonymous.config.ts b/x-pack/test/security_api_integration/anonymous.config.ts index e9b0975fb4f38..a53584b547efd 100644 --- a/x-pack/test/security_api_integration/anonymous.config.ts +++ b/x-pack/test/security_api_integration/anonymous.config.ts @@ -10,7 +10,7 @@ import { resolve } from 'path'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaAPITestsConfig = await readConfigFile( - require.resolve('../../../test/api_integration/config.js') + require.resolve('@kbn/test-suites-src/api_integration/config') ); const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts')); diff --git a/x-pack/test/security_api_integration/chips.config.ts b/x-pack/test/security_api_integration/chips.config.ts index fae73f4c38446..b91a4ebfcc3e9 100644 --- a/x-pack/test/security_api_integration/chips.config.ts +++ b/x-pack/test/security_api_integration/chips.config.ts @@ -10,7 +10,7 @@ import { resolve } from 'path'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaAPITestsConfig = await readConfigFile( - require.resolve('../../../test/api_integration/config.js') + require.resolve('@kbn/test-suites-src/api_integration/config') ); const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts')); diff --git a/x-pack/test/security_api_integration/login_selector.config.ts b/x-pack/test/security_api_integration/login_selector.config.ts index 82046e3a0d386..47371973028f0 100644 --- a/x-pack/test/security_api_integration/login_selector.config.ts +++ b/x-pack/test/security_api_integration/login_selector.config.ts @@ -12,7 +12,7 @@ import { FtrConfigProviderContext } from '@kbn/test'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaAPITestsConfig = await readConfigFile( - require.resolve('../../../test/api_integration/config.js') + require.resolve('@kbn/test-suites-src/api_integration/config') ); const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts')); const kibanaPort = xPackAPITestsConfig.get('servers.kibana.port'); diff --git a/x-pack/test/security_api_integration/oidc.http2.config.ts b/x-pack/test/security_api_integration/oidc.http2.config.ts index 395b8c62c25d4..957813ceb046e 100644 --- a/x-pack/test/security_api_integration/oidc.http2.config.ts +++ b/x-pack/test/security_api_integration/oidc.http2.config.ts @@ -7,7 +7,7 @@ import { FtrConfigProviderContext } from '@kbn/test'; import { CA_CERT_PATH } from '@kbn/dev-utils'; -import { configureHTTP2 } from '../../../test/common/configure_http2'; +import { configureHTTP2 } from '@kbn/test-suites-src/common/configure_http2'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts')); diff --git a/x-pack/test/security_api_integration/saml.http2.config.ts b/x-pack/test/security_api_integration/saml.http2.config.ts index 1e3ab00712965..0d063188efe9c 100644 --- a/x-pack/test/security_api_integration/saml.http2.config.ts +++ b/x-pack/test/security_api_integration/saml.http2.config.ts @@ -7,7 +7,7 @@ import { FtrConfigProviderContext } from '@kbn/test'; import { CA_CERT_PATH } from '@kbn/dev-utils'; -import { configureHTTP2 } from '../../../test/common/configure_http2'; +import { configureHTTP2 } from '@kbn/test-suites-src/common/configure_http2'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts')); diff --git a/x-pack/test/security_functional/insecure_cluster_warning.config.ts b/x-pack/test/security_functional/insecure_cluster_warning.config.ts index f293eaec531c0..fa89c80653c5d 100644 --- a/x-pack/test/security_functional/insecure_cluster_warning.config.ts +++ b/x-pack/test/security_functional/insecure_cluster_warning.config.ts @@ -14,10 +14,10 @@ import { pageObjects } from '../functional/page_objects'; // that returns an object with the projects config values export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); const kbnTestServerArgOverrides = kibanaCommonConfig diff --git a/x-pack/test/security_functional/login_selector.config.ts b/x-pack/test/security_functional/login_selector.config.ts index 423e8edf8a2a4..b8f690261ebac 100644 --- a/x-pack/test/security_functional/login_selector.config.ts +++ b/x-pack/test/security_functional/login_selector.config.ts @@ -14,10 +14,10 @@ import { pageObjects } from '../functional/page_objects'; // that returns an object with the projects config values export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); const kibanaPort = kibanaFunctionalConfig.get('servers.kibana.port'); diff --git a/x-pack/test/security_functional/oidc.config.ts b/x-pack/test/security_functional/oidc.config.ts index c7051a2982ff0..cdff3e327c016 100644 --- a/x-pack/test/security_functional/oidc.config.ts +++ b/x-pack/test/security_functional/oidc.config.ts @@ -14,10 +14,10 @@ import { pageObjects } from '../functional/page_objects'; // that returns an object with the projects config values export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); const kibanaPort = kibanaFunctionalConfig.get('servers.kibana.port'); diff --git a/x-pack/test/security_functional/oidc.http2.config.ts b/x-pack/test/security_functional/oidc.http2.config.ts index ebb3447401e24..79335988411f2 100644 --- a/x-pack/test/security_functional/oidc.http2.config.ts +++ b/x-pack/test/security_functional/oidc.http2.config.ts @@ -7,11 +7,11 @@ import { FtrConfigProviderContext } from '@kbn/test'; import { CA_CERT_PATH } from '@kbn/dev-utils'; -import { configureHTTP2 } from '../../../test/common/configure_http2'; +import { configureHTTP2 } from '@kbn/test-suites-src/common/configure_http2'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); const functionalConfig = await readConfigFile(require.resolve('./oidc.config')); const kibanaPort = kibanaFunctionalConfig.get('servers.kibana.port'); diff --git a/x-pack/test/security_functional/saml.config.ts b/x-pack/test/security_functional/saml.config.ts index 8da7266f57f31..c42594f75bc30 100644 --- a/x-pack/test/security_functional/saml.config.ts +++ b/x-pack/test/security_functional/saml.config.ts @@ -14,10 +14,10 @@ import { pageObjects } from '../functional/page_objects'; // that returns an object with the projects config values export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); const kibanaPort = kibanaFunctionalConfig.get('servers.kibana.port'); diff --git a/x-pack/test/security_functional/saml.http2.config.ts b/x-pack/test/security_functional/saml.http2.config.ts index 998fcbfc8cfaa..dc9bac7cbdeb9 100644 --- a/x-pack/test/security_functional/saml.http2.config.ts +++ b/x-pack/test/security_functional/saml.http2.config.ts @@ -14,14 +14,14 @@ import { resolve } from 'path'; import { FtrConfigProviderContext } from '@kbn/test'; import { CA_CERT_PATH } from '@kbn/dev-utils'; -import { configureHTTP2 } from '../../../test/common/configure_http2'; +import { configureHTTP2 } from '@kbn/test-suites-src/common/configure_http2'; // the default export of config files must be a config provider // that returns an object with the projects config values export default async function ({ readConfigFile }: FtrConfigProviderContext) { const functionalConfig = await readConfigFile(require.resolve('./saml.config')); const kibanaFunctionalConfig = await readConfigFile( - require.resolve('../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ); const kibanaPort = kibanaFunctionalConfig.get('servers.kibana.port'); diff --git a/x-pack/test/security_solution_api_integration/config/serverless/config.base.edr_workflows.ts b/x-pack/test/security_solution_api_integration/config/serverless/config.base.edr_workflows.ts index c6050198b44c0..92262da41937b 100644 --- a/x-pack/test/security_solution_api_integration/config/serverless/config.base.edr_workflows.ts +++ b/x-pack/test/security_solution_api_integration/config/serverless/config.base.edr_workflows.ts @@ -10,7 +10,7 @@ import { generateConfig } from '../ess/config.base.edr_workflows'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const serverlessTestsConfig = await readConfigFile( - require.resolve('../../../../test_serverless/shared/config.base.ts') + require.resolve('@kbn/test-suites-serverless/shared/config.base') ); return generateConfig({ diff --git a/x-pack/test/security_solution_api_integration/config/serverless/config.base.essentials.ts b/x-pack/test/security_solution_api_integration/config/serverless/config.base.essentials.ts index 3b4a220a1c0bc..7b4f5c2fdab70 100644 --- a/x-pack/test/security_solution_api_integration/config/serverless/config.base.essentials.ts +++ b/x-pack/test/security_solution_api_integration/config/serverless/config.base.essentials.ts @@ -16,7 +16,7 @@ import { services } from './services'; export function createTestConfig(options: CreateTestConfigOptions) { return async ({ readConfigFile }: FtrConfigProviderContext) => { const svlSharedConfig = await readConfigFile( - require.resolve('../../../../test_serverless/shared/config.base.ts') + require.resolve('@kbn/test-suites-serverless/shared/config.base') ); return { ...svlSharedConfig.getAll(), diff --git a/x-pack/test/security_solution_api_integration/config/serverless/config.base.ts b/x-pack/test/security_solution_api_integration/config/serverless/config.base.ts index 54f3e0c9b56ec..c2371984512e1 100644 --- a/x-pack/test/security_solution_api_integration/config/serverless/config.base.ts +++ b/x-pack/test/security_solution_api_integration/config/serverless/config.base.ts @@ -18,7 +18,7 @@ export interface CreateTestConfigOptions { export function createTestConfig(options: CreateTestConfigOptions) { return async ({ readConfigFile }: FtrConfigProviderContext) => { const svlSharedConfig = await readConfigFile( - require.resolve('../../../../test_serverless/shared/config.base.ts') + require.resolve('@kbn/test-suites-serverless/shared/config.base') ); return { ...svlSharedConfig.getAll(), diff --git a/x-pack/test/security_solution_api_integration/config/serverless/services.ts b/x-pack/test/security_solution_api_integration/config/serverless/services.ts index c57007f774541..61b6c484ced3d 100644 --- a/x-pack/test/security_solution_api_integration/config/serverless/services.ts +++ b/x-pack/test/security_solution_api_integration/config/serverless/services.ts @@ -5,9 +5,9 @@ * 2.0. */ +import { BsearchSecureService } from '@kbn/test-suites-serverless/shared/services/bsearch_secure'; +import { services as serverlessServices } from '@kbn/test-suites-serverless/api_integration/services'; import { SpacesServiceProvider } from '../../../common/services/spaces'; -import { BsearchSecureService } from '../../../../test_serverless/shared/services/bsearch_secure'; -import { services as serverlessServices } from '../../../../test_serverless/api_integration/services'; import { SecuritySolutionServerlessUtils } from '../services/security_solution_serverless_utils'; import { SecuritySolutionServerlessSuperTest } from '../services/security_solution_serverless_supertest'; diff --git a/x-pack/test/security_solution_api_integration/config/services/security_solution_serverless_utils.ts b/x-pack/test/security_solution_api_integration/config/services/security_solution_serverless_utils.ts index 87dbc5bda35df..848d963a68c76 100644 --- a/x-pack/test/security_solution_api_integration/config/services/security_solution_serverless_utils.ts +++ b/x-pack/test/security_solution_api_integration/config/services/security_solution_serverless_utils.ts @@ -7,7 +7,7 @@ import supertest from 'supertest'; import { format as formatUrl } from 'url'; -import { RoleCredentials } from '../../../../test_serverless/shared/services'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../ftr_provider_context'; import { SecuritySolutionUtils } from './types'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/users_and_roles.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/users_and_roles.ts index 01d8067fcc5c2..3bccaf4a00fe3 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/users_and_roles.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/utils/users_and_roles.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SecurityService } from '../../../../../../test/common/services/security/security'; +import { SecurityService } from '@kbn/test-suites-src/common/services/security/security'; export const usersAndRolesFactory = (security: SecurityService) => ({ createRole: async ({ name, privileges }: { name: string; privileges: any }) => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/host_details.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/host_details.ts index 37a11539bad09..6611e07e652d8 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/host_details.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/host_details.ts @@ -10,8 +10,8 @@ import { HostDetailsStrategyResponse, HostsQueries, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; import { hostDetailsFilebeatExpectedResult } from '../mocks/host_details'; export default function ({ getService }: FtrProviderContext) { diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/hosts.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/hosts.ts index bb370e3cfff5e..84add1afdca25 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/hosts.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/hosts.ts @@ -16,8 +16,8 @@ import { FirstLastSeenStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; const FROM = '2000-01-01T00:00:00.000Z'; const TO = '3000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/uncommon_processes.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/uncommon_processes.ts index 817031e00e603..659ff13d8ec92 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/uncommon_processes.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/hosts/trial_license_complete_tier/serverless/uncommon_processes.ts @@ -11,8 +11,8 @@ import { HostsQueries, HostsUncommonProcessesStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; const FROM = '2019-01-01T00:00:00.000Z'; const TO = '3000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_details.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_details.ts index 5d525eda9e075..251d1d7a1e390 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_details.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_details.ts @@ -10,8 +10,8 @@ import { NetworkDetailsStrategyResponse, NetworkQueries, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_dns.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_dns.ts index 92563051490b4..617febc72a4e1 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_dns.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_dns.ts @@ -14,8 +14,8 @@ import { NetworkDnsStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_top_n_flow.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_top_n_flow.ts index ad9c46961a73a..63e4d1041d148 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_top_n_flow.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/network_top_n_flow.ts @@ -15,8 +15,8 @@ import { NetworkTopNFlowStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; const EDGE_LENGTH = 10; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/tls.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/tls.ts index 0fa70646e5f58..b92ac100b417c 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/tls.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/network/trial_license_complete_tier/serverless/tls.ts @@ -14,8 +14,8 @@ import { NetworkTlsStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; const FROM = '2000-01-01T00:00:00.000Z'; const TO = '3000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/serverless/overview_host.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/serverless/overview_host.ts index 8e04cde6890ac..0d8ae5ee2a655 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/serverless/overview_host.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/serverless/overview_host.ts @@ -11,8 +11,8 @@ import { HostsQueries, HostsOverviewStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/serverless/overview_network.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/serverless/overview_network.ts index 457ca2d758790..ff4958aa69168 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/serverless/overview_network.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/overview/trial_license_complete_tier/serverless/overview_network.ts @@ -10,8 +10,8 @@ import { NetworkOverviewStrategyResponse, NetworkQueries, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; export default function ({ getService }: FtrProviderContext) { const esArchiver = getService('esArchiver'); diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/serverless/authentications.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/serverless/authentications.ts index 8fe2a346c1d62..f54b976583fca 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/serverless/authentications.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/serverless/authentications.ts @@ -14,8 +14,8 @@ import { } from '@kbn/security-solution-plugin/common/search_strategy'; import type { UserAuthenticationsRequestOptions } from '@kbn/security-solution-plugin/common/api/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; const FROM = '2000-01-01T00:00:00.000Z'; const TO = '3000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/serverless/users.ts b/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/serverless/users.ts index 4c39dedb11094..167ac1dbddae2 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/serverless/users.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/explore/users/trial_license_complete_tier/serverless/users.ts @@ -14,8 +14,8 @@ import { NetworkUsersStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; const FROM = '2000-01-01T00:00:00.000Z'; const TO = '3000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/serverless/events.ts b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/serverless/events.ts index 5238e24e9bb1b..0069a80697084 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/serverless/events.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/serverless/events.ts @@ -13,9 +13,9 @@ import { TimelineEventsQueries, TimelineEventsAllStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; import { getFieldsToRequest, getFilterValue } from '../../../../utils'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; const TO = '3000-01-01T00:00:00.000Z'; const FROM = '2000-01-01T00:00:00.000Z'; diff --git a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/serverless/timeline_details.ts b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/serverless/timeline_details.ts index 213c679deea3a..b1ee8c5daef37 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/serverless/timeline_details.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/investigation/timeline/trial_license_complete_tier/serverless/timeline_details.ts @@ -13,8 +13,8 @@ import { TimelineKpiStrategyResponse, } from '@kbn/security-solution-plugin/common/search_strategy'; +import { RoleCredentials } from '@kbn/test-suites-serverless/shared/services'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; -import { RoleCredentials } from '../../../../../../../test_serverless/shared/services'; import { timelineDetailsFilebeatExpectedResults as EXPECTED_DATA } from '../mocks/timeline_details'; // typical values that have to change after an update from "scripts/es_archiver" diff --git a/x-pack/test/security_solution_api_integration/tsconfig.json b/x-pack/test/security_solution_api_integration/tsconfig.json index a4b454cb27870..58651125c5068 100644 --- a/x-pack/test/security_solution_api_integration/tsconfig.json +++ b/x-pack/test/security_solution_api_integration/tsconfig.json @@ -13,7 +13,7 @@ "target/**/*" ], "kbn_references": [ - { "path": "../../test_serverless/tsconfig.json" }, + "@kbn/test-suites-serverless", { "path": "../../test_serverless/api_integration/**/*" }, { "path": "../../test_serverless/shared/**/*" }, { "path": "../../api_integration/services/**/*" }, @@ -47,5 +47,6 @@ "@kbn/timelines-plugin", "@kbn/dev-cli-runner", "@kbn/security-plugin", + "@kbn/test-suites-src", ] } diff --git a/x-pack/test/security_solution_cypress/config.ts b/x-pack/test/security_solution_cypress/config.ts index d79090807a344..1bed88858601d 100644 --- a/x-pack/test/security_solution_cypress/config.ts +++ b/x-pack/test/security_solution_cypress/config.ts @@ -11,7 +11,7 @@ import { CA_CERT_PATH } from '@kbn/dev-utils'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( require.resolve('../functional/config.base.js') diff --git a/x-pack/test/security_solution_cypress/serverless_config.ts b/x-pack/test/security_solution_cypress/serverless_config.ts index f3c8ef8a851af..c397eed4385f9 100644 --- a/x-pack/test/security_solution_cypress/serverless_config.ts +++ b/x-pack/test/security_solution_cypress/serverless_config.ts @@ -10,7 +10,7 @@ import { SecuritySolutionConfigurableCypressTestRunner } from './runner'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const svlSharedConfig = await readConfigFile( - require.resolve('../../test_serverless/shared/config.base.ts') + require.resolve('@kbn/test-suites-serverless/shared/config.base') ); return { diff --git a/x-pack/test/security_solution_endpoint/configs/serverless.endpoint.config.ts b/x-pack/test/security_solution_endpoint/configs/serverless.endpoint.config.ts index db90a134d41b7..4867cab58725d 100644 --- a/x-pack/test/security_solution_endpoint/configs/serverless.endpoint.config.ts +++ b/x-pack/test/security_solution_endpoint/configs/serverless.endpoint.config.ts @@ -15,7 +15,7 @@ export default async function (ftrConfigProviderContext: FtrConfigProviderContex const { readConfigFile } = ftrConfigProviderContext; const svlBaseConfig = await readConfigFile( - require.resolve('../../../test_serverless/shared/config.base.ts') + require.resolve('@kbn/test-suites-serverless/shared/config.base') ); return generateConfig({ diff --git a/x-pack/test/security_solution_endpoint/configs/serverless.integrations.config.ts b/x-pack/test/security_solution_endpoint/configs/serverless.integrations.config.ts index 0bed29d11d519..7489c969d1984 100644 --- a/x-pack/test/security_solution_endpoint/configs/serverless.integrations.config.ts +++ b/x-pack/test/security_solution_endpoint/configs/serverless.integrations.config.ts @@ -15,7 +15,7 @@ export default async function (ftrConfigProviderContext: FtrConfigProviderContex const { readConfigFile } = ftrConfigProviderContext; const svlBaseConfig = await readConfigFile( - require.resolve('../../../test_serverless/shared/config.base.ts') + require.resolve('@kbn/test-suites-serverless/shared/config.base') ); return generateConfig({ diff --git a/x-pack/test/spaces_api_integration/common/config.ts b/x-pack/test/spaces_api_integration/common/config.ts index 216292e3887e8..af659dbd9741c 100644 --- a/x-pack/test/spaces_api_integration/common/config.ts +++ b/x-pack/test/spaces_api_integration/common/config.ts @@ -24,7 +24,7 @@ export function createTestConfig(name: string, options: CreateTestConfigOptions) kibana: { api: await readConfigFile(path.resolve(REPO_ROOT, 'test/api_integration/config.js')), functional: await readConfigFile( - require.resolve('../../../../test/functional/config.base.js') + require.resolve('@kbn/test-suites-src/functional/config.base') ), }, xpack: { diff --git a/x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin/tsconfig.json b/x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin/tsconfig.json new file mode 100644 index 0000000000000..201ae6ddf08eb --- /dev/null +++ b/x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/threat_intelligence_cypress/config.ts b/x-pack/test/threat_intelligence_cypress/config.ts index 1f67d5cf069ef..963cfab55dad5 100644 --- a/x-pack/test/threat_intelligence_cypress/config.ts +++ b/x-pack/test/threat_intelligence_cypress/config.ts @@ -11,7 +11,7 @@ import { CA_CERT_PATH } from '@kbn/dev-utils'; export default async function ({ readConfigFile }: FtrConfigProviderContext) { const kibanaCommonTestsConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); const xpackFunctionalTestsConfig = await readConfigFile( require.resolve('../functional/config.base.js') diff --git a/x-pack/test/threat_intelligence_cypress/services.ts b/x-pack/test/threat_intelligence_cypress/services.ts index 5e063134081ad..272cf7eb8da4e 100644 --- a/x-pack/test/threat_intelligence_cypress/services.ts +++ b/x-pack/test/threat_intelligence_cypress/services.ts @@ -5,4 +5,4 @@ * 2.0. */ -export * from '../../../test/common/services'; +export * from '@kbn/test-suites-src/common/services'; diff --git a/x-pack/test/tsconfig.json b/x-pack/test/tsconfig.json index 887dff951e312..7fb0a50ef0f09 100644 --- a/x-pack/test/tsconfig.json +++ b/x-pack/test/tsconfig.json @@ -27,9 +27,7 @@ "security_solution_api_integration/**/*" ], "kbn_references": [ - { - "path": "../../test/tsconfig.json" - }, + "@kbn/test-suites-src", "@kbn/core", "@kbn/data-plugin", "@kbn/kibana-usage-collection-plugin", @@ -127,7 +125,6 @@ "@kbn/server-route-repository", "@kbn/core-http-common", "@kbn/lens-plugin", - "@kbn/notifications-plugin", "@kbn/logs-shared-plugin", "@kbn/telemetry-tools", "@kbn/profiling-plugin", @@ -177,6 +174,8 @@ "@kbn/securitysolution-endpoint-exceptions-common", "@kbn/entityManager-plugin", "@kbn/osquery-plugin", - "@kbn/entities-schema" + "@kbn/entities-schema", + "@kbn/actions-simulators-plugin", + "@kbn/cases-api-integration-test-plugin" ] } diff --git a/x-pack/test/ui_capabilities/common/plugins/foo_plugin/tsconfig.json b/x-pack/test/ui_capabilities/common/plugins/foo_plugin/tsconfig.json new file mode 100644 index 0000000000000..b308302331279 --- /dev/null +++ b/x-pack/test/ui_capabilities/common/plugins/foo_plugin/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "../../../../../../tsconfig.base.json", + "compilerOptions": { + "outDir": "target/types", + "isolatedModules": true + }, + "include": [ + "public/**/**/*", + "server/**/**/*", + "common/**/*", + ], + "kbn_references": [ + "@kbn/core", + "@kbn/features-plugin", + ], + "exclude": [ + "target/**/*", + ] +} diff --git a/x-pack/test/upgrade_assistant_integration/config.js b/x-pack/test/upgrade_assistant_integration/config.js index e1248c717b216..dbdf0ade8affe 100644 --- a/x-pack/test/upgrade_assistant_integration/config.js +++ b/x-pack/test/upgrade_assistant_integration/config.js @@ -8,13 +8,13 @@ export default async function ({ readConfigFile }) { // Read the Kibana API integration tests config file so that we can utilize its services. const kibanaAPITestsConfig = await readConfigFile( - require.resolve('../../../test/api_integration/config.js') + require.resolve('@kbn/test-suites-src/api_integration/config') ); const xPackFunctionalTestsConfig = await readConfigFile( require.resolve('../functional/config.base.js') ); const kibanaCommonConfig = await readConfigFile( - require.resolve('../../../test/common/config.js') + require.resolve('@kbn/test-suites-src/common/config') ); return { diff --git a/x-pack/test_serverless/api_integration/test_suites/common/telemetry/snapshot_telemetry.ts b/x-pack/test_serverless/api_integration/test_suites/common/telemetry/snapshot_telemetry.ts index 521c77ac95aa4..08a887e40cc73 100644 --- a/x-pack/test_serverless/api_integration/test_suites/common/telemetry/snapshot_telemetry.ts +++ b/x-pack/test_serverless/api_integration/test_suites/common/telemetry/snapshot_telemetry.ts @@ -12,9 +12,9 @@ import xpackRootTelemetrySchema from '@kbn/telemetry-collection-xpack-plugin/sch import ossPluginsTelemetrySchema from '@kbn/telemetry-plugin/schema/oss_plugins.json'; import xpackPluginsTelemetrySchema from '@kbn/telemetry-collection-xpack-plugin/schema/xpack_plugins.json'; import { assertTelemetryPayload } from '@kbn/telemetry-tools'; +import type { UsageStatsPayloadTestFriendly } from '@kbn/test-suites-xpack/api_integration/services/usage_api'; import type { RoleCredentials } from '../../../../shared/services'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import type { UsageStatsPayloadTestFriendly } from '../../../../../test/api_integration/services/usage_api'; export default function ({ getService }: FtrProviderContext) { const usageApi = getService('usageAPI'); diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v1.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v1.ts index b3c346b4371e9..441ffbc5b8d76 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v1.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v1.ts @@ -7,8 +7,8 @@ import expect from '@kbn/expect'; import type { GetBenchmarkResponse } from '@kbn/cloud-security-posture-plugin/common/types/latest'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; +import { createPackagePolicy } from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/helper'; import { FtrProviderContext } from '../../../../ftr_provider_context'; -import { createPackagePolicy } from '../../../../../../test/api_integration/apis/cloud_security_posture/helper'; // eslint-disable-line @kbn/imports/no_boundary_crossing import { RoleCredentials } from '../../../../../shared/services'; export default function ({ getService }: FtrProviderContext) { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v2.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v2.ts index 0f1aabc167164..6c183f3679824 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v2.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/benchmark/v2.ts @@ -7,8 +7,8 @@ import expect from '@kbn/expect'; import type { GetBenchmarkResponse } from '@kbn/cloud-security-posture-plugin/common/types/latest'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; +import { createPackagePolicy } from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/helper'; import { FtrProviderContext } from '../../../../ftr_provider_context'; -import { createPackagePolicy } from '../../../../../../test/api_integration/apis/cloud_security_posture/helper'; // eslint-disable-line @kbn/imports/no_boundary_crossing import { RoleCredentials } from '../../../../../shared/services'; export default function ({ getService }: FtrProviderContext) { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/find_csp_benchmark_rule.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/find_csp_benchmark_rule.ts index 59625b26f2c9a..b03ba641ddd10 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/find_csp_benchmark_rule.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/find_csp_benchmark_rule.ts @@ -11,8 +11,8 @@ import type { FindCspBenchmarkRuleResponse, } from '@kbn/cloud-security-posture-plugin/common/types/latest'; +import { createPackagePolicy } from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/helper'; import { FtrProviderContext } from '../../../ftr_provider_context'; -import { createPackagePolicy } from '../../../../../test/api_integration/apis/cloud_security_posture/helper'; // eslint-disable-line @kbn/imports/no_boundary_crossing import { RoleCredentials } from '../../../../shared/services'; export default function ({ getService }: FtrProviderContext) { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts index 49c223c8d1424..e5c7b5d4efefa 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/serverless_metering/cloud_security_metering.ts @@ -11,16 +11,16 @@ import { LATEST_VULNERABILITIES_INDEX_DEFAULT_NS, } from '@kbn/cloud-security-posture-plugin/common/constants'; import * as http from 'http'; -import { RoleCredentials } from '../../../../../shared/services'; -import { getMockFindings, getMockDefendForContainersHeartbeats } from './mock_data'; // eslint-disable-line @kbn/imports/no_boundary_crossing -import type { FtrProviderContext } from '../../../../ftr_provider_context'; import { deleteIndex, addIndex, createPackagePolicy, createCloudDefendPackagePolicy, -} from '../../../../../../test/api_integration/apis/cloud_security_posture/helper'; // eslint-disable-line @kbn/imports/no_boundary_crossing -import { UsageRecord, getInterceptedRequestPayload, setupMockServer } from './mock_usage_server'; // eslint-disable-line @kbn/imports/no_boundary_crossing +} from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/helper'; +import { RoleCredentials } from '../../../../../shared/services'; +import { getMockFindings, getMockDefendForContainersHeartbeats } from './mock_data'; +import type { FtrProviderContext } from '../../../../ftr_provider_context'; +import { UsageRecord, getInterceptedRequestPayload, setupMockServer } from './mock_usage_server'; const CLOUD_DEFEND_HEARTBEAT_INDEX_DEFAULT_NS = 'metrics-cloud_defend.heartbeat-default'; diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts index 7da3626ef7955..1b44c42ecb22e 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexed.ts @@ -13,16 +13,16 @@ import { LATEST_VULNERABILITIES_INDEX_DEFAULT_NS, VULNERABILITIES_INDEX_DEFAULT_NS, } from '@kbn/cloud-security-posture-plugin/common/constants'; -import { FtrProviderContext } from '../../../../ftr_provider_context'; import { deleteIndex, addIndex, createPackagePolicy, -} from '../../../../../../test/api_integration/apis/cloud_security_posture/helper'; // eslint-disable-line @kbn/imports/no_boundary_crossing +} from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/helper'; import { findingsMockData, vulnerabilityMockData, -} from '../../../../../../test/api_integration/apis/cloud_security_posture/mock_data'; // eslint-disable-line @kbn/imports/no_boundary_crossing +} from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/mock_data'; +import { FtrProviderContext } from '../../../../ftr_provider_context'; import { RoleCredentials } from '../../../../../shared/services'; const INDEX_ARRAY = [ diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing.ts index fde10414fc4a1..4e81938a597e9 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_indexing.ts @@ -13,16 +13,16 @@ import { LATEST_VULNERABILITIES_INDEX_DEFAULT_NS, VULNERABILITIES_INDEX_DEFAULT_NS, } from '@kbn/cloud-security-posture-plugin/common/constants'; -import { FtrProviderContext } from '../../../../ftr_provider_context'; import { deleteIndex, addIndex, createPackagePolicy, -} from '../../../../../../test/api_integration/apis/cloud_security_posture/helper'; // eslint-disable-line @kbn/imports/no_boundary_crossing +} from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/helper'; import { findingsMockData, vulnerabilityMockData, -} from '../../../../../../test/api_integration/apis/cloud_security_posture/mock_data'; // eslint-disable-line @kbn/imports/no_boundary_crossing +} from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/mock_data'; +import { FtrProviderContext } from '../../../../ftr_provider_context'; import { RoleCredentials } from '../../../../../shared/services'; const INDEX_ARRAY = [ diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_not_deployed_not_installed.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_not_deployed_not_installed.ts index 948609bc3905d..eb7b6f4424c0d 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_not_deployed_not_installed.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/status/status_not_deployed_not_installed.ts @@ -7,8 +7,8 @@ import expect from '@kbn/expect'; import type { CspSetupStatus } from '@kbn/cloud-security-posture-plugin/common/types_old'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; +import { createPackagePolicy } from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/helper'; import { FtrProviderContext } from '../../../../ftr_provider_context'; -import { createPackagePolicy } from '../../../../../../test/api_integration/apis/cloud_security_posture/helper'; // eslint-disable-line @kbn/imports/no_boundary_crossing import { RoleCredentials } from '../../../../../shared/services'; export default function (providerContext: FtrProviderContext) { diff --git a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/telemetry.ts b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/telemetry.ts index 48ce5ea9e91cf..837a9a7e6ba93 100644 --- a/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/telemetry.ts +++ b/x-pack/test_serverless/api_integration/test_suites/security/cloud_security_posture/telemetry.ts @@ -8,12 +8,12 @@ import expect from '@kbn/expect'; import type { Agent as SuperTestAgent } from 'supertest'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; -import type { FtrProviderContext } from '../../../ftr_provider_context'; import { data as telemetryMockData, MockTelemetryFindings, -} from '../../../../../test/cloud_security_posture_api/telemetry/data'; // eslint-disable-line @kbn/imports/no_boundary_crossing -import { createPackagePolicy } from '../../../../../test/api_integration/apis/cloud_security_posture/helper'; // eslint-disable-line @kbn/imports/no_boundary_crossing +} from '@kbn/test-suites-xpack/cloud_security_posture_api/telemetry/data'; +import { createPackagePolicy } from '@kbn/test-suites-xpack/api_integration/apis/cloud_security_posture/helper'; +import type { FtrProviderContext } from '../../../ftr_provider_context'; import { RoleCredentials } from '../../../../shared/services'; const FINDINGS_INDEX = 'logs-cloud_security_posture.findings_latest-default'; diff --git a/x-pack/test_serverless/functional/page_objects/index.ts b/x-pack/test_serverless/functional/page_objects/index.ts index 94e02f9c5e455..0193cadfa13c7 100644 --- a/x-pack/test_serverless/functional/page_objects/index.ts +++ b/x-pack/test_serverless/functional/page_objects/index.ts @@ -5,10 +5,9 @@ * 2.0. */ -// eslint-disable-next-line @kbn/imports/no_boundary_crossing -import { pageObjects as xpackFunctionalPageObjects } from '../../../test/functional/page_objects'; -// eslint-disable-next-line @kbn/imports/no_boundary_crossing -import { cloudSecurityPosturePageObjects } from '../../../test/cloud_security_posture_functional/page_objects'; +import { pageObjects as xpackFunctionalPageObjects } from '@kbn/test-suites-xpack/functional/page_objects'; + +import { cloudSecurityPosturePageObjects } from '@kbn/test-suites-xpack/cloud_security_posture_functional/page_objects'; import { SvlCommonPageProvider } from './svl_common_page'; import { SvlCommonNavigationProvider } from './svl_common_navigation'; import { SvlObltOnboardingPageProvider } from './svl_oblt_onboarding_page'; diff --git a/x-pack/test_serverless/functional/page_objects/svl_common_navigation.ts b/x-pack/test_serverless/functional/page_objects/svl_common_navigation.ts index df1bc637a052f..d54f58cd2f8ec 100644 --- a/x-pack/test_serverless/functional/page_objects/svl_common_navigation.ts +++ b/x-pack/test_serverless/functional/page_objects/svl_common_navigation.ts @@ -17,6 +17,7 @@ import type { NavigationID as DevNavId } from '@kbn/default-nav-devtools'; type NavigationId = MlNavId | AlNavId | MgmtNavId | DevNavId | string; import type { WebElementWrapper } from '@kbn/ftr-common-functional-ui-services'; +import { NavigationalSearchPageObject } from '@kbn/test-suites-xpack/functional/page_objects/navigational_search'; import type { FtrProviderContext } from '../ftr_provider_context'; const getSectionIdTestSubj = (sectionId: NavigationId) => `~nav-item-${sectionId}`; @@ -335,8 +336,6 @@ export function SvlCommonNavigationProvider(ctx: FtrProviderContext) { }; } -// eslint-disable-next-line @kbn/imports/no_boundary_crossing -import { NavigationalSearchPageObject } from '../../../test/functional/page_objects/navigational_search'; class SvlNavigationSearchPageObject extends NavigationalSearchPageObject { constructor(ctx: FtrProviderContext) { // @ts-expect-error -- this expects FtrProviderContext from x-pack/test/functional/ftr_provider_context.ts diff --git a/x-pack/test_serverless/functional/services/deployment_agnostic_services.ts b/x-pack/test_serverless/functional/services/deployment_agnostic_services.ts index f710dca081668..314ecf93fb7be 100644 --- a/x-pack/test_serverless/functional/services/deployment_agnostic_services.ts +++ b/x-pack/test_serverless/functional/services/deployment_agnostic_services.ts @@ -6,8 +6,8 @@ */ import _ from 'lodash'; -// eslint-disable-next-line @kbn/imports/no_boundary_crossing -import { services as functionalServices } from '../../../test/functional/services'; + +import { services as functionalServices } from '@kbn/test-suites-xpack/functional/services'; import { services as deploymentAgnosticSharedServices } from '../../shared/services/deployment_agnostic_services'; /* diff --git a/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover_histogram.ts b/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover_histogram.ts index eb45495bf2522..3dee750f1d386 100644 --- a/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover_histogram.ts +++ b/x-pack/test_serverless/functional/test_suites/common/discover/group1/_discover_histogram.ts @@ -6,7 +6,7 @@ */ import expect from '@kbn/expect'; -import type { TimeStrings } from '../../../../../../../test/functional/page_objects/common_page'; +import type { TimeStrings } from '@kbn/test-suites-src/functional/page_objects/common_page'; import { FtrProviderContext } from '../../../../ftr_provider_context'; export default function ({ getService, getPageObjects }: FtrProviderContext) { diff --git a/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts b/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts index 2604e2f916686..b6eeef5a70f90 100644 --- a/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts +++ b/x-pack/test_serverless/functional/test_suites/common/visualizations/group1/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { EsArchiver } from '@kbn/es-archiver'; +import type { EsArchiver } from '@kbn/es-archiver'; import { FtrProviderContext } from '../../../../ftr_provider_context'; export default ({ getService, loadTestFile, getPageObjects }: FtrProviderContext) => { diff --git a/x-pack/test_serverless/kibana.jsonc b/x-pack/test_serverless/kibana.jsonc new file mode 100644 index 0000000000000..360a8efe48141 --- /dev/null +++ b/x-pack/test_serverless/kibana.jsonc @@ -0,0 +1,6 @@ +{ + "type": "test-helper", + "id": "@kbn/test-suites-serverless", + "owner": "@elastic/appex-qa", + "devOnly": true +} diff --git a/x-pack/test_serverless/shared/services/deployment_agnostic_services.ts b/x-pack/test_serverless/shared/services/deployment_agnostic_services.ts index 34e6b7d5facd5..97a5963bd9e3b 100644 --- a/x-pack/test_serverless/shared/services/deployment_agnostic_services.ts +++ b/x-pack/test_serverless/shared/services/deployment_agnostic_services.ts @@ -6,8 +6,8 @@ */ import _ from 'lodash'; -// eslint-disable-next-line @kbn/imports/no_boundary_crossing -import { services as apiIntegrationServices } from '../../../test/api_integration/services'; + +import { services as apiIntegrationServices } from '@kbn/test-suites-xpack/api_integration/services'; /* * Some FTR services from api integration stateful tests are compatible with serverless environment diff --git a/x-pack/test_serverless/tsconfig.json b/x-pack/test_serverless/tsconfig.json index d5fb5a12f9b1d..3ad0d679d126a 100644 --- a/x-pack/test_serverless/tsconfig.json +++ b/x-pack/test_serverless/tsconfig.json @@ -2,10 +2,6 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", - "rootDirs": [ - ".", - "../test" - ], "types": [ "node", "@kbn/ambient-ftr-types", @@ -27,9 +23,7 @@ "*/*/packages/**/*", ], "kbn_references": [ - { - "path": "../test/tsconfig.json" - }, + "@kbn/test-suites-xpack", "@kbn/expect", "@kbn/test", "@kbn/repo-info", @@ -105,5 +99,6 @@ "@kbn/features-plugin", "@kbn/observability-ai-assistant-plugin", "@kbn/ml-trained-models-utils", + "@kbn/test-suites-src", ] } diff --git a/yarn.lock b/yarn.lock index b045ebd2e3ab0..46bdb9e62206d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3421,6 +3421,10 @@ version "0.0.0" uid "" +"@kbn/apm-ftr-e2e@link:x-pack/plugins/observability_solution/apm/ftr_e2e": + version "0.0.0" + uid "" + "@kbn/apm-plugin@link:x-pack/plugins/observability_solution/apm": version "0.0.0" uid "" @@ -5741,6 +5745,10 @@ version "0.0.0" uid "" +"@kbn/observability-onboarding-e2e@link:x-pack/plugins/observability_solution/observability_onboarding/e2e": + version "0.0.0" + uid "" + "@kbn/observability-onboarding-plugin@link:x-pack/plugins/observability_solution/observability_onboarding": version "0.0.0" uid "" @@ -6341,6 +6349,10 @@ version "0.0.0" uid "" +"@kbn/server-route-repository-utils@link:packages/kbn-server-route-repository-utils": + version "0.0.0" + uid "" + "@kbn/server-route-repository@link:packages/kbn-server-route-repository": version "0.0.0" uid "" @@ -6677,6 +6689,10 @@ version "0.0.0" uid "" +"@kbn/synthetics-e2e@link:x-pack/plugins/observability_solution/synthetics/e2e": + version "0.0.0" + uid "" + "@kbn/synthetics-plugin@link:x-pack/plugins/observability_solution/synthetics": version "0.0.0" uid "" @@ -6733,6 +6749,22 @@ version "0.0.0" uid "" +"@kbn/test-suites-serverless@link:x-pack/test_serverless": + version "0.0.0" + uid "" + +"@kbn/test-suites-src@link:test": + version "0.0.0" + uid "" + +"@kbn/test-suites-xpack-performance@link:x-pack/performance": + version "0.0.0" + uid "" + +"@kbn/test-suites-xpack@link:x-pack/test": + version "0.0.0" + uid "" + "@kbn/test@link:packages/kbn-test": version "0.0.0" uid ""