From 2686c3cbc7ca05019c7e54869243be020cf88422 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 15:54:18 +0200 Subject: [PATCH 01/20] move all of the files --- {x-pack => src}/plugins/files/.i18nrc.json | 0 {x-pack => src}/plugins/files/.storybook/main.ts | 0 {x-pack => src}/plugins/files/.storybook/manager.ts | 0 {x-pack => src}/plugins/files/README.md | 0 {x-pack => src}/plugins/files/common/api_routes.ts | 0 {x-pack => src}/plugins/files/common/constants.ts | 0 {x-pack => src}/plugins/files/common/file_kinds_registry/index.ts | 0 {x-pack => src}/plugins/files/common/index.ts | 0 {x-pack => src}/plugins/files/common/types.ts | 0 {x-pack => src}/plugins/files/docs/tutorial.mdx | 0 {x-pack => src}/plugins/files/jest.config.js | 0 {x-pack => src}/plugins/files/jest.integration.config.js | 0 {x-pack => src}/plugins/files/kibana.json | 0 {x-pack => src}/plugins/files/public/components/context.tsx | 0 .../components/file_picker/components/clear_filter_button.tsx | 0 .../public/components/file_picker/components/error_content.tsx | 0 .../files/public/components/file_picker/components/file_card.scss | 0 .../files/public/components/file_picker/components/file_card.tsx | 0 .../files/public/components/file_picker/components/file_grid.tsx | 0 .../public/components/file_picker/components/modal_footer.tsx | 0 .../files/public/components/file_picker/components/pagination.tsx | 0 .../public/components/file_picker/components/search_field.tsx | 0 .../public/components/file_picker/components/select_button.tsx | 0 .../files/public/components/file_picker/components/title.tsx | 0 .../public/components/file_picker/components/upload_files.tsx | 0 .../plugins/files/public/components/file_picker/context.tsx | 0 .../plugins/files/public/components/file_picker/file_picker.scss | 0 .../files/public/components/file_picker/file_picker.stories.tsx | 0 .../files/public/components/file_picker/file_picker.test.tsx | 0 .../plugins/files/public/components/file_picker/file_picker.tsx | 0 .../files/public/components/file_picker/file_picker_state.test.ts | 0 .../files/public/components/file_picker/file_picker_state.ts | 0 .../plugins/files/public/components/file_picker/i18n_texts.ts | 0 .../plugins/files/public/components/file_picker/index.tsx | 0 .../plugins/files/public/components/image/components/blurhash.tsx | 0 .../plugins/files/public/components/image/components/img.tsx | 0 .../plugins/files/public/components/image/components/index.ts | 0 .../files/public/components/image/image.constants.stories.tsx | 0 .../plugins/files/public/components/image/image.stories.tsx | 0 {x-pack => src}/plugins/files/public/components/image/image.tsx | 0 {x-pack => src}/plugins/files/public/components/image/index.ts | 0 {x-pack => src}/plugins/files/public/components/image/styles.ts | 0 .../files/public/components/image/use_viewport_observer.ts | 0 .../files/public/components/image/viewport_observer.test.ts | 0 .../plugins/files/public/components/image/viewport_observer.ts | 0 {x-pack => src}/plugins/files/public/components/index.ts | 0 {x-pack => src}/plugins/files/public/components/stories_shared.ts | 0 .../public/components/upload_file/components/cancel_button.tsx | 0 .../public/components/upload_file/components/clear_button.tsx | 0 .../public/components/upload_file/components/control_button.tsx | 0 .../files/public/components/upload_file/components/index.ts | 0 .../public/components/upload_file/components/retry_button.tsx | 0 .../public/components/upload_file/components/upload_button.tsx | 0 .../plugins/files/public/components/upload_file/context.ts | 0 .../plugins/files/public/components/upload_file/i18n_texts.ts | 0 .../plugins/files/public/components/upload_file/index.tsx | 0 .../files/public/components/upload_file/upload_file.component.tsx | 0 .../files/public/components/upload_file/upload_file.stories.tsx | 0 .../files/public/components/upload_file/upload_file.test.tsx | 0 .../plugins/files/public/components/upload_file/upload_file.tsx | 0 .../files/public/components/upload_file/upload_state.test.ts | 0 .../plugins/files/public/components/upload_file/upload_state.ts | 0 .../plugins/files/public/components/upload_file/util/index.ts | 0 .../public/components/upload_file/util/parse_file_name.test.ts | 0 .../files/public/components/upload_file/util/parse_file_name.ts | 0 .../public/components/upload_file/util/simple_state_subject.ts | 0 .../plugins/files/public/components/use_behavior_subject.ts | 0 .../plugins/files/public/components/util/image_metadata.test.ts | 0 .../plugins/files/public/components/util/image_metadata.ts | 0 {x-pack => src}/plugins/files/public/components/util/index.ts | 0 .../plugins/files/public/files_client/files_client.test.ts | 0 {x-pack => src}/plugins/files/public/files_client/files_client.ts | 0 {x-pack => src}/plugins/files/public/files_client/index.ts | 0 {x-pack => src}/plugins/files/public/index.ts | 0 {x-pack => src}/plugins/files/public/mocks.ts | 0 {x-pack => src}/plugins/files/public/plugin.ts | 0 {x-pack => src}/plugins/files/public/types.ts | 0 {x-pack => src}/plugins/files/server/audit_events.ts | 0 .../plugins/files/server/blob_storage_service/adapters/README.md | 0 .../adapters/es/content_stream/content_stream.test.ts | 0 .../adapters/es/content_stream/content_stream.ts | 0 .../blob_storage_service/adapters/es/content_stream/index.ts | 0 .../files/server/blob_storage_service/adapters/es/es.test.ts | 0 .../plugins/files/server/blob_storage_service/adapters/es/es.ts | 0 .../files/server/blob_storage_service/adapters/es/index.ts | 0 .../blob_storage_service/adapters/es/integration_tests/es.test.ts | 0 .../files/server/blob_storage_service/adapters/es/mappings.ts | 0 .../plugins/files/server/blob_storage_service/adapters/index.ts | 0 .../files/server/blob_storage_service/blob_storage_service.ts | 0 .../plugins/files/server/blob_storage_service/index.ts | 0 .../plugins/files/server/blob_storage_service/types.ts | 0 {x-pack => src}/plugins/files/server/feature.ts | 0 {x-pack => src}/plugins/files/server/file/errors.ts | 0 {x-pack => src}/plugins/files/server/file/file.test.ts | 0 {x-pack => src}/plugins/files/server/file/file.ts | 0 .../plugins/files/server/file/file_attributes_reducer.ts | 0 {x-pack => src}/plugins/files/server/file/index.ts | 0 {x-pack => src}/plugins/files/server/file/to_json.ts | 0 .../plugins/files/server/file_client/create_es_file_client.ts | 0 {x-pack => src}/plugins/files/server/file_client/file_client.ts | 0 .../server/file_client/file_metadata_client/adapters/es_index.ts | 0 .../server/file_client/file_metadata_client/adapters/index.ts | 0 .../file_client/file_metadata_client/adapters/query_filters.ts | 0 .../file_client/file_metadata_client/adapters/saved_objects.ts | 0 .../file_client/file_metadata_client/file_metadata_client.ts | 0 .../files/server/file_client/file_metadata_client/index.ts | 0 {x-pack => src}/plugins/files/server/file_client/index.ts | 0 .../server/file_client/integration_tests/es_file_client.test.ts | 0 .../plugins/files/server/file_client/stream_transforms/index.ts | 0 .../stream_transforms/max_byte_size_transform/errors.ts | 0 .../stream_transforms/max_byte_size_transform/index.ts | 0 .../max_byte_size_transform/max_byte_size_transform.test.ts | 0 .../max_byte_size_transform/max_byte_size_transform.ts | 0 {x-pack => src}/plugins/files/server/file_client/types.ts | 0 {x-pack => src}/plugins/files/server/file_client/utils.ts | 0 {x-pack => src}/plugins/files/server/file_service/errors.ts | 0 .../plugins/files/server/file_service/file_action_types.ts | 0 {x-pack => src}/plugins/files/server/file_service/file_service.ts | 0 .../plugins/files/server/file_service/file_service_factory.ts | 0 {x-pack => src}/plugins/files/server/file_service/index.ts | 0 .../plugins/files/server/file_service/internal_file_service.ts | 0 {x-pack => src}/plugins/files/server/file_share_service/errors.ts | 0 .../files/server/file_share_service/generate_share_token.test.ts | 0 .../files/server/file_share_service/generate_share_token.ts | 0 {x-pack => src}/plugins/files/server/file_share_service/index.ts | 0 .../server/file_share_service/internal_file_share_service.ts | 0 {x-pack => src}/plugins/files/server/file_share_service/types.ts | 0 {x-pack => src}/plugins/files/server/index.ts | 0 {x-pack => src}/plugins/files/server/integration_tests/README.md | 0 .../plugins/files/server/integration_tests/file_service.test.ts | 0 {x-pack => src}/plugins/files/server/mocks.ts | 0 {x-pack => src}/plugins/files/server/plugin.ts | 0 {x-pack => src}/plugins/files/server/routes/api_routes.ts | 0 {x-pack => src}/plugins/files/server/routes/common.test.ts | 0 {x-pack => src}/plugins/files/server/routes/common.ts | 0 {x-pack => src}/plugins/files/server/routes/common_schemas.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/create.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/delete.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/download.ts | 0 .../plugins/files/server/routes/file_kind/enhance_router.ts | 0 .../plugins/files/server/routes/file_kind/get_by_id.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/helpers.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/index.ts | 0 .../routes/file_kind/integration_tests/file_kind_http.test.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/list.ts | 0 .../plugins/files/server/routes/file_kind/share/get.ts | 0 .../plugins/files/server/routes/file_kind/share/list.ts | 0 .../plugins/files/server/routes/file_kind/share/share.ts | 0 .../plugins/files/server/routes/file_kind/share/unshare.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/types.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/update.ts | 0 .../plugins/files/server/routes/file_kind/upload.test.ts | 0 {x-pack => src}/plugins/files/server/routes/file_kind/upload.ts | 0 {x-pack => src}/plugins/files/server/routes/find.ts | 0 {x-pack => src}/plugins/files/server/routes/index.ts | 0 .../plugins/files/server/routes/integration_tests/routes.test.ts | 0 {x-pack => src}/plugins/files/server/routes/metrics.ts | 0 .../plugins/files/server/routes/public_facing/download.ts | 0 {x-pack => src}/plugins/files/server/routes/test_utils.ts | 0 {x-pack => src}/plugins/files/server/routes/types.ts | 0 {x-pack => src}/plugins/files/server/saved_objects/file.ts | 0 {x-pack => src}/plugins/files/server/saved_objects/file_share.ts | 0 {x-pack => src}/plugins/files/server/saved_objects/index.ts | 0 {x-pack => src}/plugins/files/server/test_utils/index.ts | 0 .../files/server/test_utils/setup_integration_environment.ts | 0 {x-pack => src}/plugins/files/server/types.ts | 0 {x-pack => src}/plugins/files/server/usage/counters.ts | 0 {x-pack => src}/plugins/files/server/usage/index.ts | 0 .../plugins/files/server/usage/integration_tests/usage.test.ts | 0 .../plugins/files/server/usage/register_usage_collector.ts | 0 {x-pack => src}/plugins/files/server/usage/schema.ts | 0 {x-pack => src}/plugins/files/tsconfig.json | 0 172 files changed, 0 insertions(+), 0 deletions(-) rename {x-pack => src}/plugins/files/.i18nrc.json (100%) rename {x-pack => src}/plugins/files/.storybook/main.ts (100%) rename {x-pack => src}/plugins/files/.storybook/manager.ts (100%) rename {x-pack => src}/plugins/files/README.md (100%) rename {x-pack => src}/plugins/files/common/api_routes.ts (100%) rename {x-pack => src}/plugins/files/common/constants.ts (100%) rename {x-pack => src}/plugins/files/common/file_kinds_registry/index.ts (100%) rename {x-pack => src}/plugins/files/common/index.ts (100%) rename {x-pack => src}/plugins/files/common/types.ts (100%) rename {x-pack => src}/plugins/files/docs/tutorial.mdx (100%) rename {x-pack => src}/plugins/files/jest.config.js (100%) rename {x-pack => src}/plugins/files/jest.integration.config.js (100%) rename {x-pack => src}/plugins/files/kibana.json (100%) rename {x-pack => src}/plugins/files/public/components/context.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/clear_filter_button.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/error_content.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/file_card.scss (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/file_card.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/file_grid.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/modal_footer.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/pagination.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/search_field.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/select_button.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/title.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/components/upload_files.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/context.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/file_picker.scss (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/file_picker.stories.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/file_picker.test.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/file_picker.tsx (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/file_picker_state.test.ts (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/file_picker_state.ts (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/i18n_texts.ts (100%) rename {x-pack => src}/plugins/files/public/components/file_picker/index.tsx (100%) rename {x-pack => src}/plugins/files/public/components/image/components/blurhash.tsx (100%) rename {x-pack => src}/plugins/files/public/components/image/components/img.tsx (100%) rename {x-pack => src}/plugins/files/public/components/image/components/index.ts (100%) rename {x-pack => src}/plugins/files/public/components/image/image.constants.stories.tsx (100%) rename {x-pack => src}/plugins/files/public/components/image/image.stories.tsx (100%) rename {x-pack => src}/plugins/files/public/components/image/image.tsx (100%) rename {x-pack => src}/plugins/files/public/components/image/index.ts (100%) rename {x-pack => src}/plugins/files/public/components/image/styles.ts (100%) rename {x-pack => src}/plugins/files/public/components/image/use_viewport_observer.ts (100%) rename {x-pack => src}/plugins/files/public/components/image/viewport_observer.test.ts (100%) rename {x-pack => src}/plugins/files/public/components/image/viewport_observer.ts (100%) rename {x-pack => src}/plugins/files/public/components/index.ts (100%) rename {x-pack => src}/plugins/files/public/components/stories_shared.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/components/cancel_button.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/components/clear_button.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/components/control_button.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/components/index.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/components/retry_button.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/components/upload_button.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/context.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/i18n_texts.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/index.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/upload_file.component.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/upload_file.stories.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/upload_file.test.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/upload_file.tsx (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/upload_state.test.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/upload_state.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/util/index.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/util/parse_file_name.test.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/util/parse_file_name.ts (100%) rename {x-pack => src}/plugins/files/public/components/upload_file/util/simple_state_subject.ts (100%) rename {x-pack => src}/plugins/files/public/components/use_behavior_subject.ts (100%) rename {x-pack => src}/plugins/files/public/components/util/image_metadata.test.ts (100%) rename {x-pack => src}/plugins/files/public/components/util/image_metadata.ts (100%) rename {x-pack => src}/plugins/files/public/components/util/index.ts (100%) rename {x-pack => src}/plugins/files/public/files_client/files_client.test.ts (100%) rename {x-pack => src}/plugins/files/public/files_client/files_client.ts (100%) rename {x-pack => src}/plugins/files/public/files_client/index.ts (100%) rename {x-pack => src}/plugins/files/public/index.ts (100%) rename {x-pack => src}/plugins/files/public/mocks.ts (100%) rename {x-pack => src}/plugins/files/public/plugin.ts (100%) rename {x-pack => src}/plugins/files/public/types.ts (100%) rename {x-pack => src}/plugins/files/server/audit_events.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/README.md (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/es/es.test.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/es/es.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/es/index.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/es/mappings.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/adapters/index.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/blob_storage_service.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/index.ts (100%) rename {x-pack => src}/plugins/files/server/blob_storage_service/types.ts (100%) rename {x-pack => src}/plugins/files/server/feature.ts (100%) rename {x-pack => src}/plugins/files/server/file/errors.ts (100%) rename {x-pack => src}/plugins/files/server/file/file.test.ts (100%) rename {x-pack => src}/plugins/files/server/file/file.ts (100%) rename {x-pack => src}/plugins/files/server/file/file_attributes_reducer.ts (100%) rename {x-pack => src}/plugins/files/server/file/index.ts (100%) rename {x-pack => src}/plugins/files/server/file/to_json.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/create_es_file_client.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/file_client.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/file_metadata_client/adapters/index.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/file_metadata_client/index.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/index.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/integration_tests/es_file_client.test.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/stream_transforms/index.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/types.ts (100%) rename {x-pack => src}/plugins/files/server/file_client/utils.ts (100%) rename {x-pack => src}/plugins/files/server/file_service/errors.ts (100%) rename {x-pack => src}/plugins/files/server/file_service/file_action_types.ts (100%) rename {x-pack => src}/plugins/files/server/file_service/file_service.ts (100%) rename {x-pack => src}/plugins/files/server/file_service/file_service_factory.ts (100%) rename {x-pack => src}/plugins/files/server/file_service/index.ts (100%) rename {x-pack => src}/plugins/files/server/file_service/internal_file_service.ts (100%) rename {x-pack => src}/plugins/files/server/file_share_service/errors.ts (100%) rename {x-pack => src}/plugins/files/server/file_share_service/generate_share_token.test.ts (100%) rename {x-pack => src}/plugins/files/server/file_share_service/generate_share_token.ts (100%) rename {x-pack => src}/plugins/files/server/file_share_service/index.ts (100%) rename {x-pack => src}/plugins/files/server/file_share_service/internal_file_share_service.ts (100%) rename {x-pack => src}/plugins/files/server/file_share_service/types.ts (100%) rename {x-pack => src}/plugins/files/server/index.ts (100%) rename {x-pack => src}/plugins/files/server/integration_tests/README.md (100%) rename {x-pack => src}/plugins/files/server/integration_tests/file_service.test.ts (100%) rename {x-pack => src}/plugins/files/server/mocks.ts (100%) rename {x-pack => src}/plugins/files/server/plugin.ts (100%) rename {x-pack => src}/plugins/files/server/routes/api_routes.ts (100%) rename {x-pack => src}/plugins/files/server/routes/common.test.ts (100%) rename {x-pack => src}/plugins/files/server/routes/common.ts (100%) rename {x-pack => src}/plugins/files/server/routes/common_schemas.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/create.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/delete.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/download.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/enhance_router.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/get_by_id.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/helpers.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/index.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/list.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/share/get.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/share/list.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/share/share.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/share/unshare.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/types.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/update.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/upload.test.ts (100%) rename {x-pack => src}/plugins/files/server/routes/file_kind/upload.ts (100%) rename {x-pack => src}/plugins/files/server/routes/find.ts (100%) rename {x-pack => src}/plugins/files/server/routes/index.ts (100%) rename {x-pack => src}/plugins/files/server/routes/integration_tests/routes.test.ts (100%) rename {x-pack => src}/plugins/files/server/routes/metrics.ts (100%) rename {x-pack => src}/plugins/files/server/routes/public_facing/download.ts (100%) rename {x-pack => src}/plugins/files/server/routes/test_utils.ts (100%) rename {x-pack => src}/plugins/files/server/routes/types.ts (100%) rename {x-pack => src}/plugins/files/server/saved_objects/file.ts (100%) rename {x-pack => src}/plugins/files/server/saved_objects/file_share.ts (100%) rename {x-pack => src}/plugins/files/server/saved_objects/index.ts (100%) rename {x-pack => src}/plugins/files/server/test_utils/index.ts (100%) rename {x-pack => src}/plugins/files/server/test_utils/setup_integration_environment.ts (100%) rename {x-pack => src}/plugins/files/server/types.ts (100%) rename {x-pack => src}/plugins/files/server/usage/counters.ts (100%) rename {x-pack => src}/plugins/files/server/usage/index.ts (100%) rename {x-pack => src}/plugins/files/server/usage/integration_tests/usage.test.ts (100%) rename {x-pack => src}/plugins/files/server/usage/register_usage_collector.ts (100%) rename {x-pack => src}/plugins/files/server/usage/schema.ts (100%) rename {x-pack => src}/plugins/files/tsconfig.json (100%) diff --git a/x-pack/plugins/files/.i18nrc.json b/src/plugins/files/.i18nrc.json similarity index 100% rename from x-pack/plugins/files/.i18nrc.json rename to src/plugins/files/.i18nrc.json diff --git a/x-pack/plugins/files/.storybook/main.ts b/src/plugins/files/.storybook/main.ts similarity index 100% rename from x-pack/plugins/files/.storybook/main.ts rename to src/plugins/files/.storybook/main.ts diff --git a/x-pack/plugins/files/.storybook/manager.ts b/src/plugins/files/.storybook/manager.ts similarity index 100% rename from x-pack/plugins/files/.storybook/manager.ts rename to src/plugins/files/.storybook/manager.ts diff --git a/x-pack/plugins/files/README.md b/src/plugins/files/README.md similarity index 100% rename from x-pack/plugins/files/README.md rename to src/plugins/files/README.md diff --git a/x-pack/plugins/files/common/api_routes.ts b/src/plugins/files/common/api_routes.ts similarity index 100% rename from x-pack/plugins/files/common/api_routes.ts rename to src/plugins/files/common/api_routes.ts diff --git a/x-pack/plugins/files/common/constants.ts b/src/plugins/files/common/constants.ts similarity index 100% rename from x-pack/plugins/files/common/constants.ts rename to src/plugins/files/common/constants.ts diff --git a/x-pack/plugins/files/common/file_kinds_registry/index.ts b/src/plugins/files/common/file_kinds_registry/index.ts similarity index 100% rename from x-pack/plugins/files/common/file_kinds_registry/index.ts rename to src/plugins/files/common/file_kinds_registry/index.ts diff --git a/x-pack/plugins/files/common/index.ts b/src/plugins/files/common/index.ts similarity index 100% rename from x-pack/plugins/files/common/index.ts rename to src/plugins/files/common/index.ts diff --git a/x-pack/plugins/files/common/types.ts b/src/plugins/files/common/types.ts similarity index 100% rename from x-pack/plugins/files/common/types.ts rename to src/plugins/files/common/types.ts diff --git a/x-pack/plugins/files/docs/tutorial.mdx b/src/plugins/files/docs/tutorial.mdx similarity index 100% rename from x-pack/plugins/files/docs/tutorial.mdx rename to src/plugins/files/docs/tutorial.mdx diff --git a/x-pack/plugins/files/jest.config.js b/src/plugins/files/jest.config.js similarity index 100% rename from x-pack/plugins/files/jest.config.js rename to src/plugins/files/jest.config.js diff --git a/x-pack/plugins/files/jest.integration.config.js b/src/plugins/files/jest.integration.config.js similarity index 100% rename from x-pack/plugins/files/jest.integration.config.js rename to src/plugins/files/jest.integration.config.js diff --git a/x-pack/plugins/files/kibana.json b/src/plugins/files/kibana.json similarity index 100% rename from x-pack/plugins/files/kibana.json rename to src/plugins/files/kibana.json diff --git a/x-pack/plugins/files/public/components/context.tsx b/src/plugins/files/public/components/context.tsx similarity index 100% rename from x-pack/plugins/files/public/components/context.tsx rename to src/plugins/files/public/components/context.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/clear_filter_button.tsx b/src/plugins/files/public/components/file_picker/components/clear_filter_button.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/clear_filter_button.tsx rename to src/plugins/files/public/components/file_picker/components/clear_filter_button.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/error_content.tsx b/src/plugins/files/public/components/file_picker/components/error_content.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/error_content.tsx rename to src/plugins/files/public/components/file_picker/components/error_content.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/file_card.scss b/src/plugins/files/public/components/file_picker/components/file_card.scss similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/file_card.scss rename to src/plugins/files/public/components/file_picker/components/file_card.scss diff --git a/x-pack/plugins/files/public/components/file_picker/components/file_card.tsx b/src/plugins/files/public/components/file_picker/components/file_card.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/file_card.tsx rename to src/plugins/files/public/components/file_picker/components/file_card.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/file_grid.tsx b/src/plugins/files/public/components/file_picker/components/file_grid.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/file_grid.tsx rename to src/plugins/files/public/components/file_picker/components/file_grid.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/modal_footer.tsx b/src/plugins/files/public/components/file_picker/components/modal_footer.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/modal_footer.tsx rename to src/plugins/files/public/components/file_picker/components/modal_footer.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/pagination.tsx b/src/plugins/files/public/components/file_picker/components/pagination.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/pagination.tsx rename to src/plugins/files/public/components/file_picker/components/pagination.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/search_field.tsx b/src/plugins/files/public/components/file_picker/components/search_field.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/search_field.tsx rename to src/plugins/files/public/components/file_picker/components/search_field.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/select_button.tsx b/src/plugins/files/public/components/file_picker/components/select_button.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/select_button.tsx rename to src/plugins/files/public/components/file_picker/components/select_button.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/title.tsx b/src/plugins/files/public/components/file_picker/components/title.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/title.tsx rename to src/plugins/files/public/components/file_picker/components/title.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/components/upload_files.tsx b/src/plugins/files/public/components/file_picker/components/upload_files.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/components/upload_files.tsx rename to src/plugins/files/public/components/file_picker/components/upload_files.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/context.tsx b/src/plugins/files/public/components/file_picker/context.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/context.tsx rename to src/plugins/files/public/components/file_picker/context.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/file_picker.scss b/src/plugins/files/public/components/file_picker/file_picker.scss similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/file_picker.scss rename to src/plugins/files/public/components/file_picker/file_picker.scss diff --git a/x-pack/plugins/files/public/components/file_picker/file_picker.stories.tsx b/src/plugins/files/public/components/file_picker/file_picker.stories.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/file_picker.stories.tsx rename to src/plugins/files/public/components/file_picker/file_picker.stories.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/file_picker.test.tsx b/src/plugins/files/public/components/file_picker/file_picker.test.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/file_picker.test.tsx rename to src/plugins/files/public/components/file_picker/file_picker.test.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/file_picker.tsx b/src/plugins/files/public/components/file_picker/file_picker.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/file_picker.tsx rename to src/plugins/files/public/components/file_picker/file_picker.tsx diff --git a/x-pack/plugins/files/public/components/file_picker/file_picker_state.test.ts b/src/plugins/files/public/components/file_picker/file_picker_state.test.ts similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/file_picker_state.test.ts rename to src/plugins/files/public/components/file_picker/file_picker_state.test.ts diff --git a/x-pack/plugins/files/public/components/file_picker/file_picker_state.ts b/src/plugins/files/public/components/file_picker/file_picker_state.ts similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/file_picker_state.ts rename to src/plugins/files/public/components/file_picker/file_picker_state.ts diff --git a/x-pack/plugins/files/public/components/file_picker/i18n_texts.ts b/src/plugins/files/public/components/file_picker/i18n_texts.ts similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/i18n_texts.ts rename to src/plugins/files/public/components/file_picker/i18n_texts.ts diff --git a/x-pack/plugins/files/public/components/file_picker/index.tsx b/src/plugins/files/public/components/file_picker/index.tsx similarity index 100% rename from x-pack/plugins/files/public/components/file_picker/index.tsx rename to src/plugins/files/public/components/file_picker/index.tsx diff --git a/x-pack/plugins/files/public/components/image/components/blurhash.tsx b/src/plugins/files/public/components/image/components/blurhash.tsx similarity index 100% rename from x-pack/plugins/files/public/components/image/components/blurhash.tsx rename to src/plugins/files/public/components/image/components/blurhash.tsx diff --git a/x-pack/plugins/files/public/components/image/components/img.tsx b/src/plugins/files/public/components/image/components/img.tsx similarity index 100% rename from x-pack/plugins/files/public/components/image/components/img.tsx rename to src/plugins/files/public/components/image/components/img.tsx diff --git a/x-pack/plugins/files/public/components/image/components/index.ts b/src/plugins/files/public/components/image/components/index.ts similarity index 100% rename from x-pack/plugins/files/public/components/image/components/index.ts rename to src/plugins/files/public/components/image/components/index.ts diff --git a/x-pack/plugins/files/public/components/image/image.constants.stories.tsx b/src/plugins/files/public/components/image/image.constants.stories.tsx similarity index 100% rename from x-pack/plugins/files/public/components/image/image.constants.stories.tsx rename to src/plugins/files/public/components/image/image.constants.stories.tsx diff --git a/x-pack/plugins/files/public/components/image/image.stories.tsx b/src/plugins/files/public/components/image/image.stories.tsx similarity index 100% rename from x-pack/plugins/files/public/components/image/image.stories.tsx rename to src/plugins/files/public/components/image/image.stories.tsx diff --git a/x-pack/plugins/files/public/components/image/image.tsx b/src/plugins/files/public/components/image/image.tsx similarity index 100% rename from x-pack/plugins/files/public/components/image/image.tsx rename to src/plugins/files/public/components/image/image.tsx diff --git a/x-pack/plugins/files/public/components/image/index.ts b/src/plugins/files/public/components/image/index.ts similarity index 100% rename from x-pack/plugins/files/public/components/image/index.ts rename to src/plugins/files/public/components/image/index.ts diff --git a/x-pack/plugins/files/public/components/image/styles.ts b/src/plugins/files/public/components/image/styles.ts similarity index 100% rename from x-pack/plugins/files/public/components/image/styles.ts rename to src/plugins/files/public/components/image/styles.ts diff --git a/x-pack/plugins/files/public/components/image/use_viewport_observer.ts b/src/plugins/files/public/components/image/use_viewport_observer.ts similarity index 100% rename from x-pack/plugins/files/public/components/image/use_viewport_observer.ts rename to src/plugins/files/public/components/image/use_viewport_observer.ts diff --git a/x-pack/plugins/files/public/components/image/viewport_observer.test.ts b/src/plugins/files/public/components/image/viewport_observer.test.ts similarity index 100% rename from x-pack/plugins/files/public/components/image/viewport_observer.test.ts rename to src/plugins/files/public/components/image/viewport_observer.test.ts diff --git a/x-pack/plugins/files/public/components/image/viewport_observer.ts b/src/plugins/files/public/components/image/viewport_observer.ts similarity index 100% rename from x-pack/plugins/files/public/components/image/viewport_observer.ts rename to src/plugins/files/public/components/image/viewport_observer.ts diff --git a/x-pack/plugins/files/public/components/index.ts b/src/plugins/files/public/components/index.ts similarity index 100% rename from x-pack/plugins/files/public/components/index.ts rename to src/plugins/files/public/components/index.ts diff --git a/x-pack/plugins/files/public/components/stories_shared.ts b/src/plugins/files/public/components/stories_shared.ts similarity index 100% rename from x-pack/plugins/files/public/components/stories_shared.ts rename to src/plugins/files/public/components/stories_shared.ts diff --git a/x-pack/plugins/files/public/components/upload_file/components/cancel_button.tsx b/src/plugins/files/public/components/upload_file/components/cancel_button.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/components/cancel_button.tsx rename to src/plugins/files/public/components/upload_file/components/cancel_button.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/components/clear_button.tsx b/src/plugins/files/public/components/upload_file/components/clear_button.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/components/clear_button.tsx rename to src/plugins/files/public/components/upload_file/components/clear_button.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/components/control_button.tsx b/src/plugins/files/public/components/upload_file/components/control_button.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/components/control_button.tsx rename to src/plugins/files/public/components/upload_file/components/control_button.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/components/index.ts b/src/plugins/files/public/components/upload_file/components/index.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/components/index.ts rename to src/plugins/files/public/components/upload_file/components/index.ts diff --git a/x-pack/plugins/files/public/components/upload_file/components/retry_button.tsx b/src/plugins/files/public/components/upload_file/components/retry_button.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/components/retry_button.tsx rename to src/plugins/files/public/components/upload_file/components/retry_button.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/components/upload_button.tsx b/src/plugins/files/public/components/upload_file/components/upload_button.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/components/upload_button.tsx rename to src/plugins/files/public/components/upload_file/components/upload_button.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/context.ts b/src/plugins/files/public/components/upload_file/context.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/context.ts rename to src/plugins/files/public/components/upload_file/context.ts diff --git a/x-pack/plugins/files/public/components/upload_file/i18n_texts.ts b/src/plugins/files/public/components/upload_file/i18n_texts.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/i18n_texts.ts rename to src/plugins/files/public/components/upload_file/i18n_texts.ts diff --git a/x-pack/plugins/files/public/components/upload_file/index.tsx b/src/plugins/files/public/components/upload_file/index.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/index.tsx rename to src/plugins/files/public/components/upload_file/index.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/upload_file.component.tsx b/src/plugins/files/public/components/upload_file/upload_file.component.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/upload_file.component.tsx rename to src/plugins/files/public/components/upload_file/upload_file.component.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/upload_file.stories.tsx b/src/plugins/files/public/components/upload_file/upload_file.stories.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/upload_file.stories.tsx rename to src/plugins/files/public/components/upload_file/upload_file.stories.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/upload_file.test.tsx b/src/plugins/files/public/components/upload_file/upload_file.test.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/upload_file.test.tsx rename to src/plugins/files/public/components/upload_file/upload_file.test.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/upload_file.tsx b/src/plugins/files/public/components/upload_file/upload_file.tsx similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/upload_file.tsx rename to src/plugins/files/public/components/upload_file/upload_file.tsx diff --git a/x-pack/plugins/files/public/components/upload_file/upload_state.test.ts b/src/plugins/files/public/components/upload_file/upload_state.test.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/upload_state.test.ts rename to src/plugins/files/public/components/upload_file/upload_state.test.ts diff --git a/x-pack/plugins/files/public/components/upload_file/upload_state.ts b/src/plugins/files/public/components/upload_file/upload_state.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/upload_state.ts rename to src/plugins/files/public/components/upload_file/upload_state.ts diff --git a/x-pack/plugins/files/public/components/upload_file/util/index.ts b/src/plugins/files/public/components/upload_file/util/index.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/util/index.ts rename to src/plugins/files/public/components/upload_file/util/index.ts diff --git a/x-pack/plugins/files/public/components/upload_file/util/parse_file_name.test.ts b/src/plugins/files/public/components/upload_file/util/parse_file_name.test.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/util/parse_file_name.test.ts rename to src/plugins/files/public/components/upload_file/util/parse_file_name.test.ts diff --git a/x-pack/plugins/files/public/components/upload_file/util/parse_file_name.ts b/src/plugins/files/public/components/upload_file/util/parse_file_name.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/util/parse_file_name.ts rename to src/plugins/files/public/components/upload_file/util/parse_file_name.ts diff --git a/x-pack/plugins/files/public/components/upload_file/util/simple_state_subject.ts b/src/plugins/files/public/components/upload_file/util/simple_state_subject.ts similarity index 100% rename from x-pack/plugins/files/public/components/upload_file/util/simple_state_subject.ts rename to src/plugins/files/public/components/upload_file/util/simple_state_subject.ts diff --git a/x-pack/plugins/files/public/components/use_behavior_subject.ts b/src/plugins/files/public/components/use_behavior_subject.ts similarity index 100% rename from x-pack/plugins/files/public/components/use_behavior_subject.ts rename to src/plugins/files/public/components/use_behavior_subject.ts diff --git a/x-pack/plugins/files/public/components/util/image_metadata.test.ts b/src/plugins/files/public/components/util/image_metadata.test.ts similarity index 100% rename from x-pack/plugins/files/public/components/util/image_metadata.test.ts rename to src/plugins/files/public/components/util/image_metadata.test.ts diff --git a/x-pack/plugins/files/public/components/util/image_metadata.ts b/src/plugins/files/public/components/util/image_metadata.ts similarity index 100% rename from x-pack/plugins/files/public/components/util/image_metadata.ts rename to src/plugins/files/public/components/util/image_metadata.ts diff --git a/x-pack/plugins/files/public/components/util/index.ts b/src/plugins/files/public/components/util/index.ts similarity index 100% rename from x-pack/plugins/files/public/components/util/index.ts rename to src/plugins/files/public/components/util/index.ts diff --git a/x-pack/plugins/files/public/files_client/files_client.test.ts b/src/plugins/files/public/files_client/files_client.test.ts similarity index 100% rename from x-pack/plugins/files/public/files_client/files_client.test.ts rename to src/plugins/files/public/files_client/files_client.test.ts diff --git a/x-pack/plugins/files/public/files_client/files_client.ts b/src/plugins/files/public/files_client/files_client.ts similarity index 100% rename from x-pack/plugins/files/public/files_client/files_client.ts rename to src/plugins/files/public/files_client/files_client.ts diff --git a/x-pack/plugins/files/public/files_client/index.ts b/src/plugins/files/public/files_client/index.ts similarity index 100% rename from x-pack/plugins/files/public/files_client/index.ts rename to src/plugins/files/public/files_client/index.ts diff --git a/x-pack/plugins/files/public/index.ts b/src/plugins/files/public/index.ts similarity index 100% rename from x-pack/plugins/files/public/index.ts rename to src/plugins/files/public/index.ts diff --git a/x-pack/plugins/files/public/mocks.ts b/src/plugins/files/public/mocks.ts similarity index 100% rename from x-pack/plugins/files/public/mocks.ts rename to src/plugins/files/public/mocks.ts diff --git a/x-pack/plugins/files/public/plugin.ts b/src/plugins/files/public/plugin.ts similarity index 100% rename from x-pack/plugins/files/public/plugin.ts rename to src/plugins/files/public/plugin.ts diff --git a/x-pack/plugins/files/public/types.ts b/src/plugins/files/public/types.ts similarity index 100% rename from x-pack/plugins/files/public/types.ts rename to src/plugins/files/public/types.ts diff --git a/x-pack/plugins/files/server/audit_events.ts b/src/plugins/files/server/audit_events.ts similarity index 100% rename from x-pack/plugins/files/server/audit_events.ts rename to src/plugins/files/server/audit_events.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/README.md b/src/plugins/files/server/blob_storage_service/adapters/README.md similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/README.md rename to src/plugins/files/server/blob_storage_service/adapters/README.md diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts rename to src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts rename to src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts rename to src/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/es/es.test.ts b/src/plugins/files/server/blob_storage_service/adapters/es/es.test.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/es/es.test.ts rename to src/plugins/files/server/blob_storage_service/adapters/es/es.test.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/es/es.ts b/src/plugins/files/server/blob_storage_service/adapters/es/es.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/es/es.ts rename to src/plugins/files/server/blob_storage_service/adapters/es/es.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/es/index.ts b/src/plugins/files/server/blob_storage_service/adapters/es/index.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/es/index.ts rename to src/plugins/files/server/blob_storage_service/adapters/es/index.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts b/src/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts rename to src/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/es/mappings.ts b/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/es/mappings.ts rename to src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/adapters/index.ts b/src/plugins/files/server/blob_storage_service/adapters/index.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/adapters/index.ts rename to src/plugins/files/server/blob_storage_service/adapters/index.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/blob_storage_service.ts b/src/plugins/files/server/blob_storage_service/blob_storage_service.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/blob_storage_service.ts rename to src/plugins/files/server/blob_storage_service/blob_storage_service.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/index.ts b/src/plugins/files/server/blob_storage_service/index.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/index.ts rename to src/plugins/files/server/blob_storage_service/index.ts diff --git a/x-pack/plugins/files/server/blob_storage_service/types.ts b/src/plugins/files/server/blob_storage_service/types.ts similarity index 100% rename from x-pack/plugins/files/server/blob_storage_service/types.ts rename to src/plugins/files/server/blob_storage_service/types.ts diff --git a/x-pack/plugins/files/server/feature.ts b/src/plugins/files/server/feature.ts similarity index 100% rename from x-pack/plugins/files/server/feature.ts rename to src/plugins/files/server/feature.ts diff --git a/x-pack/plugins/files/server/file/errors.ts b/src/plugins/files/server/file/errors.ts similarity index 100% rename from x-pack/plugins/files/server/file/errors.ts rename to src/plugins/files/server/file/errors.ts diff --git a/x-pack/plugins/files/server/file/file.test.ts b/src/plugins/files/server/file/file.test.ts similarity index 100% rename from x-pack/plugins/files/server/file/file.test.ts rename to src/plugins/files/server/file/file.test.ts diff --git a/x-pack/plugins/files/server/file/file.ts b/src/plugins/files/server/file/file.ts similarity index 100% rename from x-pack/plugins/files/server/file/file.ts rename to src/plugins/files/server/file/file.ts diff --git a/x-pack/plugins/files/server/file/file_attributes_reducer.ts b/src/plugins/files/server/file/file_attributes_reducer.ts similarity index 100% rename from x-pack/plugins/files/server/file/file_attributes_reducer.ts rename to src/plugins/files/server/file/file_attributes_reducer.ts diff --git a/x-pack/plugins/files/server/file/index.ts b/src/plugins/files/server/file/index.ts similarity index 100% rename from x-pack/plugins/files/server/file/index.ts rename to src/plugins/files/server/file/index.ts diff --git a/x-pack/plugins/files/server/file/to_json.ts b/src/plugins/files/server/file/to_json.ts similarity index 100% rename from x-pack/plugins/files/server/file/to_json.ts rename to src/plugins/files/server/file/to_json.ts diff --git a/x-pack/plugins/files/server/file_client/create_es_file_client.ts b/src/plugins/files/server/file_client/create_es_file_client.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/create_es_file_client.ts rename to src/plugins/files/server/file_client/create_es_file_client.ts diff --git a/x-pack/plugins/files/server/file_client/file_client.ts b/src/plugins/files/server/file_client/file_client.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/file_client.ts rename to src/plugins/files/server/file_client/file_client.ts diff --git a/x-pack/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts b/src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts rename to src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts diff --git a/x-pack/plugins/files/server/file_client/file_metadata_client/adapters/index.ts b/src/plugins/files/server/file_client/file_metadata_client/adapters/index.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/file_metadata_client/adapters/index.ts rename to src/plugins/files/server/file_client/file_metadata_client/adapters/index.ts diff --git a/x-pack/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts b/src/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts rename to src/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts diff --git a/x-pack/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts b/src/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts rename to src/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts diff --git a/x-pack/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts b/src/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts rename to src/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts diff --git a/x-pack/plugins/files/server/file_client/file_metadata_client/index.ts b/src/plugins/files/server/file_client/file_metadata_client/index.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/file_metadata_client/index.ts rename to src/plugins/files/server/file_client/file_metadata_client/index.ts diff --git a/x-pack/plugins/files/server/file_client/index.ts b/src/plugins/files/server/file_client/index.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/index.ts rename to src/plugins/files/server/file_client/index.ts diff --git a/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts b/src/plugins/files/server/file_client/integration_tests/es_file_client.test.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts rename to src/plugins/files/server/file_client/integration_tests/es_file_client.test.ts diff --git a/x-pack/plugins/files/server/file_client/stream_transforms/index.ts b/src/plugins/files/server/file_client/stream_transforms/index.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/stream_transforms/index.ts rename to src/plugins/files/server/file_client/stream_transforms/index.ts diff --git a/x-pack/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts rename to src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts diff --git a/x-pack/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts rename to src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts diff --git a/x-pack/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts rename to src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts diff --git a/x-pack/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts rename to src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts diff --git a/x-pack/plugins/files/server/file_client/types.ts b/src/plugins/files/server/file_client/types.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/types.ts rename to src/plugins/files/server/file_client/types.ts diff --git a/x-pack/plugins/files/server/file_client/utils.ts b/src/plugins/files/server/file_client/utils.ts similarity index 100% rename from x-pack/plugins/files/server/file_client/utils.ts rename to src/plugins/files/server/file_client/utils.ts diff --git a/x-pack/plugins/files/server/file_service/errors.ts b/src/plugins/files/server/file_service/errors.ts similarity index 100% rename from x-pack/plugins/files/server/file_service/errors.ts rename to src/plugins/files/server/file_service/errors.ts diff --git a/x-pack/plugins/files/server/file_service/file_action_types.ts b/src/plugins/files/server/file_service/file_action_types.ts similarity index 100% rename from x-pack/plugins/files/server/file_service/file_action_types.ts rename to src/plugins/files/server/file_service/file_action_types.ts diff --git a/x-pack/plugins/files/server/file_service/file_service.ts b/src/plugins/files/server/file_service/file_service.ts similarity index 100% rename from x-pack/plugins/files/server/file_service/file_service.ts rename to src/plugins/files/server/file_service/file_service.ts diff --git a/x-pack/plugins/files/server/file_service/file_service_factory.ts b/src/plugins/files/server/file_service/file_service_factory.ts similarity index 100% rename from x-pack/plugins/files/server/file_service/file_service_factory.ts rename to src/plugins/files/server/file_service/file_service_factory.ts diff --git a/x-pack/plugins/files/server/file_service/index.ts b/src/plugins/files/server/file_service/index.ts similarity index 100% rename from x-pack/plugins/files/server/file_service/index.ts rename to src/plugins/files/server/file_service/index.ts diff --git a/x-pack/plugins/files/server/file_service/internal_file_service.ts b/src/plugins/files/server/file_service/internal_file_service.ts similarity index 100% rename from x-pack/plugins/files/server/file_service/internal_file_service.ts rename to src/plugins/files/server/file_service/internal_file_service.ts diff --git a/x-pack/plugins/files/server/file_share_service/errors.ts b/src/plugins/files/server/file_share_service/errors.ts similarity index 100% rename from x-pack/plugins/files/server/file_share_service/errors.ts rename to src/plugins/files/server/file_share_service/errors.ts diff --git a/x-pack/plugins/files/server/file_share_service/generate_share_token.test.ts b/src/plugins/files/server/file_share_service/generate_share_token.test.ts similarity index 100% rename from x-pack/plugins/files/server/file_share_service/generate_share_token.test.ts rename to src/plugins/files/server/file_share_service/generate_share_token.test.ts diff --git a/x-pack/plugins/files/server/file_share_service/generate_share_token.ts b/src/plugins/files/server/file_share_service/generate_share_token.ts similarity index 100% rename from x-pack/plugins/files/server/file_share_service/generate_share_token.ts rename to src/plugins/files/server/file_share_service/generate_share_token.ts diff --git a/x-pack/plugins/files/server/file_share_service/index.ts b/src/plugins/files/server/file_share_service/index.ts similarity index 100% rename from x-pack/plugins/files/server/file_share_service/index.ts rename to src/plugins/files/server/file_share_service/index.ts diff --git a/x-pack/plugins/files/server/file_share_service/internal_file_share_service.ts b/src/plugins/files/server/file_share_service/internal_file_share_service.ts similarity index 100% rename from x-pack/plugins/files/server/file_share_service/internal_file_share_service.ts rename to src/plugins/files/server/file_share_service/internal_file_share_service.ts diff --git a/x-pack/plugins/files/server/file_share_service/types.ts b/src/plugins/files/server/file_share_service/types.ts similarity index 100% rename from x-pack/plugins/files/server/file_share_service/types.ts rename to src/plugins/files/server/file_share_service/types.ts diff --git a/x-pack/plugins/files/server/index.ts b/src/plugins/files/server/index.ts similarity index 100% rename from x-pack/plugins/files/server/index.ts rename to src/plugins/files/server/index.ts diff --git a/x-pack/plugins/files/server/integration_tests/README.md b/src/plugins/files/server/integration_tests/README.md similarity index 100% rename from x-pack/plugins/files/server/integration_tests/README.md rename to src/plugins/files/server/integration_tests/README.md diff --git a/x-pack/plugins/files/server/integration_tests/file_service.test.ts b/src/plugins/files/server/integration_tests/file_service.test.ts similarity index 100% rename from x-pack/plugins/files/server/integration_tests/file_service.test.ts rename to src/plugins/files/server/integration_tests/file_service.test.ts diff --git a/x-pack/plugins/files/server/mocks.ts b/src/plugins/files/server/mocks.ts similarity index 100% rename from x-pack/plugins/files/server/mocks.ts rename to src/plugins/files/server/mocks.ts diff --git a/x-pack/plugins/files/server/plugin.ts b/src/plugins/files/server/plugin.ts similarity index 100% rename from x-pack/plugins/files/server/plugin.ts rename to src/plugins/files/server/plugin.ts diff --git a/x-pack/plugins/files/server/routes/api_routes.ts b/src/plugins/files/server/routes/api_routes.ts similarity index 100% rename from x-pack/plugins/files/server/routes/api_routes.ts rename to src/plugins/files/server/routes/api_routes.ts diff --git a/x-pack/plugins/files/server/routes/common.test.ts b/src/plugins/files/server/routes/common.test.ts similarity index 100% rename from x-pack/plugins/files/server/routes/common.test.ts rename to src/plugins/files/server/routes/common.test.ts diff --git a/x-pack/plugins/files/server/routes/common.ts b/src/plugins/files/server/routes/common.ts similarity index 100% rename from x-pack/plugins/files/server/routes/common.ts rename to src/plugins/files/server/routes/common.ts diff --git a/x-pack/plugins/files/server/routes/common_schemas.ts b/src/plugins/files/server/routes/common_schemas.ts similarity index 100% rename from x-pack/plugins/files/server/routes/common_schemas.ts rename to src/plugins/files/server/routes/common_schemas.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/create.ts b/src/plugins/files/server/routes/file_kind/create.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/create.ts rename to src/plugins/files/server/routes/file_kind/create.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/delete.ts b/src/plugins/files/server/routes/file_kind/delete.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/delete.ts rename to src/plugins/files/server/routes/file_kind/delete.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/download.ts b/src/plugins/files/server/routes/file_kind/download.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/download.ts rename to src/plugins/files/server/routes/file_kind/download.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/enhance_router.ts b/src/plugins/files/server/routes/file_kind/enhance_router.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/enhance_router.ts rename to src/plugins/files/server/routes/file_kind/enhance_router.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/get_by_id.ts b/src/plugins/files/server/routes/file_kind/get_by_id.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/get_by_id.ts rename to src/plugins/files/server/routes/file_kind/get_by_id.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/helpers.ts b/src/plugins/files/server/routes/file_kind/helpers.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/helpers.ts rename to src/plugins/files/server/routes/file_kind/helpers.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/index.ts b/src/plugins/files/server/routes/file_kind/index.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/index.ts rename to src/plugins/files/server/routes/file_kind/index.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts b/src/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts rename to src/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/list.ts b/src/plugins/files/server/routes/file_kind/list.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/list.ts rename to src/plugins/files/server/routes/file_kind/list.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/share/get.ts b/src/plugins/files/server/routes/file_kind/share/get.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/share/get.ts rename to src/plugins/files/server/routes/file_kind/share/get.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/share/list.ts b/src/plugins/files/server/routes/file_kind/share/list.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/share/list.ts rename to src/plugins/files/server/routes/file_kind/share/list.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/share/share.ts b/src/plugins/files/server/routes/file_kind/share/share.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/share/share.ts rename to src/plugins/files/server/routes/file_kind/share/share.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/share/unshare.ts b/src/plugins/files/server/routes/file_kind/share/unshare.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/share/unshare.ts rename to src/plugins/files/server/routes/file_kind/share/unshare.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/types.ts b/src/plugins/files/server/routes/file_kind/types.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/types.ts rename to src/plugins/files/server/routes/file_kind/types.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/update.ts b/src/plugins/files/server/routes/file_kind/update.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/update.ts rename to src/plugins/files/server/routes/file_kind/update.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/upload.test.ts b/src/plugins/files/server/routes/file_kind/upload.test.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/upload.test.ts rename to src/plugins/files/server/routes/file_kind/upload.test.ts diff --git a/x-pack/plugins/files/server/routes/file_kind/upload.ts b/src/plugins/files/server/routes/file_kind/upload.ts similarity index 100% rename from x-pack/plugins/files/server/routes/file_kind/upload.ts rename to src/plugins/files/server/routes/file_kind/upload.ts diff --git a/x-pack/plugins/files/server/routes/find.ts b/src/plugins/files/server/routes/find.ts similarity index 100% rename from x-pack/plugins/files/server/routes/find.ts rename to src/plugins/files/server/routes/find.ts diff --git a/x-pack/plugins/files/server/routes/index.ts b/src/plugins/files/server/routes/index.ts similarity index 100% rename from x-pack/plugins/files/server/routes/index.ts rename to src/plugins/files/server/routes/index.ts diff --git a/x-pack/plugins/files/server/routes/integration_tests/routes.test.ts b/src/plugins/files/server/routes/integration_tests/routes.test.ts similarity index 100% rename from x-pack/plugins/files/server/routes/integration_tests/routes.test.ts rename to src/plugins/files/server/routes/integration_tests/routes.test.ts diff --git a/x-pack/plugins/files/server/routes/metrics.ts b/src/plugins/files/server/routes/metrics.ts similarity index 100% rename from x-pack/plugins/files/server/routes/metrics.ts rename to src/plugins/files/server/routes/metrics.ts diff --git a/x-pack/plugins/files/server/routes/public_facing/download.ts b/src/plugins/files/server/routes/public_facing/download.ts similarity index 100% rename from x-pack/plugins/files/server/routes/public_facing/download.ts rename to src/plugins/files/server/routes/public_facing/download.ts diff --git a/x-pack/plugins/files/server/routes/test_utils.ts b/src/plugins/files/server/routes/test_utils.ts similarity index 100% rename from x-pack/plugins/files/server/routes/test_utils.ts rename to src/plugins/files/server/routes/test_utils.ts diff --git a/x-pack/plugins/files/server/routes/types.ts b/src/plugins/files/server/routes/types.ts similarity index 100% rename from x-pack/plugins/files/server/routes/types.ts rename to src/plugins/files/server/routes/types.ts diff --git a/x-pack/plugins/files/server/saved_objects/file.ts b/src/plugins/files/server/saved_objects/file.ts similarity index 100% rename from x-pack/plugins/files/server/saved_objects/file.ts rename to src/plugins/files/server/saved_objects/file.ts diff --git a/x-pack/plugins/files/server/saved_objects/file_share.ts b/src/plugins/files/server/saved_objects/file_share.ts similarity index 100% rename from x-pack/plugins/files/server/saved_objects/file_share.ts rename to src/plugins/files/server/saved_objects/file_share.ts diff --git a/x-pack/plugins/files/server/saved_objects/index.ts b/src/plugins/files/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/files/server/saved_objects/index.ts rename to src/plugins/files/server/saved_objects/index.ts diff --git a/x-pack/plugins/files/server/test_utils/index.ts b/src/plugins/files/server/test_utils/index.ts similarity index 100% rename from x-pack/plugins/files/server/test_utils/index.ts rename to src/plugins/files/server/test_utils/index.ts diff --git a/x-pack/plugins/files/server/test_utils/setup_integration_environment.ts b/src/plugins/files/server/test_utils/setup_integration_environment.ts similarity index 100% rename from x-pack/plugins/files/server/test_utils/setup_integration_environment.ts rename to src/plugins/files/server/test_utils/setup_integration_environment.ts diff --git a/x-pack/plugins/files/server/types.ts b/src/plugins/files/server/types.ts similarity index 100% rename from x-pack/plugins/files/server/types.ts rename to src/plugins/files/server/types.ts diff --git a/x-pack/plugins/files/server/usage/counters.ts b/src/plugins/files/server/usage/counters.ts similarity index 100% rename from x-pack/plugins/files/server/usage/counters.ts rename to src/plugins/files/server/usage/counters.ts diff --git a/x-pack/plugins/files/server/usage/index.ts b/src/plugins/files/server/usage/index.ts similarity index 100% rename from x-pack/plugins/files/server/usage/index.ts rename to src/plugins/files/server/usage/index.ts diff --git a/x-pack/plugins/files/server/usage/integration_tests/usage.test.ts b/src/plugins/files/server/usage/integration_tests/usage.test.ts similarity index 100% rename from x-pack/plugins/files/server/usage/integration_tests/usage.test.ts rename to src/plugins/files/server/usage/integration_tests/usage.test.ts diff --git a/x-pack/plugins/files/server/usage/register_usage_collector.ts b/src/plugins/files/server/usage/register_usage_collector.ts similarity index 100% rename from x-pack/plugins/files/server/usage/register_usage_collector.ts rename to src/plugins/files/server/usage/register_usage_collector.ts diff --git a/x-pack/plugins/files/server/usage/schema.ts b/src/plugins/files/server/usage/schema.ts similarity index 100% rename from x-pack/plugins/files/server/usage/schema.ts rename to src/plugins/files/server/usage/schema.ts diff --git a/x-pack/plugins/files/tsconfig.json b/src/plugins/files/tsconfig.json similarity index 100% rename from x-pack/plugins/files/tsconfig.json rename to src/plugins/files/tsconfig.json From cf77918c9aa2c28c1c54d81a13ee00cd5132d29f Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 15:59:35 +0200 Subject: [PATCH 02/20] update tsconfig.base.json --- tsconfig.base.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 6d42c567d34226..822bff76a473a5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -115,6 +115,8 @@ "@kbn/expressions-plugin/*": ["src/plugins/expressions/*"], "@kbn/field-formats-plugin": ["src/plugins/field_formats"], "@kbn/field-formats-plugin/*": ["src/plugins/field_formats/*"], + "@kbn/files-plugin": ["src/plugins/files"], + "@kbn/files-plugin/*": ["src/plugins/files/*"], "@kbn/guided-onboarding-plugin": ["src/plugins/guided_onboarding"], "@kbn/guided-onboarding-plugin/*": ["src/plugins/guided_onboarding/*"], "@kbn/home-plugin": ["src/plugins/home"], @@ -351,8 +353,6 @@ "@kbn/features-plugin/*": ["x-pack/plugins/features/*"], "@kbn/file-upload-plugin": ["x-pack/plugins/file_upload"], "@kbn/file-upload-plugin/*": ["x-pack/plugins/file_upload/*"], - "@kbn/files-plugin": ["x-pack/plugins/files"], - "@kbn/files-plugin/*": ["x-pack/plugins/files/*"], "@kbn/fleet-plugin": ["x-pack/plugins/fleet"], "@kbn/fleet-plugin/*": ["x-pack/plugins/fleet/*"], "@kbn/global-search-bar-plugin": ["x-pack/plugins/global_search_bar"], From 154764ec5f59937c4d7544f0eda0b4c4aed5a825 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:00:46 +0200 Subject: [PATCH 03/20] move all of files examples files to examples --- {x-pack/examples => examples}/files_example/.i18nrc.json | 0 {x-pack/examples => examples}/files_example/README.md | 0 {x-pack/examples => examples}/files_example/common/index.ts | 0 {x-pack/examples => examples}/files_example/kibana.json | 0 .../examples => examples}/files_example/public/application.tsx | 0 .../examples => examples}/files_example/public/components/app.tsx | 0 .../files_example/public/components/confirm_button.tsx | 0 .../files_example/public/components/details_flyout.tsx | 0 .../files_example/public/components/file_picker.tsx | 0 .../files_example/public/components/modal.tsx | 0 {x-pack/examples => examples}/files_example/public/imports.ts | 0 {x-pack/examples => examples}/files_example/public/index.ts | 0 {x-pack/examples => examples}/files_example/public/plugin.ts | 0 {x-pack/examples => examples}/files_example/public/types.ts | 0 {x-pack/examples => examples}/files_example/server/index.ts | 0 {x-pack/examples => examples}/files_example/server/plugin.ts | 0 {x-pack/examples => examples}/files_example/server/types.ts | 0 {x-pack/examples => examples}/files_example/tsconfig.json | 0 18 files changed, 0 insertions(+), 0 deletions(-) rename {x-pack/examples => examples}/files_example/.i18nrc.json (100%) rename {x-pack/examples => examples}/files_example/README.md (100%) rename {x-pack/examples => examples}/files_example/common/index.ts (100%) rename {x-pack/examples => examples}/files_example/kibana.json (100%) rename {x-pack/examples => examples}/files_example/public/application.tsx (100%) rename {x-pack/examples => examples}/files_example/public/components/app.tsx (100%) rename {x-pack/examples => examples}/files_example/public/components/confirm_button.tsx (100%) rename {x-pack/examples => examples}/files_example/public/components/details_flyout.tsx (100%) rename {x-pack/examples => examples}/files_example/public/components/file_picker.tsx (100%) rename {x-pack/examples => examples}/files_example/public/components/modal.tsx (100%) rename {x-pack/examples => examples}/files_example/public/imports.ts (100%) rename {x-pack/examples => examples}/files_example/public/index.ts (100%) rename {x-pack/examples => examples}/files_example/public/plugin.ts (100%) rename {x-pack/examples => examples}/files_example/public/types.ts (100%) rename {x-pack/examples => examples}/files_example/server/index.ts (100%) rename {x-pack/examples => examples}/files_example/server/plugin.ts (100%) rename {x-pack/examples => examples}/files_example/server/types.ts (100%) rename {x-pack/examples => examples}/files_example/tsconfig.json (100%) diff --git a/x-pack/examples/files_example/.i18nrc.json b/examples/files_example/.i18nrc.json similarity index 100% rename from x-pack/examples/files_example/.i18nrc.json rename to examples/files_example/.i18nrc.json diff --git a/x-pack/examples/files_example/README.md b/examples/files_example/README.md similarity index 100% rename from x-pack/examples/files_example/README.md rename to examples/files_example/README.md diff --git a/x-pack/examples/files_example/common/index.ts b/examples/files_example/common/index.ts similarity index 100% rename from x-pack/examples/files_example/common/index.ts rename to examples/files_example/common/index.ts diff --git a/x-pack/examples/files_example/kibana.json b/examples/files_example/kibana.json similarity index 100% rename from x-pack/examples/files_example/kibana.json rename to examples/files_example/kibana.json diff --git a/x-pack/examples/files_example/public/application.tsx b/examples/files_example/public/application.tsx similarity index 100% rename from x-pack/examples/files_example/public/application.tsx rename to examples/files_example/public/application.tsx diff --git a/x-pack/examples/files_example/public/components/app.tsx b/examples/files_example/public/components/app.tsx similarity index 100% rename from x-pack/examples/files_example/public/components/app.tsx rename to examples/files_example/public/components/app.tsx diff --git a/x-pack/examples/files_example/public/components/confirm_button.tsx b/examples/files_example/public/components/confirm_button.tsx similarity index 100% rename from x-pack/examples/files_example/public/components/confirm_button.tsx rename to examples/files_example/public/components/confirm_button.tsx diff --git a/x-pack/examples/files_example/public/components/details_flyout.tsx b/examples/files_example/public/components/details_flyout.tsx similarity index 100% rename from x-pack/examples/files_example/public/components/details_flyout.tsx rename to examples/files_example/public/components/details_flyout.tsx diff --git a/x-pack/examples/files_example/public/components/file_picker.tsx b/examples/files_example/public/components/file_picker.tsx similarity index 100% rename from x-pack/examples/files_example/public/components/file_picker.tsx rename to examples/files_example/public/components/file_picker.tsx diff --git a/x-pack/examples/files_example/public/components/modal.tsx b/examples/files_example/public/components/modal.tsx similarity index 100% rename from x-pack/examples/files_example/public/components/modal.tsx rename to examples/files_example/public/components/modal.tsx diff --git a/x-pack/examples/files_example/public/imports.ts b/examples/files_example/public/imports.ts similarity index 100% rename from x-pack/examples/files_example/public/imports.ts rename to examples/files_example/public/imports.ts diff --git a/x-pack/examples/files_example/public/index.ts b/examples/files_example/public/index.ts similarity index 100% rename from x-pack/examples/files_example/public/index.ts rename to examples/files_example/public/index.ts diff --git a/x-pack/examples/files_example/public/plugin.ts b/examples/files_example/public/plugin.ts similarity index 100% rename from x-pack/examples/files_example/public/plugin.ts rename to examples/files_example/public/plugin.ts diff --git a/x-pack/examples/files_example/public/types.ts b/examples/files_example/public/types.ts similarity index 100% rename from x-pack/examples/files_example/public/types.ts rename to examples/files_example/public/types.ts diff --git a/x-pack/examples/files_example/server/index.ts b/examples/files_example/server/index.ts similarity index 100% rename from x-pack/examples/files_example/server/index.ts rename to examples/files_example/server/index.ts diff --git a/x-pack/examples/files_example/server/plugin.ts b/examples/files_example/server/plugin.ts similarity index 100% rename from x-pack/examples/files_example/server/plugin.ts rename to examples/files_example/server/plugin.ts diff --git a/x-pack/examples/files_example/server/types.ts b/examples/files_example/server/types.ts similarity index 100% rename from x-pack/examples/files_example/server/types.ts rename to examples/files_example/server/types.ts diff --git a/x-pack/examples/files_example/tsconfig.json b/examples/files_example/tsconfig.json similarity index 100% rename from x-pack/examples/files_example/tsconfig.json rename to examples/files_example/tsconfig.json From ef8f50139fd8bf558f3dbd603e5797fdc6dfb082 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:01:19 +0200 Subject: [PATCH 04/20] update CODEOWNERS --- .github/CODEOWNERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 63fdf3044be5f7..07f1b8096e3fdf 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -84,8 +84,8 @@ /x-pack/plugins/embeddable_enhanced/ @elastic/kibana-app-services /x-pack/plugins/runtime_fields @elastic/kibana-app-services /src/plugins/dashboard/public/application/embeddable/viewport/print_media @elastic/kibana-app-services -x-pack/plugins/files @elastic/kibana-app-services -x-pack/examples/files_example @elastic/kibana-app-services +/src/plugins/files @elastic/kibana-app-services +/examples/files_example @elastic/kibana-app-services /x-pack/test/search_sessions_integration/ @elastic/kibana-app-services /test/plugin_functional/test_suites/panel_actions @elastic/kibana-app-services /test/plugin_functional/test_suites/data_plugin @elastic/kibana-app-services From 6958b73c32b7f2a3a5efee4eb2589fd6582dd3f9 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:04:25 +0200 Subject: [PATCH 05/20] various updates --- docs/developer/plugin-list.asciidoc | 2 +- src/dev/storybook/aliases.ts | 2 +- src/plugins/files/.storybook/manager.ts | 7 ++++--- src/plugins/files/docs/tutorial.mdx | 2 +- src/plugins/files/jest.config.js | 11 ++++++----- src/plugins/files/jest.integration.config.js | 7 ++++--- .../services/endpoint_response_actions.ts | 2 +- 7 files changed, 18 insertions(+), 15 deletions(-) diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index feb87de90c2e6b..6e90f2fa15a239 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -491,7 +491,7 @@ activities. |The features plugin enhance Kibana with a per-feature privilege system. -|{kib-repo}blob/{branch}/x-pack/plugins/files/README.md[files] +|{kib-repo}blob/{branch}/src/plugins/files/README.md[files] |File upload, download, sharing, and serving over HTTP implementation in Kibana. diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index 85999d75b8997a..7ad2c16224d62c 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -33,7 +33,7 @@ export const storybookAliases = { expression_reveal_image: 'src/plugins/expression_reveal_image/.storybook', expression_shape: 'src/plugins/expression_shape/.storybook', expression_tagcloud: 'src/plugins/chart_expressions/expression_tagcloud/.storybook', - files: 'x-pack/plugins/files/.storybook', + files: 'src/plugins/files/.storybook', fleet: 'x-pack/plugins/fleet/.storybook', home: 'src/plugins/home/.storybook', infra: 'x-pack/plugins/infra/.storybook', diff --git a/src/plugins/files/.storybook/manager.ts b/src/plugins/files/.storybook/manager.ts index 167046920a796d..d49eea1784792c 100644 --- a/src/plugins/files/.storybook/manager.ts +++ b/src/plugins/files/.storybook/manager.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { addons } from '@storybook/addons'; @@ -13,7 +14,7 @@ addons.setConfig({ theme: create({ base: 'light', brandTitle: 'Kibana React Storybook', - brandUrl: 'https://github.com/elastic/kibana/tree/main/x-pack/plugins/files', + brandUrl: 'https://github.com/elastic/kibana/tree/main/src/plugins/files', }), showPanel: true.valueOf, selectedPanel: PANEL_ID, diff --git a/src/plugins/files/docs/tutorial.mdx b/src/plugins/files/docs/tutorial.mdx index b3bfed56dd8652..deef2de26045d4 100644 --- a/src/plugins/files/docs/tutorial.mdx +++ b/src/plugins/files/docs/tutorial.mdx @@ -53,7 +53,7 @@ Consumers of the file service are able to decide what metadata they want to asso ### How to set up files for your plugin -All setup examples are based on the [`filesExample` plugin](https://github.com/elastic/kibana/blob/d431e87f7ff43833bff085e5bb5b2ab603bfa05d/x-pack/examples/files_example/README.md). +All setup examples are based on the [`filesExample` plugin](https://github.com/elastic/kibana/blob/d431e87f7ff43833bff085e5bb5b2ab603bfa05d/examples/files_example/README.md). First add the `files` plugin as a required dependency in your `kibana.json`: diff --git a/src/plugins/files/jest.config.js b/src/plugins/files/jest.config.js index ade30bacab1fab..96e2f529c9acea 100644 --- a/src/plugins/files/jest.config.js +++ b/src/plugins/files/jest.config.js @@ -1,15 +1,16 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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: ['/x-pack/plugins/files'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/files', + roots: ['/src/plugins/files'], + coverageDirectory: '/target/kibana-coverage/jest/src/plugins/files', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/files/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: ['/src/plugins/files/{common,public,server}/**/*.{js,ts,tsx}'], }; diff --git a/src/plugins/files/jest.integration.config.js b/src/plugins/files/jest.integration.config.js index fbcfd8ed04b679..f0fa0a8ccef457 100644 --- a/src/plugins/files/jest.integration.config.js +++ b/src/plugins/files/jest.integration.config.js @@ -1,12 +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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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/jest_integration', rootDir: '../../..', - roots: ['/x-pack/plugins/files'], + roots: ['/src/plugins/files'], }; diff --git a/x-pack/plugins/security_solution/scripts/endpoint/agent_emulator/services/endpoint_response_actions.ts b/x-pack/plugins/security_solution/scripts/endpoint/agent_emulator/services/endpoint_response_actions.ts index 8daeae3a287670..585d549dd55d8f 100644 --- a/x-pack/plugins/security_solution/scripts/endpoint/agent_emulator/services/endpoint_response_actions.ts +++ b/x-pack/plugins/security_solution/scripts/endpoint/agent_emulator/services/endpoint_response_actions.ts @@ -203,7 +203,7 @@ export const sendEndpointActionResponse = async ( // Index the file content (just one chunk) // call to `.index()` copied from File plugin here: - // https://github.com/elastic/kibana/blob/main/x-pack/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts#L195 + // https://github.com/elastic/kibana/blob/main/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts#L195 await esClient.index( { index: FILE_STORAGE_DATA_INDEX, From 6298d14e3156d973b629acce47de045dbf639a94 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:07:59 +0200 Subject: [PATCH 06/20] update all license headers --- src/plugins/files/.storybook/main.ts | 5 +++-- src/plugins/files/common/api_routes.ts | 5 +++-- src/plugins/files/common/constants.ts | 5 +++-- src/plugins/files/common/file_kinds_registry/index.ts | 6 ++++-- src/plugins/files/common/index.ts | 5 +++-- src/plugins/files/common/types.ts | 6 ++++-- src/plugins/files/public/components/context.tsx | 5 +++-- .../file_picker/components/clear_filter_button.tsx | 6 ++++-- .../components/file_picker/components/error_content.tsx | 5 +++-- .../public/components/file_picker/components/file_card.tsx | 5 +++-- .../public/components/file_picker/components/file_grid.tsx | 5 +++-- .../components/file_picker/components/modal_footer.tsx | 5 +++-- .../public/components/file_picker/components/pagination.tsx | 5 +++-- .../components/file_picker/components/search_field.tsx | 5 +++-- .../components/file_picker/components/select_button.tsx | 5 +++-- .../public/components/file_picker/components/title.tsx | 6 ++++-- .../components/file_picker/components/upload_files.tsx | 5 +++-- src/plugins/files/public/components/file_picker/context.tsx | 5 +++-- .../public/components/file_picker/file_picker.stories.tsx | 6 ++++-- .../public/components/file_picker/file_picker.test.tsx | 6 ++++-- .../files/public/components/file_picker/file_picker.tsx | 5 +++-- .../public/components/file_picker/file_picker_state.test.ts | 5 +++-- .../public/components/file_picker/file_picker_state.ts | 6 ++++-- .../files/public/components/file_picker/i18n_texts.ts | 5 +++-- src/plugins/files/public/components/file_picker/index.tsx | 5 +++-- .../files/public/components/image/components/blurhash.tsx | 6 ++++-- .../files/public/components/image/components/img.tsx | 6 ++++-- .../files/public/components/image/components/index.ts | 5 +++-- .../public/components/image/image.constants.stories.tsx | 5 +++-- src/plugins/files/public/components/image/image.stories.tsx | 6 ++++-- src/plugins/files/public/components/image/image.tsx | 6 ++++-- src/plugins/files/public/components/image/index.ts | 5 +++-- src/plugins/files/public/components/image/styles.ts | 5 +++-- .../files/public/components/image/use_viewport_observer.ts | 5 +++-- .../files/public/components/image/viewport_observer.test.ts | 6 ++++-- .../files/public/components/image/viewport_observer.ts | 6 ++++-- src/plugins/files/public/components/index.ts | 5 +++-- src/plugins/files/public/components/stories_shared.ts | 5 +++-- .../components/upload_file/components/cancel_button.tsx | 5 +++-- .../components/upload_file/components/clear_button.tsx | 5 +++-- .../components/upload_file/components/control_button.tsx | 5 +++-- .../files/public/components/upload_file/components/index.ts | 5 +++-- .../components/upload_file/components/retry_button.tsx | 6 ++++-- .../components/upload_file/components/upload_button.tsx | 5 +++-- src/plugins/files/public/components/upload_file/context.ts | 6 ++++-- .../files/public/components/upload_file/i18n_texts.ts | 5 +++-- src/plugins/files/public/components/upload_file/index.tsx | 5 +++-- .../public/components/upload_file/upload_file.component.tsx | 5 +++-- .../public/components/upload_file/upload_file.stories.tsx | 6 ++++-- .../public/components/upload_file/upload_file.test.tsx | 5 +++-- .../files/public/components/upload_file/upload_file.tsx | 5 +++-- .../public/components/upload_file/upload_state.test.ts | 5 +++-- .../files/public/components/upload_file/upload_state.ts | 5 +++-- .../files/public/components/upload_file/util/index.ts | 5 +++-- .../components/upload_file/util/parse_file_name.test.ts | 5 +++-- .../public/components/upload_file/util/parse_file_name.ts | 5 +++-- .../components/upload_file/util/simple_state_subject.ts | 5 +++-- src/plugins/files/public/components/use_behavior_subject.ts | 5 +++-- .../files/public/components/util/image_metadata.test.ts | 6 ++++-- src/plugins/files/public/components/util/image_metadata.ts | 5 +++-- src/plugins/files/public/components/util/index.ts | 5 +++-- src/plugins/files/public/files_client/files_client.test.ts | 5 +++-- src/plugins/files/public/files_client/files_client.ts | 5 +++-- src/plugins/files/public/files_client/index.ts | 5 +++-- src/plugins/files/public/index.ts | 5 +++-- src/plugins/files/public/mocks.ts | 5 +++-- src/plugins/files/public/plugin.ts | 5 +++-- src/plugins/files/public/types.ts | 5 +++-- src/plugins/files/server/audit_events.ts | 5 +++-- .../adapters/es/content_stream/content_stream.test.ts | 5 +++-- .../adapters/es/content_stream/content_stream.ts | 5 +++-- .../adapters/es/content_stream/index.ts | 5 +++-- .../server/blob_storage_service/adapters/es/es.test.ts | 6 ++++-- .../files/server/blob_storage_service/adapters/es/es.ts | 5 +++-- .../files/server/blob_storage_service/adapters/es/index.ts | 5 +++-- .../adapters/es/integration_tests/es.test.ts | 5 +++-- .../server/blob_storage_service/adapters/es/mappings.ts | 5 +++-- .../files/server/blob_storage_service/adapters/index.ts | 5 +++-- .../server/blob_storage_service/blob_storage_service.ts | 6 ++++-- src/plugins/files/server/blob_storage_service/index.ts | 5 +++-- src/plugins/files/server/blob_storage_service/types.ts | 5 +++-- src/plugins/files/server/feature.ts | 5 +++-- src/plugins/files/server/file/errors.ts | 5 +++-- src/plugins/files/server/file/file.test.ts | 6 ++++-- src/plugins/files/server/file/file.ts | 5 +++-- src/plugins/files/server/file/file_attributes_reducer.ts | 6 ++++-- src/plugins/files/server/file/index.ts | 5 +++-- src/plugins/files/server/file/to_json.ts | 5 +++-- .../files/server/file_client/create_es_file_client.ts | 5 +++-- src/plugins/files/server/file_client/file_client.ts | 6 ++++-- .../file_client/file_metadata_client/adapters/es_index.ts | 5 +++-- .../file_client/file_metadata_client/adapters/index.ts | 5 +++-- .../file_metadata_client/adapters/query_filters.ts | 6 ++++-- .../file_metadata_client/adapters/saved_objects.ts | 5 +++-- .../file_metadata_client/file_metadata_client.ts | 5 +++-- .../files/server/file_client/file_metadata_client/index.ts | 5 +++-- src/plugins/files/server/file_client/index.ts | 5 +++-- .../file_client/integration_tests/es_file_client.test.ts | 6 ++++-- .../files/server/file_client/stream_transforms/index.ts | 5 +++-- .../stream_transforms/max_byte_size_transform/errors.ts | 5 +++-- .../stream_transforms/max_byte_size_transform/index.ts | 5 +++-- .../max_byte_size_transform/max_byte_size_transform.test.ts | 5 +++-- .../max_byte_size_transform/max_byte_size_transform.ts | 5 +++-- src/plugins/files/server/file_client/types.ts | 5 +++-- src/plugins/files/server/file_client/utils.ts | 5 +++-- src/plugins/files/server/file_service/errors.ts | 5 +++-- src/plugins/files/server/file_service/file_action_types.ts | 5 +++-- src/plugins/files/server/file_service/file_service.ts | 5 +++-- .../files/server/file_service/file_service_factory.ts | 5 +++-- src/plugins/files/server/file_service/index.ts | 5 +++-- .../files/server/file_service/internal_file_service.ts | 5 +++-- src/plugins/files/server/file_share_service/errors.ts | 5 +++-- .../server/file_share_service/generate_share_token.test.ts | 5 +++-- .../files/server/file_share_service/generate_share_token.ts | 5 +++-- src/plugins/files/server/file_share_service/index.ts | 5 +++-- .../file_share_service/internal_file_share_service.ts | 6 ++++-- src/plugins/files/server/file_share_service/types.ts | 5 +++-- src/plugins/files/server/index.ts | 5 +++-- .../files/server/integration_tests/file_service.test.ts | 5 +++-- src/plugins/files/server/mocks.ts | 6 ++++-- src/plugins/files/server/plugin.ts | 5 +++-- src/plugins/files/server/routes/api_routes.ts | 5 +++-- src/plugins/files/server/routes/common.test.ts | 5 +++-- src/plugins/files/server/routes/common.ts | 6 ++++-- src/plugins/files/server/routes/common_schemas.ts | 5 +++-- src/plugins/files/server/routes/file_kind/create.ts | 5 +++-- src/plugins/files/server/routes/file_kind/delete.ts | 5 +++-- src/plugins/files/server/routes/file_kind/download.ts | 5 +++-- src/plugins/files/server/routes/file_kind/enhance_router.ts | 5 +++-- src/plugins/files/server/routes/file_kind/get_by_id.ts | 5 +++-- src/plugins/files/server/routes/file_kind/helpers.ts | 5 +++-- src/plugins/files/server/routes/file_kind/index.ts | 6 ++++-- .../file_kind/integration_tests/file_kind_http.test.ts | 5 +++-- src/plugins/files/server/routes/file_kind/list.ts | 6 ++++-- src/plugins/files/server/routes/file_kind/share/get.ts | 6 ++++-- src/plugins/files/server/routes/file_kind/share/list.ts | 6 ++++-- src/plugins/files/server/routes/file_kind/share/share.ts | 6 ++++-- src/plugins/files/server/routes/file_kind/share/unshare.ts | 6 ++++-- src/plugins/files/server/routes/file_kind/types.ts | 5 +++-- src/plugins/files/server/routes/file_kind/update.ts | 5 +++-- src/plugins/files/server/routes/file_kind/upload.test.ts | 5 +++-- src/plugins/files/server/routes/file_kind/upload.ts | 5 +++-- src/plugins/files/server/routes/find.ts | 6 ++++-- src/plugins/files/server/routes/index.ts | 5 +++-- .../files/server/routes/integration_tests/routes.test.ts | 5 +++-- src/plugins/files/server/routes/metrics.ts | 6 ++++-- src/plugins/files/server/routes/public_facing/download.ts | 6 ++++-- src/plugins/files/server/routes/test_utils.ts | 5 +++-- src/plugins/files/server/routes/types.ts | 5 +++-- src/plugins/files/server/saved_objects/file.ts | 5 +++-- src/plugins/files/server/saved_objects/file_share.ts | 5 +++-- src/plugins/files/server/saved_objects/index.ts | 5 +++-- src/plugins/files/server/test_utils/index.ts | 5 +++-- .../server/test_utils/setup_integration_environment.ts | 5 +++-- src/plugins/files/server/types.ts | 6 ++++-- src/plugins/files/server/usage/counters.ts | 5 +++-- src/plugins/files/server/usage/index.ts | 5 +++-- .../files/server/usage/integration_tests/usage.test.ts | 5 +++-- src/plugins/files/server/usage/register_usage_collector.ts | 6 ++++-- src/plugins/files/server/usage/schema.ts | 5 +++-- 160 files changed, 518 insertions(+), 320 deletions(-) diff --git a/src/plugins/files/.storybook/main.ts b/src/plugins/files/.storybook/main.ts index e82ec6c47bbec1..f9d5b3ea3eddce 100644 --- a/src/plugins/files/.storybook/main.ts +++ b/src/plugins/files/.storybook/main.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { defaultConfig } from '@kbn/storybook'; diff --git a/src/plugins/files/common/api_routes.ts b/src/plugins/files/common/api_routes.ts index 2f522e7c771503..7d95d24be9ec00 100644 --- a/src/plugins/files/common/api_routes.ts +++ b/src/plugins/files/common/api_routes.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { TypeOf, Type } from '@kbn/config-schema'; diff --git a/src/plugins/files/common/constants.ts b/src/plugins/files/common/constants.ts index 665945c1c65c16..19f0736eeaf474 100644 --- a/src/plugins/files/common/constants.ts +++ b/src/plugins/files/common/constants.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ /** diff --git a/src/plugins/files/common/file_kinds_registry/index.ts b/src/plugins/files/common/file_kinds_registry/index.ts index 5df6744546c030..afed906bd0aa3d 100644 --- a/src/plugins/files/common/file_kinds_registry/index.ts +++ b/src/plugins/files/common/file_kinds_registry/index.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { createGetterSetter } from '@kbn/kibana-utils-plugin/common'; import assert from 'assert'; import { FileKind } from '..'; diff --git a/src/plugins/files/common/index.ts b/src/plugins/files/common/index.ts index be06c5708ce06a..ece05d00a8bd3e 100755 --- a/src/plugins/files/common/index.ts +++ b/src/plugins/files/common/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { FILE_SO_TYPE, PLUGIN_ID, PLUGIN_NAME, ES_FIXED_SIZE_INDEX_BLOB_STORE } from './constants'; diff --git a/src/plugins/files/common/types.ts b/src/plugins/files/common/types.ts index 53f97962597a8b..48b05076fe02d4 100644 --- a/src/plugins/files/common/types.ts +++ b/src/plugins/files/common/types.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import type { SavedObject } from '@kbn/core/server'; import type { Observable } from 'rxjs'; import type { Readable } from 'stream'; diff --git a/src/plugins/files/public/components/context.tsx b/src/plugins/files/public/components/context.tsx index a18ea212beffe1..fbf73999b625fd 100644 --- a/src/plugins/files/public/components/context.tsx +++ b/src/plugins/files/public/components/context.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React, { createContext, useContext, type FunctionComponent } from 'react'; diff --git a/src/plugins/files/public/components/file_picker/components/clear_filter_button.tsx b/src/plugins/files/public/components/file_picker/components/clear_filter_button.tsx index 14356b9b02bd49..328b765c052e21 100644 --- a/src/plugins/files/public/components/file_picker/components/clear_filter_button.tsx +++ b/src/plugins/files/public/components/file_picker/components/clear_filter_button.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React from 'react'; import type { FunctionComponent } from 'react'; import useObservable from 'react-use/lib/useObservable'; diff --git a/src/plugins/files/public/components/file_picker/components/error_content.tsx b/src/plugins/files/public/components/file_picker/components/error_content.tsx index c2925c793fe636..d37b2ffdc2f464 100644 --- a/src/plugins/files/public/components/file_picker/components/error_content.tsx +++ b/src/plugins/files/public/components/file_picker/components/error_content.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/src/plugins/files/public/components/file_picker/components/file_card.tsx b/src/plugins/files/public/components/file_picker/components/file_card.tsx index 88c77f36a6c008..a7cd5f8018432d 100644 --- a/src/plugins/files/public/components/file_picker/components/file_card.tsx +++ b/src/plugins/files/public/components/file_picker/components/file_card.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/src/plugins/files/public/components/file_picker/components/file_grid.tsx b/src/plugins/files/public/components/file_picker/components/file_grid.tsx index 2f2a9722d55b76..b2d9658e0a07fe 100644 --- a/src/plugins/files/public/components/file_picker/components/file_grid.tsx +++ b/src/plugins/files/public/components/file_picker/components/file_grid.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/src/plugins/files/public/components/file_picker/components/modal_footer.tsx b/src/plugins/files/public/components/file_picker/components/modal_footer.tsx index d0d0e146d2c3b2..0f89db484eaeaa 100644 --- a/src/plugins/files/public/components/file_picker/components/modal_footer.tsx +++ b/src/plugins/files/public/components/file_picker/components/modal_footer.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { EuiFlexGroup, EuiModalFooter } from '@elastic/eui'; diff --git a/src/plugins/files/public/components/file_picker/components/pagination.tsx b/src/plugins/files/public/components/file_picker/components/pagination.tsx index bc2d0d444ba45d..1a2214a75782e5 100644 --- a/src/plugins/files/public/components/file_picker/components/pagination.tsx +++ b/src/plugins/files/public/components/file_picker/components/pagination.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/src/plugins/files/public/components/file_picker/components/search_field.tsx b/src/plugins/files/public/components/file_picker/components/search_field.tsx index 0235b03dd3fc15..45fca560d11105 100644 --- a/src/plugins/files/public/components/file_picker/components/search_field.tsx +++ b/src/plugins/files/public/components/file_picker/components/search_field.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { FunctionComponent } from 'react'; diff --git a/src/plugins/files/public/components/file_picker/components/select_button.tsx b/src/plugins/files/public/components/file_picker/components/select_button.tsx index ac5e241c01d532..462f727da60e00 100644 --- a/src/plugins/files/public/components/file_picker/components/select_button.tsx +++ b/src/plugins/files/public/components/file_picker/components/select_button.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { EuiButton } from '@elastic/eui'; diff --git a/src/plugins/files/public/components/file_picker/components/title.tsx b/src/plugins/files/public/components/file_picker/components/title.tsx index de1015241f656b..2d4de8881fa765 100644 --- a/src/plugins/files/public/components/file_picker/components/title.tsx +++ b/src/plugins/files/public/components/file_picker/components/title.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React from 'react'; import type { FunctionComponent } from 'react'; import { EuiTitle } from '@elastic/eui'; diff --git a/src/plugins/files/public/components/file_picker/components/upload_files.tsx b/src/plugins/files/public/components/file_picker/components/upload_files.tsx index 143d20fd63ec07..a33f458bdf9d2f 100644 --- a/src/plugins/files/public/components/file_picker/components/upload_files.tsx +++ b/src/plugins/files/public/components/file_picker/components/upload_files.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/src/plugins/files/public/components/file_picker/context.tsx b/src/plugins/files/public/components/file_picker/context.tsx index 67e745b7458296..48d0ea39862530 100644 --- a/src/plugins/files/public/components/file_picker/context.tsx +++ b/src/plugins/files/public/components/file_picker/context.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React, { createContext, useContext, useMemo, useEffect } from 'react'; diff --git a/src/plugins/files/public/components/file_picker/file_picker.stories.tsx b/src/plugins/files/public/components/file_picker/file_picker.stories.tsx index 9d40b112b40606..517663ebbbbbe4 100644 --- a/src/plugins/files/public/components/file_picker/file_picker.stories.tsx +++ b/src/plugins/files/public/components/file_picker/file_picker.stories.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React from 'react'; import { ComponentMeta, ComponentStory } from '@storybook/react'; import { action } from '@storybook/addon-actions'; diff --git a/src/plugins/files/public/components/file_picker/file_picker.test.tsx b/src/plugins/files/public/components/file_picker/file_picker.test.tsx index 14b621050a0ef6..323b22cf751dd5 100644 --- a/src/plugins/files/public/components/file_picker/file_picker.test.tsx +++ b/src/plugins/files/public/components/file_picker/file_picker.test.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React from 'react'; import { EuiButtonEmpty } from '@elastic/eui'; import { act } from 'react-dom/test-utils'; diff --git a/src/plugins/files/public/components/file_picker/file_picker.tsx b/src/plugins/files/public/components/file_picker/file_picker.tsx index 72920b72a865d4..5c274db15526c1 100644 --- a/src/plugins/files/public/components/file_picker/file_picker.tsx +++ b/src/plugins/files/public/components/file_picker/file_picker.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/src/plugins/files/public/components/file_picker/file_picker_state.test.ts b/src/plugins/files/public/components/file_picker/file_picker_state.test.ts index 79eb5cbfa529d1..5b5d054bf42372 100644 --- a/src/plugins/files/public/components/file_picker/file_picker_state.test.ts +++ b/src/plugins/files/public/components/file_picker/file_picker_state.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ jest.mock('rxjs', () => { diff --git a/src/plugins/files/public/components/file_picker/file_picker_state.ts b/src/plugins/files/public/components/file_picker/file_picker_state.ts index 697f1fc58188d8..63e2a54ad3d527 100644 --- a/src/plugins/files/public/components/file_picker/file_picker_state.ts +++ b/src/plugins/files/public/components/file_picker/file_picker_state.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { map, tap, diff --git a/src/plugins/files/public/components/file_picker/i18n_texts.ts b/src/plugins/files/public/components/file_picker/i18n_texts.ts index 2670ecd71b084a..805ebc5fa37481 100644 --- a/src/plugins/files/public/components/file_picker/i18n_texts.ts +++ b/src/plugins/files/public/components/file_picker/i18n_texts.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { i18n } from '@kbn/i18n'; diff --git a/src/plugins/files/public/components/file_picker/index.tsx b/src/plugins/files/public/components/file_picker/index.tsx index 47c892ef1cadde..9ec6b9f778035f 100644 --- a/src/plugins/files/public/components/file_picker/index.tsx +++ b/src/plugins/files/public/components/file_picker/index.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React, { lazy, Suspense } from 'react'; diff --git a/src/plugins/files/public/components/image/components/blurhash.tsx b/src/plugins/files/public/components/image/components/blurhash.tsx index 62dfb8b1f075dd..7a931e91ddaeab 100644 --- a/src/plugins/files/public/components/image/components/blurhash.tsx +++ b/src/plugins/files/public/components/image/components/blurhash.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { decode } from 'blurhash'; import React, { useRef, useEffect } from 'react'; import type { FunctionComponent } from 'react'; diff --git a/src/plugins/files/public/components/image/components/img.tsx b/src/plugins/files/public/components/image/components/img.tsx index 953eb93a19917e..cd814e6e36cd3b 100644 --- a/src/plugins/files/public/components/image/components/img.tsx +++ b/src/plugins/files/public/components/image/components/img.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React from 'react'; import type { ImgHTMLAttributes, MutableRefObject } from 'react'; import type { EuiImageSize } from '@elastic/eui/src/components/image/image_types'; diff --git a/src/plugins/files/public/components/image/components/index.ts b/src/plugins/files/public/components/image/components/index.ts index 7fee8f7fd63fbc..bae3c92eab5176 100644 --- a/src/plugins/files/public/components/image/components/index.ts +++ b/src/plugins/files/public/components/image/components/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { Img } from './img'; diff --git a/src/plugins/files/public/components/image/image.constants.stories.tsx b/src/plugins/files/public/components/image/image.constants.stories.tsx index cc5ff23cd28107..b9b3a5c3831cb8 100644 --- a/src/plugins/files/public/components/image/image.constants.stories.tsx +++ b/src/plugins/files/public/components/image/image.constants.stories.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export function getImageData(): Blob { diff --git a/src/plugins/files/public/components/image/image.stories.tsx b/src/plugins/files/public/components/image/image.stories.tsx index ff8825485f9cb4..d26a74470bdca9 100644 --- a/src/plugins/files/public/components/image/image.stories.tsx +++ b/src/plugins/files/public/components/image/image.stories.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { action } from '@storybook/addon-actions'; diff --git a/src/plugins/files/public/components/image/image.tsx b/src/plugins/files/public/components/image/image.tsx index e353fced3ec3e3..ae7133c7569d48 100644 --- a/src/plugins/files/public/components/image/image.tsx +++ b/src/plugins/files/public/components/image/image.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React, { HTMLAttributes } from 'react'; import { type ImgHTMLAttributes, useState, useEffect } from 'react'; import { css } from '@emotion/react'; diff --git a/src/plugins/files/public/components/image/index.ts b/src/plugins/files/public/components/image/index.ts index 05ffe3dd1c4e72..2e7825acc12603 100644 --- a/src/plugins/files/public/components/image/index.ts +++ b/src/plugins/files/public/components/image/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { Image } from './image'; diff --git a/src/plugins/files/public/components/image/styles.ts b/src/plugins/files/public/components/image/styles.ts index b14121c667a508..d69580bcb51a5d 100644 --- a/src/plugins/files/public/components/image/styles.ts +++ b/src/plugins/files/public/components/image/styles.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { css } from '@emotion/react'; diff --git a/src/plugins/files/public/components/image/use_viewport_observer.ts b/src/plugins/files/public/components/image/use_viewport_observer.ts index c1951b4448de85..6e43cc9d124f6a 100644 --- a/src/plugins/files/public/components/image/use_viewport_observer.ts +++ b/src/plugins/files/public/components/image/use_viewport_observer.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { useCallback, useEffect, useRef, useState } from 'react'; diff --git a/src/plugins/files/public/components/image/viewport_observer.test.ts b/src/plugins/files/public/components/image/viewport_observer.test.ts index 5e5ebd3d420295..f5dafb25fc724a 100644 --- a/src/plugins/files/public/components/image/viewport_observer.test.ts +++ b/src/plugins/files/public/components/image/viewport_observer.test.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { TestScheduler } from 'rxjs/testing'; import { ViewportObserver } from './viewport_observer'; diff --git a/src/plugins/files/public/components/image/viewport_observer.ts b/src/plugins/files/public/components/image/viewport_observer.ts index c0efe3d0955945..165af5aecb98c8 100644 --- a/src/plugins/files/public/components/image/viewport_observer.ts +++ b/src/plugins/files/public/components/image/viewport_observer.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { once } from 'lodash'; import { Observable, ReplaySubject } from 'rxjs'; import { take } from 'rxjs/operators'; diff --git a/src/plugins/files/public/components/index.ts b/src/plugins/files/public/components/index.ts index c5ab1382b4dfaa..e4470d4a58be76 100644 --- a/src/plugins/files/public/components/index.ts +++ b/src/plugins/files/public/components/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { Image, type ImageProps } from './image'; diff --git a/src/plugins/files/public/components/stories_shared.ts b/src/plugins/files/public/components/stories_shared.ts index a82ec3295b1d00..f20058ea0f58e6 100644 --- a/src/plugins/files/public/components/stories_shared.ts +++ b/src/plugins/files/public/components/stories_shared.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { FileKind } from '../../common'; diff --git a/src/plugins/files/public/components/upload_file/components/cancel_button.tsx b/src/plugins/files/public/components/upload_file/components/cancel_button.tsx index b71a6221f3b2d2..4bf6aead091201 100644 --- a/src/plugins/files/public/components/upload_file/components/cancel_button.tsx +++ b/src/plugins/files/public/components/upload_file/components/cancel_button.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { EuiButton, EuiButtonIcon } from '@elastic/eui'; diff --git a/src/plugins/files/public/components/upload_file/components/clear_button.tsx b/src/plugins/files/public/components/upload_file/components/clear_button.tsx index 929fe0dcc65b04..09733a9c587690 100644 --- a/src/plugins/files/public/components/upload_file/components/clear_button.tsx +++ b/src/plugins/files/public/components/upload_file/components/clear_button.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { EuiButtonEmpty } from '@elastic/eui'; diff --git a/src/plugins/files/public/components/upload_file/components/control_button.tsx b/src/plugins/files/public/components/upload_file/components/control_button.tsx index 351cf2c39edd1a..c52d72545e04ea 100644 --- a/src/plugins/files/public/components/upload_file/components/control_button.tsx +++ b/src/plugins/files/public/components/upload_file/components/control_button.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { FunctionComponent } from 'react'; diff --git a/src/plugins/files/public/components/upload_file/components/index.ts b/src/plugins/files/public/components/upload_file/components/index.ts index fbc7ffd8eda79f..427af9af2cc486 100644 --- a/src/plugins/files/public/components/upload_file/components/index.ts +++ b/src/plugins/files/public/components/upload_file/components/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { ControlButton } from './control_button'; diff --git a/src/plugins/files/public/components/upload_file/components/retry_button.tsx b/src/plugins/files/public/components/upload_file/components/retry_button.tsx index 355495aa25c17d..273515331b3c94 100644 --- a/src/plugins/files/public/components/upload_file/components/retry_button.tsx +++ b/src/plugins/files/public/components/upload_file/components/retry_button.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { EuiButton } from '@elastic/eui'; import type { FunctionComponent } from 'react'; import React from 'react'; diff --git a/src/plugins/files/public/components/upload_file/components/upload_button.tsx b/src/plugins/files/public/components/upload_file/components/upload_button.tsx index ff6320ab0b95ae..2bd024ad2e1ada 100644 --- a/src/plugins/files/public/components/upload_file/components/upload_button.tsx +++ b/src/plugins/files/public/components/upload_file/components/upload_button.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { EuiButton } from '@elastic/eui'; diff --git a/src/plugins/files/public/components/upload_file/context.ts b/src/plugins/files/public/components/upload_file/context.ts index e88f5d2441489a..187639cb3dda0a 100644 --- a/src/plugins/files/public/components/upload_file/context.ts +++ b/src/plugins/files/public/components/upload_file/context.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React from 'react'; import type { UploadState } from './upload_state'; diff --git a/src/plugins/files/public/components/upload_file/i18n_texts.ts b/src/plugins/files/public/components/upload_file/i18n_texts.ts index b58616e3d86b05..eb130cd3342ee5 100644 --- a/src/plugins/files/public/components/upload_file/i18n_texts.ts +++ b/src/plugins/files/public/components/upload_file/i18n_texts.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { i18n } from '@kbn/i18n'; diff --git a/src/plugins/files/public/components/upload_file/index.tsx b/src/plugins/files/public/components/upload_file/index.tsx index 4901c46a78c915..55de5b672b34bb 100644 --- a/src/plugins/files/public/components/upload_file/index.tsx +++ b/src/plugins/files/public/components/upload_file/index.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React, { lazy, Suspense } from 'react'; diff --git a/src/plugins/files/public/components/upload_file/upload_file.component.tsx b/src/plugins/files/public/components/upload_file/upload_file.component.tsx index 8c81ae3fdcb211..92e3cb85cb3983 100644 --- a/src/plugins/files/public/components/upload_file/upload_file.component.tsx +++ b/src/plugins/files/public/components/upload_file/upload_file.component.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/src/plugins/files/public/components/upload_file/upload_file.stories.tsx b/src/plugins/files/public/components/upload_file/upload_file.stories.tsx index 635400223fc174..2a07b8b8f5db54 100644 --- a/src/plugins/files/public/components/upload_file/upload_file.stories.tsx +++ b/src/plugins/files/public/components/upload_file/upload_file.stories.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import React from 'react'; import { ComponentMeta, ComponentStory } from '@storybook/react'; import { action } from '@storybook/addon-actions'; diff --git a/src/plugins/files/public/components/upload_file/upload_file.test.tsx b/src/plugins/files/public/components/upload_file/upload_file.test.tsx index 7682b085eb0608..a8230094ccd787 100644 --- a/src/plugins/files/public/components/upload_file/upload_file.test.tsx +++ b/src/plugins/files/public/components/upload_file/upload_file.test.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/src/plugins/files/public/components/upload_file/upload_file.tsx b/src/plugins/files/public/components/upload_file/upload_file.tsx index d0ca3577b27a03..c223e0723b090c 100644 --- a/src/plugins/files/public/components/upload_file/upload_file.tsx +++ b/src/plugins/files/public/components/upload_file/upload_file.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { EuiFilePicker } from '@elastic/eui'; diff --git a/src/plugins/files/public/components/upload_file/upload_state.test.ts b/src/plugins/files/public/components/upload_file/upload_state.test.ts index a834103a2c9cbf..7a73009c35c49b 100644 --- a/src/plugins/files/public/components/upload_file/upload_state.test.ts +++ b/src/plugins/files/public/components/upload_file/upload_state.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { DeeplyMockedKeys } from '@kbn/utility-types-jest'; diff --git a/src/plugins/files/public/components/upload_file/upload_state.ts b/src/plugins/files/public/components/upload_file/upload_state.ts index 13c4cc020b05ad..43f2cc1402e15f 100644 --- a/src/plugins/files/public/components/upload_file/upload_state.ts +++ b/src/plugins/files/public/components/upload_file/upload_state.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { diff --git a/src/plugins/files/public/components/upload_file/util/index.ts b/src/plugins/files/public/components/upload_file/util/index.ts index e8fbb4e1ecedc8..18bdee6fcffe06 100644 --- a/src/plugins/files/public/components/upload_file/util/index.ts +++ b/src/plugins/files/public/components/upload_file/util/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { SimpleStateSubject, createStateSubject } from './simple_state_subject'; diff --git a/src/plugins/files/public/components/upload_file/util/parse_file_name.test.ts b/src/plugins/files/public/components/upload_file/util/parse_file_name.test.ts index bfe27b50a9f43c..76d342a70cf7e4 100644 --- a/src/plugins/files/public/components/upload_file/util/parse_file_name.test.ts +++ b/src/plugins/files/public/components/upload_file/util/parse_file_name.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { parseFileName } from './parse_file_name'; diff --git a/src/plugins/files/public/components/upload_file/util/parse_file_name.ts b/src/plugins/files/public/components/upload_file/util/parse_file_name.ts index 485b3013631dd8..aaa7b9a759f7b4 100644 --- a/src/plugins/files/public/components/upload_file/util/parse_file_name.ts +++ b/src/plugins/files/public/components/upload_file/util/parse_file_name.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ interface Result { diff --git a/src/plugins/files/public/components/upload_file/util/simple_state_subject.ts b/src/plugins/files/public/components/upload_file/util/simple_state_subject.ts index a55259b4962ed2..b5cc19a9ea3ee1 100644 --- a/src/plugins/files/public/components/upload_file/util/simple_state_subject.ts +++ b/src/plugins/files/public/components/upload_file/util/simple_state_subject.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { merge } from 'lodash'; diff --git a/src/plugins/files/public/components/use_behavior_subject.ts b/src/plugins/files/public/components/use_behavior_subject.ts index f68ae6faef28ca..441a14667df186 100644 --- a/src/plugins/files/public/components/use_behavior_subject.ts +++ b/src/plugins/files/public/components/use_behavior_subject.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { BehaviorSubject } from 'rxjs'; diff --git a/src/plugins/files/public/components/util/image_metadata.test.ts b/src/plugins/files/public/components/util/image_metadata.test.ts index 16980aee002969..de4cba5c82dc91 100644 --- a/src/plugins/files/public/components/util/image_metadata.test.ts +++ b/src/plugins/files/public/components/util/image_metadata.test.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { fitToBox } from './image_metadata'; describe('util', () => { describe('fitToBox', () => { diff --git a/src/plugins/files/public/components/util/image_metadata.ts b/src/plugins/files/public/components/util/image_metadata.ts index 9c6e74f4c01011..75a42efed585cf 100644 --- a/src/plugins/files/public/components/util/image_metadata.ts +++ b/src/plugins/files/public/components/util/image_metadata.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import * as bh from 'blurhash'; diff --git a/src/plugins/files/public/components/util/index.ts b/src/plugins/files/public/components/util/index.ts index e3e30fdb17bb32..5c25ffd636a5c0 100644 --- a/src/plugins/files/public/components/util/index.ts +++ b/src/plugins/files/public/components/util/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { getImageMetadata, isImage, fitToBox } from './image_metadata'; diff --git a/src/plugins/files/public/files_client/files_client.test.ts b/src/plugins/files/public/files_client/files_client.test.ts index 63bed16c07ead7..caef61d2311105 100644 --- a/src/plugins/files/public/files_client/files_client.test.ts +++ b/src/plugins/files/public/files_client/files_client.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { apiRoutes } from './files_client'; diff --git a/src/plugins/files/public/files_client/files_client.ts b/src/plugins/files/public/files_client/files_client.ts index f92b2c91d27969..86a2c1c92957c8 100644 --- a/src/plugins/files/public/files_client/files_client.ts +++ b/src/plugins/files/public/files_client/files_client.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { HttpStart } from '@kbn/core/public'; diff --git a/src/plugins/files/public/files_client/index.ts b/src/plugins/files/public/files_client/index.ts index 60f3022e825dfd..cc493c053e61d2 100644 --- a/src/plugins/files/public/files_client/index.ts +++ b/src/plugins/files/public/files_client/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { createFilesClient } from './files_client'; diff --git a/src/plugins/files/public/index.ts b/src/plugins/files/public/index.ts index a9bd88615ff128..5822efb655735d 100644 --- a/src/plugins/files/public/index.ts +++ b/src/plugins/files/public/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { FilesPlugin } from './plugin'; diff --git a/src/plugins/files/public/mocks.ts b/src/plugins/files/public/mocks.ts index c34438d096a2bf..c19843f3f098da 100644 --- a/src/plugins/files/public/mocks.ts +++ b/src/plugins/files/public/mocks.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { DeeplyMockedKeys } from '@kbn/utility-types-jest'; diff --git a/src/plugins/files/public/plugin.ts b/src/plugins/files/public/plugin.ts index 2f5481f8f2511c..a91b565d2a540a 100644 --- a/src/plugins/files/public/plugin.ts +++ b/src/plugins/files/public/plugin.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { CoreSetup, CoreStart, Plugin } from '@kbn/core/public'; diff --git a/src/plugins/files/public/types.ts b/src/plugins/files/public/types.ts index fcc5c11b1ae454..eb5d28a02f6d44 100644 --- a/src/plugins/files/public/types.ts +++ b/src/plugins/files/public/types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { FileJSON } from '../common'; diff --git a/src/plugins/files/server/audit_events.ts b/src/plugins/files/server/audit_events.ts index ab5d33a65b7644..aea5b6b199fd98 100644 --- a/src/plugins/files/server/audit_events.ts +++ b/src/plugins/files/server/audit_events.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { EcsEventOutcome } from '@kbn/logging'; diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts index 56f61e83e47f99..48410081da3ff6 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { Logger } from '@kbn/core/server'; diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts index 746c66798b5e8a..b4b34b5cca83f6 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/content_stream.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import cuid from 'cuid'; diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts index a31e0c8b672dcb..e3a21c52f3f07a 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/content_stream/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/es.test.ts b/src/plugins/files/server/blob_storage_service/adapters/es/es.test.ts index 9d1ddda7397171..bc2cbe0870d593 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/es.test.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/es.test.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { Readable } from 'stream'; import { promisify } from 'util'; import { ElasticsearchClient } from '@kbn/core-elasticsearch-server'; diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/es.ts b/src/plugins/files/server/blob_storage_service/adapters/es/es.ts index 96421a06e95c5d..2bf582e18d321e 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/es.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/es.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import assert from 'assert'; diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/index.ts b/src/plugins/files/server/blob_storage_service/adapters/es/index.ts index 75ac82acb66df5..c0c37cd4c28784 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/index.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { ElasticsearchBlobStorageClient, MAX_BLOB_STORE_SIZE_BYTES } from './es'; diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts b/src/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts index 8bcc8c503bb492..8e5b7d63218e63 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/integration_tests/es.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import sinon from 'sinon'; diff --git a/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts b/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts index dbcd57a06ba184..6f7f99d8181934 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/es/mappings.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { diff --git a/src/plugins/files/server/blob_storage_service/adapters/index.ts b/src/plugins/files/server/blob_storage_service/adapters/index.ts index 75ac82acb66df5..c0c37cd4c28784 100644 --- a/src/plugins/files/server/blob_storage_service/adapters/index.ts +++ b/src/plugins/files/server/blob_storage_service/adapters/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { ElasticsearchBlobStorageClient, MAX_BLOB_STORE_SIZE_BYTES } from './es'; diff --git a/src/plugins/files/server/blob_storage_service/blob_storage_service.ts b/src/plugins/files/server/blob_storage_service/blob_storage_service.ts index ecd2c6e3d3dad6..0cc4ba81997b8f 100644 --- a/src/plugins/files/server/blob_storage_service/blob_storage_service.ts +++ b/src/plugins/files/server/blob_storage_service/blob_storage_service.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import type { ElasticsearchClient, Logger } from '@kbn/core/server'; import { BlobStorageSettings, ES_FIXED_SIZE_INDEX_BLOB_STORE } from '../../common'; import { BlobStorageClient } from './types'; diff --git a/src/plugins/files/server/blob_storage_service/index.ts b/src/plugins/files/server/blob_storage_service/index.ts index fd8d4e190c092e..4b1d0ec29a2dc0 100644 --- a/src/plugins/files/server/blob_storage_service/index.ts +++ b/src/plugins/files/server/blob_storage_service/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { BlobStorageService } from './blob_storage_service'; diff --git a/src/plugins/files/server/blob_storage_service/types.ts b/src/plugins/files/server/blob_storage_service/types.ts index 6a5c40708a973b..7ced9ec9df708f 100644 --- a/src/plugins/files/server/blob_storage_service/types.ts +++ b/src/plugins/files/server/blob_storage_service/types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { JsonValue } from '@kbn/utility-types'; diff --git a/src/plugins/files/server/feature.ts b/src/plugins/files/server/feature.ts index 1685e95cc9fa63..87e21f1315b9af 100644 --- a/src/plugins/files/server/feature.ts +++ b/src/plugins/files/server/feature.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { DEFAULT_APP_CATEGORIES } from '@kbn/core-application-common'; diff --git a/src/plugins/files/server/file/errors.ts b/src/plugins/files/server/file/errors.ts index 34ce179555ff0c..db504adf79d270 100644 --- a/src/plugins/files/server/file/errors.ts +++ b/src/plugins/files/server/file/errors.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ /* eslint-disable max-classes-per-file */ diff --git a/src/plugins/files/server/file/file.test.ts b/src/plugins/files/server/file/file.test.ts index b2e9167c685b3f..b42a360682cf9d 100644 --- a/src/plugins/files/server/file/file.test.ts +++ b/src/plugins/files/server/file/file.test.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { of } from 'rxjs'; import type { ElasticsearchClient, ISavedObjectsRepository } from '@kbn/core/server'; import { createSandbox } from 'sinon'; diff --git a/src/plugins/files/server/file/file.ts b/src/plugins/files/server/file/file.ts index c1b9d8ad12fde6..d8f246d864882c 100644 --- a/src/plugins/files/server/file/file.ts +++ b/src/plugins/files/server/file/file.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { Logger } from '@kbn/core/server'; diff --git a/src/plugins/files/server/file/file_attributes_reducer.ts b/src/plugins/files/server/file/file_attributes_reducer.ts index fdb2768408af5d..1a035c32e1243f 100644 --- a/src/plugins/files/server/file/file_attributes_reducer.ts +++ b/src/plugins/files/server/file/file_attributes_reducer.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { FileJSON, UpdatableFileMetadata } from '../../common'; export type Action = diff --git a/src/plugins/files/server/file/index.ts b/src/plugins/files/server/file/index.ts index 2b584945cb71f2..3aa67093566424 100644 --- a/src/plugins/files/server/file/index.ts +++ b/src/plugins/files/server/file/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import * as fileErrors from './errors'; diff --git a/src/plugins/files/server/file/to_json.ts b/src/plugins/files/server/file/to_json.ts index 98096940fe75f0..d1cb00277549a7 100644 --- a/src/plugins/files/server/file/to_json.ts +++ b/src/plugins/files/server/file/to_json.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { pickBy } from 'lodash'; diff --git a/src/plugins/files/server/file_client/create_es_file_client.ts b/src/plugins/files/server/file_client/create_es_file_client.ts index 9f453a6a25bfcd..1fb14b1fdfbbaa 100644 --- a/src/plugins/files/server/file_client/create_es_file_client.ts +++ b/src/plugins/files/server/file_client/create_es_file_client.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { Logger, ElasticsearchClient } from '@kbn/core/server'; diff --git a/src/plugins/files/server/file_client/file_client.ts b/src/plugins/files/server/file_client/file_client.ts index 6954ac9c635d75..4e49bc1e1d69c4 100644 --- a/src/plugins/files/server/file_client/file_client.ts +++ b/src/plugins/files/server/file_client/file_client.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import moment from 'moment'; import { Readable } from 'stream'; import mimeType from 'mime'; diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts b/src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts index dcfe39e112075f..8e78c471dde2ba 100644 --- a/src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts +++ b/src/plugins/files/server/file_client/file_metadata_client/adapters/es_index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { once } from 'lodash'; diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/index.ts b/src/plugins/files/server/file_client/file_metadata_client/adapters/index.ts index 9e7273b685f89c..965cbe0fa19070 100644 --- a/src/plugins/files/server/file_client/file_metadata_client/adapters/index.ts +++ b/src/plugins/files/server/file_client/file_metadata_client/adapters/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { SavedObjectsFileMetadataClient } from './saved_objects'; diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts b/src/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts index e5c49b8f12b9d1..14e757fae691a5 100644 --- a/src/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts +++ b/src/plugins/files/server/file_client/file_metadata_client/adapters/query_filters.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { pipe, forEach } from 'lodash/fp'; import { escapeKuery, KueryNode, nodeBuilder, nodeTypes } from '@kbn/es-query'; diff --git a/src/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts b/src/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts index b1a43a05bfb7b6..f0f547bb4704f7 100644 --- a/src/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts +++ b/src/plugins/files/server/file_client/file_metadata_client/adapters/saved_objects.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { reduce } from 'lodash'; diff --git a/src/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts b/src/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts index 5136fc9744d51b..2738d75d8222cc 100644 --- a/src/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts +++ b/src/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { ES_FIXED_SIZE_INDEX_BLOB_STORE } from '../../../common/constants'; diff --git a/src/plugins/files/server/file_client/file_metadata_client/index.ts b/src/plugins/files/server/file_client/file_metadata_client/index.ts index 690a6b472b00fa..97948a5ebee356 100644 --- a/src/plugins/files/server/file_client/file_metadata_client/index.ts +++ b/src/plugins/files/server/file_client/file_metadata_client/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export type { diff --git a/src/plugins/files/server/file_client/index.ts b/src/plugins/files/server/file_client/index.ts index 46eec400b77bc5..f034f67ec9c682 100644 --- a/src/plugins/files/server/file_client/index.ts +++ b/src/plugins/files/server/file_client/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { EsIndexFilesMetadataClient, SavedObjectsFileMetadataClient } from './file_metadata_client'; diff --git a/src/plugins/files/server/file_client/integration_tests/es_file_client.test.ts b/src/plugins/files/server/file_client/integration_tests/es_file_client.test.ts index 0ae1b9c7d29f81..c9d78cb33ac176 100644 --- a/src/plugins/files/server/file_client/integration_tests/es_file_client.test.ts +++ b/src/plugins/files/server/file_client/integration_tests/es_file_client.test.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { Readable } from 'stream'; import { loggingSystemMock } from '@kbn/core/server/mocks'; import { TestEnvironmentUtils, setupIntegrationEnvironment } from '../../test_utils'; diff --git a/src/plugins/files/server/file_client/stream_transforms/index.ts b/src/plugins/files/server/file_client/stream_transforms/index.ts index b3a82e897a02cb..a89ef117795a9d 100644 --- a/src/plugins/files/server/file_client/stream_transforms/index.ts +++ b/src/plugins/files/server/file_client/stream_transforms/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { enforceMaxByteSizeTransform } from './max_byte_size_transform'; diff --git a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts index 3b2c236e8a2870..8c846f9bde1012 100644 --- a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts +++ b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/errors.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export class MaxByteSizeExceededError extends Error { diff --git a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts index b3a82e897a02cb..a89ef117795a9d 100644 --- a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts +++ b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { enforceMaxByteSizeTransform } from './max_byte_size_transform'; diff --git a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts index 9697624edb4714..0b9ca5fe8a455a 100644 --- a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts +++ b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { Readable, Writable, pipeline } from 'stream'; diff --git a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts index c2634bcbf8fe29..a94f9858a996c3 100644 --- a/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts +++ b/src/plugins/files/server/file_client/stream_transforms/max_byte_size_transform/max_byte_size_transform.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { Transform } from 'stream'; diff --git a/src/plugins/files/server/file_client/types.ts b/src/plugins/files/server/file_client/types.ts index 19a50f7249fa25..5f991f0bbceb12 100644 --- a/src/plugins/files/server/file_client/types.ts +++ b/src/plugins/files/server/file_client/types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { File, FileShareJSONWithToken, UpdatableFileMetadata } from '../../common/types'; diff --git a/src/plugins/files/server/file_client/utils.ts b/src/plugins/files/server/file_client/utils.ts index b8b51117e8ac1f..88e0901680f0ce 100644 --- a/src/plugins/files/server/file_client/utils.ts +++ b/src/plugins/files/server/file_client/utils.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { FileMetadata } from '../../common'; diff --git a/src/plugins/files/server/file_service/errors.ts b/src/plugins/files/server/file_service/errors.ts index 905f26cf8fe142..67bd93e0c782d8 100644 --- a/src/plugins/files/server/file_service/errors.ts +++ b/src/plugins/files/server/file_service/errors.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export class FileNotFoundError extends Error { diff --git a/src/plugins/files/server/file_service/file_action_types.ts b/src/plugins/files/server/file_service/file_action_types.ts index f0242cb523d40c..dfe5ed2f0ba9b1 100644 --- a/src/plugins/files/server/file_service/file_action_types.ts +++ b/src/plugins/files/server/file_service/file_action_types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { Pagination, UpdatableFileMetadata } from '../../common/types'; diff --git a/src/plugins/files/server/file_service/file_service.ts b/src/plugins/files/server/file_service/file_service.ts index e48b0a6ea38cad..9dc1b0769cedfa 100644 --- a/src/plugins/files/server/file_service/file_service.ts +++ b/src/plugins/files/server/file_service/file_service.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { FilesMetrics, File, FileJSON } from '../../common'; diff --git a/src/plugins/files/server/file_service/file_service_factory.ts b/src/plugins/files/server/file_service/file_service_factory.ts index 393777c9a9abfd..50ceafb6fc2490 100644 --- a/src/plugins/files/server/file_service/file_service_factory.ts +++ b/src/plugins/files/server/file_service/file_service_factory.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { diff --git a/src/plugins/files/server/file_service/index.ts b/src/plugins/files/server/file_service/index.ts index 457e5f3d4dfb84..5d332a51d3a526 100644 --- a/src/plugins/files/server/file_service/index.ts +++ b/src/plugins/files/server/file_service/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { FileServiceFactoryImpl as FileServiceFactory } from './file_service_factory'; diff --git a/src/plugins/files/server/file_service/internal_file_service.ts b/src/plugins/files/server/file_service/internal_file_service.ts index 7768237e9fd503..7f6922a3842dbf 100644 --- a/src/plugins/files/server/file_service/internal_file_service.ts +++ b/src/plugins/files/server/file_service/internal_file_service.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { Logger, SavedObjectsErrorHelpers } from '@kbn/core/server'; diff --git a/src/plugins/files/server/file_share_service/errors.ts b/src/plugins/files/server/file_share_service/errors.ts index 89979f06899797..193b30e6e18813 100644 --- a/src/plugins/files/server/file_share_service/errors.ts +++ b/src/plugins/files/server/file_share_service/errors.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ /* eslint-disable max-classes-per-file */ diff --git a/src/plugins/files/server/file_share_service/generate_share_token.test.ts b/src/plugins/files/server/file_share_service/generate_share_token.test.ts index 93767c74849860..53122395f66856 100644 --- a/src/plugins/files/server/file_share_service/generate_share_token.test.ts +++ b/src/plugins/files/server/file_share_service/generate_share_token.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { generateShareToken } from './generate_share_token'; diff --git a/src/plugins/files/server/file_share_service/generate_share_token.ts b/src/plugins/files/server/file_share_service/generate_share_token.ts index ef779db49223a7..d20bf8bd97391c 100644 --- a/src/plugins/files/server/file_share_service/generate_share_token.ts +++ b/src/plugins/files/server/file_share_service/generate_share_token.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import crypto from 'crypto'; diff --git a/src/plugins/files/server/file_share_service/index.ts b/src/plugins/files/server/file_share_service/index.ts index dd52ec05777c19..d4f2f1eba9df67 100644 --- a/src/plugins/files/server/file_share_service/index.ts +++ b/src/plugins/files/server/file_share_service/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { InternalFileShareService } from './internal_file_share_service'; diff --git a/src/plugins/files/server/file_share_service/internal_file_share_service.ts b/src/plugins/files/server/file_share_service/internal_file_share_service.ts index 4d5bd95bf4b28a..beef345cc85100 100644 --- a/src/plugins/files/server/file_share_service/internal_file_share_service.ts +++ b/src/plugins/files/server/file_share_service/internal_file_share_service.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import moment from 'moment'; import { SavedObjectsClientContract, diff --git a/src/plugins/files/server/file_share_service/types.ts b/src/plugins/files/server/file_share_service/types.ts index bf3147d933083c..9e353172eb7aac 100644 --- a/src/plugins/files/server/file_share_service/types.ts +++ b/src/plugins/files/server/file_share_service/types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { FileShareJSON, FileShare } from '../../common/types'; diff --git a/src/plugins/files/server/index.ts b/src/plugins/files/server/index.ts index fe2bd3e69eec0a..5fb3a1e7f6c8e0 100755 --- a/src/plugins/files/server/index.ts +++ b/src/plugins/files/server/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { PluginInitializerContext } from '@kbn/core/server'; diff --git a/src/plugins/files/server/integration_tests/file_service.test.ts b/src/plugins/files/server/integration_tests/file_service.test.ts index 9ea208ca29855b..f3521aaaa747e6 100644 --- a/src/plugins/files/server/integration_tests/file_service.test.ts +++ b/src/plugins/files/server/integration_tests/file_service.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { CoreStart, ElasticsearchClient } from '@kbn/core/server'; diff --git a/src/plugins/files/server/mocks.ts b/src/plugins/files/server/mocks.ts index de9a495818ff2f..60f0b5c38ee8dd 100644 --- a/src/plugins/files/server/mocks.ts +++ b/src/plugins/files/server/mocks.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { KibanaRequest } from '@kbn/core/server'; import { DeeplyMockedKeys } from '@kbn/utility-types-jest'; import * as stream from 'stream'; diff --git a/src/plugins/files/server/plugin.ts b/src/plugins/files/server/plugin.ts index 08357e28bd3d08..95408f1fc18c5b 100755 --- a/src/plugins/files/server/plugin.ts +++ b/src/plugins/files/server/plugin.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { diff --git a/src/plugins/files/server/routes/api_routes.ts b/src/plugins/files/server/routes/api_routes.ts index b40696bfe61e72..1c0df1808f22bc 100644 --- a/src/plugins/files/server/routes/api_routes.ts +++ b/src/plugins/files/server/routes/api_routes.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { diff --git a/src/plugins/files/server/routes/common.test.ts b/src/plugins/files/server/routes/common.test.ts index 1f9292e3ff07a7..3b10adb5226f9b 100644 --- a/src/plugins/files/server/routes/common.test.ts +++ b/src/plugins/files/server/routes/common.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { File } from '../file'; diff --git a/src/plugins/files/server/routes/common.ts b/src/plugins/files/server/routes/common.ts index 8e17a39511b534..aba84ee6487ec8 100644 --- a/src/plugins/files/server/routes/common.ts +++ b/src/plugins/files/server/routes/common.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import mime from 'mime'; import type { ResponseHeaders } from '@kbn/core/server'; import type { File } from '../../common/types'; diff --git a/src/plugins/files/server/routes/common_schemas.ts b/src/plugins/files/server/routes/common_schemas.ts index 6f9b6a5d651a04..6e2ff212f147fe 100644 --- a/src/plugins/files/server/routes/common_schemas.ts +++ b/src/plugins/files/server/routes/common_schemas.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { schema } from '@kbn/config-schema'; diff --git a/src/plugins/files/server/routes/file_kind/create.ts b/src/plugins/files/server/routes/file_kind/create.ts index 78a7260771a165..7609265313bd49 100644 --- a/src/plugins/files/server/routes/file_kind/create.ts +++ b/src/plugins/files/server/routes/file_kind/create.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { schema } from '@kbn/config-schema'; diff --git a/src/plugins/files/server/routes/file_kind/delete.ts b/src/plugins/files/server/routes/file_kind/delete.ts index ec23525f2686ad..da7bb7bade2144 100644 --- a/src/plugins/files/server/routes/file_kind/delete.ts +++ b/src/plugins/files/server/routes/file_kind/delete.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { schema } from '@kbn/config-schema'; diff --git a/src/plugins/files/server/routes/file_kind/download.ts b/src/plugins/files/server/routes/file_kind/download.ts index d4ae37ddb66233..4776d37485c93b 100644 --- a/src/plugins/files/server/routes/file_kind/download.ts +++ b/src/plugins/files/server/routes/file_kind/download.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { schema } from '@kbn/config-schema'; diff --git a/src/plugins/files/server/routes/file_kind/enhance_router.ts b/src/plugins/files/server/routes/file_kind/enhance_router.ts index b2a4f58fb8fd12..87be1c4e08ea05 100644 --- a/src/plugins/files/server/routes/file_kind/enhance_router.ts +++ b/src/plugins/files/server/routes/file_kind/enhance_router.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { RequestHandler, RouteMethod, RouteRegistrar } from '@kbn/core/server'; diff --git a/src/plugins/files/server/routes/file_kind/get_by_id.ts b/src/plugins/files/server/routes/file_kind/get_by_id.ts index 4d86e05564fdfb..914d1e70b77d4f 100644 --- a/src/plugins/files/server/routes/file_kind/get_by_id.ts +++ b/src/plugins/files/server/routes/file_kind/get_by_id.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { schema } from '@kbn/config-schema'; diff --git a/src/plugins/files/server/routes/file_kind/helpers.ts b/src/plugins/files/server/routes/file_kind/helpers.ts index 12006fb87837b4..4ec6afccebd758 100644 --- a/src/plugins/files/server/routes/file_kind/helpers.ts +++ b/src/plugins/files/server/routes/file_kind/helpers.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { IKibanaResponse, kibanaResponseFactory } from '@kbn/core/server'; diff --git a/src/plugins/files/server/routes/file_kind/index.ts b/src/plugins/files/server/routes/file_kind/index.ts index 1bd61b8fb2f2e7..40649656790c3b 100644 --- a/src/plugins/files/server/routes/file_kind/index.ts +++ b/src/plugins/files/server/routes/file_kind/index.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { FileKind } from '../../../common/types'; import { FilesRouter } from '../types'; diff --git a/src/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts b/src/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts index 6acd1e33173444..58a6d195a0bdb4 100644 --- a/src/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts +++ b/src/plugins/files/server/routes/file_kind/integration_tests/file_kind_http.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { UpdatableFileMetadata } from '../../../../common/types'; diff --git a/src/plugins/files/server/routes/file_kind/list.ts b/src/plugins/files/server/routes/file_kind/list.ts index b9b389f41b7a9c..1f8d7534ae4e96 100644 --- a/src/plugins/files/server/routes/file_kind/list.ts +++ b/src/plugins/files/server/routes/file_kind/list.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { schema } from '@kbn/config-schema'; import type { FileJSON, FileKind } from '../../../common/types'; import { CreateRouteDefinition, FILES_API_ROUTES } from '../api_routes'; diff --git a/src/plugins/files/server/routes/file_kind/share/get.ts b/src/plugins/files/server/routes/file_kind/share/get.ts index b39e7c2ccbc929..07e00d4ad800ba 100644 --- a/src/plugins/files/server/routes/file_kind/share/get.ts +++ b/src/plugins/files/server/routes/file_kind/share/get.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { schema } from '@kbn/config-schema'; import { FileShareNotFoundError } from '../../../file_share_service/errors'; diff --git a/src/plugins/files/server/routes/file_kind/share/list.ts b/src/plugins/files/server/routes/file_kind/share/list.ts index edd58dbed7b6e6..221f0b78f3e0ab 100644 --- a/src/plugins/files/server/routes/file_kind/share/list.ts +++ b/src/plugins/files/server/routes/file_kind/share/list.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { schema } from '@kbn/config-schema'; import { CreateRouteDefinition, FILES_API_ROUTES } from '../../api_routes'; diff --git a/src/plugins/files/server/routes/file_kind/share/share.ts b/src/plugins/files/server/routes/file_kind/share/share.ts index f4c8f660e080b3..3d3c5adb53e708 100644 --- a/src/plugins/files/server/routes/file_kind/share/share.ts +++ b/src/plugins/files/server/routes/file_kind/share/share.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { schema } from '@kbn/config-schema'; import { ExpiryDateInThePastError } from '../../../file_share_service/errors'; import { CreateHandler, FileKindRouter } from '../types'; diff --git a/src/plugins/files/server/routes/file_kind/share/unshare.ts b/src/plugins/files/server/routes/file_kind/share/unshare.ts index 49e59898433b18..a41f5db8a59700 100644 --- a/src/plugins/files/server/routes/file_kind/share/unshare.ts +++ b/src/plugins/files/server/routes/file_kind/share/unshare.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { schema } from '@kbn/config-schema'; import { CreateRouteDefinition, FILES_API_ROUTES } from '../../api_routes'; diff --git a/src/plugins/files/server/routes/file_kind/types.ts b/src/plugins/files/server/routes/file_kind/types.ts index 148767f27a285c..c82b097d7472c1 100644 --- a/src/plugins/files/server/routes/file_kind/types.ts +++ b/src/plugins/files/server/routes/file_kind/types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { IRouter, RequestHandler } from '@kbn/core/server'; diff --git a/src/plugins/files/server/routes/file_kind/update.ts b/src/plugins/files/server/routes/file_kind/update.ts index 9621fc56c311c3..048e846322c5be 100644 --- a/src/plugins/files/server/routes/file_kind/update.ts +++ b/src/plugins/files/server/routes/file_kind/update.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { schema } from '@kbn/config-schema'; diff --git a/src/plugins/files/server/routes/file_kind/upload.test.ts b/src/plugins/files/server/routes/file_kind/upload.test.ts index 59a906f5ea988d..49a207ea80345c 100644 --- a/src/plugins/files/server/routes/file_kind/upload.test.ts +++ b/src/plugins/files/server/routes/file_kind/upload.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { Readable } from 'stream'; diff --git a/src/plugins/files/server/routes/file_kind/upload.ts b/src/plugins/files/server/routes/file_kind/upload.ts index 10c230de469b9b..88ef492ba11fb9 100644 --- a/src/plugins/files/server/routes/file_kind/upload.ts +++ b/src/plugins/files/server/routes/file_kind/upload.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { schema } from '@kbn/config-schema'; diff --git a/src/plugins/files/server/routes/find.ts b/src/plugins/files/server/routes/find.ts index 9ec5ab681cb66c..c2bb0f3b0cf264 100644 --- a/src/plugins/files/server/routes/find.ts +++ b/src/plugins/files/server/routes/find.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { schema } from '@kbn/config-schema'; import type { CreateHandler, FilesRouter } from './types'; import { FileJSON } from '../../common'; diff --git a/src/plugins/files/server/routes/index.ts b/src/plugins/files/server/routes/index.ts index 0a71599ac773ed..69565ebc8492e5 100644 --- a/src/plugins/files/server/routes/index.ts +++ b/src/plugins/files/server/routes/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { FilesRouter } from './types'; diff --git a/src/plugins/files/server/routes/integration_tests/routes.test.ts b/src/plugins/files/server/routes/integration_tests/routes.test.ts index a01f377a0364ba..b7cfb34e0638d7 100644 --- a/src/plugins/files/server/routes/integration_tests/routes.test.ts +++ b/src/plugins/files/server/routes/integration_tests/routes.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { CreateFileKindHttpEndpoint } from '../../../common/api_routes'; diff --git a/src/plugins/files/server/routes/metrics.ts b/src/plugins/files/server/routes/metrics.ts index 9ae898e17bb873..6e3a63b7b67c68 100644 --- a/src/plugins/files/server/routes/metrics.ts +++ b/src/plugins/files/server/routes/metrics.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { FILES_MANAGE_PRIVILEGE } from '../../common/constants'; import type { FilesRouter } from './types'; diff --git a/src/plugins/files/server/routes/public_facing/download.ts b/src/plugins/files/server/routes/public_facing/download.ts index bd77cabaf7e4d9..1635f9a7d39fd4 100644 --- a/src/plugins/files/server/routes/public_facing/download.ts +++ b/src/plugins/files/server/routes/public_facing/download.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import { schema } from '@kbn/config-schema'; import { Readable } from 'stream'; import { NoDownloadAvailableError } from '../../file/errors'; diff --git a/src/plugins/files/server/routes/test_utils.ts b/src/plugins/files/server/routes/test_utils.ts index 3ec4233fbcbf4e..58f00ddbab0fca 100644 --- a/src/plugins/files/server/routes/test_utils.ts +++ b/src/plugins/files/server/routes/test_utils.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { loggingSystemMock } from '@kbn/core/server/mocks'; diff --git a/src/plugins/files/server/routes/types.ts b/src/plugins/files/server/routes/types.ts index f47808a85c3bf9..cfe47a76523597 100644 --- a/src/plugins/files/server/routes/types.ts +++ b/src/plugins/files/server/routes/types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { diff --git a/src/plugins/files/server/saved_objects/file.ts b/src/plugins/files/server/saved_objects/file.ts index 352a00016f86d2..af8f7ef9ef0890 100644 --- a/src/plugins/files/server/saved_objects/file.ts +++ b/src/plugins/files/server/saved_objects/file.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { SavedObjectsType, SavedObjectsFieldMapping } from '@kbn/core/server'; diff --git a/src/plugins/files/server/saved_objects/file_share.ts b/src/plugins/files/server/saved_objects/file_share.ts index e71253582b3815..244a027e7f73ce 100644 --- a/src/plugins/files/server/saved_objects/file_share.ts +++ b/src/plugins/files/server/saved_objects/file_share.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { SavedObjectsFieldMapping, SavedObjectsType } from '@kbn/core/server'; diff --git a/src/plugins/files/server/saved_objects/index.ts b/src/plugins/files/server/saved_objects/index.ts index 2871e4f52f2724..c8c03781db99d6 100644 --- a/src/plugins/files/server/saved_objects/index.ts +++ b/src/plugins/files/server/saved_objects/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { fileObjectType } from './file'; diff --git a/src/plugins/files/server/test_utils/index.ts b/src/plugins/files/server/test_utils/index.ts index 98215f70649db8..5e5b871cece126 100644 --- a/src/plugins/files/server/test_utils/index.ts +++ b/src/plugins/files/server/test_utils/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { setupIntegrationEnvironment } from './setup_integration_environment'; diff --git a/src/plugins/files/server/test_utils/setup_integration_environment.ts b/src/plugins/files/server/test_utils/setup_integration_environment.ts index 1c31649d1e8f21..73205f0cdad9ec 100644 --- a/src/plugins/files/server/test_utils/setup_integration_environment.ts +++ b/src/plugins/files/server/test_utils/setup_integration_environment.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { defaults } from 'lodash'; diff --git a/src/plugins/files/server/types.ts b/src/plugins/files/server/types.ts index 85fc6a0f60ed61..eb5cbff0296782 100644 --- a/src/plugins/files/server/types.ts +++ b/src/plugins/files/server/types.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import type { SecurityPluginSetup } from '@kbn/security-plugin/server'; import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; import { FileKind } from '../common'; diff --git a/src/plugins/files/server/usage/counters.ts b/src/plugins/files/server/usage/counters.ts index 65287fe1cea261..22e6d4c62ce4bd 100644 --- a/src/plugins/files/server/usage/counters.ts +++ b/src/plugins/files/server/usage/counters.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export function getCounters(fileKind: string) { diff --git a/src/plugins/files/server/usage/index.ts b/src/plugins/files/server/usage/index.ts index af624244bcdd5a..ea6cf7c35aa5d4 100644 --- a/src/plugins/files/server/usage/index.ts +++ b/src/plugins/files/server/usage/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { registerUsageCollector } from './register_usage_collector'; diff --git a/src/plugins/files/server/usage/integration_tests/usage.test.ts b/src/plugins/files/server/usage/integration_tests/usage.test.ts index 3e04dfcac0be12..0bccb869c822e4 100644 --- a/src/plugins/files/server/usage/integration_tests/usage.test.ts +++ b/src/plugins/files/server/usage/integration_tests/usage.test.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { setupIntegrationEnvironment, TestEnvironmentUtils } from '../../test_utils'; diff --git a/src/plugins/files/server/usage/register_usage_collector.ts b/src/plugins/files/server/usage/register_usage_collector.ts index 7bbe8ff994365f..35b6822cda70c9 100644 --- a/src/plugins/files/server/usage/register_usage_collector.ts +++ b/src/plugins/files/server/usage/register_usage_collector.ts @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; import type { FileServiceStart } from '../file_service'; import { filesSchema, FileKindUsageSchema } from './schema'; diff --git a/src/plugins/files/server/usage/schema.ts b/src/plugins/files/server/usage/schema.ts index 9ee655ddcb18f3..770a19e47424d6 100644 --- a/src/plugins/files/server/usage/schema.ts +++ b/src/plugins/files/server/usage/schema.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { MakeSchemaFrom } from '@kbn/usage-collection-plugin/server'; From e18f6dbcd0f19f4b99848f296b211f84f4c0a5f0 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:08:44 +0200 Subject: [PATCH 07/20] update all license headers --- examples/files_example/common/index.ts | 5 +++-- examples/files_example/public/application.tsx | 5 +++-- examples/files_example/public/components/app.tsx | 5 +++-- examples/files_example/public/components/confirm_button.tsx | 5 +++-- examples/files_example/public/components/details_flyout.tsx | 6 ++++-- examples/files_example/public/components/file_picker.tsx | 5 +++-- examples/files_example/public/components/modal.tsx | 5 +++-- examples/files_example/public/imports.ts | 5 +++-- examples/files_example/public/index.ts | 5 +++-- examples/files_example/public/plugin.ts | 5 +++-- examples/files_example/public/types.ts | 5 +++-- examples/files_example/server/index.ts | 5 +++-- examples/files_example/server/plugin.ts | 5 +++-- examples/files_example/server/types.ts | 5 +++-- 14 files changed, 43 insertions(+), 28 deletions(-) diff --git a/examples/files_example/common/index.ts b/examples/files_example/common/index.ts index aeb807e30aadf0..566edb64b4240e 100644 --- a/examples/files_example/common/index.ts +++ b/examples/files_example/common/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { FileKind, FileImageMetadata } from '@kbn/files-plugin/common'; diff --git a/examples/files_example/public/application.tsx b/examples/files_example/public/application.tsx index 0bad6975c6da09..0795ec3a774208 100644 --- a/examples/files_example/public/application.tsx +++ b/examples/files_example/public/application.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/examples/files_example/public/components/app.tsx b/examples/files_example/public/components/app.tsx index afdf8be1f4f6e6..c39b14d30a4099 100644 --- a/examples/files_example/public/components/app.tsx +++ b/examples/files_example/public/components/app.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React, { useState } from 'react'; diff --git a/examples/files_example/public/components/confirm_button.tsx b/examples/files_example/public/components/confirm_button.tsx index 05e64243bb374f..b60f84b3369d0b 100644 --- a/examples/files_example/public/components/confirm_button.tsx +++ b/examples/files_example/public/components/confirm_button.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React, { useState, FunctionComponent } from 'react'; diff --git a/examples/files_example/public/components/details_flyout.tsx b/examples/files_example/public/components/details_flyout.tsx index a417752d1a6662..0303095a11a097 100644 --- a/examples/files_example/public/components/details_flyout.tsx +++ b/examples/files_example/public/components/details_flyout.tsx @@ -1,9 +1,11 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ + import moment from 'moment'; import type { FunctionComponent } from 'react'; import React from 'react'; diff --git a/examples/files_example/public/components/file_picker.tsx b/examples/files_example/public/components/file_picker.tsx index 3c2178b299ea24..6fb4c84d6c9e41 100644 --- a/examples/files_example/public/components/file_picker.tsx +++ b/examples/files_example/public/components/file_picker.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import React from 'react'; diff --git a/examples/files_example/public/components/modal.tsx b/examples/files_example/public/components/modal.tsx index d8289257617cff..a314e5bd8ea4e0 100644 --- a/examples/files_example/public/components/modal.tsx +++ b/examples/files_example/public/components/modal.tsx @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { FunctionComponent } from 'react'; diff --git a/examples/files_example/public/imports.ts b/examples/files_example/public/imports.ts index a60d9cb4a6a362..06b964f1fdc20b 100644 --- a/examples/files_example/public/imports.ts +++ b/examples/files_example/public/imports.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ export { diff --git a/examples/files_example/public/index.ts b/examples/files_example/public/index.ts index 15e472c4f4cc63..e3128e60645176 100644 --- a/examples/files_example/public/index.ts +++ b/examples/files_example/public/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { FilesExamplePlugin } from './plugin'; diff --git a/examples/files_example/public/plugin.ts b/examples/files_example/public/plugin.ts index 4906b59d4d6fce..ba0b1dfd54378c 100644 --- a/examples/files_example/public/plugin.ts +++ b/examples/files_example/public/plugin.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { AppNavLinkStatus } from '@kbn/core-application-browser'; diff --git a/examples/files_example/public/types.ts b/examples/files_example/public/types.ts index 0ac384055aaf3e..4ca9eb148872fe 100644 --- a/examples/files_example/public/types.ts +++ b/examples/files_example/public/types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { MyImageMetadata } from '../common'; diff --git a/examples/files_example/server/index.ts b/examples/files_example/server/index.ts index 5b6de87308e5e6..d7edefbe1876df 100644 --- a/examples/files_example/server/index.ts +++ b/examples/files_example/server/index.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { PluginInitializerContext } from '@kbn/core/server'; diff --git a/examples/files_example/server/plugin.ts b/examples/files_example/server/plugin.ts index 2b077d6f3e88ae..5ab9571a642076 100644 --- a/examples/files_example/server/plugin.ts +++ b/examples/files_example/server/plugin.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import { PluginInitializerContext, CoreSetup, CoreStart, Plugin, Logger } from '@kbn/core/server'; diff --git a/examples/files_example/server/types.ts b/examples/files_example/server/types.ts index b1cef58620ca52..7f12e7fd94a1c2 100644 --- a/examples/files_example/server/types.ts +++ b/examples/files_example/server/types.ts @@ -1,8 +1,9 @@ /* * 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; you may not use this file except in compliance with the Elastic License - * 2.0. + * 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. */ import type { FilesSetup, FilesStart } from '@kbn/files-plugin/server'; From 7b59302e6ac82f0509718e576b1d36b157c18e4c Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:13:56 +0200 Subject: [PATCH 08/20] update tsconfig.base.json --- tsconfig.base.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 822bff76a473a5..ddded11e9e9b5e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -21,6 +21,8 @@ "@kbn/expressions-explorer-plugin/*": ["examples/expressions_explorer/*"], "@kbn/field-formats-example-plugin": ["examples/field_formats_example"], "@kbn/field-formats-example-plugin/*": ["examples/field_formats_example/*"], + "@kbn/files-example-plugin": ["examples/files_example"], + "@kbn/files-example-plugin/*": ["examples/files_example/*"], "@kbn/guided-onboarding-example-plugin": ["examples/guided_onboarding_example"], "@kbn/guided-onboarding-example-plugin/*": ["examples/guided_onboarding_example/*"], "@kbn/hello-world-plugin": ["examples/hello_world"], @@ -285,8 +287,6 @@ "@kbn/embedded-lens-example-plugin/*": ["x-pack/examples/embedded_lens_example/*"], "@kbn/exploratory-view-example-plugin": ["x-pack/examples/exploratory_view_example"], "@kbn/exploratory-view-example-plugin/*": ["x-pack/examples/exploratory_view_example/*"], - "@kbn/files-example-plugin": ["x-pack/examples/files_example"], - "@kbn/files-example-plugin/*": ["x-pack/examples/files_example/*"], "@kbn/reporting-example-plugin": ["x-pack/examples/reporting_example"], "@kbn/reporting-example-plugin/*": ["x-pack/examples/reporting_example/*"], "@kbn/screenshotting-example-plugin": ["x-pack/examples/screenshotting_example"], From 4fd172c29c3a70413241edc7a6d9308f3a077459 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:18:38 +0200 Subject: [PATCH 09/20] update files example tsconfig.json --- examples/files_example/tsconfig.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/files_example/tsconfig.json b/examples/files_example/tsconfig.json index e75078a80019ce..0a4d55d6f12c5e 100644 --- a/examples/files_example/tsconfig.json +++ b/examples/files_example/tsconfig.json @@ -6,17 +6,15 @@ "include": [ "index.ts", "common/**/*", - "public/**/*", - "server/**/*", "public/**/*.ts", "public/**/*.tsx", "server/**/*.ts", - "../../../typings/**/*" + "../../typings/**/*" ], "exclude": [], "references": [ - { "path": "../../../src/core/tsconfig.json" }, - { "path": "../../plugins/files/tsconfig.json" }, - { "path": "../../../examples/developer_examples/tsconfig.json" } + { "path": "../../src/core/tsconfig.json" }, + { "path": "../developer_examples/tsconfig.json" }, + { "path": "../../src/plugins/files/tsconfig.json" }, ] } From 910c794f35e27f818703c5965b8e5754798ef9a0 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:20:57 +0200 Subject: [PATCH 10/20] update tsconfig references --- src/plugins/files/tsconfig.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/files/tsconfig.json b/src/plugins/files/tsconfig.json index 5b8c42aab622ae..ce10e7c491408d 100644 --- a/src/plugins/files/tsconfig.json +++ b/src/plugins/files/tsconfig.json @@ -8,8 +8,8 @@ }, "include": ["common/**/*", "public/**/*", "server/**/*", ".storybook/**/*"], "references": [ - { "path": "../../../src/core/tsconfig.json" }, - { "path": "../security/tsconfig.json" }, - { "path": "../../../src/plugins/usage_collection/tsconfig.json" } + { "path": "../../core/tsconfig.json" }, + { "path": "../usage_collection/tsconfig.json" }, + { "path": "../../../x-pack/plugins/security/tsconfig.json" }, ] } From 23c05c13161dfe4ccd86a506e71b56b38ebbad87 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 16:25:26 +0200 Subject: [PATCH 11/20] update security solution reference --- x-pack/plugins/security_solution/tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/tsconfig.json b/x-pack/plugins/security_solution/tsconfig.json index f69973fdac74fe..f09699e9e646ef 100644 --- a/x-pack/plugins/security_solution/tsconfig.json +++ b/x-pack/plugins/security_solution/tsconfig.json @@ -20,6 +20,7 @@ { "path": "../../../src/core/tsconfig.json" }, { "path": "../../../src/plugins/data/tsconfig.json" }, { "path": "../../../src/plugins/embeddable/tsconfig.json" }, + { "path": "../../../src/plugins/files/tsconfig.json"}, { "path": "../../../src/plugins/home/tsconfig.json" }, { "path": "../../../src/plugins/inspector/tsconfig.json" }, { "path": "../../../src/plugins/ui_actions/tsconfig.json" }, @@ -47,7 +48,6 @@ { "path": "../security/tsconfig.json" }, { "path": "../spaces/tsconfig.json" }, { "path": "../threat_intelligence/tsconfig.json" }, - { "path": "../timelines/tsconfig.json" }, - { "path": "../files/tsconfig.json"} + { "path": "../timelines/tsconfig.json" } ] } From de8e41ff390bc3d3fd38615ba6a6333b6e15436b Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 17:52:42 +0200 Subject: [PATCH 12/20] remove duplicate registration of saved object type --- src/plugins/files/server/integration_tests/file_service.test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/files/server/integration_tests/file_service.test.ts b/src/plugins/files/server/integration_tests/file_service.test.ts index f3521aaaa747e6..989d5a131cd42c 100644 --- a/src/plugins/files/server/integration_tests/file_service.test.ts +++ b/src/plugins/files/server/integration_tests/file_service.test.ts @@ -50,7 +50,6 @@ describe('FileService', () => { kbnRoot = createRootWithCorePlugins(); await kbnRoot.preboot(); coreSetup = await kbnRoot.setup(); - FileServiceFactory.setup(coreSetup.savedObjects); coreStart = await kbnRoot.start(); setFileKindsRegistry(new FileKindsRegistryImpl()); const fileKindsRegistry = getFileKindsRegistry(); From 767ba8ce1f8c2617db7178b667a95f5f7c7fd946 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 26 Oct 2022 18:20:09 +0200 Subject: [PATCH 13/20] update jest integration tests --- .../server/test_utils/setup_integration_environment.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/plugins/files/server/test_utils/setup_integration_environment.ts b/src/plugins/files/server/test_utils/setup_integration_environment.ts index 73205f0cdad9ec..e0c01ca8f0a6da 100644 --- a/src/plugins/files/server/test_utils/setup_integration_environment.ts +++ b/src/plugins/files/server/test_utils/setup_integration_environment.ts @@ -21,11 +21,6 @@ export type TestEnvironmentUtils = Awaited Date: Thu, 27 Oct 2022 08:17:56 +0200 Subject: [PATCH 14/20] fix reference to tsconfig.base.json --- examples/files_example/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/files_example/tsconfig.json b/examples/files_example/tsconfig.json index 0a4d55d6f12c5e..af040010b90430 100644 --- a/examples/files_example/tsconfig.json +++ b/examples/files_example/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../tsconfig.json", "compilerOptions": { "outDir": "./target/types" }, From 42c964adca8f3988edbfae95b09937386049a6d5 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Thu, 27 Oct 2022 15:52:22 +0200 Subject: [PATCH 15/20] telemetry check --- src/plugins/telemetry/schema/oss_plugins.json | 77 +++++++++++++++++++ .../schema/xpack_plugins.json | 77 ------------------- 2 files changed, 77 insertions(+), 77 deletions(-) diff --git a/src/plugins/telemetry/schema/oss_plugins.json b/src/plugins/telemetry/schema/oss_plugins.json index 1a97586dffa626..9150e9179a0c08 100644 --- a/src/plugins/telemetry/schema/oss_plugins.json +++ b/src/plugins/telemetry/schema/oss_plugins.json @@ -7783,6 +7783,83 @@ } } }, + "files": { + "properties": { + "countByExtension": { + "type": "array", + "items": { + "properties": { + "extension": { + "type": "keyword" + }, + "count": { + "type": "long" + } + } + } + }, + "countByStatus": { + "properties": { + "AWAITING_UPLOAD": { + "type": "long", + "_meta": { + "description": "Number of files awaiting upload" + } + }, + "DELETED": { + "type": "long", + "_meta": { + "description": "Number of files that are marked as deleted" + } + }, + "READY": { + "type": "long", + "_meta": { + "description": "Number of files that are ready for download" + } + }, + "UPLOADING": { + "type": "long", + "_meta": { + "description": "Number of files that are currently uploading" + } + }, + "UPLOAD_ERROR": { + "type": "long", + "_meta": { + "description": "Number of files that failed to upload" + } + } + } + }, + "storage": { + "properties": { + "esFixedSizeIndex": { + "properties": { + "capacity": { + "type": "long", + "_meta": { + "description": "Capacity of the fixed size index" + } + }, + "available": { + "type": "long", + "_meta": { + "description": "Available storage in bytes" + } + }, + "used": { + "type": "long", + "_meta": { + "description": "Used storage in bytes" + } + } + } + } + } + } + } + }, "index-patterns": { "properties": { "indexPatternsCount": { diff --git a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json index 5eb2c8d5a58692..aa1ad20363166c 100644 --- a/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json +++ b/x-pack/plugins/telemetry_collection_xpack/schema/xpack_plugins.json @@ -5116,83 +5116,6 @@ } } }, - "files": { - "properties": { - "countByExtension": { - "type": "array", - "items": { - "properties": { - "extension": { - "type": "keyword" - }, - "count": { - "type": "long" - } - } - } - }, - "countByStatus": { - "properties": { - "AWAITING_UPLOAD": { - "type": "long", - "_meta": { - "description": "Number of files awaiting upload" - } - }, - "DELETED": { - "type": "long", - "_meta": { - "description": "Number of files that are marked as deleted" - } - }, - "READY": { - "type": "long", - "_meta": { - "description": "Number of files that are ready for download" - } - }, - "UPLOADING": { - "type": "long", - "_meta": { - "description": "Number of files that are currently uploading" - } - }, - "UPLOAD_ERROR": { - "type": "long", - "_meta": { - "description": "Number of files that failed to upload" - } - } - } - }, - "storage": { - "properties": { - "esFixedSizeIndex": { - "properties": { - "capacity": { - "type": "long", - "_meta": { - "description": "Capacity of the fixed size index" - } - }, - "available": { - "type": "long", - "_meta": { - "description": "Available storage in bytes" - } - }, - "used": { - "type": "long", - "_meta": { - "description": "Used storage in bytes" - } - } - } - } - } - } - } - }, "fleet": { "properties": { "agents_enabled": { From d8f9c02d097043a43b5d6324b7885849e66b6973 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Thu, 27 Oct 2022 15:53:08 +0200 Subject: [PATCH 16/20] remove unused var --- .../files/server/integration_tests/file_service.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/files/server/integration_tests/file_service.test.ts b/src/plugins/files/server/integration_tests/file_service.test.ts index 989d5a131cd42c..30c3ecd5d9e4d6 100644 --- a/src/plugins/files/server/integration_tests/file_service.test.ts +++ b/src/plugins/files/server/integration_tests/file_service.test.ts @@ -38,7 +38,6 @@ describe('FileService', () => { let fileService: FileServiceStart; let blobStorageService: BlobStorageService; let esClient: ElasticsearchClient; - let coreSetup: Awaited>; let coreStart: CoreStart; let fileServiceFactory: FileServiceFactory; let security: ReturnType; @@ -49,7 +48,7 @@ describe('FileService', () => { manageES = await startES(); kbnRoot = createRootWithCorePlugins(); await kbnRoot.preboot(); - coreSetup = await kbnRoot.setup(); + await kbnRoot.setup(); coreStart = await kbnRoot.start(); setFileKindsRegistry(new FileKindsRegistryImpl()); const fileKindsRegistry = getFileKindsRegistry(); From afd5e5a2dba9d71db1d2fc11ddd9aa9762d9337c Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 27 Oct 2022 14:39:07 +0000 Subject: [PATCH 17/20] [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs' --- docs/developer/plugin-list.asciidoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 6e90f2fa15a239..32d807e016ebbb 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -176,6 +176,10 @@ for use in their own application. |Index pattern fields formatters +|{kib-repo}blob/{branch}/src/plugins/files/README.md[files] +|File upload, download, sharing, and serving over HTTP implementation in Kibana. + + |{kib-repo}blob/{branch}/src/plugins/guided_onboarding/README.md[guidedOnboarding] |This plugin contains the code for the Guided Onboarding project. Guided onboarding consists of guides for Solutions (Enterprise Search, Observability, Security) that can be completed as a checklist of steps. The guides help users to ingest their data and to navigate to the correct Solutions pages. @@ -491,10 +495,6 @@ activities. |The features plugin enhance Kibana with a per-feature privilege system. -|{kib-repo}blob/{branch}/src/plugins/files/README.md[files] -|File upload, download, sharing, and serving over HTTP implementation in Kibana. - - |{kib-repo}blob/{branch}/x-pack/plugins/file_upload[fileUpload] |WARNING: Missing README. From 61eef30b77fa5917ce8325309cfb5d0f722e45ab Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Thu, 27 Oct 2022 18:26:42 +0200 Subject: [PATCH 18/20] update i18n --- .../components/file_picker/i18n_texts.ts | 22 +++++++++---------- .../components/upload_file/i18n_texts.ts | 18 +++++++-------- src/plugins/files/server/feature.ts | 4 ++-- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/plugins/files/public/components/file_picker/i18n_texts.ts b/src/plugins/files/public/components/file_picker/i18n_texts.ts index 805ebc5fa37481..43be8de53271cf 100644 --- a/src/plugins/files/public/components/file_picker/i18n_texts.ts +++ b/src/plugins/files/public/components/file_picker/i18n_texts.ts @@ -9,39 +9,39 @@ import { i18n } from '@kbn/i18n'; export const i18nTexts = { - title: i18n.translate('xpack.files.filePicker.title', { + title: i18n.translate('files.filePicker.title', { defaultMessage: 'Select a file', }), - loadingFilesErrorTitle: i18n.translate('xpack.files.filePicker.error.loadingTitle', { + loadingFilesErrorTitle: i18n.translate('files.filePicker.error.loadingTitle', { defaultMessage: 'Could not load files', }), - retryButtonLabel: i18n.translate('xpack.files.filePicker.error.retryButtonLabel', { + retryButtonLabel: i18n.translate('files.filePicker.error.retryButtonLabel', { defaultMessage: 'Retry', }), - emptyStatePrompt: i18n.translate('xpack.files.filePicker.emptyStatePrompt', { + emptyStatePrompt: i18n.translate('files.filePicker.emptyStatePrompt', { defaultMessage: 'No files found', }), - emptyStatePromptSubtitle: i18n.translate('xpack.files.filePicker.emptyStatePromptSubtitle', { + emptyStatePromptSubtitle: i18n.translate('files.filePicker.emptyStatePromptSubtitle', { defaultMessage: 'Upload your first file.', }), - selectFileLabel: i18n.translate('xpack.files.filePicker.selectFileButtonLable', { + selectFileLabel: i18n.translate('files.filePicker.selectFileButtonLable', { defaultMessage: 'Select file', }), selectFilesLabel: (nrOfFiles: number) => - i18n.translate('xpack.files.filePicker.selectFilesButtonLable', { + i18n.translate('files.filePicker.selectFilesButtonLable', { defaultMessage: 'Select {nrOfFiles} files', values: { nrOfFiles }, }), - searchFieldPlaceholder: i18n.translate('xpack.files.filePicker.searchFieldPlaceholder', { + searchFieldPlaceholder: i18n.translate('files.filePicker.searchFieldPlaceholder', { defaultMessage: 'my-file-*', }), - emptyFileGridPrompt: i18n.translate('xpack.files.filePicker.emptyGridPrompt', { + emptyFileGridPrompt: i18n.translate('files.filePicker.emptyGridPrompt', { defaultMessage: 'No files matched filter', }), - loadMoreButtonLabel: i18n.translate('xpack.files.filePicker.loadMoreButtonLabel', { + loadMoreButtonLabel: i18n.translate('files.filePicker.loadMoreButtonLabel', { defaultMessage: 'Load more', }), - clearFilterButton: i18n.translate('xpack.files.filePicker.clearFilterButtonLabel', { + clearFilterButton: i18n.translate('files.filePicker.clearFilterButtonLabel', { defaultMessage: 'Clear filter', }), }; diff --git a/src/plugins/files/public/components/upload_file/i18n_texts.ts b/src/plugins/files/public/components/upload_file/i18n_texts.ts index eb130cd3342ee5..19ac5b3e0a67d3 100644 --- a/src/plugins/files/public/components/upload_file/i18n_texts.ts +++ b/src/plugins/files/public/components/upload_file/i18n_texts.ts @@ -9,32 +9,32 @@ import { i18n } from '@kbn/i18n'; export const i18nTexts = { - defaultPickerLabel: i18n.translate('xpack.files.uploadFile.defaultFilePickerLabel', { + defaultPickerLabel: i18n.translate('files.uploadFile.defaultFilePickerLabel', { defaultMessage: 'Upload a file', }), - upload: i18n.translate('xpack.files.uploadFile.uploadButtonLabel', { + upload: i18n.translate('files.uploadFile.uploadButtonLabel', { defaultMessage: 'Upload', }), - uploading: i18n.translate('xpack.files.uploadFile.uploadingButtonLabel', { + uploading: i18n.translate('files.uploadFile.uploadingButtonLabel', { defaultMessage: 'Uploading', }), - uploadComplete: i18n.translate('xpack.files.uploadFile.uploadCompleteButtonLabel', { + uploadComplete: i18n.translate('files.uploadFile.uploadCompleteButtonLabel', { defaultMessage: 'Upload complete', }), - retry: i18n.translate('xpack.files.uploadFile.retryButtonLabel', { + retry: i18n.translate('files.uploadFile.retryButtonLabel', { defaultMessage: 'Retry', }), - clear: i18n.translate('xpack.files.uploadFile.clearButtonLabel', { + clear: i18n.translate('files.uploadFile.clearButtonLabel', { defaultMessage: 'Clear', }), - cancel: i18n.translate('xpack.files.uploadFile.cancelButtonLabel', { + cancel: i18n.translate('files.uploadFile.cancelButtonLabel', { defaultMessage: 'Cancel', }), - uploadDone: i18n.translate('xpack.files.uploadFile.uploadDoneToolTipContent', { + uploadDone: i18n.translate('files.uploadFile.uploadDoneToolTipContent', { defaultMessage: 'Your file was successfully uploaded!', }), fileTooLarge: (expectedSize: string) => - i18n.translate('xpack.files.uploadFile.fileTooLargeErrorMessage', { + i18n.translate('files.uploadFile.fileTooLargeErrorMessage', { defaultMessage: 'File is too large. Maximum size is {expectedSize, plural, one {# byte} other {# bytes} }.', values: { expectedSize }, diff --git a/src/plugins/files/server/feature.ts b/src/plugins/files/server/feature.ts index 87e21f1315b9af..81ba7978e49f67 100644 --- a/src/plugins/files/server/feature.ts +++ b/src/plugins/files/server/feature.ts @@ -16,14 +16,14 @@ import { hiddenTypes } from './saved_objects'; // TODO: This should be registered once we have a management section for files content export const filesFeature: KibanaFeatureConfig = { id: PLUGIN_ID, - name: i18n.translate('xpack.files.featureRegistry.filesFeatureName', { + name: i18n.translate('files.featureRegistry.filesFeatureName', { defaultMessage: 'Files', }), minimumLicense: 'basic', order: 10000, category: DEFAULT_APP_CATEGORIES.management, app: [PLUGIN_ID], - privilegesTooltip: i18n.translate('xpack.files.featureRegistry.filesPrivilegesTooltip', { + privilegesTooltip: i18n.translate('files.featureRegistry.filesPrivilegesTooltip', { defaultMessage: 'Provide access to files across all apps', }), privileges: { From 82345b673295c3691c84e3f4322ba5c68faf5d05 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Thu, 27 Oct 2022 18:31:02 +0200 Subject: [PATCH 19/20] update .i18nrc.json --- .i18nrc.json | 6 ++---- x-pack/.i18nrc.json | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.i18nrc.json b/.i18nrc.json index 874c4ecbcc1ba2..2894905ae8f887 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -9,10 +9,7 @@ "charts": "src/plugins/charts", "console": "src/plugins/console", "contentManagement": "packages/content-management", - "core": [ - "src/core", - "packages/core" - ], + "core": ["src/core", "packages/core"], "customIntegrations": "src/plugins/custom_integrations", "dashboard": "src/plugins/dashboard", "controls": "src/plugins/controls", @@ -41,6 +38,7 @@ "expressionTagcloud": "src/plugins/chart_expressions/expression_tagcloud", "eventAnnotation": "src/plugins/event_annotation", "fieldFormats": "src/plugins/field_formats", + "files": "src/plugins/files", "flot": "packages/kbn-flot-charts/lib", "guidedOnboarding": "src/plugins/guided_onboarding", "guidedOnboardingPackage": "packages/kbn-guided-onboarding", diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 4f89798c71faf1..c67fbd2cdabf02 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -20,7 +20,6 @@ "xpack.endpoint": "plugins/endpoint", "xpack.enterpriseSearch": "plugins/enterprise_search", "xpack.features": "plugins/features", - "xpack.files": "plugins/files", "xpack.dataVisualizer": "plugins/data_visualizer", "xpack.fileUpload": "plugins/file_upload", "xpack.globalSearch": ["plugins/global_search"], From 986b948781d328a36486d2ab8ebe856757e6d1d5 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Mon, 31 Oct 2022 11:33:15 +0100 Subject: [PATCH 20/20] update i18n id --- src/plugins/files/public/components/file_picker/i18n_texts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/files/public/components/file_picker/i18n_texts.ts b/src/plugins/files/public/components/file_picker/i18n_texts.ts index a022ac39393ae4..0958e99cdffe12 100644 --- a/src/plugins/files/public/components/file_picker/i18n_texts.ts +++ b/src/plugins/files/public/components/file_picker/i18n_texts.ts @@ -44,7 +44,7 @@ export const i18nTexts = { clearFilterButton: i18n.translate('files.filePicker.clearFilterButtonLabel', { defaultMessage: 'Clear filter', }), - uploadFilePlaceholderText: i18n.translate('xpack.files.filePicker.uploadFilePlaceholderText', { + uploadFilePlaceholderText: i18n.translate('files.filePicker.uploadFilePlaceholderText', { defaultMessage: 'Drag and drop to upload new files', }), };