diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4041599f65bbe..2577ff842df77 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -864,6 +864,7 @@ x-pack/packages/security/role_management_model @elastic/kibana-security x-pack/packages/security/ui_components @elastic/kibana-security x-pack/performance @elastic/appex-qa x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities +x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities x-pack/plugins/actions @elastic/response-ops x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra x-pack/plugins/ai_infra/product_doc_base @elastic/appex-ai-infra @@ -894,7 +895,6 @@ x-pack/plugins/elastic_assistant @elastic/security-generative-ai x-pack/plugins/embeddable_enhanced @elastic/kibana-presentation x-pack/plugins/encrypted_saved_objects @elastic/kibana-security x-pack/plugins/enterprise_search @elastic/search-kibana -x-pack/plugins/entity_manager @elastic/obs-entities x-pack/plugins/event_log @elastic/response-ops x-pack/plugins/features @elastic/kibana-core x-pack/plugins/fields_metadata @elastic/obs-ux-logs-team diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index d5f4b92978c90..0baaf75b79493 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -579,7 +579,7 @@ security and spaces filtering. |Exposes services to access entities data. -|{kib-repo}blob/{branch}/x-pack/plugins/entity_manager/README.md[entityManager] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/entity_manager/README.md[entityManager] |This plugin provides access to observed entity data, such as information about hosts, pods, containers, services, and more. diff --git a/package.json b/package.json index 63f606cce697e..c32e875489aba 100644 --- a/package.json +++ b/package.json @@ -481,7 +481,7 @@ "@kbn/entities-schema": "link:x-pack/platform/packages/shared/kbn-entities-schema", "@kbn/entity-manager-fixture-plugin": "link:x-pack/test/api_integration/apis/entity_manager/fixture_plugin", "@kbn/entityManager-app-plugin": "link:x-pack/solutions/observability/plugins/observability_solution/entity_manager_app", - "@kbn/entityManager-plugin": "link:x-pack/plugins/entity_manager", + "@kbn/entityManager-plugin": "link:x-pack/platform/plugins/shared/entity_manager", "@kbn/error-boundary-example-plugin": "link:examples/error_boundary", "@kbn/es-errors": "link:packages/kbn-es-errors", "@kbn/es-query": "link:packages/kbn-es-query", diff --git a/tsconfig.base.json b/tsconfig.base.json index 590719fd4fa08..de0d8a384222a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -830,8 +830,8 @@ "@kbn/entity-manager-fixture-plugin/*": ["x-pack/test/api_integration/apis/entity_manager/fixture_plugin/*"], "@kbn/entityManager-app-plugin": ["x-pack/solutions/observability/plugins/observability_solution/entity_manager_app"], "@kbn/entityManager-app-plugin/*": ["x-pack/solutions/observability/plugins/observability_solution/entity_manager_app/*"], - "@kbn/entityManager-plugin": ["x-pack/plugins/entity_manager"], - "@kbn/entityManager-plugin/*": ["x-pack/plugins/entity_manager/*"], + "@kbn/entityManager-plugin": ["x-pack/platform/plugins/shared/entity_manager"], + "@kbn/entityManager-plugin/*": ["x-pack/platform/plugins/shared/entity_manager/*"], "@kbn/error-boundary-example-plugin": ["examples/error_boundary"], "@kbn/error-boundary-example-plugin/*": ["examples/error_boundary/*"], "@kbn/es": ["packages/kbn-es"], diff --git a/x-pack/plugins/entity_manager/README.md b/x-pack/platform/plugins/shared/entity_manager/README.md similarity index 100% rename from x-pack/plugins/entity_manager/README.md rename to x-pack/platform/plugins/shared/entity_manager/README.md diff --git a/x-pack/plugins/entity_manager/common/config.ts b/x-pack/platform/plugins/shared/entity_manager/common/config.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/config.ts rename to x-pack/platform/plugins/shared/entity_manager/common/config.ts diff --git a/x-pack/plugins/entity_manager/common/constants_entities.ts b/x-pack/platform/plugins/shared/entity_manager/common/constants_entities.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/constants_entities.ts rename to x-pack/platform/plugins/shared/entity_manager/common/constants_entities.ts diff --git a/x-pack/plugins/entity_manager/common/debug_log.ts b/x-pack/platform/plugins/shared/entity_manager/common/debug_log.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/debug_log.ts rename to x-pack/platform/plugins/shared/entity_manager/common/debug_log.ts diff --git a/x-pack/plugins/entity_manager/common/errors.ts b/x-pack/platform/plugins/shared/entity_manager/common/errors.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/errors.ts rename to x-pack/platform/plugins/shared/entity_manager/common/errors.ts diff --git a/x-pack/plugins/entity_manager/common/types_api.ts b/x-pack/platform/plugins/shared/entity_manager/common/types_api.ts similarity index 100% rename from x-pack/plugins/entity_manager/common/types_api.ts rename to x-pack/platform/plugins/shared/entity_manager/common/types_api.ts diff --git a/x-pack/plugins/entity_manager/docs/entity_definitions.md b/x-pack/platform/plugins/shared/entity_manager/docs/entity_definitions.md similarity index 100% rename from x-pack/plugins/entity_manager/docs/entity_definitions.md rename to x-pack/platform/plugins/shared/entity_manager/docs/entity_definitions.md diff --git a/x-pack/plugins/entity_manager/jest.config.js b/x-pack/platform/plugins/shared/entity_manager/jest.config.js similarity index 63% rename from x-pack/plugins/entity_manager/jest.config.js rename to x-pack/platform/plugins/shared/entity_manager/jest.config.js index 615d1c851895b..9fd8f3bf5b9a4 100644 --- a/x-pack/plugins/entity_manager/jest.config.js +++ b/x-pack/platform/plugins/shared/entity_manager/jest.config.js @@ -7,11 +7,11 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/entity_manager'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/entity_manager', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/entity_manager'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/entity_manager', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/entity_manager/{common,public,server}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/shared/entity_manager/{common,public,server}/**/*.{js,ts,tsx}', ], }; diff --git a/x-pack/plugins/entity_manager/kibana.jsonc b/x-pack/platform/plugins/shared/entity_manager/kibana.jsonc similarity index 100% rename from x-pack/plugins/entity_manager/kibana.jsonc rename to x-pack/platform/plugins/shared/entity_manager/kibana.jsonc diff --git a/x-pack/plugins/entity_manager/public/index.ts b/x-pack/platform/plugins/shared/entity_manager/public/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/index.ts rename to x-pack/platform/plugins/shared/entity_manager/public/index.ts diff --git a/x-pack/plugins/entity_manager/public/lib/entity_client.test.ts b/x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/lib/entity_client.test.ts rename to x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.test.ts diff --git a/x-pack/plugins/entity_manager/public/lib/entity_client.ts b/x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/lib/entity_client.ts rename to x-pack/platform/plugins/shared/entity_manager/public/lib/entity_client.ts diff --git a/x-pack/plugins/entity_manager/public/lib/errors.ts b/x-pack/platform/plugins/shared/entity_manager/public/lib/errors.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/lib/errors.ts rename to x-pack/platform/plugins/shared/entity_manager/public/lib/errors.ts diff --git a/x-pack/plugins/entity_manager/public/plugin.ts b/x-pack/platform/plugins/shared/entity_manager/public/plugin.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/plugin.ts rename to x-pack/platform/plugins/shared/entity_manager/public/plugin.ts diff --git a/x-pack/plugins/entity_manager/public/types.ts b/x-pack/platform/plugins/shared/entity_manager/public/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/public/types.ts rename to x-pack/platform/plugins/shared/entity_manager/public/types.ts diff --git a/x-pack/plugins/entity_manager/server/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/auth/api_key/api_key.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/auth/api_key/api_key.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/auth/api_key/api_key.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/auth/api_key/api_key.ts diff --git a/x-pack/plugins/entity_manager/server/lib/auth/api_key/saved_object.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/auth/api_key/saved_object.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/auth/api_key/saved_object.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/auth/api_key/saved_object.ts diff --git a/x-pack/plugins/entity_manager/server/lib/auth/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/auth/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/auth/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/auth/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/auth/privileges.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/auth/privileges.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/auth/privileges.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/auth/privileges.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/constants.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/constants.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/constants.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/constants.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/containers_from_ecs_data.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/hosts_from_ecs_data.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_index_patterns.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/ecs_metadata.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/global_metadata.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_index_patterns.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/common/otel_metadata.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cluster.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/cron_job.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/daemon_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/deployment.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/job.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/node.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/pod.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/replica_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/service.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/ecs/stateful_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cluster.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/cron_job.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/daemon_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/deployment.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/job.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/node.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/pod.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/replica_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/kubernetes/semconv/stateful_set.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/built_in/services_from_ecs_data.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/create_and_install_ingest_pipeline.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/create_and_install_transform.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/create_and_install_transform.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/create_and_install_transform.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/create_and_install_transform.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/delete_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/delete_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/delete_index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/delete_index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/delete_ingest_pipeline.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_ingest_pipeline.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/delete_ingest_pipeline.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_ingest_pipeline.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/delete_transforms.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_transforms.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/delete_transforms.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/delete_transforms.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_definition_id_invalid.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_definition_update_conflict.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_id_conflict_error.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_not_found.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_not_found.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_not_found.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_not_found.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/entity_security_exception.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_security_exception.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/entity_security_exception.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/entity_security_exception.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/errors/invalid_transform_error.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/invalid_transform_error.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/errors/invalid_transform_error.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/errors/invalid_transform_error.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/find_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/find_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/find_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/find_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/builtin_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/fixtures/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/fixtures/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/generate_component_id.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/generate_component_id.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/generate_component_id.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/generate_component_id.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/get_elasticsearch_query_or_throw.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/ingest_pipeline_script_processor_helpers.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/merge_definition_update.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/merge_definition_update.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/merge_definition_update.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/merge_definition_update.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/helpers/retry.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/retry.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/helpers/retry.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/helpers/retry.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap diff --git a/x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/ingest_pipeline/generate_latest_processors.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/install_entity_definition.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/install_entity_definition.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/install_entity_definition.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/install_entity_definition.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/install_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/install_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/install_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/install_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/read_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/read_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/read_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/read_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/save_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/save_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/save_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/save_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/start_transforms.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/start_transforms.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/start_transforms.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/start_transforms.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/stop_transforms.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/stop_transforms.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/stop_transforms.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/stop_transforms.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/__snapshots__/entities_latest_template.test.ts.snap diff --git a/x-pack/plugins/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/entities_latest_template.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/templates/entities_latest_template.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/entities_latest_template.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/templates/entities_latest_template.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/templates/entities_latest_template.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/__snapshots__/generate_latest_transform.test.ts.snap diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_identity_aggregations.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_latest_transform.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_latest_transform.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metadata_aggregations.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_metric_aggregations.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/validate_transform_ids.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/transform/validate_transform_ids.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/validate_transform_ids.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/transform/validate_transform_ids.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/validate_transform_ids.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/types.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/types.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/types.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/uninstall_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/uninstall_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/uninstall_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/uninstall_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entities/upgrade_entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/upgrade_entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entities/upgrade_entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entities/upgrade_entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/entity_client.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/entity_client.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/entity_client.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/entity_client.ts diff --git a/x-pack/plugins/entity_manager/server/lib/manage_index_templates.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/manage_index_templates.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/manage_index_templates.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/manage_index_templates.ts diff --git a/x-pack/plugins/entity_manager/server/lib/utils.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/utils.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/utils.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/utils.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/constants.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/constants.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/constants.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/constants.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/definitions/source_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/source_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/definitions/source_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/source_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/definitions/type_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/type_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/definitions/type_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/type_definition.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/entity_client.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/entity_client.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/entity_client.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/entity_client.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/errors/entity_definition_conflict.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/errors/unknown_entity_type.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/errors/unknown_entity_type.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/errors/unknown_entity_type.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/errors/unknown_entity_type.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/queries/index.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/index.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/queries/index.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/index.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/queries/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/queries/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/index.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/queries/utils.test.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/utils.test.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/queries/utils.test.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/utils.test.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/queries/utils.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/utils.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/queries/utils.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/queries/utils.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/run_esql_query.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/run_esql_query.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/run_esql_query.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/run_esql_query.ts diff --git a/x-pack/plugins/entity_manager/server/lib/v2/types.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/v2/types.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/v2/types.ts diff --git a/x-pack/plugins/entity_manager/server/lib/validators/validate_date_range.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/validators/validate_date_range.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/validators/validate_date_range.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/validators/validate_date_range.ts diff --git a/x-pack/plugins/entity_manager/server/lib/validators/validation_error.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/validators/validation_error.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/lib/validators/validation_error.ts rename to x-pack/platform/plugins/shared/entity_manager/server/lib/validators/validation_error.ts diff --git a/x-pack/plugins/entity_manager/server/plugin.ts b/x-pack/platform/plugins/shared/entity_manager/server/plugin.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/plugin.ts rename to x-pack/platform/plugins/shared/entity_manager/server/plugin.ts diff --git a/x-pack/plugins/entity_manager/server/routes/create_entity_manager_server_route.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/create_entity_manager_server_route.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/create_entity_manager_server_route.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/create_entity_manager_server_route.ts diff --git a/x-pack/plugins/entity_manager/server/routes/enablement/check.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/check.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/enablement/check.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/check.ts diff --git a/x-pack/plugins/entity_manager/server/routes/enablement/disable.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/disable.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/enablement/disable.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/disable.ts diff --git a/x-pack/plugins/entity_manager/server/routes/enablement/enable.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/enable.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/enablement/enable.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/enable.ts diff --git a/x-pack/plugins/entity_manager/server/routes/enablement/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/enablement/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/enablement/index.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/create.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/create.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/create.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/create.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/delete.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/delete.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/delete.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/delete.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/get.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/get.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/get.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/get.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/index.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/reset.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/reset.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/reset.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/reset.ts diff --git a/x-pack/plugins/entity_manager/server/routes/entities/update.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/entities/update.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/entities/update.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/entities/update.ts diff --git a/x-pack/plugins/entity_manager/server/routes/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/index.ts diff --git a/x-pack/plugins/entity_manager/server/routes/types.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/types.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/types.ts diff --git a/x-pack/plugins/entity_manager/server/routes/v2/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/v2/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/v2/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/v2/index.ts diff --git a/x-pack/plugins/entity_manager/server/routes/v2/search.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/v2/search.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/v2/search.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/v2/search.ts diff --git a/x-pack/plugins/entity_manager/server/routes/v2/source_definition_routes.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/v2/source_definition_routes.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/v2/source_definition_routes.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/v2/source_definition_routes.ts diff --git a/x-pack/plugins/entity_manager/server/routes/v2/type_definition_routes.ts b/x-pack/platform/plugins/shared/entity_manager/server/routes/v2/type_definition_routes.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/routes/v2/type_definition_routes.ts rename to x-pack/platform/plugins/shared/entity_manager/server/routes/v2/type_definition_routes.ts diff --git a/x-pack/plugins/entity_manager/server/saved_objects/entity_definition.ts b/x-pack/platform/plugins/shared/entity_manager/server/saved_objects/entity_definition.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/saved_objects/entity_definition.ts rename to x-pack/platform/plugins/shared/entity_manager/server/saved_objects/entity_definition.ts diff --git a/x-pack/plugins/entity_manager/server/saved_objects/entity_discovery_api_key.ts b/x-pack/platform/plugins/shared/entity_manager/server/saved_objects/entity_discovery_api_key.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/saved_objects/entity_discovery_api_key.ts rename to x-pack/platform/plugins/shared/entity_manager/server/saved_objects/entity_discovery_api_key.ts diff --git a/x-pack/plugins/entity_manager/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/entity_manager/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/entity_manager/server/saved_objects/index.ts diff --git a/x-pack/plugins/entity_manager/server/templates/components/base_latest.ts b/x-pack/platform/plugins/shared/entity_manager/server/templates/components/base_latest.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/templates/components/base_latest.ts rename to x-pack/platform/plugins/shared/entity_manager/server/templates/components/base_latest.ts diff --git a/x-pack/plugins/entity_manager/server/templates/components/entity.ts b/x-pack/platform/plugins/shared/entity_manager/server/templates/components/entity.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/templates/components/entity.ts rename to x-pack/platform/plugins/shared/entity_manager/server/templates/components/entity.ts diff --git a/x-pack/plugins/entity_manager/server/templates/components/event.ts b/x-pack/platform/plugins/shared/entity_manager/server/templates/components/event.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/templates/components/event.ts rename to x-pack/platform/plugins/shared/entity_manager/server/templates/components/event.ts diff --git a/x-pack/plugins/entity_manager/server/types.ts b/x-pack/platform/plugins/shared/entity_manager/server/types.ts similarity index 100% rename from x-pack/plugins/entity_manager/server/types.ts rename to x-pack/platform/plugins/shared/entity_manager/server/types.ts diff --git a/x-pack/plugins/entity_manager/tsconfig.json b/x-pack/platform/plugins/shared/entity_manager/tsconfig.json similarity index 91% rename from x-pack/plugins/entity_manager/tsconfig.json rename to x-pack/platform/plugins/shared/entity_manager/tsconfig.json index 4c75ac101f6ad..beb8097502b2b 100644 --- a/x-pack/plugins/entity_manager/tsconfig.json +++ b/x-pack/platform/plugins/shared/entity_manager/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../typings/**/*", + "../../../../../typings/**/*", "common/**/*", "server/**/*", "public/**/*", diff --git a/yarn.lock b/yarn.lock index e19b141835b6f..7fe1424cda3cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5476,7 +5476,7 @@ version "0.0.0" uid "" -"@kbn/entityManager-plugin@link:x-pack/plugins/entity_manager": +"@kbn/entityManager-plugin@link:x-pack/platform/plugins/shared/entity_manager": version "0.0.0" uid ""