diff --git a/.eslintrc.js b/.eslintrc.js index 0e43c15cca13e..5a5648935685a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1111,7 +1111,10 @@ module.exports = { }, overrides: [ { - files: ['x-pack/plugins/security_solution/**/*.{js,mjs,ts,tsx}'], + files: [ + 'x-pack/plugins/security_solution/**/*.{js,mjs,ts,tsx}', + 'x-pack/plugins/cases/**/*.{js,mjs,ts,tsx}', + ], rules: { '@typescript-eslint/consistent-type-imports': 'error', }, diff --git a/api_docs/actions.mdx b/api_docs/actions.mdx index eb1487ddb610d..44a8da932ebdf 100644 --- a/api_docs/actions.mdx +++ b/api_docs/actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/actions title: "actions" image: https://source.unsplash.com/400x175/?github description: API docs for the actions plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions'] --- import actionsObj from './actions.devdocs.json'; diff --git a/api_docs/advanced_settings.mdx b/api_docs/advanced_settings.mdx index 8efa7f8781595..c9f06a7fd2960 100644 --- a/api_docs/advanced_settings.mdx +++ b/api_docs/advanced_settings.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/advancedSettings title: "advancedSettings" image: https://source.unsplash.com/400x175/?github description: API docs for the advancedSettings plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings'] --- import advancedSettingsObj from './advanced_settings.devdocs.json'; diff --git a/api_docs/aiops.mdx b/api_docs/aiops.mdx index c39e3fbf400c7..e8173cc57239e 100644 --- a/api_docs/aiops.mdx +++ b/api_docs/aiops.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiops title: "aiops" image: https://source.unsplash.com/400x175/?github description: API docs for the aiops plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops'] --- import aiopsObj from './aiops.devdocs.json'; diff --git a/api_docs/alerting.mdx b/api_docs/alerting.mdx index 35b9e4b271e82..e66c835cde417 100644 --- a/api_docs/alerting.mdx +++ b/api_docs/alerting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/alerting title: "alerting" image: https://source.unsplash.com/400x175/?github description: API docs for the alerting plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting'] --- import alertingObj from './alerting.devdocs.json'; diff --git a/api_docs/apm.mdx b/api_docs/apm.mdx index d268ae24dbc35..c55852de2cb5a 100644 --- a/api_docs/apm.mdx +++ b/api_docs/apm.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apm title: "apm" image: https://source.unsplash.com/400x175/?github description: API docs for the apm plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm'] --- import apmObj from './apm.devdocs.json'; diff --git a/api_docs/banners.mdx b/api_docs/banners.mdx index 646e7c8219680..0104cb6bda448 100644 --- a/api_docs/banners.mdx +++ b/api_docs/banners.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/banners title: "banners" image: https://source.unsplash.com/400x175/?github description: API docs for the banners plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'banners'] --- import bannersObj from './banners.devdocs.json'; diff --git a/api_docs/bfetch.mdx b/api_docs/bfetch.mdx index 41bbb3e7fde44..1062c61b4eb77 100644 --- a/api_docs/bfetch.mdx +++ b/api_docs/bfetch.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/bfetch title: "bfetch" image: https://source.unsplash.com/400x175/?github description: API docs for the bfetch plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'bfetch'] --- import bfetchObj from './bfetch.devdocs.json'; diff --git a/api_docs/canvas.mdx b/api_docs/canvas.mdx index bd967866d8230..dd47790528e13 100644 --- a/api_docs/canvas.mdx +++ b/api_docs/canvas.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/canvas title: "canvas" image: https://source.unsplash.com/400x175/?github description: API docs for the canvas plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'canvas'] --- import canvasObj from './canvas.devdocs.json'; diff --git a/api_docs/cases.mdx b/api_docs/cases.mdx index d8a87f238d651..a170a098ef509 100644 --- a/api_docs/cases.mdx +++ b/api_docs/cases.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cases title: "cases" image: https://source.unsplash.com/400x175/?github description: API docs for the cases plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cases'] --- import casesObj from './cases.devdocs.json'; diff --git a/api_docs/charts.mdx b/api_docs/charts.mdx index b954be6c09277..ec60bb2bf7937 100644 --- a/api_docs/charts.mdx +++ b/api_docs/charts.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/charts title: "charts" image: https://source.unsplash.com/400x175/?github description: API docs for the charts plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'charts'] --- import chartsObj from './charts.devdocs.json'; diff --git a/api_docs/cloud.mdx b/api_docs/cloud.mdx index d9469e759a288..ac208319e2e02 100644 --- a/api_docs/cloud.mdx +++ b/api_docs/cloud.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloud title: "cloud" image: https://source.unsplash.com/400x175/?github description: API docs for the cloud plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloud'] --- import cloudObj from './cloud.devdocs.json'; diff --git a/api_docs/cloud_chat.mdx b/api_docs/cloud_chat.mdx index 4f569492a3ce5..9dada4c4dd04e 100644 --- a/api_docs/cloud_chat.mdx +++ b/api_docs/cloud_chat.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudChat title: "cloudChat" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudChat plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudChat'] --- import cloudChatObj from './cloud_chat.devdocs.json'; diff --git a/api_docs/cloud_experiments.mdx b/api_docs/cloud_experiments.mdx index 54eb31e82e81a..3d656220231ff 100644 --- a/api_docs/cloud_experiments.mdx +++ b/api_docs/cloud_experiments.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudExperiments title: "cloudExperiments" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudExperiments plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudExperiments'] --- import cloudExperimentsObj from './cloud_experiments.devdocs.json'; diff --git a/api_docs/cloud_security_posture.mdx b/api_docs/cloud_security_posture.mdx index 5cc76805706d6..7c4195e373d96 100644 --- a/api_docs/cloud_security_posture.mdx +++ b/api_docs/cloud_security_posture.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cloudSecurityPosture title: "cloudSecurityPosture" image: https://source.unsplash.com/400x175/?github description: API docs for the cloudSecurityPosture plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cloudSecurityPosture'] --- import cloudSecurityPostureObj from './cloud_security_posture.devdocs.json'; diff --git a/api_docs/console.mdx b/api_docs/console.mdx index ba26675b39cbd..eef60631d7706 100644 --- a/api_docs/console.mdx +++ b/api_docs/console.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/console title: "console" image: https://source.unsplash.com/400x175/?github description: API docs for the console plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'console'] --- import consoleObj from './console.devdocs.json'; diff --git a/api_docs/controls.mdx b/api_docs/controls.mdx index d6b0f70a9cf33..f475769e816dc 100644 --- a/api_docs/controls.mdx +++ b/api_docs/controls.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/controls title: "controls" image: https://source.unsplash.com/400x175/?github description: API docs for the controls plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'controls'] --- import controlsObj from './controls.devdocs.json'; diff --git a/api_docs/core.mdx b/api_docs/core.mdx index 4a9b93624ce46..a2435d5368b9b 100644 --- a/api_docs/core.mdx +++ b/api_docs/core.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/core title: "core" image: https://source.unsplash.com/400x175/?github description: API docs for the core plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'core'] --- import coreObj from './core.devdocs.json'; diff --git a/api_docs/custom_integrations.mdx b/api_docs/custom_integrations.mdx index 1a241c5d3afef..141e578ac4fc7 100644 --- a/api_docs/custom_integrations.mdx +++ b/api_docs/custom_integrations.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/customIntegrations title: "customIntegrations" image: https://source.unsplash.com/400x175/?github description: API docs for the customIntegrations plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'customIntegrations'] --- import customIntegrationsObj from './custom_integrations.devdocs.json'; diff --git a/api_docs/dashboard.mdx b/api_docs/dashboard.mdx index 6daeff8f09e23..4298c36f86195 100644 --- a/api_docs/dashboard.mdx +++ b/api_docs/dashboard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dashboard title: "dashboard" image: https://source.unsplash.com/400x175/?github description: API docs for the dashboard plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboard'] --- import dashboardObj from './dashboard.devdocs.json'; diff --git a/api_docs/dashboard_enhanced.mdx b/api_docs/dashboard_enhanced.mdx index 32db4218f4f97..b92690c335ea4 100644 --- a/api_docs/dashboard_enhanced.mdx +++ b/api_docs/dashboard_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dashboardEnhanced title: "dashboardEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the dashboardEnhanced plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dashboardEnhanced'] --- import dashboardEnhancedObj from './dashboard_enhanced.devdocs.json'; diff --git a/api_docs/data.mdx b/api_docs/data.mdx index 174bf75e5af79..6bc8d66273ed2 100644 --- a/api_docs/data.mdx +++ b/api_docs/data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data title: "data" image: https://source.unsplash.com/400x175/?github description: API docs for the data plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data'] --- import dataObj from './data.devdocs.json'; diff --git a/api_docs/data_query.mdx b/api_docs/data_query.mdx index dd592bf2517b5..13aa66ad4c1bb 100644 --- a/api_docs/data_query.mdx +++ b/api_docs/data_query.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data-query title: "data.query" image: https://source.unsplash.com/400x175/?github description: API docs for the data.query plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.query'] --- import dataQueryObj from './data_query.devdocs.json'; diff --git a/api_docs/data_search.mdx b/api_docs/data_search.mdx index f5a60d70bb2c6..afe45496b9cc4 100644 --- a/api_docs/data_search.mdx +++ b/api_docs/data_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/data-search title: "data.search" image: https://source.unsplash.com/400x175/?github description: API docs for the data.search plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'data.search'] --- import dataSearchObj from './data_search.devdocs.json'; diff --git a/api_docs/data_view_editor.mdx b/api_docs/data_view_editor.mdx index 9c86d87a5f88a..9b182a62c9bba 100644 --- a/api_docs/data_view_editor.mdx +++ b/api_docs/data_view_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewEditor title: "dataViewEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewEditor plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewEditor'] --- import dataViewEditorObj from './data_view_editor.devdocs.json'; diff --git a/api_docs/data_view_field_editor.mdx b/api_docs/data_view_field_editor.mdx index a5f257464b327..7618ea5a3857d 100644 --- a/api_docs/data_view_field_editor.mdx +++ b/api_docs/data_view_field_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewFieldEditor title: "dataViewFieldEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewFieldEditor plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewFieldEditor'] --- import dataViewFieldEditorObj from './data_view_field_editor.devdocs.json'; diff --git a/api_docs/data_view_management.mdx b/api_docs/data_view_management.mdx index 0d2ae84687987..88419f85fef70 100644 --- a/api_docs/data_view_management.mdx +++ b/api_docs/data_view_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViewManagement title: "dataViewManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViewManagement plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViewManagement'] --- import dataViewManagementObj from './data_view_management.devdocs.json'; diff --git a/api_docs/data_views.mdx b/api_docs/data_views.mdx index a4a8fb7164d13..ea1a50769ae6f 100644 --- a/api_docs/data_views.mdx +++ b/api_docs/data_views.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataViews title: "dataViews" image: https://source.unsplash.com/400x175/?github description: API docs for the dataViews plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataViews'] --- import dataViewsObj from './data_views.devdocs.json'; diff --git a/api_docs/data_visualizer.mdx b/api_docs/data_visualizer.mdx index 509f317201b63..589d097fd6ec3 100644 --- a/api_docs/data_visualizer.mdx +++ b/api_docs/data_visualizer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/dataVisualizer title: "dataVisualizer" image: https://source.unsplash.com/400x175/?github description: API docs for the dataVisualizer plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'dataVisualizer'] --- import dataVisualizerObj from './data_visualizer.devdocs.json'; diff --git a/api_docs/deprecations_by_api.mdx b/api_docs/deprecations_by_api.mdx index 1a6c8659439f8..294b8baa0a135 100644 --- a/api_docs/deprecations_by_api.mdx +++ b/api_docs/deprecations_by_api.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsByApi slug: /kibana-dev-docs/api-meta/deprecated-api-list-by-api title: Deprecated API usage by API description: A list of deprecated APIs, which plugins are still referencing them, and when they need to be removed by. -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- diff --git a/api_docs/deprecations_by_plugin.mdx b/api_docs/deprecations_by_plugin.mdx index 1bae8a7b2bc20..77d7f9b7f82e7 100644 --- a/api_docs/deprecations_by_plugin.mdx +++ b/api_docs/deprecations_by_plugin.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsByPlugin slug: /kibana-dev-docs/api-meta/deprecated-api-list-by-plugin title: Deprecated API usage by plugin description: A list of deprecated APIs, which plugins are still referencing them, and when they need to be removed by. -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- diff --git a/api_docs/deprecations_by_team.mdx b/api_docs/deprecations_by_team.mdx index e0042adee26db..051dd9119b418 100644 --- a/api_docs/deprecations_by_team.mdx +++ b/api_docs/deprecations_by_team.mdx @@ -7,7 +7,7 @@ id: kibDevDocsDeprecationsDueByTeam slug: /kibana-dev-docs/api-meta/deprecations-due-by-team title: Deprecated APIs due to be removed, by team description: Lists the teams that are referencing deprecated APIs with a remove by date. -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- diff --git a/api_docs/dev_tools.mdx b/api_docs/dev_tools.mdx index d9e9568875adb..d475502a928d2 100644 --- a/api_docs/dev_tools.mdx +++ b/api_docs/dev_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/devTools title: "devTools" image: https://source.unsplash.com/400x175/?github description: API docs for the devTools plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'devTools'] --- import devToolsObj from './dev_tools.devdocs.json'; diff --git a/api_docs/discover.mdx b/api_docs/discover.mdx index 495a0e8ec6e81..0987eb3d36c0d 100644 --- a/api_docs/discover.mdx +++ b/api_docs/discover.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/discover title: "discover" image: https://source.unsplash.com/400x175/?github description: API docs for the discover plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discover'] --- import discoverObj from './discover.devdocs.json'; diff --git a/api_docs/discover_enhanced.mdx b/api_docs/discover_enhanced.mdx index 3dcadce3585c0..b9258ccd6cff9 100644 --- a/api_docs/discover_enhanced.mdx +++ b/api_docs/discover_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/discoverEnhanced title: "discoverEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the discoverEnhanced plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'discoverEnhanced'] --- import discoverEnhancedObj from './discover_enhanced.devdocs.json'; diff --git a/api_docs/embeddable.mdx b/api_docs/embeddable.mdx index a23b5b4de8375..d87fd71d4813b 100644 --- a/api_docs/embeddable.mdx +++ b/api_docs/embeddable.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/embeddable title: "embeddable" image: https://source.unsplash.com/400x175/?github description: API docs for the embeddable plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'embeddable'] --- import embeddableObj from './embeddable.devdocs.json'; diff --git a/api_docs/embeddable_enhanced.mdx b/api_docs/embeddable_enhanced.mdx index 90995e3bfa964..d0efc7d058262 100644 --- a/api_docs/embeddable_enhanced.mdx +++ b/api_docs/embeddable_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/embeddableEnhanced title: "embeddableEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the embeddableEnhanced plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'embeddableEnhanced'] --- import embeddableEnhancedObj from './embeddable_enhanced.devdocs.json'; diff --git a/api_docs/encrypted_saved_objects.mdx b/api_docs/encrypted_saved_objects.mdx index 34c1ea59c2abb..fb272c39b3337 100644 --- a/api_docs/encrypted_saved_objects.mdx +++ b/api_docs/encrypted_saved_objects.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/encryptedSavedObjects title: "encryptedSavedObjects" image: https://source.unsplash.com/400x175/?github description: API docs for the encryptedSavedObjects plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'encryptedSavedObjects'] --- import encryptedSavedObjectsObj from './encrypted_saved_objects.devdocs.json'; diff --git a/api_docs/enterprise_search.mdx b/api_docs/enterprise_search.mdx index 343431e4c5c21..6911b0f2b73c9 100644 --- a/api_docs/enterprise_search.mdx +++ b/api_docs/enterprise_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/enterpriseSearch title: "enterpriseSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the enterpriseSearch plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'enterpriseSearch'] --- import enterpriseSearchObj from './enterprise_search.devdocs.json'; diff --git a/api_docs/es_ui_shared.mdx b/api_docs/es_ui_shared.mdx index 5b014c7c0694a..7c24943a52254 100644 --- a/api_docs/es_ui_shared.mdx +++ b/api_docs/es_ui_shared.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/esUiShared title: "esUiShared" image: https://source.unsplash.com/400x175/?github description: API docs for the esUiShared plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'esUiShared'] --- import esUiSharedObj from './es_ui_shared.devdocs.json'; diff --git a/api_docs/event_annotation.mdx b/api_docs/event_annotation.mdx index 020dd9437577f..46c72c5979803 100644 --- a/api_docs/event_annotation.mdx +++ b/api_docs/event_annotation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/eventAnnotation title: "eventAnnotation" image: https://source.unsplash.com/400x175/?github description: API docs for the eventAnnotation plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventAnnotation'] --- import eventAnnotationObj from './event_annotation.devdocs.json'; diff --git a/api_docs/event_log.mdx b/api_docs/event_log.mdx index 0439d22f3e1b0..56f2a42cafcd9 100644 --- a/api_docs/event_log.mdx +++ b/api_docs/event_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/eventLog title: "eventLog" image: https://source.unsplash.com/400x175/?github description: API docs for the eventLog plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'eventLog'] --- import eventLogObj from './event_log.devdocs.json'; diff --git a/api_docs/expression_error.mdx b/api_docs/expression_error.mdx index 07f25b5592b84..bd779d168e848 100644 --- a/api_docs/expression_error.mdx +++ b/api_docs/expression_error.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionError title: "expressionError" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionError plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionError'] --- import expressionErrorObj from './expression_error.devdocs.json'; diff --git a/api_docs/expression_gauge.mdx b/api_docs/expression_gauge.mdx index b97850f178671..fb3222340a00b 100644 --- a/api_docs/expression_gauge.mdx +++ b/api_docs/expression_gauge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionGauge title: "expressionGauge" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionGauge plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionGauge'] --- import expressionGaugeObj from './expression_gauge.devdocs.json'; diff --git a/api_docs/expression_heatmap.mdx b/api_docs/expression_heatmap.mdx index 8ee4ab363e88f..17065861981cd 100644 --- a/api_docs/expression_heatmap.mdx +++ b/api_docs/expression_heatmap.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionHeatmap title: "expressionHeatmap" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionHeatmap plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionHeatmap'] --- import expressionHeatmapObj from './expression_heatmap.devdocs.json'; diff --git a/api_docs/expression_image.mdx b/api_docs/expression_image.mdx index 01b9779c303de..9933dd2032597 100644 --- a/api_docs/expression_image.mdx +++ b/api_docs/expression_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionImage title: "expressionImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionImage plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionImage'] --- import expressionImageObj from './expression_image.devdocs.json'; diff --git a/api_docs/expression_legacy_metric_vis.mdx b/api_docs/expression_legacy_metric_vis.mdx index 77e866e689778..9de9393a41450 100644 --- a/api_docs/expression_legacy_metric_vis.mdx +++ b/api_docs/expression_legacy_metric_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionLegacyMetricVis title: "expressionLegacyMetricVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionLegacyMetricVis plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionLegacyMetricVis'] --- import expressionLegacyMetricVisObj from './expression_legacy_metric_vis.devdocs.json'; diff --git a/api_docs/expression_metric.mdx b/api_docs/expression_metric.mdx index 1011437ae1e1d..75bd75b868b0e 100644 --- a/api_docs/expression_metric.mdx +++ b/api_docs/expression_metric.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionMetric title: "expressionMetric" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionMetric plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetric'] --- import expressionMetricObj from './expression_metric.devdocs.json'; diff --git a/api_docs/expression_metric_vis.mdx b/api_docs/expression_metric_vis.mdx index 27aec8dea2ffd..961ffc0eecfd3 100644 --- a/api_docs/expression_metric_vis.mdx +++ b/api_docs/expression_metric_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionMetricVis title: "expressionMetricVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionMetricVis plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionMetricVis'] --- import expressionMetricVisObj from './expression_metric_vis.devdocs.json'; diff --git a/api_docs/expression_partition_vis.mdx b/api_docs/expression_partition_vis.mdx index 836e7bedb1e6a..4aca4e034dfdb 100644 --- a/api_docs/expression_partition_vis.mdx +++ b/api_docs/expression_partition_vis.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionPartitionVis title: "expressionPartitionVis" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionPartitionVis plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionPartitionVis'] --- import expressionPartitionVisObj from './expression_partition_vis.devdocs.json'; diff --git a/api_docs/expression_repeat_image.mdx b/api_docs/expression_repeat_image.mdx index faeeacfabfd3f..c447ec5bc621e 100644 --- a/api_docs/expression_repeat_image.mdx +++ b/api_docs/expression_repeat_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionRepeatImage title: "expressionRepeatImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionRepeatImage plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRepeatImage'] --- import expressionRepeatImageObj from './expression_repeat_image.devdocs.json'; diff --git a/api_docs/expression_reveal_image.mdx b/api_docs/expression_reveal_image.mdx index 94e1f192e8026..85ef888dd171d 100644 --- a/api_docs/expression_reveal_image.mdx +++ b/api_docs/expression_reveal_image.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionRevealImage title: "expressionRevealImage" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionRevealImage plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionRevealImage'] --- import expressionRevealImageObj from './expression_reveal_image.devdocs.json'; diff --git a/api_docs/expression_shape.mdx b/api_docs/expression_shape.mdx index d1b8304c51d39..3a310b469bf9a 100644 --- a/api_docs/expression_shape.mdx +++ b/api_docs/expression_shape.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionShape title: "expressionShape" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionShape plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionShape'] --- import expressionShapeObj from './expression_shape.devdocs.json'; diff --git a/api_docs/expression_tagcloud.mdx b/api_docs/expression_tagcloud.mdx index fd04d9f42ce63..4d815ed16bb29 100644 --- a/api_docs/expression_tagcloud.mdx +++ b/api_docs/expression_tagcloud.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionTagcloud title: "expressionTagcloud" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionTagcloud plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionTagcloud'] --- import expressionTagcloudObj from './expression_tagcloud.devdocs.json'; diff --git a/api_docs/expression_x_y.devdocs.json b/api_docs/expression_x_y.devdocs.json index e0b7d47cfa7ca..9378c2a614083 100644 --- a/api_docs/expression_x_y.devdocs.json +++ b/api_docs/expression_x_y.devdocs.json @@ -1813,6 +1813,20 @@ "path": "src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts", "deprecated": false, "trackAdoption": false + }, + { + "parentPluginId": "expressionXY", + "id": "def-common.XYChartProps.canNavigateToLens", + "type": "CompoundType", + "tags": [], + "label": "canNavigateToLens", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts", + "deprecated": false, + "trackAdoption": false } ], "initialIsOpen": false diff --git a/api_docs/expression_x_y.mdx b/api_docs/expression_x_y.mdx index 7f06be4f1b41f..dec05d77bd487 100644 --- a/api_docs/expression_x_y.mdx +++ b/api_docs/expression_x_y.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressionXY title: "expressionXY" image: https://source.unsplash.com/400x175/?github description: API docs for the expressionXY plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressionXY'] --- import expressionXYObj from './expression_x_y.devdocs.json'; @@ -21,7 +21,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 157 | 0 | 147 | 9 | +| 158 | 0 | 148 | 9 | ## Client diff --git a/api_docs/expressions.mdx b/api_docs/expressions.mdx index 12dabf8516cfe..d1960b4de9b68 100644 --- a/api_docs/expressions.mdx +++ b/api_docs/expressions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/expressions title: "expressions" image: https://source.unsplash.com/400x175/?github description: API docs for the expressions plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'expressions'] --- import expressionsObj from './expressions.devdocs.json'; diff --git a/api_docs/features.mdx b/api_docs/features.mdx index fd6c3ab75b9cf..1133028869eba 100644 --- a/api_docs/features.mdx +++ b/api_docs/features.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/features title: "features" image: https://source.unsplash.com/400x175/?github description: API docs for the features plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'features'] --- import featuresObj from './features.devdocs.json'; diff --git a/api_docs/field_formats.mdx b/api_docs/field_formats.mdx index f413678b536a7..9c94a44ffadec 100644 --- a/api_docs/field_formats.mdx +++ b/api_docs/field_formats.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fieldFormats title: "fieldFormats" image: https://source.unsplash.com/400x175/?github description: API docs for the fieldFormats plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fieldFormats'] --- import fieldFormatsObj from './field_formats.devdocs.json'; diff --git a/api_docs/file_upload.mdx b/api_docs/file_upload.mdx index 1bdd39c60beb8..9a9be7582ce9d 100644 --- a/api_docs/file_upload.mdx +++ b/api_docs/file_upload.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fileUpload title: "fileUpload" image: https://source.unsplash.com/400x175/?github description: API docs for the fileUpload plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fileUpload'] --- import fileUploadObj from './file_upload.devdocs.json'; diff --git a/api_docs/files.devdocs.json b/api_docs/files.devdocs.json index f9492ae882e46..86537866c421c 100644 --- a/api_docs/files.devdocs.json +++ b/api_docs/files.devdocs.json @@ -284,7 +284,7 @@ "\nList all file objects, of a given {@link FileKind}.\n" ], "signature": [ - "(args: Readonly<{ page?: number | undefined; perPage?: number | undefined; } & {}> & { kind: string; }) => Promise<{ files: ", + "(args: Readonly<{ name?: string | string[] | undefined; status?: string | string[] | undefined; meta?: Readonly<{} & {}> | undefined; extension?: string | string[] | undefined; } & {}> & Readonly<{ page?: number | undefined; perPage?: number | undefined; } & {}> & { kind: string; }) => Promise<{ files: ", { "pluginId": "files", "scope": "common", @@ -292,7 +292,7 @@ "section": "def-common.FileJSON", "text": "FileJSON" }, - "[]; }>" + "[]; total: number; }>" ], "path": "x-pack/plugins/files/public/types.ts", "deprecated": false, @@ -1093,7 +1093,7 @@ "section": "def-common.FileJSON", "text": "FileJSON" }, - "[]; }; update: { file: ", + "[]; total: number; }; update: { file: ", { "pluginId": "files", "scope": "common", @@ -1141,7 +1141,7 @@ "section": "def-common.FileJSON", "text": "FileJSON" }, - "[]; }; }" + "[]; total: number; }; }" ], "path": "x-pack/plugins/files/public/types.ts", "deprecated": false, @@ -1174,7 +1174,7 @@ "section": "def-common.FileJSON", "text": "FileJSON" }, - "; }>; list: (arg?: Omit & { kind: string; }, \"kind\"> | undefined) => Promise<{ files: ", + "; }>; list: (arg?: Omit | undefined; extension?: string | string[] | undefined; } & {}> & Readonly<{ page?: number | undefined; perPage?: number | undefined; } & {}> & { kind: string; }, \"kind\"> | undefined) => Promise<{ files: ", { "pluginId": "files", "scope": "common", @@ -1182,7 +1182,7 @@ "section": "def-common.FileJSON", "text": "FileJSON" }, - "[]; }>; update: (arg: Omit | undefined; alt?: string | undefined; } & {}> & Readonly<{} & { id: string; }> & { kind: string; }, \"kind\">) => Promise<{ file: ", + "[]; total: number; }>; update: (arg: Omit | undefined; alt?: string | undefined; } & {}> & Readonly<{} & { id: string; }> & { kind: string; }, \"kind\">) => Promise<{ file: ", { "pluginId": "files", "scope": "common", @@ -1238,7 +1238,7 @@ "section": "def-common.FileJSON", "text": "FileJSON" }, - "[]; }>; }" + "[]; total: number; }>; }" ], "path": "x-pack/plugins/files/public/types.ts", "deprecated": false, @@ -3228,65 +3228,6 @@ ], "returnComment": [] }, - { - "parentPluginId": "files", - "id": "def-server.FileClient.list", - "type": "Function", - "tags": [], - "label": "list", - "description": [ - "\nSee {@link FileMetadataClient.list}\n" - ], - "signature": [ - "(arg?: ", - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.ListArg", - "text": "ListArg" - }, - " | undefined) => Promise<", - { - "pluginId": "files", - "scope": "common", - "docId": "kibFilesPluginApi", - "section": "def-common.File", - "text": "File" - }, - "[]>" - ], - "path": "x-pack/plugins/files/server/file_client/types.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "files", - "id": "def-server.FileClient.list.$1", - "type": "Object", - "tags": [], - "label": "arg", - "description": [ - "- Argument to list files" - ], - "signature": [ - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.ListArg", - "text": "ListArg" - }, - " | undefined" - ], - "path": "x-pack/plugins/files/server/file_client/types.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": false - } - ], - "returnComment": [] - }, { "parentPluginId": "files", "id": "def-server.FileClient.find", @@ -3297,7 +3238,7 @@ "\nSee {@link FileMetadataClient.find}.\n" ], "signature": [ - "(arg: ", + "(arg?: ", { "pluginId": "files", "scope": "server", @@ -3305,7 +3246,7 @@ "section": "def-server.FindFileArgs", "text": "FindFileArgs" }, - ") => Promise<", + " | undefined) => Promise<{ files: ", { "pluginId": "files", "scope": "common", @@ -3313,7 +3254,7 @@ "section": "def-common.File", "text": "File" }, - "[]>" + "[]; total: number; }>" ], "path": "x-pack/plugins/files/server/file_client/types.ts", "deprecated": false, @@ -3335,12 +3276,13 @@ "docId": "kibFilesPluginApi", "section": "def-server.FindFileArgs", "text": "FindFileArgs" - } + }, + " | undefined" ], "path": "x-pack/plugins/files/server/file_client/types.ts", "deprecated": false, "trackAdoption": false, - "isRequired": true + "isRequired": false } ], "returnComment": [] @@ -3802,65 +3744,6 @@ ], "returnComment": [] }, - { - "parentPluginId": "files", - "id": "def-server.FileMetadataClient.list", - "type": "Function", - "tags": [], - "label": "list", - "description": [ - "\nList all instances of metadata for a file kind.\n" - ], - "signature": [ - "(arg?: ", - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.ListArg", - "text": "ListArg" - }, - " | undefined) => Promise<", - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.FileDescriptor", - "text": "FileDescriptor" - }, - "[]>" - ], - "path": "x-pack/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "files", - "id": "def-server.FileMetadataClient.list.$1", - "type": "Object", - "tags": [], - "label": "arg", - "description": [ - "- Arguments to list file metadata" - ], - "signature": [ - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.ListArg", - "text": "ListArg" - }, - " | undefined" - ], - "path": "x-pack/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": false - } - ], - "returnComment": [] - }, { "parentPluginId": "files", "id": "def-server.FileMetadataClient.find", @@ -3871,7 +3754,7 @@ "\nSearch for a set of file kind instances that match the filters.\n" ], "signature": [ - "(arg: ", + "(arg?: ", { "pluginId": "files", "scope": "server", @@ -3879,7 +3762,7 @@ "section": "def-server.FindFileArgs", "text": "FindFileArgs" }, - ") => Promise<", + " | undefined) => Promise<{ total: number; files: ", { "pluginId": "files", "scope": "server", @@ -3887,7 +3770,7 @@ "section": "def-server.FileDescriptor", "text": "FileDescriptor" }, - "[]>" + "[]; }>" ], "path": "x-pack/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts", "deprecated": false, @@ -3909,12 +3792,13 @@ "docId": "kibFilesPluginApi", "section": "def-server.FindFileArgs", "text": "FindFileArgs" - } + }, + " | undefined" ], "path": "x-pack/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts", "deprecated": false, "trackAdoption": false, - "isRequired": true + "isRequired": false } ], "returnComment": [] @@ -4317,7 +4201,7 @@ "section": "def-server.FindFileArgs", "text": "FindFileArgs" }, - ") => Promise<", + ") => Promise<{ files: ", { "pluginId": "files", "scope": "common", @@ -4325,7 +4209,7 @@ "section": "def-common.FileJSON", "text": "FileJSON" }, - "[]>" + "[]; total: number; }>" ], "path": "x-pack/plugins/files/server/file_service/file_service.ts", "deprecated": false, @@ -4357,64 +4241,6 @@ ], "returnComment": [] }, - { - "parentPluginId": "files", - "id": "def-server.FileServiceStart.list", - "type": "Function", - "tags": [], - "label": "list", - "description": [ - "\nList all files of specific file kind.\n" - ], - "signature": [ - "(args: ", - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.ListFilesArgs", - "text": "ListFilesArgs" - }, - ") => Promise<", - { - "pluginId": "files", - "scope": "common", - "docId": "kibFilesPluginApi", - "section": "def-common.File", - "text": "File" - }, - "[]>" - ], - "path": "x-pack/plugins/files/server/file_service/file_service.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "files", - "id": "def-server.FileServiceStart.list.$1", - "type": "Object", - "tags": [], - "label": "args", - "description": [ - "- list files args" - ], - "signature": [ - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.ListFilesArgs", - "text": "ListFilesArgs" - } - ], - "path": "x-pack/plugins/files/server/file_service/file_service.ts", - "deprecated": false, - "trackAdoption": false, - "isRequired": true - } - ], - "returnComment": [] - }, { "parentPluginId": "files", "id": "def-server.FileServiceStart.getShareObject", @@ -5157,53 +4983,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "files", - "id": "def-server.ListArg", - "type": "Interface", - "tags": [], - "label": "ListArg", - "description": [], - "signature": [ - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.ListArg", - "text": "ListArg" - }, - " extends ", - { - "pluginId": "files", - "scope": "common", - "docId": "kibFilesPluginApi", - "section": "def-common.Pagination", - "text": "Pagination" - } - ], - "path": "x-pack/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "files", - "id": "def-server.ListArg.fileKind", - "type": "string", - "tags": [], - "label": "fileKind", - "description": [ - "\nThe file kind to scope this query to" - ], - "signature": [ - "string | undefined" - ], - "path": "x-pack/plugins/files/server/file_client/file_metadata_client/file_metadata_client.ts", - "deprecated": false, - "trackAdoption": false - } - ], - "initialIsOpen": false - }, { "parentPluginId": "files", "id": "def-server.ListArgs", @@ -5253,52 +5032,6 @@ ], "initialIsOpen": false }, - { - "parentPluginId": "files", - "id": "def-server.ListFilesArgs", - "type": "Interface", - "tags": [], - "label": "ListFilesArgs", - "description": [ - "\nArguments list files." - ], - "signature": [ - { - "pluginId": "files", - "scope": "server", - "docId": "kibFilesPluginApi", - "section": "def-server.ListFilesArgs", - "text": "ListFilesArgs" - }, - " extends ", - { - "pluginId": "files", - "scope": "common", - "docId": "kibFilesPluginApi", - "section": "def-common.Pagination", - "text": "Pagination" - } - ], - "path": "x-pack/plugins/files/server/file_service/file_action_types.ts", - "deprecated": false, - "trackAdoption": false, - "children": [ - { - "parentPluginId": "files", - "id": "def-server.ListFilesArgs.fileKind", - "type": "string", - "tags": [], - "label": "fileKind", - "description": [ - "\nFile kind, must correspond to a registered {@link FileKind}." - ], - "path": "x-pack/plugins/files/server/file_service/file_action_types.ts", - "deprecated": false, - "trackAdoption": false - } - ], - "initialIsOpen": false - }, { "parentPluginId": "files", "id": "def-server.UpdateArgs", diff --git a/api_docs/files.mdx b/api_docs/files.mdx index d81441b17ea2d..76efd6cfb977f 100644 --- a/api_docs/files.mdx +++ b/api_docs/files.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/files title: "files" image: https://source.unsplash.com/400x175/?github description: API docs for the files plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'files'] --- import filesObj from './files.devdocs.json'; @@ -21,7 +21,7 @@ Contact [@elastic/kibana-app-services](https://github.com/orgs/elastic/teams/tea | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 270 | 0 | 15 | 2 | +| 260 | 0 | 14 | 2 | ## Client diff --git a/api_docs/fleet.mdx b/api_docs/fleet.mdx index c0447d71298df..e58a20c5ee983 100644 --- a/api_docs/fleet.mdx +++ b/api_docs/fleet.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/fleet title: "fleet" image: https://source.unsplash.com/400x175/?github description: API docs for the fleet plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'fleet'] --- import fleetObj from './fleet.devdocs.json'; diff --git a/api_docs/global_search.mdx b/api_docs/global_search.mdx index 8e9ba7f45684c..c4c9a924f15bf 100644 --- a/api_docs/global_search.mdx +++ b/api_docs/global_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/globalSearch title: "globalSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the globalSearch plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'globalSearch'] --- import globalSearchObj from './global_search.devdocs.json'; diff --git a/api_docs/guided_onboarding.mdx b/api_docs/guided_onboarding.mdx index 10b43de72130a..e8b5280d0e2ea 100644 --- a/api_docs/guided_onboarding.mdx +++ b/api_docs/guided_onboarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/guidedOnboarding title: "guidedOnboarding" image: https://source.unsplash.com/400x175/?github description: API docs for the guidedOnboarding plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'guidedOnboarding'] --- import guidedOnboardingObj from './guided_onboarding.devdocs.json'; diff --git a/api_docs/home.mdx b/api_docs/home.mdx index 4310a630f34da..246f650f020c1 100644 --- a/api_docs/home.mdx +++ b/api_docs/home.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/home title: "home" image: https://source.unsplash.com/400x175/?github description: API docs for the home plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'home'] --- import homeObj from './home.devdocs.json'; diff --git a/api_docs/index_lifecycle_management.mdx b/api_docs/index_lifecycle_management.mdx index 186519279e1b8..91cf3a7836f2c 100644 --- a/api_docs/index_lifecycle_management.mdx +++ b/api_docs/index_lifecycle_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/indexLifecycleManagement title: "indexLifecycleManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the indexLifecycleManagement plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexLifecycleManagement'] --- import indexLifecycleManagementObj from './index_lifecycle_management.devdocs.json'; diff --git a/api_docs/index_management.mdx b/api_docs/index_management.mdx index 0434e0878974b..7ee6cf44735d6 100644 --- a/api_docs/index_management.mdx +++ b/api_docs/index_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/indexManagement title: "indexManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the indexManagement plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'indexManagement'] --- import indexManagementObj from './index_management.devdocs.json'; diff --git a/api_docs/infra.mdx b/api_docs/infra.mdx index ccd47d562583e..63e5474c9b3d2 100644 --- a/api_docs/infra.mdx +++ b/api_docs/infra.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/infra title: "infra" image: https://source.unsplash.com/400x175/?github description: API docs for the infra plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'infra'] --- import infraObj from './infra.devdocs.json'; diff --git a/api_docs/inspector.mdx b/api_docs/inspector.mdx index e26714eb8cafb..75f7a54eb7483 100644 --- a/api_docs/inspector.mdx +++ b/api_docs/inspector.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/inspector title: "inspector" image: https://source.unsplash.com/400x175/?github description: API docs for the inspector plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'inspector'] --- import inspectorObj from './inspector.devdocs.json'; diff --git a/api_docs/interactive_setup.mdx b/api_docs/interactive_setup.mdx index 1b9eafd7f4838..4858834afb756 100644 --- a/api_docs/interactive_setup.mdx +++ b/api_docs/interactive_setup.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/interactiveSetup title: "interactiveSetup" image: https://source.unsplash.com/400x175/?github description: API docs for the interactiveSetup plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'interactiveSetup'] --- import interactiveSetupObj from './interactive_setup.devdocs.json'; diff --git a/api_docs/kbn_ace.mdx b/api_docs/kbn_ace.mdx index bd1891303fc21..6d7f73bfc8ad2 100644 --- a/api_docs/kbn_ace.mdx +++ b/api_docs/kbn_ace.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ace title: "@kbn/ace" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ace plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ace'] --- import kbnAceObj from './kbn_ace.devdocs.json'; diff --git a/api_docs/kbn_aiops_components.mdx b/api_docs/kbn_aiops_components.mdx index ac428f3150d40..f03a1a6fa8165 100644 --- a/api_docs/kbn_aiops_components.mdx +++ b/api_docs/kbn_aiops_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-aiops-components title: "@kbn/aiops-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/aiops-components plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/aiops-components'] --- import kbnAiopsComponentsObj from './kbn_aiops_components.devdocs.json'; diff --git a/api_docs/kbn_aiops_utils.devdocs.json b/api_docs/kbn_aiops_utils.devdocs.json index 5fae256126a14..9a6e5f07f153e 100644 --- a/api_docs/kbn_aiops_utils.devdocs.json +++ b/api_docs/kbn_aiops_utils.devdocs.json @@ -190,7 +190,7 @@ "Headers", ", logger: ", "Logger", - ", flushFix: boolean | undefined) => StreamFactoryReturnType" + ", compressOverride: boolean | undefined, flushFix: boolean | undefined) => StreamFactoryReturnType" ], "path": "x-pack/packages/ml/aiops_utils/src/stream_factory.ts", "deprecated": false, @@ -219,7 +219,9 @@ "type": "Object", "tags": [], "label": "logger", - "description": [], + "description": [ + "- Kibana logger." + ], "signature": [ "Logger" ], @@ -233,8 +235,27 @@ "id": "def-common.streamFactory.$3", "type": "CompoundType", "tags": [], + "label": "compressOverride", + "description": [ + "- Optional flag to override header based compression setting." + ], + "signature": [ + "boolean | undefined" + ], + "path": "x-pack/packages/ml/aiops_utils/src/stream_factory.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": false + }, + { + "parentPluginId": "@kbn/aiops-utils", + "id": "def-common.streamFactory.$4", + "type": "CompoundType", + "tags": [], "label": "flushFix", - "description": [], + "description": [ + "- Adds an attribute with a random string payload to overcome buffer flushing with certain proxy configurations." + ], "signature": [ "boolean | undefined" ], @@ -263,7 +284,7 @@ "Headers", ", logger: ", "Logger", - ", flushFix: boolean) => StreamFactoryReturnType" + ", compressOverride: boolean, flushFix: boolean) => StreamFactoryReturnType" ], "path": "x-pack/packages/ml/aiops_utils/src/stream_factory.ts", "deprecated": false, @@ -292,7 +313,9 @@ "type": "Object", "tags": [], "label": "logger", - "description": [], + "description": [ + "- Kibana logger." + ], "signature": [ "Logger" ], @@ -306,8 +329,27 @@ "id": "def-common.streamFactory.$3", "type": "boolean", "tags": [], + "label": "compressOverride", + "description": [ + "- Optional flag to override header based compression setting." + ], + "signature": [ + "boolean" + ], + "path": "x-pack/packages/ml/aiops_utils/src/stream_factory.ts", + "deprecated": false, + "trackAdoption": false, + "isRequired": true + }, + { + "parentPluginId": "@kbn/aiops-utils", + "id": "def-common.streamFactory.$4", + "type": "boolean", + "tags": [], "label": "flushFix", - "description": [], + "description": [ + "- Adds an attribute with a random string payload to overcome buffer flushing with certain proxy configurations." + ], "signature": [ "boolean" ], diff --git a/api_docs/kbn_aiops_utils.mdx b/api_docs/kbn_aiops_utils.mdx index e95ee7e70935d..0926dc4e419a0 100644 --- a/api_docs/kbn_aiops_utils.mdx +++ b/api_docs/kbn_aiops_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-aiops-utils title: "@kbn/aiops-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/aiops-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/aiops-utils'] --- import kbnAiopsUtilsObj from './kbn_aiops_utils.devdocs.json'; @@ -21,7 +21,7 @@ Contact Machine Learning UI for questions regarding this plugin. | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 51 | 0 | 26 | 0 | +| 53 | 0 | 22 | 0 | ## Common diff --git a/api_docs/kbn_alerts.mdx b/api_docs/kbn_alerts.mdx index 7f7b670e95ea4..8ddcbeec02f9d 100644 --- a/api_docs/kbn_alerts.mdx +++ b/api_docs/kbn_alerts.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-alerts title: "@kbn/alerts" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/alerts plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/alerts'] --- import kbnAlertsObj from './kbn_alerts.devdocs.json'; diff --git a/api_docs/kbn_analytics.mdx b/api_docs/kbn_analytics.mdx index 8bb00f0d887ae..c491faf53cb8a 100644 --- a/api_docs/kbn_analytics.mdx +++ b/api_docs/kbn_analytics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics title: "@kbn/analytics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics'] --- import kbnAnalyticsObj from './kbn_analytics.devdocs.json'; diff --git a/api_docs/kbn_analytics_client.mdx b/api_docs/kbn_analytics_client.mdx index f876f523e5273..59632c1d3a87d 100644 --- a/api_docs/kbn_analytics_client.mdx +++ b/api_docs/kbn_analytics_client.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics-client title: "@kbn/analytics-client" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics-client plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics-client'] --- import kbnAnalyticsClientObj from './kbn_analytics_client.devdocs.json'; diff --git a/api_docs/kbn_analytics_shippers_elastic_v3_browser.mdx b/api_docs/kbn_analytics_shippers_elastic_v3_browser.mdx index 0f201ca949aa1..c9d7993a4df3d 100644 --- a/api_docs/kbn_analytics_shippers_elastic_v3_browser.mdx +++ b/api_docs/kbn_analytics_shippers_elastic_v3_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics-shippers-elastic-v3-browser title: "@kbn/analytics-shippers-elastic-v3-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics-shippers-elastic-v3-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics-shippers-elastic-v3-browser'] --- import kbnAnalyticsShippersElasticV3BrowserObj from './kbn_analytics_shippers_elastic_v3_browser.devdocs.json'; diff --git a/api_docs/kbn_analytics_shippers_elastic_v3_common.mdx b/api_docs/kbn_analytics_shippers_elastic_v3_common.mdx index cb8d81d380d24..e5ca859ca6591 100644 --- a/api_docs/kbn_analytics_shippers_elastic_v3_common.mdx +++ b/api_docs/kbn_analytics_shippers_elastic_v3_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics-shippers-elastic-v3-common title: "@kbn/analytics-shippers-elastic-v3-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics-shippers-elastic-v3-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics-shippers-elastic-v3-common'] --- import kbnAnalyticsShippersElasticV3CommonObj from './kbn_analytics_shippers_elastic_v3_common.devdocs.json'; diff --git a/api_docs/kbn_analytics_shippers_elastic_v3_server.mdx b/api_docs/kbn_analytics_shippers_elastic_v3_server.mdx index 2d1e94bb29c62..a49dcd7d53de9 100644 --- a/api_docs/kbn_analytics_shippers_elastic_v3_server.mdx +++ b/api_docs/kbn_analytics_shippers_elastic_v3_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics-shippers-elastic-v3-server title: "@kbn/analytics-shippers-elastic-v3-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics-shippers-elastic-v3-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics-shippers-elastic-v3-server'] --- import kbnAnalyticsShippersElasticV3ServerObj from './kbn_analytics_shippers_elastic_v3_server.devdocs.json'; diff --git a/api_docs/kbn_analytics_shippers_fullstory.mdx b/api_docs/kbn_analytics_shippers_fullstory.mdx index afe87b71afc62..a112cef1f9ca5 100644 --- a/api_docs/kbn_analytics_shippers_fullstory.mdx +++ b/api_docs/kbn_analytics_shippers_fullstory.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-analytics-shippers-fullstory title: "@kbn/analytics-shippers-fullstory" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/analytics-shippers-fullstory plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/analytics-shippers-fullstory'] --- import kbnAnalyticsShippersFullstoryObj from './kbn_analytics_shippers_fullstory.devdocs.json'; diff --git a/api_docs/kbn_apm_config_loader.mdx b/api_docs/kbn_apm_config_loader.mdx index 619782af2efab..14890706f4c7f 100644 --- a/api_docs/kbn_apm_config_loader.mdx +++ b/api_docs/kbn_apm_config_loader.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-config-loader title: "@kbn/apm-config-loader" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-config-loader plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-config-loader'] --- import kbnApmConfigLoaderObj from './kbn_apm_config_loader.devdocs.json'; diff --git a/api_docs/kbn_apm_synthtrace.mdx b/api_docs/kbn_apm_synthtrace.mdx index 11c063f49dba3..3d722227a9569 100644 --- a/api_docs/kbn_apm_synthtrace.mdx +++ b/api_docs/kbn_apm_synthtrace.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-synthtrace title: "@kbn/apm-synthtrace" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-synthtrace plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-synthtrace'] --- import kbnApmSynthtraceObj from './kbn_apm_synthtrace.devdocs.json'; diff --git a/api_docs/kbn_apm_utils.mdx b/api_docs/kbn_apm_utils.mdx index ac9994663428f..d748be38bbb6c 100644 --- a/api_docs/kbn_apm_utils.mdx +++ b/api_docs/kbn_apm_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-apm-utils title: "@kbn/apm-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/apm-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/apm-utils'] --- import kbnApmUtilsObj from './kbn_apm_utils.devdocs.json'; diff --git a/api_docs/kbn_axe_config.mdx b/api_docs/kbn_axe_config.mdx index 6174a4bf432e3..2775628c8168e 100644 --- a/api_docs/kbn_axe_config.mdx +++ b/api_docs/kbn_axe_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-axe-config title: "@kbn/axe-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/axe-config plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/axe-config'] --- import kbnAxeConfigObj from './kbn_axe_config.devdocs.json'; diff --git a/api_docs/kbn_cases_components.mdx b/api_docs/kbn_cases_components.mdx index 819ace3145acf..2af523b0462f1 100644 --- a/api_docs/kbn_cases_components.mdx +++ b/api_docs/kbn_cases_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cases-components title: "@kbn/cases-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cases-components plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cases-components'] --- import kbnCasesComponentsObj from './kbn_cases_components.devdocs.json'; diff --git a/api_docs/kbn_chart_icons.mdx b/api_docs/kbn_chart_icons.mdx index 216a6888c4a0a..f43771e589f42 100644 --- a/api_docs/kbn_chart_icons.mdx +++ b/api_docs/kbn_chart_icons.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-chart-icons title: "@kbn/chart-icons" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/chart-icons plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/chart-icons'] --- import kbnChartIconsObj from './kbn_chart_icons.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_core.mdx b/api_docs/kbn_ci_stats_core.mdx index a2f5fba60997c..2589aa244318f 100644 --- a/api_docs/kbn_ci_stats_core.mdx +++ b/api_docs/kbn_ci_stats_core.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-core title: "@kbn/ci-stats-core" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-core plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-core'] --- import kbnCiStatsCoreObj from './kbn_ci_stats_core.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_performance_metrics.mdx b/api_docs/kbn_ci_stats_performance_metrics.mdx index 3cbbf3a8b0e6e..f3aa9c51bc4b6 100644 --- a/api_docs/kbn_ci_stats_performance_metrics.mdx +++ b/api_docs/kbn_ci_stats_performance_metrics.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-performance-metrics title: "@kbn/ci-stats-performance-metrics" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-performance-metrics plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-performance-metrics'] --- import kbnCiStatsPerformanceMetricsObj from './kbn_ci_stats_performance_metrics.devdocs.json'; diff --git a/api_docs/kbn_ci_stats_reporter.mdx b/api_docs/kbn_ci_stats_reporter.mdx index 63f7c5fae7aaf..939b2b88a6dc7 100644 --- a/api_docs/kbn_ci_stats_reporter.mdx +++ b/api_docs/kbn_ci_stats_reporter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ci-stats-reporter title: "@kbn/ci-stats-reporter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ci-stats-reporter plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ci-stats-reporter'] --- import kbnCiStatsReporterObj from './kbn_ci_stats_reporter.devdocs.json'; diff --git a/api_docs/kbn_cli_dev_mode.mdx b/api_docs/kbn_cli_dev_mode.mdx index ec95959f24487..22bac5e77de6c 100644 --- a/api_docs/kbn_cli_dev_mode.mdx +++ b/api_docs/kbn_cli_dev_mode.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-cli-dev-mode title: "@kbn/cli-dev-mode" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/cli-dev-mode plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/cli-dev-mode'] --- import kbnCliDevModeObj from './kbn_cli_dev_mode.devdocs.json'; diff --git a/api_docs/kbn_coloring.mdx b/api_docs/kbn_coloring.mdx index 8639ce062be28..8605fb4c27b84 100644 --- a/api_docs/kbn_coloring.mdx +++ b/api_docs/kbn_coloring.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-coloring title: "@kbn/coloring" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/coloring plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/coloring'] --- import kbnColoringObj from './kbn_coloring.devdocs.json'; diff --git a/api_docs/kbn_config.mdx b/api_docs/kbn_config.mdx index 6f026440a3126..7a386f010b42a 100644 --- a/api_docs/kbn_config.mdx +++ b/api_docs/kbn_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config title: "@kbn/config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config'] --- import kbnConfigObj from './kbn_config.devdocs.json'; diff --git a/api_docs/kbn_config_mocks.mdx b/api_docs/kbn_config_mocks.mdx index 42f1850973a8a..fb0e631dd6eeb 100644 --- a/api_docs/kbn_config_mocks.mdx +++ b/api_docs/kbn_config_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config-mocks title: "@kbn/config-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config-mocks'] --- import kbnConfigMocksObj from './kbn_config_mocks.devdocs.json'; diff --git a/api_docs/kbn_config_schema.mdx b/api_docs/kbn_config_schema.mdx index ede74c3e33ab1..9ed72653f94f9 100644 --- a/api_docs/kbn_config_schema.mdx +++ b/api_docs/kbn_config_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-config-schema title: "@kbn/config-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/config-schema plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/config-schema'] --- import kbnConfigSchemaObj from './kbn_config_schema.devdocs.json'; diff --git a/api_docs/kbn_content_management_table_list.mdx b/api_docs/kbn_content_management_table_list.mdx index b408f084be878..c9f1bd5d5b1d1 100644 --- a/api_docs/kbn_content_management_table_list.mdx +++ b/api_docs/kbn_content_management_table_list.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-content-management-table-list title: "@kbn/content-management-table-list" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/content-management-table-list plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/content-management-table-list'] --- import kbnContentManagementTableListObj from './kbn_content_management_table_list.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser.mdx b/api_docs/kbn_core_analytics_browser.mdx index b68658aa33831..39ca75ebdd662 100644 --- a/api_docs/kbn_core_analytics_browser.mdx +++ b/api_docs/kbn_core_analytics_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser title: "@kbn/core-analytics-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser'] --- import kbnCoreAnalyticsBrowserObj from './kbn_core_analytics_browser.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser_internal.mdx b/api_docs/kbn_core_analytics_browser_internal.mdx index ec73e5d071ff2..65cbd40888647 100644 --- a/api_docs/kbn_core_analytics_browser_internal.mdx +++ b/api_docs/kbn_core_analytics_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser-internal title: "@kbn/core-analytics-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser-internal'] --- import kbnCoreAnalyticsBrowserInternalObj from './kbn_core_analytics_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_browser_mocks.mdx b/api_docs/kbn_core_analytics_browser_mocks.mdx index eda9625a5344e..a3833a17de3a6 100644 --- a/api_docs/kbn_core_analytics_browser_mocks.mdx +++ b/api_docs/kbn_core_analytics_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-browser-mocks title: "@kbn/core-analytics-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-browser-mocks'] --- import kbnCoreAnalyticsBrowserMocksObj from './kbn_core_analytics_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server.mdx b/api_docs/kbn_core_analytics_server.mdx index 071292bce9026..7979c5768713c 100644 --- a/api_docs/kbn_core_analytics_server.mdx +++ b/api_docs/kbn_core_analytics_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server title: "@kbn/core-analytics-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server'] --- import kbnCoreAnalyticsServerObj from './kbn_core_analytics_server.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server_internal.mdx b/api_docs/kbn_core_analytics_server_internal.mdx index 5a8e77d56a499..f1a06f92e296b 100644 --- a/api_docs/kbn_core_analytics_server_internal.mdx +++ b/api_docs/kbn_core_analytics_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server-internal title: "@kbn/core-analytics-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server-internal'] --- import kbnCoreAnalyticsServerInternalObj from './kbn_core_analytics_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_analytics_server_mocks.mdx b/api_docs/kbn_core_analytics_server_mocks.mdx index 5141496a4b30f..a28e66b152326 100644 --- a/api_docs/kbn_core_analytics_server_mocks.mdx +++ b/api_docs/kbn_core_analytics_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-analytics-server-mocks title: "@kbn/core-analytics-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-analytics-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-analytics-server-mocks'] --- import kbnCoreAnalyticsServerMocksObj from './kbn_core_analytics_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser.mdx b/api_docs/kbn_core_application_browser.mdx index 1237be00f25ce..3a2f44bf1236c 100644 --- a/api_docs/kbn_core_application_browser.mdx +++ b/api_docs/kbn_core_application_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser title: "@kbn/core-application-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser'] --- import kbnCoreApplicationBrowserObj from './kbn_core_application_browser.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser_internal.mdx b/api_docs/kbn_core_application_browser_internal.mdx index e231b5edd7cc8..54dc5fd943387 100644 --- a/api_docs/kbn_core_application_browser_internal.mdx +++ b/api_docs/kbn_core_application_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser-internal title: "@kbn/core-application-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser-internal'] --- import kbnCoreApplicationBrowserInternalObj from './kbn_core_application_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_application_browser_mocks.mdx b/api_docs/kbn_core_application_browser_mocks.mdx index c897daef7c921..4da9fffc75e8d 100644 --- a/api_docs/kbn_core_application_browser_mocks.mdx +++ b/api_docs/kbn_core_application_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-browser-mocks title: "@kbn/core-application-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-browser-mocks'] --- import kbnCoreApplicationBrowserMocksObj from './kbn_core_application_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_application_common.mdx b/api_docs/kbn_core_application_common.mdx index b09c0628adaca..9aba2e6f2cfc8 100644 --- a/api_docs/kbn_core_application_common.mdx +++ b/api_docs/kbn_core_application_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-application-common title: "@kbn/core-application-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-application-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-application-common'] --- import kbnCoreApplicationCommonObj from './kbn_core_application_common.devdocs.json'; diff --git a/api_docs/kbn_core_apps_browser_internal.mdx b/api_docs/kbn_core_apps_browser_internal.mdx index aaf3d23b63cd9..7e5763b66db1e 100644 --- a/api_docs/kbn_core_apps_browser_internal.mdx +++ b/api_docs/kbn_core_apps_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-apps-browser-internal title: "@kbn/core-apps-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-apps-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-apps-browser-internal'] --- import kbnCoreAppsBrowserInternalObj from './kbn_core_apps_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_apps_browser_mocks.mdx b/api_docs/kbn_core_apps_browser_mocks.mdx index 2ac525d842e1c..9090ea9b3dae4 100644 --- a/api_docs/kbn_core_apps_browser_mocks.mdx +++ b/api_docs/kbn_core_apps_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-apps-browser-mocks title: "@kbn/core-apps-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-apps-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-apps-browser-mocks'] --- import kbnCoreAppsBrowserMocksObj from './kbn_core_apps_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_base_browser_mocks.mdx b/api_docs/kbn_core_base_browser_mocks.mdx index 212ab7afa2907..64ab097717304 100644 --- a/api_docs/kbn_core_base_browser_mocks.mdx +++ b/api_docs/kbn_core_base_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-browser-mocks title: "@kbn/core-base-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-browser-mocks'] --- import kbnCoreBaseBrowserMocksObj from './kbn_core_base_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_base_common.mdx b/api_docs/kbn_core_base_common.mdx index 430cf23529165..a5f5aafb2ebc8 100644 --- a/api_docs/kbn_core_base_common.mdx +++ b/api_docs/kbn_core_base_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-common title: "@kbn/core-base-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-common'] --- import kbnCoreBaseCommonObj from './kbn_core_base_common.devdocs.json'; diff --git a/api_docs/kbn_core_base_server_internal.mdx b/api_docs/kbn_core_base_server_internal.mdx index ba28547698c99..4ad262feb7719 100644 --- a/api_docs/kbn_core_base_server_internal.mdx +++ b/api_docs/kbn_core_base_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-server-internal title: "@kbn/core-base-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-server-internal'] --- import kbnCoreBaseServerInternalObj from './kbn_core_base_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_base_server_mocks.mdx b/api_docs/kbn_core_base_server_mocks.mdx index 582e110116765..606a1cb2b6a53 100644 --- a/api_docs/kbn_core_base_server_mocks.mdx +++ b/api_docs/kbn_core_base_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-base-server-mocks title: "@kbn/core-base-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-base-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-base-server-mocks'] --- import kbnCoreBaseServerMocksObj from './kbn_core_base_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_browser_mocks.mdx b/api_docs/kbn_core_capabilities_browser_mocks.mdx index 307034fa3741a..286c992389983 100644 --- a/api_docs/kbn_core_capabilities_browser_mocks.mdx +++ b/api_docs/kbn_core_capabilities_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-browser-mocks title: "@kbn/core-capabilities-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-browser-mocks'] --- import kbnCoreCapabilitiesBrowserMocksObj from './kbn_core_capabilities_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_common.mdx b/api_docs/kbn_core_capabilities_common.mdx index 1e1ed829a7891..cd2e9cc26d9d4 100644 --- a/api_docs/kbn_core_capabilities_common.mdx +++ b/api_docs/kbn_core_capabilities_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-common title: "@kbn/core-capabilities-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-common'] --- import kbnCoreCapabilitiesCommonObj from './kbn_core_capabilities_common.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_server.mdx b/api_docs/kbn_core_capabilities_server.mdx index f177dad9092f6..0d172a3829c94 100644 --- a/api_docs/kbn_core_capabilities_server.mdx +++ b/api_docs/kbn_core_capabilities_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-server title: "@kbn/core-capabilities-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-server'] --- import kbnCoreCapabilitiesServerObj from './kbn_core_capabilities_server.devdocs.json'; diff --git a/api_docs/kbn_core_capabilities_server_mocks.mdx b/api_docs/kbn_core_capabilities_server_mocks.mdx index c07122276c046..0435ca4ce5d88 100644 --- a/api_docs/kbn_core_capabilities_server_mocks.mdx +++ b/api_docs/kbn_core_capabilities_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-capabilities-server-mocks title: "@kbn/core-capabilities-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-capabilities-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-capabilities-server-mocks'] --- import kbnCoreCapabilitiesServerMocksObj from './kbn_core_capabilities_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_chrome_browser.mdx b/api_docs/kbn_core_chrome_browser.mdx index 372d4c67d5bb4..5b604e8925887 100644 --- a/api_docs/kbn_core_chrome_browser.mdx +++ b/api_docs/kbn_core_chrome_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-chrome-browser title: "@kbn/core-chrome-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-chrome-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-chrome-browser'] --- import kbnCoreChromeBrowserObj from './kbn_core_chrome_browser.devdocs.json'; diff --git a/api_docs/kbn_core_chrome_browser_mocks.mdx b/api_docs/kbn_core_chrome_browser_mocks.mdx index 7ec82e6355cee..a94a9afd70dd9 100644 --- a/api_docs/kbn_core_chrome_browser_mocks.mdx +++ b/api_docs/kbn_core_chrome_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-chrome-browser-mocks title: "@kbn/core-chrome-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-chrome-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-chrome-browser-mocks'] --- import kbnCoreChromeBrowserMocksObj from './kbn_core_chrome_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_config_server_internal.mdx b/api_docs/kbn_core_config_server_internal.mdx index 9ab241ae433ac..8be5b7c8766b1 100644 --- a/api_docs/kbn_core_config_server_internal.mdx +++ b/api_docs/kbn_core_config_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-config-server-internal title: "@kbn/core-config-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-config-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-config-server-internal'] --- import kbnCoreConfigServerInternalObj from './kbn_core_config_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser.mdx b/api_docs/kbn_core_deprecations_browser.mdx index 4eb03664d6c5b..d2829bd75d504 100644 --- a/api_docs/kbn_core_deprecations_browser.mdx +++ b/api_docs/kbn_core_deprecations_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser title: "@kbn/core-deprecations-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser'] --- import kbnCoreDeprecationsBrowserObj from './kbn_core_deprecations_browser.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser_internal.mdx b/api_docs/kbn_core_deprecations_browser_internal.mdx index 159aa0c1fc1a9..71770dfa6107a 100644 --- a/api_docs/kbn_core_deprecations_browser_internal.mdx +++ b/api_docs/kbn_core_deprecations_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser-internal title: "@kbn/core-deprecations-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser-internal'] --- import kbnCoreDeprecationsBrowserInternalObj from './kbn_core_deprecations_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_browser_mocks.mdx b/api_docs/kbn_core_deprecations_browser_mocks.mdx index ebaf334c48b94..c242260d3ae9b 100644 --- a/api_docs/kbn_core_deprecations_browser_mocks.mdx +++ b/api_docs/kbn_core_deprecations_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-browser-mocks title: "@kbn/core-deprecations-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-browser-mocks'] --- import kbnCoreDeprecationsBrowserMocksObj from './kbn_core_deprecations_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_common.mdx b/api_docs/kbn_core_deprecations_common.mdx index f9057f5617270..510745d909593 100644 --- a/api_docs/kbn_core_deprecations_common.mdx +++ b/api_docs/kbn_core_deprecations_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-common title: "@kbn/core-deprecations-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-common'] --- import kbnCoreDeprecationsCommonObj from './kbn_core_deprecations_common.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server.mdx b/api_docs/kbn_core_deprecations_server.mdx index bfcf35dc3f578..104b009e8e132 100644 --- a/api_docs/kbn_core_deprecations_server.mdx +++ b/api_docs/kbn_core_deprecations_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server title: "@kbn/core-deprecations-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server'] --- import kbnCoreDeprecationsServerObj from './kbn_core_deprecations_server.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server_internal.mdx b/api_docs/kbn_core_deprecations_server_internal.mdx index fa2b0932de510..88179af913545 100644 --- a/api_docs/kbn_core_deprecations_server_internal.mdx +++ b/api_docs/kbn_core_deprecations_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server-internal title: "@kbn/core-deprecations-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server-internal'] --- import kbnCoreDeprecationsServerInternalObj from './kbn_core_deprecations_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_deprecations_server_mocks.mdx b/api_docs/kbn_core_deprecations_server_mocks.mdx index 55915243e1632..e9f05e11af078 100644 --- a/api_docs/kbn_core_deprecations_server_mocks.mdx +++ b/api_docs/kbn_core_deprecations_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-deprecations-server-mocks title: "@kbn/core-deprecations-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-deprecations-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-deprecations-server-mocks'] --- import kbnCoreDeprecationsServerMocksObj from './kbn_core_deprecations_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_browser.mdx b/api_docs/kbn_core_doc_links_browser.mdx index f7645609a4c44..a8c8ffd2b89d8 100644 --- a/api_docs/kbn_core_doc_links_browser.mdx +++ b/api_docs/kbn_core_doc_links_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-browser title: "@kbn/core-doc-links-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-browser'] --- import kbnCoreDocLinksBrowserObj from './kbn_core_doc_links_browser.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_browser_mocks.mdx b/api_docs/kbn_core_doc_links_browser_mocks.mdx index ae0ec6faa002d..3e7261b11c4f9 100644 --- a/api_docs/kbn_core_doc_links_browser_mocks.mdx +++ b/api_docs/kbn_core_doc_links_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-browser-mocks title: "@kbn/core-doc-links-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-browser-mocks'] --- import kbnCoreDocLinksBrowserMocksObj from './kbn_core_doc_links_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_server.mdx b/api_docs/kbn_core_doc_links_server.mdx index 20d0bb33fa8c9..cf478de4599fd 100644 --- a/api_docs/kbn_core_doc_links_server.mdx +++ b/api_docs/kbn_core_doc_links_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-server title: "@kbn/core-doc-links-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-server'] --- import kbnCoreDocLinksServerObj from './kbn_core_doc_links_server.devdocs.json'; diff --git a/api_docs/kbn_core_doc_links_server_mocks.mdx b/api_docs/kbn_core_doc_links_server_mocks.mdx index f32d204f036f7..7171de6bc8257 100644 --- a/api_docs/kbn_core_doc_links_server_mocks.mdx +++ b/api_docs/kbn_core_doc_links_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-doc-links-server-mocks title: "@kbn/core-doc-links-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-doc-links-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-doc-links-server-mocks'] --- import kbnCoreDocLinksServerMocksObj from './kbn_core_doc_links_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_client_server_internal.mdx b/api_docs/kbn_core_elasticsearch_client_server_internal.mdx index 13bd5b1e73932..1bbcbab54b3e5 100644 --- a/api_docs/kbn_core_elasticsearch_client_server_internal.mdx +++ b/api_docs/kbn_core_elasticsearch_client_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-client-server-internal title: "@kbn/core-elasticsearch-client-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-client-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-client-server-internal'] --- import kbnCoreElasticsearchClientServerInternalObj from './kbn_core_elasticsearch_client_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx b/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx index 34a3abf15fd6e..74c16cef96d37 100644 --- a/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx +++ b/api_docs/kbn_core_elasticsearch_client_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-client-server-mocks title: "@kbn/core-elasticsearch-client-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-client-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-client-server-mocks'] --- import kbnCoreElasticsearchClientServerMocksObj from './kbn_core_elasticsearch_client_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server.mdx b/api_docs/kbn_core_elasticsearch_server.mdx index 51f73e69599eb..ee57062a1d770 100644 --- a/api_docs/kbn_core_elasticsearch_server.mdx +++ b/api_docs/kbn_core_elasticsearch_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server title: "@kbn/core-elasticsearch-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server'] --- import kbnCoreElasticsearchServerObj from './kbn_core_elasticsearch_server.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server_internal.mdx b/api_docs/kbn_core_elasticsearch_server_internal.mdx index 0abdf0e9e12ed..ca954ee656c72 100644 --- a/api_docs/kbn_core_elasticsearch_server_internal.mdx +++ b/api_docs/kbn_core_elasticsearch_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server-internal title: "@kbn/core-elasticsearch-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server-internal'] --- import kbnCoreElasticsearchServerInternalObj from './kbn_core_elasticsearch_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_elasticsearch_server_mocks.mdx b/api_docs/kbn_core_elasticsearch_server_mocks.mdx index f0166494018c2..686820b846c17 100644 --- a/api_docs/kbn_core_elasticsearch_server_mocks.mdx +++ b/api_docs/kbn_core_elasticsearch_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-elasticsearch-server-mocks title: "@kbn/core-elasticsearch-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-elasticsearch-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-elasticsearch-server-mocks'] --- import kbnCoreElasticsearchServerMocksObj from './kbn_core_elasticsearch_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_environment_server_internal.mdx b/api_docs/kbn_core_environment_server_internal.mdx index 4c12a773e7265..b371dc2ce6af3 100644 --- a/api_docs/kbn_core_environment_server_internal.mdx +++ b/api_docs/kbn_core_environment_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-environment-server-internal title: "@kbn/core-environment-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-environment-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-environment-server-internal'] --- import kbnCoreEnvironmentServerInternalObj from './kbn_core_environment_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_environment_server_mocks.mdx b/api_docs/kbn_core_environment_server_mocks.mdx index 8177c47a3b86f..37e63190c4e6f 100644 --- a/api_docs/kbn_core_environment_server_mocks.mdx +++ b/api_docs/kbn_core_environment_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-environment-server-mocks title: "@kbn/core-environment-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-environment-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-environment-server-mocks'] --- import kbnCoreEnvironmentServerMocksObj from './kbn_core_environment_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser.mdx b/api_docs/kbn_core_execution_context_browser.mdx index 1b165cc132ac4..74ec3c2068ff3 100644 --- a/api_docs/kbn_core_execution_context_browser.mdx +++ b/api_docs/kbn_core_execution_context_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser title: "@kbn/core-execution-context-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser'] --- import kbnCoreExecutionContextBrowserObj from './kbn_core_execution_context_browser.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser_internal.mdx b/api_docs/kbn_core_execution_context_browser_internal.mdx index 69d2180d5740a..312fa33dea490 100644 --- a/api_docs/kbn_core_execution_context_browser_internal.mdx +++ b/api_docs/kbn_core_execution_context_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser-internal title: "@kbn/core-execution-context-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser-internal'] --- import kbnCoreExecutionContextBrowserInternalObj from './kbn_core_execution_context_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_browser_mocks.mdx b/api_docs/kbn_core_execution_context_browser_mocks.mdx index 53a67b3a1663a..09069175efcf2 100644 --- a/api_docs/kbn_core_execution_context_browser_mocks.mdx +++ b/api_docs/kbn_core_execution_context_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-browser-mocks title: "@kbn/core-execution-context-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-browser-mocks'] --- import kbnCoreExecutionContextBrowserMocksObj from './kbn_core_execution_context_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_common.mdx b/api_docs/kbn_core_execution_context_common.mdx index d78889dd618f8..58af58b774bce 100644 --- a/api_docs/kbn_core_execution_context_common.mdx +++ b/api_docs/kbn_core_execution_context_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-common title: "@kbn/core-execution-context-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-common'] --- import kbnCoreExecutionContextCommonObj from './kbn_core_execution_context_common.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server.mdx b/api_docs/kbn_core_execution_context_server.mdx index f6651cfd2048b..cd1c895ca79b4 100644 --- a/api_docs/kbn_core_execution_context_server.mdx +++ b/api_docs/kbn_core_execution_context_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server title: "@kbn/core-execution-context-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server'] --- import kbnCoreExecutionContextServerObj from './kbn_core_execution_context_server.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server_internal.mdx b/api_docs/kbn_core_execution_context_server_internal.mdx index f3f4fe7b53773..e6ac9fe853ede 100644 --- a/api_docs/kbn_core_execution_context_server_internal.mdx +++ b/api_docs/kbn_core_execution_context_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server-internal title: "@kbn/core-execution-context-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server-internal'] --- import kbnCoreExecutionContextServerInternalObj from './kbn_core_execution_context_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_execution_context_server_mocks.mdx b/api_docs/kbn_core_execution_context_server_mocks.mdx index f7f115f1566c5..3b53f4ec9ab89 100644 --- a/api_docs/kbn_core_execution_context_server_mocks.mdx +++ b/api_docs/kbn_core_execution_context_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-execution-context-server-mocks title: "@kbn/core-execution-context-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-execution-context-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-execution-context-server-mocks'] --- import kbnCoreExecutionContextServerMocksObj from './kbn_core_execution_context_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_fatal_errors_browser.mdx b/api_docs/kbn_core_fatal_errors_browser.mdx index 0ba4297747ace..05ab2714fde30 100644 --- a/api_docs/kbn_core_fatal_errors_browser.mdx +++ b/api_docs/kbn_core_fatal_errors_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-fatal-errors-browser title: "@kbn/core-fatal-errors-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-fatal-errors-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-fatal-errors-browser'] --- import kbnCoreFatalErrorsBrowserObj from './kbn_core_fatal_errors_browser.devdocs.json'; diff --git a/api_docs/kbn_core_fatal_errors_browser_mocks.mdx b/api_docs/kbn_core_fatal_errors_browser_mocks.mdx index bbbd96bbe494b..72033231812ec 100644 --- a/api_docs/kbn_core_fatal_errors_browser_mocks.mdx +++ b/api_docs/kbn_core_fatal_errors_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-fatal-errors-browser-mocks title: "@kbn/core-fatal-errors-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-fatal-errors-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-fatal-errors-browser-mocks'] --- import kbnCoreFatalErrorsBrowserMocksObj from './kbn_core_fatal_errors_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser.mdx b/api_docs/kbn_core_http_browser.mdx index c5f57a6c883ef..6e2fca747fbd4 100644 --- a/api_docs/kbn_core_http_browser.mdx +++ b/api_docs/kbn_core_http_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser title: "@kbn/core-http-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser'] --- import kbnCoreHttpBrowserObj from './kbn_core_http_browser.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser_internal.mdx b/api_docs/kbn_core_http_browser_internal.mdx index e9b0aaddfb97d..3237999e37792 100644 --- a/api_docs/kbn_core_http_browser_internal.mdx +++ b/api_docs/kbn_core_http_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser-internal title: "@kbn/core-http-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser-internal'] --- import kbnCoreHttpBrowserInternalObj from './kbn_core_http_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_browser_mocks.mdx b/api_docs/kbn_core_http_browser_mocks.mdx index 0dbce22cc47cb..8e60ae8d13efc 100644 --- a/api_docs/kbn_core_http_browser_mocks.mdx +++ b/api_docs/kbn_core_http_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-browser-mocks title: "@kbn/core-http-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-browser-mocks'] --- import kbnCoreHttpBrowserMocksObj from './kbn_core_http_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_common.mdx b/api_docs/kbn_core_http_common.mdx index 2aeb4f6165558..1557cc41e93cb 100644 --- a/api_docs/kbn_core_http_common.mdx +++ b/api_docs/kbn_core_http_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-common title: "@kbn/core-http-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-common'] --- import kbnCoreHttpCommonObj from './kbn_core_http_common.devdocs.json'; diff --git a/api_docs/kbn_core_http_context_server_mocks.mdx b/api_docs/kbn_core_http_context_server_mocks.mdx index 5123215a0efc0..a732c7b902574 100644 --- a/api_docs/kbn_core_http_context_server_mocks.mdx +++ b/api_docs/kbn_core_http_context_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-context-server-mocks title: "@kbn/core-http-context-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-context-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-context-server-mocks'] --- import kbnCoreHttpContextServerMocksObj from './kbn_core_http_context_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_request_handler_context_server.mdx b/api_docs/kbn_core_http_request_handler_context_server.mdx index daf40fe512ebe..6d8dc337edd5c 100644 --- a/api_docs/kbn_core_http_request_handler_context_server.mdx +++ b/api_docs/kbn_core_http_request_handler_context_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-request-handler-context-server title: "@kbn/core-http-request-handler-context-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-request-handler-context-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-request-handler-context-server'] --- import kbnCoreHttpRequestHandlerContextServerObj from './kbn_core_http_request_handler_context_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server.mdx b/api_docs/kbn_core_http_resources_server.mdx index 3d9e99a97a464..21895582deb70 100644 --- a/api_docs/kbn_core_http_resources_server.mdx +++ b/api_docs/kbn_core_http_resources_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server title: "@kbn/core-http-resources-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server'] --- import kbnCoreHttpResourcesServerObj from './kbn_core_http_resources_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server_internal.mdx b/api_docs/kbn_core_http_resources_server_internal.mdx index 4c03c0c1a4724..16426662fd83e 100644 --- a/api_docs/kbn_core_http_resources_server_internal.mdx +++ b/api_docs/kbn_core_http_resources_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server-internal title: "@kbn/core-http-resources-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server-internal'] --- import kbnCoreHttpResourcesServerInternalObj from './kbn_core_http_resources_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_resources_server_mocks.mdx b/api_docs/kbn_core_http_resources_server_mocks.mdx index 775edabfb9835..cff15361430a5 100644 --- a/api_docs/kbn_core_http_resources_server_mocks.mdx +++ b/api_docs/kbn_core_http_resources_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-resources-server-mocks title: "@kbn/core-http-resources-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-resources-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-resources-server-mocks'] --- import kbnCoreHttpResourcesServerMocksObj from './kbn_core_http_resources_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_router_server_internal.mdx b/api_docs/kbn_core_http_router_server_internal.mdx index 14d93e4105fc7..3eca728a9128b 100644 --- a/api_docs/kbn_core_http_router_server_internal.mdx +++ b/api_docs/kbn_core_http_router_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-router-server-internal title: "@kbn/core-http-router-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-router-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-router-server-internal'] --- import kbnCoreHttpRouterServerInternalObj from './kbn_core_http_router_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_router_server_mocks.mdx b/api_docs/kbn_core_http_router_server_mocks.mdx index 3841d7d285ff0..7a0c2c59d2491 100644 --- a/api_docs/kbn_core_http_router_server_mocks.mdx +++ b/api_docs/kbn_core_http_router_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-router-server-mocks title: "@kbn/core-http-router-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-router-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-router-server-mocks'] --- import kbnCoreHttpRouterServerMocksObj from './kbn_core_http_router_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_http_server.mdx b/api_docs/kbn_core_http_server.mdx index 714a76ef55feb..ac410e083924a 100644 --- a/api_docs/kbn_core_http_server.mdx +++ b/api_docs/kbn_core_http_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server title: "@kbn/core-http-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server'] --- import kbnCoreHttpServerObj from './kbn_core_http_server.devdocs.json'; diff --git a/api_docs/kbn_core_http_server_internal.mdx b/api_docs/kbn_core_http_server_internal.mdx index 8c5cbd86552d8..97b824680cc3f 100644 --- a/api_docs/kbn_core_http_server_internal.mdx +++ b/api_docs/kbn_core_http_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server-internal title: "@kbn/core-http-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server-internal'] --- import kbnCoreHttpServerInternalObj from './kbn_core_http_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_http_server_mocks.mdx b/api_docs/kbn_core_http_server_mocks.mdx index 946c471ad20a3..d9e44f8020314 100644 --- a/api_docs/kbn_core_http_server_mocks.mdx +++ b/api_docs/kbn_core_http_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-http-server-mocks title: "@kbn/core-http-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-http-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-http-server-mocks'] --- import kbnCoreHttpServerMocksObj from './kbn_core_http_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_browser.mdx b/api_docs/kbn_core_i18n_browser.mdx index f2fc8743dec08..aa5c36f61d8fd 100644 --- a/api_docs/kbn_core_i18n_browser.mdx +++ b/api_docs/kbn_core_i18n_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-browser title: "@kbn/core-i18n-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-browser'] --- import kbnCoreI18nBrowserObj from './kbn_core_i18n_browser.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_browser_mocks.mdx b/api_docs/kbn_core_i18n_browser_mocks.mdx index a714e9cc6f4ec..392a6d628e97d 100644 --- a/api_docs/kbn_core_i18n_browser_mocks.mdx +++ b/api_docs/kbn_core_i18n_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-browser-mocks title: "@kbn/core-i18n-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-browser-mocks'] --- import kbnCoreI18nBrowserMocksObj from './kbn_core_i18n_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server.mdx b/api_docs/kbn_core_i18n_server.mdx index b24ccb40a6e7e..b9dbfbc447c03 100644 --- a/api_docs/kbn_core_i18n_server.mdx +++ b/api_docs/kbn_core_i18n_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server title: "@kbn/core-i18n-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server'] --- import kbnCoreI18nServerObj from './kbn_core_i18n_server.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server_internal.mdx b/api_docs/kbn_core_i18n_server_internal.mdx index bf364845ce652..2d7375a3c7220 100644 --- a/api_docs/kbn_core_i18n_server_internal.mdx +++ b/api_docs/kbn_core_i18n_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server-internal title: "@kbn/core-i18n-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server-internal'] --- import kbnCoreI18nServerInternalObj from './kbn_core_i18n_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_i18n_server_mocks.mdx b/api_docs/kbn_core_i18n_server_mocks.mdx index afb3e93c55935..fe3d8caa47c0f 100644 --- a/api_docs/kbn_core_i18n_server_mocks.mdx +++ b/api_docs/kbn_core_i18n_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-i18n-server-mocks title: "@kbn/core-i18n-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-i18n-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-i18n-server-mocks'] --- import kbnCoreI18nServerMocksObj from './kbn_core_i18n_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_injected_metadata_browser.mdx b/api_docs/kbn_core_injected_metadata_browser.mdx index 22801f223555e..118ae484900d1 100644 --- a/api_docs/kbn_core_injected_metadata_browser.mdx +++ b/api_docs/kbn_core_injected_metadata_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-injected-metadata-browser title: "@kbn/core-injected-metadata-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-injected-metadata-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-injected-metadata-browser'] --- import kbnCoreInjectedMetadataBrowserObj from './kbn_core_injected_metadata_browser.devdocs.json'; diff --git a/api_docs/kbn_core_injected_metadata_browser_mocks.mdx b/api_docs/kbn_core_injected_metadata_browser_mocks.mdx index c5cb736d207b8..7bb0bc7a55924 100644 --- a/api_docs/kbn_core_injected_metadata_browser_mocks.mdx +++ b/api_docs/kbn_core_injected_metadata_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-injected-metadata-browser-mocks title: "@kbn/core-injected-metadata-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-injected-metadata-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-injected-metadata-browser-mocks'] --- import kbnCoreInjectedMetadataBrowserMocksObj from './kbn_core_injected_metadata_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_integrations_browser_internal.mdx b/api_docs/kbn_core_integrations_browser_internal.mdx index 93b45bd1db2f7..9058034fe6ed4 100644 --- a/api_docs/kbn_core_integrations_browser_internal.mdx +++ b/api_docs/kbn_core_integrations_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-integrations-browser-internal title: "@kbn/core-integrations-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-integrations-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-integrations-browser-internal'] --- import kbnCoreIntegrationsBrowserInternalObj from './kbn_core_integrations_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_integrations_browser_mocks.mdx b/api_docs/kbn_core_integrations_browser_mocks.mdx index 9ae29f42cc95d..4129772acbce5 100644 --- a/api_docs/kbn_core_integrations_browser_mocks.mdx +++ b/api_docs/kbn_core_integrations_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-integrations-browser-mocks title: "@kbn/core-integrations-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-integrations-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-integrations-browser-mocks'] --- import kbnCoreIntegrationsBrowserMocksObj from './kbn_core_integrations_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_browser.mdx b/api_docs/kbn_core_lifecycle_browser.mdx index c1709d33ce0d7..e1bc41b0b1fd0 100644 --- a/api_docs/kbn_core_lifecycle_browser.mdx +++ b/api_docs/kbn_core_lifecycle_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-browser title: "@kbn/core-lifecycle-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-browser'] --- import kbnCoreLifecycleBrowserObj from './kbn_core_lifecycle_browser.devdocs.json'; diff --git a/api_docs/kbn_core_lifecycle_browser_mocks.mdx b/api_docs/kbn_core_lifecycle_browser_mocks.mdx index e28cba7d2425c..a351162b92535 100644 --- a/api_docs/kbn_core_lifecycle_browser_mocks.mdx +++ b/api_docs/kbn_core_lifecycle_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-lifecycle-browser-mocks title: "@kbn/core-lifecycle-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-lifecycle-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-lifecycle-browser-mocks'] --- import kbnCoreLifecycleBrowserMocksObj from './kbn_core_lifecycle_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server.mdx b/api_docs/kbn_core_logging_server.mdx index db8b4462a2abb..80c67cbefb41d 100644 --- a/api_docs/kbn_core_logging_server.mdx +++ b/api_docs/kbn_core_logging_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server title: "@kbn/core-logging-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server'] --- import kbnCoreLoggingServerObj from './kbn_core_logging_server.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server_internal.mdx b/api_docs/kbn_core_logging_server_internal.mdx index 87c1f449de2be..81c79f199e296 100644 --- a/api_docs/kbn_core_logging_server_internal.mdx +++ b/api_docs/kbn_core_logging_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server-internal title: "@kbn/core-logging-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server-internal'] --- import kbnCoreLoggingServerInternalObj from './kbn_core_logging_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_logging_server_mocks.mdx b/api_docs/kbn_core_logging_server_mocks.mdx index 87f27b7f1a2d0..6cea0b3edb58b 100644 --- a/api_docs/kbn_core_logging_server_mocks.mdx +++ b/api_docs/kbn_core_logging_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-logging-server-mocks title: "@kbn/core-logging-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-logging-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-logging-server-mocks'] --- import kbnCoreLoggingServerMocksObj from './kbn_core_logging_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_collectors_server_internal.mdx b/api_docs/kbn_core_metrics_collectors_server_internal.mdx index 22ee987b7efbe..9528c7f087d4f 100644 --- a/api_docs/kbn_core_metrics_collectors_server_internal.mdx +++ b/api_docs/kbn_core_metrics_collectors_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-collectors-server-internal title: "@kbn/core-metrics-collectors-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-collectors-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-collectors-server-internal'] --- import kbnCoreMetricsCollectorsServerInternalObj from './kbn_core_metrics_collectors_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_collectors_server_mocks.mdx b/api_docs/kbn_core_metrics_collectors_server_mocks.mdx index 0aad11d9f2137..1fc1b5edfd4a9 100644 --- a/api_docs/kbn_core_metrics_collectors_server_mocks.mdx +++ b/api_docs/kbn_core_metrics_collectors_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-collectors-server-mocks title: "@kbn/core-metrics-collectors-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-collectors-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-collectors-server-mocks'] --- import kbnCoreMetricsCollectorsServerMocksObj from './kbn_core_metrics_collectors_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server.mdx b/api_docs/kbn_core_metrics_server.mdx index ced6cbacf088f..95ffc3ff48c8a 100644 --- a/api_docs/kbn_core_metrics_server.mdx +++ b/api_docs/kbn_core_metrics_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server title: "@kbn/core-metrics-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server'] --- import kbnCoreMetricsServerObj from './kbn_core_metrics_server.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server_internal.mdx b/api_docs/kbn_core_metrics_server_internal.mdx index af35d94e359e8..596dfbfa9324f 100644 --- a/api_docs/kbn_core_metrics_server_internal.mdx +++ b/api_docs/kbn_core_metrics_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server-internal title: "@kbn/core-metrics-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server-internal'] --- import kbnCoreMetricsServerInternalObj from './kbn_core_metrics_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_metrics_server_mocks.mdx b/api_docs/kbn_core_metrics_server_mocks.mdx index 05c9718c7d43a..0f49932a294e6 100644 --- a/api_docs/kbn_core_metrics_server_mocks.mdx +++ b/api_docs/kbn_core_metrics_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-metrics-server-mocks title: "@kbn/core-metrics-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-metrics-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-metrics-server-mocks'] --- import kbnCoreMetricsServerMocksObj from './kbn_core_metrics_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_mount_utils_browser.mdx b/api_docs/kbn_core_mount_utils_browser.mdx index 931eabbbe138a..8685b3dd8ffae 100644 --- a/api_docs/kbn_core_mount_utils_browser.mdx +++ b/api_docs/kbn_core_mount_utils_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-mount-utils-browser title: "@kbn/core-mount-utils-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-mount-utils-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-mount-utils-browser'] --- import kbnCoreMountUtilsBrowserObj from './kbn_core_mount_utils_browser.devdocs.json'; diff --git a/api_docs/kbn_core_node_server.mdx b/api_docs/kbn_core_node_server.mdx index b0474d94827d6..1b3a50a65001a 100644 --- a/api_docs/kbn_core_node_server.mdx +++ b/api_docs/kbn_core_node_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server title: "@kbn/core-node-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server'] --- import kbnCoreNodeServerObj from './kbn_core_node_server.devdocs.json'; diff --git a/api_docs/kbn_core_node_server_internal.mdx b/api_docs/kbn_core_node_server_internal.mdx index 884ae287885d2..a44aed5fb0c40 100644 --- a/api_docs/kbn_core_node_server_internal.mdx +++ b/api_docs/kbn_core_node_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server-internal title: "@kbn/core-node-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server-internal'] --- import kbnCoreNodeServerInternalObj from './kbn_core_node_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_node_server_mocks.mdx b/api_docs/kbn_core_node_server_mocks.mdx index d20d963d710f6..5401b2238c84e 100644 --- a/api_docs/kbn_core_node_server_mocks.mdx +++ b/api_docs/kbn_core_node_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-node-server-mocks title: "@kbn/core-node-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-node-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-node-server-mocks'] --- import kbnCoreNodeServerMocksObj from './kbn_core_node_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser.mdx b/api_docs/kbn_core_notifications_browser.mdx index 7a9006903b785..8234e1c7699de 100644 --- a/api_docs/kbn_core_notifications_browser.mdx +++ b/api_docs/kbn_core_notifications_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser title: "@kbn/core-notifications-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser'] --- import kbnCoreNotificationsBrowserObj from './kbn_core_notifications_browser.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser_internal.mdx b/api_docs/kbn_core_notifications_browser_internal.mdx index 0b23f381804d9..a254a39f50976 100644 --- a/api_docs/kbn_core_notifications_browser_internal.mdx +++ b/api_docs/kbn_core_notifications_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser-internal title: "@kbn/core-notifications-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser-internal'] --- import kbnCoreNotificationsBrowserInternalObj from './kbn_core_notifications_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_notifications_browser_mocks.mdx b/api_docs/kbn_core_notifications_browser_mocks.mdx index ffcc433bf6af5..70fa1bdac381c 100644 --- a/api_docs/kbn_core_notifications_browser_mocks.mdx +++ b/api_docs/kbn_core_notifications_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-notifications-browser-mocks title: "@kbn/core-notifications-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-notifications-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-notifications-browser-mocks'] --- import kbnCoreNotificationsBrowserMocksObj from './kbn_core_notifications_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser.mdx b/api_docs/kbn_core_overlays_browser.mdx index 9036867be221f..8efcbe04147f2 100644 --- a/api_docs/kbn_core_overlays_browser.mdx +++ b/api_docs/kbn_core_overlays_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser title: "@kbn/core-overlays-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser'] --- import kbnCoreOverlaysBrowserObj from './kbn_core_overlays_browser.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser_internal.mdx b/api_docs/kbn_core_overlays_browser_internal.mdx index 712f8251d5c61..ae13deb6ab4a7 100644 --- a/api_docs/kbn_core_overlays_browser_internal.mdx +++ b/api_docs/kbn_core_overlays_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser-internal title: "@kbn/core-overlays-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser-internal'] --- import kbnCoreOverlaysBrowserInternalObj from './kbn_core_overlays_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_overlays_browser_mocks.mdx b/api_docs/kbn_core_overlays_browser_mocks.mdx index 70ce98466d4fe..329a751558828 100644 --- a/api_docs/kbn_core_overlays_browser_mocks.mdx +++ b/api_docs/kbn_core_overlays_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-overlays-browser-mocks title: "@kbn/core-overlays-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-overlays-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-overlays-browser-mocks'] --- import kbnCoreOverlaysBrowserMocksObj from './kbn_core_overlays_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_browser.mdx b/api_docs/kbn_core_plugins_browser.mdx index b9c3a94cd202c..b453f6bb2b57d 100644 --- a/api_docs/kbn_core_plugins_browser.mdx +++ b/api_docs/kbn_core_plugins_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-browser title: "@kbn/core-plugins-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-browser'] --- import kbnCorePluginsBrowserObj from './kbn_core_plugins_browser.devdocs.json'; diff --git a/api_docs/kbn_core_plugins_browser_mocks.mdx b/api_docs/kbn_core_plugins_browser_mocks.mdx index 69b37646668bc..426df918fb1c2 100644 --- a/api_docs/kbn_core_plugins_browser_mocks.mdx +++ b/api_docs/kbn_core_plugins_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-plugins-browser-mocks title: "@kbn/core-plugins-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-plugins-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-plugins-browser-mocks'] --- import kbnCorePluginsBrowserMocksObj from './kbn_core_plugins_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_preboot_server.mdx b/api_docs/kbn_core_preboot_server.mdx index 333a24c202e44..267d37656f2d3 100644 --- a/api_docs/kbn_core_preboot_server.mdx +++ b/api_docs/kbn_core_preboot_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-preboot-server title: "@kbn/core-preboot-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-preboot-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-preboot-server'] --- import kbnCorePrebootServerObj from './kbn_core_preboot_server.devdocs.json'; diff --git a/api_docs/kbn_core_preboot_server_mocks.mdx b/api_docs/kbn_core_preboot_server_mocks.mdx index 1bc472c28dd8b..bdeef2478073c 100644 --- a/api_docs/kbn_core_preboot_server_mocks.mdx +++ b/api_docs/kbn_core_preboot_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-preboot-server-mocks title: "@kbn/core-preboot-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-preboot-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-preboot-server-mocks'] --- import kbnCorePrebootServerMocksObj from './kbn_core_preboot_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_browser_mocks.mdx b/api_docs/kbn_core_rendering_browser_mocks.mdx index e05036c1c725e..c8a131ca1c925 100644 --- a/api_docs/kbn_core_rendering_browser_mocks.mdx +++ b/api_docs/kbn_core_rendering_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-browser-mocks title: "@kbn/core-rendering-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-browser-mocks'] --- import kbnCoreRenderingBrowserMocksObj from './kbn_core_rendering_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_server_internal.mdx b/api_docs/kbn_core_rendering_server_internal.mdx index 31008adb80bcf..7052188237271 100644 --- a/api_docs/kbn_core_rendering_server_internal.mdx +++ b/api_docs/kbn_core_rendering_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-server-internal title: "@kbn/core-rendering-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-server-internal'] --- import kbnCoreRenderingServerInternalObj from './kbn_core_rendering_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_rendering_server_mocks.mdx b/api_docs/kbn_core_rendering_server_mocks.mdx index fea85ac884713..e29ec5c5f28cc 100644 --- a/api_docs/kbn_core_rendering_server_mocks.mdx +++ b/api_docs/kbn_core_rendering_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-rendering-server-mocks title: "@kbn/core-rendering-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-rendering-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-rendering-server-mocks'] --- import kbnCoreRenderingServerMocksObj from './kbn_core_rendering_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_browser.mdx b/api_docs/kbn_core_saved_objects_api_browser.mdx index 7a8c95a97d676..bd9522fb6c16a 100644 --- a/api_docs/kbn_core_saved_objects_api_browser.mdx +++ b/api_docs/kbn_core_saved_objects_api_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-browser title: "@kbn/core-saved-objects-api-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-browser'] --- import kbnCoreSavedObjectsApiBrowserObj from './kbn_core_saved_objects_api_browser.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_server.mdx b/api_docs/kbn_core_saved_objects_api_server.mdx index fa83aa76f9fb5..166b281a1f819 100644 --- a/api_docs/kbn_core_saved_objects_api_server.mdx +++ b/api_docs/kbn_core_saved_objects_api_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-server title: "@kbn/core-saved-objects-api-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-server'] --- import kbnCoreSavedObjectsApiServerObj from './kbn_core_saved_objects_api_server.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_server_internal.mdx b/api_docs/kbn_core_saved_objects_api_server_internal.mdx index 3c02a543f729d..62a295a989748 100644 --- a/api_docs/kbn_core_saved_objects_api_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_api_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-server-internal title: "@kbn/core-saved-objects-api-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-server-internal'] --- import kbnCoreSavedObjectsApiServerInternalObj from './kbn_core_saved_objects_api_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_api_server_mocks.mdx b/api_docs/kbn_core_saved_objects_api_server_mocks.mdx index 68c6108d53597..b9b12f139a291 100644 --- a/api_docs/kbn_core_saved_objects_api_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_api_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-api-server-mocks title: "@kbn/core-saved-objects-api-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-api-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-api-server-mocks'] --- import kbnCoreSavedObjectsApiServerMocksObj from './kbn_core_saved_objects_api_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_base_server_internal.mdx b/api_docs/kbn_core_saved_objects_base_server_internal.mdx index b14db41024525..b9e17b56c7215 100644 --- a/api_docs/kbn_core_saved_objects_base_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_base_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-base-server-internal title: "@kbn/core-saved-objects-base-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-base-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-base-server-internal'] --- import kbnCoreSavedObjectsBaseServerInternalObj from './kbn_core_saved_objects_base_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_base_server_mocks.mdx b/api_docs/kbn_core_saved_objects_base_server_mocks.mdx index 67606ebbf5179..c2d75d32460f5 100644 --- a/api_docs/kbn_core_saved_objects_base_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_base_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-base-server-mocks title: "@kbn/core-saved-objects-base-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-base-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-base-server-mocks'] --- import kbnCoreSavedObjectsBaseServerMocksObj from './kbn_core_saved_objects_base_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser.mdx b/api_docs/kbn_core_saved_objects_browser.mdx index fb5ed53a336a6..eeeab2680fc91 100644 --- a/api_docs/kbn_core_saved_objects_browser.mdx +++ b/api_docs/kbn_core_saved_objects_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser title: "@kbn/core-saved-objects-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser'] --- import kbnCoreSavedObjectsBrowserObj from './kbn_core_saved_objects_browser.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser_internal.mdx b/api_docs/kbn_core_saved_objects_browser_internal.mdx index dcd94fad9e5d5..3b53b418fde0e 100644 --- a/api_docs/kbn_core_saved_objects_browser_internal.mdx +++ b/api_docs/kbn_core_saved_objects_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser-internal title: "@kbn/core-saved-objects-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser-internal'] --- import kbnCoreSavedObjectsBrowserInternalObj from './kbn_core_saved_objects_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_browser_mocks.mdx b/api_docs/kbn_core_saved_objects_browser_mocks.mdx index d3f0ceaed3cce..7cd60fefcbed7 100644 --- a/api_docs/kbn_core_saved_objects_browser_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-browser-mocks title: "@kbn/core-saved-objects-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-browser-mocks'] --- import kbnCoreSavedObjectsBrowserMocksObj from './kbn_core_saved_objects_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_common.mdx b/api_docs/kbn_core_saved_objects_common.mdx index 76dca2436e020..9bd5d2601c628 100644 --- a/api_docs/kbn_core_saved_objects_common.mdx +++ b/api_docs/kbn_core_saved_objects_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-common title: "@kbn/core-saved-objects-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-common'] --- import kbnCoreSavedObjectsCommonObj from './kbn_core_saved_objects_common.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx b/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx index d4f9ecf0cd3a0..cb6aaa1892628 100644 --- a/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_import_export_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-import-export-server-internal title: "@kbn/core-saved-objects-import-export-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-import-export-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-import-export-server-internal'] --- import kbnCoreSavedObjectsImportExportServerInternalObj from './kbn_core_saved_objects_import_export_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx b/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx index cb9441dd59b52..997cbbbeee0ce 100644 --- a/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_import_export_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-import-export-server-mocks title: "@kbn/core-saved-objects-import-export-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-import-export-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-import-export-server-mocks'] --- import kbnCoreSavedObjectsImportExportServerMocksObj from './kbn_core_saved_objects_import_export_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_migration_server_internal.mdx b/api_docs/kbn_core_saved_objects_migration_server_internal.mdx index a13434c01d4a5..e8a96d95e0b52 100644 --- a/api_docs/kbn_core_saved_objects_migration_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_migration_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-migration-server-internal title: "@kbn/core-saved-objects-migration-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-migration-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-migration-server-internal'] --- import kbnCoreSavedObjectsMigrationServerInternalObj from './kbn_core_saved_objects_migration_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx b/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx index e52f41b3be8f7..ebb8890436531 100644 --- a/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_migration_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-migration-server-mocks title: "@kbn/core-saved-objects-migration-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-migration-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-migration-server-mocks'] --- import kbnCoreSavedObjectsMigrationServerMocksObj from './kbn_core_saved_objects_migration_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server.mdx b/api_docs/kbn_core_saved_objects_server.mdx index 31c988d7f9a4e..4e2e211290a68 100644 --- a/api_docs/kbn_core_saved_objects_server.mdx +++ b/api_docs/kbn_core_saved_objects_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server title: "@kbn/core-saved-objects-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server'] --- import kbnCoreSavedObjectsServerObj from './kbn_core_saved_objects_server.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server_internal.mdx b/api_docs/kbn_core_saved_objects_server_internal.mdx index 01dbefbe3a456..67ee330bf497e 100644 --- a/api_docs/kbn_core_saved_objects_server_internal.mdx +++ b/api_docs/kbn_core_saved_objects_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server-internal title: "@kbn/core-saved-objects-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server-internal'] --- import kbnCoreSavedObjectsServerInternalObj from './kbn_core_saved_objects_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_server_mocks.mdx b/api_docs/kbn_core_saved_objects_server_mocks.mdx index 7610eb55d8c14..12a6ae1b41c50 100644 --- a/api_docs/kbn_core_saved_objects_server_mocks.mdx +++ b/api_docs/kbn_core_saved_objects_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-server-mocks title: "@kbn/core-saved-objects-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-server-mocks'] --- import kbnCoreSavedObjectsServerMocksObj from './kbn_core_saved_objects_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_saved_objects_utils_server.mdx b/api_docs/kbn_core_saved_objects_utils_server.mdx index ddb72189808d4..087f9bc2d6a84 100644 --- a/api_docs/kbn_core_saved_objects_utils_server.mdx +++ b/api_docs/kbn_core_saved_objects_utils_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-saved-objects-utils-server title: "@kbn/core-saved-objects-utils-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-saved-objects-utils-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-saved-objects-utils-server'] --- import kbnCoreSavedObjectsUtilsServerObj from './kbn_core_saved_objects_utils_server.devdocs.json'; diff --git a/api_docs/kbn_core_status_common.mdx b/api_docs/kbn_core_status_common.mdx index 6a8f1775f9938..b3ecdb125a1d8 100644 --- a/api_docs/kbn_core_status_common.mdx +++ b/api_docs/kbn_core_status_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-common title: "@kbn/core-status-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-common'] --- import kbnCoreStatusCommonObj from './kbn_core_status_common.devdocs.json'; diff --git a/api_docs/kbn_core_status_common_internal.mdx b/api_docs/kbn_core_status_common_internal.mdx index d53c91895c42a..8920b923837be 100644 --- a/api_docs/kbn_core_status_common_internal.mdx +++ b/api_docs/kbn_core_status_common_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-common-internal title: "@kbn/core-status-common-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-common-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-common-internal'] --- import kbnCoreStatusCommonInternalObj from './kbn_core_status_common_internal.devdocs.json'; diff --git a/api_docs/kbn_core_status_server.mdx b/api_docs/kbn_core_status_server.mdx index decce4c4ad401..4f8ee81478644 100644 --- a/api_docs/kbn_core_status_server.mdx +++ b/api_docs/kbn_core_status_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server title: "@kbn/core-status-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server'] --- import kbnCoreStatusServerObj from './kbn_core_status_server.devdocs.json'; diff --git a/api_docs/kbn_core_status_server_internal.mdx b/api_docs/kbn_core_status_server_internal.mdx index 32298ea4b7bd8..335fed85de068 100644 --- a/api_docs/kbn_core_status_server_internal.mdx +++ b/api_docs/kbn_core_status_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server-internal title: "@kbn/core-status-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server-internal'] --- import kbnCoreStatusServerInternalObj from './kbn_core_status_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_status_server_mocks.mdx b/api_docs/kbn_core_status_server_mocks.mdx index 09e9a962fb073..9d39db8a256a8 100644 --- a/api_docs/kbn_core_status_server_mocks.mdx +++ b/api_docs/kbn_core_status_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-status-server-mocks title: "@kbn/core-status-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-status-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-status-server-mocks'] --- import kbnCoreStatusServerMocksObj from './kbn_core_status_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_deprecations_getters.mdx b/api_docs/kbn_core_test_helpers_deprecations_getters.mdx index 01caa1df40885..8c860cc0ed201 100644 --- a/api_docs/kbn_core_test_helpers_deprecations_getters.mdx +++ b/api_docs/kbn_core_test_helpers_deprecations_getters.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-deprecations-getters title: "@kbn/core-test-helpers-deprecations-getters" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-deprecations-getters plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-deprecations-getters'] --- import kbnCoreTestHelpersDeprecationsGettersObj from './kbn_core_test_helpers_deprecations_getters.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_http_setup_browser.mdx b/api_docs/kbn_core_test_helpers_http_setup_browser.mdx index 831d549444af9..ddae9cdc8613e 100644 --- a/api_docs/kbn_core_test_helpers_http_setup_browser.mdx +++ b/api_docs/kbn_core_test_helpers_http_setup_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-http-setup-browser title: "@kbn/core-test-helpers-http-setup-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-http-setup-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-http-setup-browser'] --- import kbnCoreTestHelpersHttpSetupBrowserObj from './kbn_core_test_helpers_http_setup_browser.devdocs.json'; diff --git a/api_docs/kbn_core_test_helpers_so_type_serializer.mdx b/api_docs/kbn_core_test_helpers_so_type_serializer.mdx index 3812354e12b63..2590679c346ab 100644 --- a/api_docs/kbn_core_test_helpers_so_type_serializer.mdx +++ b/api_docs/kbn_core_test_helpers_so_type_serializer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-test-helpers-so-type-serializer title: "@kbn/core-test-helpers-so-type-serializer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-test-helpers-so-type-serializer plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-test-helpers-so-type-serializer'] --- import kbnCoreTestHelpersSoTypeSerializerObj from './kbn_core_test_helpers_so_type_serializer.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser.mdx b/api_docs/kbn_core_theme_browser.mdx index 3f6a67a95736e..e3e829c62749f 100644 --- a/api_docs/kbn_core_theme_browser.mdx +++ b/api_docs/kbn_core_theme_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser title: "@kbn/core-theme-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser'] --- import kbnCoreThemeBrowserObj from './kbn_core_theme_browser.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser_internal.mdx b/api_docs/kbn_core_theme_browser_internal.mdx index dffcc6b101cfa..3aa81b6989235 100644 --- a/api_docs/kbn_core_theme_browser_internal.mdx +++ b/api_docs/kbn_core_theme_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser-internal title: "@kbn/core-theme-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser-internal'] --- import kbnCoreThemeBrowserInternalObj from './kbn_core_theme_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_theme_browser_mocks.mdx b/api_docs/kbn_core_theme_browser_mocks.mdx index dfb5b9f8354ec..93324103d7a72 100644 --- a/api_docs/kbn_core_theme_browser_mocks.mdx +++ b/api_docs/kbn_core_theme_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-theme-browser-mocks title: "@kbn/core-theme-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-theme-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-theme-browser-mocks'] --- import kbnCoreThemeBrowserMocksObj from './kbn_core_theme_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_browser.mdx b/api_docs/kbn_core_ui_settings_browser.mdx index 38f797b362de5..dda5842f987e7 100644 --- a/api_docs/kbn_core_ui_settings_browser.mdx +++ b/api_docs/kbn_core_ui_settings_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser title: "@kbn/core-ui-settings-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser'] --- import kbnCoreUiSettingsBrowserObj from './kbn_core_ui_settings_browser.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_browser_internal.mdx b/api_docs/kbn_core_ui_settings_browser_internal.mdx index 60c14feeb7f07..2c23e50f95bce 100644 --- a/api_docs/kbn_core_ui_settings_browser_internal.mdx +++ b/api_docs/kbn_core_ui_settings_browser_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser-internal title: "@kbn/core-ui-settings-browser-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser-internal'] --- import kbnCoreUiSettingsBrowserInternalObj from './kbn_core_ui_settings_browser_internal.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_browser_mocks.mdx b/api_docs/kbn_core_ui_settings_browser_mocks.mdx index 03176e8c91ba1..6241b69a38c3d 100644 --- a/api_docs/kbn_core_ui_settings_browser_mocks.mdx +++ b/api_docs/kbn_core_ui_settings_browser_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-browser-mocks title: "@kbn/core-ui-settings-browser-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-browser-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-browser-mocks'] --- import kbnCoreUiSettingsBrowserMocksObj from './kbn_core_ui_settings_browser_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_common.mdx b/api_docs/kbn_core_ui_settings_common.mdx index d34af650d8dd9..083c99ce18e9a 100644 --- a/api_docs/kbn_core_ui_settings_common.mdx +++ b/api_docs/kbn_core_ui_settings_common.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-common title: "@kbn/core-ui-settings-common" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-common plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-common'] --- import kbnCoreUiSettingsCommonObj from './kbn_core_ui_settings_common.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_server.mdx b/api_docs/kbn_core_ui_settings_server.mdx index 402fcdccd5caf..625e58764a98b 100644 --- a/api_docs/kbn_core_ui_settings_server.mdx +++ b/api_docs/kbn_core_ui_settings_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server title: "@kbn/core-ui-settings-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server'] --- import kbnCoreUiSettingsServerObj from './kbn_core_ui_settings_server.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_server_internal.mdx b/api_docs/kbn_core_ui_settings_server_internal.mdx index c5b88a3421e8b..5f38b9ffbe2f8 100644 --- a/api_docs/kbn_core_ui_settings_server_internal.mdx +++ b/api_docs/kbn_core_ui_settings_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server-internal title: "@kbn/core-ui-settings-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server-internal'] --- import kbnCoreUiSettingsServerInternalObj from './kbn_core_ui_settings_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_ui_settings_server_mocks.mdx b/api_docs/kbn_core_ui_settings_server_mocks.mdx index f211bb66b2f4f..1a69a645a027b 100644 --- a/api_docs/kbn_core_ui_settings_server_mocks.mdx +++ b/api_docs/kbn_core_ui_settings_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-ui-settings-server-mocks title: "@kbn/core-ui-settings-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-ui-settings-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-ui-settings-server-mocks'] --- import kbnCoreUiSettingsServerMocksObj from './kbn_core_ui_settings_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server.mdx b/api_docs/kbn_core_usage_data_server.mdx index 7252e46db7ebc..e919b4aba9c51 100644 --- a/api_docs/kbn_core_usage_data_server.mdx +++ b/api_docs/kbn_core_usage_data_server.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server title: "@kbn/core-usage-data-server" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server'] --- import kbnCoreUsageDataServerObj from './kbn_core_usage_data_server.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server_internal.mdx b/api_docs/kbn_core_usage_data_server_internal.mdx index 52add676219f3..e8913afa81c88 100644 --- a/api_docs/kbn_core_usage_data_server_internal.mdx +++ b/api_docs/kbn_core_usage_data_server_internal.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server-internal title: "@kbn/core-usage-data-server-internal" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server-internal plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server-internal'] --- import kbnCoreUsageDataServerInternalObj from './kbn_core_usage_data_server_internal.devdocs.json'; diff --git a/api_docs/kbn_core_usage_data_server_mocks.mdx b/api_docs/kbn_core_usage_data_server_mocks.mdx index 24b67e6c76f81..c17dff7ee239c 100644 --- a/api_docs/kbn_core_usage_data_server_mocks.mdx +++ b/api_docs/kbn_core_usage_data_server_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-core-usage-data-server-mocks title: "@kbn/core-usage-data-server-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/core-usage-data-server-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/core-usage-data-server-mocks'] --- import kbnCoreUsageDataServerMocksObj from './kbn_core_usage_data_server_mocks.devdocs.json'; diff --git a/api_docs/kbn_crypto.mdx b/api_docs/kbn_crypto.mdx index fbd6a4d3cdad7..6b9b7c47f66e3 100644 --- a/api_docs/kbn_crypto.mdx +++ b/api_docs/kbn_crypto.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-crypto title: "@kbn/crypto" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/crypto plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/crypto'] --- import kbnCryptoObj from './kbn_crypto.devdocs.json'; diff --git a/api_docs/kbn_crypto_browser.mdx b/api_docs/kbn_crypto_browser.mdx index 46233e26fbab7..dcbdcc38dfdb9 100644 --- a/api_docs/kbn_crypto_browser.mdx +++ b/api_docs/kbn_crypto_browser.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-crypto-browser title: "@kbn/crypto-browser" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/crypto-browser plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/crypto-browser'] --- import kbnCryptoBrowserObj from './kbn_crypto_browser.devdocs.json'; diff --git a/api_docs/kbn_datemath.mdx b/api_docs/kbn_datemath.mdx index 58b37afc7897a..6fd8bc19e7e34 100644 --- a/api_docs/kbn_datemath.mdx +++ b/api_docs/kbn_datemath.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-datemath title: "@kbn/datemath" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/datemath plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/datemath'] --- import kbnDatemathObj from './kbn_datemath.devdocs.json'; diff --git a/api_docs/kbn_dev_cli_errors.mdx b/api_docs/kbn_dev_cli_errors.mdx index 235c80480f1d4..bfc5286c8483b 100644 --- a/api_docs/kbn_dev_cli_errors.mdx +++ b/api_docs/kbn_dev_cli_errors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-cli-errors title: "@kbn/dev-cli-errors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-cli-errors plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-cli-errors'] --- import kbnDevCliErrorsObj from './kbn_dev_cli_errors.devdocs.json'; diff --git a/api_docs/kbn_dev_cli_runner.mdx b/api_docs/kbn_dev_cli_runner.mdx index 0338ad7ba8da2..61702adbf85ec 100644 --- a/api_docs/kbn_dev_cli_runner.mdx +++ b/api_docs/kbn_dev_cli_runner.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-cli-runner title: "@kbn/dev-cli-runner" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-cli-runner plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-cli-runner'] --- import kbnDevCliRunnerObj from './kbn_dev_cli_runner.devdocs.json'; diff --git a/api_docs/kbn_dev_proc_runner.mdx b/api_docs/kbn_dev_proc_runner.mdx index a86c1995e87be..5f4151126ff61 100644 --- a/api_docs/kbn_dev_proc_runner.mdx +++ b/api_docs/kbn_dev_proc_runner.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-proc-runner title: "@kbn/dev-proc-runner" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-proc-runner plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-proc-runner'] --- import kbnDevProcRunnerObj from './kbn_dev_proc_runner.devdocs.json'; diff --git a/api_docs/kbn_dev_utils.mdx b/api_docs/kbn_dev_utils.mdx index e3363f9927c87..ed341b7fd0d3d 100644 --- a/api_docs/kbn_dev_utils.mdx +++ b/api_docs/kbn_dev_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-dev-utils title: "@kbn/dev-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/dev-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/dev-utils'] --- import kbnDevUtilsObj from './kbn_dev_utils.devdocs.json'; diff --git a/api_docs/kbn_doc_links.mdx b/api_docs/kbn_doc_links.mdx index 8b783d63b1e70..dd99724236b57 100644 --- a/api_docs/kbn_doc_links.mdx +++ b/api_docs/kbn_doc_links.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-doc-links title: "@kbn/doc-links" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/doc-links plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/doc-links'] --- import kbnDocLinksObj from './kbn_doc_links.devdocs.json'; diff --git a/api_docs/kbn_docs_utils.mdx b/api_docs/kbn_docs_utils.mdx index 20d1b9e0144ce..3ab75edf78427 100644 --- a/api_docs/kbn_docs_utils.mdx +++ b/api_docs/kbn_docs_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-docs-utils title: "@kbn/docs-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/docs-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/docs-utils'] --- import kbnDocsUtilsObj from './kbn_docs_utils.devdocs.json'; diff --git a/api_docs/kbn_ebt_tools.mdx b/api_docs/kbn_ebt_tools.mdx index 86b7e9647bc46..b8335686424f3 100644 --- a/api_docs/kbn_ebt_tools.mdx +++ b/api_docs/kbn_ebt_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ebt-tools title: "@kbn/ebt-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ebt-tools plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ebt-tools'] --- import kbnEbtToolsObj from './kbn_ebt_tools.devdocs.json'; diff --git a/api_docs/kbn_es_archiver.mdx b/api_docs/kbn_es_archiver.mdx index d7d13318bb297..8c5befe03b359 100644 --- a/api_docs/kbn_es_archiver.mdx +++ b/api_docs/kbn_es_archiver.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-archiver title: "@kbn/es-archiver" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-archiver plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-archiver'] --- import kbnEsArchiverObj from './kbn_es_archiver.devdocs.json'; diff --git a/api_docs/kbn_es_errors.mdx b/api_docs/kbn_es_errors.mdx index 85e98cbdeb15c..605bd1db95430 100644 --- a/api_docs/kbn_es_errors.mdx +++ b/api_docs/kbn_es_errors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-errors title: "@kbn/es-errors" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-errors plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-errors'] --- import kbnEsErrorsObj from './kbn_es_errors.devdocs.json'; diff --git a/api_docs/kbn_es_query.mdx b/api_docs/kbn_es_query.mdx index 8cb400d9399d2..77f67be571740 100644 --- a/api_docs/kbn_es_query.mdx +++ b/api_docs/kbn_es_query.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-query title: "@kbn/es-query" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-query plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-query'] --- import kbnEsQueryObj from './kbn_es_query.devdocs.json'; diff --git a/api_docs/kbn_es_types.mdx b/api_docs/kbn_es_types.mdx index 0e9025ba267fe..0e63700233d85 100644 --- a/api_docs/kbn_es_types.mdx +++ b/api_docs/kbn_es_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-es-types title: "@kbn/es-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/es-types plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/es-types'] --- import kbnEsTypesObj from './kbn_es_types.devdocs.json'; diff --git a/api_docs/kbn_eslint_plugin_imports.mdx b/api_docs/kbn_eslint_plugin_imports.mdx index bf4fa667858a6..b2b1fa910efbc 100644 --- a/api_docs/kbn_eslint_plugin_imports.mdx +++ b/api_docs/kbn_eslint_plugin_imports.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-eslint-plugin-imports title: "@kbn/eslint-plugin-imports" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/eslint-plugin-imports plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/eslint-plugin-imports'] --- import kbnEslintPluginImportsObj from './kbn_eslint_plugin_imports.devdocs.json'; diff --git a/api_docs/kbn_field_types.mdx b/api_docs/kbn_field_types.mdx index b0c70bec6cc0c..9eb7c2fa89f3d 100644 --- a/api_docs/kbn_field_types.mdx +++ b/api_docs/kbn_field_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-field-types title: "@kbn/field-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/field-types plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/field-types'] --- import kbnFieldTypesObj from './kbn_field_types.devdocs.json'; diff --git a/api_docs/kbn_find_used_node_modules.mdx b/api_docs/kbn_find_used_node_modules.mdx index 0bbbda976916e..7a3a034993af1 100644 --- a/api_docs/kbn_find_used_node_modules.mdx +++ b/api_docs/kbn_find_used_node_modules.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-find-used-node-modules title: "@kbn/find-used-node-modules" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/find-used-node-modules plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/find-used-node-modules'] --- import kbnFindUsedNodeModulesObj from './kbn_find_used_node_modules.devdocs.json'; diff --git a/api_docs/kbn_ftr_common_functional_services.mdx b/api_docs/kbn_ftr_common_functional_services.mdx index e8619d48201fa..7461e140b1517 100644 --- a/api_docs/kbn_ftr_common_functional_services.mdx +++ b/api_docs/kbn_ftr_common_functional_services.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ftr-common-functional-services title: "@kbn/ftr-common-functional-services" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ftr-common-functional-services plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ftr-common-functional-services'] --- import kbnFtrCommonFunctionalServicesObj from './kbn_ftr_common_functional_services.devdocs.json'; diff --git a/api_docs/kbn_generate.mdx b/api_docs/kbn_generate.mdx index c52b256a5819b..0d2aac1746d29 100644 --- a/api_docs/kbn_generate.mdx +++ b/api_docs/kbn_generate.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-generate title: "@kbn/generate" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/generate plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/generate'] --- import kbnGenerateObj from './kbn_generate.devdocs.json'; diff --git a/api_docs/kbn_get_repo_files.mdx b/api_docs/kbn_get_repo_files.mdx index fe2e42a922202..232fe900144ad 100644 --- a/api_docs/kbn_get_repo_files.mdx +++ b/api_docs/kbn_get_repo_files.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-get-repo-files title: "@kbn/get-repo-files" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/get-repo-files plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/get-repo-files'] --- import kbnGetRepoFilesObj from './kbn_get_repo_files.devdocs.json'; diff --git a/api_docs/kbn_handlebars.mdx b/api_docs/kbn_handlebars.mdx index b845293fa719a..703cc640f9c98 100644 --- a/api_docs/kbn_handlebars.mdx +++ b/api_docs/kbn_handlebars.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-handlebars title: "@kbn/handlebars" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/handlebars plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/handlebars'] --- import kbnHandlebarsObj from './kbn_handlebars.devdocs.json'; diff --git a/api_docs/kbn_hapi_mocks.mdx b/api_docs/kbn_hapi_mocks.mdx index 2280cea95ea08..ab550d01cd4aa 100644 --- a/api_docs/kbn_hapi_mocks.mdx +++ b/api_docs/kbn_hapi_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-hapi-mocks title: "@kbn/hapi-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/hapi-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/hapi-mocks'] --- import kbnHapiMocksObj from './kbn_hapi_mocks.devdocs.json'; diff --git a/api_docs/kbn_home_sample_data_card.mdx b/api_docs/kbn_home_sample_data_card.mdx index 7ec6d9da1d167..f1a4c6333160c 100644 --- a/api_docs/kbn_home_sample_data_card.mdx +++ b/api_docs/kbn_home_sample_data_card.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-home-sample-data-card title: "@kbn/home-sample-data-card" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/home-sample-data-card plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/home-sample-data-card'] --- import kbnHomeSampleDataCardObj from './kbn_home_sample_data_card.devdocs.json'; diff --git a/api_docs/kbn_home_sample_data_tab.mdx b/api_docs/kbn_home_sample_data_tab.mdx index 72ac2e99478bd..36bdaf020341d 100644 --- a/api_docs/kbn_home_sample_data_tab.mdx +++ b/api_docs/kbn_home_sample_data_tab.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-home-sample-data-tab title: "@kbn/home-sample-data-tab" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/home-sample-data-tab plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/home-sample-data-tab'] --- import kbnHomeSampleDataTabObj from './kbn_home_sample_data_tab.devdocs.json'; diff --git a/api_docs/kbn_i18n.mdx b/api_docs/kbn_i18n.mdx index 1998d0d5520c7..9087b92760bf5 100644 --- a/api_docs/kbn_i18n.mdx +++ b/api_docs/kbn_i18n.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-i18n title: "@kbn/i18n" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/i18n plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/i18n'] --- import kbnI18nObj from './kbn_i18n.devdocs.json'; diff --git a/api_docs/kbn_import_resolver.mdx b/api_docs/kbn_import_resolver.mdx index 1e1265090924e..62ce7e6a00a7a 100644 --- a/api_docs/kbn_import_resolver.mdx +++ b/api_docs/kbn_import_resolver.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-import-resolver title: "@kbn/import-resolver" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/import-resolver plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/import-resolver'] --- import kbnImportResolverObj from './kbn_import_resolver.devdocs.json'; diff --git a/api_docs/kbn_interpreter.mdx b/api_docs/kbn_interpreter.mdx index c3621ff358455..efc7e6717383e 100644 --- a/api_docs/kbn_interpreter.mdx +++ b/api_docs/kbn_interpreter.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-interpreter title: "@kbn/interpreter" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/interpreter plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/interpreter'] --- import kbnInterpreterObj from './kbn_interpreter.devdocs.json'; diff --git a/api_docs/kbn_io_ts_utils.mdx b/api_docs/kbn_io_ts_utils.mdx index 75e43e83fe804..6dde0c81a8b68 100644 --- a/api_docs/kbn_io_ts_utils.mdx +++ b/api_docs/kbn_io_ts_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-io-ts-utils title: "@kbn/io-ts-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/io-ts-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/io-ts-utils'] --- import kbnIoTsUtilsObj from './kbn_io_ts_utils.devdocs.json'; diff --git a/api_docs/kbn_jest_serializers.mdx b/api_docs/kbn_jest_serializers.mdx index 2c58a2a334895..2b4e5883950e5 100644 --- a/api_docs/kbn_jest_serializers.mdx +++ b/api_docs/kbn_jest_serializers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-jest-serializers title: "@kbn/jest-serializers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/jest-serializers plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/jest-serializers'] --- import kbnJestSerializersObj from './kbn_jest_serializers.devdocs.json'; diff --git a/api_docs/kbn_journeys.mdx b/api_docs/kbn_journeys.mdx index 90b5f681cacb7..4f66f7786e798 100644 --- a/api_docs/kbn_journeys.mdx +++ b/api_docs/kbn_journeys.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-journeys title: "@kbn/journeys" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/journeys plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/journeys'] --- import kbnJourneysObj from './kbn_journeys.devdocs.json'; diff --git a/api_docs/kbn_kibana_manifest_schema.mdx b/api_docs/kbn_kibana_manifest_schema.mdx index 32e15e0991aaf..ebb98ebacd44e 100644 --- a/api_docs/kbn_kibana_manifest_schema.mdx +++ b/api_docs/kbn_kibana_manifest_schema.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-kibana-manifest-schema title: "@kbn/kibana-manifest-schema" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/kibana-manifest-schema plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/kibana-manifest-schema'] --- import kbnKibanaManifestSchemaObj from './kbn_kibana_manifest_schema.devdocs.json'; diff --git a/api_docs/kbn_logging.mdx b/api_docs/kbn_logging.mdx index 9c95fef63a351..3d98ca7e00e92 100644 --- a/api_docs/kbn_logging.mdx +++ b/api_docs/kbn_logging.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-logging title: "@kbn/logging" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/logging plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging'] --- import kbnLoggingObj from './kbn_logging.devdocs.json'; diff --git a/api_docs/kbn_logging_mocks.mdx b/api_docs/kbn_logging_mocks.mdx index cba8c0fc1853f..b1ca1bbb247b0 100644 --- a/api_docs/kbn_logging_mocks.mdx +++ b/api_docs/kbn_logging_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-logging-mocks title: "@kbn/logging-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/logging-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/logging-mocks'] --- import kbnLoggingMocksObj from './kbn_logging_mocks.devdocs.json'; diff --git a/api_docs/kbn_managed_vscode_config.mdx b/api_docs/kbn_managed_vscode_config.mdx index 28c61e54ec2d9..5d97e59fb4e81 100644 --- a/api_docs/kbn_managed_vscode_config.mdx +++ b/api_docs/kbn_managed_vscode_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-managed-vscode-config title: "@kbn/managed-vscode-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/managed-vscode-config plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/managed-vscode-config'] --- import kbnManagedVscodeConfigObj from './kbn_managed_vscode_config.devdocs.json'; diff --git a/api_docs/kbn_mapbox_gl.mdx b/api_docs/kbn_mapbox_gl.mdx index 46629467a890e..cc57923957615 100644 --- a/api_docs/kbn_mapbox_gl.mdx +++ b/api_docs/kbn_mapbox_gl.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-mapbox-gl title: "@kbn/mapbox-gl" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/mapbox-gl plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/mapbox-gl'] --- import kbnMapboxGlObj from './kbn_mapbox_gl.devdocs.json'; diff --git a/api_docs/kbn_ml_agg_utils.mdx b/api_docs/kbn_ml_agg_utils.mdx index 83afc2c06b970..6a3a6ac4ef228 100644 --- a/api_docs/kbn_ml_agg_utils.mdx +++ b/api_docs/kbn_ml_agg_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-agg-utils title: "@kbn/ml-agg-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-agg-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-agg-utils'] --- import kbnMlAggUtilsObj from './kbn_ml_agg_utils.devdocs.json'; diff --git a/api_docs/kbn_ml_is_populated_object.mdx b/api_docs/kbn_ml_is_populated_object.mdx index d81c1f5608dc0..aa2a7822c83c8 100644 --- a/api_docs/kbn_ml_is_populated_object.mdx +++ b/api_docs/kbn_ml_is_populated_object.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-is-populated-object title: "@kbn/ml-is-populated-object" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-is-populated-object plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-is-populated-object'] --- import kbnMlIsPopulatedObjectObj from './kbn_ml_is_populated_object.devdocs.json'; diff --git a/api_docs/kbn_ml_string_hash.mdx b/api_docs/kbn_ml_string_hash.mdx index 590a62891fa6f..6131d1fcfce58 100644 --- a/api_docs/kbn_ml_string_hash.mdx +++ b/api_docs/kbn_ml_string_hash.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ml-string-hash title: "@kbn/ml-string-hash" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ml-string-hash plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ml-string-hash'] --- import kbnMlStringHashObj from './kbn_ml_string_hash.devdocs.json'; diff --git a/api_docs/kbn_monaco.mdx b/api_docs/kbn_monaco.mdx index fe0437ddecca7..b9a9606fa03d4 100644 --- a/api_docs/kbn_monaco.mdx +++ b/api_docs/kbn_monaco.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-monaco title: "@kbn/monaco" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/monaco plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/monaco'] --- import kbnMonacoObj from './kbn_monaco.devdocs.json'; diff --git a/api_docs/kbn_optimizer.mdx b/api_docs/kbn_optimizer.mdx index aa3ac9977962f..38886f7dae121 100644 --- a/api_docs/kbn_optimizer.mdx +++ b/api_docs/kbn_optimizer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-optimizer title: "@kbn/optimizer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/optimizer plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/optimizer'] --- import kbnOptimizerObj from './kbn_optimizer.devdocs.json'; diff --git a/api_docs/kbn_optimizer_webpack_helpers.mdx b/api_docs/kbn_optimizer_webpack_helpers.mdx index 5358c1464d3b0..07979c2656cfc 100644 --- a/api_docs/kbn_optimizer_webpack_helpers.mdx +++ b/api_docs/kbn_optimizer_webpack_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-optimizer-webpack-helpers title: "@kbn/optimizer-webpack-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/optimizer-webpack-helpers plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/optimizer-webpack-helpers'] --- import kbnOptimizerWebpackHelpersObj from './kbn_optimizer_webpack_helpers.devdocs.json'; diff --git a/api_docs/kbn_osquery_io_ts_types.mdx b/api_docs/kbn_osquery_io_ts_types.mdx index ce5c1d380fea3..d369e769b38d7 100644 --- a/api_docs/kbn_osquery_io_ts_types.mdx +++ b/api_docs/kbn_osquery_io_ts_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-osquery-io-ts-types title: "@kbn/osquery-io-ts-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/osquery-io-ts-types plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/osquery-io-ts-types'] --- import kbnOsqueryIoTsTypesObj from './kbn_osquery_io_ts_types.devdocs.json'; diff --git a/api_docs/kbn_performance_testing_dataset_extractor.mdx b/api_docs/kbn_performance_testing_dataset_extractor.mdx index 139dc072af92f..8e3e91f1da134 100644 --- a/api_docs/kbn_performance_testing_dataset_extractor.mdx +++ b/api_docs/kbn_performance_testing_dataset_extractor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-performance-testing-dataset-extractor title: "@kbn/performance-testing-dataset-extractor" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/performance-testing-dataset-extractor plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/performance-testing-dataset-extractor'] --- import kbnPerformanceTestingDatasetExtractorObj from './kbn_performance_testing_dataset_extractor.devdocs.json'; diff --git a/api_docs/kbn_plugin_generator.mdx b/api_docs/kbn_plugin_generator.mdx index 92791b020dfaf..237f0ef3a9024 100644 --- a/api_docs/kbn_plugin_generator.mdx +++ b/api_docs/kbn_plugin_generator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-generator title: "@kbn/plugin-generator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/plugin-generator plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-generator'] --- import kbnPluginGeneratorObj from './kbn_plugin_generator.devdocs.json'; diff --git a/api_docs/kbn_plugin_helpers.mdx b/api_docs/kbn_plugin_helpers.mdx index c61e40ce4d5c1..8a0d54de39844 100644 --- a/api_docs/kbn_plugin_helpers.mdx +++ b/api_docs/kbn_plugin_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-plugin-helpers title: "@kbn/plugin-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/plugin-helpers plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/plugin-helpers'] --- import kbnPluginHelpersObj from './kbn_plugin_helpers.devdocs.json'; diff --git a/api_docs/kbn_react_field.mdx b/api_docs/kbn_react_field.mdx index 88461caa1d77a..d59e901750fc4 100644 --- a/api_docs/kbn_react_field.mdx +++ b/api_docs/kbn_react_field.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-react-field title: "@kbn/react-field" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/react-field plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/react-field'] --- import kbnReactFieldObj from './kbn_react_field.devdocs.json'; diff --git a/api_docs/kbn_repo_source_classifier.mdx b/api_docs/kbn_repo_source_classifier.mdx index 9f0541f5a55fd..e990105e75989 100644 --- a/api_docs/kbn_repo_source_classifier.mdx +++ b/api_docs/kbn_repo_source_classifier.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-repo-source-classifier title: "@kbn/repo-source-classifier" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/repo-source-classifier plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/repo-source-classifier'] --- import kbnRepoSourceClassifierObj from './kbn_repo_source_classifier.devdocs.json'; diff --git a/api_docs/kbn_rule_data_utils.mdx b/api_docs/kbn_rule_data_utils.mdx index a874a65d25126..1fb1dc646b831 100644 --- a/api_docs/kbn_rule_data_utils.mdx +++ b/api_docs/kbn_rule_data_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-rule-data-utils title: "@kbn/rule-data-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/rule-data-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/rule-data-utils'] --- import kbnRuleDataUtilsObj from './kbn_rule_data_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_autocomplete.mdx b/api_docs/kbn_securitysolution_autocomplete.mdx index 9c925b1338223..978b07b6bee0e 100644 --- a/api_docs/kbn_securitysolution_autocomplete.mdx +++ b/api_docs/kbn_securitysolution_autocomplete.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-autocomplete title: "@kbn/securitysolution-autocomplete" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-autocomplete plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-autocomplete'] --- import kbnSecuritysolutionAutocompleteObj from './kbn_securitysolution_autocomplete.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_es_utils.mdx b/api_docs/kbn_securitysolution_es_utils.mdx index 39bc3999fafc6..fbc0cca8a3a8e 100644 --- a/api_docs/kbn_securitysolution_es_utils.mdx +++ b/api_docs/kbn_securitysolution_es_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-es-utils title: "@kbn/securitysolution-es-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-es-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-es-utils'] --- import kbnSecuritysolutionEsUtilsObj from './kbn_securitysolution_es_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_exception_list_components.mdx b/api_docs/kbn_securitysolution_exception_list_components.mdx index 9807bfb87229a..04d20b1704bd8 100644 --- a/api_docs/kbn_securitysolution_exception_list_components.mdx +++ b/api_docs/kbn_securitysolution_exception_list_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-exception-list-components title: "@kbn/securitysolution-exception-list-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-exception-list-components plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-exception-list-components'] --- import kbnSecuritysolutionExceptionListComponentsObj from './kbn_securitysolution_exception_list_components.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_hook_utils.mdx b/api_docs/kbn_securitysolution_hook_utils.mdx index a9042d2232d08..6fd18e8011f86 100644 --- a/api_docs/kbn_securitysolution_hook_utils.mdx +++ b/api_docs/kbn_securitysolution_hook_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-hook-utils title: "@kbn/securitysolution-hook-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-hook-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-hook-utils'] --- import kbnSecuritysolutionHookUtilsObj from './kbn_securitysolution_hook_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx b/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx index 5a9cd38f09b49..a8d86cfca2cfb 100644 --- a/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_alerting_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-alerting-types title: "@kbn/securitysolution-io-ts-alerting-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-alerting-types plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-alerting-types'] --- import kbnSecuritysolutionIoTsAlertingTypesObj from './kbn_securitysolution_io_ts_alerting_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_list_types.mdx b/api_docs/kbn_securitysolution_io_ts_list_types.mdx index 2cd4406035039..584949a0b23a4 100644 --- a/api_docs/kbn_securitysolution_io_ts_list_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_list_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-list-types title: "@kbn/securitysolution-io-ts-list-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-list-types plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-list-types'] --- import kbnSecuritysolutionIoTsListTypesObj from './kbn_securitysolution_io_ts_list_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_types.mdx b/api_docs/kbn_securitysolution_io_ts_types.mdx index 72cacb9ce2b3c..88637f8423878 100644 --- a/api_docs/kbn_securitysolution_io_ts_types.mdx +++ b/api_docs/kbn_securitysolution_io_ts_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-types title: "@kbn/securitysolution-io-ts-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-types plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-types'] --- import kbnSecuritysolutionIoTsTypesObj from './kbn_securitysolution_io_ts_types.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_io_ts_utils.mdx b/api_docs/kbn_securitysolution_io_ts_utils.mdx index 8576083e813f0..d38b83e89fcde 100644 --- a/api_docs/kbn_securitysolution_io_ts_utils.mdx +++ b/api_docs/kbn_securitysolution_io_ts_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-io-ts-utils title: "@kbn/securitysolution-io-ts-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-io-ts-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-io-ts-utils'] --- import kbnSecuritysolutionIoTsUtilsObj from './kbn_securitysolution_io_ts_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_api.mdx b/api_docs/kbn_securitysolution_list_api.mdx index 4ac93e2d25960..e90e1e8c97e4a 100644 --- a/api_docs/kbn_securitysolution_list_api.mdx +++ b/api_docs/kbn_securitysolution_list_api.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-api title: "@kbn/securitysolution-list-api" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-api plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-api'] --- import kbnSecuritysolutionListApiObj from './kbn_securitysolution_list_api.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_constants.mdx b/api_docs/kbn_securitysolution_list_constants.mdx index f14d26d2edf22..fa5fe444a0276 100644 --- a/api_docs/kbn_securitysolution_list_constants.mdx +++ b/api_docs/kbn_securitysolution_list_constants.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-constants title: "@kbn/securitysolution-list-constants" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-constants plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-constants'] --- import kbnSecuritysolutionListConstantsObj from './kbn_securitysolution_list_constants.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_hooks.mdx b/api_docs/kbn_securitysolution_list_hooks.mdx index bd5855d0cd746..41afd4e5fb4a0 100644 --- a/api_docs/kbn_securitysolution_list_hooks.mdx +++ b/api_docs/kbn_securitysolution_list_hooks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-hooks title: "@kbn/securitysolution-list-hooks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-hooks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-hooks'] --- import kbnSecuritysolutionListHooksObj from './kbn_securitysolution_list_hooks.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_list_utils.mdx b/api_docs/kbn_securitysolution_list_utils.mdx index 78b6e7b88d4c7..a2837efbd4207 100644 --- a/api_docs/kbn_securitysolution_list_utils.mdx +++ b/api_docs/kbn_securitysolution_list_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-list-utils title: "@kbn/securitysolution-list-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-list-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-list-utils'] --- import kbnSecuritysolutionListUtilsObj from './kbn_securitysolution_list_utils.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_rules.mdx b/api_docs/kbn_securitysolution_rules.mdx index 0eba790a12640..d4a8fc67beabd 100644 --- a/api_docs/kbn_securitysolution_rules.mdx +++ b/api_docs/kbn_securitysolution_rules.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-rules title: "@kbn/securitysolution-rules" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-rules plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-rules'] --- import kbnSecuritysolutionRulesObj from './kbn_securitysolution_rules.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_t_grid.mdx b/api_docs/kbn_securitysolution_t_grid.mdx index 503b13efc68d1..87addb64d93e3 100644 --- a/api_docs/kbn_securitysolution_t_grid.mdx +++ b/api_docs/kbn_securitysolution_t_grid.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-t-grid title: "@kbn/securitysolution-t-grid" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-t-grid plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-t-grid'] --- import kbnSecuritysolutionTGridObj from './kbn_securitysolution_t_grid.devdocs.json'; diff --git a/api_docs/kbn_securitysolution_utils.mdx b/api_docs/kbn_securitysolution_utils.mdx index 31c15c4a52037..056b09bbb85cc 100644 --- a/api_docs/kbn_securitysolution_utils.mdx +++ b/api_docs/kbn_securitysolution_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-securitysolution-utils title: "@kbn/securitysolution-utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/securitysolution-utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/securitysolution-utils'] --- import kbnSecuritysolutionUtilsObj from './kbn_securitysolution_utils.devdocs.json'; diff --git a/api_docs/kbn_server_http_tools.mdx b/api_docs/kbn_server_http_tools.mdx index 76930deff7aec..7ce61f34b4ab0 100644 --- a/api_docs/kbn_server_http_tools.mdx +++ b/api_docs/kbn_server_http_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-http-tools title: "@kbn/server-http-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-http-tools plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-http-tools'] --- import kbnServerHttpToolsObj from './kbn_server_http_tools.devdocs.json'; diff --git a/api_docs/kbn_server_route_repository.mdx b/api_docs/kbn_server_route_repository.mdx index e81b04b3ae9eb..cd60083336f7c 100644 --- a/api_docs/kbn_server_route_repository.mdx +++ b/api_docs/kbn_server_route_repository.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-server-route-repository title: "@kbn/server-route-repository" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/server-route-repository plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/server-route-repository'] --- import kbnServerRouteRepositoryObj from './kbn_server_route_repository.devdocs.json'; diff --git a/api_docs/kbn_shared_svg.mdx b/api_docs/kbn_shared_svg.mdx index 5d388d1b3c74e..7d3de8e112faa 100644 --- a/api_docs/kbn_shared_svg.mdx +++ b/api_docs/kbn_shared_svg.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-svg title: "@kbn/shared-svg" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-svg plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-svg'] --- import kbnSharedSvgObj from './kbn_shared_svg.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_avatar_user_profile_components.mdx b/api_docs/kbn_shared_ux_avatar_user_profile_components.mdx index aa45daa55d3cf..c45e31b93fdb3 100644 --- a/api_docs/kbn_shared_ux_avatar_user_profile_components.mdx +++ b/api_docs/kbn_shared_ux_avatar_user_profile_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-avatar-user-profile-components title: "@kbn/shared-ux-avatar-user-profile-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-avatar-user-profile-components plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-avatar-user-profile-components'] --- import kbnSharedUxAvatarUserProfileComponentsObj from './kbn_shared_ux_avatar_user_profile_components.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_button_exit_full_screen_mocks.mdx b/api_docs/kbn_shared_ux_button_exit_full_screen_mocks.mdx index 0e4323167397b..ffe79ed31b8f7 100644 --- a/api_docs/kbn_shared_ux_button_exit_full_screen_mocks.mdx +++ b/api_docs/kbn_shared_ux_button_exit_full_screen_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-button-exit-full-screen-mocks title: "@kbn/shared-ux-button-exit-full-screen-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-button-exit-full-screen-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-button-exit-full-screen-mocks'] --- import kbnSharedUxButtonExitFullScreenMocksObj from './kbn_shared_ux_button_exit_full_screen_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_button_toolbar.mdx b/api_docs/kbn_shared_ux_button_toolbar.mdx index 2a75e4ca26742..5ff8fb8885e7a 100644 --- a/api_docs/kbn_shared_ux_button_toolbar.mdx +++ b/api_docs/kbn_shared_ux_button_toolbar.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-button-toolbar title: "@kbn/shared-ux-button-toolbar" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-button-toolbar plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-button-toolbar'] --- import kbnSharedUxButtonToolbarObj from './kbn_shared_ux_button_toolbar.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_card_no_data.mdx b/api_docs/kbn_shared_ux_card_no_data.mdx index 6cb107b6b7685..05d762a44ace5 100644 --- a/api_docs/kbn_shared_ux_card_no_data.mdx +++ b/api_docs/kbn_shared_ux_card_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-card-no-data title: "@kbn/shared-ux-card-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-card-no-data plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-card-no-data'] --- import kbnSharedUxCardNoDataObj from './kbn_shared_ux_card_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_card_no_data_mocks.mdx b/api_docs/kbn_shared_ux_card_no_data_mocks.mdx index 0718bbf83840c..642072da18d1a 100644 --- a/api_docs/kbn_shared_ux_card_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_card_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-card-no-data-mocks title: "@kbn/shared-ux-card-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-card-no-data-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-card-no-data-mocks'] --- import kbnSharedUxCardNoDataMocksObj from './kbn_shared_ux_card_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx b/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx index d9d770d2cfe89..91cb4417726a8 100644 --- a/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx +++ b/api_docs/kbn_shared_ux_link_redirect_app_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-link-redirect-app-mocks title: "@kbn/shared-ux-link-redirect-app-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-link-redirect-app-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-link-redirect-app-mocks'] --- import kbnSharedUxLinkRedirectAppMocksObj from './kbn_shared_ux_link_redirect_app_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_analytics_no_data.mdx b/api_docs/kbn_shared_ux_page_analytics_no_data.mdx index b760c93c1987a..b915b9a086d46 100644 --- a/api_docs/kbn_shared_ux_page_analytics_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_analytics_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-analytics-no-data title: "@kbn/shared-ux-page-analytics-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-analytics-no-data plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-analytics-no-data'] --- import kbnSharedUxPageAnalyticsNoDataObj from './kbn_shared_ux_page_analytics_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx index 13c52febec86c..f8ebff6ff0f35 100644 --- a/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_analytics_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-analytics-no-data-mocks title: "@kbn/shared-ux-page-analytics-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-analytics-no-data-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-analytics-no-data-mocks'] --- import kbnSharedUxPageAnalyticsNoDataMocksObj from './kbn_shared_ux_page_analytics_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_no_data.mdx b/api_docs/kbn_shared_ux_page_kibana_no_data.mdx index ec6631008e9fb..1f0ccc59a50e5 100644 --- a/api_docs/kbn_shared_ux_page_kibana_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-no-data title: "@kbn/shared-ux-page-kibana-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-no-data plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-no-data'] --- import kbnSharedUxPageKibanaNoDataObj from './kbn_shared_ux_page_kibana_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx index 7e20d5a92be16..a5b61d014aca9 100644 --- a/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-no-data-mocks title: "@kbn/shared-ux-page-kibana-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-no-data-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-no-data-mocks'] --- import kbnSharedUxPageKibanaNoDataMocksObj from './kbn_shared_ux_page_kibana_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_template.mdx b/api_docs/kbn_shared_ux_page_kibana_template.mdx index 4a55d033fb255..3eeb2b8a1b4b7 100644 --- a/api_docs/kbn_shared_ux_page_kibana_template.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_template.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-template title: "@kbn/shared-ux-page-kibana-template" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-template plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-template'] --- import kbnSharedUxPageKibanaTemplateObj from './kbn_shared_ux_page_kibana_template.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx b/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx index cace3c480477c..b78439042d011 100644 --- a/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_kibana_template_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-kibana-template-mocks title: "@kbn/shared-ux-page-kibana-template-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-kibana-template-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-kibana-template-mocks'] --- import kbnSharedUxPageKibanaTemplateMocksObj from './kbn_shared_ux_page_kibana_template_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data.mdx b/api_docs/kbn_shared_ux_page_no_data.mdx index 6b7dc5b1d516d..05e8f0fda3186 100644 --- a/api_docs/kbn_shared_ux_page_no_data.mdx +++ b/api_docs/kbn_shared_ux_page_no_data.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data title: "@kbn/shared-ux-page-no-data" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data'] --- import kbnSharedUxPageNoDataObj from './kbn_shared_ux_page_no_data.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_config.mdx b/api_docs/kbn_shared_ux_page_no_data_config.mdx index 332c17f903579..3c628af3d29db 100644 --- a/api_docs/kbn_shared_ux_page_no_data_config.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-config title: "@kbn/shared-ux-page-no-data-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-config plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-config'] --- import kbnSharedUxPageNoDataConfigObj from './kbn_shared_ux_page_no_data_config.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx b/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx index 60dd7a32b04a8..180b30d640a55 100644 --- a/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_config_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-config-mocks title: "@kbn/shared-ux-page-no-data-config-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-config-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-config-mocks'] --- import kbnSharedUxPageNoDataConfigMocksObj from './kbn_shared_ux_page_no_data_config_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_no_data_mocks.mdx b/api_docs/kbn_shared_ux_page_no_data_mocks.mdx index c43d04bd26a11..67f2dcbf87d17 100644 --- a/api_docs/kbn_shared_ux_page_no_data_mocks.mdx +++ b/api_docs/kbn_shared_ux_page_no_data_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-no-data-mocks title: "@kbn/shared-ux-page-no-data-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-no-data-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-no-data-mocks'] --- import kbnSharedUxPageNoDataMocksObj from './kbn_shared_ux_page_no_data_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_page_solution_nav.mdx b/api_docs/kbn_shared_ux_page_solution_nav.mdx index ecbf3828a144c..28fe4be1e9315 100644 --- a/api_docs/kbn_shared_ux_page_solution_nav.mdx +++ b/api_docs/kbn_shared_ux_page_solution_nav.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-page-solution-nav title: "@kbn/shared-ux-page-solution-nav" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-page-solution-nav plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-page-solution-nav'] --- import kbnSharedUxPageSolutionNavObj from './kbn_shared_ux_page_solution_nav.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_prompt_no_data_views.mdx b/api_docs/kbn_shared_ux_prompt_no_data_views.mdx index 214205caf4b4e..cd2bfe2727e29 100644 --- a/api_docs/kbn_shared_ux_prompt_no_data_views.mdx +++ b/api_docs/kbn_shared_ux_prompt_no_data_views.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-prompt-no-data-views title: "@kbn/shared-ux-prompt-no-data-views" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-prompt-no-data-views plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-prompt-no-data-views'] --- import kbnSharedUxPromptNoDataViewsObj from './kbn_shared_ux_prompt_no_data_views.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx b/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx index 8e7a998461cee..b50866740f17e 100644 --- a/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx +++ b/api_docs/kbn_shared_ux_prompt_no_data_views_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-prompt-no-data-views-mocks title: "@kbn/shared-ux-prompt-no-data-views-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-prompt-no-data-views-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-prompt-no-data-views-mocks'] --- import kbnSharedUxPromptNoDataViewsMocksObj from './kbn_shared_ux_prompt_no_data_views_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_router.mdx b/api_docs/kbn_shared_ux_router.mdx index 045727e8f9622..d7e73919195c7 100644 --- a/api_docs/kbn_shared_ux_router.mdx +++ b/api_docs/kbn_shared_ux_router.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-router title: "@kbn/shared-ux-router" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-router plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-router'] --- import kbnSharedUxRouterObj from './kbn_shared_ux_router.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_router_mocks.mdx b/api_docs/kbn_shared_ux_router_mocks.mdx index 3e3407f1bbf06..c4b979f0bf020 100644 --- a/api_docs/kbn_shared_ux_router_mocks.mdx +++ b/api_docs/kbn_shared_ux_router_mocks.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-router-mocks title: "@kbn/shared-ux-router-mocks" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-router-mocks plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-router-mocks'] --- import kbnSharedUxRouterMocksObj from './kbn_shared_ux_router_mocks.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_storybook_config.mdx b/api_docs/kbn_shared_ux_storybook_config.mdx index 286d22c37bfd9..2fffdca031d68 100644 --- a/api_docs/kbn_shared_ux_storybook_config.mdx +++ b/api_docs/kbn_shared_ux_storybook_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-storybook-config title: "@kbn/shared-ux-storybook-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-storybook-config plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-storybook-config'] --- import kbnSharedUxStorybookConfigObj from './kbn_shared_ux_storybook_config.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_storybook_mock.mdx b/api_docs/kbn_shared_ux_storybook_mock.mdx index 3a8e6c7e31c3b..4f7505aa18f19 100644 --- a/api_docs/kbn_shared_ux_storybook_mock.mdx +++ b/api_docs/kbn_shared_ux_storybook_mock.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-storybook-mock title: "@kbn/shared-ux-storybook-mock" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-storybook-mock plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-storybook-mock'] --- import kbnSharedUxStorybookMockObj from './kbn_shared_ux_storybook_mock.devdocs.json'; diff --git a/api_docs/kbn_shared_ux_utility.mdx b/api_docs/kbn_shared_ux_utility.mdx index 7c57fe2abda11..ef10794ec07c7 100644 --- a/api_docs/kbn_shared_ux_utility.mdx +++ b/api_docs/kbn_shared_ux_utility.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-shared-ux-utility title: "@kbn/shared-ux-utility" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/shared-ux-utility plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/shared-ux-utility'] --- import kbnSharedUxUtilityObj from './kbn_shared_ux_utility.devdocs.json'; diff --git a/api_docs/kbn_some_dev_log.mdx b/api_docs/kbn_some_dev_log.mdx index 3bc5fbf1173c1..4e445695ce043 100644 --- a/api_docs/kbn_some_dev_log.mdx +++ b/api_docs/kbn_some_dev_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-some-dev-log title: "@kbn/some-dev-log" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/some-dev-log plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/some-dev-log'] --- import kbnSomeDevLogObj from './kbn_some_dev_log.devdocs.json'; diff --git a/api_docs/kbn_sort_package_json.mdx b/api_docs/kbn_sort_package_json.mdx index bc2fbf01f59d1..619317adad6ab 100644 --- a/api_docs/kbn_sort_package_json.mdx +++ b/api_docs/kbn_sort_package_json.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-sort-package-json title: "@kbn/sort-package-json" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/sort-package-json plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/sort-package-json'] --- import kbnSortPackageJsonObj from './kbn_sort_package_json.devdocs.json'; diff --git a/api_docs/kbn_std.mdx b/api_docs/kbn_std.mdx index 97e2338d71629..7c82fe28b9ef8 100644 --- a/api_docs/kbn_std.mdx +++ b/api_docs/kbn_std.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-std title: "@kbn/std" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/std plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/std'] --- import kbnStdObj from './kbn_std.devdocs.json'; diff --git a/api_docs/kbn_stdio_dev_helpers.mdx b/api_docs/kbn_stdio_dev_helpers.mdx index 8666564c891e0..af25ac211f92c 100644 --- a/api_docs/kbn_stdio_dev_helpers.mdx +++ b/api_docs/kbn_stdio_dev_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-stdio-dev-helpers title: "@kbn/stdio-dev-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/stdio-dev-helpers plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/stdio-dev-helpers'] --- import kbnStdioDevHelpersObj from './kbn_stdio_dev_helpers.devdocs.json'; diff --git a/api_docs/kbn_storybook.mdx b/api_docs/kbn_storybook.mdx index e6ce5d7e8246f..02b67f55c2d11 100644 --- a/api_docs/kbn_storybook.mdx +++ b/api_docs/kbn_storybook.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-storybook title: "@kbn/storybook" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/storybook plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/storybook'] --- import kbnStorybookObj from './kbn_storybook.devdocs.json'; diff --git a/api_docs/kbn_telemetry_tools.mdx b/api_docs/kbn_telemetry_tools.mdx index 61c00ac271eca..a7e94ddd6bf9f 100644 --- a/api_docs/kbn_telemetry_tools.mdx +++ b/api_docs/kbn_telemetry_tools.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-telemetry-tools title: "@kbn/telemetry-tools" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/telemetry-tools plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/telemetry-tools'] --- import kbnTelemetryToolsObj from './kbn_telemetry_tools.devdocs.json'; diff --git a/api_docs/kbn_test.mdx b/api_docs/kbn_test.mdx index 5c52d6c402e32..520a84d725f50 100644 --- a/api_docs/kbn_test.mdx +++ b/api_docs/kbn_test.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test title: "@kbn/test" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test'] --- import kbnTestObj from './kbn_test.devdocs.json'; diff --git a/api_docs/kbn_test_jest_helpers.mdx b/api_docs/kbn_test_jest_helpers.mdx index bf22a5ec555d8..e57378a0bdd1b 100644 --- a/api_docs/kbn_test_jest_helpers.mdx +++ b/api_docs/kbn_test_jest_helpers.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test-jest-helpers title: "@kbn/test-jest-helpers" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test-jest-helpers plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-jest-helpers'] --- import kbnTestJestHelpersObj from './kbn_test_jest_helpers.devdocs.json'; diff --git a/api_docs/kbn_test_subj_selector.mdx b/api_docs/kbn_test_subj_selector.mdx index 86f65530886b3..5848474c98abb 100644 --- a/api_docs/kbn_test_subj_selector.mdx +++ b/api_docs/kbn_test_subj_selector.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-test-subj-selector title: "@kbn/test-subj-selector" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/test-subj-selector plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/test-subj-selector'] --- import kbnTestSubjSelectorObj from './kbn_test_subj_selector.devdocs.json'; diff --git a/api_docs/kbn_tooling_log.mdx b/api_docs/kbn_tooling_log.mdx index f1b1798fab1b8..34593f5e4de31 100644 --- a/api_docs/kbn_tooling_log.mdx +++ b/api_docs/kbn_tooling_log.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-tooling-log title: "@kbn/tooling-log" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/tooling-log plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/tooling-log'] --- import kbnToolingLogObj from './kbn_tooling_log.devdocs.json'; diff --git a/api_docs/kbn_type_summarizer.mdx b/api_docs/kbn_type_summarizer.mdx index db8d1a8022b31..28ff056daa4d8 100644 --- a/api_docs/kbn_type_summarizer.mdx +++ b/api_docs/kbn_type_summarizer.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-type-summarizer title: "@kbn/type-summarizer" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/type-summarizer plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/type-summarizer'] --- import kbnTypeSummarizerObj from './kbn_type_summarizer.devdocs.json'; diff --git a/api_docs/kbn_type_summarizer_core.mdx b/api_docs/kbn_type_summarizer_core.mdx index ad788a66355bb..c89a6bfd01217 100644 --- a/api_docs/kbn_type_summarizer_core.mdx +++ b/api_docs/kbn_type_summarizer_core.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-type-summarizer-core title: "@kbn/type-summarizer-core" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/type-summarizer-core plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/type-summarizer-core'] --- import kbnTypeSummarizerCoreObj from './kbn_type_summarizer_core.devdocs.json'; diff --git a/api_docs/kbn_typed_react_router_config.mdx b/api_docs/kbn_typed_react_router_config.mdx index 99f07cca5249f..bb4d7a58c835d 100644 --- a/api_docs/kbn_typed_react_router_config.mdx +++ b/api_docs/kbn_typed_react_router_config.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-typed-react-router-config title: "@kbn/typed-react-router-config" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/typed-react-router-config plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/typed-react-router-config'] --- import kbnTypedReactRouterConfigObj from './kbn_typed_react_router_config.devdocs.json'; diff --git a/api_docs/kbn_ui_theme.mdx b/api_docs/kbn_ui_theme.mdx index d361266f4b112..836008a78b41d 100644 --- a/api_docs/kbn_ui_theme.mdx +++ b/api_docs/kbn_ui_theme.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-ui-theme title: "@kbn/ui-theme" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/ui-theme plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/ui-theme'] --- import kbnUiThemeObj from './kbn_ui_theme.devdocs.json'; diff --git a/api_docs/kbn_user_profile_components.mdx b/api_docs/kbn_user_profile_components.mdx index 2d3efbab3fe7a..808ad6744bf6a 100644 --- a/api_docs/kbn_user_profile_components.mdx +++ b/api_docs/kbn_user_profile_components.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-user-profile-components title: "@kbn/user-profile-components" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/user-profile-components plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/user-profile-components'] --- import kbnUserProfileComponentsObj from './kbn_user_profile_components.devdocs.json'; diff --git a/api_docs/kbn_utility_types.mdx b/api_docs/kbn_utility_types.mdx index d91016709162d..0953b950f3934 100644 --- a/api_docs/kbn_utility_types.mdx +++ b/api_docs/kbn_utility_types.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utility-types title: "@kbn/utility-types" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utility-types plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utility-types'] --- import kbnUtilityTypesObj from './kbn_utility_types.devdocs.json'; diff --git a/api_docs/kbn_utility_types_jest.mdx b/api_docs/kbn_utility_types_jest.mdx index 6cd910e0cbd30..b30a7490bcf3c 100644 --- a/api_docs/kbn_utility_types_jest.mdx +++ b/api_docs/kbn_utility_types_jest.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utility-types-jest title: "@kbn/utility-types-jest" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utility-types-jest plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utility-types-jest'] --- import kbnUtilityTypesJestObj from './kbn_utility_types_jest.devdocs.json'; diff --git a/api_docs/kbn_utils.mdx b/api_docs/kbn_utils.mdx index d282fab4950b8..7df2fce140900 100644 --- a/api_docs/kbn_utils.mdx +++ b/api_docs/kbn_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-utils title: "@kbn/utils" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/utils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/utils'] --- import kbnUtilsObj from './kbn_utils.devdocs.json'; diff --git a/api_docs/kbn_yarn_lock_validator.mdx b/api_docs/kbn_yarn_lock_validator.mdx index c20fcee717e8b..2be9c46589362 100644 --- a/api_docs/kbn_yarn_lock_validator.mdx +++ b/api_docs/kbn_yarn_lock_validator.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kbn-yarn-lock-validator title: "@kbn/yarn-lock-validator" image: https://source.unsplash.com/400x175/?github description: API docs for the @kbn/yarn-lock-validator plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', '@kbn/yarn-lock-validator'] --- import kbnYarnLockValidatorObj from './kbn_yarn_lock_validator.devdocs.json'; diff --git a/api_docs/kibana_overview.mdx b/api_docs/kibana_overview.mdx index 6dbe8ec638069..62bce0880f9f2 100644 --- a/api_docs/kibana_overview.mdx +++ b/api_docs/kibana_overview.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaOverview title: "kibanaOverview" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaOverview plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaOverview'] --- import kibanaOverviewObj from './kibana_overview.devdocs.json'; diff --git a/api_docs/kibana_react.mdx b/api_docs/kibana_react.mdx index fe99963d954ae..811a1eeae8e88 100644 --- a/api_docs/kibana_react.mdx +++ b/api_docs/kibana_react.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaReact title: "kibanaReact" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaReact plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaReact'] --- import kibanaReactObj from './kibana_react.devdocs.json'; diff --git a/api_docs/kibana_utils.mdx b/api_docs/kibana_utils.mdx index 5f72dee209292..695c59da8b2dd 100644 --- a/api_docs/kibana_utils.mdx +++ b/api_docs/kibana_utils.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kibanaUtils title: "kibanaUtils" image: https://source.unsplash.com/400x175/?github description: API docs for the kibanaUtils plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kibanaUtils'] --- import kibanaUtilsObj from './kibana_utils.devdocs.json'; diff --git a/api_docs/kubernetes_security.mdx b/api_docs/kubernetes_security.mdx index 4ea45e2d6386d..3108f06e328c4 100644 --- a/api_docs/kubernetes_security.mdx +++ b/api_docs/kubernetes_security.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/kubernetesSecurity title: "kubernetesSecurity" image: https://source.unsplash.com/400x175/?github description: API docs for the kubernetesSecurity plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'kubernetesSecurity'] --- import kubernetesSecurityObj from './kubernetes_security.devdocs.json'; diff --git a/api_docs/lens.devdocs.json b/api_docs/lens.devdocs.json index b0a4abbb2d5a4..285035a4d158d 100644 --- a/api_docs/lens.devdocs.json +++ b/api_docs/lens.devdocs.json @@ -6586,7 +6586,7 @@ "signature": [ "((props: VisualizationStateFromContextChangeProps) => ", "Suggestion", - " | undefined) | undefined" + " | undefined) | undefined" ], "path": "x-pack/plugins/lens/public/types.ts", "deprecated": false, @@ -7229,6 +7229,20 @@ "path": "src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts", "deprecated": false, "trackAdoption": false + }, + { + "parentPluginId": "lens", + "id": "def-public.XYChartProps.canNavigateToLens", + "type": "CompoundType", + "tags": [], + "label": "canNavigateToLens", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts", + "deprecated": false, + "trackAdoption": false } ], "initialIsOpen": false diff --git a/api_docs/lens.mdx b/api_docs/lens.mdx index d19ce3adcaead..705e405628d63 100644 --- a/api_docs/lens.mdx +++ b/api_docs/lens.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/lens title: "lens" image: https://source.unsplash.com/400x175/?github description: API docs for the lens plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lens'] --- import lensObj from './lens.devdocs.json'; @@ -21,7 +21,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 657 | 0 | 566 | 45 | +| 658 | 0 | 567 | 45 | ## Client diff --git a/api_docs/license_api_guard.mdx b/api_docs/license_api_guard.mdx index 383b3680cbafb..46fdabc8e4ce4 100644 --- a/api_docs/license_api_guard.mdx +++ b/api_docs/license_api_guard.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licenseApiGuard title: "licenseApiGuard" image: https://source.unsplash.com/400x175/?github description: API docs for the licenseApiGuard plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseApiGuard'] --- import licenseApiGuardObj from './license_api_guard.devdocs.json'; diff --git a/api_docs/license_management.mdx b/api_docs/license_management.mdx index a62e0b65cbab9..f03ac62ef69d4 100644 --- a/api_docs/license_management.mdx +++ b/api_docs/license_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licenseManagement title: "licenseManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the licenseManagement plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licenseManagement'] --- import licenseManagementObj from './license_management.devdocs.json'; diff --git a/api_docs/licensing.mdx b/api_docs/licensing.mdx index 9703f660b6515..853896a42382a 100644 --- a/api_docs/licensing.mdx +++ b/api_docs/licensing.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/licensing title: "licensing" image: https://source.unsplash.com/400x175/?github description: API docs for the licensing plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'licensing'] --- import licensingObj from './licensing.devdocs.json'; diff --git a/api_docs/lists.mdx b/api_docs/lists.mdx index 30d4ce56cb586..ba4d095fe0776 100644 --- a/api_docs/lists.mdx +++ b/api_docs/lists.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/lists title: "lists" image: https://source.unsplash.com/400x175/?github description: API docs for the lists plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'lists'] --- import listsObj from './lists.devdocs.json'; diff --git a/api_docs/management.mdx b/api_docs/management.mdx index 4dd4ec5e1eab8..32fbb57687eba 100644 --- a/api_docs/management.mdx +++ b/api_docs/management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/management title: "management" image: https://source.unsplash.com/400x175/?github description: API docs for the management plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'management'] --- import managementObj from './management.devdocs.json'; diff --git a/api_docs/maps.mdx b/api_docs/maps.mdx index 70ac834551a4e..379267cafc4e9 100644 --- a/api_docs/maps.mdx +++ b/api_docs/maps.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/maps title: "maps" image: https://source.unsplash.com/400x175/?github description: API docs for the maps plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'maps'] --- import mapsObj from './maps.devdocs.json'; diff --git a/api_docs/maps_ems.mdx b/api_docs/maps_ems.mdx index 9a6033e47298d..10e21a471b952 100644 --- a/api_docs/maps_ems.mdx +++ b/api_docs/maps_ems.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/mapsEms title: "mapsEms" image: https://source.unsplash.com/400x175/?github description: API docs for the mapsEms plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'mapsEms'] --- import mapsEmsObj from './maps_ems.devdocs.json'; diff --git a/api_docs/ml.mdx b/api_docs/ml.mdx index 70d2472f68011..11aa6c1abad09 100644 --- a/api_docs/ml.mdx +++ b/api_docs/ml.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ml title: "ml" image: https://source.unsplash.com/400x175/?github description: API docs for the ml plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ml'] --- import mlObj from './ml.devdocs.json'; diff --git a/api_docs/monitoring.mdx b/api_docs/monitoring.mdx index ffb8396bac5cf..fc7fd5cb50030 100644 --- a/api_docs/monitoring.mdx +++ b/api_docs/monitoring.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/monitoring title: "monitoring" image: https://source.unsplash.com/400x175/?github description: API docs for the monitoring plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'monitoring'] --- import monitoringObj from './monitoring.devdocs.json'; diff --git a/api_docs/monitoring_collection.mdx b/api_docs/monitoring_collection.mdx index 19006dba40a9f..5713e1d3651b5 100644 --- a/api_docs/monitoring_collection.mdx +++ b/api_docs/monitoring_collection.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/monitoringCollection title: "monitoringCollection" image: https://source.unsplash.com/400x175/?github description: API docs for the monitoringCollection plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'monitoringCollection'] --- import monitoringCollectionObj from './monitoring_collection.devdocs.json'; diff --git a/api_docs/navigation.mdx b/api_docs/navigation.mdx index b2e3637164e81..e06ca6ebfca3d 100644 --- a/api_docs/navigation.mdx +++ b/api_docs/navigation.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/navigation title: "navigation" image: https://source.unsplash.com/400x175/?github description: API docs for the navigation plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'navigation'] --- import navigationObj from './navigation.devdocs.json'; diff --git a/api_docs/newsfeed.mdx b/api_docs/newsfeed.mdx index fd6c0f9d3f4e8..641b1c39a2230 100644 --- a/api_docs/newsfeed.mdx +++ b/api_docs/newsfeed.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/newsfeed title: "newsfeed" image: https://source.unsplash.com/400x175/?github description: API docs for the newsfeed plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'newsfeed'] --- import newsfeedObj from './newsfeed.devdocs.json'; diff --git a/api_docs/observability.mdx b/api_docs/observability.mdx index f541a56f52200..11f000f7d7608 100644 --- a/api_docs/observability.mdx +++ b/api_docs/observability.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/observability title: "observability" image: https://source.unsplash.com/400x175/?github description: API docs for the observability plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'observability'] --- import observabilityObj from './observability.devdocs.json'; diff --git a/api_docs/osquery.mdx b/api_docs/osquery.mdx index d9d8bb530bef2..9fb829dcd0133 100644 --- a/api_docs/osquery.mdx +++ b/api_docs/osquery.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/osquery title: "osquery" image: https://source.unsplash.com/400x175/?github description: API docs for the osquery plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'osquery'] --- import osqueryObj from './osquery.devdocs.json'; diff --git a/api_docs/plugin_directory.mdx b/api_docs/plugin_directory.mdx index dfcb932773724..6e41a12b3f107 100644 --- a/api_docs/plugin_directory.mdx +++ b/api_docs/plugin_directory.mdx @@ -7,7 +7,7 @@ id: kibDevDocsPluginDirectory slug: /kibana-dev-docs/api-meta/plugin-api-directory title: Directory description: Directory of public APIs available through plugins or packages. -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana'] --- @@ -21,7 +21,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | API Count | Any Count | Missing comments | Missing exports | |--------------|----------|-----------------|--------| -| 32303 | 179 | 21767 | 1023 | +| 32298 | 179 | 21765 | 1023 | ## Plugin Directory @@ -78,12 +78,12 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'revealImage' function and renderer to expressions | 14 | 0 | 14 | 3 | | | [Kibana Presentation](https://github.com/orgs/elastic/teams/kibana-presentation) | Adds 'shape' function and renderer to expressions | 148 | 0 | 146 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression Tagcloud plugin adds a `tagcloud` renderer and function to the expression plugin. The renderer will display the `Wordcloud` chart. | 7 | 0 | 7 | 0 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression XY plugin adds a `xy` renderer and function to the expression plugin. The renderer will display the `xy` chart. | 157 | 0 | 147 | 9 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Expression XY plugin adds a `xy` renderer and function to the expression plugin. The renderer will display the `xy` chart. | 158 | 0 | 148 | 9 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Adds expression runtime to Kibana | 2183 | 17 | 1729 | 5 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 222 | 0 | 95 | 2 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | Index pattern fields and ambiguous values formatters | 288 | 5 | 249 | 3 | | | [Machine Learning UI](https://github.com/orgs/elastic/teams/ml-ui) | The file upload plugin contains components and services for uploading a file, analyzing its data, and then importing the data into an Elasticsearch index. Supported file types include CSV, TSV, newline-delimited JSON and GeoJSON. | 62 | 0 | 62 | 2 | -| | [@elastic/kibana-app-services](https://github.com/orgs/elastic/teams/team:AppServicesUx) | File upload, download, sharing, and serving over HTTP implementation in Kibana. | 270 | 0 | 15 | 2 | +| | [@elastic/kibana-app-services](https://github.com/orgs/elastic/teams/team:AppServicesUx) | File upload, download, sharing, and serving over HTTP implementation in Kibana. | 260 | 0 | 14 | 2 | | | [Fleet](https://github.com/orgs/elastic/teams/fleet) | - | 996 | 3 | 893 | 17 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 68 | 0 | 14 | 5 | | globalSearchBar | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 0 | 0 | 0 | 0 | @@ -104,7 +104,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | kibanaUsageCollection | [Kibana Telemetry](https://github.com/orgs/elastic/teams/kibana-telemetry) | - | 0 | 0 | 0 | 0 | | | [App Services](https://github.com/orgs/elastic/teams/kibana-app-services) | - | 615 | 3 | 418 | 9 | | | [Security Team](https://github.com/orgs/elastic/teams/security-team) | - | 3 | 0 | 3 | 1 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Visualization editor allowing to quickly and easily configure compelling visualizations to use on dashboards and canvas workpads. Exposes components to embed visualizations and link into the Lens editor from within other apps in Kibana. | 657 | 0 | 566 | 45 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Visualization editor allowing to quickly and easily configure compelling visualizations to use on dashboards and canvas workpads. Exposes components to embed visualizations and link into the Lens editor from within other apps in Kibana. | 658 | 0 | 567 | 45 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 8 | 0 | 8 | 0 | | | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 3 | 0 | 3 | 0 | | | [Kibana Core](https://github.com/orgs/elastic/teams/kibana-core) | - | 117 | 0 | 42 | 10 | @@ -178,7 +178,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Registers the vega visualization. Is the elastic version of vega and vega-lite libraries. | 2 | 0 | 2 | 0 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the vislib visualizations. These are the classical area/line/bar, pie, gauge/goal and heatmap charts. We want to replace them with elastic-charts. | 26 | 0 | 25 | 1 | | | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the new xy-axis chart using the elastic-charts library, which will eventually replace the vislib xy-axis charts including bar, area, and line. | 53 | 0 | 50 | 5 | -| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the shared architecture among all the legacy visualizations, e.g. the visualization type registry or the visualization embeddable. | 754 | 12 | 724 | 18 | +| | [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Contains the shared architecture among all the legacy visualizations, e.g. the visualization type registry or the visualization embeddable. | 755 | 12 | 725 | 18 | | watcher | [Stack Management](https://github.com/orgs/elastic/teams/kibana-stack-management) | - | 0 | 0 | 0 | 0 | ## Package Directory @@ -187,7 +187,7 @@ tags: ['contributor', 'dev', 'apidocs', 'kibana'] |--------------|----------------|-----------|--------------|----------|---------------|--------| | | [Owner missing] | - | 11 | 5 | 11 | 0 | | | Machine Learning UI | React components for AIOps related efforts. | 6 | 0 | 6 | 0 | -| | Machine Learning UI | Static utilities for AIOps related efforts. | 51 | 0 | 26 | 0 | +| | Machine Learning UI | Static utilities for AIOps related efforts. | 53 | 0 | 22 | 0 | | | [Owner missing] | Alerts components and hooks | 9 | 1 | 9 | 0 | | | Kibana Core | Kibana Analytics tool | 73 | 0 | 73 | 2 | | | Kibana Core | - | 96 | 0 | 0 | 0 | diff --git a/api_docs/presentation_util.mdx b/api_docs/presentation_util.mdx index 2d2bd5f7cab65..2021d52d5b724 100644 --- a/api_docs/presentation_util.mdx +++ b/api_docs/presentation_util.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/presentationUtil title: "presentationUtil" image: https://source.unsplash.com/400x175/?github description: API docs for the presentationUtil plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'presentationUtil'] --- import presentationUtilObj from './presentation_util.devdocs.json'; diff --git a/api_docs/profiling.mdx b/api_docs/profiling.mdx index a2ab179291b93..bd58024c8b8cf 100644 --- a/api_docs/profiling.mdx +++ b/api_docs/profiling.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/profiling title: "profiling" image: https://source.unsplash.com/400x175/?github description: API docs for the profiling plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'profiling'] --- import profilingObj from './profiling.devdocs.json'; diff --git a/api_docs/remote_clusters.mdx b/api_docs/remote_clusters.mdx index 64db429de0000..b8dfe036b8982 100644 --- a/api_docs/remote_clusters.mdx +++ b/api_docs/remote_clusters.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/remoteClusters title: "remoteClusters" image: https://source.unsplash.com/400x175/?github description: API docs for the remoteClusters plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'remoteClusters'] --- import remoteClustersObj from './remote_clusters.devdocs.json'; diff --git a/api_docs/reporting.mdx b/api_docs/reporting.mdx index 3addd6c04342c..9d4b798faf065 100644 --- a/api_docs/reporting.mdx +++ b/api_docs/reporting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/reporting title: "reporting" image: https://source.unsplash.com/400x175/?github description: API docs for the reporting plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'reporting'] --- import reportingObj from './reporting.devdocs.json'; diff --git a/api_docs/rollup.mdx b/api_docs/rollup.mdx index 2d950f366d145..f378fa5d64b7b 100644 --- a/api_docs/rollup.mdx +++ b/api_docs/rollup.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/rollup title: "rollup" image: https://source.unsplash.com/400x175/?github description: API docs for the rollup plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'rollup'] --- import rollupObj from './rollup.devdocs.json'; diff --git a/api_docs/rule_registry.mdx b/api_docs/rule_registry.mdx index b8177a5349db5..bd7cfb20966d9 100644 --- a/api_docs/rule_registry.mdx +++ b/api_docs/rule_registry.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ruleRegistry title: "ruleRegistry" image: https://source.unsplash.com/400x175/?github description: API docs for the ruleRegistry plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ruleRegistry'] --- import ruleRegistryObj from './rule_registry.devdocs.json'; diff --git a/api_docs/runtime_fields.mdx b/api_docs/runtime_fields.mdx index b950aff4a9dc1..92337b2109f81 100644 --- a/api_docs/runtime_fields.mdx +++ b/api_docs/runtime_fields.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/runtimeFields title: "runtimeFields" image: https://source.unsplash.com/400x175/?github description: API docs for the runtimeFields plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'runtimeFields'] --- import runtimeFieldsObj from './runtime_fields.devdocs.json'; diff --git a/api_docs/saved_objects.mdx b/api_docs/saved_objects.mdx index e42617d41f680..8a73ba883619c 100644 --- a/api_docs/saved_objects.mdx +++ b/api_docs/saved_objects.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjects title: "savedObjects" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjects plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjects'] --- import savedObjectsObj from './saved_objects.devdocs.json'; diff --git a/api_docs/saved_objects_finder.mdx b/api_docs/saved_objects_finder.mdx index 272497ed10c72..73ab7a4c9b93c 100644 --- a/api_docs/saved_objects_finder.mdx +++ b/api_docs/saved_objects_finder.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsFinder title: "savedObjectsFinder" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsFinder plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsFinder'] --- import savedObjectsFinderObj from './saved_objects_finder.devdocs.json'; diff --git a/api_docs/saved_objects_management.mdx b/api_docs/saved_objects_management.mdx index 2669f7ef767e9..c1f7ee5147a7a 100644 --- a/api_docs/saved_objects_management.mdx +++ b/api_docs/saved_objects_management.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsManagement title: "savedObjectsManagement" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsManagement plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsManagement'] --- import savedObjectsManagementObj from './saved_objects_management.devdocs.json'; diff --git a/api_docs/saved_objects_tagging.mdx b/api_docs/saved_objects_tagging.mdx index e92816f0b4452..68f25f69466be 100644 --- a/api_docs/saved_objects_tagging.mdx +++ b/api_docs/saved_objects_tagging.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsTagging title: "savedObjectsTagging" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsTagging plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTagging'] --- import savedObjectsTaggingObj from './saved_objects_tagging.devdocs.json'; diff --git a/api_docs/saved_objects_tagging_oss.mdx b/api_docs/saved_objects_tagging_oss.mdx index da0c09083fca1..9306b6f7fb5f0 100644 --- a/api_docs/saved_objects_tagging_oss.mdx +++ b/api_docs/saved_objects_tagging_oss.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedObjectsTaggingOss title: "savedObjectsTaggingOss" image: https://source.unsplash.com/400x175/?github description: API docs for the savedObjectsTaggingOss plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedObjectsTaggingOss'] --- import savedObjectsTaggingOssObj from './saved_objects_tagging_oss.devdocs.json'; diff --git a/api_docs/saved_search.mdx b/api_docs/saved_search.mdx index 6f7d29c36ed28..eba3c945abc73 100644 --- a/api_docs/saved_search.mdx +++ b/api_docs/saved_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/savedSearch title: "savedSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the savedSearch plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'savedSearch'] --- import savedSearchObj from './saved_search.devdocs.json'; diff --git a/api_docs/screenshot_mode.mdx b/api_docs/screenshot_mode.mdx index 85551152dec24..dc468637b642e 100644 --- a/api_docs/screenshot_mode.mdx +++ b/api_docs/screenshot_mode.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/screenshotMode title: "screenshotMode" image: https://source.unsplash.com/400x175/?github description: API docs for the screenshotMode plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotMode'] --- import screenshotModeObj from './screenshot_mode.devdocs.json'; diff --git a/api_docs/screenshotting.mdx b/api_docs/screenshotting.mdx index c8d8da4c7e433..3eb523a6b9ae3 100644 --- a/api_docs/screenshotting.mdx +++ b/api_docs/screenshotting.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/screenshotting title: "screenshotting" image: https://source.unsplash.com/400x175/?github description: API docs for the screenshotting plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'screenshotting'] --- import screenshottingObj from './screenshotting.devdocs.json'; diff --git a/api_docs/security.mdx b/api_docs/security.mdx index d2c74e5c35cb5..7ca02cce627c9 100644 --- a/api_docs/security.mdx +++ b/api_docs/security.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/security title: "security" image: https://source.unsplash.com/400x175/?github description: API docs for the security plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'security'] --- import securityObj from './security.devdocs.json'; diff --git a/api_docs/security_solution.mdx b/api_docs/security_solution.mdx index 054308e191638..24c4b236600d9 100644 --- a/api_docs/security_solution.mdx +++ b/api_docs/security_solution.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/securitySolution title: "securitySolution" image: https://source.unsplash.com/400x175/?github description: API docs for the securitySolution plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'securitySolution'] --- import securitySolutionObj from './security_solution.devdocs.json'; diff --git a/api_docs/session_view.mdx b/api_docs/session_view.mdx index 69b68c2eba9a8..4df85c4373c03 100644 --- a/api_docs/session_view.mdx +++ b/api_docs/session_view.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/sessionView title: "sessionView" image: https://source.unsplash.com/400x175/?github description: API docs for the sessionView plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'sessionView'] --- import sessionViewObj from './session_view.devdocs.json'; diff --git a/api_docs/share.mdx b/api_docs/share.mdx index 3b436f7e11ab5..c45c800a370a1 100644 --- a/api_docs/share.mdx +++ b/api_docs/share.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/share title: "share" image: https://source.unsplash.com/400x175/?github description: API docs for the share plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'share'] --- import shareObj from './share.devdocs.json'; diff --git a/api_docs/snapshot_restore.mdx b/api_docs/snapshot_restore.mdx index 0e71d2a44587c..0bedbd3ce8b4d 100644 --- a/api_docs/snapshot_restore.mdx +++ b/api_docs/snapshot_restore.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/snapshotRestore title: "snapshotRestore" image: https://source.unsplash.com/400x175/?github description: API docs for the snapshotRestore plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'snapshotRestore'] --- import snapshotRestoreObj from './snapshot_restore.devdocs.json'; diff --git a/api_docs/spaces.mdx b/api_docs/spaces.mdx index a1e9bb5e5f4c0..32294e6a8ac26 100644 --- a/api_docs/spaces.mdx +++ b/api_docs/spaces.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/spaces title: "spaces" image: https://source.unsplash.com/400x175/?github description: API docs for the spaces plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'spaces'] --- import spacesObj from './spaces.devdocs.json'; diff --git a/api_docs/stack_alerts.mdx b/api_docs/stack_alerts.mdx index 8da0b5dfe30ab..cfdb1f16ae452 100644 --- a/api_docs/stack_alerts.mdx +++ b/api_docs/stack_alerts.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/stackAlerts title: "stackAlerts" image: https://source.unsplash.com/400x175/?github description: API docs for the stackAlerts plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'stackAlerts'] --- import stackAlertsObj from './stack_alerts.devdocs.json'; diff --git a/api_docs/stack_connectors.mdx b/api_docs/stack_connectors.mdx index 9c0b90d429892..38beb100ce9c7 100644 --- a/api_docs/stack_connectors.mdx +++ b/api_docs/stack_connectors.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/stackConnectors title: "stackConnectors" image: https://source.unsplash.com/400x175/?github description: API docs for the stackConnectors plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'stackConnectors'] --- import stackConnectorsObj from './stack_connectors.devdocs.json'; diff --git a/api_docs/task_manager.mdx b/api_docs/task_manager.mdx index 37c810bccb7fb..6b05776dfe8d8 100644 --- a/api_docs/task_manager.mdx +++ b/api_docs/task_manager.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/taskManager title: "taskManager" image: https://source.unsplash.com/400x175/?github description: API docs for the taskManager plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'taskManager'] --- import taskManagerObj from './task_manager.devdocs.json'; diff --git a/api_docs/telemetry.mdx b/api_docs/telemetry.mdx index 6a9da2e3d8f30..c7cbb53358e47 100644 --- a/api_docs/telemetry.mdx +++ b/api_docs/telemetry.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetry title: "telemetry" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetry plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetry'] --- import telemetryObj from './telemetry.devdocs.json'; diff --git a/api_docs/telemetry_collection_manager.mdx b/api_docs/telemetry_collection_manager.mdx index 90931f6a3d4e5..d4449150f82bc 100644 --- a/api_docs/telemetry_collection_manager.mdx +++ b/api_docs/telemetry_collection_manager.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetryCollectionManager title: "telemetryCollectionManager" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetryCollectionManager plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryCollectionManager'] --- import telemetryCollectionManagerObj from './telemetry_collection_manager.devdocs.json'; diff --git a/api_docs/telemetry_collection_xpack.mdx b/api_docs/telemetry_collection_xpack.mdx index fa8c62da9a483..8ea2af4967e32 100644 --- a/api_docs/telemetry_collection_xpack.mdx +++ b/api_docs/telemetry_collection_xpack.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetryCollectionXpack title: "telemetryCollectionXpack" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetryCollectionXpack plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryCollectionXpack'] --- import telemetryCollectionXpackObj from './telemetry_collection_xpack.devdocs.json'; diff --git a/api_docs/telemetry_management_section.mdx b/api_docs/telemetry_management_section.mdx index 5ee8669701c62..bf761c3ba0bdd 100644 --- a/api_docs/telemetry_management_section.mdx +++ b/api_docs/telemetry_management_section.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/telemetryManagementSection title: "telemetryManagementSection" image: https://source.unsplash.com/400x175/?github description: API docs for the telemetryManagementSection plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'telemetryManagementSection'] --- import telemetryManagementSectionObj from './telemetry_management_section.devdocs.json'; diff --git a/api_docs/threat_intelligence.mdx b/api_docs/threat_intelligence.mdx index 6dbf8f218887f..c9e7be99354d8 100644 --- a/api_docs/threat_intelligence.mdx +++ b/api_docs/threat_intelligence.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/threatIntelligence title: "threatIntelligence" image: https://source.unsplash.com/400x175/?github description: API docs for the threatIntelligence plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'threatIntelligence'] --- import threatIntelligenceObj from './threat_intelligence.devdocs.json'; diff --git a/api_docs/timelines.mdx b/api_docs/timelines.mdx index dc77ccda78c8e..96864aac0ddf5 100644 --- a/api_docs/timelines.mdx +++ b/api_docs/timelines.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/timelines title: "timelines" image: https://source.unsplash.com/400x175/?github description: API docs for the timelines plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'timelines'] --- import timelinesObj from './timelines.devdocs.json'; diff --git a/api_docs/transform.mdx b/api_docs/transform.mdx index ff96d1a3e72ed..25c741ee70bf4 100644 --- a/api_docs/transform.mdx +++ b/api_docs/transform.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/transform title: "transform" image: https://source.unsplash.com/400x175/?github description: API docs for the transform plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'transform'] --- import transformObj from './transform.devdocs.json'; diff --git a/api_docs/triggers_actions_ui.mdx b/api_docs/triggers_actions_ui.mdx index 2148e1939ea24..43b75995f580f 100644 --- a/api_docs/triggers_actions_ui.mdx +++ b/api_docs/triggers_actions_ui.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/triggersActionsUi title: "triggersActionsUi" image: https://source.unsplash.com/400x175/?github description: API docs for the triggersActionsUi plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'triggersActionsUi'] --- import triggersActionsUiObj from './triggers_actions_ui.devdocs.json'; diff --git a/api_docs/ui_actions.mdx b/api_docs/ui_actions.mdx index 4ec201d732105..82cf55203c9c8 100644 --- a/api_docs/ui_actions.mdx +++ b/api_docs/ui_actions.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/uiActions title: "uiActions" image: https://source.unsplash.com/400x175/?github description: API docs for the uiActions plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActions'] --- import uiActionsObj from './ui_actions.devdocs.json'; diff --git a/api_docs/ui_actions_enhanced.mdx b/api_docs/ui_actions_enhanced.mdx index 5563c08371882..1713f83d8f967 100644 --- a/api_docs/ui_actions_enhanced.mdx +++ b/api_docs/ui_actions_enhanced.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/uiActionsEnhanced title: "uiActionsEnhanced" image: https://source.unsplash.com/400x175/?github description: API docs for the uiActionsEnhanced plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'uiActionsEnhanced'] --- import uiActionsEnhancedObj from './ui_actions_enhanced.devdocs.json'; diff --git a/api_docs/unified_field_list.mdx b/api_docs/unified_field_list.mdx index 27c55ce6e644b..efd048ac0e36e 100644 --- a/api_docs/unified_field_list.mdx +++ b/api_docs/unified_field_list.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedFieldList title: "unifiedFieldList" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedFieldList plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedFieldList'] --- import unifiedFieldListObj from './unified_field_list.devdocs.json'; diff --git a/api_docs/unified_search.mdx b/api_docs/unified_search.mdx index 2c426b911f3d7..fadfe11b38fb7 100644 --- a/api_docs/unified_search.mdx +++ b/api_docs/unified_search.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedSearch title: "unifiedSearch" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedSearch plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedSearch'] --- import unifiedSearchObj from './unified_search.devdocs.json'; diff --git a/api_docs/unified_search_autocomplete.mdx b/api_docs/unified_search_autocomplete.mdx index f0067d2093f5c..d799d4fd80c0e 100644 --- a/api_docs/unified_search_autocomplete.mdx +++ b/api_docs/unified_search_autocomplete.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/unifiedSearch-autocomplete title: "unifiedSearch.autocomplete" image: https://source.unsplash.com/400x175/?github description: API docs for the unifiedSearch.autocomplete plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'unifiedSearch.autocomplete'] --- import unifiedSearchAutocompleteObj from './unified_search_autocomplete.devdocs.json'; diff --git a/api_docs/url_forwarding.mdx b/api_docs/url_forwarding.mdx index f6b97fd615cad..0a52c11a03854 100644 --- a/api_docs/url_forwarding.mdx +++ b/api_docs/url_forwarding.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/urlForwarding title: "urlForwarding" image: https://source.unsplash.com/400x175/?github description: API docs for the urlForwarding plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'urlForwarding'] --- import urlForwardingObj from './url_forwarding.devdocs.json'; diff --git a/api_docs/usage_collection.mdx b/api_docs/usage_collection.mdx index 55882ead7e50e..d82a3c180cad2 100644 --- a/api_docs/usage_collection.mdx +++ b/api_docs/usage_collection.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/usageCollection title: "usageCollection" image: https://source.unsplash.com/400x175/?github description: API docs for the usageCollection plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'usageCollection'] --- import usageCollectionObj from './usage_collection.devdocs.json'; diff --git a/api_docs/ux.mdx b/api_docs/ux.mdx index 27b6bb43e27c8..59254e5f865e2 100644 --- a/api_docs/ux.mdx +++ b/api_docs/ux.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/ux title: "ux" image: https://source.unsplash.com/400x175/?github description: API docs for the ux plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'ux'] --- import uxObj from './ux.devdocs.json'; diff --git a/api_docs/vis_default_editor.mdx b/api_docs/vis_default_editor.mdx index 2b38a0015b600..0182afa67b39e 100644 --- a/api_docs/vis_default_editor.mdx +++ b/api_docs/vis_default_editor.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visDefaultEditor title: "visDefaultEditor" image: https://source.unsplash.com/400x175/?github description: API docs for the visDefaultEditor plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visDefaultEditor'] --- import visDefaultEditorObj from './vis_default_editor.devdocs.json'; diff --git a/api_docs/vis_type_gauge.mdx b/api_docs/vis_type_gauge.mdx index 55c0ddf204fc2..021eb298c7981 100644 --- a/api_docs/vis_type_gauge.mdx +++ b/api_docs/vis_type_gauge.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeGauge title: "visTypeGauge" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeGauge plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeGauge'] --- import visTypeGaugeObj from './vis_type_gauge.devdocs.json'; diff --git a/api_docs/vis_type_heatmap.mdx b/api_docs/vis_type_heatmap.mdx index 7184c050b5be0..43257d5ca1b94 100644 --- a/api_docs/vis_type_heatmap.mdx +++ b/api_docs/vis_type_heatmap.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeHeatmap title: "visTypeHeatmap" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeHeatmap plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeHeatmap'] --- import visTypeHeatmapObj from './vis_type_heatmap.devdocs.json'; diff --git a/api_docs/vis_type_pie.mdx b/api_docs/vis_type_pie.mdx index 269a7121e31a4..a78557b09236d 100644 --- a/api_docs/vis_type_pie.mdx +++ b/api_docs/vis_type_pie.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypePie title: "visTypePie" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypePie plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypePie'] --- import visTypePieObj from './vis_type_pie.devdocs.json'; diff --git a/api_docs/vis_type_table.mdx b/api_docs/vis_type_table.mdx index e236f9b93e075..dc90e0c203f09 100644 --- a/api_docs/vis_type_table.mdx +++ b/api_docs/vis_type_table.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTable title: "visTypeTable" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTable plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTable'] --- import visTypeTableObj from './vis_type_table.devdocs.json'; diff --git a/api_docs/vis_type_timelion.mdx b/api_docs/vis_type_timelion.mdx index f4efbf7f4bfd5..9e617bff19342 100644 --- a/api_docs/vis_type_timelion.mdx +++ b/api_docs/vis_type_timelion.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTimelion title: "visTypeTimelion" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTimelion plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimelion'] --- import visTypeTimelionObj from './vis_type_timelion.devdocs.json'; diff --git a/api_docs/vis_type_timeseries.mdx b/api_docs/vis_type_timeseries.mdx index ccbb3a90eb417..a65d89a8f19da 100644 --- a/api_docs/vis_type_timeseries.mdx +++ b/api_docs/vis_type_timeseries.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeTimeseries title: "visTypeTimeseries" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeTimeseries plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeTimeseries'] --- import visTypeTimeseriesObj from './vis_type_timeseries.devdocs.json'; diff --git a/api_docs/vis_type_vega.mdx b/api_docs/vis_type_vega.mdx index 1cd99fa5393d5..ca2ffc9d904d8 100644 --- a/api_docs/vis_type_vega.mdx +++ b/api_docs/vis_type_vega.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeVega title: "visTypeVega" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeVega plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVega'] --- import visTypeVegaObj from './vis_type_vega.devdocs.json'; diff --git a/api_docs/vis_type_vislib.mdx b/api_docs/vis_type_vislib.mdx index 59bf0ca2e9847..2faa5d6c961d6 100644 --- a/api_docs/vis_type_vislib.mdx +++ b/api_docs/vis_type_vislib.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeVislib title: "visTypeVislib" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeVislib plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeVislib'] --- import visTypeVislibObj from './vis_type_vislib.devdocs.json'; diff --git a/api_docs/vis_type_xy.mdx b/api_docs/vis_type_xy.mdx index 13d2599680d2d..cd92c771a8660 100644 --- a/api_docs/vis_type_xy.mdx +++ b/api_docs/vis_type_xy.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visTypeXy title: "visTypeXy" image: https://source.unsplash.com/400x175/?github description: API docs for the visTypeXy plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visTypeXy'] --- import visTypeXyObj from './vis_type_xy.devdocs.json'; diff --git a/api_docs/visualizations.devdocs.json b/api_docs/visualizations.devdocs.json index 01e4e670dbc22..26d7586a75922 100644 --- a/api_docs/visualizations.devdocs.json +++ b/api_docs/visualizations.devdocs.json @@ -11791,6 +11791,20 @@ "path": "src/plugins/visualizations/common/convert_to_lens/types/configurations.ts", "deprecated": false, "trackAdoption": false + }, + { + "parentPluginId": "visualizations", + "id": "def-common.XYConfiguration.showCurrentTimeMarker", + "type": "CompoundType", + "tags": [], + "label": "showCurrentTimeMarker", + "description": [], + "signature": [ + "boolean | undefined" + ], + "path": "src/plugins/visualizations/common/convert_to_lens/types/configurations.ts", + "deprecated": false, + "trackAdoption": false } ], "initialIsOpen": false @@ -12142,7 +12156,7 @@ "label": "lineStyle", "description": [], "signature": [ - "\"solid\" | \"dashed\" | \"dotted\" | \"dot-dashed\" | undefined" + "\"solid\" | \"dashed\" | \"dotted\" | undefined" ], "path": "src/plugins/visualizations/common/convert_to_lens/types/configurations.ts", "deprecated": false, @@ -12670,6 +12684,14 @@ "docId": "kibVisualizationsPluginApi", "section": "def-common.MetricVisConfiguration", "text": "MetricVisConfiguration" + }, + " | ", + { + "pluginId": "visualizations", + "scope": "common", + "docId": "kibVisualizationsPluginApi", + "section": "def-common.GaugeVisConfiguration", + "text": "GaugeVisConfiguration" } ], "path": "src/plugins/visualizations/common/convert_to_lens/types/configurations.ts", diff --git a/api_docs/visualizations.mdx b/api_docs/visualizations.mdx index 8862a4dc51714..5e76e91dfb780 100644 --- a/api_docs/visualizations.mdx +++ b/api_docs/visualizations.mdx @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/visualizations title: "visualizations" image: https://source.unsplash.com/400x175/?github description: API docs for the visualizations plugin -date: 2022-10-14 +date: 2022-10-17 tags: ['contributor', 'dev', 'apidocs', 'kibana', 'visualizations'] --- import visualizationsObj from './visualizations.devdocs.json'; @@ -21,7 +21,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors) | Public API count | Any count | Items lacking comments | Missing exports | |-------------------|-----------|------------------------|-----------------| -| 754 | 12 | 724 | 18 | +| 755 | 12 | 725 | 18 | ## Client diff --git a/docs/user/dashboard/dashboard.asciidoc b/docs/user/dashboard/dashboard.asciidoc index e0e469c0d7d11..c59d2a612f2da 100644 --- a/docs/user/dashboard/dashboard.asciidoc +++ b/docs/user/dashboard/dashboard.asciidoc @@ -337,6 +337,8 @@ Apply a set of design options to the entire dashboard. * *Sync color pallettes across panels* — Applies the same color palette to all panels on the dashboard. +* *Sync cursor across panels* — When you hover your cursor over a *Lens*, *TSVB*, aggregation-based, or *Timelion* XY chart and a heatmap chart, the cursor on all other related dashboard charts automatically appear. + * *Sync tooltips across panels* — When you hover your cursor over a *Lens*, *TSVB*, aggregation-based, or *Timelion* XY chart, the tooltips on all other related dashboard charts automatically appear. [float] diff --git a/packages/kbn-optimizer/limits.yml b/packages/kbn-optimizer/limits.yml index 07d813b5f6dc8..ecfefeb3df818 100644 --- a/packages/kbn-optimizer/limits.yml +++ b/packages/kbn-optimizer/limits.yml @@ -49,7 +49,7 @@ pageLoadAssetSize: expressions: 140958 expressionShape: 34008 expressionTagcloud: 27505 - expressionXY: 38000 + expressionXY: 38500 features: 21723 fieldFormats: 65209 files: 22673 diff --git a/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker b/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker index e0a9171e52169..ff13005aaf922 100755 --- a/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker +++ b/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker @@ -298,7 +298,10 @@ kibana_vars=( xpack.ingestManager.registryUrl xpack.observability.annotations.index xpack.observability.unsafe.slo.enabled - xpack.observability.unsafe.alertDetails.enabled + xpack.observability.unsafe.alertDetails.apm.enabled + xpack.observability.unsafe.alertDetails.metrics.enabled + xpack.observability.unsafe.alertDetails.logs.enabled + xpack.observability.unsafe.alertDetails.uptime.enabled xpack.reporting.capture.browser.autoDownload xpack.reporting.capture.browser.chromium.disableSandbox xpack.reporting.capture.browser.chromium.inspect diff --git a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/__snapshots__/heatmap_function.test.ts.snap b/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/__snapshots__/heatmap_function.test.ts.snap index 8e84b2c8e22a8..96b70e33021f4 100644 --- a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/__snapshots__/heatmap_function.test.ts.snap +++ b/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/__snapshots__/heatmap_function.test.ts.snap @@ -101,6 +101,7 @@ Object { ], "type": "datatable", }, + "syncCursor": true, "syncTooltips": false, }, } diff --git a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.ts b/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.ts index 76ea0f30ac26b..548d4ec0ab49e 100644 --- a/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.ts +++ b/src/plugins/chart_expressions/expression_heatmap/common/expression_functions/heatmap_function.ts @@ -231,6 +231,7 @@ export const heatmapFunction = (): HeatmapExpressionFunctionDefinition => ({ handlers.getExecutionContext?.()?.description, }, syncTooltips: handlers?.isSyncTooltipsEnabled?.() ?? false, + syncCursor: handlers?.isSyncCursorEnabled?.() ?? true, }, }; }, diff --git a/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts b/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts index c3db9e34394a3..5aa1507f30b03 100644 --- a/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts +++ b/src/plugins/chart_expressions/expression_heatmap/common/types/expression_functions.ts @@ -93,6 +93,7 @@ export interface HeatmapExpressionProps { data: Datatable; args: HeatmapArguments; syncTooltips: boolean; + syncCursor: boolean; } export interface HeatmapRender { diff --git a/src/plugins/chart_expressions/expression_heatmap/common/types/expression_renderers.ts b/src/plugins/chart_expressions/expression_heatmap/common/types/expression_renderers.ts index c8763903a3927..b59a8ee2c5166 100644 --- a/src/plugins/chart_expressions/expression_heatmap/common/types/expression_renderers.ts +++ b/src/plugins/chart_expressions/expression_heatmap/common/types/expression_renderers.ts @@ -39,5 +39,6 @@ export type HeatmapRenderProps = HeatmapExpressionProps & { uiState: PersistedState; interactive: boolean; syncTooltips: boolean; + syncCursor: boolean; renderComplete: IInterpreterRenderHandlers['done']; }; diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.test.tsx b/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.test.tsx index fa4b58dd89deb..4720e9025d63d 100644 --- a/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.test.tsx +++ b/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.test.tsx @@ -125,6 +125,7 @@ describe('HeatmapComponent', function () { formatFactory: formatService.deserialize, interactive: true, syncTooltips: false, + syncCursor: true, renderComplete: jest.fn(), }; }); diff --git a/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx b/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx index 64d7e4d03a46d..399d653e0b4b6 100644 --- a/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx +++ b/src/plugins/chart_expressions/expression_heatmap/public/components/heatmap_component.tsx @@ -146,6 +146,7 @@ export const HeatmapComponent: FC = memo( uiState, interactive, syncTooltips, + syncCursor, renderComplete, }) => { const chartRef = useRef(null); @@ -576,7 +577,7 @@ export const HeatmapComponent: FC = memo( noResults={ } - onPointerUpdate={handleCursorUpdate} + onPointerUpdate={syncCursor ? handleCursorUpdate : undefined} externalPointerEvents={{ tooltip: { visible: syncTooltips }, }} diff --git a/src/plugins/chart_expressions/expression_heatmap/public/expression_renderers/heatmap_renderer.tsx b/src/plugins/chart_expressions/expression_heatmap/public/expression_renderers/heatmap_renderer.tsx index 744d5d49f9376..4b813fb93416f 100644 --- a/src/plugins/chart_expressions/expression_heatmap/public/expression_renderers/heatmap_renderer.tsx +++ b/src/plugins/chart_expressions/expression_heatmap/public/expression_renderers/heatmap_renderer.tsx @@ -90,6 +90,7 @@ export const heatmapRenderer: ( interactive={isInteractive()} chartsActiveCursorService={plugins.charts.activeCursor} syncTooltips={config.syncTooltips} + syncCursor={config.syncCursor} /> , diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.test.ts b/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.test.ts index 3976f6977e2be..eae70ea54f0c9 100644 --- a/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.test.ts +++ b/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis.test.ts @@ -28,6 +28,7 @@ describe('layeredXyVis', () => { args: { ...rest, layers: [sampleExtendedLayer] }, syncColors: false, syncTooltips: false, + syncCursor: true, canNavigateToLens: false, }, }); diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis_fn.ts b/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis_fn.ts index d6553ef3dd7b3..305c6c2ee6496 100644 --- a/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis_fn.ts +++ b/src/plugins/chart_expressions/expression_xy/common/expression_functions/layered_xy_vis_fn.ts @@ -64,6 +64,7 @@ export const layeredXyVisFn: LayeredXyVisFn['fn'] = async (data, args, handlers) canNavigateToLens: Boolean(handlers.variables.canNavigateToLens), syncColors: handlers?.isSyncColorsEnabled?.() ?? false, syncTooltips: handlers?.isSyncTooltipsEnabled?.() ?? false, + syncCursor: handlers?.isSyncCursorEnabled?.() ?? true, }, }; }; diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis.test.ts b/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis.test.ts index a09c5f05adb08..90710b945c763 100644 --- a/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis.test.ts +++ b/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis.test.ts @@ -41,6 +41,7 @@ describe('xyVis', () => { canNavigateToLens: false, syncColors: false, syncTooltips: false, + syncCursor: true, }, }); }); @@ -350,6 +351,7 @@ describe('xyVis', () => { canNavigateToLens: false, syncColors: false, syncTooltips: false, + syncCursor: true, }, }); }); diff --git a/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis_fn.ts b/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis_fn.ts index 849f2030a4697..f7577efc45b86 100644 --- a/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis_fn.ts +++ b/src/plugins/chart_expressions/expression_xy/common/expression_functions/xy_vis_fn.ts @@ -139,6 +139,7 @@ export const xyVisFn: XyVisFn['fn'] = async (data, args, handlers) => { canNavigateToLens: Boolean(handlers.variables.canNavigateToLens), syncColors: handlers?.isSyncColorsEnabled?.() ?? false, syncTooltips: handlers?.isSyncTooltipsEnabled?.() ?? false, + syncCursor: handlers?.isSyncCursorEnabled?.() ?? true, }, }; }; diff --git a/src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts b/src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts index 94567f563cdb1..0b65347192106 100644 --- a/src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts +++ b/src/plugins/chart_expressions/expression_xy/common/types/expression_renderers.ts @@ -17,6 +17,7 @@ import { XYProps } from './expression_functions'; export interface XYChartProps { args: XYProps; syncTooltips: boolean; + syncCursor: boolean; syncColors: boolean; canNavigateToLens?: boolean; } diff --git a/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.test.tsx b/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.test.tsx index e7b109b65abcc..b6777d36c1d9e 100644 --- a/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.test.tsx +++ b/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.test.tsx @@ -117,6 +117,7 @@ describe('XYChart component', () => { onSelectRange, syncColors: false, syncTooltips: false, + syncCursor: true, useLegacyTimeAxis: false, eventAnnotationService: eventAnnotationServiceMock, renderComplete: jest.fn(), diff --git a/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.tsx b/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.tsx index 0d88480b00342..240c4e182d43e 100644 --- a/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.tsx +++ b/src/plugins/chart_expressions/expression_xy/public/components/xy_chart.tsx @@ -125,6 +125,7 @@ export type XYChartRenderProps = Omit & { renderMode: RenderMode; syncColors: boolean; syncTooltips: boolean; + syncCursor: boolean; eventAnnotationService: EventAnnotationServiceType; renderComplete: () => void; uiState?: PersistedState; @@ -199,6 +200,7 @@ export function XYChart({ interactive = true, syncColors, syncTooltips, + syncCursor, useLegacyTimeAxis, renderComplete, uiState, @@ -753,7 +755,7 @@ export function XYChart({ /> } onRenderChange={onRenderChange} - onPointerUpdate={handleCursorUpdate} + onPointerUpdate={syncCursor ? handleCursorUpdate : undefined} externalPointerEvents={{ tooltip: { visible: syncTooltips, placement: Placement.Right }, }} diff --git a/src/plugins/chart_expressions/expression_xy/public/expression_renderers/xy_chart_renderer.tsx b/src/plugins/chart_expressions/expression_xy/public/expression_renderers/xy_chart_renderer.tsx index e00f5b04bd590..085cf9b8c7bb8 100644 --- a/src/plugins/chart_expressions/expression_xy/public/expression_renderers/xy_chart_renderer.tsx +++ b/src/plugins/chart_expressions/expression_xy/public/expression_renderers/xy_chart_renderer.tsx @@ -235,6 +235,7 @@ export const getXyChartRenderer = ({ renderMode={handlers.getRenderMode()} syncColors={config.syncColors} syncTooltips={config.syncTooltips} + syncCursor={config.syncCursor} uiState={handlers.uiState as PersistedState} renderComplete={renderComplete} /> diff --git a/src/plugins/chart_expressions/expression_xy/public/helpers/interval.test.ts b/src/plugins/chart_expressions/expression_xy/public/helpers/interval.test.ts index 71d12db8ffb91..db424238bcffb 100644 --- a/src/plugins/chart_expressions/expression_xy/public/helpers/interval.test.ts +++ b/src/plugins/chart_expressions/expression_xy/public/helpers/interval.test.ts @@ -18,7 +18,12 @@ describe('calculateMinInterval', () => { beforeEach(() => { const { layers, ...restArgs } = sampleArgs().args; - xyProps = { args: { ...restArgs, layers }, syncColors: false, syncTooltips: false }; + xyProps = { + args: { ...restArgs, layers }, + syncColors: false, + syncTooltips: false, + syncCursor: true, + }; layer = xyProps.args.layers[0] as DataLayerConfig; layer.xScaleType = 'time'; }); diff --git a/src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx b/src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx index d4ee045a8d9a8..a5f6ab4197bd9 100644 --- a/src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx +++ b/src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx @@ -68,6 +68,7 @@ export interface InheritedChildInput extends IndexSignature { id: string; searchSessionId?: string; syncColors?: boolean; + syncCursor?: boolean; syncTooltips?: boolean; executionContext?: KibanaExecutionContext; } @@ -351,6 +352,7 @@ export class DashboardContainer extends Container): DashboardState => { useMargins: true, syncColors: false, syncTooltips: false, + syncCursor: true, }, panels: { panel_1: { @@ -99,6 +100,7 @@ describe('Dashboard state diff function', () => { useMargins: false, syncColors: false, syncTooltips: false, + syncCursor: true, }, }) ).toEqual(['options']); @@ -111,6 +113,7 @@ describe('Dashboard state diff function', () => { useMargins: true, syncColors: undefined, syncTooltips: undefined, + syncCursor: true, } as unknown as DashboardOptions, }) ).toEqual([]); diff --git a/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts b/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts index 669bde5c3eb65..61a9c75dac410 100644 --- a/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts +++ b/src/plugins/dashboard/public/application/state/dashboard_state_slice.ts @@ -61,6 +61,9 @@ export const dashboardStateSlice = createSlice({ setSyncColors: (state, action: PayloadAction) => { state.options.syncColors = action.payload; }, + setSyncCursor: (state, action: PayloadAction) => { + state.options.syncCursor = action.payload; + }, setSyncTooltips: (state, action: PayloadAction) => { state.options.syncTooltips = action.payload; }, @@ -128,6 +131,7 @@ export const { setTimeRange, setSyncColors, setSyncTooltips, + setSyncCursor, setUseMargins, setViewMode, setFilters, diff --git a/src/plugins/dashboard/public/application/top_nav/dashboard_top_nav.tsx b/src/plugins/dashboard/public/application/top_nav/dashboard_top_nav.tsx index 97630c48dc784..31896f6fc2adf 100644 --- a/src/plugins/dashboard/public/application/top_nav/dashboard_top_nav.tsx +++ b/src/plugins/dashboard/public/application/top_nav/dashboard_top_nav.tsx @@ -39,6 +39,7 @@ import { setStateFromSaveModal, setSyncColors, setSyncTooltips, + setSyncCursor, setUseMargins, setViewMode, useDashboardDispatch, @@ -402,6 +403,10 @@ export function DashboardTopNav({ onSyncColorsChange: (isChecked: boolean) => { dispatchDashboardStateChange(setSyncColors(isChecked)); }, + syncCursor: currentState.options.syncCursor ?? true, + onSyncCursorChange: (isChecked: boolean) => { + dispatchDashboardStateChange(setSyncCursor(isChecked)); + }, syncTooltips: Boolean(currentState.options.syncTooltips), onSyncTooltipsChange: (isChecked: boolean) => { dispatchDashboardStateChange(setSyncTooltips(isChecked)); diff --git a/src/plugins/dashboard/public/application/top_nav/options.tsx b/src/plugins/dashboard/public/application/top_nav/options.tsx index 3b20da4c7c1a3..65a41c7099af0 100644 --- a/src/plugins/dashboard/public/application/top_nav/options.tsx +++ b/src/plugins/dashboard/public/application/top_nav/options.tsx @@ -18,6 +18,8 @@ interface Props { onHidePanelTitlesChange: (hideTitles: boolean) => void; syncColors: boolean; onSyncColorsChange: (syncColors: boolean) => void; + syncCursor: boolean; + onSyncCursorChange: (syncCursor: boolean) => void; syncTooltips: boolean; onSyncTooltipsChange: (syncTooltips: boolean) => void; } @@ -26,6 +28,7 @@ interface State { useMargins: boolean; hidePanelTitles: boolean; syncColors: boolean; + syncCursor: boolean; syncTooltips: boolean; } @@ -34,6 +37,7 @@ export class OptionsMenu extends Component { useMargins: this.props.useMargins, hidePanelTitles: this.props.hidePanelTitles, syncColors: this.props.syncColors, + syncCursor: this.props.syncCursor, syncTooltips: this.props.syncTooltips, }; @@ -59,6 +63,12 @@ export class OptionsMenu extends Component { this.setState({ syncColors: isChecked }); }; + handleSyncCursorChange = (evt: any) => { + const isChecked = evt.target.checked; + this.props.onSyncCursorChange(isChecked); + this.setState({ syncCursor: isChecked }); + }; + handleSyncTooltipsChange = (evt: any) => { const isChecked = evt.target.checked; this.props.onSyncTooltipsChange(isChecked); @@ -89,27 +99,49 @@ export class OptionsMenu extends Component { data-test-subj="dashboardPanelTitlesCheckbox" /> - - - - - - - + + <> + + + + + + + + + + ); diff --git a/src/plugins/dashboard/public/application/top_nav/show_options_popover.tsx b/src/plugins/dashboard/public/application/top_nav/show_options_popover.tsx index 253c14f531fdf..0025fb00fa80f 100644 --- a/src/plugins/dashboard/public/application/top_nav/show_options_popover.tsx +++ b/src/plugins/dashboard/public/application/top_nav/show_options_popover.tsx @@ -31,6 +31,8 @@ export interface ShowOptionsPopoverProps { onUseMarginsChange: (useMargins: boolean) => void; syncColors: boolean; onSyncColorsChange: (syncColors: boolean) => void; + syncCursor: boolean; + onSyncCursorChange: (syncCursor: boolean) => void; syncTooltips: boolean; onSyncTooltipsChange: (syncTooltips: boolean) => void; hidePanelTitles: boolean; @@ -45,6 +47,8 @@ export function showOptionsPopover({ onHidePanelTitlesChange, syncColors, onSyncColorsChange, + syncCursor, + onSyncCursorChange, syncTooltips, onSyncTooltipsChange, }: ShowOptionsPopoverProps) { @@ -78,6 +82,8 @@ export function showOptionsPopover({ onHidePanelTitlesChange={onHidePanelTitlesChange} syncColors={syncColors} onSyncColorsChange={onSyncColorsChange} + syncCursor={syncCursor} + onSyncCursorChange={onSyncCursorChange} syncTooltips={syncTooltips} onSyncTooltipsChange={onSyncTooltipsChange} /> diff --git a/src/plugins/dashboard/public/application/top_nav/show_share_modal.test.tsx b/src/plugins/dashboard/public/application/top_nav/show_share_modal.test.tsx index 7e76ef1789a38..5f6dc325ce97a 100644 --- a/src/plugins/dashboard/public/application/top_nav/show_share_modal.test.tsx +++ b/src/plugins/dashboard/public/application/top_nav/show_share_modal.test.tsx @@ -109,6 +109,7 @@ describe('ShowShareModal', () => { hidePanelTitles: true, useMargins: true, syncColors: true, + syncCursor: true, syncTooltips: true, }, filters: [ diff --git a/src/plugins/dashboard/public/dashboard_constants.ts b/src/plugins/dashboard/public/dashboard_constants.ts index 9bbe97681032d..c4856f8e2e34a 100644 --- a/src/plugins/dashboard/public/dashboard_constants.ts +++ b/src/plugins/dashboard/public/dashboard_constants.ts @@ -46,6 +46,7 @@ export const defaultDashboardState: DashboardState = { options: { useMargins: true, syncColors: false, + syncCursor: true, syncTooltips: false, hidePanelTitles: false, }, diff --git a/src/plugins/dashboard/public/types.ts b/src/plugins/dashboard/public/types.ts index 6b24317338ab3..a9de47f63235b 100644 --- a/src/plugins/dashboard/public/types.ts +++ b/src/plugins/dashboard/public/types.ts @@ -71,6 +71,7 @@ export interface DashboardContainerInput extends ContainerInput { useMargins: boolean; syncColors?: boolean; syncTooltips?: boolean; + syncCursor?: boolean; viewMode: ViewMode; filters: Filter[]; title: string; @@ -118,6 +119,7 @@ export type DashboardOptions = { hidePanelTitles: boolean; useMargins: boolean; syncColors: boolean; + syncCursor: boolean; syncTooltips: boolean; }; diff --git a/src/plugins/discover/public/__mocks__/discover_state.mock.ts b/src/plugins/discover/public/__mocks__/discover_state.mock.ts new file mode 100644 index 0000000000000..30c40ef77bfb9 --- /dev/null +++ b/src/plugins/discover/public/__mocks__/discover_state.mock.ts @@ -0,0 +1,21 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ +import { createBrowserHistory } from 'history'; +import { getState } from '../application/main/services/discover_state'; +import { savedSearchMockWithTimeField, savedSearchMock } from './saved_search'; +import { discoverServiceMock } from './services'; + +export function getDiscoverStateMock({ isTimeBased = true }) { + const history = createBrowserHistory(); + history.push('/'); + return getState({ + savedSearch: isTimeBased ? savedSearchMockWithTimeField : savedSearchMock, + services: discoverServiceMock, + history, + }); +} diff --git a/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx b/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx index 39db1481500fa..32aa0b0999bbe 100644 --- a/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx +++ b/src/plugins/discover/public/application/main/components/layout/discover_layout.test.tsx @@ -37,9 +37,20 @@ import { LocalStorageMock } from '../../../../__mocks__/local_storage_mock'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; import { DiscoverServices } from '../../../../build_services'; import { buildDataTableRecord } from '../../../../utils/build_data_record'; +import { DiscoverAppStateProvider } from '../../services/discover_app_state_container'; +import { getDiscoverStateMock } from '../../../../__mocks__/discover_state.mock'; setHeaderActionMenuMounter(jest.fn()); +function getAppStateContainer() { + const appStateContainer = getDiscoverStateMock({ isTimeBased: true }).appStateContainer; + appStateContainer.set({ + query: { query: '', language: 'lucene' }, + filters: [], + }); + return appStateContainer; +} + function mountComponent( dataView: DataView, prevSidebarClosed?: boolean, @@ -167,7 +178,9 @@ function mountComponent( return mountWithIntl( - + + + , mountOptions ); diff --git a/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx b/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx index 18d004c72c14f..a7cde67d4869b 100644 --- a/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx +++ b/src/plugins/discover/public/application/main/components/layout/discover_layout.tsx @@ -251,7 +251,6 @@ export function DiscoverLayout({ onRemoveField={onRemoveColumn} onChangeDataView={onChangeDataView} selectedDataView={dataView} - state={state} isClosed={isSidebarClosed} trackUiMetric={trackUiMetric} useNewFieldsApi={useNewFieldsApi} diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_field.test.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_field.test.tsx index caa8539ab6b32..dd27369a74a04 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_field.test.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_field.test.tsx @@ -19,6 +19,8 @@ import { DiscoverField, DiscoverFieldProps } from './discover_field'; import { DataViewField } from '@kbn/data-views-plugin/public'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; import { stubDataView } from '@kbn/data-views-plugin/common/data_view.stub'; +import { DiscoverAppStateProvider } from '../../services/discover_app_state_container'; +import { getDiscoverStateMock } from '../../../../__mocks__/discover_state.mock'; jest.mock('@kbn/unified-field-list-plugin/public/services/field_stats', () => ({ loadFieldStats: jest.fn().mockResolvedValue({ @@ -88,10 +90,6 @@ async function getComponent({ onRemoveField: jest.fn(), showFieldStats, selected, - state: { - query: { query: '', language: 'lucene' }, - filters: [], - }, contextualFields: [], }; const services = { @@ -135,9 +133,16 @@ async function getComponent({ fieldFormats: fieldFormatsServiceMock.createStartContract(), charts: chartPluginMock.createSetupContract(), }; + const appStateContainer = getDiscoverStateMock({ isTimeBased: true }).appStateContainer; + appStateContainer.set({ + query: { query: '', language: 'lucene' }, + filters: [], + }); const comp = await mountWithIntl( - + + + ); // wait for lazy modules diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_field.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_field.tsx index 591475d949c63..03e742da3514f 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_field.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_field.tsx @@ -26,10 +26,10 @@ import { getTypeForFieldIcon } from '../../../../utils/get_type_for_field_icon'; import { DiscoverFieldDetails } from './discover_field_details'; import { FieldDetails } from './types'; import { getFieldTypeName } from '../../../../utils/get_field_type_name'; -import type { AppState } from '../../services/discover_state'; import { useDiscoverServices } from '../../../../hooks/use_discover_services'; import { SHOW_LEGACY_FIELD_TOP_VALUES, PLUGIN_ID } from '../../../../../common'; import { getUiActions } from '../../../../kibana_services'; +import { useAppStateSelector } from '../../services/discover_app_state_container'; function wrapOnDot(str?: string) { // u200B is a non-width white-space character, which allows @@ -261,12 +261,6 @@ export interface DiscoverFieldProps { * Optionally show or hide field stats in the popover */ showFieldStats?: boolean; - - /** - * Discover App State - */ - state: AppState; - /** * Columns */ @@ -287,13 +281,14 @@ function DiscoverFieldComponent({ onEditField, onDeleteField, showFieldStats, - state, contextualFields, }: DiscoverFieldProps) { const services = useDiscoverServices(); const { data } = services; const [infoIsOpen, setOpen] = useState(false); const isDocumentRecord = !!onAddFilter; + const query = useAppStateSelector((state) => state.query); + const filters = useAppStateSelector((state) => state.filters); const addFilterAndClosePopover: typeof onAddFilter | undefined = useMemo( () => @@ -429,8 +424,8 @@ function DiscoverFieldComponent({ {Boolean(dateRange) && ( >>, [string, { fieldName: string }]>( () => Promise.resolve([]) @@ -67,7 +69,6 @@ function getCompProps(): DiscoverSidebarProps { onAddField: jest.fn(), onRemoveField: jest.fn(), selectedDataView: dataView, - state: {}, trackUiMetric: jest.fn(), fieldFilter: getDefaultFieldFilter(), setFieldFilter: jest.fn(), @@ -81,6 +82,15 @@ function getCompProps(): DiscoverSidebarProps { }; } +function getAppStateContainer() { + const appStateContainer = getDiscoverStateMock({ isTimeBased: true }).appStateContainer; + appStateContainer.set({ + query: { query: '', language: 'lucene' }, + filters: [], + }); + return appStateContainer; +} + describe('discover sidebar', function () { let props: DiscoverSidebarProps; let comp: ReactWrapper; @@ -97,7 +107,9 @@ describe('discover sidebar', function () { comp = await mountWithIntl( - + + + ); // wait for lazy modules @@ -142,7 +154,9 @@ describe('discover sidebar', function () { it('should not render Add/Edit field buttons in viewer mode', () => { const compInViewerMode = mountWithIntl( - + + + ); const addFieldButton = findTestSubject(compInViewerMode, 'dataView-add-field_btn'); @@ -155,7 +169,9 @@ describe('discover sidebar', function () { it('should render buttons in data view picker correctly', async () => { const compWithPicker = mountWithIntl( - + + + ); // open data view picker @@ -179,12 +195,14 @@ describe('discover sidebar', function () { it('should not render buttons in data view picker when in viewer mode', async () => { const compWithPickerInViewerMode = mountWithIntl( - + + + ); // open data view picker @@ -203,7 +221,9 @@ describe('discover sidebar', function () { it('should render the Visualize in Lens button in text based languages mode', () => { const compInViewerMode = mountWithIntl( - + + + ); const visualizeField = findTestSubject(compInViewerMode, 'textBased-visualize'); diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.tsx index 0172c32af4e84..938885a5278da 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar.tsx @@ -29,6 +29,7 @@ import { FormattedMessage } from '@kbn/i18n-react'; import { DataViewPicker } from '@kbn/unified-search-plugin/public'; import { DataViewField, getFieldSubtypeMulti } from '@kbn/data-views-plugin/public'; import { triggerVisualizeActionsTextBasedLanguages } from '@kbn/unified-field-list-plugin/public'; +import { useAppStateSelector } from '../../services/discover_app_state_container'; import { useDiscoverServices } from '../../../../hooks/use_discover_services'; import { DiscoverField } from './discover_field'; import { DiscoverFieldSearch } from './discover_field_search'; @@ -119,7 +120,6 @@ export function DiscoverSidebarComponent({ viewMode, createNewDataView, showDataViewPicker, - state, }: DiscoverSidebarProps) { const { uiSettings, dataViewFieldEditor } = useDiscoverServices(); const [fields, setFields] = useState(null); @@ -128,6 +128,7 @@ export function DiscoverSidebarComponent({ const [fieldsPerPage, setFieldsPerPage] = useState(FIELDS_PER_PAGE); const availableFieldsContainer = useRef(null); const isPlainRecord = !onAddFilter; + const query = useAppStateSelector((state) => state.query); useEffect(() => { if (documents) { @@ -314,8 +315,7 @@ export function DiscoverSidebarComponent({ const filterChanged = useMemo(() => isEqual(fieldFilter, getDefaultFieldFilter()), [fieldFilter]); const visualizeAggregateQuery = useCallback(() => { - const aggregateQuery = - state.query && isOfAggregateQueryType(state.query) ? state.query : undefined; + const aggregateQuery = query && isOfAggregateQueryType(query) ? query : undefined; triggerVisualizeActionsTextBasedLanguages( getUiActions(), columns, @@ -323,7 +323,7 @@ export function DiscoverSidebarComponent({ selectedDataView, aggregateQuery ); - }, [columns, selectedDataView, state.query]); + }, [columns, selectedDataView, query]); if (!selectedDataView) { return null; @@ -429,7 +429,6 @@ export function DiscoverSidebarComponent({ onEditField={editField} onDeleteField={deleteField} showFieldStats={showFieldStats} - state={state} contextualFields={columns} /> @@ -491,7 +490,6 @@ export function DiscoverSidebarComponent({ onEditField={editField} onDeleteField={deleteField} showFieldStats={showFieldStats} - state={state} contextualFields={columns} /> @@ -522,7 +520,6 @@ export function DiscoverSidebarComponent({ onEditField={editField} onDeleteField={deleteField} showFieldStats={showFieldStats} - state={state} contextualFields={columns} /> diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx index 944355c9a9db3..40cab06039f6e 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.test.tsx @@ -28,6 +28,8 @@ import { chartPluginMock } from '@kbn/charts-plugin/public/mocks'; import { dataViewPluginMocks } from '@kbn/data-views-plugin/public/mocks'; import { fieldFormatsServiceMock } from '@kbn/field-formats-plugin/public/mocks'; import { dataPluginMock } from '@kbn/data-plugin/public/mocks'; +import { getDiscoverStateMock } from '../../../../__mocks__/discover_state.mock'; +import { DiscoverAppStateProvider } from '../../services/discover_app_state_container'; jest.mock('@kbn/unified-field-list-plugin/public/services/field_stats', () => ({ loadFieldStats: jest.fn().mockResolvedValue({ @@ -166,10 +168,6 @@ function getCompProps(): DiscoverSidebarResponsiveProps { onAddField: jest.fn(), onRemoveField: jest.fn(), selectedDataView: dataView, - state: { - query: { query: '', language: 'lucene' }, - filters: [], - }, trackUiMetric: jest.fn(), onFieldEdited: jest.fn(), viewMode: VIEW_MODE.DOCUMENT_LEVEL, @@ -185,9 +183,17 @@ describe('discover responsive sidebar', function () { beforeAll(async () => { props = getCompProps(); await act(async () => { + const appStateContainer = getDiscoverStateMock({ isTimeBased: true }).appStateContainer; + appStateContainer.set({ + query: { query: '', language: 'lucene' }, + filters: [], + }); + comp = await mountWithIntl( - + + + ); // wait for lazy modules @@ -262,14 +268,16 @@ describe('discover responsive sidebar', function () { recordRawType: RecordRawType.PLAIN, result: getDataTableRecords(stubLogstashDataView), }) as DataDocuments$, - state: { - ...initialProps.state, - query: { sql: 'SELECT * FROM `index`' }, - }, }; + const appStateContainer = getDiscoverStateMock({ isTimeBased: true }).appStateContainer; + appStateContainer.set({ + query: { sql: 'SELECT * FROM `index`' }, + }); const compInViewerMode = mountWithIntl( - + + + ); expect(findTestSubject(compInViewerMode, 'indexPattern-add-field_btn').length).toBe(0); @@ -286,9 +294,16 @@ describe('discover responsive sidebar', function () { }, }, }; + const appStateContainer = getDiscoverStateMock({ isTimeBased: true }).appStateContainer; + appStateContainer.set({ + query: { query: '', language: 'lucene' }, + filters: [], + }); const compInViewerMode = mountWithIntl( - + + + ); expect( diff --git a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx index 1387f3a0c8791..9e8ad96f9abb6 100644 --- a/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx +++ b/src/plugins/discover/public/application/main/components/sidebar/discover_sidebar_responsive.tsx @@ -26,13 +26,13 @@ import type { DataView, DataViewField, DataViewListItem } from '@kbn/data-views- import { useDiscoverServices } from '../../../../hooks/use_discover_services'; import { getDefaultFieldFilter } from './lib/field_filter'; import { DiscoverSidebar } from './discover_sidebar'; -import { AppState } from '../../services/discover_state'; import { AvailableFields$, DataDocuments$, RecordRawType } from '../../hooks/use_saved_search'; import { calcFieldCounts } from '../../utils/calc_field_counts'; import { VIEW_MODE } from '../../../../components/view_mode_toggle'; import { FetchStatus } from '../../../types'; import { DISCOVER_TOUR_STEP_ANCHOR_IDS } from '../../../../components/discover_tour'; import { getRawRecordType } from '../../utils/get_raw_record_type'; +import { useAppStateSelector } from '../../services/discover_app_state_container'; export interface DiscoverSidebarResponsiveProps { /** @@ -76,10 +76,6 @@ export interface DiscoverSidebarResponsiveProps { * Currently selected data view */ selectedDataView?: DataView; - /** - * Discover App state - */ - state: AppState; /** * Metric tracking function * @param metricType @@ -115,9 +111,8 @@ export interface DiscoverSidebarResponsiveProps { */ export function DiscoverSidebarResponsive(props: DiscoverSidebarResponsiveProps) { const services = useDiscoverServices(); - const isPlainRecord = useMemo( - () => getRawRecordType(props.state.query) === RecordRawType.PLAIN, - [props.state.query] + const isPlainRecord = useAppStateSelector( + (state) => getRawRecordType(state.query) === RecordRawType.PLAIN ); const { selectedDataView, onFieldEdited, onDataViewCreated } = props; const [fieldFilter, setFieldFilter] = useState(getDefaultFieldFilter()); diff --git a/src/plugins/discover/public/application/main/discover_main_app.tsx b/src/plugins/discover/public/application/main/discover_main_app.tsx index d7c8435cdfbd0..abd714fea8f07 100644 --- a/src/plugins/discover/public/application/main/discover_main_app.tsx +++ b/src/plugins/discover/public/application/main/discover_main_app.tsx @@ -17,6 +17,7 @@ import { useUrl } from './hooks/use_url'; import { useDiscoverServices } from '../../hooks/use_discover_services'; import { DataTableRecord } from '../../types'; import { useSavedSearchAliasMatchRedirect } from '../../hooks/saved_search_alias_match_redirect'; +import { DiscoverAppStateProvider } from './services/discover_app_state_container'; const DiscoverLayoutMemoized = React.memo(DiscoverLayout); @@ -100,25 +101,27 @@ export function DiscoverMainApp(props: DiscoverMainProps) { useSavedSearchAliasMatchRedirect({ savedSearch, spaces, history }); return ( - + + + ); } diff --git a/src/plugins/discover/public/application/main/services/discover_app_state_container.ts b/src/plugins/discover/public/application/main/services/discover_app_state_container.ts new file mode 100644 index 0000000000000..4c484698ece0f --- /dev/null +++ b/src/plugins/discover/public/application/main/services/discover_app_state_container.ts @@ -0,0 +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 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 { + createStateContainerReactHelpers, + ReduxLikeStateContainer, +} from '@kbn/kibana-utils-plugin/common'; +import { AppState } from './discover_state'; + +export const { Provider: DiscoverAppStateProvider, useSelector: useAppStateSelector } = + createStateContainerReactHelpers>(); diff --git a/src/plugins/discover/public/components/doc_table/actions/columns.test.ts b/src/plugins/discover/public/components/doc_table/actions/columns.test.ts index 6e6776b8ac2e4..b8879389b4af0 100644 --- a/src/plugins/discover/public/components/doc_table/actions/columns.test.ts +++ b/src/plugins/discover/public/components/doc_table/actions/columns.test.ts @@ -13,7 +13,7 @@ import { dataViewsMock } from '../../../__mocks__/data_views'; import { Capabilities } from '@kbn/core/types'; import { AppState } from '../../../application/main/services/discover_state'; -function getStateColumnAction(state: {}, setAppState: (state: Partial) => void) { +function getStateColumnAction(state: AppState, setAppState: (state: Partial) => void) { return getStateColumnActions({ capabilities: { discover: { @@ -25,7 +25,8 @@ function getStateColumnAction(state: {}, setAppState: (state: Partial) dataViews: dataViewsMock, useNewFieldsApi: true, setAppState, - state, + columns: state.columns, + sort: state.sort, }); } diff --git a/src/plugins/discover/public/components/doc_table/actions/columns.ts b/src/plugins/discover/public/components/doc_table/actions/columns.ts index 68ff29f717d8a..36b4970b70999 100644 --- a/src/plugins/discover/public/components/doc_table/actions/columns.ts +++ b/src/plugins/discover/public/components/doc_table/actions/columns.ts @@ -9,14 +9,8 @@ import { Capabilities, IUiSettingsClient } from '@kbn/core/public'; import { DataViewsContract } from '@kbn/data-plugin/public'; import { DataView } from '@kbn/data-views-plugin/public'; import { SORT_DEFAULT_ORDER_SETTING } from '../../../../common'; -import { - AppState as DiscoverState, - GetStateReturn as DiscoverGetStateReturn, -} from '../../../application/main/services/discover_state'; -import { - AppState as ContextState, - GetStateReturn as ContextGetStateReturn, -} from '../../../application/context/services/context_state'; +import { GetStateReturn as DiscoverGetStateReturn } from '../../../application/main/services/discover_state'; +import { GetStateReturn as ContextGetStateReturn } from '../../../application/context/services/context_state'; import { popularizeField } from '../../../utils/popularize_field'; /** @@ -68,7 +62,8 @@ export function getStateColumnActions({ dataViews, useNewFieldsApi, setAppState, - state, + columns, + sort, }: { capabilities: Capabilities; config: IUiSettingsClient; @@ -76,39 +71,36 @@ export function getStateColumnActions({ dataViews: DataViewsContract; useNewFieldsApi: boolean; setAppState: DiscoverGetStateReturn['setAppState'] | ContextGetStateReturn['setAppState']; - state: DiscoverState | ContextState; + columns?: string[]; + sort: string[][] | undefined; }) { function onAddColumn(columnName: string) { popularizeField(dataView, columnName, dataViews, capabilities); - const columns = addColumn(state.columns || [], columnName, useNewFieldsApi); + const nextColumns = addColumn(columns || [], columnName, useNewFieldsApi); const defaultOrder = config.get(SORT_DEFAULT_ORDER_SETTING); - const sort = - columnName === '_score' && !state.sort?.length ? [['_score', defaultOrder]] : state.sort; - setAppState({ columns, sort }); + const nextSort = columnName === '_score' && !sort?.length ? [['_score', defaultOrder]] : sort; + setAppState({ columns: nextColumns, sort: nextSort }); } function onRemoveColumn(columnName: string) { popularizeField(dataView, columnName, dataViews, capabilities); - const columns = removeColumn(state.columns || [], columnName, useNewFieldsApi); + const nextColumns = removeColumn(columns || [], columnName, useNewFieldsApi); // The state's sort property is an array of [sortByColumn,sortDirection] - const sort = - state.sort && state.sort.length - ? state.sort.filter((subArr) => subArr[0] !== columnName) - : []; - setAppState({ columns, sort }); + const nextSort = sort && sort.length ? sort.filter((subArr) => subArr[0] !== columnName) : []; + setAppState({ columns: nextColumns, sort: nextSort }); } function onMoveColumn(columnName: string, newIndex: number) { - const columns = moveColumn(state.columns || [], columnName, newIndex); - setAppState({ columns }); + const nextColumns = moveColumn(columns || [], columnName, newIndex); + setAppState({ columns: nextColumns }); } - function onSetColumns(columns: string[], hideTimeColumn: boolean) { - // The next line should gone when classic table will be removed + function onSetColumns(nextColumns: string[], hideTimeColumn: boolean) { + // The next line should be gone when classic table will be removed const actualColumns = - !hideTimeColumn && dataView.timeFieldName && dataView.timeFieldName === columns[0] - ? columns.slice(1) - : columns; + !hideTimeColumn && dataView.timeFieldName && dataView.timeFieldName === nextColumns[0] + ? (nextColumns || []).slice(1) + : nextColumns; setAppState({ columns: actualColumns }); } diff --git a/src/plugins/discover/public/hooks/use_data_grid_columns.ts b/src/plugins/discover/public/hooks/use_data_grid_columns.ts index 91fd8487bb030..530ac62ca8d06 100644 --- a/src/plugins/discover/public/hooks/use_data_grid_columns.ts +++ b/src/plugins/discover/public/hooks/use_data_grid_columns.ts @@ -6,10 +6,11 @@ * Side Public License, v 1. */ -import { useMemo } from 'react'; +import { useEffect, useMemo, useState } from 'react'; import type { DataView, DataViewsContract } from '@kbn/data-views-plugin/public'; import { Capabilities, IUiSettingsClient } from '@kbn/core/public'; +import { isEqual } from 'lodash'; import { AppState as DiscoverState, GetStateReturn as DiscoverGetStateReturn, @@ -39,6 +40,14 @@ export const useColumns = ({ state, useNewFieldsApi, }: UseColumnsProps) => { + const [usedColumns, setUsedColumns] = useState(getColumns(state.columns, useNewFieldsApi)); + useEffect(() => { + const nextColumns = getColumns(state.columns, useNewFieldsApi); + if (isEqual(usedColumns, nextColumns)) { + return; + } + setUsedColumns(nextColumns); + }, [state.columns, useNewFieldsApi, usedColumns]); const { onAddColumn, onRemoveColumn, onSetColumns, onMoveColumn } = useMemo( () => getStateColumnActions({ @@ -47,24 +56,34 @@ export const useColumns = ({ dataView, dataViews, setAppState, - state, useNewFieldsApi, + columns: usedColumns, + sort: state.sort, }), - [capabilities, config, dataView, dataViews, setAppState, state, useNewFieldsApi] + [ + capabilities, + config, + dataView, + dataViews, + setAppState, + state.sort, + useNewFieldsApi, + usedColumns, + ] ); - const columns = useMemo(() => { - if (!state.columns) { - return []; - } - return useNewFieldsApi ? state.columns.filter((col) => col !== '_source') : state.columns; - }, [state, useNewFieldsApi]); - return { - columns, + columns: usedColumns, onAddColumn, onRemoveColumn, onMoveColumn, onSetColumns, }; }; + +function getColumns(columns: string[] | undefined, useNewFieldsApi: boolean) { + if (!columns) { + return []; + } + return useNewFieldsApi ? columns.filter((col) => col !== '_source') : columns; +} diff --git a/src/plugins/discover/public/hooks/use_navigation_props.tsx b/src/plugins/discover/public/hooks/use_navigation_props.tsx index 5cff4fe7b9ec5..cf839bda7c1a4 100644 --- a/src/plugins/discover/public/hooks/use_navigation_props.tsx +++ b/src/plugins/discover/public/hooks/use_navigation_props.tsx @@ -31,7 +31,7 @@ export const getContextHash = (columns: string[], filterManager: FilterManager) const globalFilters = filterManager.getGlobalFilters(); const appFilters = filterManager.getAppFilters(); - const hash = stringify( + return stringify( url.encodeQuery({ _g: rison.encode({ filters: globalFilters || [], @@ -43,8 +43,6 @@ export const getContextHash = (columns: string[], filterManager: FilterManager) }), { encode: false, sort: false } ); - - return hash; }; /** @@ -85,14 +83,13 @@ export const useNavigationProps = ({ () => getCurrentBreadcrumb(history?.location?.search), [history?.location?.search] ); - const contextSearchHash = useMemo( - () => getContextHash(columns, filterManager), - [columns, filterManager] - ); const singleDocHref = addBasePath( `/app/discover#/doc/${dataViewId}/${rowIndex}?id=${encodeURIComponent(rowId)}` ); + + const contextSearchHash = getContextHash(columns, filterManager); + const surDocsHref = addBasePath( `/app/discover#/context/${encodeURIComponent(dataViewId)}/${encodeURIComponent( rowId @@ -101,7 +98,7 @@ export const useNavigationProps = ({ /** * When history can be accessed via hooks, - * it is discover main or context route. + * it's used by discover main or context route. */ if (!!history) { const isContextRoute = matchPath(history.location.pathname, { diff --git a/src/plugins/embeddable/common/types.ts b/src/plugins/embeddable/common/types.ts index c37b3ee2b720c..fd4a94419613a 100644 --- a/src/plugins/embeddable/common/types.ts +++ b/src/plugins/embeddable/common/types.ts @@ -58,6 +58,11 @@ export type EmbeddableInput = { */ syncColors?: boolean; + /** + * Flag whether cursor should be synced with other panels on hover + */ + syncCursor?: boolean; + /** * Flag whether tooltips should be synced with other panels on hover */ diff --git a/src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.test.ts b/src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.test.ts index 1dfd056bc75c0..41a68fc0f2444 100644 --- a/src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.test.ts +++ b/src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.test.ts @@ -21,6 +21,7 @@ const getGenericEmbeddableState = (state?: Partial): Embeddable enhancements: undefined, syncColors: false, syncTooltips: false, + syncCursor: true, viewMode: ViewMode.VIEW, title: 'So Very Generic', id: 'soVeryGeneric', @@ -46,6 +47,7 @@ test('Omitting generic embeddable input omits all generic input keys', () => { 'enhancements', 'syncColors', 'syncTooltips', + 'syncCursor', 'viewMode', 'title', 'id', diff --git a/src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts b/src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts index a66294d08bdc4..8602e174205d7 100644 --- a/src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts +++ b/src/plugins/embeddable/public/lib/embeddables/diff_embeddable_input.ts @@ -20,6 +20,7 @@ const allGenericInputKeys: Readonly> = [ 'disableTriggers', 'enhancements', 'syncColors', + 'syncCursor', 'syncTooltips', 'viewMode', 'title', @@ -32,6 +33,7 @@ const genericInputKeysToCompare = [ 'disableTriggers', 'enhancements', 'syncColors', + 'syncCursor', 'syncTooltips', 'title', 'id', diff --git a/src/plugins/embeddable/public/store/input_slice.ts b/src/plugins/embeddable/public/store/input_slice.ts index da4bc6618ae11..48c9ccb98b6ba 100644 --- a/src/plugins/embeddable/public/store/input_slice.ts +++ b/src/plugins/embeddable/public/store/input_slice.ts @@ -40,6 +40,9 @@ export const input = createSlice({ setSyncColors(state, action: PayloadAction) { state.syncColors = action.payload; }, + setSyncCursor(state, action: PayloadAction) { + state.syncCursor = action.payload; + }, setSyncTooltips(state, action: PayloadAction) { state.syncTooltips = action.payload; }, diff --git a/src/plugins/expressions/common/execution/execution.ts b/src/plugins/expressions/common/execution/execution.ts index 68cebaa65569b..30016f36d77d6 100644 --- a/src/plugins/expressions/common/execution/execution.ts +++ b/src/plugins/expressions/common/execution/execution.ts @@ -225,6 +225,7 @@ export class Execution< inspectorAdapters.tables[name] = datatable; }, isSyncColorsEnabled: () => execution.params.syncColors!, + isSyncCursorEnabled: () => execution.params.syncCursor!, isSyncTooltipsEnabled: () => execution.params.syncTooltips!, ...execution.executor.context, getExecutionContext: () => execution.params.executionContext, diff --git a/src/plugins/expressions/common/execution/types.ts b/src/plugins/expressions/common/execution/types.ts index debe34e223e08..dddc503285942 100644 --- a/src/plugins/expressions/common/execution/types.ts +++ b/src/plugins/expressions/common/execution/types.ts @@ -65,6 +65,11 @@ export interface ExecutionContext< */ isSyncColorsEnabled?: () => boolean; + /** + * Returns the state (true|false) of the sync cursor across panels switch. + */ + isSyncCursorEnabled?: () => boolean; + /** * Returns the state (true|false) of the sync tooltips across panels switch. */ diff --git a/src/plugins/expressions/common/expression_renderers/types.ts b/src/plugins/expressions/common/expression_renderers/types.ts index 04c3c48cc383c..8f5fc21e205c7 100644 --- a/src/plugins/expressions/common/expression_renderers/types.ts +++ b/src/plugins/expressions/common/expression_renderers/types.ts @@ -93,6 +93,8 @@ export interface IInterpreterRenderHandlers { isSyncColorsEnabled(): boolean; + isSyncCursorEnabled(): boolean; + isSyncTooltipsEnabled(): boolean; /** * This uiState interface is actually `PersistedState` from the visualizations plugin, diff --git a/src/plugins/expressions/common/service/expressions_services.ts b/src/plugins/expressions/common/service/expressions_services.ts index 530bce8066716..097b0823a98f0 100644 --- a/src/plugins/expressions/common/service/expressions_services.ts +++ b/src/plugins/expressions/common/service/expressions_services.ts @@ -152,6 +152,8 @@ export interface ExpressionExecutionParams { syncColors?: boolean; + syncCursor?: boolean; + syncTooltips?: boolean; inspectorAdapters?: Adapters; diff --git a/src/plugins/expressions/public/loader.ts b/src/plugins/expressions/public/loader.ts index c8b0cf6845b86..5b1ae822e1a2c 100644 --- a/src/plugins/expressions/public/loader.ts +++ b/src/plugins/expressions/public/loader.ts @@ -114,6 +114,7 @@ export class ExpressionLoader { renderMode: params?.renderMode, syncColors: params?.syncColors, syncTooltips: params?.syncTooltips, + syncCursor: params?.syncCursor, hasCompatibleActions: params?.hasCompatibleActions, executionContext: params?.executionContext, }); @@ -199,6 +200,7 @@ export class ExpressionLoader { searchSessionId: params.searchSessionId, debug: params.debug, syncColors: params.syncColors, + syncCursor: params?.syncCursor, syncTooltips: params.syncTooltips, executionContext: params.executionContext, }); @@ -238,6 +240,7 @@ export class ExpressionLoader { this.params.searchSessionId = params.searchSessionId; } this.params.syncColors = params.syncColors; + this.params.syncCursor = params.syncCursor; this.params.syncTooltips = params.syncTooltips; this.params.debug = Boolean(params.debug); this.params.partial = Boolean(params.partial); diff --git a/src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts b/src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts index bb2c716313a1c..865a3ef21fb6f 100644 --- a/src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts +++ b/src/plugins/expressions/public/react_expression_renderer/use_expression_renderer.ts @@ -116,6 +116,7 @@ export function useExpressionRenderer( debouncedLoaderParams.renderMode, debouncedLoaderParams.syncColors, debouncedLoaderParams.syncTooltips, + debouncedLoaderParams.syncCursor, ]); useEffect(() => { diff --git a/src/plugins/expressions/public/render.ts b/src/plugins/expressions/public/render.ts index 048f73ef66fa5..fd550b2888316 100644 --- a/src/plugins/expressions/public/render.ts +++ b/src/plugins/expressions/public/render.ts @@ -30,6 +30,7 @@ export interface ExpressionRenderHandlerParams { onRenderError?: RenderErrorHandlerFnType; renderMode?: RenderMode; syncColors?: boolean; + syncCursor?: boolean; syncTooltips?: boolean; interactive?: boolean; hasCompatibleActions?: (event: ExpressionRendererEvent) => Promise; @@ -59,6 +60,7 @@ export class ExpressionRenderHandler { renderMode, syncColors, syncTooltips, + syncCursor, interactive, hasCompatibleActions = async () => false, executionContext, @@ -106,6 +108,9 @@ export class ExpressionRenderHandler { isSyncTooltipsEnabled: () => { return syncTooltips || false; }, + isSyncCursorEnabled: () => { + return syncCursor || true; + }, isInteractive: () => { return interactive ?? true; }, diff --git a/src/plugins/expressions/public/types/index.ts b/src/plugins/expressions/public/types/index.ts index b035daf4deefc..c47eb4592fa4f 100644 --- a/src/plugins/expressions/public/types/index.ts +++ b/src/plugins/expressions/public/types/index.ts @@ -50,6 +50,7 @@ export interface IExpressionLoaderParams { searchSessionId?: string; renderMode?: RenderMode; syncColors?: boolean; + syncCursor?: boolean; syncTooltips?: boolean; hasCompatibleActions?: ExpressionRenderHandlerParams['hasCompatibleActions']; executionContext?: KibanaExecutionContext; diff --git a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts b/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts index 379431d676cf6..7da98a954773c 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import type { Logger, ISavedObjectsRepository } from '@kbn/core/server'; +import type { Logger, ISavedObjectsRepository, SavedObject } from '@kbn/core/server'; import { createTestServers, TestElasticsearchUtils, @@ -25,7 +25,7 @@ import moment from 'moment'; const eventLoopDelaysMonitor = metricsServiceMock.createEventLoopDelaysMonitor(); -function createRawObject(date: moment.MomentInput) { +function createRawObject(date: moment.MomentInput): SavedObject { const pid = Math.round(Math.random() * 10000); const instanceUuid = 'mock_instance'; @@ -39,26 +39,33 @@ function createRawObject(date: moment.MomentInput) { processId: pid, instanceUuid, }, + references: [], }; } -const rawEventLoopDelaysDaily = [ - createRawObject(moment.now()), - createRawObject(moment.now()), - createRawObject(moment().subtract(1, 'days')), - createRawObject(moment().subtract(3, 'days')), -]; +function createRawEventLoopDelaysDailyDocs() { + const rawEventLoopDelaysDaily = [ + createRawObject(moment.now()), + createRawObject(moment.now()), + createRawObject(moment().subtract(1, 'days')), + createRawObject(moment().subtract(3, 'days')), + ]; -const outdatedRawEventLoopDelaysDaily = [ - createRawObject(moment().subtract(5, 'days')), - createRawObject(moment().subtract(7, 'days')), -]; + const outdatedRawEventLoopDelaysDaily = [ + createRawObject(moment().subtract(5, 'days')), + createRawObject(moment().subtract(7, 'days')), + ]; + + return { rawEventLoopDelaysDaily, outdatedRawEventLoopDelaysDaily }; +} describe(`daily rollups integration test`, () => { let esServer: TestElasticsearchUtils; let root: TestKibanaUtils['root']; let internalRepository: ISavedObjectsRepository; let logger: Logger; + let rawEventLoopDelaysDaily: Array>; + let outdatedRawEventLoopDelaysDaily: Array>; beforeAll(async () => { const { startES } = createTestServers({ @@ -74,6 +81,20 @@ describe(`daily rollups integration test`, () => { logger = root.logger.get('test daily rollups'); internalRepository = start.savedObjects.createInternalRepository([SAVED_OBJECTS_DAILY_TYPE]); + // If we are less than 1 second away from midnight, let's wait 1 second before creating the docs. + // Otherwise, we may receive 1 document less than the expected ones. + if (moment().endOf('day').diff(moment(), 's', true) < 1) { + logger.info( + 'Delaying the creation of the docs 1s, just in case we create them before midnight and run the tests on the following day.' + ); + await new Promise((resolve) => setTimeout(resolve, 1000)); + } + + // Create the docs now + const rawDailyDocs = createRawEventLoopDelaysDailyDocs(); + rawEventLoopDelaysDaily = rawDailyDocs.rawEventLoopDelaysDaily; + outdatedRawEventLoopDelaysDaily = rawDailyDocs.outdatedRawEventLoopDelaysDaily; + await internalRepository.bulkCreate( [...rawEventLoopDelaysDaily, ...outdatedRawEventLoopDelaysDaily], { refresh: true } @@ -90,8 +111,13 @@ describe(`daily rollups integration test`, () => { const { total, saved_objects: savedObjects } = await internalRepository.find({ type: SAVED_OBJECTS_DAILY_TYPE }); expect(total).toBe(rawEventLoopDelaysDaily.length); - expect(savedObjects.map(({ id, type, attributes }) => ({ id, type, attributes }))).toEqual( - rawEventLoopDelaysDaily - ); + expect( + savedObjects.map(({ id, type, attributes, references }) => ({ + id, + type, + attributes, + references, + })) + ).toEqual(rawEventLoopDelaysDaily); }); }); diff --git a/src/plugins/presentation_util/public/__stories__/render.tsx b/src/plugins/presentation_util/public/__stories__/render.tsx index b96dfcbc0fbe9..ca9f968842270 100644 --- a/src/plugins/presentation_util/public/__stories__/render.tsx +++ b/src/plugins/presentation_util/public/__stories__/render.tsx @@ -16,6 +16,7 @@ import { export const defaultHandlers: IInterpreterRenderHandlers = { getRenderMode: () => 'view', isSyncColorsEnabled: () => false, + isSyncCursorEnabled: () => true, isSyncTooltipsEnabled: () => false, isInteractive: () => true, getExecutionContext: () => undefined, diff --git a/src/plugins/unified_search/public/filter_bar/filter_editor/range_value_input.tsx b/src/plugins/unified_search/public/filter_bar/filter_editor/range_value_input.tsx index 27a1d9db7739d..4ba3bf693cf54 100644 --- a/src/plugins/unified_search/public/filter_bar/filter_editor/range_value_input.tsx +++ b/src/plugins/unified_search/public/filter_bar/filter_editor/range_value_input.tsx @@ -37,12 +37,13 @@ export function isRangeParams(params: any): params is RangeParams { function RangeValueInputUI(props: Props) { const kibana = useKibana(); - const tzConfig = kibana.services.uiSettings!.get('dateFormat:tz'); const formatDateChange = (value: string | number | boolean) => { if (typeof value !== 'string' && typeof value !== 'number') return value; - const momentParsedValue = moment(value).tz(tzConfig); + const tzConfig = kibana.services.uiSettings!.get('dateFormat:tz'); + const tz = !tzConfig || tzConfig === 'Browser' ? moment.tz.guess() : tzConfig; + const momentParsedValue = moment(value).tz(tz); if (momentParsedValue.isValid()) return momentParsedValue?.format('YYYY-MM-DDTHH:mm:ss.SSSZ'); return value; diff --git a/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx b/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx index 9e99b2e96d78d..9d59cf105af66 100644 --- a/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx +++ b/src/plugins/vis_types/timelion/public/components/timelion_vis_component.tsx @@ -59,6 +59,7 @@ interface TimelionVisComponentProps { renderComplete: IInterpreterRenderHandlers['done']; ariaLabel?: string; syncTooltips?: boolean; + syncCursor?: boolean; } const DefaultYAxis = () => ( @@ -104,6 +105,7 @@ export const TimelionVisComponent = ({ onBrushEvent, ariaLabel, syncTooltips, + syncCursor, }: TimelionVisComponentProps) => { const kibana = useKibana(); const chartRef = useRef(null); @@ -203,7 +205,7 @@ export const TimelionVisComponent = ({ showLegendExtra={true} legendPosition={legend.legendPosition} onRenderChange={onRenderChange} - onPointerUpdate={handleCursorUpdate} + onPointerUpdate={syncCursor ? handleCursorUpdate : undefined} externalPointerEvents={{ tooltip: { visible: syncTooltips, placement: Placement.Right }, }} diff --git a/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts b/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts index 3a268e61690a1..c072f40e42ca9 100644 --- a/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts +++ b/src/plugins/vis_types/timelion/public/timelion_vis_fn.ts @@ -22,6 +22,7 @@ export interface TimelionRenderValue { visType: 'timelion'; visParams: TimelionVisParams; syncTooltips: boolean; + syncCursor: boolean; } export interface TimelionVisParams { @@ -75,6 +76,7 @@ export const getTimelionVisualizationConfig = ( variables, abortSignal: expressionAbortSignal, isSyncTooltipsEnabled, + isSyncCursorEnabled, } ) { const { getTimelionRequestHandler } = await import('./async_services'); @@ -114,6 +116,7 @@ export const getTimelionVisualizationConfig = ( visType: TIMELION_VIS_NAME, visData, syncTooltips: isSyncTooltipsEnabled?.() ?? false, + syncCursor: isSyncTooltipsEnabled?.() ?? true, }, }; }, diff --git a/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx b/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx index ab60f7683dc2d..40541a00c4fcb 100644 --- a/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx +++ b/src/plugins/vis_types/timelion/public/timelion_vis_renderer.tsx @@ -43,7 +43,7 @@ export const getTimelionVisRenderer: ( name: 'timelion_vis', displayName: 'Timelion visualization', reuseDomNode: true, - render: (domNode, { visData, visParams, syncTooltips }, handlers) => { + render: (domNode, { visData, visParams, syncTooltips, syncCursor }, handlers) => { handlers.onDestroy(() => { unmountComponentAtNode(domNode); }); @@ -99,6 +99,7 @@ export const getTimelionVisRenderer: ( renderComplete={renderComplete} onBrushEvent={onBrushEvent} syncTooltips={syncTooltips} + syncCursor={syncCursor} /> )} diff --git a/src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx b/src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx index ca374d667463d..bb3d8122c9609 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx +++ b/src/plugins/vis_types/timeseries/public/application/components/timeseries_visualization.tsx @@ -37,6 +37,7 @@ interface TimeseriesVisualizationProps { visData: TimeseriesVisData; uiState: PersistedState; syncColors: boolean; + syncCursor: boolean; syncTooltips: boolean; initialRender: () => void; } @@ -48,6 +49,7 @@ function TimeseriesVisualization({ uiState, getConfig, syncColors, + syncCursor, syncTooltips, initialRender, }: TimeseriesVisualizationProps) { @@ -194,6 +196,7 @@ function TimeseriesVisualization({ onUiState={handleUiState} syncColors={syncColors} syncTooltips={syncTooltips} + syncCursor={syncCursor} palettesService={palettesService} indexPattern={indexPattern} fieldFormatMap={indexPattern?.fieldFormatMap} diff --git a/src/plugins/vis_types/timeseries/public/application/components/vis_types/index.ts b/src/plugins/vis_types/timeseries/public/application/components/vis_types/index.ts index b7fee33728314..65f8dfa763093 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/vis_types/index.ts +++ b/src/plugins/vis_types/timeseries/public/application/components/vis_types/index.ts @@ -64,6 +64,7 @@ export interface TimeseriesVisProps { getConfig: IUiSettingsClient['get']; syncColors: boolean; syncTooltips: boolean; + syncCursor: boolean; palettesService: PaletteRegistry; indexPattern?: FetchedIndexPattern['indexPattern']; /** @deprecated please use indexPattern.fieldFormatMap instead **/ diff --git a/src/plugins/vis_types/timeseries/public/application/components/vis_types/timeseries/vis.js b/src/plugins/vis_types/timeseries/public/application/components/vis_types/timeseries/vis.js index 25d64816614a9..411bb9e41b5e4 100644 --- a/src/plugins/vis_types/timeseries/public/application/components/vis_types/timeseries/vis.js +++ b/src/plugins/vis_types/timeseries/public/application/components/vis_types/timeseries/vis.js @@ -163,6 +163,7 @@ class TimeseriesVisualization extends Component { onFilterClick, syncColors, syncTooltips, + syncCursor, palettesService, fieldFormatMap, getConfig, @@ -275,6 +276,7 @@ class TimeseriesVisualization extends Component { annotations={this.prepareAnnotations()} syncColors={syncColors} syncTooltips={syncTooltips} + syncCursor={syncCursor} palettesService={palettesService} interval={interval} initialRender={initialRender} diff --git a/src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/index.js b/src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/index.js index e075cac92641c..1ca0f6d50efcc 100644 --- a/src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/index.js +++ b/src/plugins/vis_types/timeseries/public/application/visualizations/views/timeseries/index.js @@ -73,6 +73,7 @@ export const TimeSeries = ({ annotations, syncColors, syncTooltips, + syncCursor, palettesService, interval, isLastBucketDropped, @@ -179,7 +180,7 @@ export const TimeSeries = ({ onBrushEnd={onBrushEndListener} onElementClick={(args) => handleElementClick(args)} animateData={false} - onPointerUpdate={handleCursorUpdate} + onPointerUpdate={syncCursor ? handleCursorUpdate : undefined} pointerUpdateDebounce={0} theme={[ { diff --git a/src/plugins/vis_types/timeseries/public/metrics_fn.ts b/src/plugins/vis_types/timeseries/public/metrics_fn.ts index e6e2814b6e08b..fe9406895cd6e 100644 --- a/src/plugins/vis_types/timeseries/public/metrics_fn.ts +++ b/src/plugins/vis_types/timeseries/public/metrics_fn.ts @@ -26,6 +26,7 @@ export interface TimeseriesRenderValue { visData: TimeseriesVisData | {}; visParams: TimeseriesVisParams; syncColors: boolean; + syncCursor: boolean; syncTooltips: boolean; canNavigateToLens?: boolean; } @@ -63,6 +64,7 @@ export const createMetricsFn = (): TimeseriesExpressionFunctionDefinition => ({ getSearchSessionId, isSyncColorsEnabled, isSyncTooltipsEnabled, + isSyncCursorEnabled, getExecutionContext, inspectorAdapters, abortSignal: expressionAbortSignal, @@ -73,6 +75,7 @@ export const createMetricsFn = (): TimeseriesExpressionFunctionDefinition => ({ const uiState = JSON.parse(args.uiState); const syncColors = isSyncColorsEnabled?.() ?? false; const syncTooltips = isSyncTooltipsEnabled?.() ?? false; + const syncCursor = isSyncCursorEnabled?.() ?? true; const response = await metricsRequestHandler({ input, @@ -92,6 +95,7 @@ export const createMetricsFn = (): TimeseriesExpressionFunctionDefinition => ({ visData: response, syncColors, syncTooltips, + syncCursor, canNavigateToLens: variables.canNavigateToLens as boolean, }, }; diff --git a/src/plugins/vis_types/timeseries/public/timeseries_vis_renderer.tsx b/src/plugins/vis_types/timeseries/public/timeseries_vis_renderer.tsx index 4d64e46356c0d..065259ce8882c 100644 --- a/src/plugins/vis_types/timeseries/public/timeseries_vis_renderer.tsx +++ b/src/plugins/vis_types/timeseries/public/timeseries_vis_renderer.tsx @@ -62,7 +62,14 @@ export const getTimeseriesVisRenderer: (deps: { handlers.onDestroy(() => { unmountComponentAtNode(domNode); }); - const { visParams: model, visData, syncColors, syncTooltips, canNavigateToLens } = config; + const { + visParams: model, + visData, + syncColors, + syncTooltips, + syncCursor, + canNavigateToLens, + } = config; const showNoResult = !checkIfDataExists(visData, model); const renderComplete = () => { @@ -106,6 +113,7 @@ export const getTimeseriesVisRenderer: (deps: { visData={visData as TimeseriesVisData} syncColors={syncColors} syncTooltips={syncTooltips} + syncCursor={syncCursor} uiState={handlers.uiState! as PersistedState} initialRender={renderComplete} /> diff --git a/src/plugins/vis_types/xy/public/convert_to_lens/configurations/index.ts b/src/plugins/vis_types/xy/public/convert_to_lens/configurations/index.ts index fa9cc01c6a7ca..9674c47b33bc5 100644 --- a/src/plugins/vis_types/xy/public/convert_to_lens/configurations/index.ts +++ b/src/plugins/vis_types/xy/public/convert_to_lens/configurations/index.ts @@ -24,10 +24,11 @@ import { Scale, ScaleType, SeriesParam, + ThresholdLineStyle, ValueAxis, VisParams, } from '../../types'; -import { getCurveType, getLineStyle, getMode, getYAxisPosition } from '../../utils/common'; +import { getCurveType, getMode, getYAxisPosition } from '../../utils/common'; function getYScaleType(scale?: Scale): XYConfiguration['yLeftScale'] | undefined { const type = scale?.type; @@ -181,7 +182,11 @@ function getReferenceLineLayers( axisMode: getYAxisPosition(yAxis?.position ?? 'left'), color: thresholdLineConfig.color, lineWidth: thresholdLineConfig.width !== null ? thresholdLineConfig.width : undefined, - lineStyle: getLineStyle(thresholdLineConfig.style), + lineStyle: + thresholdLineConfig.style === ThresholdLineStyle.DotDashed || + thresholdLineConfig.style === ThresholdLineStyle.Full + ? 'solid' + : thresholdLineConfig.style, }; }), }; diff --git a/src/plugins/visualizations/common/convert_to_lens/types/configurations.ts b/src/plugins/visualizations/common/convert_to_lens/types/configurations.ts index 2abcc3a281626..72d0323ac3525 100644 --- a/src/plugins/visualizations/common/convert_to_lens/types/configurations.ts +++ b/src/plugins/visualizations/common/convert_to_lens/types/configurations.ts @@ -55,7 +55,7 @@ export interface YConfig { color?: string; icon?: string; lineWidth?: number; - lineStyle?: 'solid' | 'dashed' | 'dotted' | 'dot-dashed'; + lineStyle?: 'solid' | 'dashed' | 'dotted'; fill?: FillType; iconPosition?: 'auto' | 'left' | 'right' | 'above' | 'below'; textVisibility?: boolean; @@ -276,4 +276,5 @@ export type Configuration = | XYConfiguration | TableVisConfiguration | PartitionVisConfiguration - | MetricVisConfiguration; + | MetricVisConfiguration + | GaugeVisConfiguration; diff --git a/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx b/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx index 26746f8d23200..ef9e8d53a4f11 100644 --- a/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx +++ b/src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx @@ -110,6 +110,7 @@ export class VisualizeEmbeddable private searchSessionId?: string; private syncColors?: boolean; private syncTooltips?: boolean; + private syncCursor?: boolean; private embeddableTitle?: string; private visCustomizations?: Pick; private subscriptions: Subscription[] = []; @@ -154,6 +155,7 @@ export class VisualizeEmbeddable this.timefilter = timefilter; this.syncColors = this.input.syncColors; this.syncTooltips = this.input.syncTooltips; + this.syncCursor = this.input.syncCursor; this.searchSessionId = this.input.searchSessionId; this.query = this.input.query; this.embeddableTitle = this.getTitle(); @@ -322,6 +324,11 @@ export class VisualizeEmbeddable dirty = true; } + if (this.syncCursor !== this.input.syncCursor) { + this.syncCursor = this.input.syncCursor; + dirty = true; + } + if (this.embeddableTitle !== this.getTitle()) { this.embeddableTitle = this.getTitle(); dirty = true; @@ -574,6 +581,7 @@ export class VisualizeEmbeddable searchSessionId: this.input.searchSessionId, syncColors: this.input.syncColors, syncTooltips: this.input.syncTooltips, + syncCursor: this.input.syncCursor, uiState: this.vis.uiState, interactive: !this.input.disableTriggers, inspectorAdapters: this.inspectorAdapters, diff --git a/test/plugin_functional/test_suites/core_plugins/rendering.ts b/test/plugin_functional/test_suites/core_plugins/rendering.ts index 2bfd0c7b5dda3..0970854a5aeea 100644 --- a/test/plugin_functional/test_suites/core_plugins/rendering.ts +++ b/test/plugin_functional/test_suites/core_plugins/rendering.ts @@ -219,7 +219,10 @@ export default function ({ getService }: PluginFunctionalProviderContext) { 'xpack.trigger_actions_ui.enableGeoTrackingThresholdAlert (boolean)', 'xpack.upgrade_assistant.readonly (boolean)', 'xpack.upgrade_assistant.ui.enabled (boolean)', - 'xpack.observability.unsafe.alertDetails.enabled (boolean)', + 'xpack.observability.unsafe.alertDetails.apm.enabled (boolean)', + 'xpack.observability.unsafe.alertDetails.metrics.enabled (boolean)', + 'xpack.observability.unsafe.alertDetails.logs.enabled (boolean)', + 'xpack.observability.unsafe.alertDetails.uptime.enabled (boolean)', 'xpack.observability.unsafe.slo.enabled (boolean)', ]; // We don't assert that actualExposedConfigKeys and expectedExposedConfigKeys are equal, because test failure messages with large diff --git a/test/plugin_functional/test_suites/telemetry/telemetry.ts b/test/plugin_functional/test_suites/telemetry/telemetry.ts index 1c68abd5426d3..3b087c2705c10 100644 --- a/test/plugin_functional/test_suites/telemetry/telemetry.ts +++ b/test/plugin_functional/test_suites/telemetry/telemetry.ts @@ -14,8 +14,7 @@ export default function ({ getService, getPageObjects }: PluginFunctionalProvide const browser = getService('browser'); const PageObjects = getPageObjects(['common']); - // FLAKY: https://github.com/elastic/kibana/issues/107034 - describe.skip('Telemetry service', () => { + describe('Telemetry service', () => { const checkCanSendTelemetry = (): Promise => { return browser.executeAsync((cb) => { (window as unknown as Record Promise>) diff --git a/x-pack/README.md b/x-pack/README.md index 9c3d0046a77e7..bdbc598aba4dc 100644 --- a/x-pack/README.md +++ b/x-pack/README.md @@ -4,16 +4,33 @@ This directory tree contains files subject to the Elastic License 2.0. The files to the Elastic License 2.0 are grouped in this directory to clearly separate them from files dual-licensed under the Server Side Public License and the Elastic License 2.0. -## Alert Details page (feature flag) +## Alert Details page feature flags (feature-flag-per-App) If you have: ```yaml -xpack.observability.unsafe.alertDetails.enabled: true +xpack.observability.unsafe.alertDetails.apm.enabled: true ``` -In Kibana configuration, will allow the user to navigate to the new Alert Details page, instead of the Alert Flyout when clicking on `View alert details` in the Alert table +**[For APM rule types]** In Kibana configuration, will allow the user to navigate to the new Alert Details page, instead of the Alert Flyout when clicking on `View alert details` in the Alert table +```yaml +xpack.observability.unsafe.alertDetails.metrics.enabled: true +``` + +**[For Infrastructure rule types]** In Kibana configuration, will allow the user to navigate to the new Alert Details page, instead of the Alert Flyout when clicking on `View alert details` in the Alert table + +```yaml +xpack.observability.unsafe.alertDetails.logs.enabled: true +``` + +**[For Logs threshold rule type]** In Kibana configuration, will allow the user to navigate to the new Alert Details page, instead of the Alert Flyout when clicking on `View alert details` in the Alert table + +```yaml +xpack.observability.unsafe.alertDetails.uptime.enabled: true +``` + +**[For Uptime rule type]** In Kibana configuration, will allow the user to navigate to the new Alert Details page, instead of the Alert Flyout when clicking on `View alert details` in the Alert table # Development @@ -31,15 +48,16 @@ For information on testing, see [the Elastic functional test development guide]( #### Running functional tests -The functional UI tests, the API integration tests, and the SAML API integration tests are all run against a live browser, Kibana, and Elasticsearch install. Each set of tests is specified with a unique config that describes how to start the Elasticsearch server, the Kibana server, and what tests to run against them. The sets of tests that exist today are *functional UI tests* ([specified by this config](test/functional/config.base.js)), *API integration tests* ([specified by this config](test/api_integration/config.ts)), and *SAML API integration tests* ([specified by this config](test/security_api_integration/saml.config.ts)). +The functional UI tests, the API integration tests, and the SAML API integration tests are all run against a live browser, Kibana, and Elasticsearch install. Each set of tests is specified with a unique config that describes how to start the Elasticsearch server, the Kibana server, and what tests to run against them. The sets of tests that exist today are _functional UI tests_ ([specified by this config](test/functional/config.base.js)), _API integration tests_ ([specified by this config](test/api_integration/config.ts)), and _SAML API integration tests_ ([specified by this config](test/security_api_integration/saml.config.ts)). The script runs all sets of tests sequentially like so: -* builds Elasticsearch and X-Pack -* runs Elasticsearch with X-Pack -* starts up the Kibana server with X-Pack -* runs the functional UI tests against those servers -* tears down the servers -* repeats the same process for the API and SAML API integration test configs. + +- builds Elasticsearch and X-Pack +- runs Elasticsearch with X-Pack +- starts up the Kibana server with X-Pack +- runs the functional UI tests against those servers +- tears down the servers +- repeats the same process for the API and SAML API integration test configs. To do all of this in a single command run: @@ -100,4 +118,5 @@ yarn test:jest_integration See [here](./test/functional/apps/dashboard/reporting/README.md) for more information on running reporting tests. #### Running Security Solution Cypress E2E/integration tests + See [here](./plugins/security_solution/cypress/README.md) for information on running this test suite. diff --git a/x-pack/plugins/apm/public/components/app/trace_explorer/index.tsx b/x-pack/plugins/apm/public/components/app/trace_explorer/index.tsx index 2e664ac756d6d..47287084386ad 100644 --- a/x-pack/plugins/apm/public/components/app/trace_explorer/index.tsx +++ b/x-pack/plugins/apm/public/components/app/trace_explorer/index.tsx @@ -5,14 +5,14 @@ * 2.0. */ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import React, { useEffect, useState } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import { useHistory } from 'react-router-dom'; import { TraceSearchQuery, TraceSearchType, } from '../../../../common/trace_explorer'; import { useApmParams } from '../../../hooks/use_apm_params'; -import { useFetcher, FETCH_STATUS } from '../../../hooks/use_fetcher'; +import { useFetcher } from '../../../hooks/use_fetcher'; import { useTimeRange } from '../../../hooks/use_time_range'; import { ApmDatePicker } from '../../shared/date_picker/apm_date_picker'; import { fromQuery, toQuery, push } from '../../shared/links/url_helpers'; @@ -20,6 +20,10 @@ import { useWaterfallFetcher } from '../transaction_details/use_waterfall_fetche import { WaterfallWithSummary } from '../transaction_details/waterfall_with_summary'; import { TraceSearchBox } from './trace_search_box'; +const INITIAL_DATA = { + traceSamples: [], +}; + export function TraceExplorer() { const [query, setQuery] = useState({ query: '', @@ -54,7 +58,11 @@ export function TraceExplorer() { rangeTo, }); - const { data: traceSamplesData, status: traceSamplesStatus } = useFetcher( + const { + data = INITIAL_DATA, + status, + error, + } = useFetcher( (callApmApi) => { return callApmApi('GET /internal/apm/traces/find', { params: { @@ -72,7 +80,7 @@ export function TraceExplorer() { ); useEffect(() => { - const nextSample = traceSamplesData?.samples[0]; + const nextSample = data.traceSamples[0]; const nextWaterfallItemId = ''; history.replace({ ...history.location, @@ -83,18 +91,23 @@ export function TraceExplorer() { waterfallItemId: nextWaterfallItemId, }), }); - }, [traceSamplesData, history]); + }, [data, history]); - const { waterfall, status: waterfallStatus } = useWaterfallFetcher({ + const waterfallFetchResult = useWaterfallFetcher({ traceId, transactionId, start, end, }); - const isLoading = - traceSamplesStatus === FETCH_STATUS.LOADING || - waterfallStatus === FETCH_STATUS.LOADING; + const traceSamplesFetchResult = useMemo( + () => ({ + data, + status, + error, + }), + [data, status, error] + ); return ( @@ -127,8 +140,9 @@ export function TraceExplorer() { { push(history, { query: { @@ -145,11 +159,12 @@ export function TraceExplorer() { }, }); }} - traceSamples={traceSamplesData?.samples ?? []} - waterfall={waterfall} detailTab={detailTab} waterfallItemId={waterfallItemId} - serviceName={waterfall.entryWaterfallTransaction?.doc.service.name} + serviceName={ + waterfallFetchResult.waterfall.entryWaterfallTransaction?.doc + .service.name + } /> diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.test.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.test.tsx index 1624bda055390..29232fd144972 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.test.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.test.tsx @@ -87,8 +87,11 @@ describe('transaction_details/distribution', () => { , { wrapper: Wrapper } @@ -112,8 +115,11 @@ describe('transaction_details/distribution', () => { ); diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.tsx index fcc70bed96e28..73b224d60aaa4 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/distribution/index.tsx @@ -12,9 +12,7 @@ import { useHistory } from 'react-router-dom'; import { ProcessorEvent } from '@kbn/observability-plugin/common'; import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params'; -import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; -import type { TabContentProps } from '../types'; import { useWaterfallFetcher } from '../use_waterfall_fetcher'; import { WaterfallWithSummary } from '../waterfall_with_summary'; @@ -26,21 +24,20 @@ import { HeightRetainer } from '../../../shared/height_retainer'; import { fromQuery, toQuery } from '../../../shared/links/url_helpers'; import { TransactionTab } from '../waterfall_with_summary/transaction_tabs'; import { useTransactionDistributionChartData } from './use_transaction_distribution_chart_data'; +import { TraceSamplesFetchResult } from '../../../../hooks/use_transaction_trace_samples_fetcher'; interface TransactionDistributionProps { onChartSelection: (event: XYBrushEvent) => void; onClearSelection: () => void; selection?: [number, number]; - traceSamples: TabContentProps['traceSamples']; - traceSamplesStatus: FETCH_STATUS; + traceSamplesFetchResult: TraceSamplesFetchResult; } export function TransactionDistribution({ onChartSelection, onClearSelection, selection, - traceSamples, - traceSamplesStatus, + traceSamplesFetchResult, }: TransactionDistributionProps) { const { urlParams } = useLegacyUrlParams(); const { traceId, transactionId } = urlParams; @@ -52,7 +49,7 @@ export function TransactionDistribution({ const { start, end } = useTimeRange({ rangeFrom, rangeTo }); const history = useHistory(); - const { waterfall, status: waterfallStatus } = useWaterfallFetcher({ + const waterfallFetchResult = useWaterfallFetcher({ traceId, transactionId, start, @@ -65,12 +62,10 @@ export function TransactionDistribution({ } = useApmParams('/services/{serviceName}/transactions/view'); const { serviceName } = useApmServiceContext(); - const isLoading = - waterfallStatus === FETCH_STATUS.LOADING || - traceSamplesStatus === FETCH_STATUS.LOADING; const markerCurrentEvent = - waterfall.entryWaterfallTransaction?.doc.transaction.duration.us; + waterfallFetchResult.waterfall.entryWaterfallTransaction?.doc.transaction + .duration.us; const { chartData, @@ -121,9 +116,8 @@ export function TransactionDistribution({ serviceName={serviceName} waterfallItemId={waterfallItemId} detailTab={detailTab as TransactionTab | undefined} - waterfall={waterfall} - isLoading={isLoading} - traceSamples={traceSamples} + waterfallFetchResult={waterfallFetchResult} + traceSamplesFetchResult={traceSamplesFetchResult} /> diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx index 3044d365e1958..a0a69629d0d2c 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/failed_transactions_correlations_tab.tsx @@ -18,8 +18,7 @@ import { useLicenseContext } from '../../../context/license/use_license_context' import { LicensePrompt } from '../../shared/license_prompt'; import { FailedTransactionsCorrelations } from '../correlations/failed_transactions_correlations'; - -import type { TabContentProps } from './types'; +import { TabContentProps } from './transaction_details_tabs'; function FailedTransactionsCorrelationsTab({ onFilter }: TabContentProps) { const license = useLicenseContext(); diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx index e3dec8b3d9aa3..1fef9ac0dda66 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/latency_correlations_tab.tsx @@ -18,8 +18,7 @@ import { useLicenseContext } from '../../../context/license/use_license_context' import { LicensePrompt } from '../../shared/license_prompt'; import { LatencyCorrelations } from '../correlations/latency_correlations'; - -import type { TabContentProps } from './types'; +import { TabContentProps } from './transaction_details_tabs'; function LatencyCorrelationsTab({ onFilter }: TabContentProps) { const license = useLicenseContext(); diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/trace_samples_tab.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/trace_samples_tab.tsx index d83211a72ea59..79919c5cdd332 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/trace_samples_tab.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/trace_samples_tab.tsx @@ -10,15 +10,14 @@ import React from 'react'; import { i18n } from '@kbn/i18n'; import { TransactionDistribution } from './distribution'; -import type { TabContentProps } from './types'; +import { TabContentProps } from './transaction_details_tabs'; function TraceSamplesTab({ selectSampleFromChartSelection, clearChartSelection, sampleRangeFrom, sampleRangeTo, - traceSamples, - traceSamplesStatus, + traceSamplesFetchResult, }: TabContentProps) { return ( ); } diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/transaction_details_tabs.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/transaction_details_tabs.tsx index 742cd6f9e7a97..c99703d4f90f8 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/transaction_details_tabs.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/transaction_details_tabs.tsx @@ -11,9 +11,13 @@ import { omit } from 'lodash'; import { useHistory } from 'react-router-dom'; import { EuiPanel, EuiSpacer, EuiTabs, EuiTab } from '@elastic/eui'; +import { XYBrushEvent } from '@elastic/charts'; import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_params'; import { useApmParams } from '../../../hooks/use_apm_params'; -import { useTransactionTraceSamplesFetcher } from '../../../hooks/use_transaction_trace_samples_fetcher'; +import { + TraceSamplesFetchResult, + useTransactionTraceSamplesFetcher, +} from '../../../hooks/use_transaction_trace_samples_fetcher'; import { maybe } from '../../../../common/utils/maybe'; import { fromQuery, toQuery } from '../../shared/links/url_helpers'; @@ -24,6 +28,15 @@ import { traceSamplesTab } from './trace_samples_tab'; import { useSampleChartSelection } from '../../../hooks/use_sample_chart_selection'; import { FETCH_STATUS } from '../../../hooks/use_fetcher'; +export interface TabContentProps { + clearChartSelection: () => void; + onFilter: () => void; + sampleRangeFrom?: number; + sampleRangeTo?: number; + selectSampleFromChartSelection: (selection: XYBrushEvent) => void; + traceSamplesFetchResult: TraceSamplesFetchResult; +} + const tabs = [ traceSamplesTab, latencyCorrelationsTab, @@ -41,15 +54,14 @@ export function TransactionDetailsTabs() { tabs.find((tab) => tab.key === currentTab) ?? traceSamplesTab; const { environment, kuery, transactionName } = query; - const { traceSamplesData, traceSamplesStatus } = - useTransactionTraceSamplesFetcher({ - transactionName, - kuery, - environment, - }); + + const traceSamplesFetchResult = useTransactionTraceSamplesFetcher({ + transactionName, + kuery, + environment, + }); const { sampleRangeFrom, sampleRangeTo, transactionId, traceId } = urlParams; - const { traceSamples } = traceSamplesData; const { clearChartSelection, selectSampleFromChartSelection } = useSampleChartSelection(); @@ -65,14 +77,19 @@ export function TransactionDetailsTabs() { }, [traceSamplesTabKey]); useEffect(() => { - const selectedSample = traceSamples.find( + const selectedSample = traceSamplesFetchResult.data?.traceSamples.find( (sample) => sample.transactionId === transactionId && sample.traceId === traceId ); - if (traceSamplesStatus === FETCH_STATUS.SUCCESS && !selectedSample) { + if ( + traceSamplesFetchResult.status === FETCH_STATUS.SUCCESS && + !selectedSample + ) { // selected sample was not found. select a new one: - const preferredSample = maybe(traceSamples[0]); + const preferredSample = maybe( + traceSamplesFetchResult.data?.traceSamples[0] + ); history.replace({ ...history.location, @@ -85,7 +102,7 @@ export function TransactionDetailsTabs() { }), }); } - }, [history, traceSamples, transactionId, traceId, traceSamplesStatus]); + }, [history, transactionId, traceId, traceSamplesFetchResult]); return ( <> @@ -112,8 +129,7 @@ export function TransactionDetailsTabs() { sampleRangeFrom, sampleRangeTo, selectSampleFromChartSelection, - traceSamples, - traceSamplesStatus, + traceSamplesFetchResult, }} /> diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/types.ts b/x-pack/plugins/apm/public/components/app/transaction_details/types.ts deleted file mode 100644 index 2014f7588293d..0000000000000 --- a/x-pack/plugins/apm/public/components/app/transaction_details/types.ts +++ /dev/null @@ -1,21 +0,0 @@ -/* - * 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. - */ - -import { XYBrushEvent } from '@elastic/charts'; - -import type { TraceSample } from '../../../hooks/use_transaction_trace_samples_fetcher'; -import { FETCH_STATUS } from '../../../hooks/use_fetcher'; - -export interface TabContentProps { - clearChartSelection: () => void; - onFilter: () => void; - sampleRangeFrom?: number; - sampleRangeTo?: number; - selectSampleFromChartSelection: (selection: XYBrushEvent) => void; - traceSamples: TraceSample[]; - traceSamplesStatus: FETCH_STATUS; -} diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/use_waterfall_fetcher.ts b/x-pack/plugins/apm/public/components/app/transaction_details/use_waterfall_fetcher.ts index 793524c7e17f1..890f5c98cb6fc 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/use_waterfall_fetcher.ts +++ b/x-pack/plugins/apm/public/components/app/transaction_details/use_waterfall_fetcher.ts @@ -16,6 +16,7 @@ const INITIAL_DATA: APIReturnType<'GET /internal/apm/traces/{traceId}'> = { exceedsMax: false, linkedChildrenOfSpanCountBySpanId: {}, }; +export type WaterfallFetchResult = ReturnType; export function useWaterfallFetcher({ traceId, diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/index.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/index.tsx index 61b814a598e87..57d630393f9a9 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/index.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/index.tsx @@ -12,22 +12,22 @@ import { EuiPagination, EuiSpacer, EuiTitle, + EuiLoadingContent, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import React, { useEffect, useState } from 'react'; -import { LoadingStatePrompt } from '../../../shared/loading_state_prompt'; import { TransactionSummary } from '../../../shared/summary/transaction_summary'; import { TransactionActionMenu } from '../../../shared/transaction_action_menu/transaction_action_menu'; -import type { TraceSample } from '../../../../hooks/use_transaction_trace_samples_fetcher'; import { MaybeViewTraceLink } from './maybe_view_trace_link'; import { TransactionTab, TransactionTabs } from './transaction_tabs'; -import { IWaterfall } from './waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; import { Environment } from '../../../../../common/environment_rt'; +import { FETCH_STATUS } from '../../../../hooks/use_fetcher'; +import { TraceSamplesFetchResult } from '../../../../hooks/use_transaction_trace_samples_fetcher'; +import { WaterfallFetchResult } from '../use_waterfall_fetcher'; interface Props { - waterfall: IWaterfall; - isLoading: boolean; - traceSamples: TraceSample[]; + waterfallFetchResult: WaterfallFetchResult; + traceSamplesFetchResult: TraceSamplesFetchResult; environment: Environment; onSampleClick: (sample: { transactionId: string; traceId: string }) => void; onTabClick: (tab: string) => void; @@ -37,9 +37,8 @@ interface Props { } export function WaterfallWithSummary({ - waterfall, - isLoading, - traceSamples, + waterfallFetchResult, + traceSamplesFetchResult, environment, onSampleClick, onTabClick, @@ -51,17 +50,27 @@ export function WaterfallWithSummary({ useEffect(() => { setSampleActivePage(0); - }, [traceSamples]); + }, [traceSamplesFetchResult.data.traceSamples]); const goToSample = (index: number) => { setSampleActivePage(index); - const sample = traceSamples[index]; + const sample = traceSamplesFetchResult.data.traceSamples[index]; onSampleClick(sample); }; - const { entryWaterfallTransaction } = waterfall; + const { entryWaterfallTransaction } = waterfallFetchResult.waterfall; + const isLoading = + waterfallFetchResult.status === FETCH_STATUS.LOADING || + traceSamplesFetchResult.status === FETCH_STATUS.LOADING; + const isSucceded = + waterfallFetchResult.status === FETCH_STATUS.SUCCESS && + traceSamplesFetchResult.status === FETCH_STATUS.SUCCESS; - if ((!entryWaterfallTransaction || traceSamples.length === 0) && !isLoading) { + if ( + !entryWaterfallTransaction && + traceSamplesFetchResult.data.traceSamples.length === 0 && + isSucceded + ) { return ( - {traceSamples.length > 0 && ( + {traceSamplesFetchResult.data.traceSamples.length > 0 && ( @@ -123,25 +132,34 @@ export function WaterfallWithSummary({ {isLoading || !entryTransaction ? ( - - ) : ( <> - - + + ) : ( + )} + + + + ); } diff --git a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/transaction_tabs.tsx b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/transaction_tabs.tsx index f4192f501aa2c..e3fdaeea24846 100644 --- a/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/transaction_tabs.tsx +++ b/x-pack/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/transaction_tabs.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { EuiSpacer, EuiTab, EuiTabs } from '@elastic/eui'; +import { EuiSpacer, EuiTab, EuiTabs, EuiLoadingContent } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; import { LogStream } from '@kbn/infra-plugin/public'; import React from 'react'; @@ -15,7 +15,8 @@ import { WaterfallContainer } from './waterfall_container'; import { IWaterfall } from './waterfall_container/waterfall/waterfall_helpers/waterfall_helpers'; interface Props { - transaction: Transaction; + transaction?: Transaction; + isLoading: boolean; waterfall: IWaterfall; detailTab?: TransactionTab; serviceName?: string; @@ -26,6 +27,7 @@ interface Props { export function TransactionTabs({ transaction, waterfall, + isLoading, detailTab, waterfallItemId, serviceName, @@ -36,7 +38,7 @@ export function TransactionTabs({ const TabContent = currentTab.component; return ( - + <> {tabs.map(({ key, label }) => { return ( @@ -54,14 +56,17 @@ export function TransactionTabs({ - - - + {isLoading || !transaction ? ( + + ) : ( + + )} + ); } diff --git a/x-pack/plugins/apm/public/hooks/use_transaction_trace_samples_fetcher.ts b/x-pack/plugins/apm/public/hooks/use_transaction_trace_samples_fetcher.ts index f0906eef3ab09..9bb2b68266827 100644 --- a/x-pack/plugins/apm/public/hooks/use_transaction_trace_samples_fetcher.ts +++ b/x-pack/plugins/apm/public/hooks/use_transaction_trace_samples_fetcher.ts @@ -5,21 +5,21 @@ * 2.0. */ +import { useMemo } from 'react'; import { useFetcher } from './use_fetcher'; import { useLegacyUrlParams } from '../context/url_params_context/use_url_params'; import { useApmServiceContext } from '../context/apm_service/use_apm_service_context'; import { useApmParams } from './use_apm_params'; import { useTimeRange } from './use_time_range'; -export interface TraceSample { - traceId: string; - transactionId: string; -} - const INITIAL_DATA = { - traceSamples: [] as TraceSample[], + traceSamples: [], }; +export type TraceSamplesFetchResult = ReturnType< + typeof useTransactionTraceSamplesFetcher +>; + export function useTransactionTraceSamplesFetcher({ transactionName, kuery, @@ -87,9 +87,12 @@ export function useTransactionTraceSamplesFetcher({ ] ); - return { - traceSamplesData: data, - traceSamplesStatus: status, - traceSamplesError: error, - }; + return useMemo( + () => ({ + data, + status, + error, + }), + [data, status, error] + ); } diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/agent_config_instructions.tsx b/x-pack/plugins/apm/public/tutorial/config_agent/agent_config_instructions.tsx index 5c5bb3282d217..c7244002e59f5 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/agent_config_instructions.tsx +++ b/x-pack/plugins/apm/public/tutorial/config_agent/agent_config_instructions.tsx @@ -8,7 +8,11 @@ import React from 'react'; import { EuiCodeBlock, EuiSpacer } from '@elastic/eui'; import { OpenTelemetryInstructions } from './opentelemetry_instructions'; -import { getApmAgentCommands } from './commands/get_apm_agent_commands'; +import { + getApmAgentCommands, + getApmAgentVariables, +} from './commands/get_apm_agent_commands'; +import { AgentConfigurationTable } from './agent_config_table'; export function AgentConfigInstructions({ variantId, @@ -19,6 +23,11 @@ export function AgentConfigInstructions({ apmServerUrl?: string; secretToken?: string; }) { + const defaultValues = { + apmServiceName: 'my-service-name', + apmEnvironment: 'production', + }; + if (variantId === 'openTelemetry') { return ( <> @@ -37,11 +46,20 @@ export function AgentConfigInstructions({ apmServerUrl, secretToken, }, + defaultValues, }); + const variables = getApmAgentVariables(variantId); + return ( <> + + + {commands} diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/agent_config_table.tsx b/x-pack/plugins/apm/public/tutorial/config_agent/agent_config_table.tsx new file mode 100644 index 0000000000000..b06ad4be25dae --- /dev/null +++ b/x-pack/plugins/apm/public/tutorial/config_agent/agent_config_table.tsx @@ -0,0 +1,53 @@ +/* + * 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. + */ + +import React from 'react'; +import type { ValuesType } from 'utility-types'; +import { get } from 'lodash'; +import { EuiBasicTable, EuiText, EuiBasicTableColumn } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; + +export function AgentConfigurationTable({ + variables, + data, +}: { + variables: { [key: string]: string }; + data: { + apmServerUrl?: string; + secretToken?: string; + apmServiceName: string; + apmEnvironment: string; + }; +}) { + if (!variables) return null; + + const columns: Array>> = [ + { + field: 'setting', + name: i18n.translate('xpack.apm.tutorial.agent.column.configSettings', { + defaultMessage: 'Configuration setting', + }), + }, + { + field: 'value', + name: i18n.translate('xpack.apm.tutorial.agent.column.configValue', { + defaultMessage: 'Configuration value', + }), + render: (_, { value }) => ( + + {value} + + ), + }, + ]; + + const items = Object.keys(variables).map((k) => ({ + setting: variables[k], + value: get(data, k), // TODO do we want default values? + })); + return ; +} diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/django.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/django.ts index 047b8808f13ce..4379f15c59cde 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/django.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/django.ts @@ -7,6 +7,13 @@ import { i18n } from '@kbn/i18n'; +export const djangoVariables = { + apmServiceName: 'SERVICE_NAME', + apmServerUrl: 'SERVER_URL', + secretToken: 'SECRET_TOKEN', + apmEnvironment: 'ENVIRONMENT', +}; + export const django = `# ${i18n.translate( 'xpack.apm.tutorial.djangoClient.configure.commands.addAgentComment', { @@ -31,7 +38,7 @@ ELASTIC_APM = { defaultMessage: 'a-z, A-Z, 0-9, -, _, and space', } )} -#'SERVICE_NAME': 'unknown-python-service', +#'${djangoVariables.apmServiceName}': '{{{apmServiceName}}}', # ${i18n.translate( 'xpack.apm.tutorial.djangoClient.configure.commands.useIfApmServerRequiresTokenComment', @@ -39,7 +46,7 @@ ELASTIC_APM = { defaultMessage: 'Use if APM Server requires a secret token', } )} -'SECRET_TOKEN': '{{{secretToken}}}', +'${djangoVariables.secretToken}': '{{{secretToken}}}', # ${i18n.translate( 'xpack.apm.tutorial.djangoClient.configure.commands.setCustomApmServerUrlComment', @@ -49,7 +56,7 @@ ELASTIC_APM = { values: { defaultApmServerUrl: 'http://localhost:8200' }, } )} -'SERVER_URL': '{{{apmServerUrl}}}', +'${djangoVariables.apmServerUrl}': '{{{apmServerUrl}}}', # ${i18n.translate( 'xpack.apm.tutorial.djangoClient.configure.commands.setServiceEnvironmentComment', @@ -57,7 +64,7 @@ ELASTIC_APM = { defaultMessage: 'Set the service environment', } )} -'ENVIRONMENT': 'production', +'${djangoVariables.apmEnvironment}': '{{{apmEnvironment}}}', } # ${i18n.translate( diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/dotnet.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/dotnet.ts index e083a2b45c716..e52b908748103 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/dotnet.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/dotnet.ts @@ -4,11 +4,18 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ + +export const dotnetVariables = { + apmServiceName: 'ServiceName', + secretToken: 'SecretToken', + apmServerUrl: 'ServerUrl', + apmEnvironment: 'Environment', +}; export const dotnet = `{ -"ElasticApm": { -"SecretToken": "{{{secretToken}}}", -"ServerUrls": "{{{apmServerUrl}}}", //Set custom APM Server URL (default: http://localhost:8200) -"ServiceName": "MyApp", //allowed characters: a-z, A-Z, 0-9, -, _, and space. Default is the entry assembly of the application -"Environment": "production", // Set the service environment -} + "ElasticApm": { + "${dotnetVariables.apmServiceName}": "{{{apmServiceName}}}", //allowed characters: a-z, A-Z, 0-9, -, _, and space. Default is the entry assembly of the application + "${dotnetVariables.secretToken}": "{{{secretToken}}}", + "${dotnetVariables.apmServerUrl}": "{{{apmServerUrl}}}", //Set custom APM Server URL (default: http://localhost:8200) + "${dotnetVariables.apmEnvironment}": "{{{apmEnvironment}}}", // Set the service environment + } }`; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/flask.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/flask.ts index 51e69b08a24a5..11423c4e059db 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/flask.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/flask.ts @@ -7,6 +7,13 @@ import { i18n } from '@kbn/i18n'; +export const flaskVariables = { + apmServiceName: 'SERVICE_NAME', + secretToken: 'SECRET_TOKEN', + apmServerUrl: 'SERVER_URL', + apmEnvironment: 'ENVIRONMENT', +}; + export const flask = `# ${i18n.translate( 'xpack.apm.tutorial.flaskClient.configure.commands.initializeUsingEnvironmentVariablesComment', { @@ -38,7 +45,7 @@ app.config['ELASTIC_APM'] = { defaultMessage: 'a-z, A-Z, 0-9, -, _, and space', } )} -#'SERVICE_NAME': 'unknown-python-service', +#'${flaskVariables.apmServiceName}': '{{{apmServiceName}}}', # ${i18n.translate( 'xpack.apm.tutorial.flaskClient.configure.commands.useIfApmServerRequiresTokenComment', @@ -46,7 +53,7 @@ app.config['ELASTIC_APM'] = { defaultMessage: 'Use if APM Server requires a secret token', } )} -'SECRET_TOKEN': '{{{secretToken}}}', +'${flaskVariables.secretToken}': '{{{secretToken}}}', # ${i18n.translate( 'xpack.apm.tutorial.flaskClient.configure.commands.setCustomApmServerUrlComment', @@ -56,7 +63,7 @@ app.config['ELASTIC_APM'] = { values: { defaultApmServerUrl: 'http://localhost:8200' }, } )} -'SERVER_URL': '{{{apmServerUrl}}}', +'${flaskVariables.apmServerUrl}': '{{{apmServerUrl}}}', # ${i18n.translate( 'xpack.apm.tutorial.flaskClient.configure.commands.setServiceEnvironmentComment', @@ -64,7 +71,7 @@ app.config['ELASTIC_APM'] = { defaultMessage: 'Set the service environment', } )} -'ENVIRONMENT': 'production', +'${flaskVariables.apmEnvironment}': '{{{apmEnvironment}}}', } apm = ElasticAPM(app)`; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_apm_agent_commands.test.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_apm_agent_commands.test.ts index ba21a35768c42..efbcfae955a55 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_apm_agent_commands.test.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_apm_agent_commands.test.ts @@ -8,6 +8,10 @@ import { getApmAgentCommands } from './get_apm_agent_commands'; describe('getCommands', () => { + const defaultValues = { + apmServiceName: 'my-service-name', + apmEnvironment: 'production', + }; describe('unknown agent', () => { it('renders empty command', () => { const commands = getApmAgentCommands({ @@ -16,6 +20,7 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).toBe(''); }); @@ -25,15 +30,16 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'java', policyDetails: {}, + defaultValues, }); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls= \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token= \\\\ + -Delastic.apm.server_url= \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); it('renders with secret token and url', () => { @@ -43,16 +49,17 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=localhost:8220 \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token=foobar \\\\ + -Delastic.apm.server_url=localhost:8220 \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); }); @@ -61,6 +68,7 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'js', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -68,7 +76,7 @@ describe('getCommands', () => { var apm = initApm({ // Set required service name (allowed characters: a-z, A-Z, 0-9, -, _, and space) - serviceName: 'your-app-name', + serviceName: 'my-service-name', // Set custom APM Server URL (default: http://localhost:8200) serverUrl: '', @@ -88,6 +96,7 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -95,7 +104,7 @@ describe('getCommands', () => { var apm = initApm({ // Set required service name (allowed characters: a-z, A-Z, 0-9, -, _, and space) - serviceName: 'your-app-name', + serviceName: 'my-service-name', // Set custom APM Server URL (default: http://localhost:8200) serverUrl: 'localhost:8220', @@ -114,6 +123,7 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'node', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -122,7 +132,7 @@ describe('getCommands', () => { // Override the service name from package.json // Allowed characters: a-z, A-Z, 0-9, -, _, and space - serviceName: '', + serviceName: 'my-service-name', // Use if APM Server requires a secret token secretToken: '', @@ -142,6 +152,7 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -150,7 +161,7 @@ describe('getCommands', () => { // Override the service name from package.json // Allowed characters: a-z, A-Z, 0-9, -, _, and space - serviceName: '', + serviceName: 'my-service-name', // Use if APM Server requires a secret token secretToken: 'foobar', @@ -169,6 +180,7 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'django', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -181,7 +193,7 @@ describe('getCommands', () => { ELASTIC_APM = { # Set the required service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space - #'SERVICE_NAME': 'unknown-python-service', + #'SERVICE_NAME': 'my-service-name', # Use if APM Server requires a secret token 'SECRET_TOKEN': '', @@ -207,6 +219,7 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -219,7 +232,7 @@ describe('getCommands', () => { ELASTIC_APM = { # Set the required service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space - #'SERVICE_NAME': 'unknown-python-service', + #'SERVICE_NAME': 'my-service-name', # Use if APM Server requires a secret token 'SECRET_TOKEN': 'foobar', @@ -244,6 +257,7 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'flask', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -257,7 +271,7 @@ describe('getCommands', () => { app.config['ELASTIC_APM'] = { # Set the required service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space - #'SERVICE_NAME': 'unknown-python-service', + #'SERVICE_NAME': 'my-service-name', # Use if APM Server requires a secret token 'SECRET_TOKEN': '', @@ -279,6 +293,7 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -292,7 +307,7 @@ describe('getCommands', () => { app.config['ELASTIC_APM'] = { # Set the required service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space - #'SERVICE_NAME': 'unknown-python-service', + #'SERVICE_NAME': 'my-service-name', # Use if APM Server requires a secret token 'SECRET_TOKEN': 'foobar', @@ -313,6 +328,7 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'rails', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -320,7 +336,7 @@ describe('getCommands', () => { # Set the service name - allowed characters: a-z, A-Z, 0-9, -, _ and space # Defaults to the name of your Rails app - service_name: 'my-service' + service_name: 'my-service-name' # Use if APM Server requires a secret token secret_token: '' @@ -339,6 +355,7 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -346,7 +363,7 @@ describe('getCommands', () => { # Set the service name - allowed characters: a-z, A-Z, 0-9, -, _ and space # Defaults to the name of your Rails app - service_name: 'my-service' + service_name: 'my-service-name' # Use if APM Server requires a secret token secret_token: 'foobar' @@ -364,6 +381,7 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'rack', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -371,7 +389,7 @@ describe('getCommands', () => { # Set the service name - allowed characters: a-z, A-Z, 0-9, -, _ and space # Defaults to the name of your Rack app's class. - service_name: 'my-service' + service_name: 'my-service-name' # Use if APM Server requires a token secret_token: '' @@ -390,6 +408,7 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -397,7 +416,7 @@ describe('getCommands', () => { # Set the service name - allowed characters: a-z, A-Z, 0-9, -, _ and space # Defaults to the name of your Rack app's class. - service_name: 'my-service' + service_name: 'my-service-name' # Use if APM Server requires a token secret_token: 'foobar' @@ -415,6 +434,7 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'go', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -422,16 +442,16 @@ describe('getCommands', () => { # Set the service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space. # If ELASTIC_APM_SERVICE_NAME is not specified, the executable name will be used. - export ELASTIC_APM_SERVICE_NAME= - - # Set custom APM Server URL (default: http://localhost:8200) - export ELASTIC_APM_SERVER_URL= + export ELASTIC_APM_SERVICE_NAME=my-service-name # Use if APM Server requires a secret token export ELASTIC_APM_SECRET_TOKEN= + # Set custom APM Server URL (default: http://localhost:8200) + export ELASTIC_APM_SERVER_URL= + # Set the service environment - export ELASTIC_APM_ENVIRONMENT= + export ELASTIC_APM_ENVIRONMENT=production " `); }); @@ -442,6 +462,7 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` @@ -449,16 +470,16 @@ describe('getCommands', () => { # Set the service name. Allowed characters: # a-z, A-Z, 0-9, -, _, and space. # If ELASTIC_APM_SERVICE_NAME is not specified, the executable name will be used. - export ELASTIC_APM_SERVICE_NAME= - - # Set custom APM Server URL (default: http://localhost:8200) - export ELASTIC_APM_SERVER_URL=localhost:8220 + export ELASTIC_APM_SERVICE_NAME=my-service-name # Use if APM Server requires a secret token export ELASTIC_APM_SECRET_TOKEN=foobar + # Set custom APM Server URL (default: http://localhost:8200) + export ELASTIC_APM_SERVER_URL=localhost:8220 + # Set the service environment - export ELASTIC_APM_ENVIRONMENT= + export ELASTIC_APM_ENVIRONMENT=production " `); }); @@ -468,16 +489,17 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'dotnet', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` "{ - \\"ElasticApm\\": { - \\"SecretToken\\": \\"\\", - \\"ServerUrls\\": \\"\\", //Set custom APM Server URL (default: http://localhost:8200) - \\"ServiceName\\": \\"MyApp\\", //allowed characters: a-z, A-Z, 0-9, -, _, and space. Default is the entry assembly of the application - \\"Environment\\": \\"production\\", // Set the service environment - } + \\"ElasticApm\\": { + \\"ServiceName\\": \\"my-service-name\\", //allowed characters: a-z, A-Z, 0-9, -, _, and space. Default is the entry assembly of the application + \\"SecretToken\\": \\"\\", + \\"ServerUrl\\": \\"\\", //Set custom APM Server URL (default: http://localhost:8200) + \\"Environment\\": \\"production\\", // Set the service environment + } }" `); }); @@ -488,16 +510,17 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` "{ - \\"ElasticApm\\": { - \\"SecretToken\\": \\"foobar\\", - \\"ServerUrls\\": \\"localhost:8220\\", //Set custom APM Server URL (default: http://localhost:8200) - \\"ServiceName\\": \\"MyApp\\", //allowed characters: a-z, A-Z, 0-9, -, _, and space. Default is the entry assembly of the application - \\"Environment\\": \\"production\\", // Set the service environment - } + \\"ElasticApm\\": { + \\"ServiceName\\": \\"my-service-name\\", //allowed characters: a-z, A-Z, 0-9, -, _, and space. Default is the entry assembly of the application + \\"SecretToken\\": \\"foobar\\", + \\"ServerUrl\\": \\"localhost:8220\\", //Set custom APM Server URL (default: http://localhost:8200) + \\"Environment\\": \\"production\\", // Set the service environment + } }" `); }); @@ -507,12 +530,14 @@ describe('getCommands', () => { const commands = getApmAgentCommands({ variantId: 'php', policyDetails: {}, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` - "elastic_apm.server_url=\\"\\" + "elastic_apm.service_name=\\"my-service-name\\" elastic_apm.secret_token=\\"\\" - elastic_apm.service_name=\\"My service\\" + elastic_apm.server_url=\\"\\" + elastic_apm.environment=\\"production\\" " `); }); @@ -523,12 +548,14 @@ describe('getCommands', () => { apmServerUrl: 'localhost:8220', secretToken: 'foobar', }, + defaultValues, }); expect(commands).not.toBe(''); expect(commands).toMatchInlineSnapshot(` - "elastic_apm.server_url=\\"localhost:8220\\" + "elastic_apm.service_name=\\"my-service-name\\" elastic_apm.secret_token=\\"foobar\\" - elastic_apm.service_name=\\"My service\\" + elastic_apm.server_url=\\"localhost:8220\\" + elastic_apm.environment=\\"production\\" " `); }); diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_apm_agent_commands.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_apm_agent_commands.ts index d217397f03f2e..ab184a8d94cd0 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_apm_agent_commands.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/get_apm_agent_commands.ts @@ -5,16 +5,16 @@ * 2.0. */ import Mustache from 'mustache'; -import { java } from './java'; -import { node } from './node'; -import { django } from './django'; -import { flask } from './flask'; -import { rails } from './rails'; -import { rack } from './rack'; -import { go } from './go'; -import { dotnet } from './dotnet'; -import { php } from './php'; -import { rum, rumScript } from './rum'; +import { java, javaVariables } from './java'; +import { node, nodeVariables } from './node'; +import { django, djangoVariables } from './django'; +import { flask, flaskVariables } from './flask'; +import { rails, railsVariables } from './rails'; +import { rack, rackVariables } from './rack'; +import { go, goVariables } from './go'; +import { dotnet, dotnetVariables } from './dotnet'; +import { php, phpVariables } from './php'; +import { rum, rumScript, rumVariables } from './rum'; const apmAgentCommandsMap: Record = { java, @@ -30,19 +30,46 @@ const apmAgentCommandsMap: Record = { js_script: rumScript, }; +interface Variables { + [key: string]: string; +} + +const apmAgentVariablesMap: Record = { + java: javaVariables, + node: nodeVariables, + django: djangoVariables, + flask: flaskVariables, + rails: railsVariables, + rack: rackVariables, + go: goVariables, + dotnet: dotnetVariables, + php: phpVariables, + js: rumVariables, +}; + export function getApmAgentCommands({ variantId, policyDetails, + defaultValues, }: { variantId: string; policyDetails: { apmServerUrl?: string; secretToken?: string; }; + defaultValues: { + apmServiceName: string; + apmEnvironment: string; + }; }) { const commands = apmAgentCommandsMap[variantId]; if (!commands) { return ''; } - return Mustache.render(commands, policyDetails); + + return Mustache.render(commands, { ...policyDetails, ...defaultValues }); +} + +export function getApmAgentVariables(variantId: string) { + return apmAgentVariablesMap[variantId]; } diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/go.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/go.ts index a3900420d6fde..27bb7b6c46aae 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/go.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/go.ts @@ -7,6 +7,13 @@ import { i18n } from '@kbn/i18n'; +export const goVariables = { + apmServiceName: 'ELASTIC_APM_SERVICE_NAME', + secretToken: 'ELASTIC_APM_SECRET_TOKEN', + apmServerUrl: 'ELASTIC_APM_SERVER_URL', + apmEnvironment: 'ELASTIC_APM_ENVIRONMENT', +}; + export const go = `# ${i18n.translate( 'xpack.apm.tutorial.goClient.configure.commands.initializeUsingEnvironmentVariablesComment', { @@ -28,25 +35,25 @@ export const go = `# ${i18n.translate( 'If ELASTIC_APM_SERVICE_NAME is not specified, the executable name will be used.', } )} -export ELASTIC_APM_SERVICE_NAME= +export ${goVariables.apmServiceName}={{{apmServiceName}}} # ${i18n.translate( - 'xpack.apm.tutorial.goClient.configure.commands.setCustomApmServerUrlComment', + 'xpack.apm.tutorial.goClient.configure.commands.useIfApmRequiresTokenComment', { - defaultMessage: - 'Set custom APM Server URL (default: {defaultApmServerUrl})', - values: { defaultApmServerUrl: 'http://localhost:8200' }, + defaultMessage: 'Use if APM Server requires a secret token', } )} -export ELASTIC_APM_SERVER_URL={{{apmServerUrl}}} +export ${goVariables.secretToken}={{{secretToken}}} # ${i18n.translate( - 'xpack.apm.tutorial.goClient.configure.commands.useIfApmRequiresTokenComment', + 'xpack.apm.tutorial.goClient.configure.commands.setCustomApmServerUrlComment', { - defaultMessage: 'Use if APM Server requires a secret token', + defaultMessage: + 'Set custom APM Server URL (default: {defaultApmServerUrl})', + values: { defaultApmServerUrl: 'http://localhost:8200' }, } )} -export ELASTIC_APM_SECRET_TOKEN={{{secretToken}}} +export ${goVariables.apmServerUrl}={{{apmServerUrl}}} # ${i18n.translate( 'xpack.apm.tutorial.goClient.configure.commands.setServiceEnvironment', @@ -54,5 +61,5 @@ export ELASTIC_APM_SECRET_TOKEN={{{secretToken}}} defaultMessage: 'Set the service environment', } )} -export ELASTIC_APM_ENVIRONMENT= +export ${goVariables.apmEnvironment}={{{apmEnvironment}}} `; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/java.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/java.ts index 249907a9b0c4b..2d056b3a242f3 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/java.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/java.ts @@ -5,10 +5,17 @@ * 2.0. */ +export const javaVariables = { + apmServiceName: 'Delastic.apm.service_name', + secretToken: 'Delastic.apm.secret_token', + apmServerUrl: 'Delastic.apm.server_url', + apmEnvironment: 'Delastic.apm.environment', +}; + export const java = `java -javaagent:/path/to/elastic-apm-agent-.jar \\ --Delastic.apm.service_name=my-application \\ --Delastic.apm.server_urls={{{apmServerUrl}}} \\ --Delastic.apm.secret_token={{{secretToken}}} \\ --Delastic.apm.environment=production \\ +-${javaVariables.apmServiceName}={{{apmServiceName}}} \\ +-${javaVariables.secretToken}={{{secretToken}}} \\ +-${javaVariables.apmServerUrl}={{{apmServerUrl}}} \\ +-${javaVariables.apmEnvironment}=production \\ -Delastic.apm.application_packages=org.example \\ --jar my-application.jar`; +-jar {{{apmServiceName}}}.jar`; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/node.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/node.ts index 31f9fac0ed480..8b8ba07a7cb9c 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/node.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/node.ts @@ -6,6 +6,13 @@ */ import { i18n } from '@kbn/i18n'; +export const nodeVariables = { + apmServiceName: 'serviceName', + secretToken: 'secretToken', + apmServerUrl: 'serverUrl', + apmEnvironment: 'environment', +}; + export const node = `// ${i18n.translate( 'xpack.apm.tutorial.nodeClient.configure.commands.addThisToTheFileTopComment', { @@ -27,7 +34,7 @@ var apm = require('elastic-apm-node').start({ defaultMessage: 'Allowed characters: a-z, A-Z, 0-9, -, _, and space', } )} -serviceName: '', +${nodeVariables.apmServiceName}: '{{{apmServiceName}}}', // ${i18n.translate( 'xpack.apm.tutorial.nodeClient.configure.commands.useIfApmRequiresTokenComment', @@ -35,7 +42,7 @@ serviceName: '', defaultMessage: 'Use if APM Server requires a secret token', } )} -secretToken: '{{{secretToken}}}', +${nodeVariables.secretToken}: '{{{secretToken}}}', // ${i18n.translate( 'xpack.apm.tutorial.nodeClient.configure.commands.setCustomApmServerUrlComment', @@ -45,7 +52,7 @@ secretToken: '{{{secretToken}}}', values: { defaultApmServerUrl: 'http://localhost:8200' }, } )} -serverUrl: '{{{apmServerUrl}}}', +${nodeVariables.apmServerUrl}: '{{{apmServerUrl}}}', // ${i18n.translate( 'xpack.apm.tutorial.nodeClient.configure.commands.setCustomServiceEnvironmentComment', @@ -53,5 +60,5 @@ serverUrl: '{{{apmServerUrl}}}', defaultMessage: 'Set the service environment', } )} -environment: 'production' +${nodeVariables.apmEnvironment}: '{{{apmEnvironment}}}' })`; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/php.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/php.ts index dba4147b8afbc..4ce1590bab6a2 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/php.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/php.ts @@ -4,8 +4,14 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ - -export const php = `elastic_apm.server_url="{{{apmServerUrl}}}" -elastic_apm.secret_token="{{{secretToken}}}" -elastic_apm.service_name="My service" +export const phpVariables = { + apmServiceName: 'elastic_apm.service_name', + secretToken: 'elastic_apm.secret_token', + apmServerUrl: 'elastic_apm.server_url', + apmEnvironment: 'elastic_apm.environment', +}; +export const php = `${phpVariables.apmServiceName}="{{{apmServiceName}}}" +${phpVariables.secretToken}="{{{secretToken}}}" +${phpVariables.apmServerUrl}="{{{apmServerUrl}}}" +${phpVariables.apmEnvironment}="{{{apmEnvironment}}}" `; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/rack.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/rack.ts index 9195ad9f15666..06fc6031bf32f 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/rack.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/rack.ts @@ -7,6 +7,13 @@ import { i18n } from '@kbn/i18n'; +export const rackVariables = { + apmServiceName: 'service_name', + secretToken: 'secret_token', + apmServerUrl: 'server_url', + apmEnvironment: 'environment', +}; + export const rack = `# config/elastic_apm.yml: # ${i18n.translate( @@ -22,7 +29,7 @@ export const rack = `# config/elastic_apm.yml: defaultMessage: "Defaults to the name of your Rack app's class.", } )} -service_name: 'my-service' +${rackVariables.apmServiceName}: '{{{apmServiceName}}}' # ${i18n.translate( 'xpack.apm.tutorial.rackClient.createConfig.commands.useIfApmServerRequiresTokenComment', @@ -30,7 +37,7 @@ service_name: 'my-service' defaultMessage: 'Use if APM Server requires a token', } )} -secret_token: '{{{secretToken}}}' +${rackVariables.secretToken}: '{{{secretToken}}}' # ${i18n.translate( 'xpack.apm.tutorial.rackClient.createConfig.commands.setCustomApmServerComment', @@ -39,7 +46,7 @@ secret_token: '{{{secretToken}}}' values: { defaultServerUrl: 'http://localhost:8200' }, } )} -server_url: '{{{apmServerUrl}}}', +${rackVariables.apmServerUrl}: '{{{apmServerUrl}}}', # ${i18n.translate( 'xpack.apm.tutorial.rackClient.createConfig.commands.setServiceEnvironment', @@ -47,4 +54,4 @@ server_url: '{{{apmServerUrl}}}', defaultMessage: 'Set the service environment', } )} -environment: 'production'`; +${rackVariables.apmEnvironment}: '{{{apmEnvironment}}}'`; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/rails.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/rails.ts index 0f8a5508e1ceb..c7d5971f43e3b 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/rails.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/rails.ts @@ -5,17 +5,24 @@ * 2.0. */ +export const railsVariables = { + apmServiceName: 'service_name', + secretToken: 'secret_token', + apmServerUrl: 'server_url', + apmEnvironment: 'environment', +}; + export const rails = `# config/elastic_apm.yml: # Set the service name - allowed characters: a-z, A-Z, 0-9, -, _ and space # Defaults to the name of your Rails app -service_name: 'my-service' +${railsVariables.apmServiceName}: '{{{apmServiceName}}}' # Use if APM Server requires a secret token -secret_token: '{{{secretToken}}}' +${railsVariables.secretToken}: '{{{secretToken}}}' # Set the custom APM Server URL (default: http://localhost:8200) -server_url: '{{{apmServerUrl}}}' +${railsVariables.apmServerUrl}: '{{{apmServerUrl}}}' # Set the service environment -environment: 'production'`; +${railsVariables.apmEnvironment}: '{{{apmEnvironment}}}'`; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/commands/rum.ts b/x-pack/plugins/apm/public/tutorial/config_agent/commands/rum.ts index f5de61f64c63a..32dca0dd4d784 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/commands/rum.ts +++ b/x-pack/plugins/apm/public/tutorial/config_agent/commands/rum.ts @@ -7,6 +7,13 @@ import { i18n } from '@kbn/i18n'; +export const rumVariables = { + apmServiceName: 'serviceName', + apmServerUrl: 'serverUrl', + apmServiceVersion: 'serviceVersion', + apmEnvironment: 'environment', +}; + export const rum = `import { init as initApm } from '@elastic/apm-rum' var apm = initApm({ @@ -17,7 +24,7 @@ var apm = initApm({ 'Set required service name (allowed characters: a-z, A-Z, 0-9, -, _, and space)', } )} - serviceName: 'your-app-name', + ${rumVariables.apmServiceName}: '{{{apmServiceName}}}', // ${i18n.translate( 'xpack.apm.tutorial.jsClient.installDependency.commands.setCustomApmServerUrlComment', @@ -27,7 +34,7 @@ var apm = initApm({ values: { defaultApmServerUrl: 'http://localhost:8200' }, } )} - serverUrl: '{{{apmServerUrl}}}', + ${rumVariables.apmServerUrl}: '{{{apmServerUrl}}}', // ${i18n.translate( 'xpack.apm.tutorial.jsClient.installDependency.commands.setServiceVersionComment', @@ -44,15 +51,15 @@ var apm = initApm({ defaultMessage: 'Set the service environment', } )} - environment: 'production' + ${rumVariables.apmEnvironment}: '{{{apmEnvironment}}}' })`; export const rumScript = `\ `; diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/index.test.tsx b/x-pack/plugins/apm/public/tutorial/config_agent/index.test.tsx index c41f6df5369f6..b1ebe783518d0 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/index.test.tsx +++ b/x-pack/plugins/apm/public/tutorial/config_agent/index.test.tsx @@ -24,14 +24,14 @@ const fleetAgents = [ { id: '1', name: 'agent foo', - apmServerUrl: 'foo', - secretToken: 'foo', + apmServerUrl: 'foo url', + secretToken: 'foo token', }, { id: '2', name: 'agent bar', - apmServerUrl: 'bar', - secretToken: 'bar', + apmServerUrl: 'bar url', + secretToken: 'bar token', }, ]; @@ -87,12 +87,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=http://localhost:8200 \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token= \\\\ + -Delastic.apm.server_url=http://localhost:8200 \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); fireEvent.click(component.getByTestId('comboBoxToggleListButton')); @@ -101,12 +101,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=foo \\\\ - -Delastic.apm.secret_token=foo \\\\ + -Delastic.apm.service_name=my-service-name \\\\ + -Delastic.apm.secret_token=foo token \\\\ + -Delastic.apm.server_url=foo url \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); describe('running on prem', () => { @@ -138,12 +138,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=http://localhost:8200 \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token= \\\\ + -Delastic.apm.server_url=http://localhost:8200 \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); it('shows get started with fleet link when there are no fleet agents', async () => { @@ -174,12 +174,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=http://localhost:8200 \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token= \\\\ + -Delastic.apm.server_url=http://localhost:8200 \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); expectTextsInDocument(component, ['Get started with fleet']); }); @@ -216,12 +216,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=cloud_url \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token=cloud_token \\\\ + -Delastic.apm.server_url=cloud_url \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); it('selects policy elastic agent on cloud when available by default', async () => { @@ -255,12 +255,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=apm_cloud_url \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token=apm_cloud_token \\\\ + -Delastic.apm.server_url=apm_cloud_url \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); @@ -287,12 +287,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=http://localhost:8200 \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token= \\\\ + -Delastic.apm.server_url=http://localhost:8200 \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); }); @@ -350,12 +350,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=http://localhost:8200 \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token= \\\\ + -Delastic.apm.server_url=http://localhost:8200 \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); it('shows default standalone on cloud', async () => { @@ -387,12 +387,12 @@ describe('TutorialConfigAgent', () => { expect(commands).not.toEqual(''); expect(commands).toMatchInlineSnapshot(` "java -javaagent:/path/to/elastic-apm-agent-<version>.jar \\\\ - -Delastic.apm.service_name=my-application \\\\ - -Delastic.apm.server_urls=cloud_url \\\\ + -Delastic.apm.service_name=my-service-name \\\\ -Delastic.apm.secret_token=cloud_token \\\\ + -Delastic.apm.server_url=cloud_url \\\\ -Delastic.apm.environment=production \\\\ -Delastic.apm.application_packages=org.example \\\\ - -jar my-application.jar" + -jar my-service-name.jar" `); }); }); diff --git a/x-pack/plugins/apm/public/tutorial/config_agent/index.tsx b/x-pack/plugins/apm/public/tutorial/config_agent/index.tsx index cba037d8939d8..936915250fcd1 100644 --- a/x-pack/plugins/apm/public/tutorial/config_agent/index.tsx +++ b/x-pack/plugins/apm/public/tutorial/config_agent/index.tsx @@ -122,7 +122,6 @@ function TutorialConfigAgent({ } const hasFleetAgents = !!data.fleetAgents.length; - return ( <> {value}, + render: (_, { value }) => ( + + {value} + + ), }, { field: 'notes', diff --git a/x-pack/plugins/apm/server/routes/traces/route.ts b/x-pack/plugins/apm/server/routes/traces/route.ts index 4036495a18076..336e862bcd09d 100644 --- a/x-pack/plugins/apm/server/routes/traces/route.ts +++ b/x-pack/plugins/apm/server/routes/traces/route.ts @@ -169,14 +169,14 @@ const findTracesRoute = createApmServerRoute({ handler: async ( resources ): Promise<{ - samples: Array<{ traceId: string; transactionId: string }>; + traceSamples: Array<{ traceId: string; transactionId: string }>; }> => { const { start, end, environment, query, type } = resources.params.query; const setup = await setupRequest(resources); return { - samples: await getTraceSamplesByQuery({ + traceSamples: await getTraceSamplesByQuery({ setup, start, end, diff --git a/x-pack/plugins/canvas/canvas_plugin_src/renderers/__stories__/render.tsx b/x-pack/plugins/canvas/canvas_plugin_src/renderers/__stories__/render.tsx index b34a7c02eb4b1..e53dce0a46886 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/renderers/__stories__/render.tsx +++ b/x-pack/plugins/canvas/canvas_plugin_src/renderers/__stories__/render.tsx @@ -15,6 +15,7 @@ export const defaultHandlers: RendererHandlers = { getFilter: () => 'filter', getRenderMode: () => 'view', isSyncColorsEnabled: () => false, + isSyncCursorEnabled: () => true, isSyncTooltipsEnabled: () => false, isInteractive: () => true, onComplete: (fn) => undefined, diff --git a/x-pack/plugins/canvas/public/lib/create_handlers.ts b/x-pack/plugins/canvas/public/lib/create_handlers.ts index dbd542f18b537..374bdaff99721 100644 --- a/x-pack/plugins/canvas/public/lib/create_handlers.ts +++ b/x-pack/plugins/canvas/public/lib/create_handlers.ts @@ -28,6 +28,7 @@ export const createBaseHandlers = (): IInterpreterRenderHandlers => ({ getRenderMode: () => 'view', isSyncColorsEnabled: () => false, isSyncTooltipsEnabled: () => false, + isSyncCursorEnabled: () => true, isInteractive: () => true, getExecutionContext: () => undefined, }); diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/assignees.ts b/x-pack/plugins/cases/common/api/cases/user_actions/assignees.ts index e4b8b8aa1f6e9..4f218f5751960 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/assignees.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/assignees.ts @@ -7,7 +7,8 @@ import * as rt from 'io-ts'; import { CaseAssigneesRt } from '../assignee'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const AssigneesUserActionPayloadRt = rt.type({ assignees: CaseAssigneesRt }); diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/comment.ts b/x-pack/plugins/cases/common/api/cases/user_actions/comment.ts index 652780b92f779..7826f450bd03b 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/comment.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/comment.ts @@ -7,7 +7,8 @@ import * as rt from 'io-ts'; import { CommentRequestRt } from '../comment'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const CommentUserActionPayloadRt = rt.type({ comment: CommentRequestRt }); diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/connector.ts b/x-pack/plugins/cases/common/api/cases/user_actions/connector.ts index 90bea5926e97f..521ac99721e02 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/connector.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/connector.ts @@ -7,7 +7,8 @@ import * as rt from 'io-ts'; import { CaseUserActionConnectorRt, CaseConnectorRt } from '../../connectors'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const ConnectorUserActionPayloadWithoutConnectorIdRt = rt.type({ connector: CaseUserActionConnectorRt, diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/create_case.ts b/x-pack/plugins/cases/common/api/cases/user_actions/create_case.ts index b4bc133ee73f3..60aa8132ff413 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/create_case.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/create_case.ts @@ -7,7 +7,8 @@ import * as rt from 'io-ts'; import { AssigneesUserActionPayloadRt } from './assignees'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; import { ConnectorUserActionPayloadRt, ConnectorUserActionPayloadWithoutConnectorIdRt, diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/delete_case.ts b/x-pack/plugins/cases/common/api/cases/user_actions/delete_case.ts index d024a8d10ce5f..f137b19616255 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/delete_case.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/delete_case.ts @@ -6,7 +6,8 @@ */ import * as rt from 'io-ts'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const DeleteCaseUserActionRt = rt.type({ type: rt.literal(ActionTypes.delete_case), diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/description.ts b/x-pack/plugins/cases/common/api/cases/user_actions/description.ts index db409e245cec1..89fc4627ae83e 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/description.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/description.ts @@ -6,7 +6,8 @@ */ import * as rt from 'io-ts'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const DescriptionUserActionPayloadRt = rt.type({ description: rt.string }); diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/index.ts b/x-pack/plugins/cases/common/api/cases/user_actions/index.ts index 6312e670533b9..ff8aea2fad9cd 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/index.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/index.ts @@ -7,12 +7,8 @@ import * as rt from 'io-ts'; -import { - ActionsRt, - UserActionCommonAttributesRt, - CaseUserActionSavedObjectIdsRt, - ActionTypesRt, -} from './common'; +import type { ActionsRt, ActionTypesRt } from './common'; +import { UserActionCommonAttributesRt, CaseUserActionSavedObjectIdsRt } from './common'; import { CreateCaseUserActionRt } from './create_case'; import { DescriptionUserActionRt } from './description'; import { CommentUserActionRt } from './comment'; diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/pushed.ts b/x-pack/plugins/cases/common/api/cases/user_actions/pushed.ts index c93fd1f6e4975..2ae500e32ec9f 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/pushed.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/pushed.ts @@ -7,7 +7,8 @@ import * as rt from 'io-ts'; import { CaseUserActionExternalServiceRt, CaseExternalServiceBasicRt } from '../case'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const PushedUserActionPayloadWithoutConnectorIdRt = rt.type({ externalService: CaseUserActionExternalServiceRt, diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/settings.ts b/x-pack/plugins/cases/common/api/cases/user_actions/settings.ts index 0afbb6e1632d9..5094ec7680b1c 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/settings.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/settings.ts @@ -6,7 +6,8 @@ */ import * as rt from 'io-ts'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; import { SettingsRt } from '../case'; export const SettingsUserActionPayloadRt = rt.type({ settings: SettingsRt }); diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/severity.ts b/x-pack/plugins/cases/common/api/cases/user_actions/severity.ts index 2db5a0880dc09..c7ea0cb1e4b3f 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/severity.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/severity.ts @@ -7,7 +7,8 @@ import * as rt from 'io-ts'; import { CaseSeverityRt } from '../case'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const SeverityUserActionPayloadRt = rt.type({ severity: CaseSeverityRt }); diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/status.ts b/x-pack/plugins/cases/common/api/cases/user_actions/status.ts index 09dceaa46b2de..97502433d69e0 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/status.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/status.ts @@ -7,7 +7,8 @@ import * as rt from 'io-ts'; import { CaseStatusRt } from '../status'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const StatusUserActionPayloadRt = rt.type({ status: CaseStatusRt }); diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/tags.ts b/x-pack/plugins/cases/common/api/cases/user_actions/tags.ts index 84f967ceda547..7da5798e85ebd 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/tags.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/tags.ts @@ -6,7 +6,8 @@ */ import * as rt from 'io-ts'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const TagsUserActionPayloadRt = rt.type({ tags: rt.array(rt.string) }); diff --git a/x-pack/plugins/cases/common/api/cases/user_actions/title.ts b/x-pack/plugins/cases/common/api/cases/user_actions/title.ts index c92f07d1d7693..b0b54422488bd 100644 --- a/x-pack/plugins/cases/common/api/cases/user_actions/title.ts +++ b/x-pack/plugins/cases/common/api/cases/user_actions/title.ts @@ -6,7 +6,8 @@ */ import * as rt from 'io-ts'; -import { ActionTypes, UserActionWithAttributes } from './common'; +import type { UserActionWithAttributes } from './common'; +import { ActionTypes } from './common'; export const TitleUserActionPayloadRt = rt.type({ title: rt.string }); diff --git a/x-pack/plugins/cases/common/api/runtime_types.ts b/x-pack/plugins/cases/common/api/runtime_types.ts index 07ca40e89a2e2..b11828d3ae6b7 100644 --- a/x-pack/plugins/cases/common/api/runtime_types.ts +++ b/x-pack/plugins/cases/common/api/runtime_types.ts @@ -10,7 +10,7 @@ import { either, fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; import { pipe } from 'fp-ts/lib/pipeable'; -import { JsonArray, JsonObject, JsonValue } from '@kbn/utility-types'; +import type { JsonArray, JsonObject, JsonValue } from '@kbn/utility-types'; import { formatErrors } from '@kbn/securitysolution-io-ts-utils'; type ErrorFactory = (message: string) => Error; diff --git a/x-pack/plugins/cases/common/constants.ts b/x-pack/plugins/cases/common/constants.ts index 3c8f422d4eb7a..278cfc1050286 100644 --- a/x-pack/plugins/cases/common/constants.ts +++ b/x-pack/plugins/cases/common/constants.ts @@ -5,7 +5,7 @@ * 2.0. */ import { CASE_VIEW_PAGE_TABS } from './types'; -import { CasesFeaturesAllRequired } from './ui/types'; +import type { CasesFeaturesAllRequired } from './ui/types'; export const DEFAULT_DATE_FORMAT = 'dateFormat' as const; export const DEFAULT_DATE_FORMAT_TZ = 'dateFormat:tz' as const; diff --git a/x-pack/plugins/cases/common/ui/types.ts b/x-pack/plugins/cases/common/ui/types.ts index 65a7fec902f7b..a1cc7ad9eb91f 100644 --- a/x-pack/plugins/cases/common/ui/types.ts +++ b/x-pack/plugins/cases/common/ui/types.ts @@ -6,13 +6,13 @@ */ import type { ResolvedSimpleSavedObject } from '@kbn/core/public'; -import { +import type { CREATE_CASES_CAPABILITY, DELETE_CASES_CAPABILITY, READ_CASES_CAPABILITY, UPDATE_CASES_CAPABILITY, } from '..'; -import { +import type { CasePatchRequest, CaseStatuses, User, @@ -30,8 +30,8 @@ import { CommentResponseExternalReferenceType, CommentResponseTypePersistableState, } from '../api'; -import { PUSH_CASES_CAPABILITY } from '../constants'; -import { SnakeToCamelCase } from '../types'; +import type { PUSH_CASES_CAPABILITY } from '../constants'; +import type { SnakeToCamelCase } from '../types'; type DeepRequired = { [K in keyof T]: DeepRequired } & Required; diff --git a/x-pack/plugins/cases/common/utils/attachments.ts b/x-pack/plugins/cases/common/utils/attachments.ts index 75446ebedb0ed..e98df664ed2d4 100644 --- a/x-pack/plugins/cases/common/utils/attachments.ts +++ b/x-pack/plugins/cases/common/utils/attachments.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { +import type { CommentRequest, CommentRequestExternalReferenceType, - CommentType, CommentRequestPersistableStateType, } from '../api'; +import { CommentType } from '../api'; /** * A type narrowing function for external reference attachments. diff --git a/x-pack/plugins/cases/common/utils/markdown_plugins/lens/parser.ts b/x-pack/plugins/cases/common/utils/markdown_plugins/lens/parser.ts index 58ebfd76d5ac5..832876c5759ce 100644 --- a/x-pack/plugins/cases/common/utils/markdown_plugins/lens/parser.ts +++ b/x-pack/plugins/cases/common/utils/markdown_plugins/lens/parser.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Plugin } from 'unified'; -import { RemarkTokenizer } from '@elastic/eui'; +import type { Plugin } from 'unified'; +import type { RemarkTokenizer } from '@elastic/eui'; import { LENS_ID } from './constants'; export const LensParser: Plugin = function () { diff --git a/x-pack/plugins/cases/common/utils/markdown_plugins/lens/serializer.ts b/x-pack/plugins/cases/common/utils/markdown_plugins/lens/serializer.ts index e99d9a8adc547..05f5516930978 100644 --- a/x-pack/plugins/cases/common/utils/markdown_plugins/lens/serializer.ts +++ b/x-pack/plugins/cases/common/utils/markdown_plugins/lens/serializer.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Plugin } from 'unified'; +import type { Plugin } from 'unified'; import type { TimeRange } from '@kbn/es-query'; import { LENS_ID } from './constants'; diff --git a/x-pack/plugins/cases/common/utils/markdown_plugins/timeline/parser.ts b/x-pack/plugins/cases/common/utils/markdown_plugins/timeline/parser.ts index 0decdae8c7348..8b6f435780dac 100644 --- a/x-pack/plugins/cases/common/utils/markdown_plugins/timeline/parser.ts +++ b/x-pack/plugins/cases/common/utils/markdown_plugins/timeline/parser.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Plugin } from 'unified'; -import { RemarkTokenizer } from '@elastic/eui'; +import type { Plugin } from 'unified'; +import type { RemarkTokenizer } from '@elastic/eui'; import * as i18n from './translations'; export const ID = 'timeline'; diff --git a/x-pack/plugins/cases/common/utils/markdown_plugins/timeline/serializer.ts b/x-pack/plugins/cases/common/utils/markdown_plugins/timeline/serializer.ts index b9448f93d95c3..e99baebfb0e95 100644 --- a/x-pack/plugins/cases/common/utils/markdown_plugins/timeline/serializer.ts +++ b/x-pack/plugins/cases/common/utils/markdown_plugins/timeline/serializer.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Plugin } from 'unified'; +import type { Plugin } from 'unified'; export interface TimelineSerializerProps { match: string; } diff --git a/x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts b/x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts index 96d1f478c19aa..0d25bbd3a2765 100644 --- a/x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts +++ b/x-pack/plugins/cases/common/utils/markdown_plugins/utils.ts @@ -11,7 +11,7 @@ import markdown from 'remark-parse'; import remarkStringify from 'remark-stringify'; import unified from 'unified'; -import { SerializableRecord } from '@kbn/utility-types'; +import type { SerializableRecord } from '@kbn/utility-types'; import type { TimeRange } from '@kbn/es-query'; import { LENS_ID, LensParser, LensSerializer } from './lens'; import { TimelineSerializer, TimelineParser } from './timeline'; diff --git a/x-pack/plugins/cases/common/utils/user_actions.ts b/x-pack/plugins/cases/common/utils/user_actions.ts index 3c9f819d4abe5..5c4420d26cd2a 100644 --- a/x-pack/plugins/cases/common/utils/user_actions.ts +++ b/x-pack/plugins/cases/common/utils/user_actions.ts @@ -5,8 +5,7 @@ * 2.0. */ -import { - ActionTypes, +import type { CommentUserAction, ConnectorUserAction, CreateCaseUserAction, @@ -17,7 +16,8 @@ import { TitleUserAction, UserActionTypes, } from '../api'; -import { SnakeToCamelCase } from '../types'; +import { ActionTypes } from '../api'; +import type { SnakeToCamelCase } from '../types'; type SnakeCaseOrCamelCaseUserAction< T extends 'snakeCase' | 'camelCase', diff --git a/x-pack/plugins/cases/common/utils/validators.ts b/x-pack/plugins/cases/common/utils/validators.ts index 0003e3a91fd6f..2358ed0a9c2c3 100644 --- a/x-pack/plugins/cases/common/utils/validators.ts +++ b/x-pack/plugins/cases/common/utils/validators.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CaseAssignees } from '../api'; +import type { CaseAssignees } from '../api'; import { MAX_ASSIGNEES_PER_CASE } from '../constants'; export const isInvalidTag = (value: string) => value.trim() === ''; diff --git a/x-pack/plugins/cases/public/api/__mocks__/index.ts b/x-pack/plugins/cases/public/api/__mocks__/index.ts index 1632394338a47..16707fb6aa959 100644 --- a/x-pack/plugins/cases/public/api/__mocks__/index.ts +++ b/x-pack/plugins/cases/public/api/__mocks__/index.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { CasesFindRequest, CasesMetricsRequest } from '../../../common/api'; -import { HTTPService } from '..'; +import type { CasesFindRequest, CasesMetricsRequest } from '../../../common/api'; +import type { HTTPService } from '..'; import { casesMetrics, casesStatus } from '../../containers/mock'; -import { CasesMetrics, CasesStatus } from '../../containers/types'; +import type { CasesMetrics, CasesStatus } from '../../containers/types'; export const getCasesStatus = async ({ http, diff --git a/x-pack/plugins/cases/public/api/decoders.ts b/x-pack/plugins/cases/public/api/decoders.ts index 6b9cfdb21742c..1022e0583f8dc 100644 --- a/x-pack/plugins/cases/public/api/decoders.ts +++ b/x-pack/plugins/cases/public/api/decoders.ts @@ -11,12 +11,14 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { createToasterPlainError } from '../containers/utils'; import { throwErrors } from '../../common'; -import { +import type { CasesFindResponse, - CasesFindResponseRt, CasesStatusResponse, - CasesStatusResponseRt, CasesMetricsResponse, +} from '../../common/api'; +import { + CasesFindResponseRt, + CasesStatusResponseRt, CasesMetricsResponseRt, } from '../../common/api'; diff --git a/x-pack/plugins/cases/public/api/index.ts b/x-pack/plugins/cases/public/api/index.ts index 209c0ad619d4b..47cc0b6f108a8 100644 --- a/x-pack/plugins/cases/public/api/index.ts +++ b/x-pack/plugins/cases/public/api/index.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { HttpStart } from '@kbn/core/public'; -import { Cases, CasesStatus, CasesMetrics } from '../../common/ui'; +import type { HttpStart } from '@kbn/core/public'; +import type { Cases, CasesStatus, CasesMetrics } from '../../common/ui'; import { CASE_FIND_URL, CASE_METRICS_URL, CASE_STATUS_URL } from '../../common/constants'; -import { +import type { CasesFindRequest, CasesFindResponse, CasesMetricsRequest, diff --git a/x-pack/plugins/cases/public/api/utils.ts b/x-pack/plugins/cases/public/api/utils.ts index 992f078bfb7f1..87b48a0df9c58 100644 --- a/x-pack/plugins/cases/public/api/utils.ts +++ b/x-pack/plugins/cases/public/api/utils.ts @@ -10,7 +10,7 @@ import { isCommentRequestTypeExternalReference, isCommentRequestTypePersistableState, } from '../../common/utils/attachments'; -import { +import type { CasesFindResponse, CaseResponse, CaseUserActionsResponse, @@ -20,7 +20,7 @@ import { CasesResponse, } from '../../common/api'; import { isCommentUserAction } from '../../common/utils/user_actions'; -import { Cases, Case, Comment, ResolvedCase } from '../containers/types'; +import type { Cases, Case, Comment, ResolvedCase } from '../containers/types'; export const convertArrayToCamelCase = (arrayOfSnakes: unknown[]): unknown[] => arrayOfSnakes.reduce((acc: unknown[], value) => { diff --git a/x-pack/plugins/cases/public/application.tsx b/x-pack/plugins/cases/public/application.tsx index 5acf288d3bc34..360a9ce15476d 100644 --- a/x-pack/plugins/cases/public/application.tsx +++ b/x-pack/plugins/cases/public/application.tsx @@ -17,10 +17,10 @@ import { useUiSetting$, } from '@kbn/kibana-react-plugin/public'; import { EuiThemeProvider as StyledComponentsThemeProvider } from '@kbn/kibana-react-plugin/common'; -import { RenderAppProps } from './types'; +import type { RenderAppProps } from './types'; import { CasesApp } from './components/app'; -import { ExternalReferenceAttachmentTypeRegistry } from './client/attachment_framework/external_reference_registry'; -import { PersistableStateAttachmentTypeRegistry } from './client/attachment_framework/persistable_state_registry'; +import type { ExternalReferenceAttachmentTypeRegistry } from './client/attachment_framework/external_reference_registry'; +import type { PersistableStateAttachmentTypeRegistry } from './client/attachment_framework/persistable_state_registry'; export const renderApp = (deps: RenderAppProps) => { const { mountParams } = deps; diff --git a/x-pack/plugins/cases/public/client/api/index.ts b/x-pack/plugins/cases/public/client/api/index.ts index e9caee514a9cd..6d902940c2200 100644 --- a/x-pack/plugins/cases/public/client/api/index.ts +++ b/x-pack/plugins/cases/public/client/api/index.ts @@ -5,18 +5,18 @@ * 2.0. */ -import { HttpStart } from '@kbn/core/public'; -import { +import type { HttpStart } from '@kbn/core/public'; +import type { CasesByAlertId, CasesByAlertIDRequest, CasesFindRequest, - getCasesFromAlertsUrl, CasesStatusRequest, CasesMetricsRequest, } from '../../../common/api'; -import { Cases, CasesStatus, CasesMetrics } from '../../../common/ui'; +import { getCasesFromAlertsUrl } from '../../../common/api'; +import type { Cases, CasesStatus, CasesMetrics } from '../../../common/ui'; import { getCases, getCasesMetrics, getCasesStatus } from '../../api'; -import { CasesUiStart } from '../../types'; +import type { CasesUiStart } from '../../types'; export const createClientAPI = ({ http }: { http: HttpStart }): CasesUiStart['api'] => { return { diff --git a/x-pack/plugins/cases/public/client/attachment_framework/external_reference_registry.ts b/x-pack/plugins/cases/public/client/attachment_framework/external_reference_registry.ts index ed3eada182b0f..8d413dd393926 100644 --- a/x-pack/plugins/cases/public/client/attachment_framework/external_reference_registry.ts +++ b/x-pack/plugins/cases/public/client/attachment_framework/external_reference_registry.ts @@ -6,7 +6,7 @@ */ import { AttachmentTypeRegistry } from '../../../common/registry'; -import { ExternalReferenceAttachmentType } from './types'; +import type { ExternalReferenceAttachmentType } from './types'; export class ExternalReferenceAttachmentTypeRegistry extends AttachmentTypeRegistry { constructor() { diff --git a/x-pack/plugins/cases/public/client/attachment_framework/persistable_state_registry.ts b/x-pack/plugins/cases/public/client/attachment_framework/persistable_state_registry.ts index 1b8c5a1e40529..d867bbfdf1d4d 100644 --- a/x-pack/plugins/cases/public/client/attachment_framework/persistable_state_registry.ts +++ b/x-pack/plugins/cases/public/client/attachment_framework/persistable_state_registry.ts @@ -6,7 +6,7 @@ */ import { AttachmentTypeRegistry } from '../../../common/registry'; -import { PersistableStateAttachmentType } from './types'; +import type { PersistableStateAttachmentType } from './types'; export class PersistableStateAttachmentTypeRegistry extends AttachmentTypeRegistry { constructor() { diff --git a/x-pack/plugins/cases/public/client/attachment_framework/types.ts b/x-pack/plugins/cases/public/client/attachment_framework/types.ts index 2f8d7eacb0553..ea5c046a37e7c 100644 --- a/x-pack/plugins/cases/public/client/attachment_framework/types.ts +++ b/x-pack/plugins/cases/public/client/attachment_framework/types.ts @@ -6,12 +6,12 @@ */ import type React from 'react'; -import { EuiCommentProps, IconType } from '@elastic/eui'; -import { +import type { EuiCommentProps, IconType } from '@elastic/eui'; +import type { CommentRequestExternalReferenceType, CommentRequestPersistableStateType, } from '../../../common/api'; -import { Case } from '../../containers/types'; +import type { Case } from '../../containers/types'; export interface AttachmentViewObject { timelineAvatar?: EuiCommentProps['timelineAvatar']; diff --git a/x-pack/plugins/cases/public/client/helpers/can_use_cases.ts b/x-pack/plugins/cases/public/client/helpers/can_use_cases.ts index 13504cb2605cf..34af1c3865da5 100644 --- a/x-pack/plugins/cases/public/client/helpers/can_use_cases.ts +++ b/x-pack/plugins/cases/public/client/helpers/can_use_cases.ts @@ -13,7 +13,7 @@ import { SECURITY_SOLUTION_OWNER, } from '../../../common/constants'; import { getUICapabilities } from './capabilities'; -import { CasesPermissions } from '../../../common'; +import type { CasesPermissions } from '../../../common'; export type CasesOwners = | typeof SECURITY_SOLUTION_OWNER diff --git a/x-pack/plugins/cases/public/client/helpers/capabilities.ts b/x-pack/plugins/cases/public/client/helpers/capabilities.ts index 918f0c73c8ebd..f09ac84448952 100644 --- a/x-pack/plugins/cases/public/client/helpers/capabilities.ts +++ b/x-pack/plugins/cases/public/client/helpers/capabilities.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CasesPermissions } from '../../../common'; +import type { CasesPermissions } from '../../../common'; import { CREATE_CASES_CAPABILITY, DELETE_CASES_CAPABILITY, diff --git a/x-pack/plugins/cases/public/client/helpers/get_rule_id_from_event.ts b/x-pack/plugins/cases/public/client/helpers/get_rule_id_from_event.ts index 0f8cbfe68e1f4..424eedca0ef76 100644 --- a/x-pack/plugins/cases/public/client/helpers/get_rule_id_from_event.ts +++ b/x-pack/plugins/cases/public/client/helpers/get_rule_id_from_event.ts @@ -7,7 +7,7 @@ import { ALERT_RULE_NAME, ALERT_RULE_UUID } from '@kbn/rule-data-utils'; import { get } from 'lodash/fp'; -import { Ecs } from '../../../common'; +import type { Ecs } from '../../../common'; type Maybe = T | null; interface Event { diff --git a/x-pack/plugins/cases/public/client/helpers/group_alerts_by_rule.ts b/x-pack/plugins/cases/public/client/helpers/group_alerts_by_rule.ts index 09e334cb3c848..965495e39eaf8 100644 --- a/x-pack/plugins/cases/public/client/helpers/group_alerts_by_rule.ts +++ b/x-pack/plugins/cases/public/client/helpers/group_alerts_by_rule.ts @@ -5,10 +5,11 @@ * 2.0. */ -import { CommentRequestAlertType } from '../../../common/api'; -import { CommentType, Ecs } from '../../../common'; +import type { CommentRequestAlertType } from '../../../common/api'; +import type { Ecs } from '../../../common'; +import { CommentType } from '../../../common'; import { getRuleIdFromEvent } from './get_rule_id_from_event'; -import { CaseAttachmentsWithoutOwner } from '../../types'; +import type { CaseAttachmentsWithoutOwner } from '../../types'; type Maybe = T | null; interface Event { diff --git a/x-pack/plugins/cases/public/client/ui/get_all_cases_selector_modal.tsx b/x-pack/plugins/cases/public/client/ui/get_all_cases_selector_modal.tsx index 93c107f8cc726..b0807b0509135 100644 --- a/x-pack/plugins/cases/public/client/ui/get_all_cases_selector_modal.tsx +++ b/x-pack/plugins/cases/public/client/ui/get_all_cases_selector_modal.tsx @@ -7,8 +7,9 @@ import React, { lazy, Suspense } from 'react'; import { EuiLoadingSpinner } from '@elastic/eui'; -import { AllCasesSelectorModalProps } from '../../components/all_cases/selector_modal'; -import { CasesProvider, CasesContextProps } from '../../components/cases_context'; +import type { AllCasesSelectorModalProps } from '../../components/all_cases/selector_modal'; +import type { CasesContextProps } from '../../components/cases_context'; +import { CasesProvider } from '../../components/cases_context'; type GetAllCasesSelectorModalPropsInternal = AllCasesSelectorModalProps & CasesContextProps; export type GetAllCasesSelectorModalProps = Omit< diff --git a/x-pack/plugins/cases/public/client/ui/get_cases.tsx b/x-pack/plugins/cases/public/client/ui/get_cases.tsx index d22c23fb0251e..45c9f30b984d2 100644 --- a/x-pack/plugins/cases/public/client/ui/get_cases.tsx +++ b/x-pack/plugins/cases/public/client/ui/get_cases.tsx @@ -8,7 +8,8 @@ import { EuiLoadingSpinner } from '@elastic/eui'; import React, { lazy, Suspense } from 'react'; import type { CasesProps } from '../../components/app'; -import { CasesProvider, CasesContextProps } from '../../components/cases_context'; +import type { CasesContextProps } from '../../components/cases_context'; +import { CasesProvider } from '../../components/cases_context'; type GetCasesPropsInternal = CasesProps & CasesContextProps; export type GetCasesProps = Omit< diff --git a/x-pack/plugins/cases/public/client/ui/get_cases_context.tsx b/x-pack/plugins/cases/public/client/ui/get_cases_context.tsx index fe0193ab184a1..77e6ca3c87e24 100644 --- a/x-pack/plugins/cases/public/client/ui/get_cases_context.tsx +++ b/x-pack/plugins/cases/public/client/ui/get_cases_context.tsx @@ -6,8 +6,9 @@ */ import { EuiLoadingSpinner } from '@elastic/eui'; -import React, { lazy, ReactNode, Suspense } from 'react'; -import { CasesContextProps } from '../../components/cases_context'; +import type { ReactNode } from 'react'; +import React, { lazy, Suspense } from 'react'; +import type { CasesContextProps } from '../../components/cases_context'; export type GetCasesContextPropsInternal = CasesContextProps; export type GetCasesContextProps = Omit< diff --git a/x-pack/plugins/cases/public/client/ui/get_create_case_flyout.tsx b/x-pack/plugins/cases/public/client/ui/get_create_case_flyout.tsx index e6f6b5465173e..af932b53e1dde 100644 --- a/x-pack/plugins/cases/public/client/ui/get_create_case_flyout.tsx +++ b/x-pack/plugins/cases/public/client/ui/get_create_case_flyout.tsx @@ -8,7 +8,8 @@ import React, { lazy, Suspense } from 'react'; import { EuiLoadingSpinner } from '@elastic/eui'; import type { CreateCaseFlyoutProps } from '../../components/create/flyout'; -import { CasesProvider, CasesContextProps } from '../../components/cases_context'; +import type { CasesContextProps } from '../../components/cases_context'; +import { CasesProvider } from '../../components/cases_context'; type GetCreateCaseFlyoutPropsInternal = CreateCaseFlyoutProps & CasesContextProps; export type GetCreateCaseFlyoutProps = Omit< diff --git a/x-pack/plugins/cases/public/client/ui/get_recent_cases.tsx b/x-pack/plugins/cases/public/client/ui/get_recent_cases.tsx index 021ad4233931c..a047c106246da 100644 --- a/x-pack/plugins/cases/public/client/ui/get_recent_cases.tsx +++ b/x-pack/plugins/cases/public/client/ui/get_recent_cases.tsx @@ -7,8 +7,9 @@ import { EuiLoadingSpinner } from '@elastic/eui'; import React, { lazy, Suspense } from 'react'; -import { CasesProvider, CasesContextProps } from '../../components/cases_context'; -import { RecentCasesProps } from '../../components/recent_cases'; +import type { CasesContextProps } from '../../components/cases_context'; +import { CasesProvider } from '../../components/cases_context'; +import type { RecentCasesProps } from '../../components/recent_cases'; type GetRecentCasesPropsInternal = RecentCasesProps & CasesContextProps; export type GetRecentCasesProps = Omit< diff --git a/x-pack/plugins/cases/public/common/apm/use_cases_transactions.test.ts b/x-pack/plugins/cases/public/common/apm/use_cases_transactions.test.ts index 3b0ba69ae8560..5438258187a2f 100644 --- a/x-pack/plugins/cases/public/common/apm/use_cases_transactions.test.ts +++ b/x-pack/plugins/cases/public/common/apm/use_cases_transactions.test.ts @@ -6,10 +6,12 @@ */ import { renderHook } from '@testing-library/react-hooks'; -import { CaseAttachmentsWithoutOwner } from '../../types'; -import { +import type { CaseAttachmentsWithoutOwner } from '../../types'; +import type { StartAddAttachmentToExistingCaseTransaction, StartCreateCaseWithAttachmentsTransaction, +} from './use_cases_transactions'; +import { useAddAttachmentToExistingCaseTransaction, useCreateCaseWithAttachmentsTransaction, } from './use_cases_transactions'; diff --git a/x-pack/plugins/cases/public/common/apm/use_cases_transactions.ts b/x-pack/plugins/cases/public/common/apm/use_cases_transactions.ts index 1f7b77c32df99..1a4be4053b7ef 100644 --- a/x-pack/plugins/cases/public/common/apm/use_cases_transactions.ts +++ b/x-pack/plugins/cases/public/common/apm/use_cases_transactions.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { Transaction } from '@elastic/apm-rum'; +import type { Transaction } from '@elastic/apm-rum'; import { useCallback } from 'react'; import { CommentType } from '../../../common'; -import { CaseAttachmentsWithoutOwner } from '../../types'; +import type { CaseAttachmentsWithoutOwner } from '../../types'; import { useStartTransaction } from './use_start_transaction'; const CREATE_CASE = 'createCase' as const; diff --git a/x-pack/plugins/cases/public/common/lib/kibana/hooks.ts b/x-pack/plugins/cases/public/common/lib/kibana/hooks.ts index 86d137f55dc93..812840b1553e3 100644 --- a/x-pack/plugins/cases/public/common/lib/kibana/hooks.ts +++ b/x-pack/plugins/cases/public/common/lib/kibana/hooks.ts @@ -10,8 +10,8 @@ import moment from 'moment-timezone'; import { useCallback, useEffect, useMemo, useState } from 'react'; import { i18n } from '@kbn/i18n'; -import { AuthenticatedUser } from '@kbn/security-plugin/common/model'; -import { NavigateToAppOptions } from '@kbn/core/public'; +import type { AuthenticatedUser } from '@kbn/security-plugin/common/model'; +import type { NavigateToAppOptions } from '@kbn/core/public'; import { getUICapabilities } from '../../../client/helpers/capabilities'; import { convertToCamelCase } from '../../../api/utils'; import { @@ -19,8 +19,8 @@ import { DEFAULT_DATE_FORMAT, DEFAULT_DATE_FORMAT_TZ, } from '../../../../common/constants'; -import { CasesPermissions } from '../../../../common'; -import { StartServices } from '../../../types'; +import type { CasesPermissions } from '../../../../common'; +import type { StartServices } from '../../../types'; import { useUiSetting, useKibana } from './kibana_react'; export const useDateFormat = (): string => useUiSetting(DEFAULT_DATE_FORMAT); diff --git a/x-pack/plugins/cases/public/common/lib/kibana/kibana_react.mock.ts b/x-pack/plugins/cases/public/common/lib/kibana/kibana_react.mock.ts index 792379af1b532..68ad770d0a8bf 100644 --- a/x-pack/plugins/cases/public/common/lib/kibana/kibana_react.mock.ts +++ b/x-pack/plugins/cases/public/common/lib/kibana/kibana_react.mock.ts @@ -10,13 +10,13 @@ import React from 'react'; import { BehaviorSubject } from 'rxjs'; -import { PublicAppInfo } from '@kbn/core/public'; -import { RecursivePartial } from '@elastic/eui/src/components/common'; +import type { PublicAppInfo } from '@kbn/core/public'; +import type { RecursivePartial } from '@elastic/eui/src/components/common'; import { coreMock } from '@kbn/core/public/mocks'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; -import { ILicense } from '@kbn/licensing-plugin/public'; -import { StartServices } from '../../../types'; -import { EuiTheme } from '@kbn/kibana-react-plugin/common'; +import type { ILicense } from '@kbn/licensing-plugin/public'; +import type { StartServices } from '../../../types'; +import type { EuiTheme } from '@kbn/kibana-react-plugin/common'; import { securityMock } from '@kbn/security-plugin/public/mocks'; import { spacesPluginMock } from '@kbn/spaces-plugin/public/mocks'; import { triggersActionsUiMock } from '@kbn/triggers-actions-ui-plugin/public/mocks'; diff --git a/x-pack/plugins/cases/public/common/lib/kibana/kibana_react.ts b/x-pack/plugins/cases/public/common/lib/kibana/kibana_react.ts index 0884b57048e78..062e0e362f75c 100644 --- a/x-pack/plugins/cases/public/common/lib/kibana/kibana_react.ts +++ b/x-pack/plugins/cases/public/common/lib/kibana/kibana_react.ts @@ -11,7 +11,7 @@ import { useUiSetting, useUiSetting$, } from '@kbn/kibana-react-plugin/public'; -import { StartServices } from '../../../types'; +import type { StartServices } from '../../../types'; const useTypedKibana = () => useKibana(); diff --git a/x-pack/plugins/cases/public/common/lib/kibana/services.ts b/x-pack/plugins/cases/public/common/lib/kibana/services.ts index 30198b812e4aa..f4c546a553881 100644 --- a/x-pack/plugins/cases/public/common/lib/kibana/services.ts +++ b/x-pack/plugins/cases/public/common/lib/kibana/services.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { CoreStart } from '@kbn/core/public'; -import { CasesUiConfigType } from '../../../../common/ui/types'; +import type { CoreStart } from '@kbn/core/public'; +import type { CasesUiConfigType } from '../../../../common/ui/types'; type GlobalServices = Pick; diff --git a/x-pack/plugins/cases/public/common/mock/connectors.ts b/x-pack/plugins/cases/public/common/mock/connectors.ts index 575cb7a83f9d2..e0b7b26a4c8a4 100644 --- a/x-pack/plugins/cases/public/common/mock/connectors.ts +++ b/x-pack/plugins/cases/public/common/mock/connectors.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ActionConnector, ActionTypeConnector } from '../../../common/api'; +import type { ActionConnector, ActionTypeConnector } from '../../../common/api'; export const connectorsMock: ActionConnector[] = [ { diff --git a/x-pack/plugins/cases/public/common/mock/permissions.ts b/x-pack/plugins/cases/public/common/mock/permissions.ts index 7395e966037ea..01d1dc64952ed 100644 --- a/x-pack/plugins/cases/public/common/mock/permissions.ts +++ b/x-pack/plugins/cases/public/common/mock/permissions.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CasesCapabilities, CasesPermissions } from '../../containers/types'; +import type { CasesCapabilities, CasesPermissions } from '../../containers/types'; export const allCasesPermissions = () => buildCasesPermissions(); export const noCasesPermissions = () => diff --git a/x-pack/plugins/cases/public/common/mock/register_connectors.ts b/x-pack/plugins/cases/public/common/mock/register_connectors.ts index 594f4f96b4c8e..8bc05351d4833 100644 --- a/x-pack/plugins/cases/public/common/mock/register_connectors.ts +++ b/x-pack/plugins/cases/public/common/mock/register_connectors.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { TriggersAndActionsUIPublicPluginStart } from '@kbn/triggers-actions-ui-plugin/public'; +import type { TriggersAndActionsUIPublicPluginStart } from '@kbn/triggers-actions-ui-plugin/public'; import { actionTypeRegistryMock } from '@kbn/triggers-actions-ui-plugin/public/application/action_type_registry.mock'; -import { CaseActionConnector } from '../../../common/ui/types'; +import type { CaseActionConnector } from '../../../common/ui/types'; const getUniqueActionTypeIds = (connectors: CaseActionConnector[]) => new Set(connectors.map((connector) => connector.actionTypeId)); diff --git a/x-pack/plugins/cases/public/common/mock/test_providers.tsx b/x-pack/plugins/cases/public/common/mock/test_providers.tsx index 571825a21474b..99ed0c274199c 100644 --- a/x-pack/plugins/cases/public/common/mock/test_providers.tsx +++ b/x-pack/plugins/cases/public/common/mock/test_providers.tsx @@ -13,16 +13,17 @@ import { I18nProvider } from '@kbn/i18n-react'; import { ThemeProvider } from 'styled-components'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; -import { render as reactRender, RenderOptions, RenderResult } from '@testing-library/react'; +import type { RenderOptions, RenderResult } from '@testing-library/react'; +import { render as reactRender } from '@testing-library/react'; import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public'; -import { ILicense } from '@kbn/licensing-plugin/public'; +import type { ILicense } from '@kbn/licensing-plugin/public'; import { SECURITY_SOLUTION_OWNER } from '../../../common/constants'; -import { CasesFeatures, CasesPermissions } from '../../../common/ui/types'; +import type { CasesFeatures, CasesPermissions } from '../../../common/ui/types'; import { CasesProvider } from '../../components/cases_context'; import { createStartServicesMock } from '../lib/kibana/kibana_react.mock'; -import { FieldHook } from '../shared_imports'; -import { StartServices } from '../../types'; -import { ReleasePhase } from '../../components/types'; +import type { FieldHook } from '../shared_imports'; +import type { StartServices } from '../../types'; +import type { ReleasePhase } from '../../components/types'; import { ExternalReferenceAttachmentTypeRegistry } from '../../client/attachment_framework/external_reference_registry'; import { PersistableStateAttachmentTypeRegistry } from '../../client/attachment_framework/persistable_state_registry'; import { allCasesPermissions } from './permissions'; diff --git a/x-pack/plugins/cases/public/common/navigation/hooks.ts b/x-pack/plugins/cases/public/common/navigation/hooks.ts index 31048e33d50eb..81b59c9b42637 100644 --- a/x-pack/plugins/cases/public/common/navigation/hooks.ts +++ b/x-pack/plugins/cases/public/common/navigation/hooks.ts @@ -12,8 +12,9 @@ import { parse, stringify } from 'query-string'; import { APP_ID, CASES_CONFIGURE_PATH, CASES_CREATE_PATH } from '../../../common/constants'; import { useNavigation } from '../lib/kibana'; import { useCasesContext } from '../../components/cases_context/use_cases_context'; -import { ICasesDeepLinkId } from './deep_links'; -import { CaseViewPathParams, CaseViewPathSearchParams, generateCaseViewPath } from './paths'; +import type { ICasesDeepLinkId } from './deep_links'; +import type { CaseViewPathParams, CaseViewPathSearchParams } from './paths'; +import { generateCaseViewPath } from './paths'; export const useCaseViewParams = () => useParams(); diff --git a/x-pack/plugins/cases/public/common/navigation/paths.ts b/x-pack/plugins/cases/public/common/navigation/paths.ts index 883ef44567e10..24db617799996 100644 --- a/x-pack/plugins/cases/public/common/navigation/paths.ts +++ b/x-pack/plugins/cases/public/common/navigation/paths.ts @@ -13,7 +13,7 @@ import { CASE_VIEW_COMMENT_PATH, CASE_VIEW_TAB_PATH, } from '../../../common/constants'; -import { CASE_VIEW_PAGE_TABS } from '../../../common/types'; +import type { CASE_VIEW_PAGE_TABS } from '../../../common/types'; export const DEFAULT_BASE_PATH = '/cases'; diff --git a/x-pack/plugins/cases/public/common/test_utils.ts b/x-pack/plugins/cases/public/common/test_utils.ts index a7d4405ced030..db6dfaaf11c31 100644 --- a/x-pack/plugins/cases/public/common/test_utils.ts +++ b/x-pack/plugins/cases/public/common/test_utils.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; import { act } from 'react-dom/test-utils'; -import { MatcherFunction } from '@testing-library/react'; +import type { MatcherFunction } from '@testing-library/react'; /** * Convenience utility to remove text appended to links by EUI diff --git a/x-pack/plugins/cases/public/common/use_cases_features.test.tsx b/x-pack/plugins/cases/public/common/use_cases_features.test.tsx index e64bc61acf91d..973ed1326baa8 100644 --- a/x-pack/plugins/cases/public/common/use_cases_features.test.tsx +++ b/x-pack/plugins/cases/public/common/use_cases_features.test.tsx @@ -8,10 +8,12 @@ import React from 'react'; import { renderHook } from '@testing-library/react-hooks'; import { licensingMock } from '@kbn/licensing-plugin/public/mocks'; -import { CasesContextFeatures } from '../../common/ui'; -import { useCasesFeatures, UseCasesFeatures } from './use_cases_features'; +import type { CasesContextFeatures } from '../../common/ui'; +import type { UseCasesFeatures } from './use_cases_features'; +import { useCasesFeatures } from './use_cases_features'; import { TestProviders } from './mock/test_providers'; -import { LicenseType, LICENSE_TYPE } from '@kbn/licensing-plugin/common/types'; +import type { LicenseType } from '@kbn/licensing-plugin/common/types'; +import { LICENSE_TYPE } from '@kbn/licensing-plugin/common/types'; describe('useCasesFeatures', () => { // isAlertsEnabled, isSyncAlertsEnabled, alerts diff --git a/x-pack/plugins/cases/public/common/use_cases_features.tsx b/x-pack/plugins/cases/public/common/use_cases_features.tsx index 064fe89fb90df..2f064df9a97a9 100644 --- a/x-pack/plugins/cases/public/common/use_cases_features.tsx +++ b/x-pack/plugins/cases/public/common/use_cases_features.tsx @@ -6,7 +6,7 @@ */ import { useMemo } from 'react'; -import { SingleCaseMetricsFeature } from '../../common/ui'; +import type { SingleCaseMetricsFeature } from '../../common/ui'; import { useCasesContext } from '../components/cases_context/use_cases_context'; import { useLicense } from './use_license'; diff --git a/x-pack/plugins/cases/public/common/use_cases_toast.test.tsx b/x-pack/plugins/cases/public/common/use_cases_toast.test.tsx index cfa2d3a6e0052..cabca3ea69f7a 100644 --- a/x-pack/plugins/cases/public/common/use_cases_toast.test.tsx +++ b/x-pack/plugins/cases/public/common/use_cases_toast.test.tsx @@ -7,12 +7,13 @@ import { renderHook } from '@testing-library/react-hooks'; import { useKibana, useToasts } from './lib/kibana'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from './mock'; +import type { AppMockRenderer } from './mock'; +import { createAppMockRenderer, TestProviders } from './mock'; import { CaseToastSuccessContent, useCasesToast } from './use_cases_toast'; import { alertComment, basicComment, mockCase } from '../containers/mock'; import React from 'react'; import userEvent from '@testing-library/user-event'; -import { SupportedCaseAttachment } from '../types'; +import type { SupportedCaseAttachment } from '../types'; import { getByTestId } from '@testing-library/dom'; import { OWNER_INFO } from '../../common/constants'; diff --git a/x-pack/plugins/cases/public/common/use_cases_toast.tsx b/x-pack/plugins/cases/public/common/use_cases_toast.tsx index 18732c5240976..984a5ed607351 100644 --- a/x-pack/plugins/cases/public/common/use_cases_toast.tsx +++ b/x-pack/plugins/cases/public/common/use_cases_toast.tsx @@ -11,10 +11,11 @@ import React from 'react'; import styled from 'styled-components'; import { toMountPoint } from '@kbn/kibana-react-plugin/public'; import { isValidOwner } from '../../common/utils/owner'; -import { Case, CommentType } from '../../common'; +import type { Case } from '../../common'; +import { CommentType } from '../../common'; import { useKibana, useToasts } from './lib/kibana'; import { generateCaseViewPath } from './navigation'; -import { CaseAttachmentsWithoutOwner, ServerError } from '../types'; +import type { CaseAttachmentsWithoutOwner, ServerError } from '../types'; import { CASE_ALERT_SUCCESS_SYNC_TEXT, CASE_ALERT_SUCCESS_TOAST, diff --git a/x-pack/plugins/cases/public/common/use_license.tsx b/x-pack/plugins/cases/public/common/use_license.tsx index f8bdddf2bf956..9d02aa59f37b3 100644 --- a/x-pack/plugins/cases/public/common/use_license.tsx +++ b/x-pack/plugins/cases/public/common/use_license.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { ILicense, LicenseType } from '@kbn/licensing-plugin/public'; +import type { ILicense, LicenseType } from '@kbn/licensing-plugin/public'; import { useCallback } from 'react'; import useObservable from 'react-use/lib/useObservable'; import { Observable } from 'rxjs'; diff --git a/x-pack/plugins/cases/public/components/actions/delete/use_delete_action.test.tsx b/x-pack/plugins/cases/public/components/actions/delete/use_delete_action.test.tsx index 747aa0e84e1d7..3e89fc83ca92b 100644 --- a/x-pack/plugins/cases/public/components/actions/delete/use_delete_action.test.tsx +++ b/x-pack/plugins/cases/public/components/actions/delete/use_delete_action.test.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { AppMockRenderer, createAppMockRenderer } from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer } from '../../../common/mock'; import { act, renderHook } from '@testing-library/react-hooks'; import { useDeleteAction } from './use_delete_action'; diff --git a/x-pack/plugins/cases/public/components/actions/delete/use_delete_action.tsx b/x-pack/plugins/cases/public/components/actions/delete/use_delete_action.tsx index 92184dbd64648..608af0e66444b 100644 --- a/x-pack/plugins/cases/public/components/actions/delete/use_delete_action.tsx +++ b/x-pack/plugins/cases/public/components/actions/delete/use_delete_action.tsx @@ -7,11 +7,11 @@ import React, { useCallback, useState } from 'react'; import { EuiIcon, EuiTextColor, useEuiTheme } from '@elastic/eui'; -import { Case } from '../../../../common'; +import type { Case } from '../../../../common'; import { useDeleteCases } from '../../../containers/use_delete_cases'; import * as i18n from './translations'; -import { UseActionProps } from '../types'; +import type { UseActionProps } from '../types'; import { useCasesContext } from '../../cases_context/use_cases_context'; const getDeleteActionTitle = (totalCases: number): string => diff --git a/x-pack/plugins/cases/public/components/actions/severity/use_severity_action.test.tsx b/x-pack/plugins/cases/public/components/actions/severity/use_severity_action.test.tsx index 9705d5ffeb2b2..42fea8e679608 100644 --- a/x-pack/plugins/cases/public/components/actions/severity/use_severity_action.test.tsx +++ b/x-pack/plugins/cases/public/components/actions/severity/use_severity_action.test.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { AppMockRenderer, createAppMockRenderer } from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer } from '../../../common/mock'; import { act, renderHook } from '@testing-library/react-hooks'; import { useSeverityAction } from './use_severity_action'; diff --git a/x-pack/plugins/cases/public/components/actions/severity/use_severity_action.tsx b/x-pack/plugins/cases/public/components/actions/severity/use_severity_action.tsx index a4651cee82612..614bb0cbef77c 100644 --- a/x-pack/plugins/cases/public/components/actions/severity/use_severity_action.tsx +++ b/x-pack/plugins/cases/public/components/actions/severity/use_severity_action.tsx @@ -6,13 +6,13 @@ */ import { useCallback } from 'react'; -import { EuiContextMenuPanelItemDescriptor } from '@elastic/eui'; +import type { EuiContextMenuPanelItemDescriptor } from '@elastic/eui'; import { CaseSeverity } from '../../../../common/api'; import { useUpdateCases } from '../../../containers/use_bulk_update_case'; -import { Case } from '../../../../common'; +import type { Case } from '../../../../common'; import * as i18n from './translations'; -import { UseActionProps } from '../types'; +import type { UseActionProps } from '../types'; import { useCasesContext } from '../../cases_context/use_cases_context'; import { severities } from '../../severity/config'; diff --git a/x-pack/plugins/cases/public/components/actions/status/use_status_action.test.tsx b/x-pack/plugins/cases/public/components/actions/status/use_status_action.test.tsx index a0f16dbaa1760..03d3da5101d38 100644 --- a/x-pack/plugins/cases/public/components/actions/status/use_status_action.test.tsx +++ b/x-pack/plugins/cases/public/components/actions/status/use_status_action.test.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { AppMockRenderer, createAppMockRenderer } from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer } from '../../../common/mock'; import { act, renderHook } from '@testing-library/react-hooks'; import { useStatusAction } from './use_status_action'; diff --git a/x-pack/plugins/cases/public/components/actions/status/use_status_action.tsx b/x-pack/plugins/cases/public/components/actions/status/use_status_action.tsx index 8f1100aaab90d..6b9fe58c15105 100644 --- a/x-pack/plugins/cases/public/components/actions/status/use_status_action.tsx +++ b/x-pack/plugins/cases/public/components/actions/status/use_status_action.tsx @@ -6,12 +6,13 @@ */ import { useCallback } from 'react'; -import { EuiContextMenuPanelItemDescriptor } from '@elastic/eui'; +import type { EuiContextMenuPanelItemDescriptor } from '@elastic/eui'; import { useUpdateCases } from '../../../containers/use_bulk_update_case'; -import { Case, CaseStatuses } from '../../../../common'; +import type { Case } from '../../../../common'; +import { CaseStatuses } from '../../../../common'; import * as i18n from './translations'; -import { UseActionProps } from '../types'; +import type { UseActionProps } from '../types'; import { statuses } from '../../status'; import { useCasesContext } from '../../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/add_comment/index.test.tsx b/x-pack/plugins/cases/public/components/add_comment/index.test.tsx index d8bb10fce78fc..17045ab21686c 100644 --- a/x-pack/plugins/cases/public/components/add_comment/index.test.tsx +++ b/x-pack/plugins/cases/public/components/add_comment/index.test.tsx @@ -15,10 +15,11 @@ import { noCreateCasesPermissions, TestProviders } from '../../common/mock'; import { CommentType } from '../../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../../common/constants'; import { useCreateAttachments } from '../../containers/use_create_attachments'; -import { AddComment, AddCommentProps, AddCommentRefObject } from '.'; +import type { AddCommentProps, AddCommentRefObject } from '.'; +import { AddComment } from '.'; import { CasesTimelineIntegrationProvider } from '../timeline_context'; import { timelineIntegrationMock } from '../__mock__/timeline'; -import { CaseAttachmentWithoutOwner } from '../../types'; +import type { CaseAttachmentWithoutOwner } from '../../types'; jest.mock('../../containers/use_create_attachments'); diff --git a/x-pack/plugins/cases/public/components/add_comment/index.tsx b/x-pack/plugins/cases/public/components/add_comment/index.tsx index 6710a4a4471e0..84715324bee92 100644 --- a/x-pack/plugins/cases/public/components/add_comment/index.tsx +++ b/x-pack/plugins/cases/public/components/add_comment/index.tsx @@ -19,12 +19,14 @@ import { isEmpty } from 'lodash'; import { CommentType } from '../../../common/api'; import { useCreateAttachments } from '../../containers/use_create_attachments'; -import { Case } from '../../containers/types'; -import { EuiMarkdownEditorRef, MarkdownEditorForm } from '../markdown_editor'; +import type { Case } from '../../containers/types'; +import type { EuiMarkdownEditorRef } from '../markdown_editor'; +import { MarkdownEditorForm } from '../markdown_editor'; import { Form, useForm, UseField, useFormData } from '../../common/shared_imports'; import * as i18n from './translations'; -import { schema, AddCommentFormSchema } from './schema'; +import type { AddCommentFormSchema } from './schema'; +import { schema } from './schema'; import { InsertTimeline } from '../insert_timeline'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/add_comment/schema.tsx b/x-pack/plugins/cases/public/components/add_comment/schema.tsx index 3e32c8a938b68..7f8da37aeedc6 100644 --- a/x-pack/plugins/cases/public/components/add_comment/schema.tsx +++ b/x-pack/plugins/cases/public/components/add_comment/schema.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { CommentRequestUserType } from '../../../common/api'; -import { FIELD_TYPES, fieldValidators, FormSchema } from '../../common/shared_imports'; +import type { CommentRequestUserType } from '../../../common/api'; +import type { FormSchema } from '../../common/shared_imports'; +import { FIELD_TYPES, fieldValidators } from '../../common/shared_imports'; import * as i18n from './translations'; const { emptyField } = fieldValidators; diff --git a/x-pack/plugins/cases/public/components/all_cases/all_cases_list.test.tsx b/x-pack/plugins/cases/public/components/all_cases/all_cases_list.test.tsx index b3f637287a95d..48cd41dd2fb7d 100644 --- a/x-pack/plugins/cases/public/components/all_cases/all_cases_list.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/all_cases_list.test.tsx @@ -14,8 +14,8 @@ import userEvent from '@testing-library/user-event'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; import '../../common/mock/match_media'; +import type { AppMockRenderer } from '../../common/mock'; import { - AppMockRenderer, createAppMockRenderer, noDeleteCasesPermissions, readCasesPermissions, @@ -29,7 +29,8 @@ import { SECURITY_SOLUTION_OWNER } from '../../../common/constants'; import { getEmptyTagValue } from '../empty_value'; import { useKibana } from '../../common/lib/kibana'; import { AllCasesList } from './all_cases_list'; -import { GetCasesColumn, useCasesColumns, UseCasesColumnsReturnValue } from './use_cases_columns'; +import type { GetCasesColumn, UseCasesColumnsReturnValue } from './use_cases_columns'; +import { useCasesColumns } from './use_cases_columns'; import { triggersActionsUiMock } from '@kbn/triggers-actions-ui-plugin/public/mocks'; import { registerConnectorsToMockActionRegistry } from '../../common/mock/register_connectors'; import { createStartServicesMock } from '../../common/lib/kibana/kibana_react.mock'; diff --git a/x-pack/plugins/cases/public/components/all_cases/all_cases_list.tsx b/x-pack/plugins/cases/public/components/all_cases/all_cases_list.tsx index 0d2cff95c4919..f4449c3949003 100644 --- a/x-pack/plugins/cases/public/components/all_cases/all_cases_list.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/all_cases_list.tsx @@ -6,24 +6,24 @@ */ import React, { useCallback, useMemo, useRef, useState } from 'react'; -import { EuiProgress, EuiBasicTable, EuiTableSelectionType } from '@elastic/eui'; +import type { EuiBasicTable, EuiTableSelectionType } from '@elastic/eui'; +import { EuiProgress } from '@elastic/eui'; import { difference, head, isEmpty } from 'lodash/fp'; import styled, { css } from 'styled-components'; -import { +import type { Case, CaseStatusWithAllStatus, FilterOptions, QueryParams, - SortFieldCase, - StatusAll, } from '../../../common/ui/types'; +import { SortFieldCase, StatusAll } from '../../../common/ui/types'; import { CaseStatuses, caseStatuses } from '../../../common/api'; import { useAvailableCasesOwners } from '../app/use_available_owners'; import { useCasesColumns } from './use_cases_columns'; import { CasesTableFilters } from './table_filters'; -import { EuiBasicTableOnChange } from './types'; +import type { EuiBasicTableOnChange } from './types'; import { CasesTable } from './table'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/all_cases/assignees_filter.test.tsx b/x-pack/plugins/cases/public/components/all_cases/assignees_filter.test.tsx index 2f51b5d574e1b..0f50eb0421093 100644 --- a/x-pack/plugins/cases/public/components/all_cases/assignees_filter.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/assignees_filter.test.tsx @@ -8,8 +8,10 @@ import React from 'react'; import userEvent from '@testing-library/user-event'; import { screen, fireEvent, waitFor, within } from '@testing-library/react'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; -import { AssigneesFilterPopover, AssigneesFilterPopoverProps } from './assignees_filter'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; +import type { AssigneesFilterPopoverProps } from './assignees_filter'; +import { AssigneesFilterPopover } from './assignees_filter'; import { userProfiles } from '../../containers/user_profiles/api.mock'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; diff --git a/x-pack/plugins/cases/public/components/all_cases/assignees_filter.tsx b/x-pack/plugins/cases/public/components/all_cases/assignees_filter.tsx index 6ffa18cfa8073..1cf4f2c9a2bd4 100644 --- a/x-pack/plugins/cases/public/components/all_cases/assignees_filter.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/assignees_filter.tsx @@ -6,13 +6,14 @@ */ import { EuiFilterButton } from '@elastic/eui'; -import { UserProfilesPopover, UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import { UserProfilesPopover } from '@kbn/user-profile-components'; import { isEmpty } from 'lodash'; import React, { useCallback, useMemo, useState } from 'react'; import { useSuggestUserProfiles } from '../../containers/user_profiles/use_suggest_user_profiles'; import { useAvailableCasesOwners } from '../app/use_available_owners'; import { useCasesContext } from '../cases_context/use_cases_context'; -import { CurrentUserProfile } from '../types'; +import type { CurrentUserProfile } from '../types'; import { EmptyMessage } from '../user_profiles/empty_message'; import { NoMatches } from '../user_profiles/no_matches'; import { SelectedStatusMessage } from '../user_profiles/selected_status_message'; diff --git a/x-pack/plugins/cases/public/components/all_cases/cases_metrics.test.tsx b/x-pack/plugins/cases/public/components/all_cases/cases_metrics.test.tsx index 323f9deead3eb..4a10df984c07d 100644 --- a/x-pack/plugins/cases/public/components/all_cases/cases_metrics.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/cases_metrics.test.tsx @@ -7,7 +7,8 @@ import { waitFor, within } from '@testing-library/react'; import React from 'react'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { CasesMetrics } from './cases_metrics'; jest.mock('../../api'); diff --git a/x-pack/plugins/cases/public/components/all_cases/header.test.tsx b/x-pack/plugins/cases/public/components/all_cases/header.test.tsx index 64e84affe14d5..08bd228b32e11 100644 --- a/x-pack/plugins/cases/public/components/all_cases/header.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/header.test.tsx @@ -7,7 +7,8 @@ import React from 'react'; -import { AppMockRenderer, buildCasesPermissions, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { buildCasesPermissions, createAppMockRenderer } from '../../common/mock'; import { CasesTableHeader } from './header'; describe('CasesTableHeader', () => { diff --git a/x-pack/plugins/cases/public/components/all_cases/header.tsx b/x-pack/plugins/cases/public/components/all_cases/header.tsx index a40a38a3be581..c16bf0951ed60 100644 --- a/x-pack/plugins/cases/public/components/all_cases/header.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/header.tsx @@ -5,11 +5,12 @@ * 2.0. */ -import React, { FunctionComponent } from 'react'; +import type { FunctionComponent } from 'react'; +import React from 'react'; import { EuiFlexGroup } from '@elastic/eui'; import { HeaderPage } from '../header_page'; import * as i18n from './translations'; -import { ErrorMessage } from '../use_push_to_service/callout/types'; +import type { ErrorMessage } from '../use_push_to_service/callout/types'; import { NavButtons } from './nav_buttons'; interface OwnProps { diff --git a/x-pack/plugins/cases/public/components/all_cases/index.test.tsx b/x-pack/plugins/cases/public/components/all_cases/index.test.tsx index 55777dd5bd34c..72cdbc0c0ed5b 100644 --- a/x-pack/plugins/cases/public/components/all_cases/index.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/index.test.tsx @@ -9,11 +9,8 @@ import React from 'react'; import { waitFor } from '@testing-library/react'; import { AllCases } from '.'; -import { - AppMockRenderer, - createAppMockRenderer, - noCreateCasesPermissions, -} from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, noCreateCasesPermissions } from '../../common/mock'; import { useGetActionLicense } from '../../containers/use_get_action_license'; import { connectorsMock, useGetCasesMockState } from '../../containers/mock'; import { useGetConnectors } from '../../containers/configure/use_connectors'; diff --git a/x-pack/plugins/cases/public/components/all_cases/nav_buttons.tsx b/x-pack/plugins/cases/public/components/all_cases/nav_buttons.tsx index 5217c7022d907..59b26b921eae0 100644 --- a/x-pack/plugins/cases/public/components/all_cases/nav_buttons.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/nav_buttons.tsx @@ -5,13 +5,14 @@ * 2.0. */ -import React, { FunctionComponent, useCallback } from 'react'; +import type { FunctionComponent } from 'react'; +import React, { useCallback } from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { isEmpty } from 'lodash/fp'; import styled, { css } from 'styled-components'; import * as i18n from './translations'; import { ConfigureCaseButton, LinkButton } from '../links'; -import { ErrorMessage } from '../use_push_to_service/callout/types'; +import type { ErrorMessage } from '../use_push_to_service/callout/types'; import { useCreateCaseNavigation } from '../../common/navigation'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/all_cases/selector_modal/all_cases_selector_modal.test.tsx b/x-pack/plugins/cases/public/components/all_cases/selector_modal/all_cases_selector_modal.test.tsx index e26831266d65f..8708e5cec06d6 100644 --- a/x-pack/plugins/cases/public/components/all_cases/selector_modal/all_cases_selector_modal.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/selector_modal/all_cases_selector_modal.test.tsx @@ -8,7 +8,8 @@ import React from 'react'; import { AllCasesSelectorModal } from '.'; -import { AppMockRenderer, createAppMockRenderer } from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer } from '../../../common/mock'; import userEvent from '@testing-library/user-event'; import { act, waitFor } from '@testing-library/react'; diff --git a/x-pack/plugins/cases/public/components/all_cases/selector_modal/all_cases_selector_modal.tsx b/x-pack/plugins/cases/public/components/all_cases/selector_modal/all_cases_selector_modal.tsx index f5007fcd5a092..217893b0923e0 100644 --- a/x-pack/plugins/cases/public/components/all_cases/selector_modal/all_cases_selector_modal.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/selector_modal/all_cases_selector_modal.tsx @@ -16,7 +16,7 @@ import { } from '@elastic/eui'; import styled from 'styled-components'; import { QueryClientProvider } from '@tanstack/react-query'; -import { Case, CaseStatusWithAllStatus } from '../../../../common/ui/types'; +import type { Case, CaseStatusWithAllStatus } from '../../../../common/ui/types'; import * as i18n from '../../../common/translations'; import { AllCasesList } from '../all_cases_list'; import { casesQueryClient } from '../../cases_context/query_client'; diff --git a/x-pack/plugins/cases/public/components/all_cases/selector_modal/index.tsx b/x-pack/plugins/cases/public/components/all_cases/selector_modal/index.tsx index 77e8ebc1a8071..d1d88e9f5b4a4 100644 --- a/x-pack/plugins/cases/public/components/all_cases/selector_modal/index.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/selector_modal/index.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { AllCasesSelectorModal, AllCasesSelectorModalProps } from './all_cases_selector_modal'; +import type { AllCasesSelectorModalProps } from './all_cases_selector_modal'; +import { AllCasesSelectorModal } from './all_cases_selector_modal'; export type { AllCasesSelectorModalProps }; export { AllCasesSelectorModal }; diff --git a/x-pack/plugins/cases/public/components/all_cases/selector_modal/use_cases_add_to_existing_case_modal.test.tsx b/x-pack/plugins/cases/public/components/all_cases/selector_modal/use_cases_add_to_existing_case_modal.test.tsx index 5dacedf15abc7..d14787fee4a53 100644 --- a/x-pack/plugins/cases/public/components/all_cases/selector_modal/use_cases_add_to_existing_case_modal.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/selector_modal/use_cases_add_to_existing_case_modal.test.tsx @@ -10,8 +10,10 @@ import { act, renderHook } from '@testing-library/react-hooks'; import userEvent from '@testing-library/user-event'; import React from 'react'; import AllCasesSelectorModal from '.'; -import { Case, CaseStatuses, StatusAll } from '../../../../common'; -import { allCasesPermissions, AppMockRenderer, createAppMockRenderer } from '../../../common/mock'; +import type { Case } from '../../../../common'; +import { CaseStatuses, StatusAll } from '../../../../common'; +import type { AppMockRenderer } from '../../../common/mock'; +import { allCasesPermissions, createAppMockRenderer } from '../../../common/mock'; import { useCasesToast } from '../../../common/use_cases_toast'; import { alertComment } from '../../../containers/mock'; import { useCreateAttachments } from '../../../containers/use_create_attachments'; diff --git a/x-pack/plugins/cases/public/components/all_cases/selector_modal/use_cases_add_to_existing_case_modal.tsx b/x-pack/plugins/cases/public/components/all_cases/selector_modal/use_cases_add_to_existing_case_modal.tsx index f9f27ebe780d3..2936ebf56d1e3 100644 --- a/x-pack/plugins/cases/public/components/all_cases/selector_modal/use_cases_add_to_existing_case_modal.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/selector_modal/use_cases_add_to_existing_case_modal.tsx @@ -7,13 +7,13 @@ import { useCallback } from 'react'; import { CaseStatuses, StatusAll } from '../../../../common'; -import { AllCasesSelectorModalProps } from '.'; +import type { AllCasesSelectorModalProps } from '.'; import { useCasesToast } from '../../../common/use_cases_toast'; -import { Case } from '../../../containers/types'; +import type { Case } from '../../../containers/types'; import { CasesContextStoreActionsList } from '../../cases_context/cases_context_reducer'; import { useCasesContext } from '../../cases_context/use_cases_context'; import { useCasesAddToNewCaseFlyout } from '../../create/flyout/use_cases_add_to_new_case_flyout'; -import { CaseAttachmentsWithoutOwner } from '../../../types'; +import type { CaseAttachmentsWithoutOwner } from '../../../types'; import { useCreateAttachments } from '../../../containers/use_create_attachments'; import { useAddAttachmentToExistingCaseTransaction } from '../../../common/apm/use_cases_transactions'; diff --git a/x-pack/plugins/cases/public/components/all_cases/severity_filter.test.tsx b/x-pack/plugins/cases/public/components/all_cases/severity_filter.test.tsx index cd2c21e1473a1..3cd200a5ab8ac 100644 --- a/x-pack/plugins/cases/public/components/all_cases/severity_filter.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/severity_filter.test.tsx @@ -7,7 +7,8 @@ import { CaseSeverity } from '../../../common/api'; import React from 'react'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import userEvent from '@testing-library/user-event'; import { waitFor } from '@testing-library/dom'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; diff --git a/x-pack/plugins/cases/public/components/all_cases/severity_filter.tsx b/x-pack/plugins/cases/public/components/all_cases/severity_filter.tsx index a9f4a6565c318..f421d8828dc20 100644 --- a/x-pack/plugins/cases/public/components/all_cases/severity_filter.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/severity_filter.tsx @@ -5,16 +5,11 @@ * 2.0. */ -import { - EuiFlexGroup, - EuiFlexItem, - EuiHealth, - EuiSuperSelect, - EuiSuperSelectOption, - EuiText, -} from '@elastic/eui'; +import type { EuiSuperSelectOption } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiHealth, EuiSuperSelect, EuiText } from '@elastic/eui'; import React from 'react'; -import { CaseSeverityWithAll, SeverityAll } from '../../containers/types'; +import type { CaseSeverityWithAll } from '../../containers/types'; +import { SeverityAll } from '../../containers/types'; import { severitiesWithAll } from '../severity/config'; interface Props { diff --git a/x-pack/plugins/cases/public/components/all_cases/status_filter.tsx b/x-pack/plugins/cases/public/components/all_cases/status_filter.tsx index 0022839cf91aa..06a45ee6b5ea3 100644 --- a/x-pack/plugins/cases/public/components/all_cases/status_filter.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/status_filter.tsx @@ -6,16 +6,12 @@ */ import React, { memo } from 'react'; -import { - EuiSuperSelect, - EuiSuperSelectOption, - EuiFlexGroup, - EuiFlexItem, - EuiBadge, -} from '@elastic/eui'; +import type { EuiSuperSelectOption } from '@elastic/eui'; +import { EuiSuperSelect, EuiFlexGroup, EuiFlexItem, EuiBadge } from '@elastic/eui'; import { Status } from '@kbn/cases-components'; import { allCaseStatus, statuses } from '../status'; -import { CaseStatusWithAllStatus, StatusAll } from '../../../common/ui/types'; +import type { CaseStatusWithAllStatus } from '../../../common/ui/types'; +import { StatusAll } from '../../../common/ui/types'; interface Props { stats: Record; diff --git a/x-pack/plugins/cases/public/components/all_cases/table.tsx b/x-pack/plugins/cases/public/components/all_cases/table.tsx index 1f7382351e802..61fb081a0dd9a 100644 --- a/x-pack/plugins/cases/public/components/all_cases/table.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/table.tsx @@ -5,21 +5,16 @@ * 2.0. */ -import React, { FunctionComponent, MutableRefObject, useCallback } from 'react'; -import { - EuiEmptyPrompt, - EuiLoadingContent, - EuiTableSelectionType, - EuiBasicTable, - EuiBasicTableProps, - Pagination, -} from '@elastic/eui'; +import type { FunctionComponent, MutableRefObject } from 'react'; +import React, { useCallback } from 'react'; +import type { EuiTableSelectionType, EuiBasicTableProps, Pagination } from '@elastic/eui'; +import { EuiEmptyPrompt, EuiLoadingContent, EuiBasicTable } from '@elastic/eui'; import classnames from 'classnames'; import styled from 'styled-components'; import { CasesTableUtilityBar } from './utility_bar'; import { LinkButton } from '../links'; -import { Cases, Case } from '../../../common/ui/types'; +import type { Cases, Case } from '../../../common/ui/types'; import * as i18n from './translations'; import { useCreateCaseNavigation } from '../../common/navigation'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/all_cases/table_filters.test.tsx b/x-pack/plugins/cases/public/components/all_cases/table_filters.test.tsx index 1f43bc2a5636b..416f5ee7f75c2 100644 --- a/x-pack/plugins/cases/public/components/all_cases/table_filters.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/table_filters.test.tsx @@ -14,7 +14,8 @@ import { licensingMock } from '@kbn/licensing-plugin/public/mocks'; import { CaseStatuses } from '../../../common/api'; import { OBSERVABILITY_OWNER, SECURITY_SOLUTION_OWNER } from '../../../common/constants'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, TestProviders } from '../../common/mock'; import { DEFAULT_FILTER_OPTIONS } from '../../containers/use_get_cases'; import { CasesTableFilters } from './table_filters'; import { useGetTags } from '../../containers/use_get_tags'; diff --git a/x-pack/plugins/cases/public/components/all_cases/table_filters.tsx b/x-pack/plugins/cases/public/components/all_cases/table_filters.tsx index 75fc22a9fee27..553132e606aa6 100644 --- a/x-pack/plugins/cases/public/components/all_cases/table_filters.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/table_filters.tsx @@ -10,10 +10,11 @@ import { isEqual } from 'lodash/fp'; import styled from 'styled-components'; import { EuiFlexGroup, EuiFlexItem, EuiFieldSearch, EuiFilterGroup, EuiButton } from '@elastic/eui'; -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; -import { StatusAll, CaseStatusWithAllStatus, CaseSeverityWithAll } from '../../../common/ui/types'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { CaseStatusWithAllStatus, CaseSeverityWithAll } from '../../../common/ui/types'; +import { StatusAll } from '../../../common/ui/types'; import { CaseStatuses } from '../../../common/api'; -import { FilterOptions } from '../../containers/types'; +import type { FilterOptions } from '../../containers/types'; import { FilterPopover } from '../filter_popover'; import { StatusFilter } from './status_filter'; import * as i18n from './translations'; @@ -21,7 +22,7 @@ import { SeverityFilter } from './severity_filter'; import { useGetTags } from '../../containers/use_get_tags'; import { DEFAULT_FILTER_OPTIONS } from '../../containers/use_get_cases'; import { AssigneesFilterPopover } from './assignees_filter'; -import { CurrentUserProfile } from '../types'; +import type { CurrentUserProfile } from '../types'; import { useCasesFeatures } from '../../common/use_cases_features'; interface CasesTableFiltersProps { diff --git a/x-pack/plugins/cases/public/components/all_cases/use_actions.test.tsx b/x-pack/plugins/cases/public/components/all_cases/use_actions.test.tsx index bf2994a0cad58..a3e118bd6c4f1 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_actions.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_actions.test.tsx @@ -12,8 +12,8 @@ import { act, renderHook } from '@testing-library/react-hooks'; import { useActions } from './use_actions'; import { basicCase } from '../../containers/mock'; import * as api from '../../containers/api'; +import type { AppMockRenderer } from '../../common/mock'; import { - AppMockRenderer, createAppMockRenderer, noDeleteCasesPermissions, onlyDeleteCasesPermission, diff --git a/x-pack/plugins/cases/public/components/all_cases/use_actions.tsx b/x-pack/plugins/cases/public/components/all_cases/use_actions.tsx index 1fe7450835e8d..4a73f2cd98a32 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_actions.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_actions.tsx @@ -6,16 +6,14 @@ */ import React, { useCallback, useMemo, useState } from 'react'; -import { - EuiButtonIcon, - EuiContextMenu, +import type { EuiContextMenuPanelDescriptor, EuiContextMenuPanelItemDescriptor, - EuiPopover, EuiTableComputedColumnType, } from '@elastic/eui'; +import { EuiButtonIcon, EuiContextMenu, EuiPopover } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { Case } from '../../containers/types'; +import type { Case } from '../../containers/types'; import { useDeleteAction } from '../actions/delete/use_delete_action'; import { ConfirmDeleteCaseModal } from '../confirm_delete_case'; import { useStatusAction } from '../actions/status/use_status_action'; diff --git a/x-pack/plugins/cases/public/components/all_cases/use_bulk_actions.test.tsx b/x-pack/plugins/cases/public/components/all_cases/use_bulk_actions.test.tsx index cb4c473204ab0..4ca4042e2e5b1 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_bulk_actions.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_bulk_actions.test.tsx @@ -11,9 +11,9 @@ import userEvent from '@testing-library/user-event'; import { waitFor } from '@testing-library/react'; import { act, renderHook } from '@testing-library/react-hooks'; +import type { AppMockRenderer } from '../../common/mock'; import { allCasesPermissions, - AppMockRenderer, createAppMockRenderer, noDeleteCasesPermissions, onlyDeleteCasesPermission, diff --git a/x-pack/plugins/cases/public/components/all_cases/use_bulk_actions.tsx b/x-pack/plugins/cases/public/components/all_cases/use_bulk_actions.tsx index dce7d136148de..a1648e764ae80 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_bulk_actions.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_bulk_actions.tsx @@ -5,10 +5,13 @@ * 2.0. */ -import { EuiContextMenuPanelDescriptor, EuiContextMenuPanelItemDescriptor } from '@elastic/eui'; +import type { + EuiContextMenuPanelDescriptor, + EuiContextMenuPanelItemDescriptor, +} from '@elastic/eui'; import React, { useMemo } from 'react'; -import { Case } from '../../containers/types'; +import type { Case } from '../../containers/types'; import { useDeleteAction } from '../actions/delete/use_delete_action'; import { useSeverityAction } from '../actions/severity/use_severity_action'; import { useStatusAction } from '../actions/status/use_status_action'; diff --git a/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx b/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx index 85caa0b0348dc..424ad669c5b34 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.test.tsx @@ -10,15 +10,12 @@ import { mount } from 'enzyme'; import { licensingMock } from '@kbn/licensing-plugin/public/mocks'; import '../../common/mock/match_media'; -import { ExternalServiceColumn, GetCasesColumn, useCasesColumns } from './use_cases_columns'; +import type { GetCasesColumn } from './use_cases_columns'; +import { ExternalServiceColumn, useCasesColumns } from './use_cases_columns'; import { useGetCasesMockState } from '../../containers/mock'; import { connectors } from '../configure_cases/__mock__'; -import { - AppMockRenderer, - createAppMockRenderer, - readCasesPermissions, - TestProviders, -} from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, readCasesPermissions, TestProviders } from '../../common/mock'; import { renderHook } from '@testing-library/react-hooks'; import { CaseStatuses } from '../../../common'; import { userProfilesMap, userProfiles } from '../../containers/user_profiles/api.mock'; diff --git a/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.tsx b/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.tsx index f0ce2e6444eef..965277abd2dd3 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_cases_columns.tsx @@ -6,14 +6,16 @@ */ import React, { useCallback } from 'react'; +import type { + EuiTableActionsColumnType, + EuiTableComputedColumnType, + EuiTableFieldDataColumnType, +} from '@elastic/eui'; import { EuiBadgeGroup, EuiBadge, EuiButton, EuiLink, - EuiTableActionsColumnType, - EuiTableComputedColumnType, - EuiTableFieldDataColumnType, EuiFlexGroup, EuiFlexItem, EuiIcon, @@ -23,10 +25,11 @@ import { import { RIGHT_ALIGNMENT } from '@elastic/eui/lib/services'; import styled from 'styled-components'; import { Status } from '@kbn/cases-components'; -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; -import { Case } from '../../../common/ui/types'; -import { CaseStatuses, ActionConnector, CaseSeverity } from '../../../common/api'; +import type { Case } from '../../../common/ui/types'; +import type { ActionConnector } from '../../../common/api'; +import { CaseStatuses, CaseSeverity } from '../../../common/api'; import { OWNER_INFO } from '../../../common/constants'; import { getEmptyTagValue } from '../empty_value'; import { FormattedRelativePreferenceDate } from '../formatted_date'; @@ -42,7 +45,7 @@ import { severities } from '../severity/config'; import { UserToolTip } from '../user_profiles/user_tooltip'; import { useAssignees } from '../../containers/user_profiles/use_assignees'; import { getUsernameDataTestSubj } from '../user_profiles/data_test_subject'; -import { CurrentUserProfile } from '../types'; +import type { CurrentUserProfile } from '../types'; import { SmallUserAvatar } from '../user_profiles/small_user_avatar'; import { useCasesFeatures } from '../../common/use_cases_features'; diff --git a/x-pack/plugins/cases/public/components/all_cases/use_on_refresh_cases.test.tsx b/x-pack/plugins/cases/public/components/all_cases/use_on_refresh_cases.test.tsx index cd077004b5cf9..484fabca00c3d 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_on_refresh_cases.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_on_refresh_cases.test.tsx @@ -6,7 +6,8 @@ */ import { act, renderHook } from '@testing-library/react-hooks'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { casesQueriesKeys } from '../../containers/constants'; import { useRefreshCases } from './use_on_refresh_cases'; diff --git a/x-pack/plugins/cases/public/components/all_cases/utility_bar.test.tsx b/x-pack/plugins/cases/public/components/all_cases/utility_bar.test.tsx index 3a8769460656d..2fddd22a9083c 100644 --- a/x-pack/plugins/cases/public/components/all_cases/utility_bar.test.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/utility_bar.test.tsx @@ -8,10 +8,10 @@ import { act, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import React from 'react'; +import type { AppMockRenderer } from '../../common/mock'; import { noCasesPermissions, onlyDeleteCasesPermission, - AppMockRenderer, createAppMockRenderer, writeCasesPermissions, } from '../../common/mock'; diff --git a/x-pack/plugins/cases/public/components/all_cases/utility_bar.tsx b/x-pack/plugins/cases/public/components/all_cases/utility_bar.tsx index 6daf9cb665116..ef735e62d50ec 100644 --- a/x-pack/plugins/cases/public/components/all_cases/utility_bar.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/utility_bar.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { FunctionComponent, useCallback, useState } from 'react'; +import type { FunctionComponent } from 'react'; +import React, { useCallback, useState } from 'react'; import { EuiButtonEmpty, EuiContextMenu, @@ -16,7 +17,7 @@ import { useEuiTheme, } from '@elastic/eui'; import * as i18n from './translations'; -import { Case } from '../../../common/ui/types'; +import type { Case } from '../../../common/ui/types'; import { useRefreshCases } from './use_on_refresh_cases'; import { useBulkActions } from './use_bulk_actions'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/app/index.tsx b/x-pack/plugins/cases/public/components/app/index.tsx index a8046c078e641..42ef9b658fea7 100644 --- a/x-pack/plugins/cases/public/components/app/index.tsx +++ b/x-pack/plugins/cases/public/components/app/index.tsx @@ -7,13 +7,13 @@ import React from 'react'; import { APP_OWNER } from '../../../common/constants'; -import { ExternalReferenceAttachmentTypeRegistry } from '../../client/attachment_framework/external_reference_registry'; -import { PersistableStateAttachmentTypeRegistry } from '../../client/attachment_framework/persistable_state_registry'; +import type { ExternalReferenceAttachmentTypeRegistry } from '../../client/attachment_framework/external_reference_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../../client/attachment_framework/persistable_state_registry'; import { getCasesLazy } from '../../client/ui/get_cases'; import { useApplicationCapabilities } from '../../common/lib/kibana'; import { Wrapper } from '../wrappers'; -import { CasesRoutesProps } from './types'; +import type { CasesRoutesProps } from './types'; export type CasesProps = CasesRoutesProps; diff --git a/x-pack/plugins/cases/public/components/app/routes.test.tsx b/x-pack/plugins/cases/public/components/app/routes.test.tsx index 205545b682857..e905c831e398b 100644 --- a/x-pack/plugins/cases/public/components/app/routes.test.tsx +++ b/x-pack/plugins/cases/public/components/app/routes.test.tsx @@ -7,7 +7,7 @@ import React from 'react'; // eslint-disable-next-line @kbn/eslint/module_migration -import { MemoryRouterProps } from 'react-router'; +import type { MemoryRouterProps } from 'react-router'; import { render, screen, waitFor } from '@testing-library/react'; import { MemoryRouter } from 'react-router-dom'; import { @@ -17,7 +17,7 @@ import { TestProviders, } from '../../common/mock'; import { CasesRoutes } from './routes'; -import { CasesPermissions } from '../../../common'; +import type { CasesPermissions } from '../../../common'; jest.mock('../all_cases', () => ({ AllCases: () =>
{'All cases'}
, diff --git a/x-pack/plugins/cases/public/components/app/routes.tsx b/x-pack/plugins/cases/public/components/app/routes.tsx index 062007f3341e6..8755689102800 100644 --- a/x-pack/plugins/cases/public/components/app/routes.tsx +++ b/x-pack/plugins/cases/public/components/app/routes.tsx @@ -13,7 +13,7 @@ import { EuiLoadingSpinner } from '@elastic/eui'; import { AllCases } from '../all_cases'; import { CreateCase } from '../create'; import { ConfigureCases } from '../configure_cases'; -import { CasesRoutesProps } from './types'; +import type { CasesRoutesProps } from './types'; import { useCasesContext } from '../cases_context/use_cases_context'; import { getCasesConfigurePath, diff --git a/x-pack/plugins/cases/public/components/app/types.ts b/x-pack/plugins/cases/public/components/app/types.ts index 1df4d54188ec0..e11366d02d853 100644 --- a/x-pack/plugins/cases/public/components/app/types.ts +++ b/x-pack/plugins/cases/public/components/app/types.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { MutableRefObject } from 'react'; -import { CaseViewRefreshPropInterface, UseFetchAlertData } from '../../../common/ui/types'; -import { CasesNavigation } from '../links'; -import { CasesTimelineIntegration } from '../timeline_context'; +import type { MutableRefObject } from 'react'; +import type { CaseViewRefreshPropInterface, UseFetchAlertData } from '../../../common/ui/types'; +import type { CasesNavigation } from '../links'; +import type { CasesTimelineIntegration } from '../timeline_context'; export interface CasesRoutesProps { onComponentInitialized?: () => void; diff --git a/x-pack/plugins/cases/public/components/app/use_available_owners.ts b/x-pack/plugins/cases/public/components/app/use_available_owners.ts index c981a6a01e063..c829b9c590d01 100644 --- a/x-pack/plugins/cases/public/components/app/use_available_owners.ts +++ b/x-pack/plugins/cases/public/components/app/use_available_owners.ts @@ -7,7 +7,7 @@ import { APP_ID, FEATURE_ID } from '../../../common/constants'; import { useKibana } from '../../common/lib/kibana'; -import { CasesPermissions } from '../../containers/types'; +import type { CasesPermissions } from '../../containers/types'; import { allCasePermissions } from '../../utils/permissions'; type Capability = Exclude; diff --git a/x-pack/plugins/cases/public/components/callouts/case_callouts.test.tsx b/x-pack/plugins/cases/public/components/callouts/case_callouts.test.tsx index 2d499bded55ee..695fe6c7a08b6 100644 --- a/x-pack/plugins/cases/public/components/callouts/case_callouts.test.tsx +++ b/x-pack/plugins/cases/public/components/callouts/case_callouts.test.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { licensingMock } from '@kbn/licensing-plugin/public/mocks'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { CaseCallouts } from './case_callouts'; describe('CaseCallouts ', () => { diff --git a/x-pack/plugins/cases/public/components/callouts/platinum_callout.test.tsx b/x-pack/plugins/cases/public/components/callouts/platinum_callout.test.tsx index bad098a7562d4..680c5fcf78925 100644 --- a/x-pack/plugins/cases/public/components/callouts/platinum_callout.test.tsx +++ b/x-pack/plugins/cases/public/components/callouts/platinum_callout.test.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { PlatinumLicenseCallout } from './platinum_callout'; describe('PlatinumLicenseCallout ', () => { diff --git a/x-pack/plugins/cases/public/components/case_action_bar/actions.tsx b/x-pack/plugins/cases/public/components/case_action_bar/actions.tsx index 2481822f76b8d..414ac6326ef5d 100644 --- a/x-pack/plugins/cases/public/components/case_action_bar/actions.tsx +++ b/x-pack/plugins/cases/public/components/case_action_bar/actions.tsx @@ -12,8 +12,8 @@ import * as i18n from '../case_view/translations'; import { useDeleteCases } from '../../containers/use_delete_cases'; import { ConfirmDeleteCaseModal } from '../confirm_delete_case'; import { PropertyActions } from '../property_actions'; -import { Case } from '../../../common/ui/types'; -import { CaseService } from '../../containers/use_get_case_user_actions'; +import type { Case } from '../../../common/ui/types'; +import type { CaseService } from '../../containers/use_get_case_user_actions'; import { useAllCasesNavigation } from '../../common/navigation'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/case_action_bar/helpers.ts b/x-pack/plugins/cases/public/components/case_action_bar/helpers.ts index b26c33b0fd009..772bedd266dd8 100644 --- a/x-pack/plugins/cases/public/components/case_action_bar/helpers.ts +++ b/x-pack/plugins/cases/public/components/case_action_bar/helpers.ts @@ -6,7 +6,7 @@ */ import { CaseStatuses } from '../../../common/api'; -import { Case } from '../../containers/types'; +import type { Case } from '../../containers/types'; import { statuses } from '../status'; export const getStatusDate = (theCase: Case): string | null => { diff --git a/x-pack/plugins/cases/public/components/case_action_bar/index.test.tsx b/x-pack/plugins/cases/public/components/case_action_bar/index.test.tsx index 1802a063ca932..dc2cbccc229c2 100644 --- a/x-pack/plugins/cases/public/components/case_action_bar/index.test.tsx +++ b/x-pack/plugins/cases/public/components/case_action_bar/index.test.tsx @@ -11,7 +11,8 @@ import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { basicCase, caseUserActions, getAlertUserAction } from '../../containers/mock'; -import { CaseActionBar, CaseActionBarProps } from '.'; +import type { CaseActionBarProps } from '.'; +import { CaseActionBar } from '.'; import { allCasesPermissions, noDeleteCasesPermissions, diff --git a/x-pack/plugins/cases/public/components/case_action_bar/index.tsx b/x-pack/plugins/cases/public/components/case_action_bar/index.tsx index 50b5bf0573d8c..3d68fcaa4d56d 100644 --- a/x-pack/plugins/cases/public/components/case_action_bar/index.tsx +++ b/x-pack/plugins/cases/public/components/case_action_bar/index.tsx @@ -17,8 +17,8 @@ import { EuiIconTip, EuiLoadingSpinner, } from '@elastic/eui'; -import { Case } from '../../../common/ui/types'; -import { CaseStatuses } from '../../../common/api'; +import type { Case } from '../../../common/ui/types'; +import type { CaseStatuses } from '../../../common/api'; import * as i18n from '../case_view/translations'; import { Actions } from './actions'; import { useGetCaseUserActions } from '../../containers/use_get_case_user_actions'; diff --git a/x-pack/plugins/cases/public/components/case_action_bar/status_context_menu.tsx b/x-pack/plugins/cases/public/components/case_action_bar/status_context_menu.tsx index da12f41eedc90..ab1c728ad6f35 100644 --- a/x-pack/plugins/cases/public/components/case_action_bar/status_context_menu.tsx +++ b/x-pack/plugins/cases/public/components/case_action_bar/status_context_menu.tsx @@ -8,7 +8,8 @@ import React, { memo, useCallback, useMemo, useState } from 'react'; import { EuiPopover, EuiContextMenuPanel, EuiContextMenuItem } from '@elastic/eui'; import { Status } from '@kbn/cases-components'; -import { caseStatuses, CaseStatuses } from '../../../common/api'; +import type { CaseStatuses } from '../../../common/api'; +import { caseStatuses } from '../../../common/api'; import { StatusPopoverButton } from '../status'; import { CHANGE_STATUS } from '../all_cases/translations'; diff --git a/x-pack/plugins/cases/public/components/case_view/case_view_page.test.tsx b/x-pack/plugins/cases/public/components/case_view/case_view_page.test.tsx index 5fb3eba7555a5..7a299257b8017 100644 --- a/x-pack/plugins/cases/public/components/case_view/case_view_page.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/case_view_page.test.tsx @@ -10,12 +10,14 @@ import { act, waitFor, within } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; import { ConnectorTypes } from '../../../common/api'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import '../../common/mock/match_media'; import { useCaseViewNavigation, useUrlParams } from '../../common/navigation/hooks'; import { useGetConnectors } from '../../containers/configure/use_connectors'; import { basicCaseClosed, connectorsMock } from '../../containers/mock'; -import { useGetCase, UseGetCase } from '../../containers/use_get_case'; +import type { UseGetCase } from '../../containers/use_get_case'; +import { useGetCase } from '../../containers/use_get_case'; import { useGetCaseMetrics } from '../../containers/use_get_case_metrics'; import { useGetCaseUserActions } from '../../containers/use_get_case_user_actions'; import { useGetTags } from '../../containers/use_get_tags'; @@ -31,7 +33,7 @@ import { defaultUpdateCaseState, defaultUseGetCaseUserActions, } from './mocks'; -import { CaseViewPageProps } from './types'; +import type { CaseViewPageProps } from './types'; import { userProfiles } from '../../containers/user_profiles/api.mock'; import { licensingMock } from '@kbn/licensing-plugin/public/mocks'; import { CASE_VIEW_PAGE_TABS } from '../../../common/types'; diff --git a/x-pack/plugins/cases/public/components/case_view/case_view_page.tsx b/x-pack/plugins/cases/public/components/case_view/case_view_page.tsx index f01deea5c0c91..af796ff796d85 100644 --- a/x-pack/plugins/cases/public/components/case_view/case_view_page.tsx +++ b/x-pack/plugins/cases/public/components/case_view/case_view_page.tsx @@ -22,7 +22,7 @@ import { CaseViewActivity } from './components/case_view_activity'; import { CaseViewAlerts } from './components/case_view_alerts'; import { CaseViewMetrics } from './metrics'; import { ACTIVITY_TAB, ALERTS_TAB } from './translations'; -import { CaseViewPageProps } from './types'; +import type { CaseViewPageProps } from './types'; import { useRefreshCaseViewPage } from './use_on_refresh_case_view_page'; import { useOnUpdateField } from './use_on_update_field'; diff --git a/x-pack/plugins/cases/public/components/case_view/components/assign_users.test.tsx b/x-pack/plugins/cases/public/components/case_view/components/assign_users.test.tsx index fdd4b5cb77e7d..b14e52c9e51dc 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/assign_users.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/assign_users.test.tsx @@ -10,12 +10,10 @@ import { useGetCurrentUserProfile } from '../../../containers/user_profiles/use_ import { userProfiles, userProfilesMap } from '../../../containers/user_profiles/api.mock'; import { fireEvent, screen, waitFor } from '@testing-library/react'; import React from 'react'; -import { - AppMockRenderer, - createAppMockRenderer, - noUpdateCasesPermissions, -} from '../../../common/mock'; -import { AssignUsers, AssignUsersProps } from './assign_users'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer, noUpdateCasesPermissions } from '../../../common/mock'; +import type { AssignUsersProps } from './assign_users'; +import { AssignUsers } from './assign_users'; import { waitForEuiPopoverClose, waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; jest.mock('../../../containers/user_profiles/use_suggest_user_profiles'); diff --git a/x-pack/plugins/cases/public/components/case_view/components/assign_users.tsx b/x-pack/plugins/cases/public/components/case_view/components/assign_users.tsx index c1f72f84a6444..90d227901259a 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/assign_users.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/assign_users.tsx @@ -15,17 +15,17 @@ import { EuiHorizontalRule, } from '@elastic/eui'; -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; -import { CasesPermissions } from '../../../../common'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { CasesPermissions } from '../../../../common'; import { useAssignees } from '../../../containers/user_profiles/use_assignees'; -import { CaseAssignees } from '../../../../common/api/cases/assignee'; +import type { CaseAssignees } from '../../../../common/api/cases/assignee'; import * as i18n from '../translations'; import { SidebarTitle } from './sidebar_title'; import { RemovableUser } from '../../user_profiles/removable_user'; import { useCasesContext } from '../../cases_context/use_cases_context'; -import { Assignee } from '../../user_profiles/types'; +import type { Assignee } from '../../user_profiles/types'; import { SuggestUsersPopover } from './suggest_users_popover'; -import { CurrentUserProfile } from '../../types'; +import type { CurrentUserProfile } from '../../types'; interface AssigneesListProps { assignees: Assignee[]; diff --git a/x-pack/plugins/cases/public/components/case_view/components/case_view_activity.test.tsx b/x-pack/plugins/cases/public/components/case_view/components/case_view_activity.test.tsx index fe08ce1fabed4..78afb00693423 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/case_view_activity.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/case_view_activity.test.tsx @@ -13,15 +13,12 @@ import { getAlertUserAction, } from '../../../containers/mock'; import React from 'react'; -import { - AppMockRenderer, - createAppMockRenderer, - noUpdateCasesPermissions, -} from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer, noUpdateCasesPermissions } from '../../../common/mock'; import { CaseViewActivity } from './case_view_activity'; import { ConnectorTypes } from '../../../../common/api/connectors'; -import { Case } from '../../../../common'; -import { CaseViewProps } from '../types'; +import type { Case } from '../../../../common'; +import type { CaseViewProps } from '../types'; import { useGetCaseUserActions } from '../../../containers/use_get_case_user_actions'; import { usePostPushToService } from '../../../containers/use_post_push_to_service'; import { useGetConnectors } from '../../../containers/configure/use_connectors'; diff --git a/x-pack/plugins/cases/public/components/case_view/components/case_view_activity.tsx b/x-pack/plugins/cases/public/components/case_view/components/case_view_activity.tsx index 9af7b6f1cbd17..8b2b17f544d3b 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/case_view_activity.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/case_view_activity.tsx @@ -14,12 +14,12 @@ import { useCasesFeatures } from '../../../common/use_cases_features'; import { useGetCurrentUserProfile } from '../../../containers/user_profiles/use_get_current_user_profile'; import { useBulkGetUserProfiles } from '../../../containers/user_profiles/use_bulk_get_user_profiles'; import { useGetConnectors } from '../../../containers/configure/use_connectors'; -import { CaseSeverity } from '../../../../common/api'; +import type { CaseSeverity } from '../../../../common/api'; import { useCaseViewNavigation } from '../../../common/navigation'; -import { UseFetchAlertData } from '../../../../common/ui/types'; -import { Case, CaseStatuses } from '../../../../common'; +import type { UseFetchAlertData } from '../../../../common/ui/types'; +import type { Case, CaseStatuses } from '../../../../common'; import { EditConnector } from '../../edit_connector'; -import { CasesNavigation } from '../../links'; +import type { CasesNavigation } from '../../links'; import { StatusActionButton } from '../../status/button'; import { EditTags } from './edit_tags'; import { UserActions } from '../../user_actions'; @@ -32,7 +32,7 @@ import { getConnectorById } from '../../utils'; import { SeveritySidebarSelector } from '../../severity/sidebar_selector'; import { useGetCaseUserActions } from '../../../containers/use_get_case_user_actions'; import { AssignUsers } from './assign_users'; -import { Assignee } from '../../user_profiles/types'; +import type { Assignee } from '../../user_profiles/types'; export const CaseViewActivity = ({ ruleDetailsNavigation, diff --git a/x-pack/plugins/cases/public/components/case_view/components/case_view_alerts.test.tsx b/x-pack/plugins/cases/public/components/case_view/components/case_view_alerts.test.tsx index 67b57533f9b49..87bcf1557f579 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/case_view_alerts.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/case_view_alerts.test.tsx @@ -8,8 +8,9 @@ import React from 'react'; import { waitFor } from '@testing-library/dom'; import { alertCommentWithIndices, basicCase } from '../../../containers/mock'; -import { AppMockRenderer, createAppMockRenderer } from '../../../common/mock'; -import { Case } from '../../../../common'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer } from '../../../common/mock'; +import type { Case } from '../../../../common'; import { CaseViewAlerts } from './case_view_alerts'; import * as api from '../../../containers/api'; diff --git a/x-pack/plugins/cases/public/components/case_view/components/case_view_alerts.tsx b/x-pack/plugins/cases/public/components/case_view/components/case_view_alerts.tsx index 0bd582e1cef62..ccf5579dc1c7e 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/case_view_alerts.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/case_view_alerts.tsx @@ -7,8 +7,9 @@ import React, { useMemo } from 'react'; -import { EuiFlexItem, EuiFlexGroup, EuiProgress, EuiFlyoutSize } from '@elastic/eui'; -import { Case } from '../../../../common'; +import type { EuiFlyoutSize } from '@elastic/eui'; +import { EuiFlexItem, EuiFlexGroup, EuiProgress } from '@elastic/eui'; +import type { Case } from '../../../../common'; import { useKibana } from '../../../common/lib/kibana'; import { getManualAlertIds, getRegistrationContextFromAlerts } from './helpers'; import { useGetFeatureIds } from '../../../containers/use_get_feature_ids'; diff --git a/x-pack/plugins/cases/public/components/case_view/components/edit_tags.test.tsx b/x-pack/plugins/cases/public/components/case_view/components/edit_tags.test.tsx index 2302da1efb89c..d63aae3eb74b0 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/edit_tags.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/edit_tags.test.tsx @@ -8,7 +8,8 @@ import React from 'react'; import { mount } from 'enzyme'; -import { EditTags, EditTagsProps } from './edit_tags'; +import type { EditTagsProps } from './edit_tags'; +import { EditTags } from './edit_tags'; import { getFormMock } from '../../__mock__/form'; import { readCasesPermissions, TestProviders } from '../../../common/mock'; import { waitFor } from '@testing-library/react'; diff --git a/x-pack/plugins/cases/public/components/case_view/components/edit_tags.tsx b/x-pack/plugins/cases/public/components/case_view/components/edit_tags.tsx index 0dd651f6c9251..3a3a01cc49e94 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/edit_tags.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/edit_tags.tsx @@ -19,13 +19,13 @@ import { import styled, { css } from 'styled-components'; import { isEqual } from 'lodash/fp'; import * as i18n from '../../tags/translations'; +import type { FormSchema } from '../../../common/shared_imports'; import { Form, FormDataProvider, useForm, getUseField, Field, - FormSchema, } from '../../../common/shared_imports'; import { useGetTags } from '../../../containers/use_get_tags'; import { Tags } from '../../tags/tags'; diff --git a/x-pack/plugins/cases/public/components/case_view/components/suggest_users_popover.test.tsx b/x-pack/plugins/cases/public/components/case_view/components/suggest_users_popover.test.tsx index f38857fbbfe5d..479b8e39d232d 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/suggest_users_popover.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/suggest_users_popover.test.tsx @@ -6,13 +6,15 @@ */ import React from 'react'; -import { AppMockRenderer, createAppMockRenderer } from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer } from '../../../common/mock'; import { screen, fireEvent, waitFor } from '@testing-library/react'; -import { SuggestUsersPopoverProps, SuggestUsersPopover } from './suggest_users_popover'; +import type { SuggestUsersPopoverProps } from './suggest_users_popover'; +import { SuggestUsersPopover } from './suggest_users_popover'; import { userProfiles } from '../../../containers/user_profiles/api.mock'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; -import { AssigneeWithProfile } from '../../user_profiles/types'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { AssigneeWithProfile } from '../../user_profiles/types'; jest.mock('../../../containers/user_profiles/api'); diff --git a/x-pack/plugins/cases/public/components/case_view/components/suggest_users_popover.tsx b/x-pack/plugins/cases/public/components/case_view/components/suggest_users_popover.tsx index cb824adf0a217..fd73d3a2ae7ce 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/suggest_users_popover.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/suggest_users_popover.tsx @@ -6,19 +6,20 @@ */ import React, { useCallback, useMemo, useState } from 'react'; -import { UserProfilesPopover, UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import { UserProfilesPopover } from '@kbn/user-profile-components'; import { EuiButtonIcon, EuiToolTip } from '@elastic/eui'; import { isEmpty } from 'lodash'; import { useSuggestUserProfiles } from '../../../containers/user_profiles/use_suggest_user_profiles'; import { useCasesContext } from '../../cases_context/use_cases_context'; -import { AssigneeWithProfile } from '../../user_profiles/types'; +import type { AssigneeWithProfile } from '../../user_profiles/types'; import * as i18n from '../translations'; import { bringCurrentUserToFrontAndSort } from '../../user_profiles/sort'; import { SelectedStatusMessage } from '../../user_profiles/selected_status_message'; import { EmptyMessage } from '../../user_profiles/empty_message'; import { NoMatches } from '../../user_profiles/no_matches'; -import { CurrentUserProfile } from '../../types'; +import type { CurrentUserProfile } from '../../types'; const PopoverButton: React.FC<{ togglePopover: () => void; isDisabled: boolean }> = ({ togglePopover, diff --git a/x-pack/plugins/cases/public/components/case_view/components/user_list.tsx b/x-pack/plugins/cases/public/components/case_view/components/user_list.tsx index ae90712e9cfdb..3ae7f0541ea91 100644 --- a/x-pack/plugins/cases/public/components/case_view/components/user_list.tsx +++ b/x-pack/plugins/cases/public/components/case_view/components/user_list.tsx @@ -19,10 +19,10 @@ import { import styled, { css } from 'styled-components'; -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; -import { ElasticUser } from '../../../containers/types'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { ElasticUser } from '../../../containers/types'; import * as i18n from '../translations'; -import { UserInfoWithAvatar } from '../../user_profiles/types'; +import type { UserInfoWithAvatar } from '../../user_profiles/types'; import { HoverableUserWithAvatar } from '../../user_profiles/hoverable_user_with_avatar'; import { convertToUserInfo } from '../../user_profiles/user_converter'; diff --git a/x-pack/plugins/cases/public/components/case_view/index.test.tsx b/x-pack/plugins/cases/public/components/case_view/index.test.tsx index 6a5fd8fad8113..c745cd9d01c74 100644 --- a/x-pack/plugins/cases/public/components/case_view/index.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/index.test.tsx @@ -15,18 +15,20 @@ import React from 'react'; import '../../common/mock/match_media'; -import { CaseViewProps } from './types'; +import type { CaseViewProps } from './types'; import { connectorsMock } from '../../containers/mock'; -import { SpacesApi } from '@kbn/spaces-plugin/public'; +import type { SpacesApi } from '@kbn/spaces-plugin/public'; import { useUpdateCase } from '../../containers/use_update_case'; -import { UseGetCase, useGetCase } from '../../containers/use_get_case'; +import type { UseGetCase } from '../../containers/use_get_case'; +import { useGetCase } from '../../containers/use_get_case'; import { useGetCaseMetrics } from '../../containers/use_get_case_metrics'; import { usePostPushToService } from '../../containers/use_post_push_to_service'; import { useKibana } from '../../common/lib/kibana'; import { useGetCaseUserActions } from '../../containers/use_get_case_user_actions'; import { useGetConnectors } from '../../containers/configure/use_connectors'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import CaseView from '.'; import { waitFor } from '@testing-library/dom'; import { useGetTags } from '../../containers/use_get_tags'; diff --git a/x-pack/plugins/cases/public/components/case_view/metrics/index.test.tsx b/x-pack/plugins/cases/public/components/case_view/metrics/index.test.tsx index ebe2d35f55db4..166ec92d5798c 100644 --- a/x-pack/plugins/cases/public/components/case_view/metrics/index.test.tsx +++ b/x-pack/plugins/cases/public/components/case_view/metrics/index.test.tsx @@ -13,7 +13,7 @@ import { basicCaseStatusFeatures, } from '../../../containers/mock'; import { CaseViewMetrics } from '.'; -import { SingleCaseMetrics, SingleCaseMetricsFeature } from '../../../../common/ui'; +import type { SingleCaseMetrics, SingleCaseMetricsFeature } from '../../../../common/ui'; import { TestProviders } from '../../../common/mock'; import { useGetCaseMetrics } from '../../../containers/use_get_case_metrics'; import { useCasesFeatures } from '../../../common/use_cases_features'; diff --git a/x-pack/plugins/cases/public/components/case_view/metrics/status.tsx b/x-pack/plugins/cases/public/components/case_view/metrics/status.tsx index e67f554d2394d..e7364f029fc2d 100644 --- a/x-pack/plugins/cases/public/components/case_view/metrics/status.tsx +++ b/x-pack/plugins/cases/public/components/case_view/metrics/status.tsx @@ -9,7 +9,7 @@ import React, { useMemo } from 'react'; import prettyMilliseconds from 'pretty-ms'; import { EuiFlexGrid, EuiFlexGroup, EuiFlexItem, EuiIconTip, EuiSpacer } from '@elastic/eui'; import { euiStyled } from '@kbn/kibana-react-plugin/common'; -import { SingleCaseMetrics, SingleCaseMetricsFeature } from '../../../../common/ui'; +import type { SingleCaseMetrics, SingleCaseMetricsFeature } from '../../../../common/ui'; import { CASE_CREATED, CASE_IN_PROGRESS_DURATION, diff --git a/x-pack/plugins/cases/public/components/case_view/metrics/totals.tsx b/x-pack/plugins/cases/public/components/case_view/metrics/totals.tsx index 922f3f83e2254..dd81a2328a97a 100644 --- a/x-pack/plugins/cases/public/components/case_view/metrics/totals.tsx +++ b/x-pack/plugins/cases/public/components/case_view/metrics/totals.tsx @@ -8,7 +8,7 @@ import React, { useMemo } from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { euiStyled } from '@kbn/kibana-react-plugin/common'; -import { SingleCaseMetrics, SingleCaseMetricsFeature } from '../../../../common/ui'; +import type { SingleCaseMetrics, SingleCaseMetricsFeature } from '../../../../common/ui'; import { ASSOCIATED_HOSTS_METRIC, ASSOCIATED_USERS_METRIC, diff --git a/x-pack/plugins/cases/public/components/case_view/mocks.ts b/x-pack/plugins/cases/public/components/case_view/mocks.ts index 41bc35eeb7b4a..1df9907d7f2e2 100644 --- a/x-pack/plugins/cases/public/components/case_view/mocks.ts +++ b/x-pack/plugins/cases/public/components/case_view/mocks.ts @@ -13,8 +13,8 @@ import { caseUserActions, getAlertUserAction, } from '../../containers/mock'; -import { Case } from '../../containers/types'; -import { CaseViewProps } from './types'; +import type { Case } from '../../containers/types'; +import type { CaseViewProps } from './types'; export const alertsHit = [ { diff --git a/x-pack/plugins/cases/public/components/case_view/types.ts b/x-pack/plugins/cases/public/components/case_view/types.ts index 671eadc9442b2..0e6bf82c5fef9 100644 --- a/x-pack/plugins/cases/public/components/case_view/types.ts +++ b/x-pack/plugins/cases/public/components/case_view/types.ts @@ -4,11 +4,11 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { MutableRefObject } from 'react'; -import { CasesTimelineIntegration } from '../timeline_context'; -import { CasesNavigation } from '../links'; -import { CaseViewRefreshPropInterface, Case } from '../../../common'; -import { UseFetchAlertData } from '../../../common/ui'; +import type { MutableRefObject } from 'react'; +import type { CasesTimelineIntegration } from '../timeline_context'; +import type { CasesNavigation } from '../links'; +import type { CaseViewRefreshPropInterface, Case } from '../../../common'; +import type { UseFetchAlertData } from '../../../common/ui'; export interface CaseViewBaseProps { onComponentInitialized?: () => void; diff --git a/x-pack/plugins/cases/public/components/case_view/use_on_update_field.ts b/x-pack/plugins/cases/public/components/case_view/use_on_update_field.ts index 9180244b9cf45..449eb7b2ca8a9 100644 --- a/x-pack/plugins/cases/public/components/case_view/use_on_update_field.ts +++ b/x-pack/plugins/cases/public/components/case_view/use_on_update_field.ts @@ -8,13 +8,13 @@ import { useCallback } from 'react'; import deepEqual from 'fast-deep-equal'; -import { CaseConnector } from '../../../common/api'; -import { CaseAttributes } from '../../../common/api/cases/case'; -import { CaseStatuses } from '../../../common/api/cases/status'; -import { Case, UpdateByKey, UpdateKey } from '../../containers/types'; +import type { CaseConnector } from '../../../common/api'; +import type { CaseAttributes } from '../../../common/api/cases/case'; +import type { CaseStatuses } from '../../../common/api/cases/status'; +import type { Case, UpdateByKey, UpdateKey } from '../../containers/types'; import { useUpdateCase } from '../../containers/use_update_case'; import { getTypedPayload } from '../../containers/utils'; -import { OnUpdateFields } from './types'; +import type { OnUpdateFields } from './types'; export const useOnUpdateField = ({ caseData, caseId }: { caseData: Case; caseId: string }) => { const { isLoading, updateKey: loadingKey, updateCaseProperty } = useUpdateCase(); diff --git a/x-pack/plugins/cases/public/components/cases_context/cases_context_reducer.ts b/x-pack/plugins/cases/public/components/cases_context/cases_context_reducer.ts index 53af5d75f2dbe..1ab468e246bdd 100644 --- a/x-pack/plugins/cases/public/components/cases_context/cases_context_reducer.ts +++ b/x-pack/plugins/cases/public/components/cases_context/cases_context_reducer.ts @@ -6,8 +6,8 @@ */ import { assertNever } from '@kbn/std'; -import { AllCasesSelectorModalProps } from '../all_cases/selector_modal'; -import { CreateCaseFlyoutProps } from '../create/flyout'; +import type { AllCasesSelectorModalProps } from '../all_cases/selector_modal'; +import type { CreateCaseFlyoutProps } from '../create/flyout'; export const getInitialCasesContextState = (): CasesContextState => { return { diff --git a/x-pack/plugins/cases/public/components/cases_context/cases_global_components.test.tsx b/x-pack/plugins/cases/public/components/cases_context/cases_global_components.test.tsx index 0f7efd67dc63c..40793010c789f 100644 --- a/x-pack/plugins/cases/public/components/cases_context/cases_global_components.test.tsx +++ b/x-pack/plugins/cases/public/components/cases_context/cases_global_components.test.tsx @@ -8,7 +8,8 @@ import React from 'react'; import { getAllCasesSelectorModalNoProviderLazy } from '../../client/ui/get_all_cases_selector_modal'; import { getCreateCaseFlyoutLazyNoProvider } from '../../client/ui/get_create_case_flyout'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { getInitialCasesContextState } from './cases_context_reducer'; import { CasesGlobalComponents } from './cases_global_components'; diff --git a/x-pack/plugins/cases/public/components/cases_context/cases_global_components.tsx b/x-pack/plugins/cases/public/components/cases_context/cases_global_components.tsx index 09b0c0d5658eb..2add2322b1f0b 100644 --- a/x-pack/plugins/cases/public/components/cases_context/cases_global_components.tsx +++ b/x-pack/plugins/cases/public/components/cases_context/cases_global_components.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { getAllCasesSelectorModalNoProviderLazy } from '../../client/ui/get_all_cases_selector_modal'; import { getCreateCaseFlyoutLazyNoProvider } from '../../client/ui/get_create_case_flyout'; -import { CasesContextState } from './cases_context_reducer'; +import type { CasesContextState } from './cases_context_reducer'; export const CasesGlobalComponents = React.memo(({ state }: { state: CasesContextState }) => { return ( diff --git a/x-pack/plugins/cases/public/components/cases_context/index.tsx b/x-pack/plugins/cases/public/components/cases_context/index.tsx index 627dec248b371..4e31fffdd7701 100644 --- a/x-pack/plugins/cases/public/components/cases_context/index.tsx +++ b/x-pack/plugins/cases/public/components/cases_context/index.tsx @@ -5,22 +5,24 @@ * 2.0. */ -import React, { useState, useEffect, useReducer, Dispatch } from 'react'; +import type { Dispatch } from 'react'; +import React, { useState, useEffect, useReducer } from 'react'; import { merge } from 'lodash'; import useDeepCompareEffect from 'react-use/lib/useDeepCompareEffect'; import { DEFAULT_FEATURES } from '../../../common/constants'; import { DEFAULT_BASE_PATH } from '../../common/navigation'; import { useApplication } from './use_application'; -import { - CasesContextStoreAction, - casesContextReducer, - getInitialCasesContextState, -} from './cases_context_reducer'; -import { CasesFeaturesAllRequired, CasesFeatures, CasesPermissions } from '../../containers/types'; +import type { CasesContextStoreAction } from './cases_context_reducer'; +import { casesContextReducer, getInitialCasesContextState } from './cases_context_reducer'; +import type { + CasesFeaturesAllRequired, + CasesFeatures, + CasesPermissions, +} from '../../containers/types'; import { CasesGlobalComponents } from './cases_global_components'; -import { ReleasePhase } from '../types'; -import { ExternalReferenceAttachmentTypeRegistry } from '../../client/attachment_framework/external_reference_registry'; -import { PersistableStateAttachmentTypeRegistry } from '../../client/attachment_framework/persistable_state_registry'; +import type { ReleasePhase } from '../types'; +import type { ExternalReferenceAttachmentTypeRegistry } from '../../client/attachment_framework/external_reference_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../../client/attachment_framework/persistable_state_registry'; export type CasesContextValueDispatch = Dispatch; diff --git a/x-pack/plugins/cases/public/components/configure_cases/__mock__/index.tsx b/x-pack/plugins/cases/public/components/configure_cases/__mock__/index.tsx index cc76bdfcd2f7d..5ffdf69e47a41 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/__mock__/index.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/__mock__/index.tsx @@ -5,9 +5,10 @@ * 2.0. */ -import { ActionTypeConnector, ConnectorTypes } from '../../../../common/api'; -import { ActionConnector } from '../../../containers/configure/types'; -import { ReturnUseCaseConfigure } from '../../../containers/configure/use_configure'; +import type { ActionTypeConnector } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; +import type { ActionConnector } from '../../../containers/configure/types'; +import type { ReturnUseCaseConfigure } from '../../../containers/configure/use_configure'; import { connectorsMock, actionTypesMock } from '../../../common/mock/connectors'; export { mappings } from '../../../containers/configure/mock'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/closure_options.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/closure_options.test.tsx index 56123a934d51f..0202651b6f2bf 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/closure_options.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/closure_options.test.tsx @@ -6,9 +6,11 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; -import { ClosureOptions, ClosureOptionsProps } from './closure_options'; +import type { ClosureOptionsProps } from './closure_options'; +import { ClosureOptions } from './closure_options'; import { TestProviders } from '../../common/mock'; import { ClosureOptionsRadio } from './closure_options_radio'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/closure_options.tsx b/x-pack/plugins/cases/public/components/configure_cases/closure_options.tsx index 1681f2cf94497..9073988783889 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/closure_options.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/closure_options.tsx @@ -8,7 +8,7 @@ import React from 'react'; import { EuiDescribedFormGroup, EuiFormRow } from '@elastic/eui'; -import { ClosureType } from '../../containers/configure/types'; +import type { ClosureType } from '../../containers/configure/types'; import { ClosureOptionsRadio } from './closure_options_radio'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/closure_options_radio.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/closure_options_radio.test.tsx index b9885b4e07d48..7fb66f2e1eb14 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/closure_options_radio.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/closure_options_radio.test.tsx @@ -6,9 +6,11 @@ */ import React from 'react'; -import { ReactWrapper, mount } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; -import { ClosureOptionsRadio, ClosureOptionsRadioComponentProps } from './closure_options_radio'; +import type { ClosureOptionsRadioComponentProps } from './closure_options_radio'; +import { ClosureOptionsRadio } from './closure_options_radio'; import { TestProviders } from '../../common/mock'; describe('ClosureOptionsRadio', () => { diff --git a/x-pack/plugins/cases/public/components/configure_cases/closure_options_radio.tsx b/x-pack/plugins/cases/public/components/configure_cases/closure_options_radio.tsx index 88ee18db805ff..50009ec69fc13 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/closure_options_radio.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/closure_options_radio.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import React, { ReactNode, useCallback } from 'react'; +import type { ReactNode } from 'react'; +import React, { useCallback } from 'react'; import { EuiRadioGroup } from '@elastic/eui'; -import { ClosureType } from '../../containers/configure/types'; +import type { ClosureType } from '../../containers/configure/types'; import * as i18n from './translations'; interface ClosureRadios { diff --git a/x-pack/plugins/cases/public/components/configure_cases/connectors.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/connectors.test.tsx index 955e114561ce8..2057d0153be68 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/connectors.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/connectors.test.tsx @@ -6,11 +6,14 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { render, screen } from '@testing-library/react'; -import { Connectors, Props } from './connectors'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from '../../common/mock'; +import type { Props } from './connectors'; +import { Connectors } from './connectors'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, TestProviders } from '../../common/mock'; import { ConnectorsDropdown } from './connectors_dropdown'; import { connectors, actionTypes } from './__mock__'; import { ConnectorTypes } from '../../../common/api'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/connectors.tsx b/x-pack/plugins/cases/public/components/configure_cases/connectors.tsx index f0772195fc522..935b65c066055 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/connectors.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/connectors.tsx @@ -20,9 +20,10 @@ import styled from 'styled-components'; import { ConnectorsDropdown } from './connectors_dropdown'; import * as i18n from './translations'; -import { ActionConnector, CaseConnectorMapping } from '../../containers/configure/types'; +import type { ActionConnector, CaseConnectorMapping } from '../../containers/configure/types'; import { Mapping } from './mapping'; -import { ActionTypeConnector, ConnectorTypes } from '../../../common/api'; +import type { ActionTypeConnector } from '../../../common/api'; +import { ConnectorTypes } from '../../../common/api'; import { DeprecatedCallout } from '../connectors/deprecated_callout'; import { isDeprecatedConnector } from '../utils'; import { useApplicationCapabilities } from '../../common/lib/kibana'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.test.tsx index e8093325c1e09..3f3bdedff3e3c 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.test.tsx @@ -6,11 +6,13 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { EuiSuperSelect } from '@elastic/eui'; import { render, screen } from '@testing-library/react'; -import { ConnectorsDropdown, Props } from './connectors_dropdown'; +import type { Props } from './connectors_dropdown'; +import { ConnectorsDropdown } from './connectors_dropdown'; import { TestProviders } from '../../common/mock'; import { connectors } from './__mock__'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.tsx b/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.tsx index a5fe9f655ef44..2eaad4c722493 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/connectors_dropdown.tsx @@ -10,7 +10,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiIconTip, EuiSuperSelect } from ' import styled from 'styled-components'; import { euiStyled } from '@kbn/kibana-react-plugin/common'; -import { ActionConnector } from '../../containers/configure/types'; +import type { ActionConnector } from '../../containers/configure/types'; import * as i18n from './translations'; import { useKibana } from '../../common/lib/kibana'; import { getConnectorIcon, isDeprecatedConnector } from '../utils'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/field_mapping.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/field_mapping.test.tsx index 8d235f31277fe..d96c83387c76e 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/field_mapping.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/field_mapping.test.tsx @@ -6,9 +6,11 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; -import { FieldMapping, FieldMappingProps } from './field_mapping'; +import type { FieldMappingProps } from './field_mapping'; +import { FieldMapping } from './field_mapping'; import { mappings } from './__mock__'; import { TestProviders } from '../../common/mock'; import { FieldMappingRowStatic } from './field_mapping_row_static'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/field_mapping.tsx b/x-pack/plugins/cases/public/components/configure_cases/field_mapping.tsx index 7c52184968013..9356ceae9b742 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/field_mapping.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/field_mapping.tsx @@ -12,7 +12,7 @@ import styled from 'styled-components'; import { FieldMappingRowStatic } from './field_mapping_row_static'; import * as i18n from './translations'; -import { CaseConnectorMapping } from '../../containers/configure/types'; +import type { CaseConnectorMapping } from '../../containers/configure/types'; const FieldRowWrapper = styled.div` margin: 10px 0; diff --git a/x-pack/plugins/cases/public/components/configure_cases/field_mapping_row_static.tsx b/x-pack/plugins/cases/public/components/configure_cases/field_mapping_row_static.tsx index d7949362e4a1b..84fea6aebc498 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/field_mapping_row_static.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/field_mapping_row_static.tsx @@ -9,7 +9,7 @@ import React, { useMemo } from 'react'; import { EuiCode, EuiFlexItem, EuiFlexGroup, EuiIcon, EuiLoadingSpinner } from '@elastic/eui'; import { capitalize } from 'lodash/fp'; -import { CaseField, ActionType, ThirdPartyField } from '../../containers/configure/types'; +import type { CaseField, ActionType, ThirdPartyField } from '../../containers/configure/types'; export interface RowProps { isLoading: boolean; diff --git a/x-pack/plugins/cases/public/components/configure_cases/index.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/index.test.tsx index f25b3b8f64b66..2699557bb51f1 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/index.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/index.test.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { ReactWrapper, mount } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { waitFor } from '@testing-library/react'; import { ConfigureCases } from '.'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/index.tsx b/x-pack/plugins/cases/public/components/configure_cases/index.tsx index edffb7e192214..ec9b8a8c7a2fb 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/index.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/index.tsx @@ -11,13 +11,13 @@ import styled, { css } from 'styled-components'; import { FormattedMessage } from '@kbn/i18n-react'; import { EuiCallOut, EuiLink } from '@elastic/eui'; -import { ActionConnectorTableItem } from '@kbn/triggers-actions-ui-plugin/public/types'; +import type { ActionConnectorTableItem } from '@kbn/triggers-actions-ui-plugin/public/types'; import { CasesConnectorFeatureId } from '@kbn/actions-plugin/common'; import { useKibana } from '../../common/lib/kibana'; import { useGetActionTypes } from '../../containers/configure/use_action_types'; import { useCaseConfigure } from '../../containers/configure/use_configure'; -import { ClosureType } from '../../containers/configure/types'; +import type { ClosureType } from '../../containers/configure/types'; import { SectionWrapper, ContentWrapper, WhitePageWrapper } from '../wrappers'; import { Connectors } from './connectors'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/mapping.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/mapping.test.tsx index 22ebc5412dcc5..b97602beda906 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/mapping.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/mapping.test.tsx @@ -9,7 +9,8 @@ import React from 'react'; import { mount } from 'enzyme'; import { TestProviders } from '../../common/mock'; -import { Mapping, MappingProps } from './mapping'; +import type { MappingProps } from './mapping'; +import { Mapping } from './mapping'; import { mappings } from './__mock__'; import { ConnectorTypes } from '../../../common/api'; diff --git a/x-pack/plugins/cases/public/components/configure_cases/mapping.tsx b/x-pack/plugins/cases/public/components/configure_cases/mapping.tsx index 1f7736041d561..0338e33a5f3c9 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/mapping.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/mapping.tsx @@ -9,12 +9,12 @@ import React, { useMemo } from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiText, EuiTextColor } from '@elastic/eui'; -import { TextColor } from '@elastic/eui/src/components/text/text_color'; +import type { TextColor } from '@elastic/eui/src/components/text/text_color'; import { ConnectorTypes } from '../../../common/api'; import * as i18n from './translations'; import { FieldMapping } from './field_mapping'; -import { CaseConnectorMapping } from '../../containers/configure/types'; +import type { CaseConnectorMapping } from '../../containers/configure/types'; export interface MappingProps { actionTypeName: string; diff --git a/x-pack/plugins/cases/public/components/configure_cases/utils.test.tsx b/x-pack/plugins/cases/public/components/configure_cases/utils.test.tsx index 45bb7f1f5136d..21cc238e2131f 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/utils.test.tsx +++ b/x-pack/plugins/cases/public/components/configure_cases/utils.test.tsx @@ -7,7 +7,7 @@ import { mappings } from './__mock__'; import { setActionTypeToMapping, setThirdPartyToMapping } from './utils'; -import { CaseConnectorMapping } from '../../containers/configure/types'; +import type { CaseConnectorMapping } from '../../containers/configure/types'; describe('FieldMappingRow', () => { test('it should change the action type', () => { diff --git a/x-pack/plugins/cases/public/components/configure_cases/utils.ts b/x-pack/plugins/cases/public/components/configure_cases/utils.ts index d7de06e9c5aee..a4dfc0442c6d9 100644 --- a/x-pack/plugins/cases/public/components/configure_cases/utils.ts +++ b/x-pack/plugins/cases/public/components/configure_cases/utils.ts @@ -5,15 +5,16 @@ * 2.0. */ -import { ConnectorTypeFields, ConnectorTypes } from '../../../common/api'; -import { +import type { ConnectorTypeFields } from '../../../common/api'; +import { ConnectorTypes } from '../../../common/api'; +import type { CaseField, ActionType, ThirdPartyField, CaseConnector, CaseConnectorMapping, } from '../../containers/configure/types'; -import { CaseActionConnector } from '../types'; +import type { CaseActionConnector } from '../types'; export const setActionTypeToMapping = ( caseField: CaseField, diff --git a/x-pack/plugins/cases/public/components/connector_selector/form.test.tsx b/x-pack/plugins/cases/public/components/connector_selector/form.test.tsx index 44e5179f1e02e..139d8c48692a0 100644 --- a/x-pack/plugins/cases/public/components/connector_selector/form.test.tsx +++ b/x-pack/plugins/cases/public/components/connector_selector/form.test.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { mount } from 'enzyme'; -import { UseField, Form, useForm, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { UseField, Form, useForm } from '../../common/shared_imports'; import { ConnectorSelector } from './form'; import { connectorsMock } from '../../containers/mock'; import { getFormMock } from '../__mock__/form'; diff --git a/x-pack/plugins/cases/public/components/connector_selector/form.tsx b/x-pack/plugins/cases/public/components/connector_selector/form.tsx index c863d4862f31a..6f9f416e69037 100644 --- a/x-pack/plugins/cases/public/components/connector_selector/form.tsx +++ b/x-pack/plugins/cases/public/components/connector_selector/form.tsx @@ -10,9 +10,10 @@ import { isEmpty } from 'lodash/fp'; import { EuiFormRow } from '@elastic/eui'; import styled from 'styled-components'; -import { FieldHook, getFieldValidityAndErrorMessage } from '../../common/shared_imports'; +import type { FieldHook } from '../../common/shared_imports'; +import { getFieldValidityAndErrorMessage } from '../../common/shared_imports'; import { ConnectorsDropdown } from '../configure_cases/connectors_dropdown'; -import { ActionConnector } from '../../../common/api'; +import type { ActionConnector } from '../../../common/api'; interface ConnectorSelectorProps { connectors: ActionConnector[]; diff --git a/x-pack/plugins/cases/public/components/connectors/card.tsx b/x-pack/plugins/cases/public/components/connectors/card.tsx index d6ef92572e506..c4cd24787b01c 100644 --- a/x-pack/plugins/cases/public/components/connectors/card.tsx +++ b/x-pack/plugins/cases/public/components/connectors/card.tsx @@ -9,7 +9,7 @@ import React, { memo, useMemo } from 'react'; import { EuiCard, EuiFlexGroup, EuiFlexItem, EuiIcon, EuiLoadingSpinner } from '@elastic/eui'; import styled from 'styled-components'; -import { ConnectorTypes } from '../../../common/api'; +import type { ConnectorTypes } from '../../../common/api'; import { useKibana } from '../../common/lib/kibana'; import { getConnectorIcon } from '../utils'; diff --git a/x-pack/plugins/cases/public/components/connectors/cases_webhook/case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/cases_webhook/case_fields.tsx index f0410839517f2..e3c912652ba74 100644 --- a/x-pack/plugins/cases/public/components/connectors/cases_webhook/case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/cases_webhook/case_fields.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { EuiCallOut, EuiSpacer } from '@elastic/eui'; import { ConnectorTypes } from '../../../../common/api'; -import { ConnectorFieldsProps } from '../types'; +import type { ConnectorFieldsProps } from '../types'; import { ConnectorCard } from '../card'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/connectors/cases_webhook/index.ts b/x-pack/plugins/cases/public/components/connectors/cases_webhook/index.ts index e884ef3684171..a94076c0949ce 100644 --- a/x-pack/plugins/cases/public/components/connectors/cases_webhook/index.ts +++ b/x-pack/plugins/cases/public/components/connectors/cases_webhook/index.ts @@ -7,7 +7,7 @@ import { lazy } from 'react'; -import { CaseConnector } from '../types'; +import type { CaseConnector } from '../types'; import { ConnectorTypes } from '../../../../common/api'; export const getCaseConnector = (): CaseConnector => { diff --git a/x-pack/plugins/cases/public/components/connectors/connectors_registry.ts b/x-pack/plugins/cases/public/components/connectors/connectors_registry.ts index 8174733301348..92f1d76e4096c 100644 --- a/x-pack/plugins/cases/public/components/connectors/connectors_registry.ts +++ b/x-pack/plugins/cases/public/components/connectors/connectors_registry.ts @@ -6,7 +6,7 @@ */ import { i18n } from '@kbn/i18n'; -import { CaseConnector, CaseConnectorsRegistry } from './types'; +import type { CaseConnector, CaseConnectorsRegistry } from './types'; export const createCaseConnectorsRegistry = (): CaseConnectorsRegistry => { // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/x-pack/plugins/cases/public/components/connectors/deprecated_callout.tsx b/x-pack/plugins/cases/public/components/connectors/deprecated_callout.tsx index 60ae867fab8b4..504a00ec5e5b9 100644 --- a/x-pack/plugins/cases/public/components/connectors/deprecated_callout.tsx +++ b/x-pack/plugins/cases/public/components/connectors/deprecated_callout.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { EuiCallOut, EuiCallOutProps } from '@elastic/eui'; +import type { EuiCallOutProps } from '@elastic/eui'; +import { EuiCallOut } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; const DEPRECATED_CONNECTOR_WARNING_TITLE = i18n.translate( diff --git a/x-pack/plugins/cases/public/components/connectors/fields_form.tsx b/x-pack/plugins/cases/public/components/connectors/fields_form.tsx index 60eb20fe861da..228ddbc952d6b 100644 --- a/x-pack/plugins/cases/public/components/connectors/fields_form.tsx +++ b/x-pack/plugins/cases/public/components/connectors/fields_form.tsx @@ -8,10 +8,10 @@ import React, { memo, Suspense } from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner } from '@elastic/eui'; -import { CaseActionConnector } from '../types'; -import { ConnectorFieldsProps } from './types'; +import type { CaseActionConnector } from '../types'; +import type { ConnectorFieldsProps } from './types'; import { getCaseConnectors } from '.'; -import { ConnectorTypeFields } from '../../../common/api'; +import type { ConnectorTypeFields } from '../../../common/api'; interface Props extends Omit, 'connector'> { connector: CaseActionConnector | null; diff --git a/x-pack/plugins/cases/public/components/connectors/index.ts b/x-pack/plugins/cases/public/components/connectors/index.ts index f70773c4864d2..9e23f6d16f677 100644 --- a/x-pack/plugins/cases/public/components/connectors/index.ts +++ b/x-pack/plugins/cases/public/components/connectors/index.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { CaseConnectorsRegistry } from './types'; +import type { CaseConnectorsRegistry } from './types'; import { createCaseConnectorsRegistry } from './connectors_registry'; import { getCaseConnector as getJiraCaseConnector } from './jira'; import { getCaseConnector as getSwimlaneCaseConnector } from './swimlane'; import { getCaseConnector as getResilientCaseConnector } from './resilient'; import { getCaseConnector as getCasesWebhookCaseConnector } from './cases_webhook'; import { getServiceNowITSMCaseConnector, getServiceNowSIRCaseConnector } from './servicenow'; -import { +import type { JiraFieldsType, ServiceNowITSMFieldsType, ServiceNowSIRFieldsType, diff --git a/x-pack/plugins/cases/public/components/connectors/jira/__mocks__/api.ts b/x-pack/plugins/cases/public/components/connectors/jira/__mocks__/api.ts index 3a7b51545dfca..402299482611d 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/__mocks__/api.ts +++ b/x-pack/plugins/cases/public/components/connectors/jira/__mocks__/api.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { GetIssueTypesProps, GetFieldsByIssueTypeProps, GetIssueTypeProps } from '../api'; -import { IssueTypes, Fields, Issues, Issue } from '../types'; +import type { GetIssueTypesProps, GetFieldsByIssueTypeProps, GetIssueTypeProps } from '../api'; +import type { IssueTypes, Fields, Issues, Issue } from '../types'; import { issues } from '../../mock'; const issueTypes = [ diff --git a/x-pack/plugins/cases/public/components/connectors/jira/api.ts b/x-pack/plugins/cases/public/components/connectors/jira/api.ts index 286d44c5916d4..d1b37dee612f9 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/api.ts +++ b/x-pack/plugins/cases/public/components/connectors/jira/api.ts @@ -5,14 +5,12 @@ * 2.0. */ -import { HttpSetup } from '@kbn/core/public'; -import { ActionTypeExecutorResult } from '@kbn/actions-plugin/common'; +import type { HttpSetup } from '@kbn/core/public'; +import type { ActionTypeExecutorResult } from '@kbn/actions-plugin/common'; import { getExecuteConnectorUrl } from '../../../../common/utils'; -import { - ConnectorExecutorResult, - rewriteResponseToCamelCase, -} from '../rewrite_response_to_camel_case'; -import { IssueTypes, Fields, Issues, Issue } from './types'; +import type { ConnectorExecutorResult } from '../rewrite_response_to_camel_case'; +import { rewriteResponseToCamelCase } from '../rewrite_response_to_camel_case'; +import type { IssueTypes, Fields, Issues, Issue } from './types'; export interface GetIssueTypesProps { http: HttpSetup; diff --git a/x-pack/plugins/cases/public/components/connectors/jira/case_fields.test.tsx b/x-pack/plugins/cases/public/components/connectors/jira/case_fields.test.tsx index 591dbf15d35a8..ed600e58245b8 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/case_fields.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/case_fields.test.tsx @@ -17,7 +17,8 @@ import Fields from './case_fields'; import { waitFor } from '@testing-library/dom'; import { useGetSingleIssue } from './use_get_single_issue'; import { useGetIssues } from './use_get_issues'; -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; jest.mock('./use_get_issue_types'); jest.mock('./use_get_fields_by_issue_type'); diff --git a/x-pack/plugins/cases/public/components/connectors/jira/case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/jira/case_fields.tsx index 1fe02a8483ed3..d3ba99370ee47 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/case_fields.tsx @@ -10,9 +10,10 @@ import { map } from 'lodash/fp'; import { EuiFormRow, EuiSelect, EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'; import * as i18n from './translations'; -import { ConnectorTypes, JiraFieldsType } from '../../../../common/api'; +import type { JiraFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import { useKibana } from '../../../common/lib/kibana'; -import { ConnectorFieldsProps } from '../types'; +import type { ConnectorFieldsProps } from '../types'; import { useGetIssueTypes } from './use_get_issue_types'; import { useGetFieldsByIssueType } from './use_get_fields_by_issue_type'; import { SearchIssues } from './search_issues'; diff --git a/x-pack/plugins/cases/public/components/connectors/jira/index.ts b/x-pack/plugins/cases/public/components/connectors/jira/index.ts index afb53ffcb87cf..aeafd760d966c 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/index.ts +++ b/x-pack/plugins/cases/public/components/connectors/jira/index.ts @@ -7,8 +7,9 @@ import { lazy } from 'react'; -import { CaseConnector } from '../types'; -import { ConnectorTypes, JiraFieldsType } from '../../../../common/api'; +import type { CaseConnector } from '../types'; +import type { JiraFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import * as i18n from './translations'; export * from './types'; diff --git a/x-pack/plugins/cases/public/components/connectors/jira/search_issues.tsx b/x-pack/plugins/cases/public/components/connectors/jira/search_issues.tsx index 53c25db0a72b6..952c39fdc9876 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/search_issues.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/search_issues.tsx @@ -6,10 +6,11 @@ */ import React, { useMemo, useEffect, useCallback, useState, memo } from 'react'; -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; import { useKibana } from '../../../common/lib/kibana'; -import { ActionConnector } from '../../../../common/api'; +import type { ActionConnector } from '../../../../common/api'; import { useGetIssues } from './use_get_issues'; import { useGetSingleIssue } from './use_get_single_issue'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/connectors/jira/use_get_fields_by_issue_type.test.tsx b/x-pack/plugins/cases/public/components/connectors/jira/use_get_fields_by_issue_type.test.tsx index b4c2c848d79ed..8dd64701fc0d4 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/use_get_fields_by_issue_type.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/use_get_fields_by_issue_type.test.tsx @@ -9,7 +9,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { useKibana } from '../../../common/lib/kibana'; import { connector } from '../mock'; -import { useGetFieldsByIssueType, UseGetFieldsByIssueType } from './use_get_fields_by_issue_type'; +import type { UseGetFieldsByIssueType } from './use_get_fields_by_issue_type'; +import { useGetFieldsByIssueType } from './use_get_fields_by_issue_type'; import * as api from './api'; jest.mock('../../../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/components/connectors/jira/use_get_fields_by_issue_type.tsx b/x-pack/plugins/cases/public/components/connectors/jira/use_get_fields_by_issue_type.tsx index 955a03c614888..c80c305982794 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/use_get_fields_by_issue_type.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/use_get_fields_by_issue_type.tsx @@ -6,10 +6,10 @@ */ import { useState, useEffect, useRef } from 'react'; -import { HttpSetup, IToasts } from '@kbn/core/public'; -import { ActionConnector } from '../../../../common/api'; +import type { HttpSetup, IToasts } from '@kbn/core/public'; +import type { ActionConnector } from '../../../../common/api'; import { getFieldsByIssueType } from './api'; -import { Fields } from './types'; +import type { Fields } from './types'; import * as i18n from './translations'; interface Props { diff --git a/x-pack/plugins/cases/public/components/connectors/jira/use_get_issue_types.test.tsx b/x-pack/plugins/cases/public/components/connectors/jira/use_get_issue_types.test.tsx index 6c1a9b5fcab08..7500085f004a7 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/use_get_issue_types.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/use_get_issue_types.test.tsx @@ -9,7 +9,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { useKibana } from '../../../common/lib/kibana'; import { connector } from '../mock'; -import { useGetIssueTypes, UseGetIssueTypes } from './use_get_issue_types'; +import type { UseGetIssueTypes } from './use_get_issue_types'; +import { useGetIssueTypes } from './use_get_issue_types'; import * as api from './api'; jest.mock('../../../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/components/connectors/jira/use_get_issue_types.tsx b/x-pack/plugins/cases/public/components/connectors/jira/use_get_issue_types.tsx index 3be1093eeaccb..0f8b5de8a2ff4 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/use_get_issue_types.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/use_get_issue_types.tsx @@ -6,10 +6,10 @@ */ import { useState, useEffect, useRef } from 'react'; -import { HttpSetup, IToasts } from '@kbn/core/public'; -import { ActionConnector } from '../../../../common/api'; +import type { HttpSetup, IToasts } from '@kbn/core/public'; +import type { ActionConnector } from '../../../../common/api'; import { getIssueTypes } from './api'; -import { IssueTypes } from './types'; +import type { IssueTypes } from './types'; import * as i18n from './translations'; interface Props { diff --git a/x-pack/plugins/cases/public/components/connectors/jira/use_get_issues.test.tsx b/x-pack/plugins/cases/public/components/connectors/jira/use_get_issues.test.tsx index 2308fe604e710..1c7cf140c9fe2 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/use_get_issues.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/use_get_issues.test.tsx @@ -9,7 +9,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { useKibana } from '../../../common/lib/kibana'; import { connector as actionConnector, issues } from '../mock'; -import { useGetIssues, UseGetIssues } from './use_get_issues'; +import type { UseGetIssues } from './use_get_issues'; +import { useGetIssues } from './use_get_issues'; import * as api from './api'; jest.mock('../../../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/components/connectors/jira/use_get_issues.tsx b/x-pack/plugins/cases/public/components/connectors/jira/use_get_issues.tsx index 230bf5636d62d..983542b30e54c 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/use_get_issues.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/use_get_issues.tsx @@ -7,10 +7,10 @@ import { isEmpty, debounce } from 'lodash/fp'; import { useState, useEffect, useRef } from 'react'; -import { HttpSetup, ToastsApi } from '@kbn/core/public'; -import { ActionConnector } from '../../../../common/api'; +import type { HttpSetup, ToastsApi } from '@kbn/core/public'; +import type { ActionConnector } from '../../../../common/api'; import { getIssues } from './api'; -import { Issues } from './types'; +import type { Issues } from './types'; import * as i18n from './translations'; interface Props { diff --git a/x-pack/plugins/cases/public/components/connectors/jira/use_get_single_issue.test.tsx b/x-pack/plugins/cases/public/components/connectors/jira/use_get_single_issue.test.tsx index 28949b456ecdd..38c61f05ed083 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/use_get_single_issue.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/use_get_single_issue.test.tsx @@ -9,7 +9,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { useKibana } from '../../../common/lib/kibana'; import { connector as actionConnector, issues } from '../mock'; -import { useGetSingleIssue, UseGetSingleIssue } from './use_get_single_issue'; +import type { UseGetSingleIssue } from './use_get_single_issue'; +import { useGetSingleIssue } from './use_get_single_issue'; import * as api from './api'; jest.mock('../../../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/components/connectors/jira/use_get_single_issue.tsx b/x-pack/plugins/cases/public/components/connectors/jira/use_get_single_issue.tsx index aa7bd2ea0d4f6..d330d37d9faed 100644 --- a/x-pack/plugins/cases/public/components/connectors/jira/use_get_single_issue.tsx +++ b/x-pack/plugins/cases/public/components/connectors/jira/use_get_single_issue.tsx @@ -6,10 +6,10 @@ */ import { useState, useEffect, useRef } from 'react'; -import { HttpSetup, ToastsApi } from '@kbn/core/public'; -import { ActionConnector } from '../../../../common/api'; +import type { HttpSetup, ToastsApi } from '@kbn/core/public'; +import type { ActionConnector } from '../../../../common/api'; import { getIssue } from './api'; -import { Issue } from './types'; +import type { Issue } from './types'; import * as i18n from './translations'; interface Props { diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/__mocks__/api.ts b/x-pack/plugins/cases/public/components/connectors/resilient/__mocks__/api.ts index 350cf7ec47974..c3a91714852e6 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/__mocks__/api.ts +++ b/x-pack/plugins/cases/public/components/connectors/resilient/__mocks__/api.ts @@ -6,8 +6,8 @@ */ import { incidentTypes, severity } from '../../mock'; -import { Props } from '../api'; -import { ResilientIncidentTypes, ResilientSeverity } from '../types'; +import type { Props } from '../api'; +import type { ResilientIncidentTypes, ResilientSeverity } from '../types'; export const getIncidentTypes = async (props: Props): Promise<{ data: ResilientIncidentTypes }> => Promise.resolve({ data: incidentTypes, actionId: '1' }); diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/api.ts b/x-pack/plugins/cases/public/components/connectors/resilient/api.ts index 2afb2d5d35f22..987a23c771f96 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/api.ts +++ b/x-pack/plugins/cases/public/components/connectors/resilient/api.ts @@ -5,13 +5,11 @@ * 2.0. */ -import { HttpSetup } from '@kbn/core/public'; +import type { HttpSetup } from '@kbn/core/public'; import { getExecuteConnectorUrl } from '../../../../common/utils/connectors_api'; -import { - ConnectorExecutorResult, - rewriteResponseToCamelCase, -} from '../rewrite_response_to_camel_case'; -import { ResilientIncidentTypes, ResilientSeverity } from './types'; +import type { ConnectorExecutorResult } from '../rewrite_response_to_camel_case'; +import { rewriteResponseToCamelCase } from '../rewrite_response_to_camel_case'; +import type { ResilientIncidentTypes, ResilientSeverity } from './types'; export const BASE_ACTION_API_PATH = '/api/actions'; diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.test.tsx b/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.test.tsx index 814c73537b1f4..6717e7cc9189a 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.test.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { mount } from 'enzyme'; -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; import { waitFor } from '@testing-library/react'; import { connector } from '../mock'; diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.tsx index c6e7615f944b0..d9e15e193490a 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/resilient/case_fields.tsx @@ -6,22 +6,17 @@ */ import React, { useMemo, useCallback, useEffect, useRef } from 'react'; -import { - EuiComboBox, - EuiComboBoxOptionOption, - EuiFormRow, - EuiSelect, - EuiSelectOption, - EuiSpacer, -} from '@elastic/eui'; +import type { EuiComboBoxOptionOption, EuiSelectOption } from '@elastic/eui'; +import { EuiComboBox, EuiFormRow, EuiSelect, EuiSpacer } from '@elastic/eui'; import { useKibana } from '../../../common/lib/kibana'; -import { ConnectorFieldsProps } from '../types'; +import type { ConnectorFieldsProps } from '../types'; import { useGetIncidentTypes } from './use_get_incident_types'; import { useGetSeverity } from './use_get_severity'; import * as i18n from './translations'; -import { ConnectorTypes, ResilientFieldsType } from '../../../../common/api'; +import type { ResilientFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import { ConnectorCard } from '../card'; const ResilientFieldsComponent: React.FunctionComponent> = diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/index.ts b/x-pack/plugins/cases/public/components/connectors/resilient/index.ts index 0da7448e62a65..06f4c932b1586 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/index.ts +++ b/x-pack/plugins/cases/public/components/connectors/resilient/index.ts @@ -7,8 +7,9 @@ import { lazy } from 'react'; -import { CaseConnector } from '../types'; -import { ConnectorTypes, ResilientFieldsType } from '../../../../common/api'; +import type { CaseConnector } from '../types'; +import type { ResilientFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import * as i18n from './translations'; export * from './types'; diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/use_get_incident_types.test.tsx b/x-pack/plugins/cases/public/components/connectors/resilient/use_get_incident_types.test.tsx index 59c1f8e9b40d0..6d90feee5198d 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/use_get_incident_types.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/resilient/use_get_incident_types.test.tsx @@ -9,7 +9,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { useKibana } from '../../../common/lib/kibana'; import { connector } from '../mock'; -import { useGetIncidentTypes, UseGetIncidentTypes } from './use_get_incident_types'; +import type { UseGetIncidentTypes } from './use_get_incident_types'; +import { useGetIncidentTypes } from './use_get_incident_types'; import * as api from './api'; jest.mock('../../../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/use_get_incident_types.tsx b/x-pack/plugins/cases/public/components/connectors/resilient/use_get_incident_types.tsx index 0f58b8e37cc7c..95eb91327c2fb 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/use_get_incident_types.tsx +++ b/x-pack/plugins/cases/public/components/connectors/resilient/use_get_incident_types.tsx @@ -6,8 +6,8 @@ */ import { useState, useEffect, useRef } from 'react'; -import { HttpSetup, ToastsApi } from '@kbn/core/public'; -import { ActionConnector } from '../../../../common/api'; +import type { HttpSetup, ToastsApi } from '@kbn/core/public'; +import type { ActionConnector } from '../../../../common/api'; import { getIncidentTypes } from './api'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/use_get_severity.test.tsx b/x-pack/plugins/cases/public/components/connectors/resilient/use_get_severity.test.tsx index f646dd7e8f7c2..1bbbae56531f2 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/use_get_severity.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/resilient/use_get_severity.test.tsx @@ -9,7 +9,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { useKibana } from '../../../common/lib/kibana'; import { connector } from '../mock'; -import { useGetSeverity, UseGetSeverity } from './use_get_severity'; +import type { UseGetSeverity } from './use_get_severity'; +import { useGetSeverity } from './use_get_severity'; import * as api from './api'; jest.mock('../../../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/components/connectors/resilient/use_get_severity.tsx b/x-pack/plugins/cases/public/components/connectors/resilient/use_get_severity.tsx index fa3b63ea4c7d0..0c1fafc0aeca2 100644 --- a/x-pack/plugins/cases/public/components/connectors/resilient/use_get_severity.tsx +++ b/x-pack/plugins/cases/public/components/connectors/resilient/use_get_severity.tsx @@ -6,8 +6,8 @@ */ import { useState, useEffect, useRef } from 'react'; -import { HttpSetup, ToastsApi } from '@kbn/core/public'; -import { ActionConnector } from '../../../../common/api'; +import type { HttpSetup, ToastsApi } from '@kbn/core/public'; +import type { ActionConnector } from '../../../../common/api'; import { getSeverity } from './api'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/connectors/rewrite_response_to_camel_case.test.ts b/x-pack/plugins/cases/public/components/connectors/rewrite_response_to_camel_case.test.ts index 28f901076759b..7807651afe6ab 100644 --- a/x-pack/plugins/cases/public/components/connectors/rewrite_response_to_camel_case.test.ts +++ b/x-pack/plugins/cases/public/components/connectors/rewrite_response_to_camel_case.test.ts @@ -5,10 +5,8 @@ * 2.0. */ -import { - ConnectorExecutorResult, - rewriteResponseToCamelCase, -} from './rewrite_response_to_camel_case'; +import type { ConnectorExecutorResult } from './rewrite_response_to_camel_case'; +import { rewriteResponseToCamelCase } from './rewrite_response_to_camel_case'; const responseWithSnakeCasedFields: ConnectorExecutorResult<{}> = { service_message: 'oh noooooo', diff --git a/x-pack/plugins/cases/public/components/connectors/rewrite_response_to_camel_case.ts b/x-pack/plugins/cases/public/components/connectors/rewrite_response_to_camel_case.ts index 739250bee0d19..1224b1b476cc8 100644 --- a/x-pack/plugins/cases/public/components/connectors/rewrite_response_to_camel_case.ts +++ b/x-pack/plugins/cases/public/components/connectors/rewrite_response_to_camel_case.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ActionTypeExecutorResult, RewriteResponseCase } from '@kbn/actions-plugin/common'; +import type { ActionTypeExecutorResult, RewriteResponseCase } from '@kbn/actions-plugin/common'; export type ConnectorExecutorResult = ReturnType< RewriteResponseCase> diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/__mocks__/api.ts b/x-pack/plugins/cases/public/components/connectors/servicenow/__mocks__/api.ts index 215e3d6f92e6d..49c728b68f40c 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/__mocks__/api.ts +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/__mocks__/api.ts @@ -6,8 +6,8 @@ */ import { choices } from '../../mock'; -import { GetChoicesProps } from '../api'; -import { Choice } from '../types'; +import type { GetChoicesProps } from '../api'; +import type { Choice } from '../types'; export const choicesResponse = { status: 'ok', diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/api.ts b/x-pack/plugins/cases/public/components/connectors/servicenow/api.ts index 3224c65cc9319..ae91920d848ec 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/api.ts +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/api.ts @@ -5,13 +5,11 @@ * 2.0. */ -import { HttpSetup } from '@kbn/core/public'; +import type { HttpSetup } from '@kbn/core/public'; import { getExecuteConnectorUrl } from '../../../../common/utils/connectors_api'; -import { - ConnectorExecutorResult, - rewriteResponseToCamelCase, -} from '../rewrite_response_to_camel_case'; -import { Choice } from './types'; +import type { ConnectorExecutorResult } from '../rewrite_response_to_camel_case'; +import { rewriteResponseToCamelCase } from '../rewrite_response_to_camel_case'; +import type { Choice } from './types'; export const BASE_ACTION_API_PATH = '/api/actions'; diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/helpers.ts b/x-pack/plugins/cases/public/components/connectors/servicenow/helpers.ts index 314d224491128..f0cef67e67f64 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/helpers.ts +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/helpers.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { EuiSelectOption } from '@elastic/eui'; -import { Choice } from './types'; +import type { EuiSelectOption } from '@elastic/eui'; +import type { Choice } from './types'; export const choicesToEuiOptions = (choices: Choice[]): EuiSelectOption[] => choices.map((choice) => ({ value: choice.value, text: choice.label })); diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/index.ts b/x-pack/plugins/cases/public/components/connectors/servicenow/index.ts index 1c466d08e9bcb..92817307219ce 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/index.ts +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/index.ts @@ -7,12 +7,9 @@ import { lazy } from 'react'; -import { CaseConnector } from '../types'; -import { - ConnectorTypes, - ServiceNowITSMFieldsType, - ServiceNowSIRFieldsType, -} from '../../../../common/api'; +import type { CaseConnector } from '../types'; +import type { ServiceNowITSMFieldsType, ServiceNowSIRFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import * as i18n from './translations'; export const getServiceNowITSMCaseConnector = (): CaseConnector => ({ diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx index e2f4a683772c7..2589dd2587dd0 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx @@ -12,7 +12,7 @@ import { mount } from 'enzyme'; import { useKibana } from '../../../common/lib/kibana'; import { connector, choices as mockChoices } from '../mock'; -import { Choice } from './types'; +import type { Choice } from './types'; import Fields from './servicenow_itsm_case_fields'; let onChoicesSuccess = (c: Choice[]) => {}; diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx index 2dae544ec274c..502d3c304bcc6 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.tsx @@ -9,12 +9,13 @@ import React, { useCallback, useEffect, useMemo, useState, useRef } from 'react' import { EuiFormRow, EuiSelect, EuiSpacer, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import * as i18n from './translations'; -import { ConnectorFieldsProps } from '../types'; -import { ConnectorTypes, ServiceNowITSMFieldsType } from '../../../../common/api'; +import type { ConnectorFieldsProps } from '../types'; +import type { ServiceNowITSMFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import { useKibana } from '../../../common/lib/kibana'; import { ConnectorCard } from '../card'; import { useGetChoices } from './use_get_choices'; -import { Fields, Choice } from './types'; +import type { Fields, Choice } from './types'; import { choicesToEuiOptions } from './helpers'; import { DeprecatedCallout } from '../deprecated_callout'; diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx index 1b06e0cfdce81..8b81745adeaa8 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx @@ -6,13 +6,14 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { waitFor, act, render, screen } from '@testing-library/react'; import { EuiSelect } from '@elastic/eui'; import { useKibana } from '../../../common/lib/kibana'; import { connector, choices as mockChoices } from '../mock'; -import { Choice } from './types'; +import type { Choice } from './types'; import Fields from './servicenow_sir_case_fields'; let onChoicesSuccess = (_c: Choice[]) => {}; diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx index 78f17a1d4215a..b1b3678149baf 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.tsx @@ -8,12 +8,13 @@ import React, { useCallback, useEffect, useMemo, useState, useRef } from 'react'; import { EuiFormRow, EuiSelect, EuiFlexGroup, EuiFlexItem, EuiCheckbox } from '@elastic/eui'; -import { ConnectorTypes, ServiceNowSIRFieldsType } from '../../../../common/api'; +import type { ServiceNowSIRFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import { useKibana } from '../../../common/lib/kibana'; -import { ConnectorFieldsProps } from '../types'; +import type { ConnectorFieldsProps } from '../types'; import { ConnectorCard } from '../card'; import { useGetChoices } from './use_get_choices'; -import { Choice, Fields } from './types'; +import type { Choice, Fields } from './types'; import { choicesToEuiOptions } from './helpers'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.test.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.test.tsx index 9a4e19d126bba..e44e1d8013dfa 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.test.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.test.tsx @@ -8,9 +8,10 @@ import { renderHook } from '@testing-library/react-hooks'; import { useKibana } from '../../../common/lib/kibana'; -import { ActionConnector } from '../../../../common/api'; +import type { ActionConnector } from '../../../../common/api'; import { choices } from '../mock'; -import { useGetChoices, UseGetChoices, UseGetChoicesProps } from './use_get_choices'; +import type { UseGetChoices, UseGetChoicesProps } from './use_get_choices'; +import { useGetChoices } from './use_get_choices'; import * as api from './api'; jest.mock('./api'); diff --git a/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.tsx b/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.tsx index 19452cb3ac3ae..63bcbc4cdab1a 100644 --- a/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.tsx +++ b/x-pack/plugins/cases/public/components/connectors/servicenow/use_get_choices.tsx @@ -6,10 +6,10 @@ */ import { useState, useEffect, useRef } from 'react'; -import { HttpSetup, IToasts } from '@kbn/core/public'; -import { ActionConnector } from '../../../../common/api'; +import type { HttpSetup, IToasts } from '@kbn/core/public'; +import type { ActionConnector } from '../../../../common/api'; import { getChoices } from './api'; -import { Choice } from './types'; +import type { Choice } from './types'; import * as i18n from './translations'; export interface UseGetChoicesProps { diff --git a/x-pack/plugins/cases/public/components/connectors/swimlane/case_fields.tsx b/x-pack/plugins/cases/public/components/connectors/swimlane/case_fields.tsx index 3ca1d6b3ec674..0993dfcad5d48 100644 --- a/x-pack/plugins/cases/public/components/connectors/swimlane/case_fields.tsx +++ b/x-pack/plugins/cases/public/components/connectors/swimlane/case_fields.tsx @@ -9,8 +9,9 @@ import React, { useMemo } from 'react'; import { EuiCallOut } from '@elastic/eui'; import * as i18n from './translations'; -import { ConnectorTypes, SwimlaneFieldsType } from '../../../../common/api'; -import { ConnectorFieldsProps } from '../types'; +import type { SwimlaneFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; +import type { ConnectorFieldsProps } from '../types'; import { ConnectorCard } from '../card'; import { connectorValidator } from './validator'; diff --git a/x-pack/plugins/cases/public/components/connectors/swimlane/index.ts b/x-pack/plugins/cases/public/components/connectors/swimlane/index.ts index 394b93b961004..ee69e739f0fb7 100644 --- a/x-pack/plugins/cases/public/components/connectors/swimlane/index.ts +++ b/x-pack/plugins/cases/public/components/connectors/swimlane/index.ts @@ -7,8 +7,9 @@ import { lazy } from 'react'; -import { CaseConnector } from '../types'; -import { ConnectorTypes, SwimlaneFieldsType } from '../../../../common/api'; +import type { CaseConnector } from '../types'; +import type { SwimlaneFieldsType } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import * as i18n from './translations'; export const getCaseConnector = (): CaseConnector => { diff --git a/x-pack/plugins/cases/public/components/connectors/swimlane/validator.ts b/x-pack/plugins/cases/public/components/connectors/swimlane/validator.ts index d3c94d0150bbe..8480350841b0e 100644 --- a/x-pack/plugins/cases/public/components/connectors/swimlane/validator.ts +++ b/x-pack/plugins/cases/public/components/connectors/swimlane/validator.ts @@ -6,8 +6,8 @@ */ import { SwimlaneConnectorType } from '../../../../common/api'; -import { ValidationConfig } from '../../../common/shared_imports'; -import { CaseActionConnector } from '../../types'; +import type { ValidationConfig } from '../../../common/shared_imports'; +import type { CaseActionConnector } from '../../types'; const casesRequiredFields = [ 'caseIdConfig', diff --git a/x-pack/plugins/cases/public/components/connectors/types.ts b/x-pack/plugins/cases/public/components/connectors/types.ts index 66e5d519ac752..93e2ee92d83a6 100644 --- a/x-pack/plugins/cases/public/components/connectors/types.ts +++ b/x-pack/plugins/cases/public/components/connectors/types.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { IconType } from '@elastic/eui'; -import React from 'react'; +import type { IconType } from '@elastic/eui'; +import type React from 'react'; -import { +import type { ActionType as ThirdPartySupportedActions, CaseField, ConnectorTypeFields, } from '../../../common/api'; -import { CaseActionConnector } from '../types'; +import type { CaseActionConnector } from '../types'; export type { ThirdPartyField as AllThirdPartyFields } from '../../../common/api'; diff --git a/x-pack/plugins/cases/public/components/create/assignees.test.tsx b/x-pack/plugins/cases/public/components/create/assignees.test.tsx index 1970ef9739fde..97ee74ad76831 100644 --- a/x-pack/plugins/cases/public/components/create/assignees.test.tsx +++ b/x-pack/plugins/cases/public/components/create/assignees.test.tsx @@ -7,15 +7,17 @@ import React from 'react'; import userEvent from '@testing-library/user-event'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; -import { useForm, Form, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { useForm, Form } from '../../common/shared_imports'; import { userProfiles } from '../../containers/user_profiles/api.mock'; import { Assignees } from './assignees'; -import { FormProps } from './schema'; +import type { FormProps } from './schema'; import { act, waitFor, screen } from '@testing-library/react'; import * as api from '../../containers/user_profiles/api'; -import { UserProfile } from '@kbn/user-profile-components'; +import type { UserProfile } from '@kbn/user-profile-components'; jest.mock('../../containers/user_profiles/api'); diff --git a/x-pack/plugins/cases/public/components/create/assignees.tsx b/x-pack/plugins/cases/public/components/create/assignees.tsx index c434b578cf9dd..1b5577bd87469 100644 --- a/x-pack/plugins/cases/public/components/create/assignees.tsx +++ b/x-pack/plugins/cases/public/components/create/assignees.tsx @@ -7,28 +7,20 @@ import { isEmpty } from 'lodash'; import React, { memo, useCallback, useState } from 'react'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; import { EuiComboBox, - EuiComboBoxOptionOption, EuiFormRow, EuiLink, EuiSelectableListItem, EuiTextColor, } from '@elastic/eui'; -import { - UserProfileWithAvatar, - UserAvatar, - getUserDisplayName, - UserProfile, -} from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar, UserProfile } from '@kbn/user-profile-components'; +import { UserAvatar, getUserDisplayName } from '@kbn/user-profile-components'; import { MAX_ASSIGNEES_PER_CASE } from '../../../common/constants'; -import { CaseAssignees } from '../../../common/api'; -import { - UseField, - FieldConfig, - FieldHook, - getFieldValidityAndErrorMessage, -} from '../../common/shared_imports'; +import type { CaseAssignees } from '../../../common/api'; +import type { FieldConfig, FieldHook } from '../../common/shared_imports'; +import { UseField, getFieldValidityAndErrorMessage } from '../../common/shared_imports'; import { useSuggestUserProfiles } from '../../containers/user_profiles/use_suggest_user_profiles'; import { useCasesContext } from '../cases_context/use_cases_context'; import { useGetCurrentUserProfile } from '../../containers/user_profiles/use_get_current_user_profile'; diff --git a/x-pack/plugins/cases/public/components/create/connector.test.tsx b/x-pack/plugins/cases/public/components/create/connector.test.tsx index 7a2a4b366c7a1..1fc99cf30ab75 100644 --- a/x-pack/plugins/cases/public/components/create/connector.test.tsx +++ b/x-pack/plugins/cases/public/components/create/connector.test.tsx @@ -8,17 +8,21 @@ import React from 'react'; import { mount } from 'enzyme'; import { act, waitFor } from '@testing-library/react'; -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; -import { useForm, Form, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { useForm, Form } from '../../common/shared_imports'; import { connectorsMock } from '../../containers/mock'; import { Connector } from './connector'; import { useGetIncidentTypes } from '../connectors/resilient/use_get_incident_types'; import { useGetSeverity } from '../connectors/resilient/use_get_severity'; import { useGetChoices } from '../connectors/servicenow/use_get_choices'; import { incidentTypes, severity, choices } from '../connectors/mock'; -import { schema, FormProps } from './schema'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from '../../common/mock'; +import type { FormProps } from './schema'; +import { schema } from './schema'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, TestProviders } from '../../common/mock'; import { useCaseConfigure } from '../../containers/configure/use_configure'; import { useCaseConfigureResponse } from '../configure_cases/__mock__'; diff --git a/x-pack/plugins/cases/public/components/create/connector.tsx b/x-pack/plugins/cases/public/components/create/connector.tsx index ca196f06908b1..102b8ec73d1b0 100644 --- a/x-pack/plugins/cases/public/components/create/connector.tsx +++ b/x-pack/plugins/cases/public/components/create/connector.tsx @@ -8,17 +8,13 @@ import React, { memo, useCallback, useMemo, useEffect } from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; -import { ActionConnector } from '../../../common/api'; -import { - UseField, - useFormData, - FieldHook, - useFormContext, - FieldConfig, -} from '../../common/shared_imports'; +import type { ActionConnector } from '../../../common/api'; +import type { FieldHook, FieldConfig } from '../../common/shared_imports'; +import { UseField, useFormData, useFormContext } from '../../common/shared_imports'; import { ConnectorSelector } from '../connector_selector/form'; import { ConnectorFieldsForm } from '../connectors/fields_form'; -import { FormProps, schema } from './schema'; +import type { FormProps } from './schema'; +import { schema } from './schema'; import { useCaseConfigure } from '../../containers/configure/use_configure'; import { getConnectorById, getConnectorsFormValidators } from '../utils'; import { useApplicationCapabilities } from '../../common/lib/kibana'; diff --git a/x-pack/plugins/cases/public/components/create/description.test.tsx b/x-pack/plugins/cases/public/components/create/description.test.tsx index 1fe13b17e7337..d95fade009f3d 100644 --- a/x-pack/plugins/cases/public/components/create/description.test.tsx +++ b/x-pack/plugins/cases/public/components/create/description.test.tsx @@ -9,10 +9,13 @@ import React from 'react'; import { waitFor } from '@testing-library/react'; import userEvent, { specialChars } from '@testing-library/user-event'; -import { useForm, Form, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { useForm, Form } from '../../common/shared_imports'; import { Description } from './description'; -import { schema, FormProps } from './schema'; -import { createAppMockRenderer, AppMockRenderer } from '../../common/mock'; +import type { FormProps } from './schema'; +import { schema } from './schema'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; jest.mock('../markdown_editor/plugins/lens/use_lens_draft_comment'); diff --git a/x-pack/plugins/cases/public/components/create/flyout/create_case_flyout.test.tsx b/x-pack/plugins/cases/public/components/create/flyout/create_case_flyout.test.tsx index 325fffb460ee0..df2ba80901738 100644 --- a/x-pack/plugins/cases/public/components/create/flyout/create_case_flyout.test.tsx +++ b/x-pack/plugins/cases/public/components/create/flyout/create_case_flyout.test.tsx @@ -10,7 +10,8 @@ import { act } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { CreateCaseFlyout } from './create_case_flyout'; -import { AppMockRenderer, createAppMockRenderer } from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer } from '../../../common/mock'; jest.mock('../../../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/components/create/flyout/create_case_flyout.tsx b/x-pack/plugins/cases/public/components/create/flyout/create_case_flyout.tsx index c7bcb9b0828c6..75a18f2e70209 100644 --- a/x-pack/plugins/cases/public/components/create/flyout/create_case_flyout.tsx +++ b/x-pack/plugins/cases/public/components/create/flyout/create_case_flyout.tsx @@ -11,10 +11,10 @@ import { EuiFlyout, EuiFlyoutHeader, EuiTitle, EuiFlyoutBody } from '@elastic/eu import { QueryClientProvider } from '@tanstack/react-query'; import * as i18n from '../translations'; -import { Case } from '../../../../common/ui/types'; +import type { Case } from '../../../../common/ui/types'; import { CreateCaseForm } from '../form'; -import { UseCreateAttachments } from '../../../containers/use_create_attachments'; -import { CaseAttachmentsWithoutOwner } from '../../../types'; +import type { UseCreateAttachments } from '../../../containers/use_create_attachments'; +import type { CaseAttachmentsWithoutOwner } from '../../../types'; import { casesQueryClient } from '../../cases_context/query_client'; export interface CreateCaseFlyoutProps { diff --git a/x-pack/plugins/cases/public/components/create/flyout/index.tsx b/x-pack/plugins/cases/public/components/create/flyout/index.tsx index 5b8aef47d1544..9a1097b18863e 100644 --- a/x-pack/plugins/cases/public/components/create/flyout/index.tsx +++ b/x-pack/plugins/cases/public/components/create/flyout/index.tsx @@ -4,7 +4,8 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { CreateCaseFlyout, CreateCaseFlyoutProps } from './create_case_flyout'; +import type { CreateCaseFlyoutProps } from './create_case_flyout'; +import { CreateCaseFlyout } from './create_case_flyout'; export type { CreateCaseFlyoutProps }; export { CreateCaseFlyout }; diff --git a/x-pack/plugins/cases/public/components/create/flyout/use_cases_add_to_new_case_flyout.tsx b/x-pack/plugins/cases/public/components/create/flyout/use_cases_add_to_new_case_flyout.tsx index 8b2d2b02cce79..86b03f46bf745 100644 --- a/x-pack/plugins/cases/public/components/create/flyout/use_cases_add_to_new_case_flyout.tsx +++ b/x-pack/plugins/cases/public/components/create/flyout/use_cases_add_to_new_case_flyout.tsx @@ -6,12 +6,12 @@ */ import { useCallback } from 'react'; -import { CaseAttachmentsWithoutOwner } from '../../../types'; +import type { CaseAttachmentsWithoutOwner } from '../../../types'; import { useCasesToast } from '../../../common/use_cases_toast'; -import { Case } from '../../../containers/types'; +import type { Case } from '../../../containers/types'; import { CasesContextStoreActionsList } from '../../cases_context/cases_context_reducer'; import { useCasesContext } from '../../cases_context/use_cases_context'; -import { CreateCaseFlyoutProps } from './create_case_flyout'; +import type { CreateCaseFlyoutProps } from './create_case_flyout'; type AddToNewCaseFlyoutProps = Omit & { toastTitle?: string; diff --git a/x-pack/plugins/cases/public/components/create/form.test.tsx b/x-pack/plugins/cases/public/components/create/form.test.tsx index 7459e7b45fed2..3316134f7762e 100644 --- a/x-pack/plugins/cases/public/components/create/form.test.tsx +++ b/x-pack/plugins/cases/public/components/create/form.test.tsx @@ -11,10 +11,13 @@ import { act, render } from '@testing-library/react'; import { licensingMock } from '@kbn/licensing-plugin/public/mocks'; import { NONE_CONNECTOR_ID } from '../../../common/api'; -import { useForm, Form, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { useForm, Form } from '../../common/shared_imports'; import { connectorsMock } from '../../containers/mock'; -import { schema, FormProps } from './schema'; -import { CreateCaseForm, CreateCaseFormProps } from './form'; +import type { FormProps } from './schema'; +import { schema } from './schema'; +import type { CreateCaseFormProps } from './form'; +import { CreateCaseForm } from './form'; import { useCaseConfigure } from '../../containers/configure/use_configure'; import { useCaseConfigureResponse } from '../configure_cases/__mock__'; import { TestProviders } from '../../common/mock'; diff --git a/x-pack/plugins/cases/public/components/create/form.tsx b/x-pack/plugins/cases/public/components/create/form.tsx index 854261b005e5e..32fff2048685d 100644 --- a/x-pack/plugins/cases/public/components/create/form.tsx +++ b/x-pack/plugins/cases/public/components/create/form.tsx @@ -23,18 +23,19 @@ import { Tags } from './tags'; import { Connector } from './connector'; import * as i18n from './translations'; import { SyncAlertsToggle } from './sync_alerts_toggle'; -import { ActionConnector } from '../../../common/api'; -import { Case } from '../../containers/types'; -import { CasesTimelineIntegration, CasesTimelineIntegrationProvider } from '../timeline_context'; +import type { ActionConnector } from '../../../common/api'; +import type { Case } from '../../containers/types'; +import type { CasesTimelineIntegration } from '../timeline_context'; +import { CasesTimelineIntegrationProvider } from '../timeline_context'; import { InsertTimeline } from '../insert_timeline'; -import { UseCreateAttachments } from '../../containers/use_create_attachments'; +import type { UseCreateAttachments } from '../../containers/use_create_attachments'; import { SubmitCaseButton } from './submit_button'; import { FormContext } from './form_context'; import { useCasesFeatures } from '../../common/use_cases_features'; import { CreateCaseOwnerSelector } from './owner_selector'; import { useCasesContext } from '../cases_context/use_cases_context'; import { useAvailableCasesOwners } from '../app/use_available_owners'; -import { CaseAttachmentsWithoutOwner } from '../../types'; +import type { CaseAttachmentsWithoutOwner } from '../../types'; import { Severity } from './severity'; import { Assignees } from './assignees'; diff --git a/x-pack/plugins/cases/public/components/create/form_context.test.tsx b/x-pack/plugins/cases/public/components/create/form_context.test.tsx index 26b14510b481b..6ac37abddb514 100644 --- a/x-pack/plugins/cases/public/components/create/form_context.test.tsx +++ b/x-pack/plugins/cases/public/components/create/form_context.test.tsx @@ -6,12 +6,14 @@ */ import React from 'react'; -import { act, RenderResult, waitFor, within } from '@testing-library/react'; +import type { RenderResult } from '@testing-library/react'; +import { act, waitFor, within } from '@testing-library/react'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; import { CaseSeverity, CommentType, ConnectorTypes } from '../../../common/api'; import { useKibana } from '../../common/lib/kibana'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { usePostCase } from '../../containers/use_post_case'; import { useCreateAttachments } from '../../containers/use_create_attachments'; import { useCaseConfigure } from '../../containers/configure/use_configure'; @@ -32,13 +34,14 @@ import { useGetChoicesResponse, } from './mock'; import { FormContext } from './form_context'; -import { CreateCaseFormFields, CreateCaseFormFieldsProps } from './form'; +import type { CreateCaseFormFieldsProps } from './form'; +import { CreateCaseFormFields } from './form'; import { SubmitCaseButton } from './submit_button'; import { usePostPushToService } from '../../containers/use_post_push_to_service'; -import { Choice } from '../connectors/servicenow/types'; +import type { Choice } from '../connectors/servicenow/types'; import userEvent from '@testing-library/user-event'; import { connectorsMock } from '../../common/mock/connectors'; -import { CaseAttachments } from '../../types'; +import type { CaseAttachments } from '../../types'; import { useGetConnectors } from '../../containers/configure/use_connectors'; import { useGetTags } from '../../containers/use_get_tags'; import { waitForComponentToUpdate } from '../../common/test_utils'; @@ -118,7 +121,8 @@ const fillFormReactTestingLib = async (renderResult: RenderResult) => { } }; -describe('Create case', () => { +// FLAKY: https://github.com/elastic/kibana/issues/142283 +describe.skip('Create case', () => { const refetch = jest.fn(); const onFormSubmitSuccess = jest.fn(); const afterCaseCreated = jest.fn(); diff --git a/x-pack/plugins/cases/public/components/create/form_context.tsx b/x-pack/plugins/cases/public/components/create/form_context.tsx index 01dbb7fbf40d0..1e6cfaafe4eeb 100644 --- a/x-pack/plugins/cases/public/components/create/form_context.tsx +++ b/x-pack/plugins/cases/public/components/create/form_context.tsx @@ -6,22 +6,21 @@ */ import React, { useCallback, useMemo } from 'react'; -import { schema, FormProps } from './schema'; +import type { FormProps } from './schema'; +import { schema } from './schema'; import { Form, useForm } from '../../common/shared_imports'; import { getNoneConnector, normalizeActionConnector } from '../configure_cases/utils'; import { usePostCase } from '../../containers/use_post_case'; import { usePostPushToService } from '../../containers/use_post_push_to_service'; -import { Case } from '../../containers/types'; +import type { Case } from '../../containers/types'; import { CaseSeverity, NONE_CONNECTOR_ID } from '../../../common/api'; -import { - UseCreateAttachments, - useCreateAttachments, -} from '../../containers/use_create_attachments'; +import type { UseCreateAttachments } from '../../containers/use_create_attachments'; +import { useCreateAttachments } from '../../containers/use_create_attachments'; import { useCasesContext } from '../cases_context/use_cases_context'; import { useCasesFeatures } from '../../common/use_cases_features'; import { getConnectorById } from '../utils'; -import { CaseAttachmentsWithoutOwner } from '../../types'; +import type { CaseAttachmentsWithoutOwner } from '../../types'; import { useGetConnectors } from '../../containers/configure/use_connectors'; import { useCreateCaseWithAttachmentsTransaction } from '../../common/apm/use_cases_transactions'; diff --git a/x-pack/plugins/cases/public/components/create/index.test.tsx b/x-pack/plugins/cases/public/components/create/index.test.tsx index 4a2449397bbcc..b5840da22cf45 100644 --- a/x-pack/plugins/cases/public/components/create/index.test.tsx +++ b/x-pack/plugins/cases/public/components/create/index.test.tsx @@ -6,9 +6,11 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { act } from '@testing-library/react'; -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; import { TestProviders } from '../../common/mock'; import { useCaseConfigure } from '../../containers/configure/use_configure'; diff --git a/x-pack/plugins/cases/public/components/create/index.tsx b/x-pack/plugins/cases/public/components/create/index.tsx index eb35f78b87f5f..a1ffd7b3ebd6b 100644 --- a/x-pack/plugins/cases/public/components/create/index.tsx +++ b/x-pack/plugins/cases/public/components/create/index.tsx @@ -9,7 +9,8 @@ import React from 'react'; import { Field, getUseField } from '../../common/shared_imports'; import * as i18n from './translations'; -import { CreateCaseForm, CreateCaseFormProps } from './form'; +import type { CreateCaseFormProps } from './form'; +import { CreateCaseForm } from './form'; import { HeaderPage } from '../header_page'; import { useCasesBreadcrumbs } from '../use_breadcrumbs'; import { CasesDeepLinkId } from '../../common/navigation'; diff --git a/x-pack/plugins/cases/public/components/create/mock.ts b/x-pack/plugins/cases/public/components/create/mock.ts index c54e3206b2b01..ee57410bfb783 100644 --- a/x-pack/plugins/cases/public/components/create/mock.ts +++ b/x-pack/plugins/cases/public/components/create/mock.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { CasePostRequest, CaseSeverity, ConnectorTypes } from '../../../common/api'; +import type { CasePostRequest } from '../../../common/api'; +import { CaseSeverity, ConnectorTypes } from '../../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../../common/constants'; import { choices } from '../connectors/mock'; diff --git a/x-pack/plugins/cases/public/components/create/owner_selector.test.tsx b/x-pack/plugins/cases/public/components/create/owner_selector.test.tsx index 11d7f09f785b1..25f0f9ba0faaa 100644 --- a/x-pack/plugins/cases/public/components/create/owner_selector.test.tsx +++ b/x-pack/plugins/cases/public/components/create/owner_selector.test.tsx @@ -11,9 +11,11 @@ import { act, waitFor } from '@testing-library/react'; import { SECURITY_SOLUTION_OWNER } from '../../../common'; import { OBSERVABILITY_OWNER } from '../../../common/constants'; -import { useForm, Form, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { useForm, Form } from '../../common/shared_imports'; import { CreateCaseOwnerSelector } from './owner_selector'; -import { schema, FormProps } from './schema'; +import type { FormProps } from './schema'; +import { schema } from './schema'; import { waitForComponentToPaint } from '../../common/test_utils'; describe('Case Owner Selection', () => { diff --git a/x-pack/plugins/cases/public/components/create/owner_selector.tsx b/x-pack/plugins/cases/public/components/create/owner_selector.tsx index bcc8709ee5c5d..e572e7c9f9ca5 100644 --- a/x-pack/plugins/cases/public/components/create/owner_selector.tsx +++ b/x-pack/plugins/cases/public/components/create/owner_selector.tsx @@ -21,7 +21,8 @@ import { euiStyled } from '@kbn/kibana-react-plugin/common'; import { SECURITY_SOLUTION_OWNER } from '../../../common'; import { OWNER_INFO } from '../../../common/constants'; -import { FieldHook, getFieldValidityAndErrorMessage, UseField } from '../../common/shared_imports'; +import type { FieldHook } from '../../common/shared_imports'; +import { getFieldValidityAndErrorMessage, UseField } from '../../common/shared_imports'; import * as i18n from './translations'; interface OwnerSelectorProps { diff --git a/x-pack/plugins/cases/public/components/create/schema.tsx b/x-pack/plugins/cases/public/components/create/schema.tsx index 59cf8f919606b..30dc762143ae3 100644 --- a/x-pack/plugins/cases/public/components/create/schema.tsx +++ b/x-pack/plugins/cases/public/components/create/schema.tsx @@ -5,15 +5,11 @@ * 2.0. */ -import { CasePostRequest, ConnectorTypeFields } from '../../../common/api'; +import type { CasePostRequest, ConnectorTypeFields } from '../../../common/api'; import { isInvalidTag } from '../../../common/utils/validators'; import { MAX_TITLE_LENGTH } from '../../../common/constants'; -import { - FIELD_TYPES, - fieldValidators, - FormSchema, - VALIDATION_TYPES, -} from '../../common/shared_imports'; +import type { FormSchema } from '../../common/shared_imports'; +import { FIELD_TYPES, fieldValidators, VALIDATION_TYPES } from '../../common/shared_imports'; import * as i18n from './translations'; import { OptionalFieldLabel } from './optional_field_label'; diff --git a/x-pack/plugins/cases/public/components/create/severity.test.tsx b/x-pack/plugins/cases/public/components/create/severity.test.tsx index 09a24eb5801e6..5d80028817a83 100644 --- a/x-pack/plugins/cases/public/components/create/severity.test.tsx +++ b/x-pack/plugins/cases/public/components/create/severity.test.tsx @@ -7,10 +7,13 @@ import { CaseSeverity } from '../../../common/api'; import React from 'react'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; -import { Form, FormHook, useForm } from '../../common/shared_imports'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; +import type { FormHook } from '../../common/shared_imports'; +import { Form, useForm } from '../../common/shared_imports'; import { Severity } from './severity'; -import { FormProps, schema } from './schema'; +import type { FormProps } from './schema'; +import { schema } from './schema'; import userEvent from '@testing-library/user-event'; import { waitFor } from '@testing-library/dom'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; diff --git a/x-pack/plugins/cases/public/components/create/submit_button.test.tsx b/x-pack/plugins/cases/public/components/create/submit_button.test.tsx index 62279500616ee..b703eb703d720 100644 --- a/x-pack/plugins/cases/public/components/create/submit_button.test.tsx +++ b/x-pack/plugins/cases/public/components/create/submit_button.test.tsx @@ -11,7 +11,8 @@ import { waitFor } from '@testing-library/react'; import { useForm, Form } from '../../common/shared_imports'; import { SubmitCaseButton } from './submit_button'; -import { schema, FormProps } from './schema'; +import type { FormProps } from './schema'; +import { schema } from './schema'; describe('SubmitCaseButton', () => { const onSubmit = jest.fn(); diff --git a/x-pack/plugins/cases/public/components/create/sync_alerts_toggle.test.tsx b/x-pack/plugins/cases/public/components/create/sync_alerts_toggle.test.tsx index b4a37f0abb518..28abe40607c72 100644 --- a/x-pack/plugins/cases/public/components/create/sync_alerts_toggle.test.tsx +++ b/x-pack/plugins/cases/public/components/create/sync_alerts_toggle.test.tsx @@ -9,9 +9,11 @@ import React from 'react'; import { mount } from 'enzyme'; import { waitFor } from '@testing-library/react'; -import { useForm, Form, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { useForm, Form } from '../../common/shared_imports'; import { SyncAlertsToggle } from './sync_alerts_toggle'; -import { schema, FormProps } from './schema'; +import type { FormProps } from './schema'; +import { schema } from './schema'; describe('SyncAlertsToggle', () => { let globalForm: FormHook; diff --git a/x-pack/plugins/cases/public/components/create/tags.test.tsx b/x-pack/plugins/cases/public/components/create/tags.test.tsx index dde659c2da8ba..9e84955c3a07e 100644 --- a/x-pack/plugins/cases/public/components/create/tags.test.tsx +++ b/x-pack/plugins/cases/public/components/create/tags.test.tsx @@ -7,12 +7,15 @@ import React from 'react'; import { mount } from 'enzyme'; -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import type { EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiComboBox } from '@elastic/eui'; import { waitFor } from '@testing-library/react'; -import { useForm, Form, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { useForm, Form } from '../../common/shared_imports'; import { Tags } from './tags'; -import { schema, FormProps } from './schema'; +import type { FormProps } from './schema'; +import { schema } from './schema'; import { TestProviders } from '../../common/mock'; import { useGetTags } from '../../containers/use_get_tags'; diff --git a/x-pack/plugins/cases/public/components/create/title.test.tsx b/x-pack/plugins/cases/public/components/create/title.test.tsx index a41d5afbb4038..37952ba530842 100644 --- a/x-pack/plugins/cases/public/components/create/title.test.tsx +++ b/x-pack/plugins/cases/public/components/create/title.test.tsx @@ -9,9 +9,11 @@ import React from 'react'; import { mount } from 'enzyme'; import { act } from '@testing-library/react'; -import { useForm, Form, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { useForm, Form } from '../../common/shared_imports'; import { Title } from './title'; -import { schema, FormProps } from './schema'; +import type { FormProps } from './schema'; +import { schema } from './schema'; describe('Title', () => { let globalForm: FormHook; diff --git a/x-pack/plugins/cases/public/components/edit_connector/helpers.test.ts b/x-pack/plugins/cases/public/components/edit_connector/helpers.test.ts index 4efd4b995eb83..12503b6d223fc 100644 --- a/x-pack/plugins/cases/public/components/edit_connector/helpers.test.ts +++ b/x-pack/plugins/cases/public/components/edit_connector/helpers.test.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { Actions, ConnectorTypes, ConnectorUserAction } from '../../../common/api'; -import { CaseUserActions } from '../../containers/types'; +import type { ConnectorUserAction } from '../../../common/api'; +import { Actions, ConnectorTypes } from '../../../common/api'; +import type { CaseUserActions } from '../../containers/types'; import { getConnectorFieldsFromUserActions } from './helpers'; const defaultJiraFields = { diff --git a/x-pack/plugins/cases/public/components/edit_connector/helpers.ts b/x-pack/plugins/cases/public/components/edit_connector/helpers.ts index 9f7ecaa95793b..84d6984f35bbc 100644 --- a/x-pack/plugins/cases/public/components/edit_connector/helpers.ts +++ b/x-pack/plugins/cases/public/components/edit_connector/helpers.ts @@ -6,8 +6,8 @@ */ import { isConnectorUserAction, isCreateCaseUserAction } from '../../../common/utils/user_actions'; -import { ConnectorTypeFields } from '../../../common/api'; -import { CaseUserActions } from '../../containers/types'; +import type { ConnectorTypeFields } from '../../../common/api'; +import type { CaseUserActions } from '../../containers/types'; export const getConnectorFieldsFromUserActions = ( id: string, diff --git a/x-pack/plugins/cases/public/components/edit_connector/index.test.tsx b/x-pack/plugins/cases/public/components/edit_connector/index.test.tsx index 5db400203468a..401f43ae9afff 100644 --- a/x-pack/plugins/cases/public/components/edit_connector/index.test.tsx +++ b/x-pack/plugins/cases/public/components/edit_connector/index.test.tsx @@ -11,16 +11,17 @@ import { render, waitFor, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; -import { EditConnector, EditConnectorProps } from '.'; +import type { EditConnectorProps } from '.'; +import { EditConnector } from '.'; +import type { AppMockRenderer } from '../../common/mock'; import { - AppMockRenderer, createAppMockRenderer, readCasesPermissions, noPushCasesPermissions, TestProviders, } from '../../common/mock'; import { basicCase, basicPush, caseUserActions, connectorsMock } from '../../containers/mock'; -import { CaseConnector } from '../../containers/configure/types'; +import type { CaseConnector } from '../../containers/configure/types'; const onSubmit = jest.fn(); const caseServices = { diff --git a/x-pack/plugins/cases/public/components/edit_connector/index.tsx b/x-pack/plugins/cases/public/components/edit_connector/index.tsx index fe3e980016e4c..7be868fa5d625 100644 --- a/x-pack/plugins/cases/public/components/edit_connector/index.tsx +++ b/x-pack/plugins/cases/public/components/edit_connector/index.tsx @@ -19,18 +19,20 @@ import { import styled from 'styled-components'; import { isEmpty, noop } from 'lodash/fp'; -import { FieldConfig, Form, UseField, useForm } from '../../common/shared_imports'; -import { Case } from '../../../common/ui/types'; -import { ActionConnector, ConnectorTypeFields, NONE_CONNECTOR_ID } from '../../../common/api'; +import type { FieldConfig } from '../../common/shared_imports'; +import { Form, UseField, useForm } from '../../common/shared_imports'; +import type { Case } from '../../../common/ui/types'; +import type { ActionConnector, ConnectorTypeFields } from '../../../common/api'; +import { NONE_CONNECTOR_ID } from '../../../common/api'; import { ConnectorSelector } from '../connector_selector/form'; import { ConnectorFieldsForm } from '../connectors/fields_form'; -import { CaseUserActions } from '../../containers/types'; +import type { CaseUserActions } from '../../containers/types'; import { schema } from './schema'; import { getConnectorFieldsFromUserActions } from './helpers'; import * as i18n from './translations'; import { getConnectorById, getConnectorsFormValidators } from '../utils'; import { usePushToService } from '../use_push_to_service'; -import { CaseServices } from '../../containers/use_get_case_user_actions'; +import type { CaseServices } from '../../containers/use_get_case_user_actions'; import { useApplicationCapabilities } from '../../common/lib/kibana'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/edit_connector/schema.tsx b/x-pack/plugins/cases/public/components/edit_connector/schema.tsx index a12511f704be2..0ff191fff5bda 100644 --- a/x-pack/plugins/cases/public/components/edit_connector/schema.tsx +++ b/x-pack/plugins/cases/public/components/edit_connector/schema.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import { FormSchema, FIELD_TYPES } from '../../common/shared_imports'; +import type { FormSchema } from '../../common/shared_imports'; +import { FIELD_TYPES } from '../../common/shared_imports'; export interface FormProps { connectorId: string; diff --git a/x-pack/plugins/cases/public/components/header_page/editable_title.test.tsx b/x-pack/plugins/cases/public/components/header_page/editable_title.test.tsx index e2893cbbc5aa8..51d42c3d1d3b0 100644 --- a/x-pack/plugins/cases/public/components/header_page/editable_title.test.tsx +++ b/x-pack/plugins/cases/public/components/header_page/editable_title.test.tsx @@ -8,13 +8,10 @@ import React from 'react'; import '../../common/mock/match_media'; -import { - AppMockRenderer, - createAppMockRenderer, - readCasesPermissions, - TestProviders, -} from '../../common/mock'; -import { EditableTitle, EditableTitleProps } from './editable_title'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, readCasesPermissions, TestProviders } from '../../common/mock'; +import type { EditableTitleProps } from './editable_title'; +import { EditableTitle } from './editable_title'; import { useMountAppended } from '../../utils/use_mount_appended'; describe('EditableTitle', () => { diff --git a/x-pack/plugins/cases/public/components/header_page/editable_title.tsx b/x-pack/plugins/cases/public/components/header_page/editable_title.tsx index 7e0dd2f5fd1fc..287cbb23134d8 100644 --- a/x-pack/plugins/cases/public/components/header_page/editable_title.tsx +++ b/x-pack/plugins/cases/public/components/header_page/editable_title.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { useState, useCallback, ChangeEvent } from 'react'; +import type { ChangeEvent } from 'react'; +import React, { useState, useCallback } from 'react'; import styled, { css } from 'styled-components'; import { diff --git a/x-pack/plugins/cases/public/components/header_page/index.test.tsx b/x-pack/plugins/cases/public/components/header_page/index.test.tsx index c5c7ddcaab875..19301bb5eebc4 100644 --- a/x-pack/plugins/cases/public/components/header_page/index.test.tsx +++ b/x-pack/plugins/cases/public/components/header_page/index.test.tsx @@ -9,7 +9,8 @@ import { euiDarkVars } from '@kbn/ui-theme'; import React from 'react'; import '../../common/mock/match_media'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, TestProviders } from '../../common/mock'; import { HeaderPage } from '.'; import { useMountAppended } from '../../utils/use_mount_appended'; diff --git a/x-pack/plugins/cases/public/components/header_page/index.tsx b/x-pack/plugins/cases/public/components/header_page/index.tsx index 6bec4035ca823..5d47bc2d62847 100644 --- a/x-pack/plugins/cases/public/components/header_page/index.tsx +++ b/x-pack/plugins/cases/public/components/header_page/index.tsx @@ -11,7 +11,8 @@ import styled, { css } from 'styled-components'; import { useAllCasesNavigation } from '../../common/navigation'; import { LinkIcon } from '../link_icon'; -import { Subtitle, SubtitleProps } from '../subtitle'; +import type { SubtitleProps } from '../subtitle'; +import { Subtitle } from '../subtitle'; import { Title } from './title'; import * as i18n from './translations'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/header_page/title.tsx b/x-pack/plugins/cases/public/components/header_page/title.tsx index c6d2bf97e1cf1..15cddbdadc7fb 100644 --- a/x-pack/plugins/cases/public/components/header_page/title.tsx +++ b/x-pack/plugins/cases/public/components/header_page/title.tsx @@ -10,7 +10,7 @@ import { isString } from 'lodash'; import { EuiBetaBadge, EuiTitle, EuiFlexItem, EuiFlexGroup } from '@elastic/eui'; import { TruncatedText } from '../truncated_text'; -import { ReleasePhase } from '../types'; +import type { ReleasePhase } from '../types'; import * as i18n from './translations'; interface Props { diff --git a/x-pack/plugins/cases/public/components/insert_timeline/index.test.tsx b/x-pack/plugins/cases/public/components/insert_timeline/index.test.tsx index 1a745221bbc48..931cf3255c5a5 100644 --- a/x-pack/plugins/cases/public/components/insert_timeline/index.test.tsx +++ b/x-pack/plugins/cases/public/components/insert_timeline/index.test.tsx @@ -10,7 +10,8 @@ import { mount } from 'enzyme'; import { waitFor } from '@testing-library/react'; import { TestProviders } from '../../common/mock'; -import { Form, useForm, FormHook } from '../../common/shared_imports'; +import type { FormHook } from '../../common/shared_imports'; +import { Form, useForm } from '../../common/shared_imports'; import { CasesTimelineIntegrationProvider } from '../timeline_context'; import { timelineIntegrationMock } from '../__mock__/timeline'; import { getFormMock } from '../__mock__/form'; diff --git a/x-pack/plugins/cases/public/components/link_icon/index.tsx b/x-pack/plugins/cases/public/components/link_icon/index.tsx index 6285eceed0dd4..5f65ab39e39e2 100644 --- a/x-pack/plugins/cases/public/components/link_icon/index.tsx +++ b/x-pack/plugins/cases/public/components/link_icon/index.tsx @@ -5,9 +5,11 @@ * 2.0. */ -import { EuiIcon, EuiLink, IconSize, IconType } from '@elastic/eui'; -import { LinkAnchorProps } from '@elastic/eui/src/components/link/link'; -import React, { ReactNode, useCallback, useMemo } from 'react'; +import type { IconSize, IconType } from '@elastic/eui'; +import { EuiIcon, EuiLink } from '@elastic/eui'; +import type { LinkAnchorProps } from '@elastic/eui/src/components/link/link'; +import type { ReactNode } from 'react'; +import React, { useCallback, useMemo } from 'react'; import styled, { css } from 'styled-components'; interface LinkProps { diff --git a/x-pack/plugins/cases/public/components/links/index.test.tsx b/x-pack/plugins/cases/public/components/links/index.test.tsx index 69c418790c9d7..e2da1a28261e7 100644 --- a/x-pack/plugins/cases/public/components/links/index.test.tsx +++ b/x-pack/plugins/cases/public/components/links/index.test.tsx @@ -6,18 +6,15 @@ */ import React from 'react'; -import { ReactWrapper, mount } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { EuiText } from '@elastic/eui'; import '../../common/mock/match_media'; -import { - ConfigureCaseButton, - ConfigureCaseButtonProps, - CaseDetailsLink, - CaseDetailsLinkProps, -} from '.'; +import type { ConfigureCaseButtonProps, CaseDetailsLinkProps } from '.'; +import { ConfigureCaseButton, CaseDetailsLink } from '.'; import { TestProviders } from '../../common/mock'; import { useCaseViewNavigation } from '../../common/navigation/hooks'; diff --git a/x-pack/plugins/cases/public/components/links/index.tsx b/x-pack/plugins/cases/public/components/links/index.tsx index db8a4df2a88ca..2916aebd2d32f 100644 --- a/x-pack/plugins/cases/public/components/links/index.tsx +++ b/x-pack/plugins/cases/public/components/links/index.tsx @@ -5,15 +5,8 @@ * 2.0. */ -import { - EuiButton, - EuiButtonProps, - EuiLink, - EuiLinkProps, - EuiToolTip, - PropsForAnchor, - PropsForButton, -} from '@elastic/eui'; +import type { EuiButtonProps, EuiLinkProps, PropsForAnchor, PropsForButton } from '@elastic/eui'; +import { EuiButton, EuiLink, EuiToolTip } from '@elastic/eui'; import React, { useCallback, useMemo } from 'react'; import { useCaseViewNavigation, useConfigureCasesNavigation } from '../../common/navigation'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/editor.tsx b/x-pack/plugins/cases/public/components/markdown_editor/editor.tsx index a3de9072f0ea5..613fe6153b25d 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/editor.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/editor.tsx @@ -5,18 +5,12 @@ * 2.0. */ -import React, { - memo, - forwardRef, - useCallback, - useRef, - useState, - useImperativeHandle, - ElementRef, -} from 'react'; -import { PluggableList } from 'unified'; -import { EuiMarkdownEditor, EuiMarkdownEditorProps, EuiMarkdownAstNode } from '@elastic/eui'; -import { ContextShape } from '@elastic/eui/src/components/markdown_editor/markdown_context'; +import type { ElementRef } from 'react'; +import React, { memo, forwardRef, useCallback, useRef, useState, useImperativeHandle } from 'react'; +import type { PluggableList } from 'unified'; +import type { EuiMarkdownEditorProps, EuiMarkdownAstNode } from '@elastic/eui'; +import { EuiMarkdownEditor } from '@elastic/eui'; +import type { ContextShape } from '@elastic/eui/src/components/markdown_editor/markdown_context'; import { usePlugins } from './use_plugins'; import { useLensButtonToggle } from './plugins/lens/use_lens_button_toggle'; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/eui_form.tsx b/x-pack/plugins/cases/public/components/markdown_editor/eui_form.tsx index f0e951c89326f..2884816a091a3 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/eui_form.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/eui_form.tsx @@ -7,9 +7,12 @@ import React, { forwardRef, useMemo } from 'react'; import styled from 'styled-components'; -import { EuiMarkdownEditorProps, EuiFormRow, EuiFlexItem, EuiFlexGroup } from '@elastic/eui'; -import { FieldHook, getFieldValidityAndErrorMessage } from '../../common/shared_imports'; -import { MarkdownEditor, MarkdownEditorRef } from './editor'; +import type { EuiMarkdownEditorProps } from '@elastic/eui'; +import { EuiFormRow, EuiFlexItem, EuiFlexGroup } from '@elastic/eui'; +import type { FieldHook } from '../../common/shared_imports'; +import { getFieldValidityAndErrorMessage } from '../../common/shared_imports'; +import type { MarkdownEditorRef } from './editor'; +import { MarkdownEditor } from './editor'; import { CommentEditorContext } from './context'; type MarkdownEditorFormProps = EuiMarkdownEditorProps & { diff --git a/x-pack/plugins/cases/public/components/markdown_editor/markdown_link.tsx b/x-pack/plugins/cases/public/components/markdown_editor/markdown_link.tsx index c42ef90648bc9..e2a7415346fc4 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/markdown_link.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/markdown_link.tsx @@ -6,7 +6,8 @@ */ import React, { memo } from 'react'; -import { EuiLink, EuiLinkAnchorProps, EuiToolTip } from '@elastic/eui'; +import type { EuiLinkAnchorProps } from '@elastic/eui'; +import { EuiLink, EuiToolTip } from '@elastic/eui'; type MarkdownLinkProps = { disableLinks?: boolean } & EuiLinkAnchorProps; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/parser.ts b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/parser.ts index 38243ebfac5a9..dd908b87064a9 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/parser.ts +++ b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/parser.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Plugin } from 'unified'; -import { RemarkTokenizer } from '@elastic/eui'; +import type { Plugin } from 'unified'; +import type { RemarkTokenizer } from '@elastic/eui'; import { ID, PREFIX } from './constants'; export const LensParser: Plugin = function () { diff --git a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/plugin.tsx b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/plugin.tsx index 65a2653bb298b..eca83f9e45801 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/plugin.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/plugin.tsx @@ -6,19 +6,18 @@ */ import { first } from 'rxjs/operators'; +import type { EuiMarkdownEditorUiPlugin, EuiMarkdownAstNodePosition } from '@elastic/eui'; import { EuiCodeBlock, EuiModalBody, EuiModalHeader, EuiModalHeaderTitle, - EuiMarkdownEditorUiPlugin, EuiMarkdownContext, EuiModalFooter, EuiButtonEmpty, EuiButton, EuiFlexItem, EuiFlexGroup, - EuiMarkdownAstNodePosition, EuiBetaBadge, } from '@elastic/eui'; import React, { useCallback, useContext, useMemo, useEffect, useState } from 'react'; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/processor.tsx b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/processor.tsx index 73ee01231587e..0f84529dcc92a 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/processor.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/processor.tsx @@ -9,7 +9,7 @@ import React from 'react'; import styled from 'styled-components'; import { createGlobalStyle } from '@kbn/kibana-react-plugin/common'; -import { TypedLensByValueInput } from '@kbn/lens-plugin/public'; +import type { TypedLensByValueInput } from '@kbn/lens-plugin/public'; import { useKibana } from '../../../../common/lib/kibana'; import { LENS_VISUALIZATION_HEIGHT } from './constants'; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/saved_objects_finder.tsx b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/saved_objects_finder.tsx index a24cc5d644e3d..5b96ea377fc74 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/saved_objects_finder.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/saved_objects_finder.tsx @@ -11,12 +11,12 @@ import { debounce } from 'lodash'; import PropTypes from 'prop-types'; import React from 'react'; +import type { EuiFieldSearchProps, IconType, EuiFormRowProps } from '@elastic/eui'; import { EuiContextMenuItem, EuiContextMenuPanel, EuiEmptyPrompt, EuiFieldSearch, - EuiFieldSearchProps, EuiFilterButton, EuiFilterGroup, EuiFlexGroup, @@ -28,14 +28,12 @@ import { EuiPopover, EuiSpacer, EuiTablePagination, - IconType, EuiFormRow, - EuiFormRowProps, } from '@elastic/eui'; -import { Direction } from '@elastic/eui/src/services/sort/sort_direction'; +import type { Direction } from '@elastic/eui/src/services/sort/sort_direction'; import { i18n } from '@kbn/i18n'; -import { SimpleSavedObject, CoreStart } from '@kbn/core/public'; +import type { SimpleSavedObject, CoreStart } from '@kbn/core/public'; import { LISTING_LIMIT_SETTING } from '@kbn/saved-objects-plugin/public'; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/use_lens_button_toggle.ts b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/use_lens_button_toggle.ts index a8ede7ab58068..4431261bdfaaa 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/use_lens_button_toggle.ts +++ b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/use_lens_button_toggle.ts @@ -9,9 +9,9 @@ import { some } from 'lodash'; import useDebounce from 'react-use/lib/useDebounce'; -import { ContextShape } from '@elastic/eui/src/components/markdown_editor/markdown_context'; +import type { ContextShape } from '@elastic/eui/src/components/markdown_editor/markdown_context'; import { useCallback, useEffect, useRef, useState } from 'react'; -import { EuiMarkdownAstNode, EuiMarkdownEditorUiPlugin } from '@elastic/eui'; +import type { EuiMarkdownAstNode, EuiMarkdownEditorUiPlugin } from '@elastic/eui'; import { VISUALIZATION } from './translations'; import { PREFIX } from './constants'; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/use_lens_draft_comment.ts b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/use_lens_draft_comment.ts index a2dccc0e44d74..f8f4582190284 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/use_lens_draft_comment.ts +++ b/x-pack/plugins/cases/public/components/markdown_editor/plugins/lens/use_lens_draft_comment.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { EuiMarkdownAstNodePosition } from '@elastic/eui'; +import type { EuiMarkdownAstNodePosition } from '@elastic/eui'; import { useCallback, useEffect, useState } from 'react'; import { first } from 'rxjs/operators'; import { useKibana } from '../../../../common/lib/kibana'; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/renderer.test.tsx b/x-pack/plugins/cases/public/components/markdown_editor/renderer.test.tsx index 8cb8b7f23b439..57cc3024a0215 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/renderer.test.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/renderer.test.tsx @@ -9,7 +9,8 @@ import React from 'react'; import { removeExternalLinkText } from '../../common/test_utils'; import { MarkdownRenderer } from './renderer'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; describe('Markdown', () => { let appMockRender: AppMockRenderer; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/renderer.tsx b/x-pack/plugins/cases/public/components/markdown_editor/renderer.tsx index e0265a2884b97..0f75449883850 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/renderer.tsx +++ b/x-pack/plugins/cases/public/components/markdown_editor/renderer.tsx @@ -7,7 +7,8 @@ import React, { memo, useMemo } from 'react'; import { cloneDeep } from 'lodash/fp'; -import { EuiMarkdownFormat, EuiLinkAnchorProps } from '@elastic/eui'; +import type { EuiLinkAnchorProps } from '@elastic/eui'; +import { EuiMarkdownFormat } from '@elastic/eui'; import { MarkdownLink } from './markdown_link'; import { usePlugins } from './use_plugins'; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/types.ts b/x-pack/plugins/cases/public/components/markdown_editor/types.ts index 33249c0025f8e..82ff738a178bf 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/types.ts +++ b/x-pack/plugins/cases/public/components/markdown_editor/types.ts @@ -5,13 +5,12 @@ * 2.0. */ -import { FunctionComponent } from 'react'; -import { Plugin, PluggableList } from 'unified'; +import type { FunctionComponent } from 'react'; +import type { Plugin, PluggableList } from 'unified'; // Remove after this issue is resolved: https://github.com/elastic/eui/issues/4688 -import { Options as Remark2RehypeOptions } from 'mdast-util-to-hast'; -// eslint-disable-next-line import/no-extraneous-dependencies -import rehype2react from 'rehype-react'; -import { EuiLinkAnchorProps } from '@elastic/eui'; +import type { Options as Remark2RehypeOptions } from 'mdast-util-to-hast'; +import type rehype2react from 'rehype-react'; +import type { EuiLinkAnchorProps } from '@elastic/eui'; export interface CursorPosition { start: number; end: number; diff --git a/x-pack/plugins/cases/public/components/markdown_editor/use_plugins.ts b/x-pack/plugins/cases/public/components/markdown_editor/use_plugins.ts index 15d92d1c7f1a1..2ed36feebcb4e 100644 --- a/x-pack/plugins/cases/public/components/markdown_editor/use_plugins.ts +++ b/x-pack/plugins/cases/public/components/markdown_editor/use_plugins.ts @@ -12,7 +12,7 @@ import { } from '@elastic/eui'; import { useMemo } from 'react'; import { useTimelineContext } from '../timeline_context/use_timeline_context'; -import { TemporaryProcessingPluginsType } from './types'; +import type { TemporaryProcessingPluginsType } from './types'; import { KibanaServices, useApplicationCapabilities } from '../../common/lib/kibana'; import * as lensMarkdownPlugin from './plugins/lens'; import { ID as LensPluginId } from './plugins/lens/constants'; diff --git a/x-pack/plugins/cases/public/components/recent_cases/filters/index.tsx b/x-pack/plugins/cases/public/components/recent_cases/filters/index.tsx index b42ed968e78c5..c93cf8a1995a8 100644 --- a/x-pack/plugins/cases/public/components/recent_cases/filters/index.tsx +++ b/x-pack/plugins/cases/public/components/recent_cases/filters/index.tsx @@ -5,10 +5,11 @@ * 2.0. */ -import { EuiButtonGroup, EuiButtonGroupOptionProps } from '@elastic/eui'; +import type { EuiButtonGroupOptionProps } from '@elastic/eui'; +import { EuiButtonGroup } from '@elastic/eui'; import React, { useCallback, useMemo } from 'react'; -import { FilterMode } from '../types'; +import type { FilterMode } from '../types'; import * as i18n from '../translations'; diff --git a/x-pack/plugins/cases/public/components/recent_cases/index.test.tsx b/x-pack/plugins/cases/public/components/recent_cases/index.test.tsx index 46138fb354604..d61dcc2a23429 100644 --- a/x-pack/plugins/cases/public/components/recent_cases/index.test.tsx +++ b/x-pack/plugins/cases/public/components/recent_cases/index.test.tsx @@ -8,13 +8,10 @@ import React from 'react'; import { configure, waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import RecentCases, { RecentCasesProps } from '.'; -import { - AppMockRenderer, - createAppMockRenderer, - noCasesCapabilities, - TestProviders, -} from '../../common/mock'; +import type { RecentCasesProps } from '.'; +import RecentCases from '.'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, noCasesCapabilities, TestProviders } from '../../common/mock'; import { useGetCasesMockState } from '../../containers/mock'; import { useCurrentUser } from '../../common/lib/kibana/hooks'; import { useGetCases } from '../../containers/use_get_cases'; diff --git a/x-pack/plugins/cases/public/components/recent_cases/index.tsx b/x-pack/plugins/cases/public/components/recent_cases/index.tsx index c63c98b14a6e9..0637e077b16e5 100644 --- a/x-pack/plugins/cases/public/components/recent_cases/index.tsx +++ b/x-pack/plugins/cases/public/components/recent_cases/index.tsx @@ -9,17 +9,18 @@ import { EuiFlexGroup, EuiFlexItem, EuiHorizontalRule, EuiText, EuiTitle } from import React, { useCallback, useMemo, useState } from 'react'; import { QueryClientProvider } from '@tanstack/react-query'; -import { UserProfile } from '@kbn/user-profile-components'; +import type { UserProfile } from '@kbn/user-profile-components'; import * as i18n from './translations'; import { LinkAnchor } from '../links'; import { RecentCasesFilters } from './filters'; import { RecentCasesComp } from './recent_cases'; -import { FilterMode as RecentCasesFilterMode } from './types'; -import { AuthenticatedElasticUser, useCurrentUser } from '../../common/lib/kibana'; +import type { FilterMode as RecentCasesFilterMode } from './types'; +import type { AuthenticatedElasticUser } from '../../common/lib/kibana'; +import { useCurrentUser } from '../../common/lib/kibana'; import { useAllCasesNavigation } from '../../common/navigation'; import { casesQueryClient } from '../cases_context/query_client'; import { useGetCurrentUserProfile } from '../../containers/user_profiles/use_get_current_user_profile'; -import { User } from '../../../common/api'; +import type { User } from '../../../common/api'; export interface RecentCasesProps { maxCasesToShow: number; diff --git a/x-pack/plugins/cases/public/components/recent_cases/recent_cases.tsx b/x-pack/plugins/cases/public/components/recent_cases/recent_cases.tsx index 190972eeb9327..9aa954ecb9be1 100644 --- a/x-pack/plugins/cases/public/components/recent_cases/recent_cases.tsx +++ b/x-pack/plugins/cases/public/components/recent_cases/recent_cases.tsx @@ -15,7 +15,7 @@ import { CaseDetailsLink } from '../links'; import { LoadingPlaceholders } from './loading_placeholders'; import { NoCases } from './no_cases'; import { MarkdownRenderer } from '../markdown_editor'; -import { FilterOptions } from '../../containers/types'; +import type { FilterOptions } from '../../containers/types'; import { TruncatedText } from '../truncated_text'; import { initialData as initialGetCasesData, useGetCases } from '../../containers/use_get_cases'; import { useAvailableCasesOwners } from '../app/use_available_owners'; diff --git a/x-pack/plugins/cases/public/components/severity/selector.tsx b/x-pack/plugins/cases/public/components/severity/selector.tsx index 0d1ff4b319f2b..63cd57e1925cd 100644 --- a/x-pack/plugins/cases/public/components/severity/selector.tsx +++ b/x-pack/plugins/cases/public/components/severity/selector.tsx @@ -5,15 +5,10 @@ * 2.0. */ -import { - EuiFlexGroup, - EuiFlexItem, - EuiHealth, - EuiSuperSelect, - EuiSuperSelectOption, -} from '@elastic/eui'; +import type { EuiSuperSelectOption } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiHealth, EuiSuperSelect } from '@elastic/eui'; import React from 'react'; -import { CaseSeverity } from '../../../common/api'; +import type { CaseSeverity } from '../../../common/api'; import { severities } from './config'; interface Props { diff --git a/x-pack/plugins/cases/public/components/severity/sidebar_selector.tsx b/x-pack/plugins/cases/public/components/severity/sidebar_selector.tsx index ff591e342793f..1210fc78da52f 100644 --- a/x-pack/plugins/cases/public/components/severity/sidebar_selector.tsx +++ b/x-pack/plugins/cases/public/components/severity/sidebar_selector.tsx @@ -7,7 +7,7 @@ import { EuiFlexItem, EuiHorizontalRule, EuiSpacer, EuiText } from '@elastic/eui'; import React from 'react'; -import { CaseSeverity } from '../../../common/api'; +import type { CaseSeverity } from '../../../common/api'; import { SeveritySelector } from './selector'; import { SEVERITY_TITLE } from './translations'; diff --git a/x-pack/plugins/cases/public/components/status/button.tsx b/x-pack/plugins/cases/public/components/status/button.tsx index 34eb5d62c7790..bed36942ed6e8 100644 --- a/x-pack/plugins/cases/public/components/status/button.tsx +++ b/x-pack/plugins/cases/public/components/status/button.tsx @@ -8,7 +8,8 @@ import React, { memo, useCallback, useMemo } from 'react'; import { EuiButton } from '@elastic/eui'; -import { CaseStatuses, caseStatuses } from '../../../common/api'; +import type { CaseStatuses } from '../../../common/api'; +import { caseStatuses } from '../../../common/api'; import { statuses } from './config'; interface Props { diff --git a/x-pack/plugins/cases/public/components/status/config.ts b/x-pack/plugins/cases/public/components/status/config.ts index a74cbfba61f82..113f91d5194df 100644 --- a/x-pack/plugins/cases/public/components/status/config.ts +++ b/x-pack/plugins/cases/public/components/status/config.ts @@ -8,7 +8,7 @@ import { getStatusConfiguration } from '@kbn/cases-components'; import { StatusAll } from '../../../common/ui/types'; import { CaseStatuses } from '../../../common/api'; import * as i18n from './translations'; -import { AllCaseStatus, Statuses } from './types'; +import type { AllCaseStatus, Statuses } from './types'; const statusConfiguration = getStatusConfiguration(); diff --git a/x-pack/plugins/cases/public/components/status/status_popover_button.tsx b/x-pack/plugins/cases/public/components/status/status_popover_button.tsx index e4efa35c52835..04a426347c83f 100644 --- a/x-pack/plugins/cases/public/components/status/status_popover_button.tsx +++ b/x-pack/plugins/cases/public/components/status/status_popover_button.tsx @@ -8,7 +8,7 @@ import React, { memo } from 'react'; import { EuiBadge } from '@elastic/eui'; -import { CaseStatuses } from '@kbn/cases-components'; +import type { CaseStatuses } from '@kbn/cases-components'; import { statuses } from './config'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/status/status_stats.tsx b/x-pack/plugins/cases/public/components/status/status_stats.tsx index 56f4259f87ea6..515c095b24c28 100644 --- a/x-pack/plugins/cases/public/components/status/status_stats.tsx +++ b/x-pack/plugins/cases/public/components/status/status_stats.tsx @@ -7,7 +7,7 @@ import React, { memo, useMemo } from 'react'; import { EuiDescriptionList, EuiLoadingSpinner } from '@elastic/eui'; -import { CaseStatuses } from '../../../common/api'; +import type { CaseStatuses } from '../../../common/api'; import { statuses } from './config'; export interface Props { diff --git a/x-pack/plugins/cases/public/components/status/types.ts b/x-pack/plugins/cases/public/components/status/types.ts index 1df8eb781ecc0..1bd8b553593b6 100644 --- a/x-pack/plugins/cases/public/components/status/types.ts +++ b/x-pack/plugins/cases/public/components/status/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { EuiIconType } from '@elastic/eui/src/components/icon/icon'; -import { StatusAllType } from '../../../common/ui/types'; -import { CaseStatuses } from '../../../common/api'; +import type { EuiIconType } from '@elastic/eui/src/components/icon/icon'; +import type { StatusAllType } from '../../../common/ui/types'; +import type { CaseStatuses } from '../../../common/api'; export type AllCaseStatus = Record; diff --git a/x-pack/plugins/cases/public/components/tags/tags.tsx b/x-pack/plugins/cases/public/components/tags/tags.tsx index dd27a4a91ca12..af9623f666564 100644 --- a/x-pack/plugins/cases/public/components/tags/tags.tsx +++ b/x-pack/plugins/cases/public/components/tags/tags.tsx @@ -6,7 +6,8 @@ */ import React, { memo } from 'react'; -import { EuiBadgeGroup, EuiBadge, EuiBadgeGroupProps } from '@elastic/eui'; +import type { EuiBadgeGroupProps } from '@elastic/eui'; +import { EuiBadgeGroup, EuiBadge } from '@elastic/eui'; import styled from 'styled-components'; interface TagsProps { diff --git a/x-pack/plugins/cases/public/components/timeline_context/index.tsx b/x-pack/plugins/cases/public/components/timeline_context/index.tsx index 7dd8ae8e9851b..9187a4131053e 100644 --- a/x-pack/plugins/cases/public/components/timeline_context/index.tsx +++ b/x-pack/plugins/cases/public/components/timeline_context/index.tsx @@ -6,8 +6,8 @@ */ import React, { useState } from 'react'; -import { EuiMarkdownEditorUiPlugin, EuiMarkdownAstNodePosition } from '@elastic/eui'; -import { Plugin } from 'unified'; +import type { EuiMarkdownEditorUiPlugin, EuiMarkdownAstNodePosition } from '@elastic/eui'; +import type { Plugin } from 'unified'; /** * @description - manage the plugins, hooks, and ui components needed to enable timeline functionality within the cases plugin * @TODO - To better encapsulate the timeline logic needed by cases, we are managing it in this top level context. diff --git a/x-pack/plugins/cases/public/components/types.ts b/x-pack/plugins/cases/public/components/types.ts index d9ba8890aab31..7135672a8a53c 100644 --- a/x-pack/plugins/cases/public/components/types.ts +++ b/x-pack/plugins/cases/public/components/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; export type { CaseActionConnector } from '../../common/ui/types'; diff --git a/x-pack/plugins/cases/public/components/use_breadcrumbs/index.test.tsx b/x-pack/plugins/cases/public/components/use_breadcrumbs/index.test.tsx index 04e848e92d63a..7a52686e64378 100644 --- a/x-pack/plugins/cases/public/components/use_breadcrumbs/index.test.tsx +++ b/x-pack/plugins/cases/public/components/use_breadcrumbs/index.test.tsx @@ -5,7 +5,8 @@ * 2.0. */ -import React, { ReactNode } from 'react'; +import type { ReactNode } from 'react'; +import React from 'react'; import { renderHook } from '@testing-library/react-hooks'; import { TestProviders } from '../../common/mock'; import { useCasesBreadcrumbs, useCasesTitleBreadcrumbs } from '.'; diff --git a/x-pack/plugins/cases/public/components/use_breadcrumbs/index.ts b/x-pack/plugins/cases/public/components/use_breadcrumbs/index.ts index ce42b36a471e3..68a37f8252f05 100644 --- a/x-pack/plugins/cases/public/components/use_breadcrumbs/index.ts +++ b/x-pack/plugins/cases/public/components/use_breadcrumbs/index.ts @@ -6,10 +6,11 @@ */ import { i18n } from '@kbn/i18n'; -import { ChromeBreadcrumb } from '@kbn/core/public'; +import type { ChromeBreadcrumb } from '@kbn/core/public'; import { useCallback, useEffect } from 'react'; import { useKibana, useNavigation } from '../../common/lib/kibana'; -import { CasesDeepLinkId, ICasesDeepLinkId } from '../../common/navigation'; +import type { ICasesDeepLinkId } from '../../common/navigation'; +import { CasesDeepLinkId } from '../../common/navigation'; import { useCasesContext } from '../cases_context/use_cases_context'; const casesBreadcrumbTitle: Record = { diff --git a/x-pack/plugins/cases/public/components/use_create_case_modal/create_case_modal.tsx b/x-pack/plugins/cases/public/components/use_create_case_modal/create_case_modal.tsx index f7450b2dd31ef..0418746eff912 100644 --- a/x-pack/plugins/cases/public/components/use_create_case_modal/create_case_modal.tsx +++ b/x-pack/plugins/cases/public/components/use_create_case_modal/create_case_modal.tsx @@ -8,7 +8,7 @@ import React, { memo } from 'react'; import { EuiModal, EuiModalBody, EuiModalHeader, EuiModalHeaderTitle } from '@elastic/eui'; -import { Case } from '../../containers/types'; +import type { Case } from '../../containers/types'; import * as i18n from '../../common/translations'; import { CreateCase } from '../create'; diff --git a/x-pack/plugins/cases/public/components/use_create_case_modal/index.test.tsx b/x-pack/plugins/cases/public/components/use_create_case_modal/index.test.tsx index 8225b62d7f4a7..b0985bbc097ce 100644 --- a/x-pack/plugins/cases/public/components/use_create_case_modal/index.test.tsx +++ b/x-pack/plugins/cases/public/components/use_create_case_modal/index.test.tsx @@ -10,7 +10,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { render, act as reactAct } from '@testing-library/react'; import { useKibana } from '../../common/lib/kibana'; -import { useCreateCaseModal, UseCreateCaseModalProps, UseCreateCaseModalReturnedValues } from '.'; +import type { UseCreateCaseModalProps, UseCreateCaseModalReturnedValues } from '.'; +import { useCreateCaseModal } from '.'; import { TestProviders } from '../../common/mock'; jest.mock('../../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/components/use_create_case_modal/index.tsx b/x-pack/plugins/cases/public/components/use_create_case_modal/index.tsx index 1654bfe86a620..f640fd2b3df7c 100644 --- a/x-pack/plugins/cases/public/components/use_create_case_modal/index.tsx +++ b/x-pack/plugins/cases/public/components/use_create_case_modal/index.tsx @@ -6,7 +6,7 @@ */ import React, { useState, useCallback, useMemo } from 'react'; -import { Case } from '../../../common/ui/types'; +import type { Case } from '../../../common/ui/types'; import { CreateCaseModal } from './create_case_modal'; export interface UseCreateCaseModalProps { diff --git a/x-pack/plugins/cases/public/components/use_push_to_service/callout/callout.test.tsx b/x-pack/plugins/cases/public/components/use_push_to_service/callout/callout.test.tsx index b77abd0fd189c..5b49febdf4642 100644 --- a/x-pack/plugins/cases/public/components/use_push_to_service/callout/callout.test.tsx +++ b/x-pack/plugins/cases/public/components/use_push_to_service/callout/callout.test.tsx @@ -8,7 +8,8 @@ import React from 'react'; import { mount } from 'enzyme'; -import { CallOut, CallOutProps } from './callout'; +import type { CallOutProps } from './callout'; +import { CallOut } from './callout'; import { CLOSED_CASE_PUSH_ERROR_ID } from './types'; import { TestProviders } from '../../../common/mock'; diff --git a/x-pack/plugins/cases/public/components/use_push_to_service/callout/callout.tsx b/x-pack/plugins/cases/public/components/use_push_to_service/callout/callout.tsx index a6acf692be10e..ffd19f8366252 100644 --- a/x-pack/plugins/cases/public/components/use_push_to_service/callout/callout.tsx +++ b/x-pack/plugins/cases/public/components/use_push_to_service/callout/callout.tsx @@ -9,7 +9,8 @@ import { EuiCallOut, EuiButton, EuiDescriptionList } from '@elastic/eui'; import { isEmpty } from 'lodash/fp'; import React, { memo, useCallback, useMemo } from 'react'; -import { CLOSED_CASE_PUSH_ERROR_ID, ErrorMessage } from './types'; +import type { ErrorMessage } from './types'; +import { CLOSED_CASE_PUSH_ERROR_ID } from './types'; import * as i18n from './translations'; export interface CallOutProps { diff --git a/x-pack/plugins/cases/public/components/use_push_to_service/callout/index.test.tsx b/x-pack/plugins/cases/public/components/use_push_to_service/callout/index.test.tsx index fb37a1b99b380..e6fdc2eb1bac7 100644 --- a/x-pack/plugins/cases/public/components/use_push_to_service/callout/index.test.tsx +++ b/x-pack/plugins/cases/public/components/use_push_to_service/callout/index.test.tsx @@ -10,7 +10,8 @@ import { mount } from 'enzyme'; import { TestProviders } from '../../../common/mock'; import { createCalloutId } from './helpers'; -import { CaseCallOut, CaseCallOutProps } from '.'; +import type { CaseCallOutProps } from '.'; +import { CaseCallOut } from '.'; describe('CaseCallOut ', () => { beforeEach(() => { diff --git a/x-pack/plugins/cases/public/components/use_push_to_service/callout/index.tsx b/x-pack/plugins/cases/public/components/use_push_to_service/callout/index.tsx index fb9145d2a941a..08192a1efc68f 100644 --- a/x-pack/plugins/cases/public/components/use_push_to_service/callout/index.tsx +++ b/x-pack/plugins/cases/public/components/use_push_to_service/callout/index.tsx @@ -9,7 +9,7 @@ import { EuiSpacer } from '@elastic/eui'; import React, { memo, useCallback, useMemo } from 'react'; import { CallOut } from './callout'; -import { ErrorMessage } from './types'; +import type { ErrorMessage } from './types'; import { createCalloutId } from './helpers'; import { useConfigureCasesNavigation } from '../../../common/navigation'; diff --git a/x-pack/plugins/cases/public/components/use_push_to_service/helpers.tsx b/x-pack/plugins/cases/public/components/use_push_to_service/helpers.tsx index 625c15dee2e05..0a58678da6d0e 100644 --- a/x-pack/plugins/cases/public/components/use_push_to_service/helpers.tsx +++ b/x-pack/plugins/cases/public/components/use_push_to_service/helpers.tsx @@ -10,8 +10,9 @@ import { FormattedMessage } from '@kbn/i18n-react'; import React from 'react'; import * as i18n from './translations'; -import { ActionLicense } from '../../containers/types'; -import { CLOSED_CASE_PUSH_ERROR_ID, ErrorMessage } from './callout/types'; +import type { ActionLicense } from '../../containers/types'; +import type { ErrorMessage } from './callout/types'; +import { CLOSED_CASE_PUSH_ERROR_ID } from './callout/types'; export const getLicenseError = () => ({ id: 'license-error', diff --git a/x-pack/plugins/cases/public/components/use_push_to_service/index.test.tsx b/x-pack/plugins/cases/public/components/use_push_to_service/index.test.tsx index f56a55fdeb7b1..2cd381e7035b2 100644 --- a/x-pack/plugins/cases/public/components/use_push_to_service/index.test.tsx +++ b/x-pack/plugins/cases/public/components/use_push_to_service/index.test.tsx @@ -10,7 +10,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { render, screen } from '@testing-library/react'; import '../../common/mock/match_media'; -import { usePushToService, ReturnUsePushToService, UsePushToService } from '.'; +import type { ReturnUsePushToService, UsePushToService } from '.'; +import { usePushToService } from '.'; import { noPushCasesPermissions, readCasesPermissions, TestProviders } from '../../common/mock'; import { CaseStatuses, ConnectorTypes } from '../../../common/api'; import { usePostPushToService } from '../../containers/use_post_push_to_service'; diff --git a/x-pack/plugins/cases/public/components/use_push_to_service/index.tsx b/x-pack/plugins/cases/public/components/use_push_to_service/index.tsx index a9e8f7c176b74..0980ae199038f 100644 --- a/x-pack/plugins/cases/public/components/use_push_to_service/index.tsx +++ b/x-pack/plugins/cases/public/components/use_push_to_service/index.tsx @@ -18,9 +18,10 @@ import { getCaseClosedInfo, } from './helpers'; import * as i18n from './translations'; -import { CaseConnector, ActionConnector, CaseStatuses } from '../../../common/api'; -import { CaseServices } from '../../containers/use_get_case_user_actions'; -import { ErrorMessage } from './callout/types'; +import type { CaseConnector, ActionConnector } from '../../../common/api'; +import { CaseStatuses } from '../../../common/api'; +import type { CaseServices } from '../../containers/use_get_case_user_actions'; +import type { ErrorMessage } from './callout/types'; import { useRefreshCaseViewPage } from '../case_view/use_on_refresh_case_view_page'; import { useGetActionLicense } from '../../containers/use_get_action_license'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/user_actions/assignees.tsx b/x-pack/plugins/cases/public/components/user_actions/assignees.tsx index af3b4795744c3..a17aa030e4c6d 100644 --- a/x-pack/plugins/cases/public/components/user_actions/assignees.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/assignees.tsx @@ -6,12 +6,13 @@ */ import { EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui'; -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import React, { memo } from 'react'; -import { SnakeToCamelCase } from '../../../common/types'; -import { Actions, AssigneesUserAction, User } from '../../../common/api'; +import type { SnakeToCamelCase } from '../../../common/types'; +import type { AssigneesUserAction, User } from '../../../common/api'; +import { Actions } from '../../../common/api'; import { getName } from '../user_profiles/display_name'; -import { Assignee } from '../user_profiles/types'; +import type { Assignee } from '../user_profiles/types'; import { UserToolTip } from '../user_profiles/user_tooltip'; import { createCommonUpdateUserActionBuilder } from './common'; import type { UserActionBuilder, UserActionResponse } from './types'; diff --git a/x-pack/plugins/cases/public/components/user_actions/builder.tsx b/x-pack/plugins/cases/public/components/user_actions/builder.tsx index 903c1c190d8dd..96e2ba248c729 100644 --- a/x-pack/plugins/cases/public/components/user_actions/builder.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/builder.tsx @@ -15,7 +15,7 @@ import { createSeverityUserActionBuilder } from './severity'; import { createStatusUserActionBuilder } from './status'; import { createTagsUserActionBuilder } from './tags'; import { createTitleUserActionBuilder } from './title'; -import { UserActionBuilderMap } from './types'; +import type { UserActionBuilderMap } from './types'; export const builderMap: UserActionBuilderMap = { connector: createConnectorUserActionBuilder, diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/actions.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/actions.tsx index e23514557b631..b82e10b8065a4 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/actions.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/actions.tsx @@ -10,10 +10,10 @@ import classNames from 'classnames'; import { ThemeContext } from 'styled-components'; import { EuiToken } from '@elastic/eui'; -import { CommentResponseActionsType } from '../../../../common/api'; -import { UserActionBuilder, UserActionBuilderArgs } from '../types'; +import type { CommentResponseActionsType } from '../../../../common/api'; +import type { UserActionBuilder, UserActionBuilderArgs } from '../types'; import { UserActionTimestamp } from '../timestamp'; -import { SnakeToCamelCase } from '../../../../common/types'; +import type { SnakeToCamelCase } from '../../../../common/types'; import { UserActionCopyLink } from '../copy_link'; import { MarkdownRenderer } from '../../markdown_editor'; import { ContentWrapper } from '../markdown_form'; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/alert.test.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/alert.test.tsx index 03515b6a2b244..0edb463860f06 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/alert.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/alert.test.tsx @@ -6,10 +6,10 @@ */ import { omit, merge } from 'lodash'; -import { CommentResponseAlertsType } from '../../../../common/api'; -import { SnakeToCamelCase } from '../../../../common/types'; +import type { CommentResponseAlertsType } from '../../../../common/api'; +import type { SnakeToCamelCase } from '../../../../common/types'; import { getRuleId, getRuleInfo, getRuleName } from './alert'; -import { Ecs } from '../../../containers/types'; +import type { Ecs } from '../../../containers/types'; describe('rule getters', () => { describe.each([ diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/alert.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/alert.tsx index d8218f86bb8ee..20afa12a377bf 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/alert.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/alert.tsx @@ -7,13 +7,14 @@ import React from 'react'; import { get, isEmpty } from 'lodash'; -import { EuiCommentProps, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import type { EuiCommentProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { ALERT_RULE_NAME, ALERT_RULE_UUID } from '@kbn/rule-data-utils'; -import { CommentResponseAlertsType } from '../../../../common/api'; -import { UserActionBuilder, UserActionBuilderArgs } from '../types'; +import type { CommentResponseAlertsType } from '../../../../common/api'; +import type { UserActionBuilder, UserActionBuilderArgs } from '../types'; import { UserActionTimestamp } from '../timestamp'; -import { SnakeToCamelCase } from '../../../../common/types'; +import type { SnakeToCamelCase } from '../../../../common/types'; import { MultipleAlertsCommentEvent, SingleAlertCommentEvent } from './alert_event'; import { UserActionCopyLink } from '../copy_link'; import { UserActionShowAlert } from './show_alert'; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/alert_event.test.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/alert_event.test.tsx index 6bd9748349420..60d5759de6e21 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/alert_event.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/alert_event.test.tsx @@ -8,7 +8,8 @@ import React from 'react'; import { mount } from 'enzyme'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer, TestProviders } from '../../../common/mock'; import { useKibana } from '../../../common/lib/kibana'; import { MultipleAlertsCommentEvent, SingleAlertCommentEvent } from './alert_event'; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/alert_event.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/alert_event.tsx index 81f45bbb267e9..94f9d290e3757 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/alert_event.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/alert_event.tsx @@ -11,7 +11,7 @@ import { EuiLoadingSpinner } from '@elastic/eui'; import * as i18n from '../translations'; import { LinkAnchor } from '../../links'; -import { RuleDetailsNavigation } from '../types'; +import type { RuleDetailsNavigation } from '../types'; interface SingleAlertProps { actionId: string; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/comment.test.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/comment.test.tsx index 2614da12c2472..46562a028e536 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/comment.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/comment.test.tsx @@ -26,7 +26,8 @@ import { hostIsolationComment, persistableStateAttachment, } from '../../../containers/mock'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from '../../../common/mock'; +import type { AppMockRenderer } from '../../../common/mock'; +import { createAppMockRenderer, TestProviders } from '../../../common/mock'; import { createCommentUserActionBuilder } from './comment'; import { getMockBuilderArgs } from '../mock'; import { useCaseViewParams } from '../../../common/navigation'; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/comment.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/comment.tsx index d4fec4afc7bbe..4e2ecb85e22ba 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/comment.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/comment.tsx @@ -5,12 +5,13 @@ * 2.0. */ -import { EuiCommentProps } from '@elastic/eui'; +import type { EuiCommentProps } from '@elastic/eui'; -import { CommentUserAction, Actions, CommentType } from '../../../../common/api'; -import { UserActionBuilder, UserActionBuilderArgs, UserActionResponse } from '../types'; +import type { CommentUserAction } from '../../../../common/api'; +import { Actions, CommentType } from '../../../../common/api'; +import type { UserActionBuilder, UserActionBuilderArgs, UserActionResponse } from '../types'; import { createCommonUpdateUserActionBuilder } from '../common'; -import { Comment } from '../../../containers/types'; +import type { Comment } from '../../../containers/types'; import * as i18n from '../translations'; import { createUserAttachmentUserActionBuilder } from './user'; import { createAlertAttachmentUserActionBuilder } from './alert'; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/external_reference.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/external_reference.tsx index 2a625eb02d6ad..8e4f627fd73f4 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/external_reference.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/external_reference.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { CommentResponseExternalReferenceType } from '../../../../common/api'; -import { UserActionBuilder, UserActionBuilderArgs } from '../types'; -import { SnakeToCamelCase } from '../../../../common/types'; +import type { CommentResponseExternalReferenceType } from '../../../../common/api'; +import type { UserActionBuilder, UserActionBuilderArgs } from '../types'; +import type { SnakeToCamelCase } from '../../../../common/types'; import { createRegisteredAttachmentUserActionBuilder } from './registered_attachments'; type BuilderArgs = Pick< diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/host_isolation_event.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/host_isolation_event.tsx index e08c2f85e8c31..a638c1a69b30e 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/host_isolation_event.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/host_isolation_event.tsx @@ -8,7 +8,7 @@ import React, { memo, useCallback } from 'react'; import * as i18n from '../translations'; import { LinkAnchor } from '../../links'; -import { ActionsNavigation } from '../types'; +import type { ActionsNavigation } from '../types'; interface EndpointInfo { endpointId: string; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/persistable_state.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/persistable_state.tsx index 769bd4b489534..040fbe794580d 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/persistable_state.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/persistable_state.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { CommentResponseTypePersistableState } from '../../../../common/api'; -import { UserActionBuilder, UserActionBuilderArgs } from '../types'; -import { SnakeToCamelCase } from '../../../../common/types'; +import type { CommentResponseTypePersistableState } from '../../../../common/api'; +import type { UserActionBuilder, UserActionBuilderArgs } from '../types'; +import type { SnakeToCamelCase } from '../../../../common/types'; import { createRegisteredAttachmentUserActionBuilder } from './registered_attachments'; type BuilderArgs = Pick< diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/registered_attachments.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/registered_attachments.tsx index dd8a873c5dd2d..fc2c24f225898 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/registered_attachments.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/registered_attachments.tsx @@ -15,12 +15,12 @@ import React, { Suspense } from 'react'; import { memoize } from 'lodash'; import { EuiCallOut, EuiCode, EuiLoadingSpinner } from '@elastic/eui'; -import { AttachmentType } from '../../../client/attachment_framework/types'; -import { AttachmentTypeRegistry } from '../../../../common/registry'; -import { CommentResponse } from '../../../../common/api'; -import { UserActionBuilder, UserActionBuilderArgs } from '../types'; +import type { AttachmentType } from '../../../client/attachment_framework/types'; +import type { AttachmentTypeRegistry } from '../../../../common/registry'; +import type { CommentResponse } from '../../../../common/api'; +import type { UserActionBuilder, UserActionBuilderArgs } from '../types'; import { UserActionTimestamp } from '../timestamp'; -import { SnakeToCamelCase } from '../../../../common/types'; +import type { SnakeToCamelCase } from '../../../../common/types'; import { ATTACHMENT_NOT_REGISTERED_ERROR, DEFAULT_EVENT_ATTACHMENT_TITLE } from './translations'; import { UserActionContentToolbar } from '../content_toolbar'; import * as i18n from '../translations'; diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/show_alert.test.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/show_alert.test.tsx index cc570b245ec90..2e26b0f03ea82 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/show_alert.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/show_alert.test.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { UserActionShowAlert } from './show_alert'; const props = { diff --git a/x-pack/plugins/cases/public/components/user_actions/comment/user.tsx b/x-pack/plugins/cases/public/components/user_actions/comment/user.tsx index d3ba82c3594c3..91df42cee7e4e 100644 --- a/x-pack/plugins/cases/public/components/user_actions/comment/user.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/comment/user.tsx @@ -8,13 +8,13 @@ import React from 'react'; import classNames from 'classnames'; -import { CommentResponseUserType } from '../../../../common/api'; +import type { CommentResponseUserType } from '../../../../common/api'; import { UserActionTimestamp } from '../timestamp'; -import { SnakeToCamelCase } from '../../../../common/types'; +import type { SnakeToCamelCase } from '../../../../common/types'; import { UserActionMarkdown } from '../markdown_form'; import { UserActionContentToolbar } from '../content_toolbar'; import * as i18n from '../translations'; -import { UserActionBuilderArgs, UserActionBuilder } from '../types'; +import type { UserActionBuilderArgs, UserActionBuilder } from '../types'; import { HoverableUsernameResolver } from '../../user_profiles/hoverable_username_resolver'; import { HoverableAvatarResolver } from '../../user_profiles/hoverable_avatar_resolver'; diff --git a/x-pack/plugins/cases/public/components/user_actions/common.tsx b/x-pack/plugins/cases/public/components/user_actions/common.tsx index a2b883b6869ca..c5d86a9ba5ad0 100644 --- a/x-pack/plugins/cases/public/components/user_actions/common.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/common.tsx @@ -6,11 +6,13 @@ */ import React from 'react'; -import { EuiCommentProps, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import type { EuiCommentProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import { Actions, ConnectorUserAction, UserAction } from '../../../common/api'; +import type { ConnectorUserAction, UserAction } from '../../../common/api'; +import { Actions } from '../../../common/api'; import { UserActionTimestamp } from './timestamp'; -import { UserActionBuilder, UserActionBuilderArgs, UserActionResponse } from './types'; +import type { UserActionBuilder, UserActionBuilderArgs, UserActionResponse } from './types'; import { UserActionCopyLink } from './copy_link'; import { UserActionMoveToReference } from './move_to_reference'; import { HoverableUserWithAvatarResolver } from '../user_profiles/hoverable_user_with_avatar_resolver'; diff --git a/x-pack/plugins/cases/public/components/user_actions/connector.tsx b/x-pack/plugins/cases/public/components/user_actions/connector.tsx index 8a9aaa4c3c83a..391ad4a369f44 100644 --- a/x-pack/plugins/cases/public/components/user_actions/connector.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/connector.tsx @@ -5,8 +5,9 @@ * 2.0. */ -import { ConnectorUserAction, NONE_CONNECTOR_ID } from '../../../common/api'; -import { UserActionBuilder, UserActionResponse } from './types'; +import type { ConnectorUserAction } from '../../../common/api'; +import { NONE_CONNECTOR_ID } from '../../../common/api'; +import type { UserActionBuilder, UserActionResponse } from './types'; import { createCommonUpdateUserActionBuilder } from './common'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/user_actions/constants.ts b/x-pack/plugins/cases/public/components/user_actions/constants.ts index 11e16affad7d8..034d01d9d5b4b 100644 --- a/x-pack/plugins/cases/public/components/user_actions/constants.ts +++ b/x-pack/plugins/cases/public/components/user_actions/constants.ts @@ -7,7 +7,7 @@ import { omit } from 'lodash'; import { ActionTypes } from '../../../common/api'; -import { SupportedUserActionTypes } from './types'; +import type { SupportedUserActionTypes } from './types'; export const DRAFT_COMMENT_STORAGE_ID = 'xpack.cases.commentDraft'; diff --git a/x-pack/plugins/cases/public/components/user_actions/content_toolbar.test.tsx b/x-pack/plugins/cases/public/components/user_actions/content_toolbar.test.tsx index bba8303149ae9..bc8d79b25e4e6 100644 --- a/x-pack/plugins/cases/public/components/user_actions/content_toolbar.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/content_toolbar.test.tsx @@ -6,8 +6,10 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; -import { UserActionContentToolbar, UserActionContentToolbarProps } from './content_toolbar'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; +import type { UserActionContentToolbarProps } from './content_toolbar'; +import { UserActionContentToolbar } from './content_toolbar'; import { TestProviders } from '../../common/mock'; jest.mock('../../common/navigation/hooks'); diff --git a/x-pack/plugins/cases/public/components/user_actions/content_toolbar.tsx b/x-pack/plugins/cases/public/components/user_actions/content_toolbar.tsx index b824f6f20276f..a37f2f894608b 100644 --- a/x-pack/plugins/cases/public/components/user_actions/content_toolbar.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/content_toolbar.tsx @@ -6,10 +6,12 @@ */ import React, { memo } from 'react'; -import { EuiCommentProps, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; +import type { EuiCommentProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { UserActionCopyLink } from './copy_link'; -import { Actions, UserActionPropertyActions } from './property_actions'; +import type { Actions } from './property_actions'; +import { UserActionPropertyActions } from './property_actions'; export interface UserActionContentToolbarProps { commentMarkdown?: string; diff --git a/x-pack/plugins/cases/public/components/user_actions/copy_link.test.tsx b/x-pack/plugins/cases/public/components/user_actions/copy_link.test.tsx index d4b093eed12f7..110b2aa9f23b7 100644 --- a/x-pack/plugins/cases/public/components/user_actions/copy_link.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/copy_link.test.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import copy from 'copy-to-clipboard'; import { useKibana } from '../../common/lib/kibana'; diff --git a/x-pack/plugins/cases/public/components/user_actions/description.tsx b/x-pack/plugins/cases/public/components/user_actions/description.tsx index ea640e9e693b5..d37992577aeb8 100644 --- a/x-pack/plugins/cases/public/components/user_actions/description.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/description.tsx @@ -7,7 +7,7 @@ import React from 'react'; import classNames from 'classnames'; -import { EuiCommentProps } from '@elastic/eui'; +import type { EuiCommentProps } from '@elastic/eui'; import type { UserActionBuilder, UserActionBuilderArgs, UserActionTreeProps } from './types'; import { createCommonUpdateUserActionBuilder } from './common'; diff --git a/x-pack/plugins/cases/public/components/user_actions/helpers.test.ts b/x-pack/plugins/cases/public/components/user_actions/helpers.test.ts index eb2b7297a9e2e..9b07c99f94278 100644 --- a/x-pack/plugins/cases/public/components/user_actions/helpers.test.ts +++ b/x-pack/plugins/cases/public/components/user_actions/helpers.test.ts @@ -7,7 +7,7 @@ import { CommentType } from '../../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../../common/constants'; -import { Comment } from '../../containers/types'; +import type { Comment } from '../../containers/types'; import { isUserActionTypeSupported, getManualAlertIdsWithNoRuleId } from './helpers'; const comments: Comment[] = [ diff --git a/x-pack/plugins/cases/public/components/user_actions/helpers.ts b/x-pack/plugins/cases/public/components/user_actions/helpers.ts index 140165f3d5963..fe9e5b2bb5cff 100644 --- a/x-pack/plugins/cases/public/components/user_actions/helpers.ts +++ b/x-pack/plugins/cases/public/components/user_actions/helpers.ts @@ -10,7 +10,7 @@ import { isEmpty } from 'lodash'; import { CommentType } from '../../../common/api'; import type { Comment } from '../../containers/types'; import { SUPPORTED_ACTION_TYPES } from './constants'; -import { SupportedUserActionTypes } from './types'; +import type { SupportedUserActionTypes } from './types'; export const isUserActionTypeSupported = (type: string): type is SupportedUserActionTypes => SUPPORTED_ACTION_TYPES.includes(type as SupportedUserActionTypes); diff --git a/x-pack/plugins/cases/public/components/user_actions/index.test.tsx b/x-pack/plugins/cases/public/components/user_actions/index.test.tsx index aeeff9c99921f..3566de547d354 100644 --- a/x-pack/plugins/cases/public/components/user_actions/index.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/index.test.tsx @@ -21,7 +21,8 @@ import { hostReleaseComment, } from '../../containers/mock'; import { UserActions } from '.'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, TestProviders } from '../../common/mock'; import { Actions } from '../../../common/api'; import { userProfiles, userProfilesMap } from '../../containers/user_profiles/api.mock'; diff --git a/x-pack/plugins/cases/public/components/user_actions/index.tsx b/x-pack/plugins/cases/public/components/user_actions/index.tsx index 6d96d9613a754..fe28487cd41d4 100644 --- a/x-pack/plugins/cases/public/components/user_actions/index.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/index.tsx @@ -5,13 +5,8 @@ * 2.0. */ -import { - EuiFlexGroup, - EuiFlexItem, - EuiLoadingSpinner, - EuiCommentList, - EuiCommentProps, -} from '@elastic/eui'; +import type { EuiCommentProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, EuiCommentList } from '@elastic/eui'; import React, { useMemo, useState, useEffect } from 'react'; import styled from 'styled-components'; diff --git a/x-pack/plugins/cases/public/components/user_actions/markdown_form.test.tsx b/x-pack/plugins/cases/public/components/user_actions/markdown_form.test.tsx index ae242fc64aafa..3925065054c2f 100644 --- a/x-pack/plugins/cases/public/components/user_actions/markdown_form.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/markdown_form.test.tsx @@ -8,7 +8,8 @@ import React from 'react'; import { mount } from 'enzyme'; import { UserActionMarkdown } from './markdown_form'; -import { AppMockRenderer, createAppMockRenderer, TestProviders } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, TestProviders } from '../../common/mock'; import { waitFor } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; const onChangeEditable = jest.fn(); diff --git a/x-pack/plugins/cases/public/components/user_actions/markdown_form.tsx b/x-pack/plugins/cases/public/components/user_actions/markdown_form.tsx index f63ce9b3fce88..784e163fa963d 100644 --- a/x-pack/plugins/cases/public/components/user_actions/markdown_form.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/markdown_form.tsx @@ -11,7 +11,8 @@ import styled from 'styled-components'; import * as i18n from '../case_view/translations'; import { Form, useForm, UseField } from '../../common/shared_imports'; -import { schema, Content } from './schema'; +import type { Content } from './schema'; +import { schema } from './schema'; import { MarkdownRenderer, MarkdownEditorForm } from '../markdown_editor'; export const ContentWrapper = styled.div` diff --git a/x-pack/plugins/cases/public/components/user_actions/mock.ts b/x-pack/plugins/cases/public/components/user_actions/mock.ts index b963947a6282d..33eae2b43fbae 100644 --- a/x-pack/plugins/cases/public/components/user_actions/mock.ts +++ b/x-pack/plugins/cases/public/components/user_actions/mock.ts @@ -11,7 +11,7 @@ import { ExternalReferenceAttachmentTypeRegistry } from '../../client/attachment import { PersistableStateAttachmentTypeRegistry } from '../../client/attachment_framework/persistable_state_registry'; import { basicCase, basicPush, getUserAction } from '../../containers/mock'; import { userProfiles, userProfilesMap } from '../../containers/user_profiles/api.mock'; -import { UserActionBuilderArgs } from './types'; +import type { UserActionBuilderArgs } from './types'; export const getMockBuilderArgs = (): UserActionBuilderArgs => { const userAction = getUserAction('title', Actions.update); diff --git a/x-pack/plugins/cases/public/components/user_actions/move_to_reference.test.tsx b/x-pack/plugins/cases/public/components/user_actions/move_to_reference.test.tsx index cd207c635e9d4..5ebfa36fdaebb 100644 --- a/x-pack/plugins/cases/public/components/user_actions/move_to_reference.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/move_to_reference.test.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { UserActionMoveToReference } from './move_to_reference'; const outlineComment = jest.fn(); diff --git a/x-pack/plugins/cases/public/components/user_actions/property_actions.test.tsx b/x-pack/plugins/cases/public/components/user_actions/property_actions.test.tsx index 01a4605f1651f..75d2b3027f37b 100644 --- a/x-pack/plugins/cases/public/components/user_actions/property_actions.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/property_actions.test.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { UserActionPropertyActions, UserActionPropertyActionsProps } from './property_actions'; +import type { UserActionPropertyActionsProps } from './property_actions'; +import { UserActionPropertyActions } from './property_actions'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { waitForEuiPopoverOpen } from '@elastic/eui/lib/test/rtl'; diff --git a/x-pack/plugins/cases/public/components/user_actions/pushed.tsx b/x-pack/plugins/cases/public/components/user_actions/pushed.tsx index 2a50cc0e0eb57..fd16b13b3f62d 100644 --- a/x-pack/plugins/cases/public/components/user_actions/pushed.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/pushed.tsx @@ -6,14 +6,16 @@ */ import React from 'react'; -import { EuiCommentProps, EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; +import type { EuiCommentProps } from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui'; -import { Actions, NONE_CONNECTOR_ID, PushedUserAction } from '../../../common/api'; -import { UserActionBuilder, UserActionResponse } from './types'; +import type { PushedUserAction } from '../../../common/api'; +import { Actions, NONE_CONNECTOR_ID } from '../../../common/api'; +import type { UserActionBuilder, UserActionResponse } from './types'; import { createCommonUpdateUserActionBuilder } from './common'; import * as i18n from './translations'; -import { CaseServices } from '../../containers/use_get_case_user_actions'; -import { CaseExternalService } from '../../containers/types'; +import type { CaseServices } from '../../containers/use_get_case_user_actions'; +import type { CaseExternalService } from '../../containers/types'; const getPushInfo = ( caseServices: CaseServices, diff --git a/x-pack/plugins/cases/public/components/user_actions/schema.ts b/x-pack/plugins/cases/public/components/user_actions/schema.ts index 8c455818bf910..ecc1f981829b0 100644 --- a/x-pack/plugins/cases/public/components/user_actions/schema.ts +++ b/x-pack/plugins/cases/public/components/user_actions/schema.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { FIELD_TYPES, fieldValidators, FormSchema } from '../../common/shared_imports'; +import type { FormSchema } from '../../common/shared_imports'; +import { FIELD_TYPES, fieldValidators } from '../../common/shared_imports'; import * as i18n from '../../common/translations'; const { emptyField } = fieldValidators; diff --git a/x-pack/plugins/cases/public/components/user_actions/settings.test.tsx b/x-pack/plugins/cases/public/components/user_actions/settings.test.tsx index 12960e8293edc..79f06edcb91b9 100644 --- a/x-pack/plugins/cases/public/components/user_actions/settings.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/settings.test.tsx @@ -8,7 +8,8 @@ import { EuiCommentList } from '@elastic/eui'; import React from 'react'; import { Actions } from '../../../common/api'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { getUserAction } from '../../containers/mock'; import { getMockBuilderArgs } from './mock'; import { createSettingsUserActionBuilder } from './settings'; diff --git a/x-pack/plugins/cases/public/components/user_actions/settings.tsx b/x-pack/plugins/cases/public/components/user_actions/settings.tsx index be64b223e369b..5d81078bf4c76 100644 --- a/x-pack/plugins/cases/public/components/user_actions/settings.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/settings.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { ReactNode } from 'react'; -import { SettingsUserAction } from '../../../common/api'; -import { UserActionBuilder, UserActionResponse } from './types'; +import type { ReactNode } from 'react'; +import type { SettingsUserAction } from '../../../common/api'; +import type { UserActionBuilder, UserActionResponse } from './types'; import { createCommonUpdateUserActionBuilder } from './common'; import { DISABLED_SETTING, ENABLED_SETTING, SYNC_ALERTS_LC } from './translations'; diff --git a/x-pack/plugins/cases/public/components/user_actions/severity.test.tsx b/x-pack/plugins/cases/public/components/user_actions/severity.test.tsx index d92a5cb5a153d..0107b86660826 100644 --- a/x-pack/plugins/cases/public/components/user_actions/severity.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/severity.test.tsx @@ -8,7 +8,8 @@ import { EuiCommentList } from '@elastic/eui'; import { Actions, CaseSeverity } from '../../../common/api'; import React from 'react'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { getUserAction } from '../../containers/mock'; import { getMockBuilderArgs } from './mock'; import { createSeverityUserActionBuilder } from './severity'; diff --git a/x-pack/plugins/cases/public/components/user_actions/severity.tsx b/x-pack/plugins/cases/public/components/user_actions/severity.tsx index e2aa8d8a59b43..3878e046adb61 100644 --- a/x-pack/plugins/cases/public/components/user_actions/severity.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/severity.tsx @@ -7,10 +7,10 @@ import { EuiFlexGroup, EuiFlexItem, EuiHealth } from '@elastic/eui'; import React from 'react'; -import { SeverityUserAction } from '../../../common/api/cases/user_actions/severity'; +import type { SeverityUserAction } from '../../../common/api/cases/user_actions/severity'; import { SET_SEVERITY_TO } from '../create/translations'; import { createCommonUpdateUserActionBuilder } from './common'; -import { UserActionBuilder, UserActionResponse } from './types'; +import type { UserActionBuilder, UserActionResponse } from './types'; import { severities } from '../severity/config'; const getLabelTitle = (userAction: UserActionResponse) => { diff --git a/x-pack/plugins/cases/public/components/user_actions/status.tsx b/x-pack/plugins/cases/public/components/user_actions/status.tsx index d734b68fbb42c..a1c8e2210b322 100644 --- a/x-pack/plugins/cases/public/components/user_actions/status.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/status.tsx @@ -8,8 +8,8 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { Status } from '@kbn/cases-components'; -import { CaseStatuses, StatusUserAction } from '../../../common/api'; -import { UserActionBuilder, UserActionResponse } from './types'; +import type { CaseStatuses, StatusUserAction } from '../../../common/api'; +import type { UserActionBuilder, UserActionResponse } from './types'; import { createCommonUpdateUserActionBuilder } from './common'; import { statuses } from '../status'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/user_actions/tags.tsx b/x-pack/plugins/cases/public/components/user_actions/tags.tsx index 0cff9123ec7f7..bbcad0e8486f5 100644 --- a/x-pack/plugins/cases/public/components/user_actions/tags.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/tags.tsx @@ -8,8 +8,9 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; -import { Actions, TagsUserAction } from '../../../common/api'; -import { UserActionBuilder, UserActionResponse } from './types'; +import type { TagsUserAction } from '../../../common/api'; +import { Actions } from '../../../common/api'; +import type { UserActionBuilder, UserActionResponse } from './types'; import { createCommonUpdateUserActionBuilder } from './common'; import { Tags } from '../tags/tags'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/user_actions/timestamp.test.tsx b/x-pack/plugins/cases/public/components/user_actions/timestamp.test.tsx index d380f246566e9..979366922e616 100644 --- a/x-pack/plugins/cases/public/components/user_actions/timestamp.test.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/timestamp.test.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { mount, ReactWrapper } from 'enzyme'; +import type { ReactWrapper } from 'enzyme'; +import { mount } from 'enzyme'; import { TestProviders } from '../../common/mock'; import { UserActionTimestamp } from './timestamp'; diff --git a/x-pack/plugins/cases/public/components/user_actions/title.tsx b/x-pack/plugins/cases/public/components/user_actions/title.tsx index bff9c28f8c2c6..c495aa0372f21 100644 --- a/x-pack/plugins/cases/public/components/user_actions/title.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/title.tsx @@ -5,8 +5,8 @@ * 2.0. */ -import { TitleUserAction } from '../../../common/api'; -import { UserActionBuilder, UserActionResponse } from './types'; +import type { TitleUserAction } from '../../../common/api'; +import type { UserActionBuilder, UserActionResponse } from './types'; import { createCommonUpdateUserActionBuilder } from './common'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/user_actions/types.ts b/x-pack/plugins/cases/public/components/user_actions/types.ts index 7477e6df8d5dc..978de436b377e 100644 --- a/x-pack/plugins/cases/public/components/user_actions/types.ts +++ b/x-pack/plugins/cases/public/components/user_actions/types.ts @@ -5,20 +5,20 @@ * 2.0. */ -import { EuiCommentProps } from '@elastic/eui'; -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; -import { SnakeToCamelCase } from '../../../common/types'; -import { ActionTypes, UserActionWithResponse } from '../../../common/api'; -import { Case, CaseUserActions, Comment, UseFetchAlertData } from '../../containers/types'; -import { CaseServices } from '../../containers/use_get_case_user_actions'; -import { AddCommentRefObject } from '../add_comment'; -import { UserActionMarkdownRefObject } from './markdown_form'; -import { CasesNavigation } from '../links'; -import { UNSUPPORTED_ACTION_TYPES } from './constants'; +import type { EuiCommentProps } from '@elastic/eui'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { SnakeToCamelCase } from '../../../common/types'; +import type { ActionTypes, UserActionWithResponse } from '../../../common/api'; +import type { Case, CaseUserActions, Comment, UseFetchAlertData } from '../../containers/types'; +import type { CaseServices } from '../../containers/use_get_case_user_actions'; +import type { AddCommentRefObject } from '../add_comment'; +import type { UserActionMarkdownRefObject } from './markdown_form'; +import type { CasesNavigation } from '../links'; +import type { UNSUPPORTED_ACTION_TYPES } from './constants'; import type { OnUpdateFields } from '../case_view/types'; -import { ExternalReferenceAttachmentTypeRegistry } from '../../client/attachment_framework/external_reference_registry'; -import { PersistableStateAttachmentTypeRegistry } from '../../client/attachment_framework/persistable_state_registry'; -import { CurrentUserProfile } from '../types'; +import type { ExternalReferenceAttachmentTypeRegistry } from '../../client/attachment_framework/external_reference_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../../client/attachment_framework/persistable_state_registry'; +import type { CurrentUserProfile } from '../types'; export interface UserActionTreeProps { caseServices: CaseServices; diff --git a/x-pack/plugins/cases/public/components/user_actions/use_user_actions_handler.tsx b/x-pack/plugins/cases/public/components/user_actions/use_user_actions_handler.tsx index 5dfc84008e045..2b80426e26e93 100644 --- a/x-pack/plugins/cases/public/components/user_actions/use_user_actions_handler.tsx +++ b/x-pack/plugins/cases/public/components/user_actions/use_user_actions_handler.tsx @@ -7,12 +7,12 @@ import { useCallback, useEffect, useRef, useState } from 'react'; import { useCaseViewParams } from '../../common/navigation'; -import { Case } from '../../containers/types'; +import type { Case } from '../../containers/types'; import { useLensDraftComment } from '../markdown_editor/plugins/lens/use_lens_draft_comment'; import { useUpdateComment } from '../../containers/use_update_comment'; -import { AddCommentRefObject } from '../add_comment'; -import { UserActionMarkdownRefObject } from './markdown_form'; -import { UserActionBuilderArgs } from './types'; +import type { AddCommentRefObject } from '../add_comment'; +import type { UserActionMarkdownRefObject } from './markdown_form'; +import type { UserActionBuilderArgs } from './types'; import { NEW_COMMENT_ID } from './constants'; import { useDeleteComment } from '../../containers/use_delete_comment'; import { useRefreshCaseViewPage } from '../case_view/use_on_refresh_case_view_page'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/data_test_subject.ts b/x-pack/plugins/cases/public/components/user_profiles/data_test_subject.ts index 23d952738aa4d..9247368b1da17 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/data_test_subject.ts +++ b/x-pack/plugins/cases/public/components/user_profiles/data_test_subject.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Assignee } from './types'; +import type { Assignee } from './types'; export const getUsernameDataTestSubj = (assignee: Assignee) => { return assignee.profile?.user.username ?? assignee.uid; diff --git a/x-pack/plugins/cases/public/components/user_profiles/display_name.ts b/x-pack/plugins/cases/public/components/user_profiles/display_name.ts index 4abd9f276abaa..9eb19b45d3404 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/display_name.ts +++ b/x-pack/plugins/cases/public/components/user_profiles/display_name.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { getUserDisplayName, UserProfileUserInfo } from '@kbn/user-profile-components'; +import type { UserProfileUserInfo } from '@kbn/user-profile-components'; +import { getUserDisplayName } from '@kbn/user-profile-components'; import { isEmpty } from 'lodash'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar.tsx b/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar.tsx index 3b0b2ac4e98ae..7d9ba1b95b5a2 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar.tsx @@ -6,7 +6,7 @@ */ import React from 'react'; -import { UserInfoWithAvatar } from './types'; +import type { UserInfoWithAvatar } from './types'; import { CaseUserAvatar } from './user_avatar'; import { UserToolTip } from './user_tooltip'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar_resolver.test.tsx b/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar_resolver.test.tsx index 43e22b26e3c22..3bce497caf716 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar_resolver.test.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar_resolver.test.tsx @@ -7,7 +7,7 @@ import { fireEvent, render, screen, waitFor } from '@testing-library/react'; import React from 'react'; -import { ElasticUser } from '../../containers/types'; +import type { ElasticUser } from '../../containers/types'; import { userProfiles, userProfilesMap } from '../../containers/user_profiles/api.mock'; import { HoverableAvatarResolver } from './hoverable_avatar_resolver'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar_resolver.tsx b/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar_resolver.tsx index 49dada0a2e5bd..37fb44b0c889c 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar_resolver.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/hoverable_avatar_resolver.tsx @@ -5,9 +5,9 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import React from 'react'; -import { ElasticUser } from '../../containers/types'; +import type { ElasticUser } from '../../containers/types'; import { convertToUserInfo } from './user_converter'; import { HoverableAvatar } from './hoverable_avatar'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar.tsx b/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar.tsx index 3753b6cb00e15..d3cf70a7534cf 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar.tsx @@ -9,7 +9,8 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { UserToolTip } from './user_tooltip'; import { SmallUserAvatar } from './small_user_avatar'; -import { Username, UsernameProps } from './username'; +import type { UsernameProps } from './username'; +import { Username } from './username'; export type HoverableUserWithAvatarProps = UsernameProps; diff --git a/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar_resolver.test.tsx b/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar_resolver.test.tsx index 38eecedea0361..a65e2a3d9c866 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar_resolver.test.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar_resolver.test.tsx @@ -7,7 +7,7 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; -import { ElasticUser } from '../../containers/types'; +import type { ElasticUser } from '../../containers/types'; import { userProfiles, userProfilesMap } from '../../containers/user_profiles/api.mock'; import { HoverableUserWithAvatarResolver } from './hoverable_user_with_avatar_resolver'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar_resolver.tsx b/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar_resolver.tsx index b414e10c2f6a4..a0f2fdf8c5ab4 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar_resolver.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/hoverable_user_with_avatar_resolver.tsx @@ -5,13 +5,11 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import React from 'react'; -import { ElasticUser } from '../../containers/types'; -import { - HoverableUserWithAvatar, - HoverableUserWithAvatarProps, -} from './hoverable_user_with_avatar'; +import type { ElasticUser } from '../../containers/types'; +import type { HoverableUserWithAvatarProps } from './hoverable_user_with_avatar'; +import { HoverableUserWithAvatar } from './hoverable_user_with_avatar'; import { convertToUserInfo } from './user_converter'; const HoverableUserWithAvatarResolverComponent: React.FC< diff --git a/x-pack/plugins/cases/public/components/user_profiles/hoverable_username_resolver.test.tsx b/x-pack/plugins/cases/public/components/user_profiles/hoverable_username_resolver.test.tsx index 562a7e0bbf5cb..aebf93d207b65 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/hoverable_username_resolver.test.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/hoverable_username_resolver.test.tsx @@ -7,7 +7,7 @@ import { render, screen } from '@testing-library/react'; import React from 'react'; -import { ElasticUser } from '../../containers/types'; +import type { ElasticUser } from '../../containers/types'; import { userProfiles, userProfilesMap } from '../../containers/user_profiles/api.mock'; import { HoverableUsernameResolver } from './hoverable_username_resolver'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/hoverable_username_resolver.tsx b/x-pack/plugins/cases/public/components/user_profiles/hoverable_username_resolver.tsx index 67d0c48b591c2..bc980bbffbe4a 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/hoverable_username_resolver.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/hoverable_username_resolver.tsx @@ -5,10 +5,10 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import React from 'react'; -import { ElasticUser } from '../../containers/types'; -import { HoverableUserWithAvatarProps } from './hoverable_user_with_avatar'; +import type { ElasticUser } from '../../containers/types'; +import type { HoverableUserWithAvatarProps } from './hoverable_user_with_avatar'; import { Username } from './username'; import { convertToUserInfo } from './user_converter'; import { UserToolTip } from './user_tooltip'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/removable_user.test.tsx b/x-pack/plugins/cases/public/components/user_profiles/removable_user.test.tsx index 1db9df25a80d7..e94a78fdbaab3 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/removable_user.test.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/removable_user.test.tsx @@ -7,13 +7,11 @@ import React from 'react'; import { fireEvent, screen } from '@testing-library/react'; -import { RemovableUser, UserRepresentationProps } from './removable_user'; +import type { UserRepresentationProps } from './removable_user'; +import { RemovableUser } from './removable_user'; import { userProfiles } from '../../containers/user_profiles/api.mock'; -import { - AppMockRenderer, - createAppMockRenderer, - noUpdateCasesPermissions, -} from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer, noUpdateCasesPermissions } from '../../common/mock'; describe('UserRepresentation', () => { const dataTestSubjGroup = `user-profile-assigned-user-group-${userProfiles[0].user.username}`; diff --git a/x-pack/plugins/cases/public/components/user_profiles/removable_user.tsx b/x-pack/plugins/cases/public/components/user_profiles/removable_user.tsx index 286fe9b8c3d47..72ee046e8936e 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/removable_user.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/removable_user.tsx @@ -8,7 +8,7 @@ import React, { useCallback, useState } from 'react'; import { EuiButtonIcon, EuiFlexGroup, EuiFlexItem, EuiToolTip } from '@elastic/eui'; import * as i18n from './translations'; -import { Assignee } from './types'; +import type { Assignee } from './types'; import { HoverableUserWithAvatar } from './hoverable_user_with_avatar'; import { useCasesContext } from '../cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/small_user_avatar.tsx b/x-pack/plugins/cases/public/components/user_profiles/small_user_avatar.tsx index 43fead044bda3..b5a50afc1bde0 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/small_user_avatar.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/small_user_avatar.tsx @@ -6,7 +6,8 @@ */ import React from 'react'; -import { CaseUserAvatar, CaseUserAvatarProps } from './user_avatar'; +import type { CaseUserAvatarProps } from './user_avatar'; +import { CaseUserAvatar } from './user_avatar'; const SmallUserAvatarComponent: React.FC> = ({ userInfo, diff --git a/x-pack/plugins/cases/public/components/user_profiles/sort.ts b/x-pack/plugins/cases/public/components/user_profiles/sort.ts index e1e8018a21e35..83a4608095b0b 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/sort.ts +++ b/x-pack/plugins/cases/public/components/user_profiles/sort.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import { sortBy } from 'lodash'; -import { CurrentUserProfile } from '../types'; +import type { CurrentUserProfile } from '../types'; export const getSortField = (profile: UserProfileWithAvatar) => profile.user.full_name?.toLowerCase() ?? diff --git a/x-pack/plugins/cases/public/components/user_profiles/types.ts b/x-pack/plugins/cases/public/components/user_profiles/types.ts index a4de60b78aae5..2d2384d21b67b 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/types.ts +++ b/x-pack/plugins/cases/public/components/user_profiles/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; export interface Assignee { uid: string; diff --git a/x-pack/plugins/cases/public/components/user_profiles/unknown_user.tsx b/x-pack/plugins/cases/public/components/user_profiles/unknown_user.tsx index b98eef9efbd9f..8a51e558cc4e8 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/unknown_user.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/unknown_user.tsx @@ -7,7 +7,8 @@ import React from 'react'; -import { UserAvatar, UserAvatarProps } from '@kbn/user-profile-components'; +import type { UserAvatarProps } from '@kbn/user-profile-components'; +import { UserAvatar } from '@kbn/user-profile-components'; interface CaseUnknownUserAvatarProps { size: UserAvatarProps['size']; diff --git a/x-pack/plugins/cases/public/components/user_profiles/user_avatar.test.tsx b/x-pack/plugins/cases/public/components/user_profiles/user_avatar.test.tsx index 8ccd8a2ced6d3..b253858a290c1 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/user_avatar.test.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/user_avatar.test.tsx @@ -7,10 +7,11 @@ import React from 'react'; import { screen } from '@testing-library/react'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { userProfiles } from '../../containers/user_profiles/api.mock'; import { CaseUserAvatar } from './user_avatar'; -import { UserInfoWithAvatar } from './types'; +import type { UserInfoWithAvatar } from './types'; describe('CaseUserAvatar', () => { let appMockRender: AppMockRenderer; diff --git a/x-pack/plugins/cases/public/components/user_profiles/user_avatar.tsx b/x-pack/plugins/cases/public/components/user_profiles/user_avatar.tsx index abca77a4108e7..1eea00dcb08f7 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/user_avatar.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/user_avatar.tsx @@ -7,9 +7,10 @@ import React from 'react'; -import { UserAvatar, UserAvatarProps } from '@kbn/user-profile-components'; +import type { UserAvatarProps } from '@kbn/user-profile-components'; +import { UserAvatar } from '@kbn/user-profile-components'; import { CaseUnknownUserAvatar } from './unknown_user'; -import { UserInfoWithAvatar } from './types'; +import type { UserInfoWithAvatar } from './types'; export interface CaseUserAvatarProps { size: UserAvatarProps['size']; diff --git a/x-pack/plugins/cases/public/components/user_profiles/user_converter.ts b/x-pack/plugins/cases/public/components/user_profiles/user_converter.ts index b325d4f88aa93..716b74a90aad5 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/user_converter.ts +++ b/x-pack/plugins/cases/public/components/user_profiles/user_converter.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import { isEmpty } from 'lodash'; -import { ElasticUser } from '../../containers/types'; -import { UserInfoWithAvatar } from './types'; +import type { ElasticUser } from '../../containers/types'; +import type { UserInfoWithAvatar } from './types'; export const convertToUserInfo = ( user: ElasticUser, diff --git a/x-pack/plugins/cases/public/components/user_profiles/user_tooltip.test.tsx b/x-pack/plugins/cases/public/components/user_profiles/user_tooltip.test.tsx index ded2808533ee4..d105cc1db0053 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/user_tooltip.test.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/user_tooltip.test.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import { render, screen, fireEvent, waitFor } from '@testing-library/react'; import React from 'react'; import { UserToolTip } from './user_tooltip'; diff --git a/x-pack/plugins/cases/public/components/user_profiles/user_tooltip.tsx b/x-pack/plugins/cases/public/components/user_profiles/user_tooltip.tsx index a171e4ddd084a..6b9549fe4d618 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/user_tooltip.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/user_tooltip.tsx @@ -8,11 +8,11 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiText, EuiToolTip } from '@elastic/eui'; -import { UserProfileUserInfo } from '@kbn/user-profile-components'; +import type { UserProfileUserInfo } from '@kbn/user-profile-components'; import { CaseUserAvatar } from './user_avatar'; import { getName } from './display_name'; import * as i18n from './translations'; -import { UserInfoWithAvatar } from './types'; +import type { UserInfoWithAvatar } from './types'; const UserFullInformation: React.FC<{ userInfo?: UserInfoWithAvatar }> = React.memo( ({ userInfo }) => { diff --git a/x-pack/plugins/cases/public/components/user_profiles/username.tsx b/x-pack/plugins/cases/public/components/user_profiles/username.tsx index 17e54c8e0460d..41c694e530b6e 100644 --- a/x-pack/plugins/cases/public/components/user_profiles/username.tsx +++ b/x-pack/plugins/cases/public/components/user_profiles/username.tsx @@ -8,7 +8,7 @@ import { EuiText } from '@elastic/eui'; import React from 'react'; import { getName } from './display_name'; -import { UserInfoWithAvatar } from './types'; +import type { UserInfoWithAvatar } from './types'; export interface UsernameProps { userInfo?: UserInfoWithAvatar; diff --git a/x-pack/plugins/cases/public/components/utils.ts b/x-pack/plugins/cases/public/components/utils.ts index 403f55574f9a6..45b2247b7bcac 100644 --- a/x-pack/plugins/cases/public/components/utils.ts +++ b/x-pack/plugins/cases/public/components/utils.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { IconType } from '@elastic/eui'; +import type { IconType } from '@elastic/eui'; import { ConnectorTypes } from '../../common/api'; -import { FieldConfig, ValidationConfig } from '../common/shared_imports'; -import { CasesPluginStart } from '../types'; +import type { FieldConfig, ValidationConfig } from '../common/shared_imports'; +import type { CasesPluginStart } from '../types'; import { connectorValidator as swimlaneConnectorValidator } from './connectors/swimlane/validator'; -import { CaseActionConnector } from './types'; +import type { CaseActionConnector } from './types'; export const getConnectorById = ( id: string, diff --git a/x-pack/plugins/cases/public/containers/__mocks__/api.ts b/x-pack/plugins/cases/public/containers/__mocks__/api.ts index d01f927d3c324..f16c0260533a7 100644 --- a/x-pack/plugins/cases/public/containers/__mocks__/api.ts +++ b/x-pack/plugins/cases/public/containers/__mocks__/api.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { +import type { ActionLicense, Cases, Case, CasesStatus, CaseUserActions, FetchCasesProps, - SortFieldCase, } from '../types'; +import { SortFieldCase } from '../types'; import { actionLicenses, allCases, @@ -27,16 +27,17 @@ import { pushedCase, tags, } from '../mock'; -import { CaseUpdateRequest, ResolvedCase, SeverityAll } from '../../../common/ui/types'; -import { +import type { CaseUpdateRequest, ResolvedCase } from '../../../common/ui/types'; +import { SeverityAll } from '../../../common/ui/types'; +import type { CasePatchRequest, CasePostRequest, CommentRequest, - CaseStatuses, SingleCaseMetricsResponse, } from '../../../common/api'; +import { CaseStatuses } from '../../../common/api'; import type { ValidFeatureId } from '@kbn/rule-data-utils'; -import { UserProfile } from '@kbn/security-plugin/common'; +import type { UserProfile } from '@kbn/security-plugin/common'; import { userProfiles } from '../user_profiles/api.mock'; export const getCase = async ( diff --git a/x-pack/plugins/cases/public/containers/api.ts b/x-pack/plugins/cases/public/containers/api.ts index ff8d05ef653d9..4ce79cf6d22d5 100644 --- a/x-pack/plugins/cases/public/containers/api.ts +++ b/x-pack/plugins/cases/public/containers/api.ts @@ -8,16 +8,14 @@ import type { ValidFeatureId } from '@kbn/rule-data-utils'; import { BASE_RAC_ALERTS_API_PATH } from '@kbn/rule-registry-plugin/common/constants'; import { isEmpty } from 'lodash'; -import { +import type { Cases, CaseUpdateRequest, FetchCasesProps, ResolvedCase, - SeverityAll, - SortFieldCase, - StatusAll, } from '../../common/ui/types'; -import { +import { SeverityAll, SortFieldCase, StatusAll } from '../../common/ui/types'; +import type { BulkCreateCommentRequest, CasePatchRequest, CasePostRequest, @@ -26,16 +24,18 @@ import { CasesResponse, CaseUserActionsResponse, CommentRequest, + User, + SingleCaseMetricsResponse, + CasesFindResponse, +} from '../../common/api'; +import { CommentType, getCaseCommentsUrl, getCaseDetailsUrl, getCaseDetailsMetricsUrl, getCasePushUrl, getCaseUserActionUrl, - User, getCaseCommentDeleteUrl, - SingleCaseMetricsResponse, - CasesFindResponse, } from '../../common/api'; import { CASE_REPORTERS_URL, @@ -57,7 +57,7 @@ import { convertCaseResolveToCamelCase, } from '../api/utils'; -import { +import type { ActionLicense, Case, SingleCaseMetrics, diff --git a/x-pack/plugins/cases/public/containers/configure/__mocks__/api.ts b/x-pack/plugins/cases/public/containers/configure/__mocks__/api.ts index b24213cc43af7..0d85e75478be3 100644 --- a/x-pack/plugins/cases/public/containers/configure/__mocks__/api.ts +++ b/x-pack/plugins/cases/public/containers/configure/__mocks__/api.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { +import type { CasesConfigurePatch, CasesConfigureRequest, ActionConnector, ActionTypeConnector, } from '../../../../common/api'; -import { ApiProps } from '../../types'; -import { CaseConfigure } from '../types'; +import type { ApiProps } from '../../types'; +import type { CaseConfigure } from '../types'; import { caseConfigurationCamelCaseResponseMock } from '../mock'; import { actionTypesMock, connectorsMock } from '../../../common/mock/connectors'; diff --git a/x-pack/plugins/cases/public/containers/configure/api.ts b/x-pack/plugins/cases/public/containers/configure/api.ts index b9d0b219c91ca..72702e27fbb56 100644 --- a/x-pack/plugins/cases/public/containers/configure/api.ts +++ b/x-pack/plugins/cases/public/containers/configure/api.ts @@ -8,21 +8,21 @@ import { isEmpty } from 'lodash/fp'; import { CasesConnectorFeatureId } from '@kbn/actions-plugin/common'; import { getAllConnectorTypesUrl } from '../../../common/utils/connectors_api'; -import { +import type { ActionConnector, ActionTypeConnector, CasesConfigurePatch, CasesConfigureRequest, CasesConfigureResponse, CasesConfigurationsResponse, - getCaseConfigurationDetailsUrl, } from '../../../common/api'; +import { getCaseConfigurationDetailsUrl } from '../../../common/api'; import { CASE_CONFIGURE_CONNECTORS_URL, CASE_CONFIGURE_URL } from '../../../common/constants'; import { KibanaServices } from '../../common/lib/kibana'; import { convertToCamelCase, convertArrayToCamelCase } from '../../api/utils'; -import { ApiProps } from '../types'; +import type { ApiProps } from '../types'; import { decodeCaseConfigurationsResponse, decodeCaseConfigureResponse } from '../utils'; -import { CaseConfigure } from './types'; +import type { CaseConfigure } from './types'; export const fetchConnectors = async ({ signal }: ApiProps): Promise => { const response = await KibanaServices.get().http.fetch( diff --git a/x-pack/plugins/cases/public/containers/configure/mock.ts b/x-pack/plugins/cases/public/containers/configure/mock.ts index c75d2c839534d..039f24a18fbfd 100644 --- a/x-pack/plugins/cases/public/containers/configure/mock.ts +++ b/x-pack/plugins/cases/public/containers/configure/mock.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { CasesConfigureResponse, CasesConfigureRequest, ConnectorTypes } from '../../../common/api'; +import type { CasesConfigureResponse, CasesConfigureRequest } from '../../../common/api'; +import { ConnectorTypes } from '../../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../../common/constants'; -import { CaseConfigure, CaseConnectorMapping } from './types'; +import type { CaseConfigure, CaseConnectorMapping } from './types'; export const mappings: CaseConnectorMapping[] = [ { diff --git a/x-pack/plugins/cases/public/containers/configure/types.ts b/x-pack/plugins/cases/public/containers/configure/types.ts index 55401a2fbfd2c..c1e2366f6a37b 100644 --- a/x-pack/plugins/cases/public/containers/configure/types.ts +++ b/x-pack/plugins/cases/public/containers/configure/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ElasticUser } from '../types'; -import { +import type { ElasticUser } from '../types'; +import type { ActionConnector, ActionTypeConnector, ActionType, diff --git a/x-pack/plugins/cases/public/containers/configure/use_action_types.test.tsx b/x-pack/plugins/cases/public/containers/configure/use_action_types.test.tsx index df0804690b1b9..9739b29a484b0 100644 --- a/x-pack/plugins/cases/public/containers/configure/use_action_types.test.tsx +++ b/x-pack/plugins/cases/public/containers/configure/use_action_types.test.tsx @@ -7,7 +7,8 @@ import { renderHook } from '@testing-library/react-hooks'; import * as api from './api'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import { useGetActionTypes } from './use_action_types'; import { useToasts } from '../../common/lib/kibana'; diff --git a/x-pack/plugins/cases/public/containers/configure/use_action_types.tsx b/x-pack/plugins/cases/public/containers/configure/use_action_types.tsx index 8503ccd6eddf8..4aa10bfb4918b 100644 --- a/x-pack/plugins/cases/public/containers/configure/use_action_types.tsx +++ b/x-pack/plugins/cases/public/containers/configure/use_action_types.tsx @@ -10,7 +10,7 @@ import * as i18n from '../translations'; import { fetchActionTypes } from './api'; import { useToasts } from '../../common/lib/kibana'; import { casesQueriesKeys } from '../constants'; -import { ServerError } from '../../types'; +import type { ServerError } from '../../types'; export const useGetActionTypes = () => { const toasts = useToasts(); diff --git a/x-pack/plugins/cases/public/containers/configure/use_configure.test.tsx b/x-pack/plugins/cases/public/containers/configure/use_configure.test.tsx index 1c9139b913617..ddea0187f7948 100644 --- a/x-pack/plugins/cases/public/containers/configure/use_configure.test.tsx +++ b/x-pack/plugins/cases/public/containers/configure/use_configure.test.tsx @@ -7,12 +7,8 @@ import React from 'react'; import { renderHook, act } from '@testing-library/react-hooks'; -import { - initialState, - useCaseConfigure, - ReturnUseCaseConfigure, - ConnectorConfiguration, -} from './use_configure'; +import type { ReturnUseCaseConfigure, ConnectorConfiguration } from './use_configure'; +import { initialState, useCaseConfigure } from './use_configure'; import { mappings, caseConfigurationCamelCaseResponseMock } from './mock'; import * as api from './api'; import { ConnectorTypes } from '../../../common/api'; diff --git a/x-pack/plugins/cases/public/containers/configure/use_configure.tsx b/x-pack/plugins/cases/public/containers/configure/use_configure.tsx index 21c6e9e0b388e..53c63eccc6ae5 100644 --- a/x-pack/plugins/cases/public/containers/configure/use_configure.tsx +++ b/x-pack/plugins/cases/public/containers/configure/use_configure.tsx @@ -9,7 +9,7 @@ import { useEffect, useCallback, useReducer, useRef } from 'react'; import { getCaseConfigure, patchCaseConfigure, postCaseConfigure } from './api'; import * as i18n from './translations'; -import { ClosureType, CaseConfigure, CaseConnector, CaseConnectorMapping } from './types'; +import type { ClosureType, CaseConfigure, CaseConnector, CaseConnectorMapping } from './types'; import { ConnectorTypes } from '../../../common/api'; import { useToasts } from '../../common/lib/kibana'; import { useCasesContext } from '../../components/cases_context/use_cases_context'; diff --git a/x-pack/plugins/cases/public/containers/configure/use_connectors.tsx b/x-pack/plugins/cases/public/containers/configure/use_connectors.tsx index 5e96dd86ae985..f9c19ee1776bd 100644 --- a/x-pack/plugins/cases/public/containers/configure/use_connectors.tsx +++ b/x-pack/plugins/cases/public/containers/configure/use_connectors.tsx @@ -10,7 +10,7 @@ import { fetchConnectors } from './api'; import { useApplicationCapabilities, useToasts } from '../../common/lib/kibana'; import * as i18n from './translations'; import { casesQueriesKeys } from '../constants'; -import { ServerError } from '../../types'; +import type { ServerError } from '../../types'; export function useGetConnectors() { const toasts = useToasts(); diff --git a/x-pack/plugins/cases/public/containers/constants.ts b/x-pack/plugins/cases/public/containers/constants.ts index a6acbbd68d412..f6b69fbac920a 100644 --- a/x-pack/plugins/cases/public/containers/constants.ts +++ b/x-pack/plugins/cases/public/containers/constants.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SingleCaseMetricsFeature } from './types'; +import type { SingleCaseMetricsFeature } from './types'; export const DEFAULT_TABLE_ACTIVE_PAGE = 1; export const DEFAULT_TABLE_LIMIT = 5; diff --git a/x-pack/plugins/cases/public/containers/mock.ts b/x-pack/plugins/cases/public/containers/mock.ts index b7f1ab268a034..cada10b9eb109 100644 --- a/x-pack/plugins/cases/public/containers/mock.ts +++ b/x-pack/plugins/cases/public/containers/mock.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ActionLicense, Cases, Case, CasesStatus, CaseUserActions, Comment } from './types'; +import type { ActionLicense, Cases, Case, CasesStatus, CaseUserActions, Comment } from './types'; import type { ResolvedCase, @@ -16,31 +16,33 @@ import type { ExternalReferenceComment, PersistableComment, } from '../../common/ui/types'; -import { - Actions, - ActionTypes, +import type { CaseConnector, CaseResponse, CasesFindResponse, CasesResponse, CasesStatusResponse, - CaseStatuses, CaseUserActionResponse, CaseUserActionsResponse, CommentResponse, - CommentType, - ConnectorTypes, UserAction, UserActionTypes, UserActionWithResponse, CommentUserAction, +} from '../../common/api'; +import { + Actions, + ActionTypes, + CaseStatuses, + CommentType, + ConnectorTypes, CaseSeverity, ExternalReferenceStorageType, } from '../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../common/constants'; -import { SnakeToCamelCase } from '../../common/types'; +import type { SnakeToCamelCase } from '../../common/types'; import { covertToSnakeCase } from './utils'; -import { +import type { ExternalReferenceAttachmentType, AttachmentViewObject, PersistableStateAttachmentType, diff --git a/x-pack/plugins/cases/public/containers/use_bulk_update_case.test.tsx b/x-pack/plugins/cases/public/containers/use_bulk_update_case.test.tsx index d46f79569622f..be89dc92f9d06 100644 --- a/x-pack/plugins/cases/public/containers/use_bulk_update_case.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_bulk_update_case.test.tsx @@ -10,7 +10,8 @@ import { useUpdateCases } from './use_bulk_update_case'; import { allCases } from './mock'; import { useToasts } from '../common/lib/kibana'; import * as api from './api'; -import { createAppMockRenderer, AppMockRenderer } from '../common/mock'; +import type { AppMockRenderer } from '../common/mock'; +import { createAppMockRenderer } from '../common/mock'; import { casesQueriesKeys } from './constants'; jest.mock('./api'); diff --git a/x-pack/plugins/cases/public/containers/use_bulk_update_case.tsx b/x-pack/plugins/cases/public/containers/use_bulk_update_case.tsx index e0866bf0166a6..85a5a743d16d3 100644 --- a/x-pack/plugins/cases/public/containers/use_bulk_update_case.tsx +++ b/x-pack/plugins/cases/public/containers/use_bulk_update_case.tsx @@ -8,9 +8,9 @@ import { useQueryClient, useMutation } from '@tanstack/react-query'; import * as i18n from './translations'; import { updateCases } from './api'; -import { CaseUpdateRequest } from './types'; +import type { CaseUpdateRequest } from './types'; import { useCasesToast } from '../common/use_cases_toast'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; import { casesQueriesKeys, casesMutationsKeys } from './constants'; interface MutationArgs { diff --git a/x-pack/plugins/cases/public/containers/use_create_attachments.test.tsx b/x-pack/plugins/cases/public/containers/use_create_attachments.test.tsx index 7a4b1c7f6523a..59119e0b6f7e4 100644 --- a/x-pack/plugins/cases/public/containers/use_create_attachments.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_create_attachments.test.tsx @@ -9,7 +9,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { CommentType } from '../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../common/constants'; -import { useCreateAttachments, UseCreateAttachments } from './use_create_attachments'; +import type { UseCreateAttachments } from './use_create_attachments'; +import { useCreateAttachments } from './use_create_attachments'; import { basicCaseId } from './mock'; import * as api from './api'; import { useToasts } from '../common/lib/kibana'; diff --git a/x-pack/plugins/cases/public/containers/use_create_attachments.tsx b/x-pack/plugins/cases/public/containers/use_create_attachments.tsx index 779677cd89cc6..074b85839c4d9 100644 --- a/x-pack/plugins/cases/public/containers/use_create_attachments.tsx +++ b/x-pack/plugins/cases/public/containers/use_create_attachments.tsx @@ -9,9 +9,9 @@ import { useReducer, useCallback, useRef, useEffect } from 'react'; import { createAttachments } from './api'; import * as i18n from './translations'; -import { Case } from './types'; +import type { Case } from './types'; import { useToasts } from '../common/lib/kibana'; -import { CaseAttachmentsWithoutOwner } from '../types'; +import type { CaseAttachmentsWithoutOwner } from '../types'; interface NewCommentState { isLoading: boolean; diff --git a/x-pack/plugins/cases/public/containers/use_delete_cases.test.tsx b/x-pack/plugins/cases/public/containers/use_delete_cases.test.tsx index 623a01746e3cb..2059b7331e298 100644 --- a/x-pack/plugins/cases/public/containers/use_delete_cases.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_delete_cases.test.tsx @@ -10,7 +10,8 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { useDeleteCases } from './use_delete_cases'; import * as api from './api'; import { useToasts } from '../common/lib/kibana'; -import { AppMockRenderer, createAppMockRenderer } from '../common/mock'; +import type { AppMockRenderer } from '../common/mock'; +import { createAppMockRenderer } from '../common/mock'; import { casesQueriesKeys } from './constants'; jest.mock('./api'); diff --git a/x-pack/plugins/cases/public/containers/use_delete_cases.tsx b/x-pack/plugins/cases/public/containers/use_delete_cases.tsx index da2258f8f5d82..a08a8bed37d3a 100644 --- a/x-pack/plugins/cases/public/containers/use_delete_cases.tsx +++ b/x-pack/plugins/cases/public/containers/use_delete_cases.tsx @@ -8,7 +8,7 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'; import * as i18n from './translations'; import { deleteCases } from './api'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; import { casesQueriesKeys, casesMutationsKeys } from './constants'; import { useCasesToast } from '../common/use_cases_toast'; diff --git a/x-pack/plugins/cases/public/containers/use_delete_comment.test.tsx b/x-pack/plugins/cases/public/containers/use_delete_comment.test.tsx index ed038e23f8d7d..dd280e8abb0bf 100644 --- a/x-pack/plugins/cases/public/containers/use_delete_comment.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_delete_comment.test.tsx @@ -6,7 +6,8 @@ */ import { act, renderHook } from '@testing-library/react-hooks'; -import { useDeleteComment, UseDeleteComment } from './use_delete_comment'; +import type { UseDeleteComment } from './use_delete_comment'; +import { useDeleteComment } from './use_delete_comment'; import * as api from './api'; import { basicCaseId } from './mock'; import { useRefreshCaseViewPage } from '../components/case_view/use_on_refresh_case_view_page'; diff --git a/x-pack/plugins/cases/public/containers/use_get_action_license.test.tsx b/x-pack/plugins/cases/public/containers/use_get_action_license.test.tsx index 9ad55fe496a0e..d2bf757697a4b 100644 --- a/x-pack/plugins/cases/public/containers/use_get_action_license.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_action_license.test.tsx @@ -8,7 +8,8 @@ import { renderHook } from '@testing-library/react-hooks'; import * as api from './api'; import { useGetActionLicense } from './use_get_action_license'; -import { AppMockRenderer, createAppMockRenderer } from '../common/mock'; +import type { AppMockRenderer } from '../common/mock'; +import { createAppMockRenderer } from '../common/mock'; import { useToasts } from '../common/lib/kibana'; jest.mock('./api'); diff --git a/x-pack/plugins/cases/public/containers/use_get_action_license.tsx b/x-pack/plugins/cases/public/containers/use_get_action_license.tsx index 7f05012cbbe6a..6522d5a530671 100644 --- a/x-pack/plugins/cases/public/containers/use_get_action_license.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_action_license.tsx @@ -11,7 +11,7 @@ import { getActionLicense } from './api'; import * as i18n from './translations'; import { ConnectorTypes } from '../../common/api'; import { casesQueriesKeys } from './constants'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; const MINIMUM_LICENSE_REQUIRED_CONNECTOR = ConnectorTypes.jira; diff --git a/x-pack/plugins/cases/public/containers/use_get_case.tsx b/x-pack/plugins/cases/public/containers/use_get_case.tsx index bf588cc1e71d0..11be6abfdf765 100644 --- a/x-pack/plugins/cases/public/containers/use_get_case.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_case.tsx @@ -6,11 +6,11 @@ */ import { useQuery } from '@tanstack/react-query'; -import { ResolvedCase } from './types'; +import type { ResolvedCase } from './types'; import * as i18n from './translations'; import { useToasts } from '../common/lib/kibana'; import { resolveCase } from './api'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; import { casesQueriesKeys } from './constants'; export const useGetCase = (caseId: string) => { diff --git a/x-pack/plugins/cases/public/containers/use_get_case_metrics.test.tsx b/x-pack/plugins/cases/public/containers/use_get_case_metrics.test.tsx index 7f61397728170..76c79c0538a5d 100644 --- a/x-pack/plugins/cases/public/containers/use_get_case_metrics.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_case_metrics.test.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { renderHook, act } from '@testing-library/react-hooks'; -import { SingleCaseMetricsFeature } from '../../common/ui'; +import type { SingleCaseMetricsFeature } from '../../common/ui'; import { useGetCaseMetrics } from './use_get_case_metrics'; import { basicCase } from './mock'; import * as api from './api'; diff --git a/x-pack/plugins/cases/public/containers/use_get_case_metrics.tsx b/x-pack/plugins/cases/public/containers/use_get_case_metrics.tsx index 32d63fcc3b42e..0c6b535d0e533 100644 --- a/x-pack/plugins/cases/public/containers/use_get_case_metrics.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_case_metrics.tsx @@ -6,10 +6,10 @@ */ import { useQuery } from '@tanstack/react-query'; -import { SingleCaseMetrics, SingleCaseMetricsFeature } from './types'; +import type { SingleCaseMetrics, SingleCaseMetricsFeature } from './types'; import { useToasts } from '../common/lib/kibana'; import { getSingleCaseMetrics } from './api'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; import { ERROR_TITLE } from './translations'; import { casesQueriesKeys } from './constants'; diff --git a/x-pack/plugins/cases/public/containers/use_get_case_user_actions.test.tsx b/x-pack/plugins/cases/public/containers/use_get_case_user_actions.test.tsx index cdabd8965e202..45e92fac48bfe 100644 --- a/x-pack/plugins/cases/public/containers/use_get_case_user_actions.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_case_user_actions.test.tsx @@ -6,11 +6,8 @@ */ import { renderHook, act } from '@testing-library/react-hooks'; -import { - getPushedInfo, - useGetCaseUserActions, - UseGetCaseUserActions, -} from './use_get_case_user_actions'; +import type { UseGetCaseUserActions } from './use_get_case_user_actions'; +import { getPushedInfo, useGetCaseUserActions } from './use_get_case_user_actions'; import { basicCase, basicPush, diff --git a/x-pack/plugins/cases/public/containers/use_get_case_user_actions.tsx b/x-pack/plugins/cases/public/containers/use_get_case_user_actions.tsx index c92d56b41ea76..2714e7ef3e9b1 100644 --- a/x-pack/plugins/cases/public/containers/use_get_case_user_actions.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_case_user_actions.tsx @@ -9,15 +9,16 @@ import { isEmpty, uniqBy } from 'lodash/fp'; import deepEqual from 'fast-deep-equal'; import { useQuery } from '@tanstack/react-query'; -import { CaseUserActions, CaseExternalService } from '../../common/ui/types'; -import { ActionTypes, CaseConnector, NONE_CONNECTOR_ID } from '../../common/api'; +import type { CaseUserActions, CaseExternalService } from '../../common/ui/types'; +import type { CaseConnector } from '../../common/api'; +import { ActionTypes, NONE_CONNECTOR_ID } from '../../common/api'; import { getCaseUserActions } from './api'; import { isPushedUserAction, isConnectorUserAction, isCreateCaseUserAction, } from '../../common/utils/user_actions'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; import { useToasts } from '../common/lib/kibana'; import { ERROR_TITLE } from './translations'; import { casesQueriesKeys } from './constants'; diff --git a/x-pack/plugins/cases/public/containers/use_get_cases.test.tsx b/x-pack/plugins/cases/public/containers/use_get_cases.test.tsx index 8d2947a3d351c..39cedf782857f 100644 --- a/x-pack/plugins/cases/public/containers/use_get_cases.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_cases.test.tsx @@ -8,7 +8,8 @@ import { renderHook } from '@testing-library/react-hooks'; import { DEFAULT_FILTER_OPTIONS, DEFAULT_QUERY_PARAMS, useGetCases } from './use_get_cases'; import * as api from './api'; -import { AppMockRenderer, createAppMockRenderer } from '../common/mock'; +import type { AppMockRenderer } from '../common/mock'; +import { createAppMockRenderer } from '../common/mock'; import { useToasts } from '../common/lib/kibana'; jest.mock('./api'); diff --git a/x-pack/plugins/cases/public/containers/use_get_cases.tsx b/x-pack/plugins/cases/public/containers/use_get_cases.tsx index d630534957e53..b9f55cc77682f 100644 --- a/x-pack/plugins/cases/public/containers/use_get_cases.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_cases.tsx @@ -5,13 +5,15 @@ * 2.0. */ -import { useQuery, UseQueryResult } from '@tanstack/react-query'; +import type { UseQueryResult } from '@tanstack/react-query'; +import { useQuery } from '@tanstack/react-query'; import { casesQueriesKeys, DEFAULT_TABLE_ACTIVE_PAGE, DEFAULT_TABLE_LIMIT } from './constants'; -import { Cases, FilterOptions, QueryParams, SortFieldCase, StatusAll, SeverityAll } from './types'; +import type { Cases, FilterOptions, QueryParams } from './types'; +import { SortFieldCase, StatusAll, SeverityAll } from './types'; import { useToasts } from '../common/lib/kibana'; import * as i18n from './translations'; import { getCases } from './api'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; const DEFAULT_SEARCH_FIELDS = ['title', 'description']; diff --git a/x-pack/plugins/cases/public/containers/use_get_cases_metrics.test.tsx b/x-pack/plugins/cases/public/containers/use_get_cases_metrics.test.tsx index 0b0cdc59a487e..31bb539fbea17 100644 --- a/x-pack/plugins/cases/public/containers/use_get_cases_metrics.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_cases_metrics.test.tsx @@ -7,7 +7,8 @@ import { renderHook } from '@testing-library/react-hooks'; import * as api from '../api'; -import { AppMockRenderer, createAppMockRenderer } from '../common/mock'; +import type { AppMockRenderer } from '../common/mock'; +import { createAppMockRenderer } from '../common/mock'; import { useGetCasesMetrics } from './use_get_cases_metrics'; import { SECURITY_SOLUTION_OWNER } from '../../common/constants'; import { useToasts } from '../common/lib/kibana'; diff --git a/x-pack/plugins/cases/public/containers/use_get_cases_metrics.tsx b/x-pack/plugins/cases/public/containers/use_get_cases_metrics.tsx index b43266e55340d..b8bd1664cfe0c 100644 --- a/x-pack/plugins/cases/public/containers/use_get_cases_metrics.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_cases_metrics.tsx @@ -10,9 +10,9 @@ import { useCasesContext } from '../components/cases_context/use_cases_context'; import * as i18n from './translations'; import { useHttp } from '../common/lib/kibana'; import { getCasesMetrics } from '../api'; -import { CasesMetrics } from './types'; +import type { CasesMetrics } from './types'; import { useCasesToast } from '../common/use_cases_toast'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; import { casesQueriesKeys } from './constants'; export const useGetCasesMetrics = () => { diff --git a/x-pack/plugins/cases/public/containers/use_get_cases_status.test.tsx b/x-pack/plugins/cases/public/containers/use_get_cases_status.test.tsx index 4f2572093a285..fed7159ac15e3 100644 --- a/x-pack/plugins/cases/public/containers/use_get_cases_status.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_cases_status.test.tsx @@ -8,7 +8,8 @@ import { renderHook } from '@testing-library/react-hooks'; import { useGetCasesStatus } from './use_get_cases_status'; import * as api from '../api'; -import { AppMockRenderer, createAppMockRenderer } from '../common/mock'; +import type { AppMockRenderer } from '../common/mock'; +import { createAppMockRenderer } from '../common/mock'; import { SECURITY_SOLUTION_OWNER } from '../../common/constants'; import { useToasts } from '../common/lib/kibana'; diff --git a/x-pack/plugins/cases/public/containers/use_get_cases_status.tsx b/x-pack/plugins/cases/public/containers/use_get_cases_status.tsx index c2ba6659edcbd..89f9cb0e7afd5 100644 --- a/x-pack/plugins/cases/public/containers/use_get_cases_status.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_cases_status.tsx @@ -8,11 +8,11 @@ import { useQuery } from '@tanstack/react-query'; import { useCasesContext } from '../components/cases_context/use_cases_context'; import * as i18n from './translations'; -import { CasesStatus } from './types'; +import type { CasesStatus } from './types'; import { useHttp } from '../common/lib/kibana'; import { getCasesStatus } from '../api'; import { useCasesToast } from '../common/use_cases_toast'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; import { casesQueriesKeys } from './constants'; export const useGetCasesStatus = () => { diff --git a/x-pack/plugins/cases/public/containers/use_get_tags.tsx b/x-pack/plugins/cases/public/containers/use_get_tags.tsx index da56521536cbe..1c7528604b342 100644 --- a/x-pack/plugins/cases/public/containers/use_get_tags.tsx +++ b/x-pack/plugins/cases/public/containers/use_get_tags.tsx @@ -8,7 +8,7 @@ import { useQuery } from '@tanstack/react-query'; import { useToasts } from '../common/lib/kibana'; import { useCasesContext } from '../components/cases_context/use_cases_context'; -import { ServerError } from '../types'; +import type { ServerError } from '../types'; import { getTags } from './api'; import { casesQueriesKeys } from './constants'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/public/containers/use_messages_storage.test.tsx b/x-pack/plugins/cases/public/containers/use_messages_storage.test.tsx index 73bfc49f077ae..8f12ab8e56daf 100644 --- a/x-pack/plugins/cases/public/containers/use_messages_storage.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_messages_storage.test.tsx @@ -6,7 +6,8 @@ */ import { renderHook, act } from '@testing-library/react-hooks'; -import { useMessagesStorage, UseMessagesStorage } from './use_messages_storage'; +import type { UseMessagesStorage } from './use_messages_storage'; +import { useMessagesStorage } from './use_messages_storage'; describe('useLocalStorage', () => { beforeEach(() => { diff --git a/x-pack/plugins/cases/public/containers/use_post_case.test.tsx b/x-pack/plugins/cases/public/containers/use_post_case.test.tsx index 5d5b6ced44afc..5740bcf4c0be8 100644 --- a/x-pack/plugins/cases/public/containers/use_post_case.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_post_case.test.tsx @@ -6,7 +6,8 @@ */ import { renderHook, act } from '@testing-library/react-hooks'; -import { usePostCase, UsePostCase } from './use_post_case'; +import type { UsePostCase } from './use_post_case'; +import { usePostCase } from './use_post_case'; import * as api from './api'; import { ConnectorTypes } from '../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../common/constants'; diff --git a/x-pack/plugins/cases/public/containers/use_post_case.tsx b/x-pack/plugins/cases/public/containers/use_post_case.tsx index dc23c503b333b..804a109c4483e 100644 --- a/x-pack/plugins/cases/public/containers/use_post_case.tsx +++ b/x-pack/plugins/cases/public/containers/use_post_case.tsx @@ -6,10 +6,10 @@ */ import { useReducer, useCallback, useRef, useEffect } from 'react'; -import { CasePostRequest } from '../../common/api'; +import type { CasePostRequest } from '../../common/api'; import { postCase } from './api'; import * as i18n from './translations'; -import { Case } from './types'; +import type { Case } from './types'; import { useToasts } from '../common/lib/kibana'; interface NewCaseState { isLoading: boolean; diff --git a/x-pack/plugins/cases/public/containers/use_post_push_to_service.test.tsx b/x-pack/plugins/cases/public/containers/use_post_push_to_service.test.tsx index dedde459ad557..6ab6c97f06465 100644 --- a/x-pack/plugins/cases/public/containers/use_post_push_to_service.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_post_push_to_service.test.tsx @@ -6,10 +6,12 @@ */ import { renderHook, act } from '@testing-library/react-hooks'; -import { usePostPushToService, UsePostPushToService } from './use_post_push_to_service'; +import type { UsePostPushToService } from './use_post_push_to_service'; +import { usePostPushToService } from './use_post_push_to_service'; import { pushedCase } from './mock'; import * as api from './api'; -import { CaseConnector, ConnectorTypes } from '../../common/api'; +import type { CaseConnector } from '../../common/api'; +import { ConnectorTypes } from '../../common/api'; jest.mock('./api'); jest.mock('../common/lib/kibana'); diff --git a/x-pack/plugins/cases/public/containers/use_post_push_to_service.tsx b/x-pack/plugins/cases/public/containers/use_post_push_to_service.tsx index 90f1fbe212a02..3a5e8bddcea63 100644 --- a/x-pack/plugins/cases/public/containers/use_post_push_to_service.tsx +++ b/x-pack/plugins/cases/public/containers/use_post_push_to_service.tsx @@ -6,11 +6,11 @@ */ import { useReducer, useCallback, useRef, useEffect } from 'react'; -import { CaseConnector } from '../../common/api'; +import type { CaseConnector } from '../../common/api'; import { pushCase } from './api'; import * as i18n from './translations'; -import { Case } from './types'; +import type { Case } from './types'; import { useToasts } from '../common/lib/kibana'; interface PushToServiceState { diff --git a/x-pack/plugins/cases/public/containers/use_update_case.test.tsx b/x-pack/plugins/cases/public/containers/use_update_case.test.tsx index 28bfeca01d446..4a3e7a59fdb0b 100644 --- a/x-pack/plugins/cases/public/containers/use_update_case.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_update_case.test.tsx @@ -6,10 +6,11 @@ */ import { renderHook, act } from '@testing-library/react-hooks'; -import { useUpdateCase, UseUpdateCase } from './use_update_case'; +import type { UseUpdateCase } from './use_update_case'; +import { useUpdateCase } from './use_update_case'; import { basicCase } from './mock'; import * as api from './api'; -import { UpdateKey } from './types'; +import type { UpdateKey } from './types'; import { useRefreshCaseViewPage } from '../components/case_view/use_on_refresh_case_view_page'; jest.mock('./api'); diff --git a/x-pack/plugins/cases/public/containers/use_update_case.tsx b/x-pack/plugins/cases/public/containers/use_update_case.tsx index 4b7433ca79474..8f5d86da1beaa 100644 --- a/x-pack/plugins/cases/public/containers/use_update_case.tsx +++ b/x-pack/plugins/cases/public/containers/use_update_case.tsx @@ -9,7 +9,7 @@ import { useReducer, useCallback, useRef, useEffect } from 'react'; import { useToasts } from '../common/lib/kibana'; import { patchCase } from './api'; -import { UpdateKey, UpdateByKey } from '../../common/ui/types'; +import type { UpdateKey, UpdateByKey } from '../../common/ui/types'; import * as i18n from './translations'; import { createUpdateSuccessToaster } from './utils'; import { useRefreshCaseViewPage } from '../components/case_view/use_on_refresh_case_view_page'; diff --git a/x-pack/plugins/cases/public/containers/use_update_comment.test.tsx b/x-pack/plugins/cases/public/containers/use_update_comment.test.tsx index 27786f445ef20..b90c16fca4c8b 100644 --- a/x-pack/plugins/cases/public/containers/use_update_comment.test.tsx +++ b/x-pack/plugins/cases/public/containers/use_update_comment.test.tsx @@ -7,7 +7,8 @@ import React from 'react'; import { renderHook, act } from '@testing-library/react-hooks'; -import { useUpdateComment, UseUpdateComment } from './use_update_comment'; +import type { UseUpdateComment } from './use_update_comment'; +import { useUpdateComment } from './use_update_comment'; import { basicCase } from './mock'; import * as api from './api'; import { TestProviders } from '../common/mock'; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/__mocks__/api.ts b/x-pack/plugins/cases/public/containers/user_profiles/__mocks__/api.ts index 6901852a405fa..e027466eb1abb 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/__mocks__/api.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/__mocks__/api.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UserProfile } from '@kbn/security-plugin/common'; +import type { UserProfile } from '@kbn/security-plugin/common'; import { userProfiles } from '../api.mock'; export const suggestUserProfiles = async (): Promise => userProfiles; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/api.mock.ts b/x-pack/plugins/cases/public/containers/user_profiles/api.mock.ts index 1296cf9878827..42438f16dfa37 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/api.mock.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/api.mock.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UserProfile } from '@kbn/security-plugin/common'; +import type { UserProfile } from '@kbn/security-plugin/common'; export const userProfiles: UserProfile[] = [ { diff --git a/x-pack/plugins/cases/public/containers/user_profiles/api.test.ts b/x-pack/plugins/cases/public/containers/user_profiles/api.test.ts index 0f7c9d9c31fa9..ad7550ee857af 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/api.test.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/api.test.ts @@ -6,7 +6,7 @@ */ import { securityMock } from '@kbn/security-plugin/public/mocks'; -import { SecurityPluginStart } from '@kbn/security-plugin/public'; +import type { SecurityPluginStart } from '@kbn/security-plugin/public'; import { GENERAL_CASES_OWNER } from '../../../common/constants'; import { createStartServicesMock } from '../../common/lib/kibana/kibana_react.mock'; import { bulkGetUserProfiles, getCurrentUserProfile, suggestUserProfiles } from './api'; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/api.ts b/x-pack/plugins/cases/public/containers/user_profiles/api.ts index cfd1c04d0afbc..895bb9cafcce9 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/api.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/api.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { HttpStart } from '@kbn/core/public'; -import { UserProfile } from '@kbn/security-plugin/common'; -import { SecurityPluginStart } from '@kbn/security-plugin/public'; +import type { HttpStart } from '@kbn/core/public'; +import type { UserProfile } from '@kbn/security-plugin/common'; +import type { SecurityPluginStart } from '@kbn/security-plugin/public'; import { INTERNAL_SUGGEST_USER_PROFILES_URL, DEFAULT_USER_SIZE } from '../../../common/constants'; export interface SuggestUserProfilesArgs { diff --git a/x-pack/plugins/cases/public/containers/user_profiles/use_assignees.test.ts b/x-pack/plugins/cases/public/containers/user_profiles/use_assignees.test.ts index db4527ae31e43..f8b38e4d31dbf 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/use_assignees.test.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/use_assignees.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import { renderHook } from '@testing-library/react-hooks'; import { userProfiles, userProfilesMap } from './api.mock'; import { useAssignees } from './use_assignees'; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/use_assignees.ts b/x-pack/plugins/cases/public/containers/user_profiles/use_assignees.ts index 2e1bb0a61dbda..069eae715f2b9 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/use_assignees.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/use_assignees.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import { useMemo } from 'react'; -import { CaseAssignees } from '../../../common/api'; -import { CurrentUserProfile } from '../../components/types'; +import type { CaseAssignees } from '../../../common/api'; +import type { CurrentUserProfile } from '../../components/types'; import { bringCurrentUserToFrontAndSort } from '../../components/user_profiles/sort'; -import { Assignee, AssigneeWithProfile } from '../../components/user_profiles/types'; +import type { Assignee, AssigneeWithProfile } from '../../components/user_profiles/types'; interface PartitionedAssignees { usersWithProfiles: UserProfileWithAvatar[]; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/use_bulk_get_user_profiles.test.ts b/x-pack/plugins/cases/public/containers/user_profiles/use_bulk_get_user_profiles.test.ts index af0482f41b25a..1574c1ddd2580 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/use_bulk_get_user_profiles.test.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/use_bulk_get_user_profiles.test.ts @@ -7,7 +7,8 @@ import { renderHook } from '@testing-library/react-hooks'; import { useToasts, useKibana } from '../../common/lib/kibana'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import * as api from './api'; import { useBulkGetUserProfiles } from './use_bulk_get_user_profiles'; import { userProfilesIds } from './api.mock'; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/use_bulk_get_user_profiles.ts b/x-pack/plugins/cases/public/containers/user_profiles/use_bulk_get_user_profiles.ts index b2928295dbb37..a9e60f3e854a9 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/use_bulk_get_user_profiles.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/use_bulk_get_user_profiles.ts @@ -5,11 +5,12 @@ * 2.0. */ -import { useQuery, UseQueryResult } from '@tanstack/react-query'; -import { UserProfileWithAvatar } from '@kbn/user-profile-components'; +import type { UseQueryResult } from '@tanstack/react-query'; +import { useQuery } from '@tanstack/react-query'; +import type { UserProfileWithAvatar } from '@kbn/user-profile-components'; import * as i18n from '../translations'; import { useKibana, useToasts } from '../../common/lib/kibana'; -import { ServerError } from '../../types'; +import type { ServerError } from '../../types'; import { casesQueriesKeys } from '../constants'; import { bulkGetUserProfiles } from './api'; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/use_get_current_user_profile.test.ts b/x-pack/plugins/cases/public/containers/user_profiles/use_get_current_user_profile.test.ts index ebc896a480cb0..70fac4dd84fe3 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/use_get_current_user_profile.test.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/use_get_current_user_profile.test.ts @@ -8,7 +8,8 @@ import { renderHook } from '@testing-library/react-hooks'; import { useToasts, useKibana } from '../../common/lib/kibana'; import { createStartServicesMock } from '../../common/lib/kibana/kibana_react.mock'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import * as api from './api'; import { useGetCurrentUserProfile } from './use_get_current_user_profile'; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/use_get_current_user_profile.ts b/x-pack/plugins/cases/public/containers/user_profiles/use_get_current_user_profile.ts index d6e3483672554..e98f08ab486f9 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/use_get_current_user_profile.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/use_get_current_user_profile.ts @@ -5,11 +5,12 @@ * 2.0. */ -import { useQuery, UseQueryResult } from '@tanstack/react-query'; -import { UserProfile } from '@kbn/security-plugin/common'; +import type { UseQueryResult } from '@tanstack/react-query'; +import { useQuery } from '@tanstack/react-query'; +import type { UserProfile } from '@kbn/security-plugin/common'; import * as i18n from '../translations'; import { useKibana, useToasts } from '../../common/lib/kibana'; -import { ServerError } from '../../types'; +import type { ServerError } from '../../types'; import { casesQueriesKeys } from '../constants'; import { getCurrentUserProfile } from './api'; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/use_suggest_user_profiles.test.ts b/x-pack/plugins/cases/public/containers/user_profiles/use_suggest_user_profiles.test.ts index 2d4482b94a9c6..7daf1d1d5cf62 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/use_suggest_user_profiles.test.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/use_suggest_user_profiles.test.ts @@ -8,7 +8,8 @@ import { GENERAL_CASES_OWNER } from '../../../common/constants'; import { renderHook } from '@testing-library/react-hooks'; import { useToasts } from '../../common/lib/kibana'; -import { AppMockRenderer, createAppMockRenderer } from '../../common/mock'; +import type { AppMockRenderer } from '../../common/mock'; +import { createAppMockRenderer } from '../../common/mock'; import * as api from './api'; import { useSuggestUserProfiles } from './use_suggest_user_profiles'; diff --git a/x-pack/plugins/cases/public/containers/user_profiles/use_suggest_user_profiles.ts b/x-pack/plugins/cases/public/containers/user_profiles/use_suggest_user_profiles.ts index 74c492850acd4..bc14f103d1547 100644 --- a/x-pack/plugins/cases/public/containers/user_profiles/use_suggest_user_profiles.ts +++ b/x-pack/plugins/cases/public/containers/user_profiles/use_suggest_user_profiles.ts @@ -6,16 +6,18 @@ */ import { useState } from 'react'; -import { useQuery, UseQueryResult } from '@tanstack/react-query'; +import type { UseQueryResult } from '@tanstack/react-query'; +import { useQuery } from '@tanstack/react-query'; import useDebounce from 'react-use/lib/useDebounce'; -import { UserProfile } from '@kbn/security-plugin/common'; +import type { UserProfile } from '@kbn/security-plugin/common'; import { noop } from 'lodash'; import { DEFAULT_USER_SIZE, SEARCH_DEBOUNCE_MS } from '../../../common/constants'; import * as i18n from '../translations'; import { useKibana, useToasts } from '../../common/lib/kibana'; -import { ServerError } from '../../types'; +import type { ServerError } from '../../types'; import { casesQueriesKeys } from '../constants'; -import { suggestUserProfiles, SuggestUserProfilesArgs } from './api'; +import type { SuggestUserProfilesArgs } from './api'; +import { suggestUserProfiles } from './api'; type Props = Omit & { onDebounce?: () => void }; diff --git a/x-pack/plugins/cases/public/containers/utils.test.ts b/x-pack/plugins/cases/public/containers/utils.test.ts index 0dd55fbe8aaca..0886093b9164f 100644 --- a/x-pack/plugins/cases/public/containers/utils.test.ts +++ b/x-pack/plugins/cases/public/containers/utils.test.ts @@ -11,7 +11,7 @@ import { createUpdateSuccessToaster, } from './utils'; -import { Case } from './types'; +import type { Case } from './types'; const caseBeforeUpdate = { comments: [ diff --git a/x-pack/plugins/cases/public/containers/utils.ts b/x-pack/plugins/cases/public/containers/utils.ts index a9a0eff53c07c..e1f5b954a23dc 100644 --- a/x-pack/plugins/cases/public/containers/utils.ts +++ b/x-pack/plugins/cases/public/containers/utils.ts @@ -10,27 +10,29 @@ import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; import { pipe } from 'fp-ts/lib/pipeable'; -import { ToastInputFields } from '@kbn/core/public'; -import { +import type { ToastInputFields } from '@kbn/core/public'; +import type { CaseResponse, - CaseResponseRt, CasesResponse, + CasesConfigurationsResponse, + CasesConfigureResponse, + CaseUserActionsResponse, + CasePatchRequest, + CaseResolveResponse, + SingleCaseMetricsResponse, +} from '../../common/api'; +import { + CaseResponseRt, CasesResponseRt, throwErrors, - CasesConfigurationsResponse, CaseConfigurationsResponseRt, - CasesConfigureResponse, CaseConfigureResponseRt, - CaseUserActionsResponse, CaseUserActionsResponseRt, CommentType, - CasePatchRequest, - CaseResolveResponse, CaseResolveResponseRt, - SingleCaseMetricsResponse, SingleCaseMetricsResponseRt, } from '../../common/api'; -import { Case, UpdateByKey } from './types'; +import type { Case, UpdateByKey } from './types'; import * as i18n from './translations'; export const getTypedPayload = (a: unknown): T => a as T; diff --git a/x-pack/plugins/cases/public/index.tsx b/x-pack/plugins/cases/public/index.tsx index 0f1e8e3cad4f6..7130d412bebf1 100644 --- a/x-pack/plugins/cases/public/index.tsx +++ b/x-pack/plugins/cases/public/index.tsx @@ -5,7 +5,7 @@ * 2.0. */ -import { PluginInitializerContext } from '@kbn/core/public'; +import type { PluginInitializerContext } from '@kbn/core/public'; import { CasesUiPlugin } from './plugin'; export function plugin(initializerContext: PluginInitializerContext) { diff --git a/x-pack/plugins/cases/public/mocks.ts b/x-pack/plugins/cases/public/mocks.ts index 10a4c1f6fd059..10678512d178e 100644 --- a/x-pack/plugins/cases/public/mocks.ts +++ b/x-pack/plugins/cases/public/mocks.ts @@ -6,7 +6,7 @@ */ import { mockCasesContext } from './mocks/mock_cases_context'; -import { CasesUiStart } from './types'; +import type { CasesUiStart } from './types'; const apiMock: jest.Mocked = { getRelatedCases: jest.fn(), diff --git a/x-pack/plugins/cases/public/plugin.ts b/x-pack/plugins/cases/public/plugin.ts index 73c8866ca71a3..51f2ae92e3094 100644 --- a/x-pack/plugins/cases/public/plugin.ts +++ b/x-pack/plugins/cases/public/plugin.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { CoreSetup, CoreStart, Plugin, PluginInitializerContext } from '@kbn/core/public'; -import { ManagementAppMountParams } from '@kbn/management-plugin/public'; +import type { CoreSetup, CoreStart, Plugin, PluginInitializerContext } from '@kbn/core/public'; +import type { ManagementAppMountParams } from '@kbn/management-plugin/public'; import { Storage } from '@kbn/kibana-utils-plugin/public'; -import { CasesUiStart, CasesPluginSetup, CasesPluginStart, CasesUiSetup } from './types'; +import type { CasesUiStart, CasesPluginSetup, CasesPluginStart, CasesUiSetup } from './types'; import { KibanaServices } from './common/lib/kibana'; -import { CasesUiConfigType } from '../common/ui/types'; +import type { CasesUiConfigType } from '../common/ui/types'; import { APP_ID, APP_PATH } from '../common/constants'; import { APP_TITLE, APP_DESC } from './common/translations'; import { useCasesAddToExistingCaseModal } from './components/all_cases/selector_modal/use_cases_add_to_existing_case_modal'; diff --git a/x-pack/plugins/cases/public/types.ts b/x-pack/plugins/cases/public/types.ts index 8b67eb96cda24..732fcfee5f0d6 100644 --- a/x-pack/plugins/cases/public/types.ts +++ b/x-pack/plugins/cases/public/types.ts @@ -7,7 +7,8 @@ import type { CoreStart } from '@kbn/core/public'; import type { IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser'; -import React, { ReactElement } from 'react'; +import type { ReactElement } from 'react'; +import type React from 'react'; import type { DataPublicPluginStart } from '@kbn/data-plugin/public'; import type { EmbeddableStart } from '@kbn/embeddable-plugin/public'; import type { Storage } from '@kbn/kibana-utils-plugin/public'; @@ -20,7 +21,7 @@ import type { SpacesPluginStart } from '@kbn/spaces-plugin/public'; import type { TriggersAndActionsUIPublicPluginStart as TriggersActionsStart } from '@kbn/triggers-actions-ui-plugin/public'; import type { DistributiveOmit } from '@elastic/eui'; import type { ApmBase } from '@elastic/apm-rum'; -import { LicensingPluginStart } from '@kbn/licensing-plugin/public'; +import type { LicensingPluginStart } from '@kbn/licensing-plugin/public'; import type { CasesByAlertId, CasesByAlertIDRequest, @@ -34,19 +35,19 @@ import type { } from '../common/api'; import type { UseCasesAddToExistingCaseModal } from './components/all_cases/selector_modal/use_cases_add_to_existing_case_modal'; import type { UseCasesAddToNewCaseFlyout } from './components/create/flyout/use_cases_add_to_new_case_flyout'; -import { canUseCases } from './client/helpers/can_use_cases'; -import { getRuleIdFromEvent } from './client/helpers/get_rule_id_from_event'; +import type { canUseCases } from './client/helpers/can_use_cases'; +import type { getRuleIdFromEvent } from './client/helpers/get_rule_id_from_event'; import type { GetCasesContextProps } from './client/ui/get_cases_context'; import type { GetCasesProps } from './client/ui/get_cases'; import type { GetAllCasesSelectorModalProps } from './client/ui/get_all_cases_selector_modal'; import type { GetCreateCaseFlyoutProps } from './client/ui/get_create_case_flyout'; import type { GetRecentCasesProps } from './client/ui/get_recent_cases'; import type { Cases, CasesStatus, CasesMetrics } from '../common/ui'; -import { groupAlertsByRule } from './client/helpers/group_alerts_by_rule'; -import { getUICapabilities } from './client/helpers/capabilities'; +import type { groupAlertsByRule } from './client/helpers/group_alerts_by_rule'; +import type { getUICapabilities } from './client/helpers/capabilities'; import type { AttachmentFramework } from './client/attachment_framework/types'; -import { ExternalReferenceAttachmentTypeRegistry } from './client/attachment_framework/external_reference_registry'; -import { PersistableStateAttachmentTypeRegistry } from './client/attachment_framework/persistable_state_registry'; +import type { ExternalReferenceAttachmentTypeRegistry } from './client/attachment_framework/external_reference_registry'; +import type { PersistableStateAttachmentTypeRegistry } from './client/attachment_framework/persistable_state_registry'; export interface CasesPluginSetup { security: SecurityPluginSetup; diff --git a/x-pack/plugins/cases/public/utils/permissions.ts b/x-pack/plugins/cases/public/utils/permissions.ts index 75e15f8859e58..29aba5648abd9 100644 --- a/x-pack/plugins/cases/public/utils/permissions.ts +++ b/x-pack/plugins/cases/public/utils/permissions.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CasesPermissions } from '../../common'; +import type { CasesPermissions } from '../../common'; export const isReadOnlyPermissions = (permissions: CasesPermissions) => { return ( diff --git a/x-pack/plugins/cases/server/attachment_framework/external_reference_registry.ts b/x-pack/plugins/cases/server/attachment_framework/external_reference_registry.ts index 131f91868e0d9..b60992f2faa5a 100644 --- a/x-pack/plugins/cases/server/attachment_framework/external_reference_registry.ts +++ b/x-pack/plugins/cases/server/attachment_framework/external_reference_registry.ts @@ -6,7 +6,7 @@ */ import { AttachmentTypeRegistry } from '../../common/registry'; -import { ExternalReferenceAttachmentType } from './types'; +import type { ExternalReferenceAttachmentType } from './types'; export class ExternalReferenceAttachmentTypeRegistry extends AttachmentTypeRegistry { constructor() { diff --git a/x-pack/plugins/cases/server/attachment_framework/mocks.ts b/x-pack/plugins/cases/server/attachment_framework/mocks.ts index 9de42dc86588f..d0c6fdf037f2b 100644 --- a/x-pack/plugins/cases/server/attachment_framework/mocks.ts +++ b/x-pack/plugins/cases/server/attachment_framework/mocks.ts @@ -7,15 +7,15 @@ import { omit } from 'lodash'; import { CommentType, SECURITY_SOLUTION_OWNER } from '../../common'; -import { +import type { AttributesTypeExternalReferenceNoSO, AttributesTypeExternalReferenceSO, AttributesTypePersistableState, CommentRequestPersistableStateType, - ExternalReferenceStorageType, } from '../../common/api'; +import { ExternalReferenceStorageType } from '../../common/api'; import { PersistableStateAttachmentTypeRegistry } from './persistable_state_registry'; -import { PersistableStateAttachmentTypeSetup, PersistableStateAttachmentState } from './types'; +import type { PersistableStateAttachmentTypeSetup, PersistableStateAttachmentState } from './types'; export const getPersistableAttachment = (): PersistableStateAttachmentTypeSetup => ({ id: '.test', diff --git a/x-pack/plugins/cases/server/attachment_framework/persistable_state_registry.ts b/x-pack/plugins/cases/server/attachment_framework/persistable_state_registry.ts index 5ca965a7da726..c3133a664d965 100644 --- a/x-pack/plugins/cases/server/attachment_framework/persistable_state_registry.ts +++ b/x-pack/plugins/cases/server/attachment_framework/persistable_state_registry.ts @@ -7,7 +7,7 @@ import { identity } from 'lodash'; import { AttachmentTypeRegistry } from '../../common/registry'; -import { PersistableStateAttachmentType, PersistableStateAttachmentTypeSetup } from './types'; +import type { PersistableStateAttachmentType, PersistableStateAttachmentTypeSetup } from './types'; export class PersistableStateAttachmentTypeRegistry extends AttachmentTypeRegistry { constructor() { diff --git a/x-pack/plugins/cases/server/attachment_framework/so_references.ts b/x-pack/plugins/cases/server/attachment_framework/so_references.ts index f6f2435235289..c8ad18e39a7cc 100644 --- a/x-pack/plugins/cases/server/attachment_framework/so_references.ts +++ b/x-pack/plugins/cases/server/attachment_framework/so_references.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { SavedObjectReference } from '@kbn/core/types'; +import type { SavedObjectReference } from '@kbn/core/types'; import { isCommentRequestTypePersistableState } from '../../common/utils/attachments'; -import { CommentRequest, CommentRequestPersistableStateType } from '../../common/api'; -import { PersistableStateAttachmentTypeRegistry } from './persistable_state_registry'; +import type { CommentRequest, CommentRequestPersistableStateType } from '../../common/api'; +import type { PersistableStateAttachmentTypeRegistry } from './persistable_state_registry'; interface SavedObjectAttributesAndReferences { state: CommentRequestPersistableStateType; diff --git a/x-pack/plugins/cases/server/attachment_framework/types.ts b/x-pack/plugins/cases/server/attachment_framework/types.ts index 50d9952a807ad..4b47332c124f5 100644 --- a/x-pack/plugins/cases/server/attachment_framework/types.ts +++ b/x-pack/plugins/cases/server/attachment_framework/types.ts @@ -6,7 +6,7 @@ */ import type { PersistableState, PersistableStateDefinition } from '@kbn/kibana-utils-plugin/common'; -import { CommentRequestPersistableStateType } from '../../common/api'; +import type { CommentRequestPersistableStateType } from '../../common/api'; export type PersistableStateAttachmentState = Pick< CommentRequestPersistableStateType, diff --git a/x-pack/plugins/cases/server/authorization/audit_logger.test.ts b/x-pack/plugins/cases/server/authorization/audit_logger.test.ts index d06881b8c230d..b2bbf1f4afac3 100644 --- a/x-pack/plugins/cases/server/authorization/audit_logger.test.ts +++ b/x-pack/plugins/cases/server/authorization/audit_logger.test.ts @@ -8,7 +8,7 @@ import { auditLoggerMock } from '@kbn/security-plugin/server/audit/mocks'; import { Operations } from '.'; import { AuthorizationAuditLogger } from './audit_logger'; -import { ReadOperations } from './types'; +import type { ReadOperations } from './types'; describe('audit_logger', () => { it('creates a failure message without any owners', () => { diff --git a/x-pack/plugins/cases/server/authorization/audit_logger.ts b/x-pack/plugins/cases/server/authorization/audit_logger.ts index e0f2ae710e6f6..8a415e1b69559 100644 --- a/x-pack/plugins/cases/server/authorization/audit_logger.ts +++ b/x-pack/plugins/cases/server/authorization/audit_logger.ts @@ -5,10 +5,11 @@ * 2.0. */ -import { EcsEventOutcome } from '@kbn/core/server'; -import { AuditEvent, AuditLogger } from '@kbn/security-plugin/server'; -import { DATABASE_CATEGORY, ECS_OUTCOMES, isWriteOperation, OperationDetails } from '.'; -import { OwnerEntity } from './types'; +import type { EcsEventOutcome } from '@kbn/core/server'; +import type { AuditEvent, AuditLogger } from '@kbn/security-plugin/server'; +import type { OperationDetails } from '.'; +import { DATABASE_CATEGORY, ECS_OUTCOMES, isWriteOperation } from '.'; +import type { OwnerEntity } from './types'; interface CreateAuditMsgParams { operation: OperationDetails; diff --git a/x-pack/plugins/cases/server/authorization/authorization.test.ts b/x-pack/plugins/cases/server/authorization/authorization.test.ts index 3e59617856c2b..0483489d6c8a2 100644 --- a/x-pack/plugins/cases/server/authorization/authorization.test.ts +++ b/x-pack/plugins/cases/server/authorization/authorization.test.ts @@ -9,14 +9,14 @@ import { securityMock } from '@kbn/security-plugin/server/mocks'; import { httpServerMock, loggingSystemMock } from '@kbn/core/server/mocks'; import { featuresPluginMock } from '@kbn/features-plugin/server/mocks'; import { Authorization, Operations } from '.'; -import { Space, SpacesPluginStart } from '@kbn/spaces-plugin/server'; +import type { Space, SpacesPluginStart } from '@kbn/spaces-plugin/server'; import { spacesMock } from '@kbn/spaces-plugin/server/mocks'; import { AuthorizationAuditLogger } from './audit_logger'; -import { KibanaRequest } from '@kbn/core/server'; -import { KibanaFeature } from '@kbn/features-plugin/common'; -import { AuditLogger, SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { KibanaRequest } from '@kbn/core/server'; +import type { KibanaFeature } from '@kbn/features-plugin/common'; +import type { AuditLogger, SecurityPluginStart } from '@kbn/security-plugin/server'; import { auditLoggerMock } from '@kbn/security-plugin/server/audit/mocks'; -import { PluginStartContract as FeaturesPluginStart } from '@kbn/features-plugin/server'; +import type { PluginStartContract as FeaturesPluginStart } from '@kbn/features-plugin/server'; const createSpacesDisabledFeaturesMock = (disabledFeatures: string[] = []) => { const spacesStart: jest.Mocked = spacesMock.createStart(); diff --git a/x-pack/plugins/cases/server/authorization/authorization.ts b/x-pack/plugins/cases/server/authorization/authorization.ts index 3f2cb9196d8e0..f3b3b871810b4 100644 --- a/x-pack/plugins/cases/server/authorization/authorization.ts +++ b/x-pack/plugins/cases/server/authorization/authorization.ts @@ -5,14 +5,15 @@ * 2.0. */ -import { KibanaRequest, Logger } from '@kbn/core/server'; +import type { KibanaRequest, Logger } from '@kbn/core/server'; import Boom from '@hapi/boom'; -import { SecurityPluginStart } from '@kbn/security-plugin/server'; -import { PluginStartContract as FeaturesPluginStart } from '@kbn/features-plugin/server'; -import { Space, SpacesPluginStart } from '@kbn/spaces-plugin/server'; -import { AuthFilterHelpers, OwnerEntity } from './types'; +import type { SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { PluginStartContract as FeaturesPluginStart } from '@kbn/features-plugin/server'; +import type { Space, SpacesPluginStart } from '@kbn/spaces-plugin/server'; +import type { AuthFilterHelpers, OwnerEntity } from './types'; import { getOwnersFilter } from './utils'; -import { AuthorizationAuditLogger, OperationDetails } from '.'; +import type { OperationDetails } from '.'; +import { AuthorizationAuditLogger } from '.'; import { createCaseError } from '../common/error'; /** diff --git a/x-pack/plugins/cases/server/authorization/index.test.ts b/x-pack/plugins/cases/server/authorization/index.test.ts index df74b230c6435..8ed6deae95dac 100644 --- a/x-pack/plugins/cases/server/authorization/index.test.ts +++ b/x-pack/plugins/cases/server/authorization/index.test.ts @@ -6,7 +6,7 @@ */ import { isWriteOperation, Operations } from '.'; -import { OperationDetails } from './types'; +import type { OperationDetails } from './types'; describe('index tests', () => { it('should identify a write operation', () => { diff --git a/x-pack/plugins/cases/server/authorization/index.ts b/x-pack/plugins/cases/server/authorization/index.ts index 122eb90f44dc1..44e8a50c931d8 100644 --- a/x-pack/plugins/cases/server/authorization/index.ts +++ b/x-pack/plugins/cases/server/authorization/index.ts @@ -5,15 +5,16 @@ * 2.0. */ -import { EcsEventCategory, EcsEventOutcome, EcsEventType } from '@kbn/core/server'; -import { CasesSupportedOperations } from '@kbn/security-plugin/server'; +import type { EcsEventCategory, EcsEventOutcome, EcsEventType } from '@kbn/core/server'; +import type { CasesSupportedOperations } from '@kbn/security-plugin/server'; import { CASE_COMMENT_SAVED_OBJECT, CASE_CONFIGURE_SAVED_OBJECT, CASE_SAVED_OBJECT, CASE_USER_ACTION_SAVED_OBJECT, } from '../../common/constants'; -import { Verbs, ReadOperations, WriteOperations, OperationDetails } from './types'; +import type { Verbs, OperationDetails } from './types'; +import { ReadOperations, WriteOperations } from './types'; export * from './authorization'; export * from './audit_logger'; diff --git a/x-pack/plugins/cases/server/authorization/mock.ts b/x-pack/plugins/cases/server/authorization/mock.ts index 555d3ac7a9991..2e94915df39b1 100644 --- a/x-pack/plugins/cases/server/authorization/mock.ts +++ b/x-pack/plugins/cases/server/authorization/mock.ts @@ -6,7 +6,7 @@ */ import type { PublicMethodsOf } from '@kbn/utility-types'; -import { Authorization } from './authorization'; +import type { Authorization } from './authorization'; type Schema = PublicMethodsOf; export type AuthorizationMock = jest.Mocked; diff --git a/x-pack/plugins/cases/server/authorization/types.ts b/x-pack/plugins/cases/server/authorization/types.ts index 58418efb6b25b..c27070cb74805 100644 --- a/x-pack/plugins/cases/server/authorization/types.ts +++ b/x-pack/plugins/cases/server/authorization/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { EcsEventType } from '@kbn/core/server'; +import type { EcsEventType } from '@kbn/core/server'; import type { KueryNode } from '@kbn/es-query'; -import { CasesSupportedOperations } from '@kbn/security-plugin/server'; +import type { CasesSupportedOperations } from '@kbn/security-plugin/server'; /** * The tenses for describing the action performed by a API route diff --git a/x-pack/plugins/cases/server/authorization/utils.ts b/x-pack/plugins/cases/server/authorization/utils.ts index d33d3dd99a47f..3717140a7c18b 100644 --- a/x-pack/plugins/cases/server/authorization/utils.ts +++ b/x-pack/plugins/cases/server/authorization/utils.ts @@ -6,7 +6,8 @@ */ import { remove, uniq } from 'lodash'; -import { nodeBuilder, KueryNode } from '@kbn/es-query'; +import type { KueryNode } from '@kbn/es-query'; +import { nodeBuilder } from '@kbn/es-query'; import { OWNER_FIELD } from '../../common/api'; export const getOwnersFilter = ( diff --git a/x-pack/plugins/cases/server/client/alerts/get.test.ts b/x-pack/plugins/cases/server/client/alerts/get.test.ts index 41c6a665f74e7..8659a190ef7a9 100644 --- a/x-pack/plugins/cases/server/client/alerts/get.test.ts +++ b/x-pack/plugins/cases/server/client/alerts/get.test.ts @@ -7,7 +7,7 @@ import { elasticsearchServiceMock, loggingSystemMock } from '@kbn/core/server/mocks'; import { AlertService } from '../../services'; -import { CasesClientArgs } from '../types'; +import type { CasesClientArgs } from '../types'; import { getAlerts } from './get'; describe('getAlerts', () => { diff --git a/x-pack/plugins/cases/server/client/alerts/get.ts b/x-pack/plugins/cases/server/client/alerts/get.ts index acc0f5e895cdc..dead5d73fbf3d 100644 --- a/x-pack/plugins/cases/server/client/alerts/get.ts +++ b/x-pack/plugins/cases/server/client/alerts/get.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { MgetResponseItem, GetGetResult } from '@elastic/elasticsearch/lib/api/types'; -import { CasesClientGetAlertsResponse } from './types'; -import { CasesClientArgs } from '..'; -import { AlertInfo } from '../../common/types'; -import { Alert } from '../../services/alerts'; +import type { MgetResponseItem, GetGetResult } from '@elastic/elasticsearch/lib/api/types'; +import type { CasesClientGetAlertsResponse } from './types'; +import type { CasesClientArgs } from '..'; +import type { AlertInfo } from '../../common/types'; +import type { Alert } from '../../services/alerts'; function isAlert( doc?: MgetResponseItem diff --git a/x-pack/plugins/cases/server/client/alerts/types.ts b/x-pack/plugins/cases/server/client/alerts/types.ts index cba18cc26e8b7..23eef9850be24 100644 --- a/x-pack/plugins/cases/server/client/alerts/types.ts +++ b/x-pack/plugins/cases/server/client/alerts/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { CaseStatuses } from '../../../common/api'; -import { AlertInfo } from '../../common/types'; +import type { CaseStatuses } from '../../../common/api'; +import type { AlertInfo } from '../../common/types'; interface Alert { id: string; diff --git a/x-pack/plugins/cases/server/client/attachments/add.ts b/x-pack/plugins/cases/server/client/attachments/add.ts index 979828c35ecdd..333d5bfdb6771 100644 --- a/x-pack/plugins/cases/server/client/attachments/add.ts +++ b/x-pack/plugins/cases/server/client/attachments/add.ts @@ -16,11 +16,12 @@ import { isCommentRequestTypeExternalReference, isCommentRequestTypePersistableState, } from '../../../common/utils/attachments'; -import { CaseResponse, CommentRequest, CommentRequestRt, throwErrors } from '../../../common/api'; +import type { CaseResponse, CommentRequest } from '../../../common/api'; +import { CommentRequestRt, throwErrors } from '../../../common/api'; import { CaseCommentModel } from '../../common/models'; import { createCaseError } from '../../common/error'; -import { CasesClientArgs } from '..'; +import type { CasesClientArgs } from '..'; import { decodeCommentRequest } from '../utils'; import { Operations } from '../../authorization'; diff --git a/x-pack/plugins/cases/server/client/attachments/bulk_create.ts b/x-pack/plugins/cases/server/client/attachments/bulk_create.ts index efd6fa833c9e4..60e98c54631ea 100644 --- a/x-pack/plugins/cases/server/client/attachments/bulk_create.ts +++ b/x-pack/plugins/cases/server/client/attachments/bulk_create.ts @@ -12,20 +12,16 @@ import { identity } from 'fp-ts/lib/function'; import { SavedObjectsUtils } from '@kbn/core/server'; -import { - BulkCreateCommentRequest, - BulkCreateCommentRequestRt, - CaseResponse, - CommentRequest, - throwErrors, -} from '../../../common/api'; +import type { BulkCreateCommentRequest, CaseResponse, CommentRequest } from '../../../common/api'; +import { BulkCreateCommentRequestRt, throwErrors } from '../../../common/api'; import { CaseCommentModel } from '../../common/models'; import { createCaseError } from '../../common/error'; -import { CasesClientArgs } from '..'; +import type { CasesClientArgs } from '..'; import { decodeCommentRequest } from '../utils'; -import { Operations, OwnerEntity } from '../../authorization'; +import type { OwnerEntity } from '../../authorization'; +import { Operations } from '../../authorization'; export interface BulkCreateArgs { caseId: string; diff --git a/x-pack/plugins/cases/server/client/attachments/client.ts b/x-pack/plugins/cases/server/client/attachments/client.ts index 63b039890aff9..c8cb26a886acf 100644 --- a/x-pack/plugins/cases/server/client/attachments/client.ts +++ b/x-pack/plugins/cases/server/client/attachments/client.ts @@ -5,26 +5,22 @@ * 2.0. */ -import { AlertResponse, CommentResponse } from '../../../common/api'; -import { CasesClient } from '../client'; +import type { AlertResponse, CommentResponse } from '../../../common/api'; +import type { CasesClient } from '../client'; -import { CasesClientInternal } from '../client_internal'; -import { IAllCommentsResponse, ICaseResponse, ICommentsResponse } from '../typedoc_interfaces'; -import { CasesClientArgs } from '../types'; -import { AddArgs, addComment } from './add'; -import { bulkCreate, BulkCreateArgs } from './bulk_create'; -import { DeleteAllArgs, deleteAll, DeleteArgs, deleteComment } from './delete'; -import { - find, - FindArgs, - get, - getAll, - getAllAlertsAttachToCase, - GetAllAlertsAttachToCase, - GetAllArgs, - GetArgs, -} from './get'; -import { update, UpdateArgs } from './update'; +import type { CasesClientInternal } from '../client_internal'; +import type { IAllCommentsResponse, ICaseResponse, ICommentsResponse } from '../typedoc_interfaces'; +import type { CasesClientArgs } from '../types'; +import type { AddArgs } from './add'; +import { addComment } from './add'; +import type { BulkCreateArgs } from './bulk_create'; +import { bulkCreate } from './bulk_create'; +import type { DeleteAllArgs, DeleteArgs } from './delete'; +import { deleteAll, deleteComment } from './delete'; +import type { FindArgs, GetAllAlertsAttachToCase, GetAllArgs, GetArgs } from './get'; +import { find, get, getAll, getAllAlertsAttachToCase } from './get'; +import type { UpdateArgs } from './update'; +import { update } from './update'; /** * API for interacting with the attachments to a case. diff --git a/x-pack/plugins/cases/server/client/attachments/delete.ts b/x-pack/plugins/cases/server/client/attachments/delete.ts index e8ac07d78527f..3a1ad6a358b69 100644 --- a/x-pack/plugins/cases/server/client/attachments/delete.ts +++ b/x-pack/plugins/cases/server/client/attachments/delete.ts @@ -8,10 +8,11 @@ import Boom from '@hapi/boom'; import pMap from 'p-map'; -import { SavedObject } from '@kbn/core/server'; -import { Actions, ActionTypes, CommentAttributes } from '../../../common/api'; +import type { SavedObject } from '@kbn/core/server'; +import type { CommentAttributes } from '../../../common/api'; +import { Actions, ActionTypes } from '../../../common/api'; import { CASE_SAVED_OBJECT, MAX_CONCURRENT_SEARCHES } from '../../../common/constants'; -import { CasesClientArgs } from '../types'; +import type { CasesClientArgs } from '../types'; import { createCaseError } from '../../common/error'; import { Operations } from '../../authorization'; diff --git a/x-pack/plugins/cases/server/client/attachments/get.ts b/x-pack/plugins/cases/server/client/attachments/get.ts index 997d0609570b0..adbdd3abf2448 100644 --- a/x-pack/plugins/cases/server/client/attachments/get.ts +++ b/x-pack/plugins/cases/server/client/attachments/get.ts @@ -4,19 +4,17 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { SavedObject } from '@kbn/core/server'; +import type { SavedObject } from '@kbn/core/server'; -import { +import type { AlertResponse, AllCommentsResponse, - AllCommentsResponseRt, AttributesTypeAlerts, CommentResponse, - CommentResponseRt, CommentsResponse, - CommentsResponseRt, FindQueryParams, } from '../../../common/api'; +import { AllCommentsResponseRt, CommentResponseRt, CommentsResponseRt } from '../../../common/api'; import { defaultSortField, transformComments, @@ -26,11 +24,11 @@ import { } from '../../common/utils'; import { createCaseError } from '../../common/error'; import { DEFAULT_PAGE, DEFAULT_PER_PAGE } from '../../routes/api'; -import { CasesClientArgs } from '../types'; +import type { CasesClientArgs } from '../types'; import { combineFilters, stringToKueryNode } from '../utils'; import { Operations } from '../../authorization'; import { includeFieldsRequiredForAuthentication } from '../../authorization/utils'; -import { CasesClient } from '../client'; +import type { CasesClient } from '../client'; /** * Parameters for finding attachments of a case diff --git a/x-pack/plugins/cases/server/client/attachments/update.ts b/x-pack/plugins/cases/server/client/attachments/update.ts index 674e453c851dd..f1ce5568c78bb 100644 --- a/x-pack/plugins/cases/server/client/attachments/update.ts +++ b/x-pack/plugins/cases/server/client/attachments/update.ts @@ -10,9 +10,9 @@ import Boom from '@hapi/boom'; import { CaseCommentModel } from '../../common/models'; import { createCaseError } from '../../common/error'; import { isCommentRequestTypeExternalReference } from '../../../common/utils/attachments'; -import { CaseResponse, CommentPatchRequest } from '../../../common/api'; +import type { CaseResponse, CommentPatchRequest } from '../../../common/api'; import { CASE_SAVED_OBJECT } from '../../../common/constants'; -import { CasesClientArgs } from '..'; +import type { CasesClientArgs } from '..'; import { decodeCommentRequest } from '../utils'; import { Operations } from '../../authorization'; diff --git a/x-pack/plugins/cases/server/client/cases/client.ts b/x-pack/plugins/cases/server/client/cases/client.ts index b2673eef33dd5..f39f4ab50c5c3 100644 --- a/x-pack/plugins/cases/server/client/cases/client.ts +++ b/x-pack/plugins/cases/server/client/cases/client.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { CasePostRequest, CasesPatchRequest, CasesFindRequest, @@ -14,9 +14,9 @@ import { AllReportersFindRequest, CasesByAlertId, } from '../../../common/api'; -import { CasesClient } from '../client'; -import { CasesClientInternal } from '../client_internal'; -import { +import type { CasesClient } from '../client'; +import type { CasesClientInternal } from '../client_internal'; +import type { ICasePostRequest, ICaseResolveResponse, ICaseResponse, @@ -25,20 +25,14 @@ import { ICasesPatchRequest, ICasesResponse, } from '../typedoc_interfaces'; -import { CasesClientArgs } from '../types'; +import type { CasesClientArgs } from '../types'; import { create } from './create'; import { deleteCases } from './delete'; import { find } from './find'; -import { - CasesByAlertIDParams, - get, - resolve, - getCasesByAlertID, - GetParams, - getReporters, - getTags, -} from './get'; -import { push, PushParams } from './push'; +import type { CasesByAlertIDParams, GetParams } from './get'; +import { get, resolve, getCasesByAlertID, getReporters, getTags } from './get'; +import type { PushParams } from './push'; +import { push } from './push'; import { update } from './update'; /** diff --git a/x-pack/plugins/cases/server/client/cases/create.ts b/x-pack/plugins/cases/server/client/cases/create.ts index 1a2fa2f9334d8..ba3da0eefe053 100644 --- a/x-pack/plugins/cases/server/client/cases/create.ts +++ b/x-pack/plugins/cases/server/client/cases/create.ts @@ -12,11 +12,10 @@ import { identity } from 'fp-ts/lib/function'; import { SavedObjectsUtils } from '@kbn/core/server'; +import type { CaseResponse, CasePostRequest } from '../../../common/api'; import { throwErrors, CaseResponseRt, - CaseResponse, - CasePostRequest, ActionTypes, CasePostRequestRt, excess, @@ -28,7 +27,7 @@ import { isInvalidTag, areTotalAssigneesInvalid } from '../../../common/utils/va import { Operations } from '../../authorization'; import { createCaseError } from '../../common/error'; import { flattenCaseSavedObject, transformNewCase } from '../../common/utils'; -import { CasesClientArgs } from '..'; +import type { CasesClientArgs } from '..'; import { LICENSING_CASE_ASSIGNMENT_FEATURE } from '../../common/constants'; /** diff --git a/x-pack/plugins/cases/server/client/cases/delete.ts b/x-pack/plugins/cases/server/client/cases/delete.ts index 95a0c81c00563..7f09bb46288c2 100644 --- a/x-pack/plugins/cases/server/client/cases/delete.ts +++ b/x-pack/plugins/cases/server/client/cases/delete.ts @@ -7,12 +7,13 @@ import pMap from 'p-map'; import { Boom } from '@hapi/boom'; -import { SavedObjectsFindResponse } from '@kbn/core/server'; -import { CommentAttributes } from '../../../common/api'; +import type { SavedObjectsFindResponse } from '@kbn/core/server'; +import type { CommentAttributes } from '../../../common/api'; import { MAX_CONCURRENT_SEARCHES } from '../../../common/constants'; -import { CasesClientArgs } from '..'; +import type { CasesClientArgs } from '..'; import { createCaseError } from '../../common/error'; -import { Operations, OwnerEntity } from '../../authorization'; +import type { OwnerEntity } from '../../authorization'; +import { Operations } from '../../authorization'; /** * Deletes the specified cases and their attachments. diff --git a/x-pack/plugins/cases/server/client/cases/find.ts b/x-pack/plugins/cases/server/client/cases/find.ts index 012c82aac9018..db980c058fbb5 100644 --- a/x-pack/plugins/cases/server/client/cases/find.ts +++ b/x-pack/plugins/cases/server/client/cases/find.ts @@ -11,22 +11,16 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; -import { - CasesFindResponse, - CasesFindRequest, - CasesFindRequestRt, - throwErrors, - CasesFindResponseRt, - excess, -} from '../../../common/api'; +import type { CasesFindResponse, CasesFindRequest } from '../../../common/api'; +import { CasesFindRequestRt, throwErrors, CasesFindResponseRt, excess } from '../../../common/api'; import { createCaseError } from '../../common/error'; import { asArray, transformCases } from '../../common/utils'; import { constructQueryOptions } from '../utils'; import { includeFieldsRequiredForAuthentication } from '../../authorization/utils'; import { Operations } from '../../authorization'; -import { CasesClientArgs } from '..'; -import { ConstructQueryParams } from '../types'; +import type { CasesClientArgs } from '..'; +import type { ConstructQueryParams } from '../types'; import { LICENSING_CASE_ASSIGNMENT_FEATURE } from '../../common/constants'; /** diff --git a/x-pack/plugins/cases/server/client/cases/get.ts b/x-pack/plugins/cases/server/client/cases/get.ts index 210c615d7dd4f..27d098702f4c8 100644 --- a/x-pack/plugins/cases/server/client/cases/get.ts +++ b/x-pack/plugins/cases/server/client/cases/get.ts @@ -9,28 +9,30 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; -import { SavedObject, SavedObjectsResolveResponse } from '@kbn/core/server'; -import { - CaseResponseRt, +import type { SavedObject, SavedObjectsResolveResponse } from '@kbn/core/server'; +import type { CaseResponse, - CaseResolveResponseRt, CaseResolveResponse, User, AllTagsFindRequest, + AllReportersFindRequest, + CasesByAlertIDRequest, + CasesByAlertId, + CaseAttributes, +} from '../../../common/api'; +import { + CaseResponseRt, + CaseResolveResponseRt, AllTagsFindRequestRt, excess, throwErrors, AllReportersFindRequestRt, - AllReportersFindRequest, - CasesByAlertIDRequest, CasesByAlertIDRequestRt, - CasesByAlertId, CasesByAlertIdRt, - CaseAttributes, } from '../../../common/api'; import { createCaseError } from '../../common/error'; import { countAlertsForID, flattenCaseSavedObject } from '../../common/utils'; -import { CasesClientArgs } from '..'; +import type { CasesClientArgs } from '..'; import { Operations } from '../../authorization'; import { combineAuthorizedAndOwnerFilter } from '../utils'; import { CasesService } from '../../services'; diff --git a/x-pack/plugins/cases/server/client/cases/mock.ts b/x-pack/plugins/cases/server/client/cases/mock.ts index a7ffe2a3c8bd3..3d10e459eae8a 100644 --- a/x-pack/plugins/cases/server/client/cases/mock.ts +++ b/x-pack/plugins/cases/server/client/cases/mock.ts @@ -5,14 +5,16 @@ * 2.0. */ -import { +import type { CommentResponse, - CommentType, CaseUserActionsResponse, CommentResponseAlertsType, + ConnectorMappingsAttributes, +} from '../../../common/api'; +import { + CommentType, ConnectorTypes, Actions, - ConnectorMappingsAttributes, ExternalReferenceStorageType, } from '../../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../../common/constants'; diff --git a/x-pack/plugins/cases/server/client/cases/push.ts b/x-pack/plugins/cases/server/client/cases/push.ts index 6cca689057680..4bc01a8ea62d4 100644 --- a/x-pack/plugins/cases/server/client/cases/push.ts +++ b/x-pack/plugins/cases/server/client/cases/push.ts @@ -7,22 +7,24 @@ import Boom from '@hapi/boom'; import { nodeBuilder } from '@kbn/es-query'; -import { SavedObjectsFindResponse } from '@kbn/core/server'; +import type { SavedObjectsFindResponse } from '@kbn/core/server'; -import { UserProfile } from '@kbn/security-plugin/common'; -import { SecurityPluginStart } from '@kbn/security-plugin/server'; -import { +import type { UserProfile } from '@kbn/security-plugin/common'; +import type { SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { ActionConnector, - CaseResponseRt, CaseResponse, - CaseStatuses, ExternalServiceResponse, CasesConfigureAttributes, + CommentRequestAlertType, + CommentAttributes, +} from '../../../common/api'; +import { + CaseResponseRt, + CaseStatuses, ActionTypes, OWNER_FIELD, CommentType, - CommentRequestAlertType, - CommentAttributes, } from '../../../common/api'; import { CASE_COMMENT_SAVED_OBJECT } from '../../../common/constants'; @@ -33,12 +35,12 @@ import { flattenCaseSavedObject, getAlertInfoFromComments, } from '../../common/utils'; -import { CasesClient, CasesClientArgs, CasesClientInternal } from '..'; +import type { CasesClient, CasesClientArgs, CasesClientInternal } from '..'; import { Operations } from '../../authorization'; import { casesConnectors } from '../../connectors'; import { getAlerts } from '../alerts/get'; import { buildFilter } from '../utils'; -import { ICaseResponse } from '../typedoc_interfaces'; +import type { ICaseResponse } from '../typedoc_interfaces'; /** * Returns true if the case should be closed based on the configuration settings. diff --git a/x-pack/plugins/cases/server/client/cases/update.ts b/x-pack/plugins/cases/server/client/cases/update.ts index 70d548851f6e9..1a6f8301ec93f 100644 --- a/x-pack/plugins/cases/server/client/cases/update.ts +++ b/x-pack/plugins/cases/server/client/cases/update.ts @@ -10,24 +10,30 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; -import { SavedObject, SavedObjectsFindResponse, SavedObjectsFindResult } from '@kbn/core/server'; +import type { + SavedObject, + SavedObjectsFindResponse, + SavedObjectsFindResult, +} from '@kbn/core/server'; import { nodeBuilder } from '@kbn/es-query'; import { areTotalAssigneesInvalid } from '../../../common/utils/validators'; -import { +import type { CasePatchRequest, CasesPatchRequest, - CasesPatchRequestRt, CasesResponse, + CommentAttributes, + CaseAttributes, + User, +} from '../../../common/api'; +import { + CasesPatchRequestRt, CasesResponseRt, CaseStatuses, - CommentAttributes, CommentType, excess, throwErrors, - CaseAttributes, - User, } from '../../../common/api'; import { CASE_COMMENT_SAVED_OBJECT, @@ -38,19 +44,20 @@ import { import { getCaseToUpdate } from '../utils'; -import { AlertService, CasesService } from '../../services'; +import type { AlertService, CasesService } from '../../services'; import { createCaseError } from '../../common/error'; import { createAlertUpdateRequest, flattenCaseSavedObject, isCommentRequestTypeAlert, } from '../../common/utils'; -import { UpdateAlertRequest } from '../alerts/types'; -import { CasesClientArgs } from '..'; -import { Operations, OwnerEntity } from '../../authorization'; +import type { UpdateAlertRequest } from '../alerts/types'; +import type { CasesClientArgs } from '..'; +import type { OwnerEntity } from '../../authorization'; +import { Operations } from '../../authorization'; import { dedupAssignees, getClosedInfoForUpdate, getDurationForUpdate } from './utils'; import { LICENSING_CASE_ASSIGNMENT_FEATURE } from '../../common/constants'; -import { LicensingService } from '../../services/licensing'; +import type { LicensingService } from '../../services/licensing'; /** * Throws an error if any of the requests attempt to update the owner of a case. diff --git a/x-pack/plugins/cases/server/client/cases/utils.ts b/x-pack/plugins/cases/server/client/cases/utils.ts index 92bba3fa7e9e1..e56ee316f653a 100644 --- a/x-pack/plugins/cases/server/client/cases/utils.ts +++ b/x-pack/plugins/cases/server/client/cases/utils.ts @@ -6,19 +6,16 @@ */ import { uniqBy, isEmpty } from 'lodash'; -import { UserProfile } from '@kbn/security-plugin/common'; -import { IBasePath } from '@kbn/core-http-browser'; +import type { UserProfile } from '@kbn/security-plugin/common'; +import type { IBasePath } from '@kbn/core-http-browser'; import { CASE_VIEW_PAGE_TABS } from '../../../common/types'; import { isPushedUserAction } from '../../../common/utils/user_actions'; -import { +import type { ActionConnector, CaseFullExternalService, CaseResponse, CaseUserActionsResponse, CommentResponse, - CommentType, - ActionTypes, - CaseStatuses, User, CaseAttributes, CaseAssignees, @@ -26,10 +23,11 @@ import { CaseField, ThirdPartyField, } from '../../../common/api'; -import { CasesClientGetAlertsResponse } from '../alerts/types'; -import { ExternalServiceComment, ExternalServiceIncident } from './types'; +import { CommentType, ActionTypes, CaseStatuses } from '../../../common/api'; +import type { CasesClientGetAlertsResponse } from '../alerts/types'; +import type { ExternalServiceComment, ExternalServiceIncident } from './types'; import { getAlertIds } from '../utils'; -import { CasesConnectorsMap } from '../../connectors'; +import type { CasesConnectorsMap } from '../../connectors'; import { getCaseViewPath } from '../../common/utils'; import * as i18n from './translations'; diff --git a/x-pack/plugins/cases/server/client/client.ts b/x-pack/plugins/cases/server/client/client.ts index 266c988212cdf..c37a96db89a1b 100644 --- a/x-pack/plugins/cases/server/client/client.ts +++ b/x-pack/plugins/cases/server/client/client.ts @@ -5,13 +5,19 @@ * 2.0. */ -import { CasesClientArgs } from './types'; -import { CasesSubClient, createCasesSubClient } from './cases/client'; -import { AttachmentsSubClient, createAttachmentsSubClient } from './attachments/client'; -import { UserActionsSubClient, createUserActionsSubClient } from './user_actions/client'; -import { CasesClientInternal, createCasesClientInternal } from './client_internal'; -import { ConfigureSubClient, createConfigurationSubClient } from './configure/client'; -import { createMetricsSubClient, MetricsSubClient } from './metrics/client'; +import type { CasesClientArgs } from './types'; +import type { CasesSubClient } from './cases/client'; +import { createCasesSubClient } from './cases/client'; +import type { AttachmentsSubClient } from './attachments/client'; +import { createAttachmentsSubClient } from './attachments/client'; +import type { UserActionsSubClient } from './user_actions/client'; +import { createUserActionsSubClient } from './user_actions/client'; +import type { CasesClientInternal } from './client_internal'; +import { createCasesClientInternal } from './client_internal'; +import type { ConfigureSubClient } from './configure/client'; +import { createConfigurationSubClient } from './configure/client'; +import type { MetricsSubClient } from './metrics/client'; +import { createMetricsSubClient } from './metrics/client'; /** * Client wrapper that contains accessor methods for individual entities within the cases system. diff --git a/x-pack/plugins/cases/server/client/client_internal.ts b/x-pack/plugins/cases/server/client/client_internal.ts index 57b9a0ffbc243..c7489cdeb133a 100644 --- a/x-pack/plugins/cases/server/client/client_internal.ts +++ b/x-pack/plugins/cases/server/client/client_internal.ts @@ -5,11 +5,9 @@ * 2.0. */ -import { CasesClientArgs } from './types'; -import { - InternalConfigureSubClient, - createInternalConfigurationSubClient, -} from './configure/client'; +import type { CasesClientArgs } from './types'; +import type { InternalConfigureSubClient } from './configure/client'; +import { createInternalConfigurationSubClient } from './configure/client'; export class CasesClientInternal { private readonly _configuration: InternalConfigureSubClient; diff --git a/x-pack/plugins/cases/server/client/configure/client.test.ts b/x-pack/plugins/cases/server/client/configure/client.test.ts index 126e479238a25..7ee4bddf1d5a5 100644 --- a/x-pack/plugins/cases/server/client/configure/client.test.ts +++ b/x-pack/plugins/cases/server/client/configure/client.test.ts @@ -7,7 +7,7 @@ import { loggingSystemMock } from '@kbn/core/server/mocks'; import { actionsClientMock } from '@kbn/actions-plugin/server/mocks'; -import { CasesClientArgs } from '../types'; +import type { CasesClientArgs } from '../types'; import { getConnectors } from './client'; describe('client', () => { diff --git a/x-pack/plugins/cases/server/client/configure/client.ts b/x-pack/plugins/cases/server/client/configure/client.ts index 8efc9d82ea322..aae777d66ea2f 100644 --- a/x-pack/plugins/cases/server/client/configure/client.ts +++ b/x-pack/plugins/cases/server/client/configure/client.ts @@ -11,37 +11,41 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; -import { SavedObject, SavedObjectsFindResponse, SavedObjectsUtils } from '@kbn/core/server'; -import { FindActionResult } from '@kbn/actions-plugin/server/types'; -import { ActionType, CasesConnectorFeatureId } from '@kbn/actions-plugin/common'; -import { - CaseConfigurationsResponseRt, - CaseConfigureResponseRt, +import type { SavedObject, SavedObjectsFindResponse } from '@kbn/core/server'; +import { SavedObjectsUtils } from '@kbn/core/server'; +import type { FindActionResult } from '@kbn/actions-plugin/server/types'; +import type { ActionType } from '@kbn/actions-plugin/common'; +import { CasesConnectorFeatureId } from '@kbn/actions-plugin/common'; +import type { CasesConfigurationsResponse, CasesConfigureAttributes, CasesConfigurePatch, - CasesConfigurePatchRt, CasesConfigureRequest, CasesConfigureResponse, ConnectorMappings, ConnectorMappingsAttributes, - excess, GetConfigureFindRequest, +} from '../../../common/api'; +import { + CaseConfigurationsResponseRt, + CaseConfigureResponseRt, + CasesConfigurePatchRt, + excess, GetConfigureFindRequestRt, throwErrors, } from '../../../common/api'; import { MAX_CONCURRENT_SEARCHES } from '../../../common/constants'; import { createCaseError } from '../../common/error'; -import { CasesClientInternal } from '../client_internal'; -import { CasesClientArgs } from '../types'; +import type { CasesClientInternal } from '../client_internal'; +import type { CasesClientArgs } from '../types'; import { getMappings } from './get_mappings'; import { Operations } from '../../authorization'; import { combineAuthorizedAndOwnerFilter } from '../utils'; -import { MappingsArgs, CreateMappingsArgs, UpdateMappingsArgs } from './types'; +import type { MappingsArgs, CreateMappingsArgs, UpdateMappingsArgs } from './types'; import { createMappings } from './create_mappings'; import { updateMappings } from './update_mappings'; -import { +import type { ICasesConfigurePatch, ICasesConfigureRequest, ICasesConfigureResponse, diff --git a/x-pack/plugins/cases/server/client/configure/create_mappings.ts b/x-pack/plugins/cases/server/client/configure/create_mappings.ts index f69f740ae2fcb..904c7accede14 100644 --- a/x-pack/plugins/cases/server/client/configure/create_mappings.ts +++ b/x-pack/plugins/cases/server/client/configure/create_mappings.ts @@ -6,10 +6,10 @@ */ import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; -import { ConnectorMappingsAttributes } from '../../../common/api'; +import type { ConnectorMappingsAttributes } from '../../../common/api'; import { createCaseError } from '../../common/error'; -import { CasesClientArgs } from '..'; -import { CreateMappingsArgs } from './types'; +import type { CasesClientArgs } from '..'; +import type { CreateMappingsArgs } from './types'; import { casesConnectors } from '../../connectors'; export const createMappings = async ( diff --git a/x-pack/plugins/cases/server/client/configure/get_mappings.ts b/x-pack/plugins/cases/server/client/configure/get_mappings.ts index 464619e800368..845425d8044d4 100644 --- a/x-pack/plugins/cases/server/client/configure/get_mappings.ts +++ b/x-pack/plugins/cases/server/client/configure/get_mappings.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { SavedObjectsFindResponse } from '@kbn/core/server'; +import type { SavedObjectsFindResponse } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; -import { ConnectorMappings } from '../../../common/api'; +import type { ConnectorMappings } from '../../../common/api'; import { createCaseError } from '../../common/error'; -import { CasesClientArgs } from '..'; -import { MappingsArgs } from './types'; +import type { CasesClientArgs } from '..'; +import type { MappingsArgs } from './types'; export const getMappings = async ( { connector }: MappingsArgs, diff --git a/x-pack/plugins/cases/server/client/configure/types.ts b/x-pack/plugins/cases/server/client/configure/types.ts index d425b7f67d908..4885ae0720ead 100644 --- a/x-pack/plugins/cases/server/client/configure/types.ts +++ b/x-pack/plugins/cases/server/client/configure/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { CaseConnector } from '../../../common/api'; -import { IndexRefresh } from '../../services/types'; +import type { CaseConnector } from '../../../common/api'; +import type { IndexRefresh } from '../../services/types'; export interface MappingsArgs { connector: CaseConnector; diff --git a/x-pack/plugins/cases/server/client/configure/update_mappings.ts b/x-pack/plugins/cases/server/client/configure/update_mappings.ts index ea1bcb69809c7..12da43213b05a 100644 --- a/x-pack/plugins/cases/server/client/configure/update_mappings.ts +++ b/x-pack/plugins/cases/server/client/configure/update_mappings.ts @@ -6,10 +6,10 @@ */ import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; -import { ConnectorMappingsAttributes } from '../../../common/api'; +import type { ConnectorMappingsAttributes } from '../../../common/api'; import { createCaseError } from '../../common/error'; -import { CasesClientArgs } from '..'; -import { UpdateMappingsArgs } from './types'; +import type { CasesClientArgs } from '..'; +import type { UpdateMappingsArgs } from './types'; import { casesConnectors } from '../../connectors'; export const updateMappings = async ( diff --git a/x-pack/plugins/cases/server/client/factory.ts b/x-pack/plugins/cases/server/client/factory.ts index 960c55e2882e3..f3376686f9ad5 100644 --- a/x-pack/plugins/cases/server/client/factory.ts +++ b/x-pack/plugins/cases/server/client/factory.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { KibanaRequest, SavedObjectsServiceStart, Logger, @@ -13,12 +13,12 @@ import { SavedObjectsClientContract, IBasePath, } from '@kbn/core/server'; -import { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; -import { PluginStartContract as FeaturesPluginStart } from '@kbn/features-plugin/server'; -import { PluginStartContract as ActionsPluginStart } from '@kbn/actions-plugin/server'; -import { LensServerPluginSetup } from '@kbn/lens-plugin/server'; -import { SpacesPluginStart } from '@kbn/spaces-plugin/server'; -import { LicensingPluginStart } from '@kbn/licensing-plugin/server'; +import type { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { PluginStartContract as FeaturesPluginStart } from '@kbn/features-plugin/server'; +import type { PluginStartContract as ActionsPluginStart } from '@kbn/actions-plugin/server'; +import type { LensServerPluginSetup } from '@kbn/lens-plugin/server'; +import type { SpacesPluginStart } from '@kbn/spaces-plugin/server'; +import type { LicensingPluginStart } from '@kbn/licensing-plugin/server'; import { SAVED_OBJECT_TYPES } from '../../common/constants'; import { Authorization } from '../authorization/authorization'; import { @@ -31,10 +31,11 @@ import { } from '../services'; import { AuthorizationAuditLogger } from '../authorization'; -import { CasesClient, createCasesClient } from '.'; -import { PersistableStateAttachmentTypeRegistry } from '../attachment_framework/persistable_state_registry'; -import { ExternalReferenceAttachmentTypeRegistry } from '../attachment_framework/external_reference_registry'; -import { CasesServices } from './types'; +import type { CasesClient } from '.'; +import { createCasesClient } from '.'; +import type { PersistableStateAttachmentTypeRegistry } from '../attachment_framework/persistable_state_registry'; +import type { ExternalReferenceAttachmentTypeRegistry } from '../attachment_framework/external_reference_registry'; +import type { CasesServices } from './types'; import { LicensingService } from '../services/licensing'; interface CasesClientFactoryArgs { diff --git a/x-pack/plugins/cases/server/client/metrics/actions/actions.test.ts b/x-pack/plugins/cases/server/client/metrics/actions/actions.test.ts index f461dec56b346..e8211662c1820 100644 --- a/x-pack/plugins/cases/server/client/metrics/actions/actions.test.ts +++ b/x-pack/plugins/cases/server/client/metrics/actions/actions.test.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CaseResponse } from '../../../../common/api'; +import type { CaseResponse } from '../../../../common/api'; import { createCasesClientMock } from '../../mocks'; -import { CasesClientArgs } from '../../types'; +import type { CasesClientArgs } from '../../types'; import { loggingSystemMock } from '@kbn/core/server/mocks'; import { createAttachmentServiceMock } from '../../../services/mocks'; diff --git a/x-pack/plugins/cases/server/client/metrics/actions/actions.ts b/x-pack/plugins/cases/server/client/metrics/actions/actions.ts index fbb060687a79f..ce2f71553f274 100644 --- a/x-pack/plugins/cases/server/client/metrics/actions/actions.ts +++ b/x-pack/plugins/cases/server/client/metrics/actions/actions.ts @@ -6,11 +6,11 @@ */ import { merge } from 'lodash'; -import { SingleCaseMetricsResponse } from '../../../../common/api'; +import type { SingleCaseMetricsResponse } from '../../../../common/api'; import { Operations } from '../../../authorization'; import { createCaseError } from '../../../common/error'; import { SingleCaseAggregationHandler } from '../single_case_aggregation_handler'; -import { AggregationBuilder, SingleCaseBaseHandlerCommonOptions } from '../types'; +import type { AggregationBuilder, SingleCaseBaseHandlerCommonOptions } from '../types'; import { IsolateHostActions } from './aggregations/isolate_host'; export class Actions extends SingleCaseAggregationHandler { diff --git a/x-pack/plugins/cases/server/client/metrics/actions/aggregations/isolate_host.ts b/x-pack/plugins/cases/server/client/metrics/actions/aggregations/isolate_host.ts index 479de16bc262f..b6aa821bee875 100644 --- a/x-pack/plugins/cases/server/client/metrics/actions/aggregations/isolate_host.ts +++ b/x-pack/plugins/cases/server/client/metrics/actions/aggregations/isolate_host.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { IsolateHostActionType, SingleCaseMetricsResponse } from '../../../../../common/api'; +import type { SingleCaseMetricsResponse } from '../../../../../common/api'; +import { IsolateHostActionType } from '../../../../../common/api'; import { CASE_COMMENT_SAVED_OBJECT } from '../../../../../common/constants'; -import { AggregationBuilder, AggregationResponse } from '../../types'; +import type { AggregationBuilder, AggregationResponse } from '../../types'; interface ActionsAggregation { actions?: { diff --git a/x-pack/plugins/cases/server/client/metrics/aggregation_handler.ts b/x-pack/plugins/cases/server/client/metrics/aggregation_handler.ts index e70c7add20f5e..d3ea78d7ccf2f 100644 --- a/x-pack/plugins/cases/server/client/metrics/aggregation_handler.ts +++ b/x-pack/plugins/cases/server/client/metrics/aggregation_handler.ts @@ -7,7 +7,7 @@ import { merge } from 'lodash'; import { BaseHandler } from './base_handler'; -import { AggregationBuilder, AggregationResponse, BaseHandlerCommonOptions } from './types'; +import type { AggregationBuilder, AggregationResponse, BaseHandlerCommonOptions } from './types'; export abstract class AggregationHandler extends BaseHandler { protected aggregationBuilders: Array> = []; diff --git a/x-pack/plugins/cases/server/client/metrics/alerts/aggregations/hosts.ts b/x-pack/plugins/cases/server/client/metrics/alerts/aggregations/hosts.ts index a9052e2e2a9ce..31ebb33084ab7 100644 --- a/x-pack/plugins/cases/server/client/metrics/alerts/aggregations/hosts.ts +++ b/x-pack/plugins/cases/server/client/metrics/alerts/aggregations/hosts.ts @@ -8,8 +8,8 @@ import { get } from 'lodash'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { SingleCaseMetricsResponse } from '../../../../../common/api'; -import { AggregationBuilder, AggregationResponse } from '../../types'; +import type { SingleCaseMetricsResponse } from '../../../../../common/api'; +import type { AggregationBuilder, AggregationResponse } from '../../types'; type HostsAggregate = HostsAggregateResponse | undefined; diff --git a/x-pack/plugins/cases/server/client/metrics/alerts/aggregations/users.ts b/x-pack/plugins/cases/server/client/metrics/alerts/aggregations/users.ts index 8d068e354693b..68eedcc6d3f94 100644 --- a/x-pack/plugins/cases/server/client/metrics/alerts/aggregations/users.ts +++ b/x-pack/plugins/cases/server/client/metrics/alerts/aggregations/users.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SingleCaseMetricsResponse } from '../../../../../common/api'; -import { AggregationBuilder, AggregationResponse } from '../../types'; +import type { SingleCaseMetricsResponse } from '../../../../../common/api'; +import type { AggregationBuilder, AggregationResponse } from '../../types'; export class AlertUsers implements AggregationBuilder { constructor(private readonly uniqueValuesLimit: number = 10) {} diff --git a/x-pack/plugins/cases/server/client/metrics/alerts/count.test.ts b/x-pack/plugins/cases/server/client/metrics/alerts/count.test.ts index 9f0a5860beefb..15209b1608194 100644 --- a/x-pack/plugins/cases/server/client/metrics/alerts/count.test.ts +++ b/x-pack/plugins/cases/server/client/metrics/alerts/count.test.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CaseResponse } from '../../../../common/api'; +import type { CaseResponse } from '../../../../common/api'; import { createCasesClientMock } from '../../mocks'; -import { CasesClientArgs } from '../../types'; +import type { CasesClientArgs } from '../../types'; import { loggingSystemMock } from '@kbn/core/server/mocks'; import { createAttachmentServiceMock } from '../../../services/mocks'; diff --git a/x-pack/plugins/cases/server/client/metrics/alerts/count.ts b/x-pack/plugins/cases/server/client/metrics/alerts/count.ts index 9ae64f457436d..f5f7e0d2be560 100644 --- a/x-pack/plugins/cases/server/client/metrics/alerts/count.ts +++ b/x-pack/plugins/cases/server/client/metrics/alerts/count.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { SingleCaseMetricsResponse } from '../../../../common/api'; +import type { SingleCaseMetricsResponse } from '../../../../common/api'; import { Operations } from '../../../authorization'; import { createCaseError } from '../../../common/error'; import { SingleCaseBaseHandler } from '../single_case_base_handler'; -import { SingleCaseBaseHandlerCommonOptions } from '../types'; +import type { SingleCaseBaseHandlerCommonOptions } from '../types'; export class AlertsCount extends SingleCaseBaseHandler { constructor(options: SingleCaseBaseHandlerCommonOptions) { diff --git a/x-pack/plugins/cases/server/client/metrics/alerts/details.test.ts b/x-pack/plugins/cases/server/client/metrics/alerts/details.test.ts index 7b0a68802c4a1..23797b75992e4 100644 --- a/x-pack/plugins/cases/server/client/metrics/alerts/details.test.ts +++ b/x-pack/plugins/cases/server/client/metrics/alerts/details.test.ts @@ -5,13 +5,14 @@ * 2.0. */ -import { CasesClientMock, createCasesClientMock } from '../../mocks'; -import { CasesClientArgs } from '../../types'; +import type { CasesClientMock } from '../../mocks'; +import { createCasesClientMock } from '../../mocks'; +import type { CasesClientArgs } from '../../types'; import { loggingSystemMock } from '@kbn/core/server/mocks'; import { AlertDetails } from './details'; import { mockAlertsService } from '../test_utils/alerts'; -import { SingleCaseBaseHandlerCommonOptions } from '../types'; +import type { SingleCaseBaseHandlerCommonOptions } from '../types'; describe('AlertDetails', () => { let client: CasesClientMock; diff --git a/x-pack/plugins/cases/server/client/metrics/alerts/details.ts b/x-pack/plugins/cases/server/client/metrics/alerts/details.ts index b361df48bebc0..75e96482ae9c0 100644 --- a/x-pack/plugins/cases/server/client/metrics/alerts/details.ts +++ b/x-pack/plugins/cases/server/client/metrics/alerts/details.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { SingleCaseMetricsResponse } from '../../../../common/api'; +import type { SingleCaseMetricsResponse } from '../../../../common/api'; import { createCaseError } from '../../../common/error'; import { SingleCaseAggregationHandler } from '../single_case_aggregation_handler'; -import { AggregationBuilder, SingleCaseBaseHandlerCommonOptions } from '../types'; +import type { AggregationBuilder, SingleCaseBaseHandlerCommonOptions } from '../types'; import { AlertHosts, AlertUsers } from './aggregations'; export class AlertDetails extends SingleCaseAggregationHandler { diff --git a/x-pack/plugins/cases/server/client/metrics/all_cases/aggregations/avg_duration.ts b/x-pack/plugins/cases/server/client/metrics/all_cases/aggregations/avg_duration.ts index 03d0595f7ec7a..1239cfaf9a943 100644 --- a/x-pack/plugins/cases/server/client/metrics/all_cases/aggregations/avg_duration.ts +++ b/x-pack/plugins/cases/server/client/metrics/all_cases/aggregations/avg_duration.ts @@ -6,8 +6,8 @@ */ import { CASE_SAVED_OBJECT } from '../../../../../common/constants'; -import { CasesMetricsResponse } from '../../../../../common/api'; -import { AggregationBuilder, AggregationResponse } from '../../types'; +import type { CasesMetricsResponse } from '../../../../../common/api'; +import type { AggregationBuilder, AggregationResponse } from '../../types'; export class AverageDuration implements AggregationBuilder { build() { diff --git a/x-pack/plugins/cases/server/client/metrics/all_cases/mttr.test.ts b/x-pack/plugins/cases/server/client/metrics/all_cases/mttr.test.ts index be640569c56b1..a13346d2ecfab 100644 --- a/x-pack/plugins/cases/server/client/metrics/all_cases/mttr.test.ts +++ b/x-pack/plugins/cases/server/client/metrics/all_cases/mttr.test.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CaseResponse } from '../../../../common/api'; +import type { CaseResponse } from '../../../../common/api'; import { createCasesClientMock } from '../../mocks'; -import { CasesClientArgs } from '../../types'; +import type { CasesClientArgs } from '../../types'; import { loggingSystemMock } from '@kbn/core/server/mocks'; import { createCaseServiceMock } from '../../../services/mocks'; diff --git a/x-pack/plugins/cases/server/client/metrics/all_cases/mttr.ts b/x-pack/plugins/cases/server/client/metrics/all_cases/mttr.ts index 79ae801e8a19e..51e9d0ccfaa0f 100644 --- a/x-pack/plugins/cases/server/client/metrics/all_cases/mttr.ts +++ b/x-pack/plugins/cases/server/client/metrics/all_cases/mttr.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { CasesMetricsResponse } from '../../../../common/api'; +import type { CasesMetricsResponse } from '../../../../common/api'; import { Operations } from '../../../authorization'; import { createCaseError } from '../../../common/error'; import { constructQueryOptions } from '../../utils'; import { AllCasesAggregationHandler } from '../all_cases_aggregation_handler'; -import { AggregationBuilder, AllCasesBaseHandlerCommonOptions } from '../types'; +import type { AggregationBuilder, AllCasesBaseHandlerCommonOptions } from '../types'; import { AverageDuration } from './aggregations/avg_duration'; export class MTTR extends AllCasesAggregationHandler { diff --git a/x-pack/plugins/cases/server/client/metrics/all_cases_aggregation_handler.ts b/x-pack/plugins/cases/server/client/metrics/all_cases_aggregation_handler.ts index 3a5a259c28296..57f9442e8d63d 100644 --- a/x-pack/plugins/cases/server/client/metrics/all_cases_aggregation_handler.ts +++ b/x-pack/plugins/cases/server/client/metrics/all_cases_aggregation_handler.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CasesMetricsResponse } from '../../../common/api'; +import type { CasesMetricsResponse } from '../../../common/api'; import { AggregationHandler } from './aggregation_handler'; -import { AggregationBuilder, AllCasesBaseHandlerCommonOptions } from './types'; +import type { AggregationBuilder, AllCasesBaseHandlerCommonOptions } from './types'; export abstract class AllCasesAggregationHandler extends AggregationHandler { protected readonly from?: string; diff --git a/x-pack/plugins/cases/server/client/metrics/all_cases_base_handler.ts b/x-pack/plugins/cases/server/client/metrics/all_cases_base_handler.ts index de9f1f089c8c8..d4303d8c41d8c 100644 --- a/x-pack/plugins/cases/server/client/metrics/all_cases_base_handler.ts +++ b/x-pack/plugins/cases/server/client/metrics/all_cases_base_handler.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CasesMetricsResponse } from '../../../common/api'; +import type { CasesMetricsResponse } from '../../../common/api'; import { BaseHandler } from './base_handler'; -import { AllCasesBaseHandlerCommonOptions } from './types'; +import type { AllCasesBaseHandlerCommonOptions } from './types'; export abstract class AllCasesBaseHandler extends BaseHandler { protected readonly owner?: string | string[]; diff --git a/x-pack/plugins/cases/server/client/metrics/base_handler.ts b/x-pack/plugins/cases/server/client/metrics/base_handler.ts index 6525de35bc00c..92117fb6f34cf 100644 --- a/x-pack/plugins/cases/server/client/metrics/base_handler.ts +++ b/x-pack/plugins/cases/server/client/metrics/base_handler.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { BaseHandlerCommonOptions, MetricsHandler } from './types'; +import type { BaseHandlerCommonOptions, MetricsHandler } from './types'; export abstract class BaseHandler implements MetricsHandler { constructor( diff --git a/x-pack/plugins/cases/server/client/metrics/client.ts b/x-pack/plugins/cases/server/client/metrics/client.ts index e2e0dfb5c9415..bbf85cc2a0184 100644 --- a/x-pack/plugins/cases/server/client/metrics/client.ts +++ b/x-pack/plugins/cases/server/client/metrics/client.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { SingleCaseMetricsResponse, CasesMetricsRequest, CasesStatusRequest, @@ -13,9 +13,9 @@ import { SingleCaseMetricsRequest, CasesMetricsResponse, } from '../../../common/api'; -import { CasesClient } from '../client'; +import type { CasesClient } from '../client'; -import { CasesClientArgs } from '../types'; +import type { CasesClientArgs } from '../types'; import { getStatusTotalsByType } from './get_status_totals'; import { getCaseMetrics } from './get_case_metrics'; import { getCasesMetrics } from './get_cases_metrics'; diff --git a/x-pack/plugins/cases/server/client/metrics/connectors.test.ts b/x-pack/plugins/cases/server/client/metrics/connectors.test.ts index d8c71aa57d09c..6983eb16b0a31 100644 --- a/x-pack/plugins/cases/server/client/metrics/connectors.test.ts +++ b/x-pack/plugins/cases/server/client/metrics/connectors.test.ts @@ -6,7 +6,7 @@ */ import { createCasesClientMock } from '../mocks'; -import { CasesClientArgs } from '../types'; +import type { CasesClientArgs } from '../types'; import { loggingSystemMock } from '@kbn/core/server/mocks'; import { createUserActionServiceMock } from '../../services/mocks'; import { Connectors } from './connectors'; diff --git a/x-pack/plugins/cases/server/client/metrics/connectors.ts b/x-pack/plugins/cases/server/client/metrics/connectors.ts index b75225ddf8eb7..e5ab7c2856048 100644 --- a/x-pack/plugins/cases/server/client/metrics/connectors.ts +++ b/x-pack/plugins/cases/server/client/metrics/connectors.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { SingleCaseMetricsResponse } from '../../../common/api'; +import type { SingleCaseMetricsResponse } from '../../../common/api'; import { Operations } from '../../authorization'; import { createCaseError } from '../../common/error'; import { SingleCaseBaseHandler } from './single_case_base_handler'; -import { SingleCaseBaseHandlerCommonOptions } from './types'; +import type { SingleCaseBaseHandlerCommonOptions } from './types'; export class Connectors extends SingleCaseBaseHandler { constructor(options: SingleCaseBaseHandlerCommonOptions) { diff --git a/x-pack/plugins/cases/server/client/metrics/get_case_metrics.test.ts b/x-pack/plugins/cases/server/client/metrics/get_case_metrics.test.ts index cf88f3d9fcd68..61c11ad4c7adc 100644 --- a/x-pack/plugins/cases/server/client/metrics/get_case_metrics.test.ts +++ b/x-pack/plugins/cases/server/client/metrics/get_case_metrics.test.ts @@ -6,12 +6,14 @@ */ import { loggingSystemMock, savedObjectsClientMock } from '@kbn/core/server/mocks'; -import { SavedObject } from '@kbn/core/server'; +import type { SavedObject } from '@kbn/core/server'; import { getCaseMetrics } from './get_case_metrics'; -import { CaseAttributes, CaseResponse, CaseStatuses } from '../../../common/api'; -import { CasesClientMock, createCasesClientMock } from '../mocks'; -import { CasesClientArgs } from '../types'; +import type { CaseAttributes, CaseResponse } from '../../../common/api'; +import { CaseStatuses } from '../../../common/api'; +import type { CasesClientMock } from '../mocks'; +import { createCasesClientMock } from '../mocks'; +import type { CasesClientArgs } from '../types'; import { createAuthorizationMock } from '../../authorization/mock'; import { createAttachmentServiceMock, diff --git a/x-pack/plugins/cases/server/client/metrics/get_case_metrics.ts b/x-pack/plugins/cases/server/client/metrics/get_case_metrics.ts index ea54a7556056f..154d90dfc8333 100644 --- a/x-pack/plugins/cases/server/client/metrics/get_case_metrics.ts +++ b/x-pack/plugins/cases/server/client/metrics/get_case_metrics.ts @@ -6,15 +6,12 @@ */ import { merge } from 'lodash'; -import { - SingleCaseMetricsRequest, - SingleCaseMetricsResponse, - SingleCaseMetricsResponseRt, -} from '../../../common/api'; +import type { SingleCaseMetricsRequest, SingleCaseMetricsResponse } from '../../../common/api'; +import { SingleCaseMetricsResponseRt } from '../../../common/api'; import { Operations } from '../../authorization'; import { createCaseError } from '../../common/error'; -import { CasesClient } from '../client'; -import { CasesClientArgs } from '../types'; +import type { CasesClient } from '../client'; +import type { CasesClientArgs } from '../types'; import { buildHandlers } from './utils'; export const getCaseMetrics = async ( diff --git a/x-pack/plugins/cases/server/client/metrics/get_cases_metrics.test.ts b/x-pack/plugins/cases/server/client/metrics/get_cases_metrics.test.ts index fca356132363f..2e043a8fedf5f 100644 --- a/x-pack/plugins/cases/server/client/metrics/get_cases_metrics.test.ts +++ b/x-pack/plugins/cases/server/client/metrics/get_cases_metrics.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CasesClientMock } from '../mocks'; +import type { CasesClientMock } from '../mocks'; import { getCasesMetrics } from './get_cases_metrics'; import { createMockClientArgs, createMockClient } from './test_utils/client'; diff --git a/x-pack/plugins/cases/server/client/metrics/get_cases_metrics.ts b/x-pack/plugins/cases/server/client/metrics/get_cases_metrics.ts index c7cb0673db42e..49a88bfbdb6e5 100644 --- a/x-pack/plugins/cases/server/client/metrics/get_cases_metrics.ts +++ b/x-pack/plugins/cases/server/client/metrics/get_cases_metrics.ts @@ -11,16 +11,11 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; -import { - CasesMetricsRequest, - CasesMetricsRequestRt, - CasesMetricsResponse, - CasesMetricsResponseRt, - throwErrors, -} from '../../../common/api'; +import type { CasesMetricsRequest, CasesMetricsResponse } from '../../../common/api'; +import { CasesMetricsRequestRt, CasesMetricsResponseRt, throwErrors } from '../../../common/api'; import { createCaseError } from '../../common/error'; -import { CasesClient } from '../client'; -import { CasesClientArgs } from '../types'; +import type { CasesClient } from '../client'; +import type { CasesClientArgs } from '../types'; import { buildHandlers } from './utils'; export const getCasesMetrics = async ( diff --git a/x-pack/plugins/cases/server/client/metrics/get_status_totals.ts b/x-pack/plugins/cases/server/client/metrics/get_status_totals.ts index b0b3c2f91f0d7..c04f31cf9ac94 100644 --- a/x-pack/plugins/cases/server/client/metrics/get_status_totals.ts +++ b/x-pack/plugins/cases/server/client/metrics/get_status_totals.ts @@ -10,15 +10,14 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; +import type { CasesStatusRequest, CasesStatusResponse } from '../../../common/api'; import { - CasesStatusRequest, - CasesStatusResponse, excess, CasesStatusRequestRt, throwErrors, CasesStatusResponseRt, } from '../../../common/api'; -import { CasesClientArgs } from '../types'; +import type { CasesClientArgs } from '../types'; import { Operations } from '../../authorization'; import { constructQueryOptions } from '../utils'; import { createCaseError } from '../../common/error'; diff --git a/x-pack/plugins/cases/server/client/metrics/lifespan.test.ts b/x-pack/plugins/cases/server/client/metrics/lifespan.test.ts index efb9062bfdfe0..c76f25cb15244 100644 --- a/x-pack/plugins/cases/server/client/metrics/lifespan.test.ts +++ b/x-pack/plugins/cases/server/client/metrics/lifespan.test.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { SavedObject } from '@kbn/core/server'; -import { CaseStatuses, CaseUserActionResponse } from '../../../common/api'; +import type { SavedObject } from '@kbn/core/server'; +import type { CaseUserActionResponse } from '../../../common/api'; +import { CaseStatuses } from '../../../common/api'; import { getStatusInfo } from './lifespan'; describe('lifespan', () => { diff --git a/x-pack/plugins/cases/server/client/metrics/lifespan.ts b/x-pack/plugins/cases/server/client/metrics/lifespan.ts index 361ce85caae8f..e040228622b0b 100644 --- a/x-pack/plugins/cases/server/client/metrics/lifespan.ts +++ b/x-pack/plugins/cases/server/client/metrics/lifespan.ts @@ -5,20 +5,19 @@ * 2.0. */ -import { SavedObject } from '@kbn/core/server'; -import { - CaseStatuses, +import type { SavedObject } from '@kbn/core/server'; +import type { CaseUserActionResponse, SingleCaseMetricsResponse, StatusInfo, StatusUserAction, - StatusUserActionRt, UserActionWithResponse, } from '../../../common/api'; +import { CaseStatuses, StatusUserActionRt } from '../../../common/api'; import { Operations } from '../../authorization'; import { createCaseError } from '../../common/error'; import { SingleCaseBaseHandler } from './single_case_base_handler'; -import { SingleCaseBaseHandlerCommonOptions } from './types'; +import type { SingleCaseBaseHandlerCommonOptions } from './types'; export class Lifespan extends SingleCaseBaseHandler { constructor(options: SingleCaseBaseHandlerCommonOptions) { diff --git a/x-pack/plugins/cases/server/client/metrics/single_case_aggregation_handler.ts b/x-pack/plugins/cases/server/client/metrics/single_case_aggregation_handler.ts index 509a2f0125ec6..ffdf8bbf38396 100644 --- a/x-pack/plugins/cases/server/client/metrics/single_case_aggregation_handler.ts +++ b/x-pack/plugins/cases/server/client/metrics/single_case_aggregation_handler.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { SingleCaseMetricsResponse } from '../../../common/api'; +import type { SingleCaseMetricsResponse } from '../../../common/api'; import { AggregationHandler } from './aggregation_handler'; -import { AggregationBuilder, SingleCaseBaseHandlerCommonOptions } from './types'; +import type { AggregationBuilder, SingleCaseBaseHandlerCommonOptions } from './types'; export abstract class SingleCaseAggregationHandler extends AggregationHandler { protected readonly caseId: string; diff --git a/x-pack/plugins/cases/server/client/metrics/single_case_base_handler.ts b/x-pack/plugins/cases/server/client/metrics/single_case_base_handler.ts index d11af800186b0..054263739dd83 100644 --- a/x-pack/plugins/cases/server/client/metrics/single_case_base_handler.ts +++ b/x-pack/plugins/cases/server/client/metrics/single_case_base_handler.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { SingleCaseMetricsResponse } from '../../../common/api'; +import type { SingleCaseMetricsResponse } from '../../../common/api'; import { BaseHandler } from './base_handler'; -import { SingleCaseBaseHandlerCommonOptions } from './types'; +import type { SingleCaseBaseHandlerCommonOptions } from './types'; export abstract class SingleCaseBaseHandler extends BaseHandler { protected readonly caseId: string; diff --git a/x-pack/plugins/cases/server/client/metrics/test_utils/alerts.ts b/x-pack/plugins/cases/server/client/metrics/test_utils/alerts.ts index 73d22fb575f27..2a549d08e643e 100644 --- a/x-pack/plugins/cases/server/client/metrics/test_utils/alerts.ts +++ b/x-pack/plugins/cases/server/client/metrics/test_utils/alerts.ts @@ -6,7 +6,7 @@ */ import { createAlertServiceMock } from '../../../services/mocks'; -import { AggregationBuilder } from '../types'; +import type { AggregationBuilder } from '../types'; import { AlertHosts, AlertUsers } from '../alerts/aggregations'; export function mockAlertsService() { diff --git a/x-pack/plugins/cases/server/client/metrics/test_utils/client.ts b/x-pack/plugins/cases/server/client/metrics/test_utils/client.ts index 4bc3eedf18660..df66f92cd872a 100644 --- a/x-pack/plugins/cases/server/client/metrics/test_utils/client.ts +++ b/x-pack/plugins/cases/server/client/metrics/test_utils/client.ts @@ -9,7 +9,7 @@ import { savedObjectsClientMock, loggingSystemMock } from '@kbn/core/server/mock import { createAuthorizationMock } from '../../../authorization/mock'; import { createCaseServiceMock } from '../../../services/mocks'; import { createCasesClientMock } from '../../mocks'; -import { CasesClientArgs } from '../../types'; +import type { CasesClientArgs } from '../../types'; export function createMockClient() { const client = createCasesClientMock(); diff --git a/x-pack/plugins/cases/server/client/metrics/test_utils/lifespan.ts b/x-pack/plugins/cases/server/client/metrics/test_utils/lifespan.ts index 2e5176b6f21a6..a5b200f123eb9 100644 --- a/x-pack/plugins/cases/server/client/metrics/test_utils/lifespan.ts +++ b/x-pack/plugins/cases/server/client/metrics/test_utils/lifespan.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SavedObject } from '@kbn/core/server'; -import { CaseStatuses, CaseUserActionResponse } from '../../../../common/api'; +import type { SavedObject } from '@kbn/core/server'; +import type { CaseStatuses, CaseUserActionResponse } from '../../../../common/api'; export function createStatusChangeSavedObject( status: CaseStatuses, diff --git a/x-pack/plugins/cases/server/client/metrics/types.ts b/x-pack/plugins/cases/server/client/metrics/types.ts index 35bdbc0933fbc..829d736919558 100644 --- a/x-pack/plugins/cases/server/client/metrics/types.ts +++ b/x-pack/plugins/cases/server/client/metrics/types.ts @@ -6,8 +6,8 @@ */ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { CasesClient } from '../client'; -import { CasesClientArgs } from '../types'; +import type { CasesClient } from '../client'; +import type { CasesClientArgs } from '../types'; export interface MetricsHandler { getFeatures(): Set; diff --git a/x-pack/plugins/cases/server/client/metrics/utils.ts b/x-pack/plugins/cases/server/client/metrics/utils.ts index 9d6634d888d71..90d7b40658456 100644 --- a/x-pack/plugins/cases/server/client/metrics/utils.ts +++ b/x-pack/plugins/cases/server/client/metrics/utils.ts @@ -6,15 +6,15 @@ */ import Boom from '@hapi/boom'; -import { CasesMetricsRequest, SingleCaseMetricsRequest } from '../../../common/api'; -import { CasesClient } from '../client'; -import { CasesClientArgs } from '../types'; +import type { CasesMetricsRequest, SingleCaseMetricsRequest } from '../../../common/api'; +import type { CasesClient } from '../client'; +import type { CasesClientArgs } from '../types'; import { AlertsCount } from './alerts/count'; import { AlertDetails } from './alerts/details'; import { Actions } from './actions'; import { Connectors } from './connectors'; import { Lifespan } from './lifespan'; -import { MetricsHandler } from './types'; +import type { MetricsHandler } from './types'; import { MTTR } from './all_cases/mttr'; const isSingleCaseMetrics = ( diff --git a/x-pack/plugins/cases/server/client/mocks.ts b/x-pack/plugins/cases/server/client/mocks.ts index a5842cf9137ba..cfaf5437f5c7f 100644 --- a/x-pack/plugins/cases/server/client/mocks.ts +++ b/x-pack/plugins/cases/server/client/mocks.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { PublicContract, PublicMethodsOf } from '@kbn/utility-types'; - -import { CasesClient } from '.'; -import { AttachmentsSubClient } from './attachments/client'; -import { CasesSubClient } from './cases/client'; -import { ConfigureSubClient } from './configure/client'; -import { CasesClientFactory } from './factory'; -import { MetricsSubClient } from './metrics/client'; -import { UserActionsSubClient } from './user_actions/client'; +import type { PublicContract, PublicMethodsOf } from '@kbn/utility-types'; + +import type { CasesClient } from '.'; +import type { AttachmentsSubClient } from './attachments/client'; +import type { CasesSubClient } from './cases/client'; +import type { ConfigureSubClient } from './configure/client'; +import type { CasesClientFactory } from './factory'; +import type { MetricsSubClient } from './metrics/client'; +import type { UserActionsSubClient } from './user_actions/client'; type CasesSubClientMock = jest.Mocked; diff --git a/x-pack/plugins/cases/server/client/typedoc_interfaces.ts b/x-pack/plugins/cases/server/client/typedoc_interfaces.ts index 22fb20f54321b..d98f4c08cbeda 100644 --- a/x-pack/plugins/cases/server/client/typedoc_interfaces.ts +++ b/x-pack/plugins/cases/server/client/typedoc_interfaces.ts @@ -13,7 +13,7 @@ /* eslint-disable @typescript-eslint/no-empty-interface */ -import { +import type { AllCommentsResponse, CasePostRequest, CaseResolveResponse, diff --git a/x-pack/plugins/cases/server/client/types.ts b/x-pack/plugins/cases/server/client/types.ts index 81d17420b4c88..1232cd0f9affe 100644 --- a/x-pack/plugins/cases/server/client/types.ts +++ b/x-pack/plugins/cases/server/client/types.ts @@ -6,15 +6,15 @@ */ import type { PublicMethodsOf } from '@kbn/utility-types'; -import { SavedObjectsClientContract, Logger } from '@kbn/core/server'; -import { ActionsClient } from '@kbn/actions-plugin/server'; -import { LensServerPluginSetup } from '@kbn/lens-plugin/server'; -import { KueryNode } from '@kbn/es-query'; -import { SecurityPluginStart } from '@kbn/security-plugin/server'; -import { IBasePath } from '@kbn/core-http-browser'; -import { CaseSeverity, CaseStatuses, User } from '../../common/api'; -import { Authorization } from '../authorization/authorization'; -import { +import type { SavedObjectsClientContract, Logger } from '@kbn/core/server'; +import type { ActionsClient } from '@kbn/actions-plugin/server'; +import type { LensServerPluginSetup } from '@kbn/lens-plugin/server'; +import type { KueryNode } from '@kbn/es-query'; +import type { SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { IBasePath } from '@kbn/core-http-browser'; +import type { CaseSeverity, CaseStatuses, User } from '../../common/api'; +import type { Authorization } from '../authorization/authorization'; +import type { CaseConfigureService, CasesService, CaseUserActionService, @@ -22,9 +22,9 @@ import { AttachmentService, AlertService, } from '../services'; -import { PersistableStateAttachmentTypeRegistry } from '../attachment_framework/persistable_state_registry'; -import { ExternalReferenceAttachmentTypeRegistry } from '../attachment_framework/external_reference_registry'; -import { LicensingService } from '../services/licensing'; +import type { PersistableStateAttachmentTypeRegistry } from '../attachment_framework/persistable_state_registry'; +import type { ExternalReferenceAttachmentTypeRegistry } from '../attachment_framework/external_reference_registry'; +import type { LicensingService } from '../services/licensing'; export interface CasesServices { alertsService: AlertService; diff --git a/x-pack/plugins/cases/server/client/user_actions/client.ts b/x-pack/plugins/cases/server/client/user_actions/client.ts index f2e5edf255812..3f14a313cd8f2 100644 --- a/x-pack/plugins/cases/server/client/user_actions/client.ts +++ b/x-pack/plugins/cases/server/client/user_actions/client.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ICaseUserActionsResponse } from '../typedoc_interfaces'; -import { CasesClientArgs } from '../types'; +import type { ICaseUserActionsResponse } from '../typedoc_interfaces'; +import type { CasesClientArgs } from '../types'; import { get } from './get'; /** diff --git a/x-pack/plugins/cases/server/client/user_actions/get.ts b/x-pack/plugins/cases/server/client/user_actions/get.ts index d4b09eb39b583..835029315e434 100644 --- a/x-pack/plugins/cases/server/client/user_actions/get.ts +++ b/x-pack/plugins/cases/server/client/user_actions/get.ts @@ -5,16 +5,13 @@ * 2.0. */ -import { SavedObjectsFindResponse } from '@kbn/core/server'; -import { - CaseUserActionsResponse, - CaseUserActionsResponseRt, - CaseUserActionResponse, -} from '../../../common/api'; +import type { SavedObjectsFindResponse } from '@kbn/core/server'; +import type { CaseUserActionsResponse, CaseUserActionResponse } from '../../../common/api'; +import { CaseUserActionsResponseRt } from '../../../common/api'; import { createCaseError } from '../../common/error'; -import { CasesClientArgs } from '..'; +import type { CasesClientArgs } from '..'; import { Operations } from '../../authorization'; -import { UserActionGet } from './client'; +import type { UserActionGet } from './client'; export const get = async ( { caseId }: UserActionGet, diff --git a/x-pack/plugins/cases/server/client/user_profiles.mock.ts b/x-pack/plugins/cases/server/client/user_profiles.mock.ts index 80eaa8d844baa..fff45274914e7 100644 --- a/x-pack/plugins/cases/server/client/user_profiles.mock.ts +++ b/x-pack/plugins/cases/server/client/user_profiles.mock.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UserProfile } from '@kbn/security-plugin/common'; +import type { UserProfile } from '@kbn/security-plugin/common'; export const userProfiles: UserProfile[] = [ { diff --git a/x-pack/plugins/cases/server/client/utils.ts b/x-pack/plugins/cases/server/client/utils.ts index cfda2ead6545a..a23e300531f92 100644 --- a/x-pack/plugins/cases/server/client/utils.ts +++ b/x-pack/plugins/cases/server/client/utils.ts @@ -12,25 +12,28 @@ import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; import { pipe } from 'fp-ts/lib/pipeable'; -import { nodeBuilder, fromKueryExpression, KueryNode, escapeKuery } from '@kbn/es-query'; +import type { KueryNode } from '@kbn/es-query'; +import { nodeBuilder, fromKueryExpression, escapeKuery } from '@kbn/es-query'; import { isCommentRequestTypeExternalReference, isCommentRequestTypePersistableState, } from '../../common/utils/attachments'; import { CASE_SAVED_OBJECT } from '../../common/constants'; +import type { + CaseStatuses, + CommentRequest, + CaseSeverity, + CommentRequestExternalReferenceType, +} from '../../common/api'; import { OWNER_FIELD, AlertCommentRequestRt, ActionsCommentRequestRt, - CaseStatuses, - CommentRequest, ContextTypeUserRt, excess, throwErrors, - CaseSeverity, ExternalReferenceStorageType, ExternalReferenceSORt, - CommentRequestExternalReferenceType, ExternalReferenceNoSORt, PersistableStateAttachmentRt, } from '../../common/api'; @@ -42,8 +45,8 @@ import { isCommentRequestTypeActions, assertUnreachable, } from '../common/utils'; -import { SavedObjectFindOptionsKueryNode } from '../common/types'; -import { ConstructQueryParams } from './types'; +import type { SavedObjectFindOptionsKueryNode } from '../common/types'; +import type { ConstructQueryParams } from './types'; export const decodeCommentRequest = (comment: CommentRequest) => { if (isCommentRequestTypeUser(comment)) { diff --git a/x-pack/plugins/cases/server/common/error.ts b/x-pack/plugins/cases/server/common/error.ts index e994d249e858b..01b743ecfbe32 100644 --- a/x-pack/plugins/cases/server/common/error.ts +++ b/x-pack/plugins/cases/server/common/error.ts @@ -6,7 +6,7 @@ */ import { Boom, isBoom } from '@hapi/boom'; -import { Logger } from '@kbn/core/server'; +import type { Logger } from '@kbn/core/server'; export interface HTTPError extends Error { statusCode: number; diff --git a/x-pack/plugins/cases/server/common/models/case_with_comments.ts b/x-pack/plugins/cases/server/common/models/case_with_comments.ts index 9b695b2bbe9f6..2e5de37c621e2 100644 --- a/x-pack/plugins/cases/server/common/models/case_with_comments.ts +++ b/x-pack/plugins/cases/server/common/models/case_with_comments.ts @@ -6,33 +6,35 @@ */ import Boom from '@hapi/boom'; -import { +import type { SavedObject, SavedObjectReference, SavedObjectsUpdateOptions, SavedObjectsUpdateResponse, } from '@kbn/core/server'; -import { +import type { CaseResponse, - CaseResponseRt, - CaseStatuses, CommentAttributes, CommentPatchRequest, CommentRequest, - CommentType, CommentRequestUserType, CaseAttributes, + CommentRequestAlertType, +} from '../../../common/api'; +import { + CaseResponseRt, + CaseStatuses, + CommentType, ActionTypes, Actions, - CommentRequestAlertType, } from '../../../common/api'; import { CASE_SAVED_OBJECT, MAX_ALERTS_PER_CASE, MAX_DOCS_PER_PAGE, } from '../../../common/constants'; -import { CasesClientArgs } from '../../client'; -import { RefreshSetting } from '../../services/types'; +import type { CasesClientArgs } from '../../client'; +import type { RefreshSetting } from '../../services/types'; import { createCaseError } from '../error'; import { countAlertsForID, diff --git a/x-pack/plugins/cases/server/common/types.ts b/x-pack/plugins/cases/server/common/types.ts index 7a0d46148cf26..bb5c0d77b8201 100644 --- a/x-pack/plugins/cases/server/common/types.ts +++ b/x-pack/plugins/cases/server/common/types.ts @@ -6,7 +6,7 @@ */ import type { KueryNode } from '@kbn/es-query'; -import { SavedObjectFindOptions } from '../../common/api'; +import type { SavedObjectFindOptions } from '../../common/api'; /** * This structure holds the alert ID and index from an alert comment diff --git a/x-pack/plugins/cases/server/common/utils.test.ts b/x-pack/plugins/cases/server/common/utils.test.ts index 432fb0f92c4e6..cbf5b3e0cf5de 100644 --- a/x-pack/plugins/cases/server/common/utils.test.ts +++ b/x-pack/plugins/cases/server/common/utils.test.ts @@ -5,19 +5,17 @@ * 2.0. */ -import { SavedObject, SavedObjectsFindResponse } from '@kbn/core/server'; +import type { SavedObject, SavedObjectsFindResponse } from '@kbn/core/server'; import { makeLensEmbeddableFactory } from '@kbn/lens-plugin/server/embeddable/make_lens_embeddable_factory'; import { OWNER_INFO, SECURITY_SOLUTION_OWNER } from '../../common/constants'; -import { +import type { CaseConnector, CaseResponse, - CaseSeverity, CommentAttributes, CommentRequest, CommentRequestUserType, - CommentType, - ConnectorTypes, } from '../../common/api'; +import { CaseSeverity, CommentType, ConnectorTypes } from '../../common/api'; import { mockCaseComments, mockCases } from '../routes/api/__fixtures__/mock_saved_objects'; import { flattenCaseSavedObject, diff --git a/x-pack/plugins/cases/server/common/utils.ts b/x-pack/plugins/cases/server/common/utils.ts index 1c41ea53105c9..8a977c2f0e24b 100644 --- a/x-pack/plugins/cases/server/common/utils.ts +++ b/x-pack/plugins/cases/server/common/utils.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { SavedObjectsFindResult, SavedObjectsFindResponse, SavedObject, @@ -13,7 +13,7 @@ import { IBasePath, } from '@kbn/core/server'; import { flatMap, uniqWith, xorWith } from 'lodash'; -import { LensServerPluginSetup } from '@kbn/lens-plugin/server'; +import type { LensServerPluginSetup } from '@kbn/lens-plugin/server'; import { isValidOwner } from '../../common/utils/owner'; import { CASE_VIEW_COMMENT_PATH, @@ -22,16 +22,14 @@ import { GENERAL_CASES_OWNER, OWNER_INFO, } from '../../common/constants'; -import { CASE_VIEW_PAGE_TABS } from '../../common/types'; -import { AlertInfo } from './types'; +import type { CASE_VIEW_PAGE_TABS } from '../../common/types'; +import type { AlertInfo } from './types'; -import { +import type { CaseAttributes, CasePostRequest, CaseResponse, - CaseSeverity, CasesFindResponse, - CaseStatuses, CommentAttributes, CommentRequest, CommentRequestActionsType, @@ -40,12 +38,16 @@ import { CommentRequestUserType, CommentResponse, CommentsResponse, + User, +} from '../../common/api'; +import { + CaseSeverity, + CaseStatuses, CommentType, ConnectorTypes, ExternalReferenceStorageType, - User, } from '../../common/api'; -import { UpdateAlertRequest } from '../client/alerts/types'; +import type { UpdateAlertRequest } from '../client/alerts/types'; import { parseCommentString, getLensVisualizations, diff --git a/x-pack/plugins/cases/server/config.ts b/x-pack/plugins/cases/server/config.ts index bbda9fa7a32ae..dc110412d1733 100644 --- a/x-pack/plugins/cases/server/config.ts +++ b/x-pack/plugins/cases/server/config.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { schema, TypeOf } from '@kbn/config-schema'; +import type { TypeOf } from '@kbn/config-schema'; +import { schema } from '@kbn/config-schema'; export const ConfigSchema = schema.object({ markdownPlugins: schema.object({ diff --git a/x-pack/plugins/cases/server/connectors/cases_webook/format.ts b/x-pack/plugins/cases/server/connectors/cases_webook/format.ts index 2356df109dd00..320b190dc24e8 100644 --- a/x-pack/plugins/cases/server/connectors/cases_webook/format.ts +++ b/x-pack/plugins/cases/server/connectors/cases_webook/format.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { Format } from './types'; +import type { Format } from './types'; export const format: Format = (theCase) => { return { diff --git a/x-pack/plugins/cases/server/connectors/cases_webook/index.ts b/x-pack/plugins/cases/server/connectors/cases_webook/index.ts index 961e7648d0cef..118e1864eacc4 100644 --- a/x-pack/plugins/cases/server/connectors/cases_webook/index.ts +++ b/x-pack/plugins/cases/server/connectors/cases_webook/index.ts @@ -7,7 +7,7 @@ import { getMapping } from './mapping'; import { format } from './format'; -import { CasesWebhookCaseConnector } from './types'; +import type { CasesWebhookCaseConnector } from './types'; export const getCaseConnector = (): CasesWebhookCaseConnector => ({ getMapping, diff --git a/x-pack/plugins/cases/server/connectors/cases_webook/mapping.ts b/x-pack/plugins/cases/server/connectors/cases_webook/mapping.ts index 50bd66fdcec8c..5850af1d59f28 100644 --- a/x-pack/plugins/cases/server/connectors/cases_webook/mapping.ts +++ b/x-pack/plugins/cases/server/connectors/cases_webook/mapping.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { GetMapping } from './types'; +import type { GetMapping } from './types'; // Mappings are done directly in the connector configuration export const getMapping: GetMapping = () => []; diff --git a/x-pack/plugins/cases/server/connectors/cases_webook/types.ts b/x-pack/plugins/cases/server/connectors/cases_webook/types.ts index 61d74070370dc..4687e2be34a55 100644 --- a/x-pack/plugins/cases/server/connectors/cases_webook/types.ts +++ b/x-pack/plugins/cases/server/connectors/cases_webook/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ICasesConnector } from '../types'; +import type { ICasesConnector } from '../types'; export type CasesWebhookCaseConnector = ICasesConnector; export type Format = ICasesConnector['format']; diff --git a/x-pack/plugins/cases/server/connectors/factory.ts b/x-pack/plugins/cases/server/connectors/factory.ts index 40035fb984863..2f2287e288c54 100644 --- a/x-pack/plugins/cases/server/connectors/factory.ts +++ b/x-pack/plugins/cases/server/connectors/factory.ts @@ -6,7 +6,7 @@ */ import { ConnectorTypes } from '../../common/api'; -import { ICasesConnector, CasesConnectorsMap } from './types'; +import type { ICasesConnector, CasesConnectorsMap } from './types'; import { getCaseConnector as getJiraCaseConnector } from './jira'; import { getCaseConnector as getResilientCaseConnector } from './resilient'; import { getCaseConnector as getCasesWebhookCaseConnector } from './cases_webook'; diff --git a/x-pack/plugins/cases/server/connectors/jira/format.test.ts b/x-pack/plugins/cases/server/connectors/jira/format.test.ts index edca4cf68250c..7ddabdf5e2ff1 100644 --- a/x-pack/plugins/cases/server/connectors/jira/format.test.ts +++ b/x-pack/plugins/cases/server/connectors/jira/format.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CaseResponse } from '../../../common/api'; +import type { CaseResponse } from '../../../common/api'; import { format } from './format'; describe('Jira formatter', () => { diff --git a/x-pack/plugins/cases/server/connectors/jira/format.ts b/x-pack/plugins/cases/server/connectors/jira/format.ts index e283aff4b4ce9..47584b4ec2bba 100644 --- a/x-pack/plugins/cases/server/connectors/jira/format.ts +++ b/x-pack/plugins/cases/server/connectors/jira/format.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ConnectorJiraTypeFields } from '../../../common/api'; -import { Format } from './types'; +import type { ConnectorJiraTypeFields } from '../../../common/api'; +import type { Format } from './types'; export const format: Format = (theCase, alerts) => { const { diff --git a/x-pack/plugins/cases/server/connectors/jira/index.ts b/x-pack/plugins/cases/server/connectors/jira/index.ts index 9a2a00ac23b39..9fb891d9c23f4 100644 --- a/x-pack/plugins/cases/server/connectors/jira/index.ts +++ b/x-pack/plugins/cases/server/connectors/jira/index.ts @@ -7,7 +7,7 @@ import { getMapping } from './mapping'; import { format } from './format'; -import { JiraCaseConnector } from './types'; +import type { JiraCaseConnector } from './types'; export const getCaseConnector = (): JiraCaseConnector => ({ getMapping, diff --git a/x-pack/plugins/cases/server/connectors/jira/mapping.ts b/x-pack/plugins/cases/server/connectors/jira/mapping.ts index 8f8a914b4e091..716a2694bdf1a 100644 --- a/x-pack/plugins/cases/server/connectors/jira/mapping.ts +++ b/x-pack/plugins/cases/server/connectors/jira/mapping.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { GetMapping } from './types'; +import type { GetMapping } from './types'; export const getMapping: GetMapping = () => { return [ diff --git a/x-pack/plugins/cases/server/connectors/jira/types.ts b/x-pack/plugins/cases/server/connectors/jira/types.ts index 59d5741d381b9..95e9cf3059f14 100644 --- a/x-pack/plugins/cases/server/connectors/jira/types.ts +++ b/x-pack/plugins/cases/server/connectors/jira/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { JiraFieldsType } from '../../../common/api'; -import { ICasesConnector } from '../types'; +import type { JiraFieldsType } from '../../../common/api'; +import type { ICasesConnector } from '../types'; interface ExternalServiceFormatterParams extends JiraFieldsType { labels: string[]; diff --git a/x-pack/plugins/cases/server/connectors/resilient/format.test.ts b/x-pack/plugins/cases/server/connectors/resilient/format.test.ts index 5cfd089b9aa8d..cd850bd28fe37 100644 --- a/x-pack/plugins/cases/server/connectors/resilient/format.test.ts +++ b/x-pack/plugins/cases/server/connectors/resilient/format.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CaseResponse } from '../../../common/api'; +import type { CaseResponse } from '../../../common/api'; import { format } from './format'; describe('IBM Resilient formatter', () => { diff --git a/x-pack/plugins/cases/server/connectors/resilient/format.ts b/x-pack/plugins/cases/server/connectors/resilient/format.ts index 64b701731c33f..5cbec6b89dc23 100644 --- a/x-pack/plugins/cases/server/connectors/resilient/format.ts +++ b/x-pack/plugins/cases/server/connectors/resilient/format.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ConnectorResilientTypeFields } from '../../../common/api'; -import { Format } from './types'; +import type { ConnectorResilientTypeFields } from '../../../common/api'; +import type { Format } from './types'; export const format: Format = (theCase, alerts) => { const { incidentTypes = null, severityCode = null } = diff --git a/x-pack/plugins/cases/server/connectors/resilient/index.ts b/x-pack/plugins/cases/server/connectors/resilient/index.ts index a946d0d7fa1c5..bdd3962514d86 100644 --- a/x-pack/plugins/cases/server/connectors/resilient/index.ts +++ b/x-pack/plugins/cases/server/connectors/resilient/index.ts @@ -7,7 +7,7 @@ import { getMapping } from './mapping'; import { format } from './format'; -import { ResilientCaseConnector } from './types'; +import type { ResilientCaseConnector } from './types'; export const getCaseConnector = (): ResilientCaseConnector => ({ getMapping, diff --git a/x-pack/plugins/cases/server/connectors/resilient/mapping.ts b/x-pack/plugins/cases/server/connectors/resilient/mapping.ts index 0226073711dfb..d6e6642b6c4af 100644 --- a/x-pack/plugins/cases/server/connectors/resilient/mapping.ts +++ b/x-pack/plugins/cases/server/connectors/resilient/mapping.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { GetMapping } from './types'; +import type { GetMapping } from './types'; export const getMapping: GetMapping = () => { return [ diff --git a/x-pack/plugins/cases/server/connectors/resilient/types.ts b/x-pack/plugins/cases/server/connectors/resilient/types.ts index f895dccf65214..d3b64f8e139e6 100644 --- a/x-pack/plugins/cases/server/connectors/resilient/types.ts +++ b/x-pack/plugins/cases/server/connectors/resilient/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ResilientFieldsType } from '../../../common/api'; -import { ICasesConnector } from '../types'; +import type { ResilientFieldsType } from '../../../common/api'; +import type { ICasesConnector } from '../types'; export type ResilientCaseConnector = ICasesConnector; export type Format = ICasesConnector['format']; diff --git a/x-pack/plugins/cases/server/connectors/servicenow/index.ts b/x-pack/plugins/cases/server/connectors/servicenow/index.ts index e16a76ff5f79f..c1739790b342f 100644 --- a/x-pack/plugins/cases/server/connectors/servicenow/index.ts +++ b/x-pack/plugins/cases/server/connectors/servicenow/index.ts @@ -10,7 +10,7 @@ import { format as formatServiceNowITSM } from './itsm_format'; import { getMapping as getServiceNowSIRMapping } from './sir_mapping'; import { format as formatServiceNowSIR } from './sir_format'; -import { ServiceNowITSMCasesConnector, ServiceNowSIRCasesConnector } from './types'; +import type { ServiceNowITSMCasesConnector, ServiceNowSIRCasesConnector } from './types'; export const getServiceNowITSMCaseConnector = (): ServiceNowITSMCasesConnector => ({ getMapping: getServiceNowITSMMapping, diff --git a/x-pack/plugins/cases/server/connectors/servicenow/itsm_format.test.ts b/x-pack/plugins/cases/server/connectors/servicenow/itsm_format.test.ts index ac9dc8839bfb8..8db9ba7df4859 100644 --- a/x-pack/plugins/cases/server/connectors/servicenow/itsm_format.test.ts +++ b/x-pack/plugins/cases/server/connectors/servicenow/itsm_format.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CaseResponse } from '../../../common/api'; +import type { CaseResponse } from '../../../common/api'; import { format } from './itsm_format'; describe('ITSM formatter', () => { diff --git a/x-pack/plugins/cases/server/connectors/servicenow/itsm_format.ts b/x-pack/plugins/cases/server/connectors/servicenow/itsm_format.ts index 81a20d006c22e..cedbf81c71467 100644 --- a/x-pack/plugins/cases/server/connectors/servicenow/itsm_format.ts +++ b/x-pack/plugins/cases/server/connectors/servicenow/itsm_format.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ConnectorServiceNowITSMTypeFields } from '../../../common/api'; -import { ServiceNowITSMFormat } from './types'; +import type { ConnectorServiceNowITSMTypeFields } from '../../../common/api'; +import type { ServiceNowITSMFormat } from './types'; export const format: ServiceNowITSMFormat = (theCase, alerts) => { const { diff --git a/x-pack/plugins/cases/server/connectors/servicenow/itsm_mapping.ts b/x-pack/plugins/cases/server/connectors/servicenow/itsm_mapping.ts index a94d72576d6e3..50875a1736a7a 100644 --- a/x-pack/plugins/cases/server/connectors/servicenow/itsm_mapping.ts +++ b/x-pack/plugins/cases/server/connectors/servicenow/itsm_mapping.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ServiceNowITSMGetMapping } from './types'; +import type { ServiceNowITSMGetMapping } from './types'; export const getMapping: ServiceNowITSMGetMapping = () => { return [ diff --git a/x-pack/plugins/cases/server/connectors/servicenow/sir_format.test.ts b/x-pack/plugins/cases/server/connectors/servicenow/sir_format.test.ts index 9b24dfa672bf4..6697aad205b92 100644 --- a/x-pack/plugins/cases/server/connectors/servicenow/sir_format.test.ts +++ b/x-pack/plugins/cases/server/connectors/servicenow/sir_format.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CaseResponse } from '../../../common/api'; +import type { CaseResponse } from '../../../common/api'; import { format } from './sir_format'; describe('SIR formatter', () => { diff --git a/x-pack/plugins/cases/server/connectors/servicenow/sir_format.ts b/x-pack/plugins/cases/server/connectors/servicenow/sir_format.ts index dae1045502460..8b686be473f6e 100644 --- a/x-pack/plugins/cases/server/connectors/servicenow/sir_format.ts +++ b/x-pack/plugins/cases/server/connectors/servicenow/sir_format.ts @@ -5,8 +5,8 @@ * 2.0. */ import { get } from 'lodash/fp'; -import { ConnectorServiceNowSIRTypeFields } from '../../../common/api'; -import { ServiceNowSIRFormat, SirFieldKey, AlertFieldMappingAndValues } from './types'; +import type { ConnectorServiceNowSIRTypeFields } from '../../../common/api'; +import type { ServiceNowSIRFormat, SirFieldKey, AlertFieldMappingAndValues } from './types'; export const format: ServiceNowSIRFormat = (theCase, alerts) => { const { diff --git a/x-pack/plugins/cases/server/connectors/servicenow/sir_mapping.ts b/x-pack/plugins/cases/server/connectors/servicenow/sir_mapping.ts index 04d9809bc8b99..2edf99ecb2a29 100644 --- a/x-pack/plugins/cases/server/connectors/servicenow/sir_mapping.ts +++ b/x-pack/plugins/cases/server/connectors/servicenow/sir_mapping.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { ServiceNowSIRGetMapping } from './types'; +import type { ServiceNowSIRGetMapping } from './types'; export const getMapping: ServiceNowSIRGetMapping = () => { return [ diff --git a/x-pack/plugins/cases/server/connectors/servicenow/types.ts b/x-pack/plugins/cases/server/connectors/servicenow/types.ts index 531786730ff9a..90fb336da7bac 100644 --- a/x-pack/plugins/cases/server/connectors/servicenow/types.ts +++ b/x-pack/plugins/cases/server/connectors/servicenow/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ServiceNowITSMFieldsType } from '../../../common/api'; -import { ICasesConnector } from '../types'; +import type { ServiceNowITSMFieldsType } from '../../../common/api'; +import type { ICasesConnector } from '../types'; interface CorrelationValues { correlation_id: string | null; diff --git a/x-pack/plugins/cases/server/connectors/swimlane/format.test.ts b/x-pack/plugins/cases/server/connectors/swimlane/format.test.ts index e72ca3d145c99..d3500c5f9e18e 100644 --- a/x-pack/plugins/cases/server/connectors/swimlane/format.test.ts +++ b/x-pack/plugins/cases/server/connectors/swimlane/format.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CaseResponse } from '../../../common/api'; +import type { CaseResponse } from '../../../common/api'; import { format } from './format'; describe('Swimlane formatter', () => { diff --git a/x-pack/plugins/cases/server/connectors/swimlane/format.ts b/x-pack/plugins/cases/server/connectors/swimlane/format.ts index 48983d745150b..ae8d7023f8f86 100644 --- a/x-pack/plugins/cases/server/connectors/swimlane/format.ts +++ b/x-pack/plugins/cases/server/connectors/swimlane/format.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { ConnectorSwimlaneTypeFields } from '../../../common/api'; -import { Format } from './types'; +import type { ConnectorSwimlaneTypeFields } from '../../../common/api'; +import type { Format } from './types'; export const format: Format = (theCase) => { const { caseId = theCase.id } = diff --git a/x-pack/plugins/cases/server/connectors/swimlane/index.ts b/x-pack/plugins/cases/server/connectors/swimlane/index.ts index 2cad92391bdec..68ab5f65e86e3 100644 --- a/x-pack/plugins/cases/server/connectors/swimlane/index.ts +++ b/x-pack/plugins/cases/server/connectors/swimlane/index.ts @@ -7,7 +7,7 @@ import { getMapping } from './mapping'; import { format } from './format'; -import { SwimlaneCaseConnector } from './types'; +import type { SwimlaneCaseConnector } from './types'; export const getCaseConnector = (): SwimlaneCaseConnector => ({ getMapping, diff --git a/x-pack/plugins/cases/server/connectors/swimlane/mapping.ts b/x-pack/plugins/cases/server/connectors/swimlane/mapping.ts index e1e34054463e5..a5a1d7947074e 100644 --- a/x-pack/plugins/cases/server/connectors/swimlane/mapping.ts +++ b/x-pack/plugins/cases/server/connectors/swimlane/mapping.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { GetMapping } from './types'; +import type { GetMapping } from './types'; export const getMapping: GetMapping = () => { return [ diff --git a/x-pack/plugins/cases/server/connectors/swimlane/types.ts b/x-pack/plugins/cases/server/connectors/swimlane/types.ts index 22a1e9f6372d5..6d5788538fd11 100644 --- a/x-pack/plugins/cases/server/connectors/swimlane/types.ts +++ b/x-pack/plugins/cases/server/connectors/swimlane/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SwimlaneFieldsType } from '../../../common/api'; -import { ICasesConnector } from '../types'; +import type { SwimlaneFieldsType } from '../../../common/api'; +import type { ICasesConnector } from '../types'; export type SwimlaneCaseConnector = ICasesConnector; export type Format = ICasesConnector['format']; diff --git a/x-pack/plugins/cases/server/connectors/types.ts b/x-pack/plugins/cases/server/connectors/types.ts index 83dab22ec920f..b4cb6af0ddde9 100644 --- a/x-pack/plugins/cases/server/connectors/types.ts +++ b/x-pack/plugins/cases/server/connectors/types.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { Logger } from '@kbn/core/server'; -import { CaseResponse, ConnectorMappingsAttributes } from '../../common/api'; -import { CasesClientGetAlertsResponse } from '../client/alerts/types'; -import { CasesClientFactory } from '../client/factory'; -import { RegisterActionType } from '../types'; +import type { Logger } from '@kbn/core/server'; +import type { CaseResponse, ConnectorMappingsAttributes } from '../../common/api'; +import type { CasesClientGetAlertsResponse } from '../client/alerts/types'; +import type { CasesClientFactory } from '../client/factory'; +import type { RegisterActionType } from '../types'; export interface GetActionTypeParams { logger: Logger; diff --git a/x-pack/plugins/cases/server/features.ts b/x-pack/plugins/cases/server/features.ts index 9f92c7d9398a6..2573e5f58b3f3 100644 --- a/x-pack/plugins/cases/server/features.ts +++ b/x-pack/plugins/cases/server/features.ts @@ -7,7 +7,7 @@ import { i18n } from '@kbn/i18n'; -import { KibanaFeatureConfig } from '@kbn/features-plugin/common'; +import type { KibanaFeatureConfig } from '@kbn/features-plugin/common'; import { DEFAULT_APP_CATEGORIES } from '@kbn/core/server'; import { APP_ID, FEATURE_ID } from '../common/constants'; diff --git a/x-pack/plugins/cases/server/index.ts b/x-pack/plugins/cases/server/index.ts index d6ac2b4657de8..ea2adeb1ca6d8 100644 --- a/x-pack/plugins/cases/server/index.ts +++ b/x-pack/plugins/cases/server/index.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server'; +import type { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server'; export { CasesClient } from './client'; -import { ConfigType, ConfigSchema } from './config'; +import type { ConfigType } from './config'; +import { ConfigSchema } from './config'; import { CasePlugin } from './plugin'; export const config: PluginConfigDescriptor = { diff --git a/x-pack/plugins/cases/server/plugin.ts b/x-pack/plugins/cases/server/plugin.ts index 2ca0c140f0202..7f06f34210c4e 100644 --- a/x-pack/plugins/cases/server/plugin.ts +++ b/x-pack/plugins/cases/server/plugin.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { IContextProvider, KibanaRequest, Logger, @@ -14,23 +14,23 @@ import { CoreStart, } from '@kbn/core/server'; -import { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; -import { +import type { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { PluginSetupContract as ActionsPluginSetup, PluginStartContract as ActionsPluginStart, } from '@kbn/actions-plugin/server'; -import { SpacesPluginStart } from '@kbn/spaces-plugin/server'; -import { +import type { SpacesPluginStart } from '@kbn/spaces-plugin/server'; +import type { PluginStartContract as FeaturesPluginStart, PluginSetupContract as FeaturesPluginSetup, } from '@kbn/features-plugin/server'; -import { LensServerPluginSetup } from '@kbn/lens-plugin/server'; -import { +import type { LensServerPluginSetup } from '@kbn/lens-plugin/server'; +import type { TaskManagerSetupContract, TaskManagerStartContract, } from '@kbn/task-manager-plugin/server'; -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; -import { LicensingPluginSetup, LicensingPluginStart } from '@kbn/licensing-plugin/server'; +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import type { LicensingPluginSetup, LicensingPluginStart } from '@kbn/licensing-plugin/server'; import { APP_ID } from '../common/constants'; import { @@ -42,7 +42,7 @@ import { casesTelemetrySavedObjectType, } from './saved_object_types'; -import { CasesClient } from './client'; +import type { CasesClient } from './client'; import type { CasesRequestHandlerContext, PluginSetupContract, PluginStartContract } from './types'; import { CasesClientFactory } from './client/factory'; import { getCasesKibanaFeature } from './features'; diff --git a/x-pack/plugins/cases/server/routes/api/__fixtures__/mock_saved_objects.ts b/x-pack/plugins/cases/server/routes/api/__fixtures__/mock_saved_objects.ts index 1eb180edb09e4..d2eda3d6c9d73 100644 --- a/x-pack/plugins/cases/server/routes/api/__fixtures__/mock_saved_objects.ts +++ b/x-pack/plugins/cases/server/routes/api/__fixtures__/mock_saved_objects.ts @@ -5,15 +5,9 @@ * 2.0. */ -import { SavedObject } from '@kbn/core/server'; -import { - CaseAttributes, - CaseSeverity, - CaseStatuses, - CommentAttributes, - CommentType, - ConnectorTypes, -} from '../../../../common/api'; +import type { SavedObject } from '@kbn/core/server'; +import type { CaseAttributes, CommentAttributes } from '../../../../common/api'; +import { CaseSeverity, CaseStatuses, CommentType, ConnectorTypes } from '../../../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../../../common/constants'; export const mockCases: Array> = [ diff --git a/x-pack/plugins/cases/server/routes/api/__mocks__/request_responses.ts b/x-pack/plugins/cases/server/routes/api/__mocks__/request_responses.ts index b398f9cfd1ba8..95724981c26fe 100644 --- a/x-pack/plugins/cases/server/routes/api/__mocks__/request_responses.ts +++ b/x-pack/plugins/cases/server/routes/api/__mocks__/request_responses.ts @@ -5,7 +5,8 @@ * 2.0. */ -import { CasePostRequest, ConnectorTypes } from '../../../../common/api'; +import type { CasePostRequest } from '../../../../common/api'; +import { ConnectorTypes } from '../../../../common/api'; import { SECURITY_SOLUTION_OWNER } from '../../../../common/constants'; export const newCase: CasePostRequest = { diff --git a/x-pack/plugins/cases/server/routes/api/cases/alerts/get_cases.ts b/x-pack/plugins/cases/server/routes/api/cases/alerts/get_cases.ts index 8a9c02cf574d7..14dfa6ad35b4f 100644 --- a/x-pack/plugins/cases/server/routes/api/cases/alerts/get_cases.ts +++ b/x-pack/plugins/cases/server/routes/api/cases/alerts/get_cases.ts @@ -7,7 +7,7 @@ import { schema } from '@kbn/config-schema'; -import { CasesByAlertIDRequest } from '../../../../../common/api'; +import type { CasesByAlertIDRequest } from '../../../../../common/api'; import { CASE_ALERTS_URL } from '../../../../../common/constants'; import { createCaseError } from '../../../../common/error'; import { createCasesRoute } from '../../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/cases/find_cases.ts b/x-pack/plugins/cases/server/routes/api/cases/find_cases.ts index 2a42bb3fa3353..7d761e98a90db 100644 --- a/x-pack/plugins/cases/server/routes/api/cases/find_cases.ts +++ b/x-pack/plugins/cases/server/routes/api/cases/find_cases.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CasesFindRequest } from '../../../../common/api'; +import type { CasesFindRequest } from '../../../../common/api'; import { CASES_URL } from '../../../../common/constants'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/cases/patch_cases.ts b/x-pack/plugins/cases/server/routes/api/cases/patch_cases.ts index bb9649aaa092c..4bd0dcc12113c 100644 --- a/x-pack/plugins/cases/server/routes/api/cases/patch_cases.ts +++ b/x-pack/plugins/cases/server/routes/api/cases/patch_cases.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CasesPatchRequest } from '../../../../common/api'; +import type { CasesPatchRequest } from '../../../../common/api'; import { CASES_URL } from '../../../../common/constants'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/cases/post_case.ts b/x-pack/plugins/cases/server/routes/api/cases/post_case.ts index 8c4d43274f21a..0ae9081c30851 100644 --- a/x-pack/plugins/cases/server/routes/api/cases/post_case.ts +++ b/x-pack/plugins/cases/server/routes/api/cases/post_case.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { CasePostRequest } from '../../../../common/api'; +import type { CasePostRequest } from '../../../../common/api'; import { CASES_URL } from '../../../../common/constants'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/cases/push_case.ts b/x-pack/plugins/cases/server/routes/api/cases/push_case.ts index 9ee30ed34f2a5..a103d8847b20b 100644 --- a/x-pack/plugins/cases/server/routes/api/cases/push_case.ts +++ b/x-pack/plugins/cases/server/routes/api/cases/push_case.ts @@ -12,7 +12,7 @@ import { identity } from 'fp-ts/lib/function'; import { throwErrors, CasePushRequestParamsRt } from '../../../../common/api'; import { CASE_PUSH_URL } from '../../../../common/constants'; -import { CaseRoute } from '../types'; +import type { CaseRoute } from '../types'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/cases/reporters/get_reporters.ts b/x-pack/plugins/cases/server/routes/api/cases/reporters/get_reporters.ts index 56465fd7be1c4..1dcdfea68b586 100644 --- a/x-pack/plugins/cases/server/routes/api/cases/reporters/get_reporters.ts +++ b/x-pack/plugins/cases/server/routes/api/cases/reporters/get_reporters.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AllReportersFindRequest } from '../../../../../common/api'; +import type { AllReportersFindRequest } from '../../../../../common/api'; import { CASE_REPORTERS_URL } from '../../../../../common/constants'; import { createCaseError } from '../../../../common/error'; import { createCasesRoute } from '../../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/cases/tags/get_tags.ts b/x-pack/plugins/cases/server/routes/api/cases/tags/get_tags.ts index 8c2071750f5e6..9a06cc29e72bd 100644 --- a/x-pack/plugins/cases/server/routes/api/cases/tags/get_tags.ts +++ b/x-pack/plugins/cases/server/routes/api/cases/tags/get_tags.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { AllTagsFindRequest } from '../../../../../common/api'; +import type { AllTagsFindRequest } from '../../../../../common/api'; import { CASE_TAGS_URL } from '../../../../../common/constants'; import { createCaseError } from '../../../../common/error'; import { createCasesRoute } from '../../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/comments/post_comment.ts b/x-pack/plugins/cases/server/routes/api/comments/post_comment.ts index f501f3a425801..daef9f3fa9f04 100644 --- a/x-pack/plugins/cases/server/routes/api/comments/post_comment.ts +++ b/x-pack/plugins/cases/server/routes/api/comments/post_comment.ts @@ -7,7 +7,7 @@ import { schema } from '@kbn/config-schema'; import { CASE_COMMENTS_URL } from '../../../../common/constants'; -import { CommentRequest } from '../../../../common/api'; +import type { CommentRequest } from '../../../../common/api'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/configure/get_configure.ts b/x-pack/plugins/cases/server/routes/api/configure/get_configure.ts index 72ca1f6a38324..d57c01a85dbc7 100644 --- a/x-pack/plugins/cases/server/routes/api/configure/get_configure.ts +++ b/x-pack/plugins/cases/server/routes/api/configure/get_configure.ts @@ -6,7 +6,7 @@ */ import { CASE_CONFIGURE_URL } from '../../../../common/constants'; -import { GetConfigureFindRequest } from '../../../../common/api'; +import type { GetConfigureFindRequest } from '../../../../common/api'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/configure/patch_configure.ts b/x-pack/plugins/cases/server/routes/api/configure/patch_configure.ts index b6754dc6da8f6..33190e769e5fb 100644 --- a/x-pack/plugins/cases/server/routes/api/configure/patch_configure.ts +++ b/x-pack/plugins/cases/server/routes/api/configure/patch_configure.ts @@ -10,12 +10,8 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; -import { - CaseConfigureRequestParamsRt, - throwErrors, - CasesConfigurePatch, - excess, -} from '../../../../common/api'; +import type { CasesConfigurePatch } from '../../../../common/api'; +import { CaseConfigureRequestParamsRt, throwErrors, excess } from '../../../../common/api'; import { CASE_CONFIGURE_DETAILS_URL } from '../../../../common/constants'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/create_cases_route.ts b/x-pack/plugins/cases/server/routes/api/create_cases_route.ts index eb6a1079440a0..bb1cb25c6e166 100644 --- a/x-pack/plugins/cases/server/routes/api/create_cases_route.ts +++ b/x-pack/plugins/cases/server/routes/api/create_cases_route.ts @@ -5,6 +5,6 @@ * 2.0. */ -import { CaseRoute } from './types'; +import type { CaseRoute } from './types'; export const createCasesRoute = (route: CaseRoute) => route; diff --git a/x-pack/plugins/cases/server/routes/api/get_external_routes.ts b/x-pack/plugins/cases/server/routes/api/get_external_routes.ts index 7b7a18cc7c83c..d8a2a3d70e190 100644 --- a/x-pack/plugins/cases/server/routes/api/get_external_routes.ts +++ b/x-pack/plugins/cases/server/routes/api/get_external_routes.ts @@ -15,7 +15,7 @@ import { pushCaseRoute } from './cases/push_case'; import { getReportersRoute } from './cases/reporters/get_reporters'; import { getStatusRoute } from './stats/get_status'; import { getUserActionsRoute } from './user_actions/get_all_user_actions'; -import { CaseRoute } from './types'; +import type { CaseRoute } from './types'; import { getTagsRoute } from './cases/tags/get_tags'; import { deleteAllCommentsRoute } from './comments/delete_all_comments'; import { deleteCommentRoute } from './comments/delete_comment'; diff --git a/x-pack/plugins/cases/server/routes/api/get_internal_routes.ts b/x-pack/plugins/cases/server/routes/api/get_internal_routes.ts index 50e6bcf64cbd9..8f704d16e60e4 100644 --- a/x-pack/plugins/cases/server/routes/api/get_internal_routes.ts +++ b/x-pack/plugins/cases/server/routes/api/get_internal_routes.ts @@ -5,10 +5,10 @@ * 2.0. */ -import { UserProfileService } from '../../services'; +import type { UserProfileService } from '../../services'; import { bulkCreateAttachmentsRoute } from './internal/bulk_create_attachments'; import { suggestUserProfilesRoute } from './internal/suggest_user_profiles'; -import { CaseRoute } from './types'; +import type { CaseRoute } from './types'; export const getInternalRoutes = (userProfileService: UserProfileService) => [bulkCreateAttachmentsRoute, suggestUserProfilesRoute(userProfileService)] as CaseRoute[]; diff --git a/x-pack/plugins/cases/server/routes/api/internal/bulk_create_attachments.ts b/x-pack/plugins/cases/server/routes/api/internal/bulk_create_attachments.ts index cd2facd2391e3..a71d0fc10f649 100644 --- a/x-pack/plugins/cases/server/routes/api/internal/bulk_create_attachments.ts +++ b/x-pack/plugins/cases/server/routes/api/internal/bulk_create_attachments.ts @@ -7,7 +7,7 @@ import { schema } from '@kbn/config-schema'; import { INTERNAL_BULK_CREATE_ATTACHMENTS_URL } from '../../../../common/constants'; -import { BulkCreateCommentRequest } from '../../../../common/api'; +import type { BulkCreateCommentRequest } from '../../../../common/api'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; import { escapeHatch } from '../utils'; diff --git a/x-pack/plugins/cases/server/routes/api/internal/suggest_user_profiles.ts b/x-pack/plugins/cases/server/routes/api/internal/suggest_user_profiles.ts index 00a8d06259e22..0dc656e6e11e6 100644 --- a/x-pack/plugins/cases/server/routes/api/internal/suggest_user_profiles.ts +++ b/x-pack/plugins/cases/server/routes/api/internal/suggest_user_profiles.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UserProfileService } from '../../../services'; +import type { UserProfileService } from '../../../services'; import { INTERNAL_SUGGEST_USER_PROFILES_URL } from '../../../../common/constants'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/register_routes.test.ts b/x-pack/plugins/cases/server/routes/api/register_routes.test.ts index 07aa3fc70a75f..f30387ca486f1 100644 --- a/x-pack/plugins/cases/server/routes/api/register_routes.test.ts +++ b/x-pack/plugins/cases/server/routes/api/register_routes.test.ts @@ -11,10 +11,10 @@ import { httpServerMock, httpServiceMock, loggingSystemMock } from '@kbn/core/se import { usageCollectionPluginMock } from '@kbn/usage-collection-plugin/server/mocks'; -import { CasesRouter } from '../../types'; +import type { CasesRouter } from '../../types'; import { createCasesRoute } from './create_cases_route'; import { registerRoutes } from './register_routes'; -import { CaseRoute } from './types'; +import type { CaseRoute } from './types'; import { extractWarningValueFromWarningHeader } from './utils'; describe('registerRoutes', () => { diff --git a/x-pack/plugins/cases/server/routes/api/register_routes.ts b/x-pack/plugins/cases/server/routes/api/register_routes.ts index a9dcd51864a57..4a02e43fdae65 100644 --- a/x-pack/plugins/cases/server/routes/api/register_routes.ts +++ b/x-pack/plugins/cases/server/routes/api/register_routes.ts @@ -6,9 +6,9 @@ */ import { schema } from '@kbn/config-schema'; -import { Headers, RouteRegistrar } from '@kbn/core/server'; -import { CasesRequestHandlerContext } from '../../types'; -import { RegisterRoutesDeps } from './types'; +import type { Headers, RouteRegistrar } from '@kbn/core/server'; +import type { CasesRequestHandlerContext } from '../../types'; +import type { RegisterRoutesDeps } from './types'; import { escapeHatch, getIsKibanaRequest, diff --git a/x-pack/plugins/cases/server/routes/api/stats/get_status.ts b/x-pack/plugins/cases/server/routes/api/stats/get_status.ts index d35d366534c14..3fa4952559be4 100644 --- a/x-pack/plugins/cases/server/routes/api/stats/get_status.ts +++ b/x-pack/plugins/cases/server/routes/api/stats/get_status.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { CaseRoute } from '../types'; +import type { CaseRoute } from '../types'; -import { CasesStatusRequest } from '../../../../common/api'; +import type { CasesStatusRequest } from '../../../../common/api'; import { CASE_STATUS_URL } from '../../../../common/constants'; import { createCaseError } from '../../../common/error'; import { createCasesRoute } from '../create_cases_route'; diff --git a/x-pack/plugins/cases/server/routes/api/types.ts b/x-pack/plugins/cases/server/routes/api/types.ts index 3c340cec9ef2a..3dafad71b3cd8 100644 --- a/x-pack/plugins/cases/server/routes/api/types.ts +++ b/x-pack/plugins/cases/server/routes/api/types.ts @@ -14,7 +14,7 @@ import type { RouteValidatorConfig, } from '@kbn/core/server'; -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; import type { CasesRequestHandlerContext, CasesRouter } from '../../types'; type TelemetryUsageCounter = ReturnType; diff --git a/x-pack/plugins/cases/server/routes/api/utils.test.ts b/x-pack/plugins/cases/server/routes/api/utils.test.ts index d7415276d3e71..68a6088309f7a 100644 --- a/x-pack/plugins/cases/server/routes/api/utils.test.ts +++ b/x-pack/plugins/cases/server/routes/api/utils.test.ts @@ -7,7 +7,7 @@ import { isBoom, boomify } from '@hapi/boom'; import { loggingSystemMock } from '@kbn/core/server/mocks'; -import { HTTPError } from '../../common/error'; +import type { HTTPError } from '../../common/error'; import { extractWarningValueFromWarningHeader, logDeprecatedEndpoint, wrapError } from './utils'; describe('Utils', () => { diff --git a/x-pack/plugins/cases/server/routes/api/utils.ts b/x-pack/plugins/cases/server/routes/api/utils.ts index 3e595e74f042d..e363d37482a04 100644 --- a/x-pack/plugins/cases/server/routes/api/utils.ts +++ b/x-pack/plugins/cases/server/routes/api/utils.ts @@ -5,10 +5,12 @@ * 2.0. */ -import { Boom, boomify, isBoom } from '@hapi/boom'; +import type { Boom } from '@hapi/boom'; +import { boomify, isBoom } from '@hapi/boom'; import { schema } from '@kbn/config-schema'; import type { CustomHttpResponseOptions, ResponseError, Headers, Logger } from '@kbn/core/server'; -import { CaseError, isCaseError, HTTPError, isHTTPError } from '../../common/error'; +import type { CaseError, HTTPError } from '../../common/error'; +import { isCaseError, isHTTPError } from '../../common/error'; /** * Transforms an error into the correct format for a kibana response. diff --git a/x-pack/plugins/cases/server/saved_object_types/cases.ts b/x-pack/plugins/cases/server/saved_object_types/cases.ts index 8b50713c0e877..e0b9ab1cbafda 100644 --- a/x-pack/plugins/cases/server/saved_object_types/cases.ts +++ b/x-pack/plugins/cases/server/saved_object_types/cases.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { CoreSetup, Logger, SavedObject, @@ -13,7 +13,7 @@ import { SavedObjectsType, } from '@kbn/core/server'; import { CASE_SAVED_OBJECT } from '../../common/constants'; -import { ESCaseAttributes } from '../services/cases/types'; +import type { ESCaseAttributes } from '../services/cases/types'; import { handleExport } from './import_export/export'; import { caseMigrations } from './migrations'; diff --git a/x-pack/plugins/cases/server/saved_object_types/comments.ts b/x-pack/plugins/cases/server/saved_object_types/comments.ts index 534cd0b006ee3..95df2007da00b 100644 --- a/x-pack/plugins/cases/server/saved_object_types/comments.ts +++ b/x-pack/plugins/cases/server/saved_object_types/comments.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { CASE_COMMENT_SAVED_OBJECT } from '../../common/constants'; -import { createCommentsMigrations, CreateCommentsMigrationsDeps } from './migrations'; +import type { CreateCommentsMigrationsDeps } from './migrations'; +import { createCommentsMigrations } from './migrations'; export const createCaseCommentSavedObjectType = ({ migrationDeps, diff --git a/x-pack/plugins/cases/server/saved_object_types/configure.ts b/x-pack/plugins/cases/server/saved_object_types/configure.ts index 8e8744240719a..2ee1e3458c647 100644 --- a/x-pack/plugins/cases/server/saved_object_types/configure.ts +++ b/x-pack/plugins/cases/server/saved_object_types/configure.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { CASE_CONFIGURE_SAVED_OBJECT } from '../../common/constants'; import { configureMigrations } from './migrations'; diff --git a/x-pack/plugins/cases/server/saved_object_types/connector_mappings.ts b/x-pack/plugins/cases/server/saved_object_types/connector_mappings.ts index a8d5ccf605158..7d89b090847d3 100644 --- a/x-pack/plugins/cases/server/saved_object_types/connector_mappings.ts +++ b/x-pack/plugins/cases/server/saved_object_types/connector_mappings.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { CASE_CONNECTOR_MAPPINGS_SAVED_OBJECT } from '../../common/constants'; import { connectorMappingsMigrations } from './migrations'; diff --git a/x-pack/plugins/cases/server/saved_object_types/import_export/export.ts b/x-pack/plugins/cases/server/saved_object_types/import_export/export.ts index 78710558793fc..2e898c23d94b7 100644 --- a/x-pack/plugins/cases/server/saved_object_types/import_export/export.ts +++ b/x-pack/plugins/cases/server/saved_object_types/import_export/export.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { +import type { CoreSetup, Logger, SavedObject, SavedObjectsClientContract, SavedObjectsExportTransformContext, } from '@kbn/core/server'; -import { CaseUserActionAttributes, CommentAttributes } from '../../../common/api'; +import type { CaseUserActionAttributes, CommentAttributes } from '../../../common/api'; import { CASE_COMMENT_SAVED_OBJECT, CASE_SAVED_OBJECT, @@ -22,7 +22,7 @@ import { } from '../../../common/constants'; import { defaultSortField } from '../../common/utils'; import { createCaseError } from '../../common/error'; -import { ESCaseAttributes } from '../../services/cases/types'; +import type { ESCaseAttributes } from '../../services/cases/types'; export async function handleExport({ context, diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/cases.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/cases.test.ts index 11eb477be73a5..c23bbd29dfe99 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/cases.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/cases.test.ts @@ -5,17 +5,13 @@ * 2.0. */ -import { SavedObjectSanitizedDoc } from '@kbn/core/server'; -import { - CaseAttributes, - CaseFullExternalService, - CaseSeverity, - ConnectorTypes, - NONE_CONNECTOR_ID, -} from '../../../common/api'; +import type { SavedObjectSanitizedDoc } from '@kbn/core/server'; +import type { CaseAttributes, CaseFullExternalService } from '../../../common/api'; +import { CaseSeverity, ConnectorTypes, NONE_CONNECTOR_ID } from '../../../common/api'; import { CASE_SAVED_OBJECT } from '../../../common/constants'; import { getNoneCaseConnector } from '../../common/utils'; -import { createExternalService, ESCaseConnectorWithId } from '../../services/test_utils'; +import type { ESCaseConnectorWithId } from '../../services/test_utils'; +import { createExternalService } from '../../services/test_utils'; import { addAssignees, addDuration, diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/cases.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/cases.ts index 2e3672c6f72c2..50ea3e1dd8064 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/cases.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/cases.ts @@ -8,10 +8,12 @@ /* eslint-disable @typescript-eslint/naming-convention */ import { cloneDeep, unset } from 'lodash'; -import { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; -import { addOwnerToSO, SanitizedCaseOwner } from '.'; -import { ESConnectorFields } from '../../services'; -import { CaseAttributes, CaseSeverity, ConnectorTypes } from '../../../common/api'; +import type { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; +import type { SanitizedCaseOwner } from '.'; +import { addOwnerToSO } from '.'; +import type { ESConnectorFields } from '../../services'; +import type { CaseAttributes } from '../../../common/api'; +import { CaseSeverity, ConnectorTypes } from '../../../common/api'; import { CONNECTOR_ID_REFERENCE_NAME, PUSH_CONNECTOR_ID_REFERENCE_NAME, diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/comments.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/comments.test.ts index 5804c0ff401dd..ed3273efd06af 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/comments.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/comments.test.ts @@ -20,18 +20,18 @@ import { CommentType } from '../../../common/api'; import { savedObjectsServiceMock } from '@kbn/core/server/mocks'; import { makeLensEmbeddableFactory } from '@kbn/lens-plugin/server/embeddable/make_lens_embeddable_factory'; -import { LensDocShape715 } from '@kbn/lens-plugin/server'; -import { - mergeSavedObjectMigrationMaps, +import type { LensDocShape715 } from '@kbn/lens-plugin/server'; +import type { SavedObjectReference, SavedObjectsMigrationLogger, SavedObjectUnsanitizedDoc, } from '@kbn/core/server'; -import { MigrateFunction, MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common'; -import { SerializableRecord } from '@kbn/utility-types'; +import { mergeSavedObjectMigrationMaps } from '@kbn/core/server'; +import type { MigrateFunction, MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common'; +import type { SerializableRecord } from '@kbn/utility-types'; import { GENERATED_ALERT, SUB_CASE_SAVED_OBJECT } from './constants'; import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; -import { PersistableStateAttachmentTypeSetup } from '../../attachment_framework/types'; +import type { PersistableStateAttachmentTypeSetup } from '../../attachment_framework/types'; import { SECURITY_SOLUTION_OWNER } from '../../../common'; describe('comments migrations', () => { diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts index 5ab08d5e38040..b3978b6e12ef6 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/comments.ts @@ -7,30 +7,31 @@ import { mapValues, trimEnd, cloneDeep, unset } from 'lodash'; import type { SerializableRecord } from '@kbn/utility-types'; -import { MigrateFunction, MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common'; -import { +import type { MigrateFunction, MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common'; +import type { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc, SavedObjectMigrationFn, SavedObjectMigrationMap, SavedObjectMigrationContext, - mergeSavedObjectMigrationMaps, } from '@kbn/core/server'; -import { LensServerPluginSetup } from '@kbn/lens-plugin/server'; -import { CommentAttributes, CommentType } from '../../../common/api'; +import { mergeSavedObjectMigrationMaps } from '@kbn/core/server'; +import type { LensServerPluginSetup } from '@kbn/lens-plugin/server'; +import type { CommentAttributes } from '../../../common/api'; +import { CommentType } from '../../../common/api'; +import type { LensMarkdownNode, MarkdownNode } from '../../../common/utils/markdown_plugins/utils'; import { isLensMarkdownNode, - LensMarkdownNode, - MarkdownNode, parseCommentString, stringifyMarkdownComment, } from '../../../common/utils/markdown_plugins/utils'; -import { addOwnerToSO, SanitizedCaseOwner } from '.'; +import type { SanitizedCaseOwner } from '.'; +import { addOwnerToSO } from '.'; import { logError } from './utils'; import { GENERATED_ALERT, SUB_CASE_SAVED_OBJECT } from './constants'; -import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; import { getAllPersistableAttachmentMigrations } from './get_all_persistable_attachment_migrations'; -import { PersistableStateAttachmentState } from '../../attachment_framework/types'; +import type { PersistableStateAttachmentState } from '../../attachment_framework/types'; interface UnsanitizedComment { comment: string; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/configuration.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/configuration.test.ts index ac48732c07096..e42d75817c65b 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/configuration.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/configuration.test.ts @@ -5,14 +5,14 @@ * 2.0. */ -import { SavedObjectSanitizedDoc } from '@kbn/core/server'; +import type { SavedObjectSanitizedDoc } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; import { ConnectorTypes } from '../../../common/api'; import { CASE_CONFIGURE_SAVED_OBJECT, SECURITY_SOLUTION_OWNER } from '../../../common/constants'; import { CONNECTOR_ID_REFERENCE_NAME } from '../../common/constants'; import { getNoneCaseConnector } from '../../common/utils'; -import { ESCaseConnectorWithId } from '../../services/test_utils'; -import { ESCasesConfigureAttributes } from '../../services/configure/types'; +import type { ESCaseConnectorWithId } from '../../services/test_utils'; +import type { ESCasesConfigureAttributes } from '../../services/configure/types'; import { configureConnectorIdMigration } from './configuration'; // eslint-disable-next-line @typescript-eslint/naming-convention diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/configuration.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/configuration.ts index ebf0fc2dcfc19..84d1164ac23f1 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/configuration.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/configuration.ts @@ -7,9 +7,10 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; +import type { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; import { ConnectorTypes } from '../../../common/api'; -import { addOwnerToSO, SanitizedCaseOwner } from '.'; +import type { SanitizedCaseOwner } from '.'; +import { addOwnerToSO } from '.'; import { CONNECTOR_ID_REFERENCE_NAME } from '../../common/constants'; import { transformConnectorIdToReference } from './user_actions/connector_id'; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/get_all_persistable_attachment_migrations.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/get_all_persistable_attachment_migrations.test.ts index 3ec108b84577c..4a4b4327881f2 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/get_all_persistable_attachment_migrations.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/get_all_persistable_attachment_migrations.test.ts @@ -6,7 +6,7 @@ */ import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; -import { PersistableStateAttachmentTypeSetup } from '../../attachment_framework/types'; +import type { PersistableStateAttachmentTypeSetup } from '../../attachment_framework/types'; import { getAllPersistableAttachmentMigrations } from './get_all_persistable_attachment_migrations'; describe('getAllPersistableAttachmentMigrations', () => { diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/get_all_persistable_attachment_migrations.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/get_all_persistable_attachment_migrations.ts index 7dfbb1517c7d5..ca074349c6768 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/get_all_persistable_attachment_migrations.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/get_all_persistable_attachment_migrations.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common'; -import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; -import { PersistableStateAttachmentState } from '../../attachment_framework/types'; +import type { MigrateFunctionsObject } from '@kbn/kibana-utils-plugin/common'; +import type { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; +import type { PersistableStateAttachmentState } from '../../attachment_framework/types'; const getMigrateFunction = ( persistableStateAttachmentTypeRegistry: PersistableStateAttachmentTypeRegistry diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/index.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/index.ts index 5ecf6c806065b..35d2e99906ba2 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/index.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; +import type { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; import { SECURITY_SOLUTION_OWNER } from '../../../common/constants'; export { caseMigrations } from './cases'; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts index 4542cbc269683..70cf329675126 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { SavedObject, SavedObjectMigrationContext, SavedObjectsMigrationLogger, diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts index 8c5ad2b254b60..50e301a0945a8 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/alerts.ts @@ -5,15 +5,16 @@ * 2.0. */ -import { +import type { SavedObjectMigrationContext, SavedObjectSanitizedDoc, SavedObjectUnsanitizedDoc, } from '@kbn/core/server'; -import { CommentRequestAlertType, CommentType } from '../../../../common/api'; +import type { CommentRequestAlertType } from '../../../../common/api'; +import { CommentType } from '../../../../common/api'; import { GENERATED_ALERT } from '../constants'; import { logError } from '../utils'; -import { UserActionVersion800 } from './types'; +import type { UserActionVersion800 } from './types'; /* eslint-disable @typescript-eslint/naming-convention */ diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/assignees.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/assignees.ts index d7b1110bbd5e1..9a3f0f766ad7e 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/assignees.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/assignees.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; -import { ActionTypes, CreateCaseUserAction } from '../../../../common/api'; +import type { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; +import type { CreateCaseUserAction } from '../../../../common/api'; +import { ActionTypes } from '../../../../common/api'; export const addAssigneesToCreateUserAction = ( doc: SavedObjectUnsanitizedDoc diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/connector_id.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/connector_id.test.ts index a26581721eee6..ed43cc40649c6 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/connector_id.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/connector_id.test.ts @@ -7,7 +7,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { +import type { SavedObjectMigrationContext, SavedObjectSanitizedDoc, SavedObjectsMigrationLogger, @@ -24,7 +24,7 @@ import { createJiraConnector, } from '../../../services/test_utils'; import { userActionsConnectorIdMigration } from './connector_id'; -import { UserActions } from './types'; +import type { UserActions } from './types'; interface Pre810UserActionAttributes { new_value?: string; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/connector_id.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/connector_id.ts index c22b5f8c89479..b553d76da7f21 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/connector_id.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/connector_id.ts @@ -7,18 +7,17 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import * as rt from 'io-ts'; +import type * as rt from 'io-ts'; -import { +import type { SavedObjectMigrationContext, SavedObjectReference, SavedObjectSanitizedDoc, SavedObjectUnsanitizedDoc, } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; +import type { CaseAttributes, CaseConnector } from '../../../../common/api'; import { - CaseAttributes, - CaseConnector, CaseConnectorRt, CaseExternalServiceBasicRt, NONE_CONNECTOR_ID, @@ -28,7 +27,7 @@ import { PUSH_CONNECTOR_ID_REFERENCE_NAME, } from '../../../common/constants'; import { getNoneCaseConnector } from '../../../common/utils'; -import { UserActionVersion800 } from './types'; +import type { UserActionVersion800 } from './types'; import { logError } from '../utils'; import { USER_ACTION_OLD_ID_REF_NAME, USER_ACTION_OLD_PUSH_ID_REF_NAME } from './constants'; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/index.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/index.ts index 98a1e2454ffc4..e152cb6d386b0 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/index.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/index.ts @@ -7,30 +7,27 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { +import type { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc, SavedObjectMigrationMap, - mergeSavedObjectMigrationMaps, SavedObjectMigrationFn, } from '@kbn/core/server'; +import { mergeSavedObjectMigrationMaps } from '@kbn/core/server'; -import { MigrateFunctionsObject, MigrateFunction } from '@kbn/kibana-utils-plugin/common'; +import type { MigrateFunctionsObject, MigrateFunction } from '@kbn/kibana-utils-plugin/common'; import { mapValues } from 'lodash'; -import { PersistableStateAttachmentState } from '../../../attachment_framework/types'; -import { - ActionTypes, - CaseUserActionAttributes, - CommentType, - ConnectorTypes, -} from '../../../../common/api'; -import { PersistableStateAttachmentTypeRegistry } from '../../../attachment_framework/persistable_state_registry'; -import { addOwnerToSO, SanitizedCaseOwner } from '..'; +import type { PersistableStateAttachmentState } from '../../../attachment_framework/types'; +import type { CaseUserActionAttributes } from '../../../../common/api'; +import { ActionTypes, CommentType, ConnectorTypes } from '../../../../common/api'; +import type { PersistableStateAttachmentTypeRegistry } from '../../../attachment_framework/persistable_state_registry'; +import type { SanitizedCaseOwner } from '..'; +import { addOwnerToSO } from '..'; import { removeRuleInformation } from './alerts'; import { userActionsConnectorIdMigration } from './connector_id'; import { payloadMigration } from './payload'; import { addSeverityToCreateUserAction } from './severity'; -import { UserActions } from './types'; +import type { UserActions } from './types'; import { getAllPersistableAttachmentMigrations } from '../get_all_persistable_attachment_migrations'; import { addAssigneesToCreateUserAction } from './assignees'; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/payload.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/payload.test.ts index 7ac7711b79db3..b4980be136c81 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/payload.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/payload.test.ts @@ -7,7 +7,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { SavedObjectMigrationContext, SavedObjectUnsanitizedDoc } from '@kbn/core/server'; +import type { SavedObjectMigrationContext, SavedObjectUnsanitizedDoc } from '@kbn/core/server'; import { migrationMocks } from '@kbn/core/server/mocks'; import { CommentType } from '../../../../common/api'; import { @@ -16,7 +16,7 @@ import { } from '../../../../common/constants'; import { createJiraConnector } from '../../../services/test_utils'; import { payloadMigration } from './payload'; -import { UserActions } from './types'; +import type { UserActions } from './types'; const create_7_14_0_userAction = (params: { action: string; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/payload.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/payload.ts index 0a04c858e7d4d..cd1ef23f86223 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/payload.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/payload.ts @@ -9,23 +9,18 @@ import { isEmpty, isPlainObject, isString } from 'lodash'; -import { +import type { SavedObjectMigrationContext, SavedObjectReference, SavedObjectSanitizedDoc, SavedObjectUnsanitizedDoc, } from '@kbn/core/server'; -import { - Actions, - ActionTypes, - CaseStatuses, - CommentType, - UserActionTypes, -} from '../../../../common/api'; +import type { UserActionTypes } from '../../../../common/api'; +import { Actions, ActionTypes, CaseStatuses, CommentType } from '../../../../common/api'; import { USER_ACTION_OLD_ID_REF_NAME, USER_ACTION_OLD_PUSH_ID_REF_NAME } from './constants'; import { getNoneCaseConnector } from '../../../common/utils'; import { logError } from '../utils'; -import { UserActions } from './types'; +import type { UserActions } from './types'; export function payloadMigration( doc: SavedObjectUnsanitizedDoc, diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/severity.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/severity.ts index 6e838e7bcbc1d..1e37a055bb0bb 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/severity.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/user_actions/severity.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; -import { ActionTypes, CaseSeverity, CreateCaseUserAction } from '../../../../common/api'; +import type { SavedObjectUnsanitizedDoc, SavedObjectSanitizedDoc } from '@kbn/core/server'; +import type { CreateCaseUserAction } from '../../../../common/api'; +import { ActionTypes, CaseSeverity } from '../../../../common/api'; export const addSeverityToCreateUserAction = ( doc: SavedObjectUnsanitizedDoc diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/utils.test.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/utils.test.ts index 3284c09df274f..a81cd40cb2c15 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/utils.test.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/utils.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsMigrationLogger } from '@kbn/core/server'; +import type { SavedObjectsMigrationLogger } from '@kbn/core/server'; import { migrationMocks } from '@kbn/core/server/mocks'; import { logError } from './utils'; diff --git a/x-pack/plugins/cases/server/saved_object_types/migrations/utils.ts b/x-pack/plugins/cases/server/saved_object_types/migrations/utils.ts index 8996f89155949..3b3a7c8e50792 100644 --- a/x-pack/plugins/cases/server/saved_object_types/migrations/utils.ts +++ b/x-pack/plugins/cases/server/saved_object_types/migrations/utils.ts @@ -5,7 +5,11 @@ * 2.0. */ -import { LogMeta, SavedObjectMigrationContext, SavedObjectUnsanitizedDoc } from '@kbn/core/server'; +import type { + LogMeta, + SavedObjectMigrationContext, + SavedObjectUnsanitizedDoc, +} from '@kbn/core/server'; interface MigrationLogMeta extends LogMeta { migrations: { diff --git a/x-pack/plugins/cases/server/saved_object_types/telemetry.ts b/x-pack/plugins/cases/server/saved_object_types/telemetry.ts index 932fc39a6b180..515d1e63c7858 100644 --- a/x-pack/plugins/cases/server/saved_object_types/telemetry.ts +++ b/x-pack/plugins/cases/server/saved_object_types/telemetry.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { CASE_TELEMETRY_SAVED_OBJECT } from '../../common/constants'; export const casesTelemetrySavedObjectType: SavedObjectsType = { diff --git a/x-pack/plugins/cases/server/saved_object_types/user_actions.ts b/x-pack/plugins/cases/server/saved_object_types/user_actions.ts index bc6e61ba05ded..1862e180acc22 100644 --- a/x-pack/plugins/cases/server/saved_object_types/user_actions.ts +++ b/x-pack/plugins/cases/server/saved_object_types/user_actions.ts @@ -5,9 +5,10 @@ * 2.0. */ -import { SavedObjectsType } from '@kbn/core/server'; +import type { SavedObjectsType } from '@kbn/core/server'; import { CASE_USER_ACTION_SAVED_OBJECT } from '../../common/constants'; -import { createUserActionsMigrations, UserActionsMigrationsDeps } from './migrations/user_actions'; +import type { UserActionsMigrationsDeps } from './migrations/user_actions'; +import { createUserActionsMigrations } from './migrations/user_actions'; export const createCaseUserActionSavedObjectType = ( migrationDeps: UserActionsMigrationsDeps diff --git a/x-pack/plugins/cases/server/services/alerts/index.ts b/x-pack/plugins/cases/server/services/alerts/index.ts index a83528d026fd0..3a36d85fb0288 100644 --- a/x-pack/plugins/cases/server/services/alerts/index.ts +++ b/x-pack/plugins/cases/server/services/alerts/index.ts @@ -8,18 +8,16 @@ import pMap from 'p-map'; import { isEmpty } from 'lodash'; -import { ElasticsearchClient, Logger } from '@kbn/core/server'; -import { - ALERT_WORKFLOW_STATUS, - STATUS_VALUES, -} from '@kbn/rule-registry-plugin/common/technical_rule_data_field_names'; -import { MgetResponse } from '@elastic/elasticsearch/lib/api/types'; +import type { ElasticsearchClient, Logger } from '@kbn/core/server'; +import type { STATUS_VALUES } from '@kbn/rule-registry-plugin/common/technical_rule_data_field_names'; +import { ALERT_WORKFLOW_STATUS } from '@kbn/rule-registry-plugin/common/technical_rule_data_field_names'; +import type { MgetResponse } from '@elastic/elasticsearch/lib/api/types'; import { CaseStatuses } from '../../../common/api'; import { MAX_ALERTS_PER_CASE, MAX_CONCURRENT_SEARCHES } from '../../../common/constants'; import { createCaseError } from '../../common/error'; -import { AlertInfo } from '../../common/types'; -import { UpdateAlertRequest } from '../../client/alerts/types'; -import { AggregationBuilder, AggregationResponse } from '../../client/metrics/types'; +import type { AlertInfo } from '../../common/types'; +import type { UpdateAlertRequest } from '../../client/alerts/types'; +import type { AggregationBuilder, AggregationResponse } from '../../client/metrics/types'; export class AlertService { constructor( diff --git a/x-pack/plugins/cases/server/services/attachments/index.ts b/x-pack/plugins/cases/server/services/attachments/index.ts index aa055663d6e03..e12ff71a20cf9 100644 --- a/x-pack/plugins/cases/server/services/attachments/index.ts +++ b/x-pack/plugins/cases/server/services/attachments/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { Logger, SavedObject, SavedObjectReference, @@ -19,30 +19,30 @@ import { import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import type { KueryNode } from '@kbn/es-query'; -import { +import type { AttributesTypeAlerts, CommentAttributes as AttachmentAttributes, CommentAttributesWithoutRefs as AttachmentAttributesWithoutRefs, CommentPatchAttributes as AttachmentPatchAttributes, - CommentType, } from '../../../common/api'; +import { CommentType } from '../../../common/api'; import { CASE_COMMENT_SAVED_OBJECT, CASE_SAVED_OBJECT, MAX_DOCS_PER_PAGE, } from '../../../common/constants'; -import { ClientArgs } from '..'; +import type { ClientArgs } from '..'; import { buildFilter, combineFilters } from '../../client/utils'; import { defaultSortField } from '../../common/utils'; -import { AggregationResponse } from '../../client/metrics/types'; +import type { AggregationResponse } from '../../client/metrics/types'; import { extractAttachmentSORefsFromAttributes, injectAttachmentSOAttributesFromRefs, injectAttachmentSOAttributesFromRefsForPatch, } from '../so_references'; -import { SavedObjectFindOptionsKueryNode } from '../../common/types'; -import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; -import { IndexRefresh } from '../types'; +import type { SavedObjectFindOptionsKueryNode } from '../../common/types'; +import type { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; +import type { IndexRefresh } from '../types'; interface AttachedToCaseArgs extends ClientArgs { caseId: string; diff --git a/x-pack/plugins/cases/server/services/cases/index.test.ts b/x-pack/plugins/cases/server/services/cases/index.test.ts index b5902778ae73d..1043d456f5cae 100644 --- a/x-pack/plugins/cases/server/services/cases/index.test.ts +++ b/x-pack/plugins/cases/server/services/cases/index.test.ts @@ -13,10 +13,10 @@ * connector.id. */ -import { CaseAttributes, CaseConnector, CaseFullExternalService } from '../../../common/api'; +import type { CaseAttributes, CaseConnector, CaseFullExternalService } from '../../../common/api'; import { CASE_SAVED_OBJECT } from '../../../common/constants'; import { savedObjectsClientMock } from '@kbn/core/server/mocks'; -import { +import type { SavedObject, SavedObjectReference, SavedObjectsCreateOptions, @@ -30,17 +30,17 @@ import { loggerMock } from '@kbn/logging-mocks'; import { CONNECTOR_ID_REFERENCE_NAME } from '../../common/constants'; import { getNoneCaseConnector } from '../../common/utils'; import { CasesService } from '.'; +import type { ESCaseConnectorWithId } from '../test_utils'; import { createESJiraConnector, createJiraConnector, - ESCaseConnectorWithId, createExternalService, createSavedObjectReferences, createCaseSavedObjectResponse, basicCaseFields, createSOFindResponse, } from '../test_utils'; -import { ESCaseAttributes } from './types'; +import type { ESCaseAttributes } from './types'; import { AttachmentService } from '../attachments'; import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; diff --git a/x-pack/plugins/cases/server/services/cases/index.ts b/x-pack/plugins/cases/server/services/cases/index.ts index 2577365f2a25b..8b0a5e70f925e 100644 --- a/x-pack/plugins/cases/server/services/cases/index.ts +++ b/x-pack/plugins/cases/server/services/cases/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { Logger, SavedObject, SavedObjectsClientContract, @@ -19,14 +19,15 @@ import { } from '@kbn/core/server'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { nodeBuilder, KueryNode } from '@kbn/es-query'; +import type { KueryNode } from '@kbn/es-query'; +import { nodeBuilder } from '@kbn/es-query'; import { CASE_COMMENT_SAVED_OBJECT, CASE_SAVED_OBJECT, MAX_DOCS_PER_PAGE, } from '../../../common/constants'; -import { +import type { GetCaseIdsByAlertIdAggs, CaseResponse, CasesFindRequest, @@ -34,9 +35,9 @@ import { User, CaseAttributes, CaseStatuses, - caseStatuses, } from '../../../common/api'; -import { SavedObjectFindOptionsKueryNode } from '../../common/types'; +import { caseStatuses } from '../../../common/api'; +import type { SavedObjectFindOptionsKueryNode } from '../../common/types'; import { defaultSortField, flattenCaseSavedObject } from '../../common/utils'; import { DEFAULT_PAGE, DEFAULT_PER_PAGE } from '../../routes/api'; import { combineFilters } from '../../client/utils'; @@ -49,11 +50,11 @@ import { transformBulkResponseToExternalModel, transformFindResponseToExternalModel, } from './transform'; -import { ESCaseAttributes } from './types'; -import { AttachmentService } from '../attachments'; -import { AggregationBuilder, AggregationResponse } from '../../client/metrics/types'; +import type { ESCaseAttributes } from './types'; +import type { AttachmentService } from '../attachments'; +import type { AggregationBuilder, AggregationResponse } from '../../client/metrics/types'; import { createCaseError } from '../../common/error'; -import { IndexRefresh } from '../types'; +import type { IndexRefresh } from '../types'; interface GetCaseIdsByAlertIdArgs { alertId: string; diff --git a/x-pack/plugins/cases/server/services/cases/transform.ts b/x-pack/plugins/cases/server/services/cases/transform.ts index c013475bd2e9c..1b66ff41df421 100644 --- a/x-pack/plugins/cases/server/services/cases/transform.ts +++ b/x-pack/plugins/cases/server/services/cases/transform.ts @@ -7,7 +7,7 @@ /* eslint-disable @typescript-eslint/naming-convention */ -import { +import type { SavedObject, SavedObjectReference, SavedObjectsBulkResponse, @@ -16,12 +16,13 @@ import { SavedObjectsUpdateResponse, } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; -import { ESCaseAttributes, ExternalServicesWithoutConnectorId } from './types'; +import type { ESCaseAttributes, ExternalServicesWithoutConnectorId } from './types'; import { CONNECTOR_ID_REFERENCE_NAME, PUSH_CONNECTOR_ID_REFERENCE_NAME, } from '../../common/constants'; -import { CaseAttributes, CaseFullExternalService, NONE_CONNECTOR_ID } from '../../../common/api'; +import type { CaseAttributes, CaseFullExternalService } from '../../../common/api'; +import { NONE_CONNECTOR_ID } from '../../../common/api'; import { findConnectorIdReference, transformFieldsToESModel, diff --git a/x-pack/plugins/cases/server/services/cases/types.ts b/x-pack/plugins/cases/server/services/cases/types.ts index eb47850eeef31..db7b51f3eda3a 100644 --- a/x-pack/plugins/cases/server/services/cases/types.ts +++ b/x-pack/plugins/cases/server/services/cases/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import * as rt from 'io-ts'; -import { CaseAttributes, CaseExternalServiceBasicRt } from '../../../common/api'; -import { ESCaseConnector } from '..'; +import type * as rt from 'io-ts'; +import type { CaseAttributes, CaseExternalServiceBasicRt } from '../../../common/api'; +import type { ESCaseConnector } from '..'; /** * This type should only be used within the cases service and its helper functions (e.g. the transforms). diff --git a/x-pack/plugins/cases/server/services/configure/index.test.ts b/x-pack/plugins/cases/server/services/configure/index.test.ts index b967886b13be9..6c65aaab70828 100644 --- a/x-pack/plugins/cases/server/services/configure/index.test.ts +++ b/x-pack/plugins/cases/server/services/configure/index.test.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { +import type { CaseConnector, CasesConfigureAttributes, CasesConfigurePatch, - ConnectorTypes, } from '../../../common/api'; +import { ConnectorTypes } from '../../../common/api'; import { CASE_CONFIGURE_SAVED_OBJECT, SECURITY_SOLUTION_OWNER } from '../../../common/constants'; import { savedObjectsClientMock } from '@kbn/core/server/mocks'; -import { +import type { SavedObject, SavedObjectReference, SavedObjectsCreateOptions, @@ -24,10 +24,11 @@ import { import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; import { loggerMock } from '@kbn/logging-mocks'; import { CaseConfigureService } from '.'; -import { ESCasesConfigureAttributes } from './types'; +import type { ESCasesConfigureAttributes } from './types'; import { CONNECTOR_ID_REFERENCE_NAME } from '../../common/constants'; import { getNoneCaseConnector } from '../../common/utils'; -import { createESJiraConnector, createJiraConnector, ESCaseConnectorWithId } from '../test_utils'; +import type { ESCaseConnectorWithId } from '../test_utils'; +import { createESJiraConnector, createJiraConnector } from '../test_utils'; const basicConfigFields = { closure_type: 'close-by-pushing' as const, diff --git a/x-pack/plugins/cases/server/services/configure/index.ts b/x-pack/plugins/cases/server/services/configure/index.ts index 4cd7f5ad7283f..8a63f1fcfce2f 100644 --- a/x-pack/plugins/cases/server/services/configure/index.ts +++ b/x-pack/plugins/cases/server/services/configure/index.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { Logger, SavedObject, SavedObjectsClientContract, @@ -14,9 +14,9 @@ import { } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; -import { SavedObjectFindOptionsKueryNode } from '../../common/types'; +import type { SavedObjectFindOptionsKueryNode } from '../../common/types'; import { CONNECTOR_ID_REFERENCE_NAME } from '../../common/constants'; -import { CasesConfigureAttributes, CasesConfigurePatch } from '../../../common/api'; +import type { CasesConfigureAttributes, CasesConfigurePatch } from '../../../common/api'; import { CASE_CONFIGURE_SAVED_OBJECT } from '../../../common/constants'; import { transformFieldsToESModel, @@ -24,8 +24,8 @@ import { transformESConnectorOrUseDefault, } from '../transform'; import { ConnectorReferenceHandler } from '../connector_reference_handler'; -import { ESCasesConfigureAttributes } from './types'; -import { IndexRefresh } from '../types'; +import type { ESCasesConfigureAttributes } from './types'; +import type { IndexRefresh } from '../types'; interface ClientArgs { unsecuredSavedObjectsClient: SavedObjectsClientContract; diff --git a/x-pack/plugins/cases/server/services/configure/types.ts b/x-pack/plugins/cases/server/services/configure/types.ts index 3c4405e532e69..4e6ecc03955ae 100644 --- a/x-pack/plugins/cases/server/services/configure/types.ts +++ b/x-pack/plugins/cases/server/services/configure/types.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { CasesConfigureAttributes } from '../../../common/api'; -import { ESCaseConnector } from '..'; +import type { CasesConfigureAttributes } from '../../../common/api'; +import type { ESCaseConnector } from '..'; /** * This type should only be used within the configure service. It represents how the configure saved object will be layed diff --git a/x-pack/plugins/cases/server/services/connector_mappings/index.ts b/x-pack/plugins/cases/server/services/connector_mappings/index.ts index 2163775bf50ef..3f0c2d64260a7 100644 --- a/x-pack/plugins/cases/server/services/connector_mappings/index.ts +++ b/x-pack/plugins/cases/server/services/connector_mappings/index.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { Logger, SavedObjectReference, SavedObjectsClientContract } from '@kbn/core/server'; +import type { Logger, SavedObjectReference, SavedObjectsClientContract } from '@kbn/core/server'; import { CASE_CONNECTOR_MAPPINGS_SAVED_OBJECT } from '../../../common/constants'; -import { ConnectorMappings } from '../../../common/api'; -import { SavedObjectFindOptionsKueryNode } from '../../common/types'; -import { IndexRefresh } from '../types'; +import type { ConnectorMappings } from '../../../common/api'; +import type { SavedObjectFindOptionsKueryNode } from '../../common/types'; +import type { IndexRefresh } from '../types'; interface ClientArgs { unsecuredSavedObjectsClient: SavedObjectsClientContract; diff --git a/x-pack/plugins/cases/server/services/connector_reference_handler.ts b/x-pack/plugins/cases/server/services/connector_reference_handler.ts index f11c3317f690e..327dac42b6b70 100644 --- a/x-pack/plugins/cases/server/services/connector_reference_handler.ts +++ b/x-pack/plugins/cases/server/services/connector_reference_handler.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectReference } from '@kbn/core/server'; +import type { SavedObjectReference } from '@kbn/core/server'; import { NONE_CONNECTOR_ID } from '../../common/api'; interface Reference { diff --git a/x-pack/plugins/cases/server/services/index.ts b/x-pack/plugins/cases/server/services/index.ts index 5ba4fe74603e6..e15584b6ced9e 100644 --- a/x-pack/plugins/cases/server/services/index.ts +++ b/x-pack/plugins/cases/server/services/index.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { SavedObjectsClientContract } from '@kbn/core/server'; -import { ConnectorTypes } from '../../common/api'; +import type { SavedObjectsClientContract } from '@kbn/core/server'; +import type { ConnectorTypes } from '../../common/api'; export { CasesService } from './cases'; export { CaseConfigureService } from './configure'; diff --git a/x-pack/plugins/cases/server/services/licensing.ts b/x-pack/plugins/cases/server/services/licensing.ts index 0b323150a72af..0902d400a417a 100644 --- a/x-pack/plugins/cases/server/services/licensing.ts +++ b/x-pack/plugins/cases/server/services/licensing.ts @@ -5,8 +5,9 @@ * 2.0. */ -import { firstValueFrom, Observable } from 'rxjs'; -import { ILicense, LicenseType, LicensingPluginStart } from '@kbn/licensing-plugin/server'; +import type { Observable } from 'rxjs'; +import { firstValueFrom } from 'rxjs'; +import type { ILicense, LicenseType, LicensingPluginStart } from '@kbn/licensing-plugin/server'; export class LicensingService { private readonly license$: Observable; diff --git a/x-pack/plugins/cases/server/services/mocks.ts b/x-pack/plugins/cases/server/services/mocks.ts index d157a5b332a96..6ef9af3f36a1b 100644 --- a/x-pack/plugins/cases/server/services/mocks.ts +++ b/x-pack/plugins/cases/server/services/mocks.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { PublicMethodsOf } from '@kbn/utility-types'; -import { +import type { PublicMethodsOf } from '@kbn/utility-types'; +import type { AlertService, CaseConfigureService, CasesService, diff --git a/x-pack/plugins/cases/server/services/so_reference_extractor.test.ts b/x-pack/plugins/cases/server/services/so_reference_extractor.test.ts index 223c9dbc5912c..1592a49c1189a 100644 --- a/x-pack/plugins/cases/server/services/so_reference_extractor.test.ts +++ b/x-pack/plugins/cases/server/services/so_reference_extractor.test.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObject, SavedObjectReference } from '@kbn/core/server'; +import type { SavedObject, SavedObjectReference } from '@kbn/core/server'; import { SOReferenceExtractor } from './so_reference_extractor'; describe('SOReferenceExtractor', () => { diff --git a/x-pack/plugins/cases/server/services/so_reference_extractor.ts b/x-pack/plugins/cases/server/services/so_reference_extractor.ts index 27fdf17b5f727..79414659661b8 100644 --- a/x-pack/plugins/cases/server/services/so_reference_extractor.ts +++ b/x-pack/plugins/cases/server/services/so_reference_extractor.ts @@ -7,7 +7,11 @@ import { set } from '@kbn/safer-lodash-set'; import _ from 'lodash'; -import { SavedObject, SavedObjectReference, SavedObjectsUpdateResponse } from '@kbn/core/server'; +import type { + SavedObject, + SavedObjectReference, + SavedObjectsUpdateResponse, +} from '@kbn/core/server'; interface Field { path: string; diff --git a/x-pack/plugins/cases/server/services/so_references.ts b/x-pack/plugins/cases/server/services/so_references.ts index ef439ac4281e2..d5dcc50da03e3 100644 --- a/x-pack/plugins/cases/server/services/so_references.ts +++ b/x-pack/plugins/cases/server/services/so_references.ts @@ -5,17 +5,17 @@ * 2.0. */ -import { SavedObjectsUpdateResponse } from '@kbn/core/server'; -import { SavedObject, SavedObjectReference } from '@kbn/core/types'; +import type { SavedObjectsUpdateResponse } from '@kbn/core/server'; +import type { SavedObject, SavedObjectReference } from '@kbn/core/types'; import { isEqual, uniqWith } from 'lodash'; -import { +import type { CommentAttributesNoSO, CommentRequest, CommentAttributes, CommentPatchAttributes, CommentAttributesWithoutRefs, } from '../../common/api'; -import { PersistableStateAttachmentTypeRegistry } from '../attachment_framework/persistable_state_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../attachment_framework/persistable_state_registry'; import { injectPersistableReferencesToSO, extractPersistableStateReferencesFromSO, diff --git a/x-pack/plugins/cases/server/services/test_utils.ts b/x-pack/plugins/cases/server/services/test_utils.ts index 8206eee3515e3..70266c1a74635 100644 --- a/x-pack/plugins/cases/server/services/test_utils.ts +++ b/x-pack/plugins/cases/server/services/test_utils.ts @@ -5,22 +5,19 @@ * 2.0. */ -import { SavedObject, SavedObjectReference, SavedObjectsFindResult } from '@kbn/core/server'; +import type { SavedObject, SavedObjectReference, SavedObjectsFindResult } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; -import { ESConnectorFields } from '.'; +import type { ESConnectorFields } from '.'; import { CONNECTOR_ID_REFERENCE_NAME, PUSH_CONNECTOR_ID_REFERENCE_NAME } from '../common/constants'; -import { +import type { CaseAttributes, CaseConnector, CaseExternalServiceBasic, CaseFullExternalService, - CaseSeverity, - CaseStatuses, - ConnectorTypes, - NONE_CONNECTOR_ID, } from '../../common/api'; +import { CaseSeverity, CaseStatuses, ConnectorTypes, NONE_CONNECTOR_ID } from '../../common/api'; import { CASE_SAVED_OBJECT, SECURITY_SOLUTION_OWNER } from '../../common/constants'; -import { ESCaseAttributes, ExternalServicesWithoutConnectorId } from './cases/types'; +import type { ESCaseAttributes, ExternalServicesWithoutConnectorId } from './cases/types'; import { getNoneCaseConnector } from '../common/utils'; /** diff --git a/x-pack/plugins/cases/server/services/transform.ts b/x-pack/plugins/cases/server/services/transform.ts index e8467a9031f13..50d5192610d4f 100644 --- a/x-pack/plugins/cases/server/services/transform.ts +++ b/x-pack/plugins/cases/server/services/transform.ts @@ -5,11 +5,11 @@ * 2.0. */ -import { SavedObjectReference } from '@kbn/core/server'; +import type { SavedObjectReference } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; -import { CaseConnector, ConnectorTypeFields } from '../../common/api'; +import type { CaseConnector, ConnectorTypeFields } from '../../common/api'; import { getNoneCaseConnector } from '../common/utils'; -import { ESCaseConnector, ESConnectorFields } from '.'; +import type { ESCaseConnector, ESConnectorFields } from '.'; export function findConnectorIdReference( name: string, diff --git a/x-pack/plugins/cases/server/services/types.ts b/x-pack/plugins/cases/server/services/types.ts index 1df1158583fa4..a9bf41e875e6c 100644 --- a/x-pack/plugins/cases/server/services/types.ts +++ b/x-pack/plugins/cases/server/services/types.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectsCreateOptions } from '@kbn/core/server'; +import type { SavedObjectsCreateOptions } from '@kbn/core/server'; export type RefreshSetting = NonNullable; diff --git a/x-pack/plugins/cases/server/services/user_actions/abstract_builder.ts b/x-pack/plugins/cases/server/services/user_actions/abstract_builder.ts index 2f66de0b5bb82..30f66bd9ece67 100644 --- a/x-pack/plugins/cases/server/services/user_actions/abstract_builder.ts +++ b/x-pack/plugins/cases/server/services/user_actions/abstract_builder.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { SavedObjectReference } from '@kbn/core/server'; +import type { SavedObjectReference } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; import { CASE_COMMENT_SAVED_OBJECT, CASE_SAVED_OBJECT } from '../../../common/constants'; import { @@ -14,21 +14,16 @@ import { CONNECTOR_ID_REFERENCE_NAME, PUSH_CONNECTOR_ID_REFERENCE_NAME, } from '../../common/constants'; -import { - ActionTypes, - CaseConnector, - CaseExternalServiceBasic, - NONE_CONNECTOR_ID, - User, -} from '../../../common/api'; -import { +import type { CaseConnector, CaseExternalServiceBasic, User } from '../../../common/api'; +import { ActionTypes, NONE_CONNECTOR_ID } from '../../../common/api'; +import type { BuilderDeps, BuilderParameters, BuilderReturnValue, CommonBuilderArguments, UserActionParameters, } from './types'; -import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; export abstract class UserActionBuilder { protected readonly persistableStateAttachmentTypeRegistry: PersistableStateAttachmentTypeRegistry; diff --git a/x-pack/plugins/cases/server/services/user_actions/builder_factory.ts b/x-pack/plugins/cases/server/services/user_actions/builder_factory.ts index fd3af0b0670cb..70aef7a04e087 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builder_factory.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builder_factory.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { UserActionTypes } from '../../../common/api'; +import type { UserActionTypes } from '../../../common/api'; import { CreateCaseUserActionBuilder } from './builders/create_case'; import { TitleUserActionBuilder } from './builders/title'; import { CommentUserActionBuilder } from './builders/comment'; @@ -16,10 +16,10 @@ import { StatusUserActionBuilder } from './builders/status'; import { TagsUserActionBuilder } from './builders/tags'; import { SettingsUserActionBuilder } from './builders/settings'; import { DeleteCaseUserActionBuilder } from './builders/delete_case'; -import { UserActionBuilder } from './abstract_builder'; +import type { UserActionBuilder } from './abstract_builder'; import { SeverityUserActionBuilder } from './builders/severity'; -import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; -import { BuilderDeps } from './types'; +import type { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; +import type { BuilderDeps } from './types'; import { AssigneesUserActionBuilder } from './builders/assignees'; const builderMap = { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/assignees.ts b/x-pack/plugins/cases/server/services/user_actions/builders/assignees.ts index 87e4a6ab19c76..554f70de71bcf 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/assignees.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/assignees.ts @@ -7,7 +7,7 @@ import { ActionTypes, Actions } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class AssigneesUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'assignees'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/comment.ts b/x-pack/plugins/cases/server/services/user_actions/builders/comment.ts index 97a6f87847f0f..a90a8b43b40ae 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/comment.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/comment.ts @@ -7,9 +7,10 @@ import { uniqBy } from 'lodash'; import { extractPersistableStateReferencesFromSO } from '../../../attachment_framework/so_references'; -import { ActionTypes, Actions, CommentUserAction } from '../../../../common/api'; +import type { CommentUserAction } from '../../../../common/api'; +import { ActionTypes, Actions } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; import { getAttachmentSOExtractor } from '../../so_references'; export class CommentUserActionBuilder extends UserActionBuilder { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/connector.ts b/x-pack/plugins/cases/server/services/user_actions/builders/connector.ts index 4168b68fbe278..0009105b964f0 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/connector.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/connector.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class ConnectorUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'connector'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/create_case.ts b/x-pack/plugins/cases/server/services/user_actions/builders/create_case.ts index 9261746d00cc0..6d83e9acb6383 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/create_case.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/create_case.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes, CaseStatuses } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class CreateCaseUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'create_case'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/delete_case.ts b/x-pack/plugins/cases/server/services/user_actions/builders/delete_case.ts index fd50ad63753cb..2200fcc0af08b 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/delete_case.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/delete_case.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class DeleteCaseUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'delete_case'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/description.ts b/x-pack/plugins/cases/server/services/user_actions/builders/description.ts index da263f7c7509e..95e506066ca6e 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/description.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/description.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class DescriptionUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'description'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/pushed.ts b/x-pack/plugins/cases/server/services/user_actions/builders/pushed.ts index b067df7b14a41..75a53a79de907 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/pushed.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/pushed.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class PushedUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'pushed'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/settings.ts b/x-pack/plugins/cases/server/services/user_actions/builders/settings.ts index e8b499465bb6c..d70f099539d65 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/settings.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/settings.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class SettingsUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'settings'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/severity.ts b/x-pack/plugins/cases/server/services/user_actions/builders/severity.ts index 4abd5856972b4..480fc6ffc5014 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/severity.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/severity.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class SeverityUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'severity'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/status.ts b/x-pack/plugins/cases/server/services/user_actions/builders/status.ts index 7c1f1b731bf76..1b3eaa9455d6b 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/status.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/status.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class StatusUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'status'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/tags.ts b/x-pack/plugins/cases/server/services/user_actions/builders/tags.ts index 1fecfa2c2786f..053c7d3fa91de 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/tags.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/tags.ts @@ -7,7 +7,7 @@ import { ActionTypes, Actions } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { UserActionParameters, BuilderReturnValue } from '../types'; +import type { UserActionParameters, BuilderReturnValue } from '../types'; export class TagsUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'tags'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/builders/title.ts b/x-pack/plugins/cases/server/services/user_actions/builders/title.ts index 21b9cc86357c2..3d5251d84b629 100644 --- a/x-pack/plugins/cases/server/services/user_actions/builders/title.ts +++ b/x-pack/plugins/cases/server/services/user_actions/builders/title.ts @@ -7,7 +7,7 @@ import { Actions, ActionTypes } from '../../../../common/api'; import { UserActionBuilder } from '../abstract_builder'; -import { BuilderReturnValue, UserActionParameters } from '../types'; +import type { BuilderReturnValue, UserActionParameters } from '../types'; export class TitleUserActionBuilder extends UserActionBuilder { build(args: UserActionParameters<'title'>): BuilderReturnValue { diff --git a/x-pack/plugins/cases/server/services/user_actions/index.test.ts b/x-pack/plugins/cases/server/services/user_actions/index.test.ts index 151c8a6d40ed0..732b4e0c924f3 100644 --- a/x-pack/plugins/cases/server/services/user_actions/index.test.ts +++ b/x-pack/plugins/cases/server/services/user_actions/index.test.ts @@ -8,7 +8,7 @@ import { get, omit } from 'lodash'; import { loggerMock } from '@kbn/logging-mocks'; import { savedObjectsClientMock } from '@kbn/core/server/mocks'; -import { +import type { SavedObject, SavedObjectReference, SavedObjectsFindResponse, @@ -16,16 +16,13 @@ import { SavedObjectsUpdateResponse, } from '@kbn/core/server'; import { ACTION_SAVED_OBJECT_TYPE } from '@kbn/actions-plugin/server'; -import { - Actions, - ActionTypes, +import type { CaseAttributes, - CaseSeverity, - CaseStatuses, CaseUserActionAttributes, ConnectorUserAction, UserAction, } from '../../../common/api'; +import { Actions, ActionTypes, CaseSeverity, CaseStatuses } from '../../../common/api'; import { CASE_COMMENT_SAVED_OBJECT, CASE_SAVED_OBJECT, @@ -59,7 +56,7 @@ import { updatedTagsCases, } from './mocks'; import { CaseUserActionService, transformFindResponseToExternalModel } from '.'; -import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; import { externalReferenceAttachmentSO, getPersistableStateAttachmentTypeRegistry, diff --git a/x-pack/plugins/cases/server/services/user_actions/index.ts b/x-pack/plugins/cases/server/services/user_actions/index.ts index 27ff69240e0ca..c27c313faaae7 100644 --- a/x-pack/plugins/cases/server/services/user_actions/index.ts +++ b/x-pack/plugins/cases/server/services/user_actions/index.ts @@ -7,7 +7,7 @@ import { get, isEmpty } from 'lodash'; -import { +import type { Logger, SavedObject, SavedObjectReference, @@ -17,7 +17,7 @@ import { } from '@kbn/core/server'; import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; -import { KueryNode } from '@kbn/es-query'; +import type { KueryNode } from '@kbn/es-query'; import { isCommentRequestTypePersistableState } from '../../../common/utils/attachments'; import { isConnectorUserAction, @@ -26,10 +26,8 @@ import { isCreateCaseUserAction, isCommentUserAction, } from '../../../common/utils/user_actions'; -import { +import type { ActionOperationValues, - Actions, - ActionTypes, ActionTypeValues, CaseAttributes, CaseUserActionAttributes, @@ -38,16 +36,16 @@ import { CaseUserProfile, CaseAssignees, CommentRequest, - NONE_CONNECTOR_ID, User, } from '../../../common/api'; +import { Actions, ActionTypes, NONE_CONNECTOR_ID } from '../../../common/api'; import { CASE_SAVED_OBJECT, CASE_USER_ACTION_SAVED_OBJECT, MAX_DOCS_PER_PAGE, CASE_COMMENT_SAVED_OBJECT, } from '../../../common/constants'; -import { ClientArgs } from '..'; +import type { ClientArgs } from '..'; import { CASE_REF_NAME, COMMENT_REF_NAME, @@ -57,7 +55,7 @@ import { } from '../../common/constants'; import { findConnectorIdReference } from '../transform'; import { buildFilter, combineFilters, arraysDifference } from '../../client/utils'; -import { +import type { BuilderParameters, BuilderReturnValue, CommonArguments, @@ -66,9 +64,9 @@ import { } from './types'; import { BuilderFactory } from './builder_factory'; import { defaultSortField, isCommentRequestTypeExternalReferenceSO } from '../../common/utils'; -import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; import { injectPersistableReferencesToSO } from '../../attachment_framework/so_references'; -import { IndexRefresh } from '../types'; +import type { IndexRefresh } from '../types'; import { isAssigneesArray, isStringArray } from './type_guards'; interface GetCaseUserActionArgs extends ClientArgs { diff --git a/x-pack/plugins/cases/server/services/user_actions/mocks.ts b/x-pack/plugins/cases/server/services/user_actions/mocks.ts index 80f2979716ca2..b7453d02f9524 100644 --- a/x-pack/plugins/cases/server/services/user_actions/mocks.ts +++ b/x-pack/plugins/cases/server/services/user_actions/mocks.ts @@ -7,13 +7,8 @@ import { CASE_SAVED_OBJECT } from '../../../common/constants'; import { SECURITY_SOLUTION_OWNER } from '../../../common'; -import { - CasePostRequest, - CaseSeverity, - CaseStatuses, - CommentType, - ConnectorTypes, -} from '../../../common/api'; +import type { CasePostRequest } from '../../../common/api'; +import { CaseSeverity, CaseStatuses, CommentType, ConnectorTypes } from '../../../common/api'; import { createCaseSavedObjectResponse } from '../test_utils'; import { transformSavedObjectToExternalModel } from '../cases/transform'; diff --git a/x-pack/plugins/cases/server/services/user_actions/type_guards.ts b/x-pack/plugins/cases/server/services/user_actions/type_guards.ts index d1afd1b91c072..ee72239e55bce 100644 --- a/x-pack/plugins/cases/server/services/user_actions/type_guards.ts +++ b/x-pack/plugins/cases/server/services/user_actions/type_guards.ts @@ -6,7 +6,8 @@ */ import { isString } from 'lodash'; -import { CaseAssignees, CaseAssigneesRt } from '../../../common/api/cases/assignee'; +import type { CaseAssignees } from '../../../common/api/cases/assignee'; +import { CaseAssigneesRt } from '../../../common/api/cases/assignee'; export const isStringArray = (value: unknown): value is string[] => { return Array.isArray(value) && value.every((val) => isString(val)); diff --git a/x-pack/plugins/cases/server/services/user_actions/types.ts b/x-pack/plugins/cases/server/services/user_actions/types.ts index 667811b2b5317..153c09704aaa7 100644 --- a/x-pack/plugins/cases/server/services/user_actions/types.ts +++ b/x-pack/plugins/cases/server/services/user_actions/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { SavedObjectReference } from '@kbn/core/server'; -import { CaseAssignees } from '../../../common/api/cases/assignee'; -import { +import type { SavedObjectReference } from '@kbn/core/server'; +import type { CaseAssignees } from '../../../common/api/cases/assignee'; +import type { CasePostRequest, CaseSettings, CaseSeverity, @@ -19,7 +19,7 @@ import { UserAction, UserActionTypes, } from '../../../common/api'; -import { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; +import type { PersistableStateAttachmentTypeRegistry } from '../../attachment_framework/persistable_state_registry'; export interface BuilderParameters { title: { diff --git a/x-pack/plugins/cases/server/services/user_profiles/index.ts b/x-pack/plugins/cases/server/services/user_profiles/index.ts index fb894fd82c34d..937e7449f89c7 100644 --- a/x-pack/plugins/cases/server/services/user_profiles/index.ts +++ b/x-pack/plugins/cases/server/services/user_profiles/index.ts @@ -10,12 +10,12 @@ import { pipe } from 'fp-ts/lib/pipeable'; import { fold } from 'fp-ts/lib/Either'; import { identity } from 'fp-ts/lib/function'; -import { KibanaRequest, Logger } from '@kbn/core/server'; -import { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; +import type { KibanaRequest, Logger } from '@kbn/core/server'; +import type { SecurityPluginSetup, SecurityPluginStart } from '@kbn/security-plugin/server'; import type { UserProfile } from '@kbn/security-plugin/common'; -import { SpacesPluginStart } from '@kbn/spaces-plugin/server'; +import type { SpacesPluginStart } from '@kbn/spaces-plugin/server'; -import { LicensingPluginStart } from '@kbn/licensing-plugin/server'; +import type { LicensingPluginStart } from '@kbn/licensing-plugin/server'; import { excess, SuggestUserProfilesRequestRt, throwErrors } from '../../../common/api'; import { Operations } from '../../authorization'; import { createCaseError } from '../../common/error'; diff --git a/x-pack/plugins/cases/server/telemetry/collect_telemetry_data.ts b/x-pack/plugins/cases/server/telemetry/collect_telemetry_data.ts index d62e33083b610..c3a595870c9ec 100644 --- a/x-pack/plugins/cases/server/telemetry/collect_telemetry_data.ts +++ b/x-pack/plugins/cases/server/telemetry/collect_telemetry_data.ts @@ -12,7 +12,7 @@ import { getConfigurationTelemetryData } from './queries/configuration'; import { getConnectorsTelemetryData } from './queries/connectors'; import { getPushedTelemetryData } from './queries/pushes'; import { getUserActionsTelemetryData } from './queries/user_actions'; -import { CasesTelemetry, CollectTelemetryDataParams } from './types'; +import type { CasesTelemetry, CollectTelemetryDataParams } from './types'; export const collectTelemetryData = async ({ savedObjectsClient, diff --git a/x-pack/plugins/cases/server/telemetry/index.ts b/x-pack/plugins/cases/server/telemetry/index.ts index fdba46d01240f..6cd796eca2c18 100644 --- a/x-pack/plugins/cases/server/telemetry/index.ts +++ b/x-pack/plugins/cases/server/telemetry/index.ts @@ -5,15 +5,15 @@ * 2.0. */ -import { +import type { CoreSetup, ISavedObjectsRepository, Logger, PluginInitializerContext, - SavedObjectsErrorHelpers, } from '@kbn/core/server'; -import { TaskManagerSetupContract } from '@kbn/task-manager-plugin/server'; -import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; +import { SavedObjectsErrorHelpers } from '@kbn/core/server'; +import type { TaskManagerSetupContract } from '@kbn/task-manager-plugin/server'; +import type { UsageCollectionSetup } from '@kbn/usage-collection-plugin/server'; import { collectTelemetryData } from './collect_telemetry_data'; import { CASE_TELEMETRY_SAVED_OBJECT, @@ -21,7 +21,7 @@ import { CASE_TELEMETRY_SAVED_OBJECT_ID, SAVED_OBJECT_TYPES, } from '../../common/constants'; -import { CasesTelemetry } from './types'; +import type { CasesTelemetry } from './types'; import { casesSchema } from './schema'; export { scheduleCasesTelemetryTask } from './schedule_telemetry_task'; diff --git a/x-pack/plugins/cases/server/telemetry/queries/alerts.ts b/x-pack/plugins/cases/server/telemetry/queries/alerts.ts index 8d7d67926a44b..96aaec211acb8 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/alerts.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/alerts.ts @@ -6,7 +6,7 @@ */ import { CASE_COMMENT_SAVED_OBJECT } from '../../../common/constants'; -import { CasesTelemetry, CollectTelemetryDataParams } from '../types'; +import type { CasesTelemetry, CollectTelemetryDataParams } from '../types'; import { getCountsAndMaxData, getOnlyAlertsCommentsFilter } from './utils'; export const getAlertsTelemetryData = async ({ diff --git a/x-pack/plugins/cases/server/telemetry/queries/cases.test.ts b/x-pack/plugins/cases/server/telemetry/queries/cases.test.ts index 2a6aaddf8f5db..73215ed35966a 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/cases.test.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/cases.test.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { SavedObjectsFindResponse } from '@kbn/core/server'; +import type { SavedObjectsFindResponse } from '@kbn/core/server'; import { savedObjectsRepositoryMock, loggingSystemMock } from '@kbn/core/server/mocks'; -import { CaseAggregationResult } from '../types'; +import type { CaseAggregationResult } from '../types'; import { getCasesTelemetryData } from './cases'; describe('getCasesTelemetryData', () => { diff --git a/x-pack/plugins/cases/server/telemetry/queries/cases.ts b/x-pack/plugins/cases/server/telemetry/queries/cases.ts index 3969ed77e5a17..e4e50dc7ad157 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/cases.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/cases.ts @@ -10,9 +10,9 @@ import { CASE_SAVED_OBJECT, CASE_USER_ACTION_SAVED_OBJECT, } from '../../../common/constants'; -import { ESCaseAttributes } from '../../services/cases/types'; +import type { ESCaseAttributes } from '../../services/cases/types'; import { OWNERS } from '../constants'; -import { +import type { CollectTelemetryDataParams, Buckets, CasesTelemetry, diff --git a/x-pack/plugins/cases/server/telemetry/queries/comments.ts b/x-pack/plugins/cases/server/telemetry/queries/comments.ts index f57f83ead5860..f14c458ad03e4 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/comments.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/comments.ts @@ -7,7 +7,7 @@ import { CASE_COMMENT_SAVED_OBJECT } from '../../../common/constants'; import { buildFilter } from '../../client/utils'; -import { CasesTelemetry, CollectTelemetryDataParams } from '../types'; +import type { CasesTelemetry, CollectTelemetryDataParams } from '../types'; import { getCountsAndMaxData } from './utils'; export const getUserCommentsTelemetryData = async ({ diff --git a/x-pack/plugins/cases/server/telemetry/queries/configuration.ts b/x-pack/plugins/cases/server/telemetry/queries/configuration.ts index 35064ce95ee99..9a5b2bfe97f6a 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/configuration.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/configuration.ts @@ -6,7 +6,7 @@ */ import { CASE_CONFIGURE_SAVED_OBJECT } from '../../../common/constants'; -import { Buckets, CasesTelemetry, CollectTelemetryDataParams } from '../types'; +import type { Buckets, CasesTelemetry, CollectTelemetryDataParams } from '../types'; import { findValueInBuckets } from './utils'; export const getConfigurationTelemetryData = async ({ diff --git a/x-pack/plugins/cases/server/telemetry/queries/connectors.ts b/x-pack/plugins/cases/server/telemetry/queries/connectors.ts index efafbfb09feb9..8275ac86b729d 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/connectors.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/connectors.ts @@ -5,12 +5,12 @@ * 2.0. */ -import { AggregationsAggregationContainer } from '@elastic/elasticsearch/lib/api/types'; -import { KueryNode } from '@kbn/es-query'; -import { SavedObjectsFindResponse } from '@kbn/core/server'; +import type { AggregationsAggregationContainer } from '@elastic/elasticsearch/lib/api/types'; +import type { KueryNode } from '@kbn/es-query'; +import type { SavedObjectsFindResponse } from '@kbn/core/server'; import { CASE_USER_ACTION_SAVED_OBJECT } from '../../../common/constants'; import { buildFilter } from '../../client/utils'; -import { +import type { CasesTelemetry, CollectTelemetryDataParams, MaxBucketOnCaseAggregation, diff --git a/x-pack/plugins/cases/server/telemetry/queries/pushes.ts b/x-pack/plugins/cases/server/telemetry/queries/pushes.ts index 552b4ce83c8cb..0462a7ff0ef13 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/pushes.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/pushes.ts @@ -7,7 +7,11 @@ import { CASE_USER_ACTION_SAVED_OBJECT } from '../../../common/constants'; import { buildFilter } from '../../client/utils'; -import { CasesTelemetry, CollectTelemetryDataParams, MaxBucketOnCaseAggregation } from '../types'; +import type { + CasesTelemetry, + CollectTelemetryDataParams, + MaxBucketOnCaseAggregation, +} from '../types'; import { getMaxBucketOnCaseAggregationQuery } from './utils'; export const getPushedTelemetryData = async ({ diff --git a/x-pack/plugins/cases/server/telemetry/queries/user_actions.ts b/x-pack/plugins/cases/server/telemetry/queries/user_actions.ts index baddf07946f93..2f0b239ff1775 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/user_actions.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/user_actions.ts @@ -6,7 +6,7 @@ */ import { CASE_USER_ACTION_SAVED_OBJECT } from '../../../common/constants'; -import { CasesTelemetry, CollectTelemetryDataParams } from '../types'; +import type { CasesTelemetry, CollectTelemetryDataParams } from '../types'; import { getCountsAndMaxData } from './utils'; export const getUserActionsTelemetryData = async ({ diff --git a/x-pack/plugins/cases/server/telemetry/queries/utils.test.ts b/x-pack/plugins/cases/server/telemetry/queries/utils.test.ts index 3b1bd17b28cdf..e466ba597108a 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/utils.test.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/utils.test.ts @@ -6,7 +6,7 @@ */ import { savedObjectsRepositoryMock } from '@kbn/core/server/mocks'; -import { CaseAggregationResult } from '../types'; +import type { CaseAggregationResult } from '../types'; import { findValueInBuckets, getAggregationsBuckets, diff --git a/x-pack/plugins/cases/server/telemetry/queries/utils.ts b/x-pack/plugins/cases/server/telemetry/queries/utils.ts index dd542b5f65229..82bdef3ebe825 100644 --- a/x-pack/plugins/cases/server/telemetry/queries/utils.ts +++ b/x-pack/plugins/cases/server/telemetry/queries/utils.ts @@ -6,14 +6,14 @@ */ import { get } from 'lodash'; -import { KueryNode } from '@kbn/es-query'; -import { ISavedObjectsRepository } from '@kbn/core/server'; +import type { KueryNode } from '@kbn/es-query'; +import type { ISavedObjectsRepository } from '@kbn/core/server'; import { CASE_COMMENT_SAVED_OBJECT, CASE_SAVED_OBJECT, CASE_USER_ACTION_SAVED_OBJECT, } from '../../../common/constants'; -import { +import type { CaseAggregationResult, Buckets, CasesTelemetry, @@ -21,7 +21,7 @@ import { SolutionTelemetry, } from '../types'; import { buildFilter } from '../../client/utils'; -import { OWNERS } from '../constants'; +import type { OWNERS } from '../constants'; export const getCountsAggregationQuery = (savedObjectType: string) => ({ counts: { diff --git a/x-pack/plugins/cases/server/telemetry/schedule_telemetry_task.ts b/x-pack/plugins/cases/server/telemetry/schedule_telemetry_task.ts index d33e68597f107..eae5a8a84ce87 100644 --- a/x-pack/plugins/cases/server/telemetry/schedule_telemetry_task.ts +++ b/x-pack/plugins/cases/server/telemetry/schedule_telemetry_task.ts @@ -5,8 +5,8 @@ * 2.0. */ -import { Logger } from '@kbn/core/server'; -import { TaskManagerStartContract } from '@kbn/task-manager-plugin/server'; +import type { Logger } from '@kbn/core/server'; +import type { TaskManagerStartContract } from '@kbn/task-manager-plugin/server'; import { CASES_TELEMETRY_TASK_NAME } from '../../common/constants'; const MINUTES_ON_HALF_DAY = 60 * 12; diff --git a/x-pack/plugins/cases/server/telemetry/schema.ts b/x-pack/plugins/cases/server/telemetry/schema.ts index fa04fc7c6651d..1f51ca134b577 100644 --- a/x-pack/plugins/cases/server/telemetry/schema.ts +++ b/x-pack/plugins/cases/server/telemetry/schema.ts @@ -5,7 +5,7 @@ * 2.0. */ -import { +import type { CasesTelemetrySchema, TypeLong, CountSchema, diff --git a/x-pack/plugins/cases/server/telemetry/types.ts b/x-pack/plugins/cases/server/telemetry/types.ts index 2c8e848b3854f..095b967d1addf 100644 --- a/x-pack/plugins/cases/server/telemetry/types.ts +++ b/x-pack/plugins/cases/server/telemetry/types.ts @@ -5,9 +5,9 @@ * 2.0. */ -import { ISavedObjectsRepository, Logger } from '@kbn/core/server'; -import { MakeSchemaFrom } from '@kbn/usage-collection-plugin/server'; -import { OWNERS } from './constants'; +import type { ISavedObjectsRepository, Logger } from '@kbn/core/server'; +import type { MakeSchemaFrom } from '@kbn/usage-collection-plugin/server'; +import type { OWNERS } from './constants'; export interface Buckets { buckets: Array<{ diff --git a/x-pack/plugins/cases/server/types.ts b/x-pack/plugins/cases/server/types.ts index 3fe3c0cd72d90..3c92a9a16cdbc 100644 --- a/x-pack/plugins/cases/server/types.ts +++ b/x-pack/plugins/cases/server/types.ts @@ -6,14 +6,14 @@ */ import type { IRouter, CustomRequestHandlerContext, KibanaRequest } from '@kbn/core/server'; -import { +import type { ActionTypeConfig, ActionTypeSecrets, ActionTypeParams, ActionType, } from '@kbn/actions-plugin/server/types'; -import { CasesClient } from './client'; -import { AttachmentFramework } from './attachment_framework/types'; +import type { CasesClient } from './client'; +import type { AttachmentFramework } from './attachment_framework/types'; export interface CaseRequestContext { getCasesClient: () => Promise; diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipeline_modal.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipeline_modal.tsx index 8c68db10e24f8..34cb59e734d70 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipeline_modal.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipeline_modal.tsx @@ -180,7 +180,7 @@ export const IngestPipelineModal: React.FC = ({ {i18n.translate( 'xpack.enterpriseSearch.content.index.pipelines.ingestModal.curlHeader', { - defaultMessage: 'Sample cURL request', + defaultMessage: 'Sample cURL request to ingest a document', } )} diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines_card.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines_card.tsx index 66f42f9691b72..711d83f11bdea 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines_card.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ingest_pipelines_card.tsx @@ -111,7 +111,7 @@ export const IngestPipelinesCard: React.FC = () => { data-telemetry-id={`entSearchContent-${ingestionMethod}-pipelines-ingestPipelines-viewCurlRequest`} buttonContent={i18n.translate( 'xpack.enterpriseSearch.content.indices.pipelines.ingestPipelinesCard.accordion.label', - { defaultMessage: 'View sample cURL request' } + { defaultMessage: 'Ingest a document using cURL' } )} id="ingestPipelinesCurlAccordion" > diff --git a/x-pack/plugins/fleet/common/openapi/bundled.json b/x-pack/plugins/fleet/common/openapi/bundled.json index b228433c1626f..b2ccff5e7188b 100644 --- a/x-pack/plugins/fleet/common/openapi/bundled.json +++ b/x-pack/plugins/fleet/common/openapi/bundled.json @@ -1187,7 +1187,7 @@ "schema": { "type": "array" }, - "name": "agentsId", + "name": "agentsIds", "in": "query", "required": true } @@ -3710,7 +3710,7 @@ "/fleet_server_hosts": { "get": { "summary": "Fleet Server Hosts - List", - "description": "Return a list of Fleet server host", + "description": "Return a list of Fleet server hosts", "tags": [], "responses": { "200": { diff --git a/x-pack/plugins/fleet/common/openapi/bundled.yaml b/x-pack/plugins/fleet/common/openapi/bundled.yaml index f5f9dedf462d2..139711f13b899 100644 --- a/x-pack/plugins/fleet/common/openapi/bundled.yaml +++ b/x-pack/plugins/fleet/common/openapi/bundled.yaml @@ -735,7 +735,7 @@ paths: parameters: - schema: type: array - name: agentsId + name: agentsIds in: query required: true /agents: @@ -2292,7 +2292,7 @@ paths: /fleet_server_hosts: get: summary: Fleet Server Hosts - List - description: Return a list of Fleet server host + description: Return a list of Fleet server hosts tags: [] responses: '200': diff --git a/x-pack/plugins/fleet/common/openapi/paths/agent_status@data.yaml b/x-pack/plugins/fleet/common/openapi/paths/agent_status@data.yaml index cde8139383065..79eed1f24fe36 100644 --- a/x-pack/plugins/fleet/common/openapi/paths/agent_status@data.yaml +++ b/x-pack/plugins/fleet/common/openapi/paths/agent_status@data.yaml @@ -22,6 +22,6 @@ get: parameters: - schema: type: array - name: agentsId + name: agentsIds in: query required: true diff --git a/x-pack/plugins/fleet/server/services/epm/registry/index.ts b/x-pack/plugins/fleet/server/services/epm/registry/index.ts index e4ebf9013f55e..4213a50ebf5bf 100644 --- a/x-pack/plugins/fleet/server/services/epm/registry/index.ts +++ b/x-pack/plugins/fleet/server/services/epm/registry/index.ts @@ -246,6 +246,7 @@ export async function getInfo(name: string, version: string) { // input type packages must get their pkg info from the archive if (packageInfo.type === 'integration') setPackageInfo({ name, version, packageInfo }); } + return packageInfo as RegistryPackage; }); } @@ -348,9 +349,17 @@ export async function fetchArchiveBuffer({ verificationResult?: PackageVerificationResult; }> { const logger = appContextService.getLogger(); - const { download: archivePath } = await getInfo(pkgName, pkgVersion); + let { download: archivePath } = await getInfo(pkgName, pkgVersion); + + // Bundled packages don't have a download path when they're installed, as they're + // ArchivePackage objects - so we fake the download path here instead + if (!archivePath) { + archivePath = `/epr/${pkgName}/${pkgName}-${pkgVersion}.zip`; + } + const archiveUrl = `${getRegistryUrl()}${archivePath}`; const archiveBuffer = await getResponseStream(archiveUrl).then(streamToBuffer); + if (shouldVerify) { const verificationResult = await verifyPackageArchiveSignature({ pkgName, diff --git a/x-pack/plugins/global_search_bar/public/components/search_bar.tsx b/x-pack/plugins/global_search_bar/public/components/search_bar.tsx index e4d87d26cbecc..d5389e1576753 100644 --- a/x-pack/plugins/global_search_bar/public/components/search_bar.tsx +++ b/x-pack/plugins/global_search_bar/public/components/search_bar.tsx @@ -269,7 +269,7 @@ export const SearchBar: FC = ({ ); const placeholderText = i18n.translate('xpack.globalSearchBar.searchBar.placeholder', { - defaultMessage: 'Find apps, content, and more. Ex: Discover', + defaultMessage: 'Find apps, content, and more.', }); const keyboardShortcutTooltip = `${i18n.translate( 'xpack.globalSearchBar.searchBar.shortcutTooltip.description', diff --git a/x-pack/plugins/lens/public/embeddable/embeddable.tsx b/x-pack/plugins/lens/public/embeddable/embeddable.tsx index 77164cfa1e1fa..103c75844f816 100644 --- a/x-pack/plugins/lens/public/embeddable/embeddable.tsx +++ b/x-pack/plugins/lens/public/embeddable/embeddable.tsx @@ -677,6 +677,7 @@ export class Embeddable renderMode={input.renderMode} syncColors={input.syncColors} syncTooltips={input.syncTooltips} + syncCursor={input.syncCursor} hasCompatibleActions={this.hasCompatibleActions} className={input.className} style={input.style} diff --git a/x-pack/plugins/lens/public/embeddable/expression_wrapper.tsx b/x-pack/plugins/lens/public/embeddable/expression_wrapper.tsx index 6e2627e0e1cf6..3f10fba310b0c 100644 --- a/x-pack/plugins/lens/public/embeddable/expression_wrapper.tsx +++ b/x-pack/plugins/lens/public/embeddable/expression_wrapper.tsx @@ -39,6 +39,7 @@ export interface ExpressionWrapperProps { renderMode?: RenderMode; syncColors?: boolean; syncTooltips?: boolean; + syncCursor?: boolean; hasCompatibleActions?: ReactExpressionRendererProps['hasCompatibleActions']; style?: React.CSSProperties; className?: string; @@ -113,6 +114,7 @@ export function ExpressionWrapper({ renderMode, syncColors, syncTooltips, + syncCursor, hasCompatibleActions, style, className, @@ -143,6 +145,7 @@ export function ExpressionWrapper({ renderMode={renderMode} syncColors={syncColors} syncTooltips={syncTooltips} + syncCursor={syncCursor} executionContext={executionContext} renderError={(errorMessage, error) => { onRuntimeError(); diff --git a/x-pack/plugins/lens/public/types.ts b/x-pack/plugins/lens/public/types.ts index 3ecf6f9d3b831..389e500488c0d 100644 --- a/x-pack/plugins/lens/public/types.ts +++ b/x-pack/plugins/lens/public/types.ts @@ -754,14 +754,14 @@ export interface VisualizationDimensionChangeProps { frame: FramePublicAPI; } -export interface Suggestion { +export interface Suggestion { visualizationId: string; - datasourceState?: unknown; + datasourceState?: V; datasourceId?: string; columns: number; score: number; title: string; - visualizationState: unknown; + visualizationState: T; previewExpression?: Ast | string; previewIcon: IconType; hide?: boolean; @@ -1160,7 +1160,7 @@ export interface Visualization { getSuggestionFromConvertToLensContext?: ( props: VisualizationStateFromContextChangeProps - ) => Suggestion | undefined; + ) => Suggestion | undefined; } // Use same technique as TriggerContext diff --git a/x-pack/plugins/lens/public/visualizations/datatable/visualization.tsx b/x-pack/plugins/lens/public/visualizations/datatable/visualization.tsx index 27ac3d5b092b9..60de4d4d1148c 100644 --- a/x-pack/plugins/lens/public/visualizations/datatable/visualization.tsx +++ b/x-pack/plugins/lens/public/visualizations/datatable/visualization.tsx @@ -16,6 +16,7 @@ import { KibanaThemeProvider } from '@kbn/kibana-react-plugin/public'; import { VIS_EVENT_TO_TRIGGER } from '@kbn/visualizations-plugin/public'; import { IconChartDatatable } from '@kbn/chart-icons'; import { LayerTypes } from '@kbn/expression-xy-plugin/public'; +import type { FormBasedPersistedState } from '../../datasources/form_based/types'; import type { SuggestionRequest, Visualization, @@ -29,7 +30,6 @@ import type { LayerType } from '../../../common'; import { getDefaultSummaryLabel } from '../../../common/expressions/datatable/summary'; import type { ColumnState, SortingState, PagingState } from '../../../common/expressions'; import { DataTableToolbar } from './components/toolbar'; -import type { FormBasedLayer } from '../../datasources/form_based/types'; export interface DatatableVisualizationState { columns: ColumnState[]; @@ -43,16 +43,6 @@ export interface DatatableVisualizationState { paging?: PagingState; } -interface DatatableDatasourceState { - [prop: string]: unknown; - layers: FormBasedLayer[]; -} - -export interface DatatableSuggestion extends Suggestion { - datasourceState: DatatableDatasourceState; - visualizationState: DatatableVisualizationState; -} - const visualizationLabel = i18n.translate('xpack.lens.datatable.label', { defaultMessage: 'Table', }); @@ -605,15 +595,17 @@ export const getDatatableVisualization = ({ } }, getSuggestionFromConvertToLensContext({ suggestions, context }) { - const allSuggestions = suggestions as DatatableSuggestion[]; - return { + const allSuggestions = suggestions as Array< + Suggestion + >; + const suggestion: Suggestion = { ...allSuggestions[0], datasourceState: { ...allSuggestions[0].datasourceState, layers: allSuggestions.reduce( (acc, s) => ({ ...acc, - ...s.datasourceState.layers, + ...s.datasourceState?.layers, }), {} ), @@ -623,6 +615,7 @@ export const getDatatableVisualization = ({ ...context.configuration, }, }; + return suggestion; }, }); diff --git a/x-pack/plugins/lens/public/visualizations/gauge/visualization.tsx b/x-pack/plugins/lens/public/visualizations/gauge/visualization.tsx index f78529a17c8f4..803e4e30acb59 100644 --- a/x-pack/plugins/lens/public/visualizations/gauge/visualization.tsx +++ b/x-pack/plugins/lens/public/visualizations/gauge/visualization.tsx @@ -24,6 +24,7 @@ import { } from '@kbn/expression-gauge-plugin/public'; import { IconChartHorizontalBullet, IconChartVerticalBullet } from '@kbn/chart-icons'; import { LayerTypes } from '@kbn/expression-xy-plugin/public'; +import type { FormBasedPersistedState } from '../../datasources/form_based/types'; import type { DatasourceLayers, OperationMetadata, Suggestion, Visualization } from '../../types'; import { getSuggestions } from './suggestions'; import { @@ -37,7 +38,6 @@ import { applyPaletteParams } from '../../shared_components'; import { GaugeDimensionEditor } from './dimension_editor'; import { generateId } from '../../id_generator'; import { getAccessorsFromState } from './utils'; -import { FormBasedLayer } from '../..'; const groupLabelForGauge = i18n.translate('xpack.lens.metric.groupLabel', { defaultMessage: 'Goal and single value', @@ -48,16 +48,6 @@ interface GaugeVisualizationDeps { theme: ThemeServiceStart; } -interface GaugeDatasourceState { - [prop: string]: unknown; - layers: FormBasedLayer[]; -} - -export interface GaugeSuggestion extends Suggestion { - datasourceState: GaugeDatasourceState; - visualizationState: GaugeVisualizationState; -} - export const isNumericMetric = (op: OperationMetadata) => !op.isBucketed && op.dataType === 'number'; @@ -556,23 +546,26 @@ export const getGaugeVisualization = ({ }, getSuggestionFromConvertToLensContext({ suggestions, context }) { - const allSuggestions = suggestions as GaugeSuggestion[]; - return { + const allSuggestions = suggestions as Array< + Suggestion + >; + const suggestion: Suggestion = { ...allSuggestions[0], datasourceState: { ...allSuggestions[0].datasourceState, layers: allSuggestions.reduce( (acc, s) => ({ ...acc, - ...s.datasourceState.layers, + ...s.datasourceState?.layers, }), {} ), }, visualizationState: { ...allSuggestions[0].visualizationState, - ...context.configuration, + ...(context.configuration as GaugeVisualizationState), }, }; + return suggestion; }, }); diff --git a/x-pack/plugins/lens/public/visualizations/metric/visualization.tsx b/x-pack/plugins/lens/public/visualizations/metric/visualization.tsx index 5fe14fb58cc21..776944bbdd62c 100644 --- a/x-pack/plugins/lens/public/visualizations/metric/visualization.tsx +++ b/x-pack/plugins/lens/public/visualizations/metric/visualization.tsx @@ -19,6 +19,7 @@ import { KibanaThemeProvider } from '@kbn/kibana-react-plugin/public'; import { IconChartMetric } from '@kbn/chart-icons'; import { LayerTypes } from '@kbn/expression-xy-plugin/public'; import type { LayerType } from '../../../common'; +import type { FormBasedPersistedState } from '../../datasources/form_based/types'; import { getSuggestions } from './suggestions'; import { Visualization, @@ -32,7 +33,6 @@ import { DimensionEditor } from './dimension_editor'; import { Toolbar } from './toolbar'; import { generateId } from '../../id_generator'; import { FormatSelectorOptions } from '../../datasources/form_based/dimension_panel/format_selector'; -import { FormBasedLayer } from '../../datasources/form_based/types'; export const DEFAULT_MAX_COLUMNS = 3; @@ -57,16 +57,6 @@ export interface MetricVisualizationState { maxCols?: number; } -interface MetricDatasourceState { - [prop: string]: unknown; - layers: FormBasedLayer[]; -} - -export interface MetricSuggestion extends Suggestion { - datasourceState: MetricDatasourceState; - visualizationState: MetricVisualizationState; -} - export const supportedDataTypes = new Set(['number']); // TODO - deduplicate with gauges? @@ -503,15 +493,17 @@ export const getMetricVisualization = ({ }, getSuggestionFromConvertToLensContext({ suggestions, context }) { - const allSuggestions = suggestions as MetricSuggestion[]; - return { + const allSuggestions = suggestions as Array< + Suggestion + >; + const suggestion: Suggestion = { ...allSuggestions[0], datasourceState: { ...allSuggestions[0].datasourceState, layers: allSuggestions.reduce( (acc, s) => ({ ...acc, - ...s.datasourceState.layers, + ...s.datasourceState?.layers, }), {} ), @@ -521,5 +513,6 @@ export const getMetricVisualization = ({ ...context.configuration, }, }; + return suggestion; }, }); diff --git a/x-pack/plugins/lens/public/visualizations/partition/visualization.tsx b/x-pack/plugins/lens/public/visualizations/partition/visualization.tsx index 17f03a44f666b..6bff536794e89 100644 --- a/x-pack/plugins/lens/public/visualizations/partition/visualization.tsx +++ b/x-pack/plugins/lens/public/visualizations/partition/visualization.tsx @@ -16,6 +16,7 @@ import { VIS_EVENT_TO_TRIGGER } from '@kbn/visualizations-plugin/public'; import { EuiSpacer } from '@elastic/eui'; import { PartitionVisConfiguration } from '@kbn/visualizations-plugin/common/convert_to_lens'; import { LayerTypes } from '@kbn/expression-xy-plugin/public'; +import type { FormBasedPersistedState } from '../../datasources/form_based/types'; import type { Visualization, OperationMetadata, @@ -37,17 +38,6 @@ import { suggestions } from './suggestions'; import { PartitionChartsMeta } from './partition_charts_meta'; import { DimensionEditor, PieToolbar } from './toolbar'; import { checkTableForContainsSmallValues } from './render_helpers'; -import type { FormBasedLayer } from '../..'; - -interface DatatableDatasourceState { - [prop: string]: unknown; - layers: FormBasedLayer[]; -} - -export interface PartitionSuggestion extends Suggestion { - datasourceState: DatatableDatasourceState; - visualizationState: PieVisualizationState; -} function newLayerState(layerId: string): PieLayerState { return { @@ -459,19 +449,20 @@ export const getPieVisualization = ({ if (!props.suggestions.length) { return; } - const suggestionByShape = (props.suggestions as PartitionSuggestion[]).find( - (suggestion) => suggestion.visualizationState.shape === context.configuration.shape - ); + const suggestionByShape = ( + props.suggestions as Array> + ).find((suggestion) => suggestion.visualizationState.shape === context.configuration.shape); if (!suggestionByShape) { return; } - return { + const suggestion: Suggestion = { ...suggestionByShape, visualizationState: { ...suggestionByShape.visualizationState, ...context.configuration, }, }; + return suggestion; }, getErrorMessages(state) { diff --git a/x-pack/plugins/lens/public/visualizations/xy/types.ts b/x-pack/plugins/lens/public/visualizations/xy/types.ts index 6a953ad452fc3..465c81ca2e3e5 100644 --- a/x-pack/plugins/lens/public/visualizations/xy/types.ts +++ b/x-pack/plugins/lens/public/visualizations/xy/types.ts @@ -36,7 +36,7 @@ import { } from '@kbn/chart-icons'; import { DistributiveOmit } from '@elastic/eui'; -import type { VisualizationType, Suggestion } from '../../types'; +import type { VisualizationType } from '../../types'; import type { ValueLabelConfig } from '../../../common/types'; export const YAxisModes = { @@ -274,12 +274,3 @@ export const visualizationTypes: VisualizationType[] = [ sortPriority: 2, }, ]; - -interface XYStateWithLayers { - [prop: string]: unknown; - layers: XYLayerConfig[]; -} -export interface XYSuggestion extends Suggestion { - datasourceState: XYStateWithLayers; - visualizationState: XYStateWithLayers; -} diff --git a/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx b/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx index 583f0f431610e..0b482b92be9ee 100644 --- a/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx +++ b/x-pack/plugins/lens/public/visualizations/xy/visualization.tsx @@ -31,13 +31,13 @@ import { getSuggestions } from './xy_suggestions'; import { XyToolbar } from './xy_config_panel'; import { DimensionEditor } from './xy_config_panel/dimension_editor'; import { LayerHeader, LayerHeaderContent } from './xy_config_panel/layer_header'; -import type { Visualization, AccessorConfig, FramePublicAPI } from '../../types'; +import type { Visualization, AccessorConfig, FramePublicAPI, Suggestion } from '../../types'; +import type { FormBasedPersistedState } from '../../datasources/form_based/types'; import { type State, type XYLayerConfig, type XYDataLayerConfig, type SeriesType, - type XYSuggestion, type PersistedState, visualizationTypes, } from './types'; @@ -809,24 +809,25 @@ export const getXyVisualization = ({ }, getSuggestionFromConvertToLensContext({ suggestions, context }) { - const allSuggestions = suggestions as XYSuggestion[]; - return { + const allSuggestions = suggestions as Array>; + const suggestion: Suggestion = { ...allSuggestions[0], datasourceState: { ...allSuggestions[0].datasourceState, layers: allSuggestions.reduce( (acc, s) => ({ ...acc, - ...s.datasourceState.layers, + ...s.datasourceState?.layers, }), {} ), }, visualizationState: { ...allSuggestions[0].visualizationState, - ...context.configuration, + ...(context.configuration as XYState), }, }; + return suggestion; }, }); diff --git a/x-pack/plugins/observability/public/application/application.test.tsx b/x-pack/plugins/observability/public/application/application.test.tsx index 41c97f41a0bc2..5c5c6a24a03d1 100644 --- a/x-pack/plugins/observability/public/application/application.test.tsx +++ b/x-pack/plugins/observability/public/application/application.test.tsx @@ -68,7 +68,12 @@ describe('renderApp', () => { const config = { unsafe: { - alertDetails: { enabled: false }, + alertDetails: { + apm: { enabled: false }, + logs: { enabled: false }, + metrics: { enabled: false }, + uptime: { enabled: false }, + }, }, } as ConfigSchema; diff --git a/x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx b/x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx index 7ad3238b4e3bf..509d8726f2ddc 100644 --- a/x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx +++ b/x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx @@ -45,7 +45,12 @@ describe('APMSection', () => { }); const config = { unsafe: { - alertDetails: { enabled: false }, + alertDetails: { + apm: { enabled: false }, + logs: { enabled: false }, + metrics: { enabled: false }, + uptime: { enabled: false }, + }, }, } as ConfigSchema; diff --git a/x-pack/plugins/observability/public/pages/alert_details/components/alert_details.test.tsx b/x-pack/plugins/observability/public/pages/alert_details/components/alert_details.test.tsx index eaa253efbc51f..20dc5caf43d70 100644 --- a/x-pack/plugins/observability/public/pages/alert_details/components/alert_details.test.tsx +++ b/x-pack/plugins/observability/public/pages/alert_details/components/alert_details.test.tsx @@ -71,7 +71,12 @@ const params = { const config = { unsafe: { - alertDetails: { enabled: true }, + alertDetails: { + apm: { enabled: true }, + logs: { enabled: true }, + metrics: { enabled: true }, + uptime: { enabled: true }, + }, }, } as ConfigSchema; diff --git a/x-pack/plugins/observability/public/pages/alert_details/components/alert_details.tsx b/x-pack/plugins/observability/public/pages/alert_details/components/alert_details.tsx index 1b501e62a7dde..f1515823442be 100644 --- a/x-pack/plugins/observability/public/pages/alert_details/components/alert_details.tsx +++ b/x-pack/plugins/observability/public/pages/alert_details/components/alert_details.tsx @@ -10,6 +10,7 @@ import { i18n } from '@kbn/i18n'; import { useParams } from 'react-router-dom'; import { EuiEmptyPrompt, EuiPanel } from '@elastic/eui'; +import { isAlertDetailsEnabledPerApp } from '../../../utils/is_alert_details_enabled'; import { useKibana } from '../../../utils/kibana_react'; import { usePluginContext } from '../../../hooks/use_plugin_context'; import { useBreadcrumbs } from '../../../hooks/use_breadcrumbs'; @@ -48,15 +49,15 @@ export function AlertDetails() { }, ]); - // Redirect to the the 404 page when the user hit the page url directly in the browser while the feature flag is off. - if (!config.unsafe.alertDetails.enabled) { - return ; - } - if (isLoading) { return ; } + // Redirect to the the 404 page when the user hit the page url directly in the browser while the feature flag is off. + if (alert && !isAlertDetailsEnabledPerApp(alert, config)) { + return ; + } + if (!isLoading && !alert) return ( diff --git a/x-pack/plugins/observability/public/pages/alerts/components/alerts_flyout/alerts_flyout_footer.tsx b/x-pack/plugins/observability/public/pages/alerts/components/alerts_flyout/alerts_flyout_footer.tsx index eecadba66b614..2298020c0668e 100644 --- a/x-pack/plugins/observability/public/pages/alerts/components/alerts_flyout/alerts_flyout_footer.tsx +++ b/x-pack/plugins/observability/public/pages/alerts/components/alerts_flyout/alerts_flyout_footer.tsx @@ -7,6 +7,7 @@ import React from 'react'; import { EuiFlyoutFooter, EuiFlexGroup, EuiFlexItem, EuiButton } from '@elastic/eui'; import { useKibana } from '@kbn/kibana-react-plugin/public'; +import { isAlertDetailsEnabledPerApp } from '../../../../utils/is_alert_details_enabled'; import { usePluginContext } from '../../../../hooks/use_plugin_context'; import { FlyoutProps } from './types'; import { translations, paths } from '../../../../config'; @@ -18,7 +19,7 @@ export default function AlertsFlyoutFooter({ alert, isInApp }: FlyoutProps & { i const { http } = services; const prepend = http?.basePath.prepend; const getAlertDetailsButton = () => { - if (!config?.unsafe?.alertDetails.enabled || !alert) return <>; + if (!isAlertDetailsEnabledPerApp(alert, config)) return <>; return ( ({ const config = { unsafe: { - alertDetails: { enabled: false }, + alertDetails: { + apm: { enabled: false }, + logs: { enabled: false }, + metrics: { enabled: false }, + uptime: { enabled: false }, + }, }, } as ConfigSchema; diff --git a/x-pack/plugins/observability/public/pages/alerts/components/observability_actions.tsx b/x-pack/plugins/observability/public/pages/alerts/components/observability_actions.tsx index 2ebb4629ba7bd..8bed941ce1741 100644 --- a/x-pack/plugins/observability/public/pages/alerts/components/observability_actions.tsx +++ b/x-pack/plugins/observability/public/pages/alerts/components/observability_actions.tsx @@ -19,6 +19,7 @@ import React, { useMemo, useState, useCallback } from 'react'; import { CaseAttachmentsWithoutOwner } from '@kbn/cases-plugin/public'; import { CommentType } from '@kbn/cases-plugin/common'; import type { ActionProps } from '@kbn/timelines-plugin/common'; +import { isAlertDetailsEnabledPerApp } from '../../../utils/is_alert_details_enabled'; import { useKibana } from '../../../utils/kibana_react'; import { useGetUserCasesPermissions } from '../../../hooks/use_get_user_cases_permissions'; import { parseAlert } from './parse_alert'; @@ -143,7 +144,7 @@ export function ObservabilityActions({ : []), ...[ - config?.unsafe?.alertDetails.enabled && linkToAlert ? ( + isAlertDetailsEnabledPerApp(alert, config) && linkToAlert ? ( ({ const config = { unsafe: { - alertDetails: { enabled: false }, + alertDetails: { + apm: { enabled: false }, + logs: { enabled: false }, + metrics: { enabled: false }, + uptime: { enabled: false }, + }, }, } as ConfigSchema; diff --git a/x-pack/plugins/observability/public/plugin.ts b/x-pack/plugins/observability/public/plugin.ts index 161fe2851ae3a..d6f926949ef4b 100644 --- a/x-pack/plugins/observability/public/plugin.ts +++ b/x-pack/plugins/observability/public/plugin.ts @@ -54,7 +54,20 @@ import getAppDataView from './utils/observability_data_views/get_app_data_view'; export interface ConfigSchema { unsafe: { - alertDetails: { enabled: boolean }; + alertDetails: { + apm: { + enabled: boolean; + }; + metrics: { + enabled: boolean; + }; + logs: { + enabled: boolean; + }; + uptime: { + enabled: boolean; + }; + }; }; } export type ObservabilityPublicSetup = ReturnType; diff --git a/x-pack/plugins/observability/public/utils/is_alert_details_enabled.test.ts b/x-pack/plugins/observability/public/utils/is_alert_details_enabled.test.ts new file mode 100644 index 0000000000000..470c00d431a73 --- /dev/null +++ b/x-pack/plugins/observability/public/utils/is_alert_details_enabled.test.ts @@ -0,0 +1,292 @@ +/* + * 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. + */ + +import { + ALERT_DURATION, + ALERT_EVALUATION_VALUE, + ALERT_INSTANCE_ID, + ALERT_RULE_NAME, + ALERT_RULE_TAGS, + ALERT_RULE_TYPE_ID, + ALERT_RULE_UUID, + ALERT_START, + ALERT_STATUS, + ALERT_UUID, + ALERT_WORKFLOW_STATUS, + EVENT_ACTION, + EVENT_KIND, + SPACE_IDS, + TIMESTAMP, + VERSION, +} from '@kbn/rule-data-utils'; +import { TopAlert } from '../pages/alerts'; +import { ConfigSchema } from '../plugin'; +import { isAlertDetailsEnabledPerApp } from './is_alert_details_enabled'; +const defaultConfig = { + unsafe: { + alertDetails: { + apm: { enabled: false }, + logs: { enabled: false }, + metrics: { enabled: false }, + uptime: { enabled: false }, + }, + }, +} as ConfigSchema; +describe('isAlertDetailsEnabled', () => { + describe('Logs alert', () => { + const logsAlert = { + reason: 'reason message', + fields: { + [ALERT_STATUS]: 'active', + [TIMESTAMP]: '2022-09-02T13:08:51.750Z', + [ALERT_DURATION]: 882076000, + [ALERT_WORKFLOW_STATUS]: 'open', + [ALERT_RULE_UUID]: 'db2ab7c0-0bec-11ec-9ae2-5b10ca924404', + [ALERT_START]: '2021-09-02T12:54:09.674Z', + [ALERT_RULE_TYPE_ID]: 'logs.alert.document.count', + [EVENT_ACTION]: 'active', + [ALERT_EVALUATION_VALUE]: 1957, + [ALERT_INSTANCE_ID]: '*', + [ALERT_RULE_NAME]: 'mockedRule', + [ALERT_UUID]: '432ab7c0-0bec-11ec-9ae2-4b10ca857438', + [SPACE_IDS]: ['default'], + [VERSION]: '8.0.0', + [EVENT_KIND]: 'signal', + [ALERT_RULE_TAGS]: [], + }, + active: true, + start: 1630587249674, + lastUpdated: 1630588131750, + } as unknown as TopAlert; + it('returns FALSE when logs: { enabled: false }', () => { + expect(isAlertDetailsEnabledPerApp(logsAlert, defaultConfig)).toBeFalsy(); + }); + + it('returns TRUE when logs: { enabled: true }', () => { + const updatedConfig = { + unsafe: { + alertDetails: { + apm: { enabled: false }, + logs: { enabled: true }, + metrics: { enabled: false }, + uptime: { enabled: false }, + }, + }, + } as ConfigSchema; + expect(isAlertDetailsEnabledPerApp(logsAlert, updatedConfig)).toBeTruthy(); + }); + }); + describe('APM alert', () => { + const APMAlert = { + reason: 'reason message', + fields: { + [ALERT_STATUS]: 'active', + [TIMESTAMP]: '2022-09-02T13:08:51.750Z', + [ALERT_DURATION]: 882076000, + [ALERT_WORKFLOW_STATUS]: 'open', + [ALERT_RULE_UUID]: 'db2ab7c0-0bec-11ec-9ae2-5b10ca924404', + [ALERT_START]: '2021-09-02T12:54:09.674Z', + [ALERT_RULE_TYPE_ID]: 'apm.transaction_error_rate', + [EVENT_ACTION]: 'active', + [ALERT_EVALUATION_VALUE]: 1957, + [ALERT_INSTANCE_ID]: '*', + [ALERT_RULE_NAME]: 'mockedRule', + [ALERT_UUID]: '432ab7c0-0bec-11ec-9ae2-4b10ca857438', + [SPACE_IDS]: ['default'], + [VERSION]: '8.0.0', + [EVENT_KIND]: 'signal', + [ALERT_RULE_TAGS]: [], + }, + active: true, + start: 1630587249674, + lastUpdated: 1630588131750, + } as unknown as TopAlert; + it('returns FALSE when apm: { enabled: false }', () => { + expect(isAlertDetailsEnabledPerApp(APMAlert, defaultConfig)).toBeFalsy(); + }); + + it('returns TRUE when apm: { enabled: true }', () => { + const updatedConfig = { + unsafe: { + alertDetails: { + apm: { enabled: true }, + logs: { enabled: false }, + metrics: { enabled: false }, + uptime: { enabled: false }, + }, + }, + } as ConfigSchema; + expect(isAlertDetailsEnabledPerApp(APMAlert, updatedConfig)).toBeTruthy(); + }); + }); + describe('Metrics alert', () => { + const metricsAlert = { + reason: 'reason message', + fields: { + [ALERT_STATUS]: 'active', + [TIMESTAMP]: '2022-09-02T13:08:51.750Z', + [ALERT_DURATION]: 882076000, + [ALERT_WORKFLOW_STATUS]: 'open', + [ALERT_RULE_UUID]: 'db2ab7c0-0bec-11ec-9ae2-5b10ca924404', + [ALERT_START]: '2021-09-02T12:54:09.674Z', + [ALERT_RULE_TYPE_ID]: 'metrics.alert.inventory.threshold', + [EVENT_ACTION]: 'active', + [ALERT_EVALUATION_VALUE]: 1957, + [ALERT_INSTANCE_ID]: '*', + [ALERT_RULE_NAME]: 'mockedRule', + [ALERT_UUID]: '432ab7c0-0bec-11ec-9ae2-4b10ca857438', + [SPACE_IDS]: ['default'], + [VERSION]: '8.0.0', + [EVENT_KIND]: 'signal', + [ALERT_RULE_TAGS]: [], + }, + active: true, + start: 1630587249674, + lastUpdated: 1630588131750, + } as unknown as TopAlert; + it('returns FALSE when metrics: { enabled: false }', () => { + expect(isAlertDetailsEnabledPerApp(metricsAlert, defaultConfig)).toBeFalsy(); + }); + + it('returns TRUE when metrics: { enabled: true }', () => { + const updatedConfig = { + unsafe: { + alertDetails: { + apm: { enabled: false }, + logs: { enabled: false }, + metrics: { enabled: true }, + uptime: { enabled: false }, + }, + }, + } as ConfigSchema; + expect(isAlertDetailsEnabledPerApp(metricsAlert, updatedConfig)).toBeTruthy(); + }); + }); + describe('Uptime alert', () => { + const uptimeAlert = { + reason: 'reason message', + fields: { + [ALERT_STATUS]: 'active', + [TIMESTAMP]: '2022-09-02T13:08:51.750Z', + [ALERT_DURATION]: 882076000, + [ALERT_WORKFLOW_STATUS]: 'open', + [ALERT_RULE_UUID]: 'db2ab7c0-0bec-11ec-9ae2-5b10ca924404', + [ALERT_START]: '2021-09-02T12:54:09.674Z', + [ALERT_RULE_TYPE_ID]: 'xpack.uptime.alerts.monitorStatus', + [EVENT_ACTION]: 'active', + [ALERT_EVALUATION_VALUE]: 1957, + [ALERT_INSTANCE_ID]: '*', + [ALERT_RULE_NAME]: 'mockedRule', + [ALERT_UUID]: '432ab7c0-0bec-11ec-9ae2-4b10ca857438', + [SPACE_IDS]: ['default'], + [VERSION]: '8.0.0', + [EVENT_KIND]: 'signal', + [ALERT_RULE_TAGS]: [], + }, + active: true, + start: 1630587249674, + lastUpdated: 1630588131750, + } as unknown as TopAlert; + it('returns FALSE when uptime: { enabled: false }', () => { + expect(isAlertDetailsEnabledPerApp(uptimeAlert, defaultConfig)).toBeFalsy(); + }); + + it('returns TRUE when uptime: { enabled: true }', () => { + const updatedConfig = { + unsafe: { + alertDetails: { + apm: { enabled: false }, + logs: { enabled: false }, + metrics: { enabled: false }, + uptime: { enabled: true }, + }, + }, + } as ConfigSchema; + expect(isAlertDetailsEnabledPerApp(uptimeAlert, updatedConfig)).toBeTruthy(); + }); + }); + describe('Edge cases', () => { + it('returns FALSE when no config provided', () => { + const uptimeAlert = { + reason: 'reason message', + fields: { + [ALERT_STATUS]: 'active', + [TIMESTAMP]: '2022-09-02T13:08:51.750Z', + [ALERT_DURATION]: 882076000, + [ALERT_WORKFLOW_STATUS]: 'open', + [ALERT_RULE_UUID]: 'db2ab7c0-0bec-11ec-9ae2-5b10ca924404', + [ALERT_START]: '2021-09-02T12:54:09.674Z', + [ALERT_RULE_TYPE_ID]: 'xpack.uptime.alerts.monitorStatus', + [EVENT_ACTION]: 'active', + [ALERT_EVALUATION_VALUE]: 1957, + [ALERT_INSTANCE_ID]: '*', + [ALERT_RULE_NAME]: 'mockedRule', + [ALERT_UUID]: '432ab7c0-0bec-11ec-9ae2-4b10ca857438', + [SPACE_IDS]: ['default'], + [VERSION]: '8.0.0', + [EVENT_KIND]: 'signal', + [ALERT_RULE_TAGS]: [], + }, + active: true, + start: 1630587249674, + lastUpdated: 1630588131750, + } as unknown as TopAlert; + expect(isAlertDetailsEnabledPerApp(uptimeAlert, null)).toBeFalsy(); + }); + + it('returns FALSE when no alert provided', () => { + const updatedConfig = { + unsafe: { + alertDetails: { + apm: { enabled: true }, + logs: { enabled: true }, + metrics: { enabled: true }, + uptime: { enabled: true }, + }, + }, + } as ConfigSchema; + expect(isAlertDetailsEnabledPerApp(undefined, updatedConfig)).toBeFalsy(); + }); + it('returns FALSE when a none-listed rule type is checked', () => { + const updatedConfig = { + unsafe: { + alertDetails: { + apm: { enabled: true }, + logs: { enabled: true }, + metrics: { enabled: true }, + uptime: { enabled: true }, + }, + }, + } as ConfigSchema; + const noneListedRuleType = { + reason: 'reason message', + fields: { + [ALERT_STATUS]: 'active', + [TIMESTAMP]: '2022-09-02T13:08:51.750Z', + [ALERT_DURATION]: 882076000, + [ALERT_WORKFLOW_STATUS]: 'open', + [ALERT_RULE_UUID]: 'db2ab7c0-0bec-11ec-9ae2-5b10ca924404', + [ALERT_START]: '2021-09-02T12:54:09.674Z', + [ALERT_RULE_TYPE_ID]: 'new.rule.type.not.listed', + [EVENT_ACTION]: 'active', + [ALERT_EVALUATION_VALUE]: 1957, + [ALERT_INSTANCE_ID]: '*', + [ALERT_RULE_NAME]: 'mockedRule', + [ALERT_UUID]: '432ab7c0-0bec-11ec-9ae2-4b10ca857438', + [SPACE_IDS]: ['default'], + [VERSION]: '8.0.0', + [EVENT_KIND]: 'signal', + [ALERT_RULE_TAGS]: [], + }, + active: true, + start: 1630587249674, + lastUpdated: 1630588131750, + } as unknown as TopAlert; + expect(isAlertDetailsEnabledPerApp(noneListedRuleType, updatedConfig)).toBeFalsy(); + }); + }); +}); diff --git a/x-pack/plugins/observability/public/utils/is_alert_details_enabled.ts b/x-pack/plugins/observability/public/utils/is_alert_details_enabled.ts new file mode 100644 index 0000000000000..c9e928814a0a3 --- /dev/null +++ b/x-pack/plugins/observability/public/utils/is_alert_details_enabled.ts @@ -0,0 +1,30 @@ +/* + * 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. + */ + +import { ALERT_RULE_TYPE_ID } from '@kbn/rule-data-utils'; +import { TopAlert } from '../pages/alerts'; +import { ConfigSchema } from '../plugin'; + +// We are mapping the ruleTypeId from the feature flag with the ruleTypeId form the alert +// to know whether the feature flag is enabled or not. +export const isAlertDetailsEnabledPerApp = ( + alert?: TopAlert | null, + config?: ConfigSchema | null +): boolean => { + if (!alert || !config) return false; + const ruleTypeIdFromFeatureFlag = Object.keys(config.unsafe.alertDetails); + let ruleTypeId = alert.fields[ALERT_RULE_TYPE_ID].split('.')[0] as string; + + // Uptime rule type id is not following the same name convention as all the other rules, so dedicated treatment needed. + if (alert.fields[ALERT_RULE_TYPE_ID] === 'xpack.uptime.alerts.monitorStatus') + ruleTypeId = 'uptime'; + + const appName = ruleTypeId as unknown as keyof ConfigSchema['unsafe']['alertDetails']; + return ( + ruleTypeIdFromFeatureFlag.includes(ruleTypeId) && config?.unsafe?.alertDetails[appName].enabled + ); +}; diff --git a/x-pack/plugins/observability/public/utils/test_helper.tsx b/x-pack/plugins/observability/public/utils/test_helper.tsx index 3b43312ee263d..0a184290fab4e 100644 --- a/x-pack/plugins/observability/public/utils/test_helper.tsx +++ b/x-pack/plugins/observability/public/utils/test_helper.tsx @@ -29,7 +29,12 @@ const observabilityRuleTypeRegistry = createObservabilityRuleTypeRegistryMock(); const defaultConfig = { unsafe: { - alertDetails: { enabled: false }, + alertDetails: { + apm: { enabled: false }, + logs: { enabled: false }, + metrics: { enabled: false }, + uptime: { enabled: false }, + }, }, } as ConfigSchema; diff --git a/x-pack/plugins/observability/server/index.ts b/x-pack/plugins/observability/server/index.ts index dad8d5a36bd33..e8b6582a9184e 100644 --- a/x-pack/plugins/observability/server/index.ts +++ b/x-pack/plugins/observability/server/index.ts @@ -32,7 +32,18 @@ const configSchema = schema.object({ enabled: schema.boolean({ defaultValue: false }), }), alertDetails: schema.object({ - enabled: schema.boolean({ defaultValue: false }), + apm: schema.object({ + enabled: schema.boolean({ defaultValue: false }), + }), + metrics: schema.object({ + enabled: schema.boolean({ defaultValue: false }), + }), + logs: schema.object({ + enabled: schema.boolean({ defaultValue: false }), + }), + uptime: schema.object({ + enabled: schema.boolean({ defaultValue: false }), + }), }), }), }); diff --git a/x-pack/plugins/security_solution/cypress/e2e/timelines/unsaved_timeline.cy.ts b/x-pack/plugins/security_solution/cypress/e2e/timelines/unsaved_timeline.cy.ts index e18937ee1fc09..93eab97a503de 100644 --- a/x-pack/plugins/security_solution/cypress/e2e/timelines/unsaved_timeline.cy.ts +++ b/x-pack/plugins/security_solution/cypress/e2e/timelines/unsaved_timeline.cy.ts @@ -31,7 +31,7 @@ import { populateTimeline, waitForTimelineChanges, } from '../../tasks/timeline'; -import { HOSTS_URL } from '../../urls/navigation'; +import { HOSTS_URL, MANAGE_URL } from '../../urls/navigation'; describe('Save Timeline Prompts', () => { before(() => { @@ -129,7 +129,7 @@ describe('Save Timeline Prompts', () => { cy.url().should('not.contain', HOSTS_URL); }); - it('When user navigates to the page where timeline is present, Time save modal shold not exists.', () => { + it('When user navigates to the page where timeline is present, Time save modal should not exists.', () => { populateTimeline(); waitForTimelineChanges(); closeTimelineUsingToggle(); @@ -145,4 +145,22 @@ describe('Save Timeline Prompts', () => { cy.get(ALERTS_PAGE).click(); cy.get(TIMELINE_SAVE_MODAL).should('not.exist'); }); + + it('Changed and unsaved timeline should NOT prompt when user navigates from the page where timeline is disabled', () => { + populateTimeline(); + waitForTimelineChanges(); + closeTimelineUsingToggle(); + openKibanaNavigation(); + cy.get(MANAGE_PAGE).click(); + cy.get(APP_LEAVE_CONFIRM_MODAL).should('be.visible'); + cy.get(MODAL_CONFIRMATION_BTN).click(); + // now we have come from MANAGE_PAGE where timeline is disabled + // to outside app where timeline is not present. + // There should be NO confirmation model in that case. + openKibanaNavigation(); + navigateFromKibanaCollapsibleTo(OBSERVABILITY_ALERTS_PAGE); + // should not be manage page i.e. successfull navigation + cy.get(TIMELINE_SAVE_MODAL).should('not.exist'); + cy.url().should('not.contain', MANAGE_URL); + }); }); diff --git a/x-pack/plugins/security_solution/public/common/hooks/timeline/use_timeline_save_prompt.ts b/x-pack/plugins/security_solution/public/common/hooks/timeline/use_timeline_save_prompt.ts index 84c37a58fcf4f..72337661c6c38 100644 --- a/x-pack/plugins/security_solution/public/common/hooks/timeline/use_timeline_save_prompt.ts +++ b/x-pack/plugins/security_solution/public/common/hooks/timeline/use_timeline_save_prompt.ts @@ -117,5 +117,11 @@ export const useTimelineSavePrompt = ( return actions.default(); } }); + + return () => { + // removing app leave handler for timeline when + // components containing timeline unmounts + onAppLeave((actions) => actions.default()); + }; }); }; diff --git a/x-pack/plugins/security_solution/public/management/links.test.ts b/x-pack/plugins/security_solution/public/management/links.test.ts index c8166563428ab..3ddd52b918efd 100644 --- a/x-pack/plugins/security_solution/public/management/links.test.ts +++ b/x-pack/plugins/security_solution/public/management/links.test.ts @@ -60,7 +60,7 @@ describe('links', () => { } as unknown as StartPlugins); }); - it('it returns all links without filtering when having isolate permissions', async () => { + it('it returns all links without filtering when having isolate permission', async () => { (licenseService.isPlatinumPlus as jest.Mock).mockReturnValue(true); fakeHttpServices.get.mockResolvedValue({ total: 0 }); const filteredLinks = await getManagementFilteredLinks( @@ -70,30 +70,67 @@ describe('links', () => { expect(filteredLinks).toEqual(links); }); - it('it returns all links without filtering when not having isolation permissions but has at least one host isolation exceptions entry', async () => { + it('it returns all but response actions history link when NO isolation permission but HAS at least one host isolation exceptions entry', async () => { + (licenseService.isPlatinumPlus as jest.Mock).mockReturnValue(false); fakeHttpServices.get.mockResolvedValue({ total: 1 }); const filteredLinks = await getManagementFilteredLinks( coreMockStarted, getPlugins(['superuser']) ); - (licenseService.isPlatinumPlus as jest.Mock).mockReturnValue(false); - expect(filteredLinks).toEqual(links); + expect(filteredLinks).toEqual({ + ...links, + links: links.links?.filter((link) => link.id !== SecurityPageName.responseActionsHistory), + }); }); - it('it returns all but response actions history when no access privilege to either response actions history or HIE but have at least one HIE entry', async () => { + it('it returns all but response actions history when NO access to either response actions history or HIE but have at least one HIE entry', async () => { fakeHttpServices.get.mockResolvedValue({ total: 1 }); + (licenseService.isPlatinumPlus as jest.Mock).mockReturnValue(false); const filteredLinks = await getManagementFilteredLinks( coreMockStarted, getPlugins(['superuser']) ); + + expect(filteredLinks).toEqual({ + ...links, + links: links.links?.filter((link) => link.id !== SecurityPageName.responseActionsHistory), + }); + }); + + it('it returns all but response actions history when NO enterprise license and can not isolate but HAS an HIE entry', async () => { + (licenseService.isEnterprise as jest.Mock).mockReturnValue(false); (licenseService.isPlatinumPlus as jest.Mock).mockReturnValue(false); + fakeHttpServices.get.mockResolvedValue({ total: 1 }); + const filteredLinks = await getManagementFilteredLinks( + coreMockStarted, + getPlugins(['superuser']) + ); + expect(filteredLinks).toEqual({ ...links, links: links.links?.filter((link) => link.id !== SecurityPageName.responseActionsHistory), }); }); - it('it returns filtered links when not having isolation permissions and no host isolation exceptions entry', async () => { + it('it returns all but response actions history and HIE links when NO enterprise license and no HIE entry', async () => { + (licenseService.isEnterprise as jest.Mock).mockReturnValue(false); + fakeHttpServices.get.mockResolvedValue({ total: 0 }); + const filteredLinks = await getManagementFilteredLinks( + coreMockStarted, + getPlugins(['superuser']) + ); + + expect(filteredLinks).toEqual({ + ...links, + links: links.links?.filter( + (link) => + link.id !== SecurityPageName.hostIsolationExceptions && + link.id !== SecurityPageName.responseActionsHistory + ), + }); + }); + + it('it returns filtered links when not having NO isolation permission and NO host isolation exceptions entry', async () => { fakeHttpServices.get.mockResolvedValue({ total: 0 }); (licenseService.isPlatinumPlus as jest.Mock).mockReturnValue(false); const filteredLinks = await getManagementFilteredLinks(coreMockStarted, getPlugins([])); diff --git a/x-pack/plugins/security_solution/public/management/links.ts b/x-pack/plugins/security_solution/public/management/links.ts index b5cafa42ca177..75436383547ab 100644 --- a/x-pack/plugins/security_solution/public/management/links.ts +++ b/x-pack/plugins/security_solution/public/management/links.ts @@ -232,6 +232,13 @@ const excludeLinks = (linkIds: SecurityPageName[]) => ({ links: links.links?.filter((link) => !linkIds.includes(link.id)), }); +const getHostIsolationExceptionTotal = async (http: CoreStart['http']) => { + const hostIsolationExceptionsApiClientInstance = + HostIsolationExceptionsApiClient.getInstance(http); + const summaryResponse = await hostIsolationExceptionsApiClientInstance.summary(); + return summaryResponse.total; +}; + export const getManagementFilteredLinks = async ( core: CoreStart, plugins: StartPlugins @@ -242,7 +249,7 @@ export const getManagementFilteredLinks = async ( try { const currentUserResponse = await plugins.security.authc.getCurrentUser(); - const privileges = fleetAuthz + const { canAccessEndpointManagement, canIsolateHost, canReadActionsLogManagement } = fleetAuthz ? calculateEndpointAuthz( licenseService, fleetAuthz, @@ -251,18 +258,28 @@ export const getManagementFilteredLinks = async ( endpointPermissions ) : getEndpointAuthzInitialState(); - if (!privileges.canAccessEndpointManagement) { + + if (!canAccessEndpointManagement) { return excludeLinks([ SecurityPageName.hostIsolationExceptions, SecurityPageName.responseActionsHistory, ]); } - if (!privileges.canIsolateHost || !privileges.canReadActionsLogManagement) { - const hostIsolationExceptionsApiClientInstance = HostIsolationExceptionsApiClient.getInstance( - core.http - ); - const summaryResponse = await hostIsolationExceptionsApiClientInstance.summary(); - if (!summaryResponse.total) { + + if (!canReadActionsLogManagement) { + // <= enterprise license + const hostExceptionCount = await getHostIsolationExceptionTotal(core.http); + if (!canIsolateHost && !hostExceptionCount) { + return excludeLinks([ + SecurityPageName.hostIsolationExceptions, + SecurityPageName.responseActionsHistory, + ]); + } + return excludeLinks([SecurityPageName.responseActionsHistory]); + } else if (!canIsolateHost) { + const hostExceptionCount = await getHostIsolationExceptionTotal(core.http); + if (!hostExceptionCount) { + // <= platinum so exclude also links that require enterprise return excludeLinks([ SecurityPageName.hostIsolationExceptions, SecurityPageName.responseActionsHistory, diff --git a/x-pack/plugins/synthetics/e2e/journeys/private_locations/add_monitor_private_location.ts b/x-pack/plugins/synthetics/e2e/journeys/private_locations/add_monitor_private_location.ts index f6c0fea485891..63fa0a78adfbd 100644 --- a/x-pack/plugins/synthetics/e2e/journeys/private_locations/add_monitor_private_location.ts +++ b/x-pack/plugins/synthetics/e2e/journeys/private_locations/add_monitor_private_location.ts @@ -47,9 +47,9 @@ journey('AddPrivateLocationMonitor', async ({ page, params: { kibanaUrl } }) => await page.click('[data-test-subj="superDatePickerApplyTimeButton"]'); }); - step('Click [placeholder="Find apps, content, and more. Ex: Discover"]', async () => { - await page.click('[placeholder="Find apps, content, and more. Ex: Discover"]'); - await page.fill('[placeholder="Find apps, content, and more. Ex: Discover"]', 'integ'); + step('Click [placeholder="Find apps, content, and more."]', async () => { + await page.click('[placeholder="Find apps, content, and more."]'); + await page.fill('[placeholder="Find apps, content, and more."]', 'integ'); await Promise.all([ page.waitForNavigation(/* { url: '${kibanaUrl}/app/integrations/browse' }*/), page.click('text=Integrations'), diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/hooks/use_monitor_latest_ping.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/hooks/use_monitor_latest_ping.tsx index 2017109855bfb..6b9ab1442b9eb 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/hooks/use_monitor_latest_ping.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/hooks/use_monitor_latest_ping.tsx @@ -7,6 +7,7 @@ import { useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; +import { ConfigKey } from '../../../../../../common/runtime_types'; import { getMonitorRecentPingsAction, selectLatestPing, selectPingsLoading } from '../../../state'; import { useSelectedLocation } from './use_selected_location'; import { useSelectedMonitor } from './use_selected_monitor'; @@ -28,10 +29,14 @@ export const useMonitorLatestPing = (params?: UseMonitorLatestPingParams) => { const latestPing = useSelector(selectLatestPing); const pingsLoading = useSelector(selectPingsLoading); - const isUpToDate = - latestPing && - latestPing.monitor.id === monitorId && - latestPing.observer?.geo?.name === locationLabel; + const latestPingId = latestPing?.monitor.id; + + const isIdSame = + latestPingId === monitorId || latestPingId === monitor?.[ConfigKey.CUSTOM_HEARTBEAT_ID]; + + const isLocationSame = latestPing?.observer?.geo?.name === locationLabel; + + const isUpToDate = isIdSame && isLocationSame; useEffect(() => { if (monitorId && locationLabel && !isUpToDate) { @@ -47,7 +52,7 @@ export const useMonitorLatestPing = (params?: UseMonitorLatestPingParams) => { return { loading: pingsLoading, latestPing: null }; } - if (latestPing.monitor.id !== monitorId || latestPing.observer?.geo?.name !== locationLabel) { + if (!isIdSame || !isLocationSame) { return { loading: pingsLoading, latestPing: null }; } diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/hooks/use_monitor_query_id.ts b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/hooks/use_monitor_query_id.ts new file mode 100644 index 0000000000000..4b1e88461fa16 --- /dev/null +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/hooks/use_monitor_query_id.ts @@ -0,0 +1,22 @@ +/* + * 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. + */ + +import { useParams } from 'react-router-dom'; +import { ConfigKey } from '../../../../../../common/runtime_types'; +import { useSelectedMonitor } from './use_selected_monitor'; + +export const useMonitorQueryId = () => { + const { monitorId } = useParams<{ monitorId: string }>(); + + const { monitor } = useSelectedMonitor(); + + if (monitor && monitor.origin === 'project') { + return monitor[ConfigKey.CUSTOM_HEARTBEAT_ID]!; + } + + return monitorId; +}; diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/availability_sparklines.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/availability_sparklines.tsx index bc05d8fcc7a51..308ba581f6b0b 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/availability_sparklines.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/availability_sparklines.tsx @@ -8,8 +8,8 @@ import React from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { ReportTypes, useTheme } from '@kbn/observability-plugin/public'; -import { useParams } from 'react-router-dom'; import { ClientPluginsStart } from '../../../../../plugin'; +import { useMonitorQueryId } from '../hooks/use_monitor_query_id'; export const AvailabilitySparklines = () => { const { @@ -17,7 +17,7 @@ export const AvailabilitySparklines = () => { observability: { ExploratoryViewEmbeddable }, }, } = useKibana(); - const { monitorId } = useParams<{ monitorId: string }>(); + const monitorId = useMonitorQueryId(); const theme = useTheme(); diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/duration_panel.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/duration_panel.tsx index 6d3ff68b2785c..4c6ede0ade308 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/duration_panel.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/duration_panel.tsx @@ -8,10 +8,10 @@ import React from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { ReportTypes } from '@kbn/observability-plugin/public'; -import { useParams } from 'react-router-dom'; import { ClientPluginsStart } from '../../../../../plugin'; import { KpiWrapper } from './kpi_wrapper'; +import { useMonitorQueryId } from '../hooks/use_monitor_query_id'; export const DurationPanel = () => { const { @@ -19,7 +19,7 @@ export const DurationPanel = () => { observability: { ExploratoryViewEmbeddable }, }, } = useKibana(); - const { monitorId } = useParams<{ monitorId: string }>(); + const monitorId = useMonitorQueryId(); return ( diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/duration_trend.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/duration_trend.tsx index 8336e33a7e973..3642aa520c211 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/duration_trend.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/duration_trend.tsx @@ -7,15 +7,15 @@ import React from 'react'; import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { useParams } from 'react-router-dom'; import { ClientPluginsStart } from '../../../../../plugin'; +import { useMonitorQueryId } from '../hooks/use_monitor_query_id'; export const MonitorDurationTrend = () => { const { observability } = useKibana().services; const { ExploratoryViewEmbeddable } = observability; - const { monitorId } = useParams<{ monitorId: string }>(); + const monitorId = useMonitorQueryId(); const metricsToShow = ['min', 'max', 'median', '25th', '75th']; @@ -31,9 +31,7 @@ export const MonitorDurationTrend = () => { }, name: metric + ' Series', selectedMetricField: 'monitor.duration.us', - reportDefinitions: { - 'monitor.id': [monitorId], - }, + reportDefinitions: { 'monitor.id': [monitorId] }, seriesType: 'line', operationType: metric, }))} diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/step_duration_panel.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/step_duration_panel.tsx index 120449b88bd04..1fe6ef23a44a0 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/step_duration_panel.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitor_details/monitor_summary/step_duration_panel.tsx @@ -9,9 +9,9 @@ import React from 'react'; import { EuiFlexGroup, EuiFlexItem, EuiPanel, EuiText, EuiTitle } from '@elastic/eui'; import { useKibana } from '@kbn/kibana-react-plugin/public'; import { ReportTypes } from '@kbn/observability-plugin/public'; -import { useParams } from 'react-router-dom'; import { i18n } from '@kbn/i18n'; +import { useMonitorQueryId } from '../hooks/use_monitor_query_id'; import { useSelectedMonitor } from '../hooks/use_selected_monitor'; import { ClientPluginsStart } from '../../../../../plugin'; export const StepDurationPanel = () => { @@ -19,10 +19,10 @@ export const StepDurationPanel = () => { const { ExploratoryViewEmbeddable } = observability; - const { monitorId } = useParams<{ monitorId: string }>(); - const { monitor } = useSelectedMonitor(); + const monitorId = useMonitorQueryId(); + const isBrowser = monitor?.type === 'browser'; return ( diff --git a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/barchart/legend_action/legend_action.tsx b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/barchart/legend_action/legend_action.tsx index 894b35b9ca449..9572e41846048 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/barchart/legend_action/legend_action.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/barchart/legend_action/legend_action.tsx @@ -10,7 +10,7 @@ import { EuiButtonIcon, EuiContextMenuPanel, EuiPopover, EuiToolTip } from '@ela import { i18n } from '@kbn/i18n'; import { CopyToClipboardContextMenu } from '../../copy_to_clipboard'; import { FilterInContextMenu, FilterOutContextMenu } from '../../../../query_bar'; -import { AddToTimelineContextMenu } from '../../../../timeline/components/add_to_timeline'; +import { AddToTimelineContextMenu } from '../../../../timeline'; export const POPOVER_BUTTON_TEST_ID = 'tiBarchartPopoverButton'; export const TIMELINE_BUTTON_TEST_ID = 'tiBarchartTimelineButton'; diff --git a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/flyout/flyout.tsx b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/flyout/flyout.tsx index e43495c9b0a6c..485ba92f61932 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/flyout/flyout.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/flyout/flyout.tsx @@ -21,7 +21,7 @@ import { useGeneratedHtmlId, } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; -import { InvestigateInTimelineButton } from '../../../timeline/components/investigate_in_timeline'; +import { InvestigateInTimelineButton } from '../../../timeline'; import { DateFormatter } from '../../../../components/date_formatter/date_formatter'; import { Indicator, RawIndicatorFieldId } from '../../../../../common/types/indicator'; import { IndicatorsFlyoutJson } from './json_tab'; diff --git a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/flyout/indicator_value_actions/indicator_value_actions.tsx b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/flyout/indicator_value_actions/indicator_value_actions.tsx index 3609ea1c1b496..4d4f1d94d84e5 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/flyout/indicator_value_actions/indicator_value_actions.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/flyout/indicator_value_actions/indicator_value_actions.tsx @@ -16,7 +16,7 @@ import { import { i18n } from '@kbn/i18n'; import { Indicator } from '../../../../../../common/types/indicator'; import { FilterInButtonIcon, FilterOutButtonIcon } from '../../../../query_bar'; -import { AddToTimelineContextMenu } from '../../../../timeline/components/add_to_timeline'; +import { AddToTimelineContextMenu } from '../../../../timeline'; import { fieldAndValueValid, getIndicatorFieldAndValue } from '../../../utils'; import { CopyToClipboardContextMenu } from '../../copy_to_clipboard'; diff --git a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/actions_row_cell.tsx b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/actions_row_cell.tsx index 34a4d3cfee753..e8a58f2797669 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/actions_row_cell.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/actions_row_cell.tsx @@ -7,7 +7,7 @@ import React, { useContext, VFC } from 'react'; import { EuiFlexGroup } from '@elastic/eui'; -import { InvestigateInTimelineButtonIcon } from '../../../../timeline/components/investigate_in_timeline'; +import { InvestigateInTimelineButtonIcon } from '../../../../timeline'; import { Indicator } from '../../../../../../common/types/indicator'; import { OpenIndicatorFlyoutButton } from './open_flyout_button'; import { IndicatorsTableContext } from '../contexts'; diff --git a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/cell_actions.tsx b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/cell_actions.tsx index eb00025d9e97e..2f606df1a8f12 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/cell_actions.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/cell_actions.tsx @@ -8,7 +8,7 @@ import React, { VFC } from 'react'; import { EuiDataGridColumnCellActionProps } from '@elastic/eui/src/components/datagrid/data_grid_types'; import { Indicator } from '../../../../../../common/types/indicator'; -import { AddToTimelineCellAction } from '../../../../timeline/components/add_to_timeline'; +import { AddToTimelineCellAction } from '../../../../timeline'; import { FilterInCellAction, FilterOutCellAction } from '../../../../query_bar'; import { fieldAndValueValid, getIndicatorFieldAndValue } from '../../../utils'; import type { Pagination } from '../../../services'; diff --git a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/cell_popover_renderer.tsx b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/cell_popover_renderer.tsx index 057e14d6fa352..eba86eb4e8c35 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/cell_popover_renderer.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/indicators/components/table/components/cell_popover_renderer.tsx @@ -14,7 +14,7 @@ import { import React from 'react'; import { CopyToClipboardButtonEmpty } from '../../copy_to_clipboard/copy_to_clipboard'; import { FilterInButtonEmpty, FilterOutButtonEmpty } from '../../../../query_bar'; -import { AddToTimelineButtonEmpty } from '../../../../timeline/components/add_to_timeline'; +import { AddToTimelineButtonEmpty } from '../../../../timeline'; import { fieldAndValueValid, getIndicatorFieldAndValue } from '../../../utils/field_value'; import { Indicator } from '../../../../../../common/types/indicator'; import { Pagination } from '../../../services/fetch_indicators'; diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.stories.tsx b/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.stories.tsx index beefdafd9d59f..eef3b90782f6b 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.stories.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.stories.tsx @@ -12,7 +12,7 @@ import { createKibanaReactContext } from '@kbn/kibana-react-plugin/public'; import { EuiContextMenuPanel } from '@elastic/eui'; import { mockKibanaTimelinesService } from '../../../../common/mocks/mock_kibana_timelines_service'; import { generateMockIndicator, Indicator } from '../../../../../common/types/indicator'; -import { AddToTimelineButtonIcon, AddToTimelineContextMenu } from './add_to_timeline'; +import { AddToTimelineButtonIcon, AddToTimelineContextMenu } from '.'; export default { title: 'AddToTimeline', diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.test.tsx b/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.test.tsx index 85e581bc8dc17..c2a997f49ab96 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.test.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.test.tsx @@ -9,7 +9,7 @@ import React from 'react'; import { render } from '@testing-library/react'; import { generateMockIndicator, Indicator } from '../../../../../common/types/indicator'; import { EMPTY_VALUE } from '../../../../../common/constants'; -import { AddToTimelineButtonIcon } from './add_to_timeline'; +import { AddToTimelineButtonIcon } from '.'; import { TestProvidersComponent } from '../../../../common/mocks/test_providers'; describe('', () => { diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.tsx b/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.tsx index 1a1f4d61475e5..97327bd67a304 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/components/add_to_timeline/add_to_timeline.tsx @@ -16,12 +16,12 @@ import { EuiToolTip, } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; -import { generateDataProvider } from '../../utils/data_provider'; +import { generateDataProvider } from '../../utils'; import { fieldAndValueValid, getIndicatorFieldAndValue } from '../../../indicators'; import { useKibana } from '../../../../hooks/use_kibana'; import { Indicator } from '../../../../../common/types/indicator'; import { useStyles } from './styles'; -import { useAddToTimeline } from '../../hooks/use_add_to_timeline'; +import { useAddToTimeline } from '../../hooks'; const ICON_TYPE = 'timeline'; const TITLE = i18n.translate('xpack.threatIntelligence.timeline.addToTimeline', { diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/components/investigate_in_timeline/investigate_in_timeline.tsx b/x-pack/plugins/threat_intelligence/public/modules/timeline/components/investigate_in_timeline/investigate_in_timeline.tsx index cd1f7ce2a2d97..c99c02ac8f8a2 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/timeline/components/investigate_in_timeline/investigate_in_timeline.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/components/investigate_in_timeline/investigate_in_timeline.tsx @@ -9,7 +9,7 @@ import React, { VFC } from 'react'; import { EuiButton, EuiButtonIcon, EuiToolTip } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n-react'; import { i18n } from '@kbn/i18n'; -import { useInvestigateInTimeline } from '../../hooks/use_investigate_in_timeline'; +import { useInvestigateInTimeline } from '../../hooks'; import { Indicator } from '../../../../../common/types/indicator'; const BUTTON_ICON_LABEL: string = i18n.translate( diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.test.tsx b/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.test.tsx index a92c75227310e..70a54e37d6c91 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.test.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.test.tsx @@ -6,14 +6,14 @@ */ import { EMPTY_VALUE } from '../../../../common/constants'; -import { renderHook, RenderHookResult, Renderer } from '@testing-library/react-hooks'; +import { Renderer, renderHook, RenderHookResult } from '@testing-library/react-hooks'; import { generateMockIndicator, generateMockUrlIndicator, Indicator, } from '../../../../common/types/indicator'; import { TestProvidersComponent } from '../../../common/mocks/test_providers'; -import { useAddToTimeline, UseAddToTimelineValue } from './use_add_to_timeline'; +import { useAddToTimeline, UseAddToTimelineValue } from '.'; describe('useInvestigateInTimeline()', () => { let hookResult: RenderHookResult<{}, UseAddToTimelineValue, Renderer>; diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.ts b/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.ts index 7e1e4af8a7d39..f23866ac5e3ea 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.ts +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_add_to_timeline.ts @@ -7,7 +7,7 @@ import { DataProvider } from '@kbn/timelines-plugin/common'; import { AddToTimelineButtonProps } from '@kbn/timelines-plugin/public'; -import { generateDataProvider } from '../utils/data_provider'; +import { generateDataProvider } from '../utils'; import { fieldAndValueValid, getIndicatorFieldAndValue } from '../../indicators'; import { Indicator } from '../../../../common/types/indicator'; diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.test.tsx b/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.test.tsx index 30c42d7096f2f..b8c45e2095204 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.test.tsx +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.test.tsx @@ -5,11 +5,8 @@ * 2.0. */ -import { renderHook, RenderHookResult, Renderer } from '@testing-library/react-hooks'; -import { - useInvestigateInTimeline, - UseInvestigateInTimelineValue, -} from './use_investigate_in_timeline'; +import { Renderer, renderHook, RenderHookResult } from '@testing-library/react-hooks'; +import { useInvestigateInTimeline, UseInvestigateInTimelineValue } from '.'; import { generateMockIndicator, generateMockUrlIndicator, diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.ts b/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.ts index 41b33a9e4c963..d656976cfa4b2 100644 --- a/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.ts +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/hooks/use_investigate_in_timeline.ts @@ -8,7 +8,7 @@ import { useContext } from 'react'; import moment from 'moment'; import { DataProvider } from '@kbn/timelines-plugin/common'; -import { generateDataProvider } from '../utils/data_provider'; +import { generateDataProvider } from '../utils'; import { SecuritySolutionContext } from '../../../containers/security_solution_context'; import { fieldAndValueValid, getIndicatorFieldAndValue, unwrapValue } from '../../indicators'; import { diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/index.ts b/x-pack/plugins/threat_intelligence/public/modules/timeline/index.ts new file mode 100644 index 0000000000000..9024311cd9f9c --- /dev/null +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/index.ts @@ -0,0 +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. + */ + +export * from './components/add_to_timeline'; +export * from './components/investigate_in_timeline'; diff --git a/x-pack/plugins/threat_intelligence/public/modules/timeline/utils/index.ts b/x-pack/plugins/threat_intelligence/public/modules/timeline/utils/index.ts new file mode 100644 index 0000000000000..dc6c4590b786e --- /dev/null +++ b/x-pack/plugins/threat_intelligence/public/modules/timeline/utils/index.ts @@ -0,0 +1,8 @@ +/* + * 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. + */ + +export * from './data_provider'; diff --git a/x-pack/test/apm_api_integration/tests/traces/find_traces.spec.ts b/x-pack/test/apm_api_integration/tests/traces/find_traces.spec.ts index a2a44e7d086da..470a68aeacc19 100644 --- a/x-pack/test/apm_api_integration/tests/traces/find_traces.spec.ts +++ b/x-pack/test/apm_api_integration/tests/traces/find_traces.spec.ts @@ -58,13 +58,13 @@ export default function ApiTest({ getService }: FtrProviderContext) { }); } - function fetchTraces(samples: Array<{ traceId: string; transactionId: string }>) { - if (!samples.length) { + function fetchTraces(traceSamples: Array<{ traceId: string; transactionId: string }>) { + if (!traceSamples.length) { return []; } return Promise.all( - samples.map(async ({ traceId }) => { + traceSamples.map(async ({ traceId }) => { const response = await apmApiClient.readUser({ endpoint: `GET /internal/apm/traces/{traceId}`, params: { @@ -90,7 +90,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { expect(response.status).to.be(200); expect(response.body).to.eql({ - samples: [], + traceSamples: [], }); }); }); @@ -168,28 +168,28 @@ export default function ApiTest({ getService }: FtrProviderContext) { describe('and the query is empty', () => { it('returns all trace samples', async () => { const { - body: { samples }, + body: { traceSamples }, } = await fetchTraceSamples({ query: '', type: TraceSearchType.kql, environment: 'ENVIRONMENT_ALL', }); - expect(samples.length).to.eql(5); + expect(traceSamples.length).to.eql(5); }); }); describe('and query is set', () => { it('returns the relevant traces', async () => { const { - body: { samples }, + body: { traceSamples }, } = await fetchTraceSamples({ query: 'span.destination.service.resource:elasticsearch', type: TraceSearchType.kql, environment: 'ENVIRONMENT_ALL', }); - expect(samples.length).to.eql(1); + expect(traceSamples.length).to.eql(1); }); }); }); @@ -214,7 +214,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { describe('and the query is set', () => { it('returns the correct trace samples for transaction sequences', async () => { const { - body: { samples }, + body: { traceSamples }, } = await fetchTraceSamples({ query: `sequence by trace.id [ transaction where service.name == "java" ] @@ -223,7 +223,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { environment: 'ENVIRONMENT_ALL', }); - const traces = await fetchTraces(samples); + const traces = await fetchTraces(traceSamples); expect(traces.length).to.eql(2); @@ -242,7 +242,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns the correct trace samples for join sequences', async () => { const { - body: { samples }, + body: { traceSamples }, } = await fetchTraceSamples({ query: `sequence by trace.id [ span where service.name == "java" ] by span.id @@ -251,7 +251,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { environment: 'ENVIRONMENT_ALL', }); - const traces = await fetchTraces(samples); + const traces = await fetchTraces(traceSamples); expect(traces.length).to.eql(1); @@ -266,7 +266,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { it('returns the correct trace samples for exit spans', async () => { const { - body: { samples }, + body: { traceSamples }, } = await fetchTraceSamples({ query: `sequence by trace.id [ transaction where service.name == "python" ] @@ -275,7 +275,7 @@ export default function ApiTest({ getService }: FtrProviderContext) { environment: 'ENVIRONMENT_ALL', }); - const traces = await fetchTraces(samples); + const traces = await fetchTraces(traceSamples); expect(traces.length).to.eql(1); diff --git a/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/metric.ts b/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/metric.ts index caeeb5c935d85..759b91a6e3843 100644 --- a/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/metric.ts +++ b/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/metric.ts @@ -9,7 +9,16 @@ import expect from '@kbn/expect'; import { FtrProviderContext } from '../../../../../ftr_provider_context'; export default function ({ getPageObjects, getService }: FtrProviderContext) { - const { visualize, lens, timePicker } = getPageObjects(['visualize', 'lens', 'timePicker']); + const { visEditor, visualize, lens, timePicker, visChart } = getPageObjects([ + 'visEditor', + 'visualize', + 'visChart', + 'lens', + 'timePicker', + ]); + + const testSubjects = getService('testSubjects'); + const find = getService('find'); describe('Metric', function describeIndexTests() { const isNewChartsLibraryEnabled = true; @@ -44,5 +53,165 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }, ]); }); + + it('should convert aggregation with params', async () => { + await visEditor.clickMetricEditor(); + await visEditor.selectAggregation('Average', 'metrics'); + await visEditor.selectField('machine.ram', 'metrics'); + await visEditor.clickGo(); + + await visualize.navigateToLensFromAnotherVisulization(); + await lens.waitForVisualization('mtrVis'); + + expect(await lens.getLayerCount()).to.be(1); + + const dimensions = await testSubjects.findAll('lns-dimensionTrigger'); + expect(dimensions).to.have.length(1); + expect(await dimensions[0].getVisibleText()).to.be('Average machine.ram'); + + expect((await lens.getMetricVisualizationData()).length).to.be.equal(1); + expect(await lens.getMetricVisualizationData()).to.eql([ + { + title: 'Average machine.ram', + subtitle: undefined, + extraText: '', + value: '13.1B', + color: 'rgba(245, 247, 250, 1)', + showingBar: false, + }, + ]); + }); + + it('should convert sibling pipeline aggregation', async () => { + await visEditor.clickMetricEditor(); + await visEditor.selectAggregation('Max Bucket', 'metrics'); + await visEditor.clickGo(); + + await visualize.navigateToLensFromAnotherVisulization(); + await lens.waitForVisualization('mtrVis'); + + expect(await lens.getLayerCount()).to.be(1); + + const dimensions = await testSubjects.findAll('lns-dimensionTrigger'); + expect(dimensions).to.have.length(2); + expect(await dimensions[0].getVisibleText()).to.be('Overall Max of Count'); + expect(await dimensions[1].getVisibleText()).to.be('@timestamp'); + + expect((await lens.getMetricVisualizationData()).length).to.be.equal(1); + expect(await lens.getMetricVisualizationData()).to.eql([ + { + title: 'Overall Max of Count', + subtitle: undefined, + extraText: '', + value: '1.44K', + color: 'rgba(245, 247, 250, 1)', + showingBar: false, + }, + ]); + }); + + it('should not convert aggregation with not supported field type', async () => { + await visEditor.clickMetricEditor(); + await visEditor.selectAggregation('Top metrics', 'metrics'); + await visEditor.selectField('extension.raw', 'metrics'); + + await visEditor.clickGo(); + + const button = await testSubjects.exists('visualizeEditInLensButton'); + expect(button).to.be(false); + }); + + it('should convert color ranges', async () => { + await visEditor.clickMetricEditor(); + await visEditor.selectAggregation('Average', 'metrics'); + await visEditor.selectField('machine.ram', 'metrics'); + await visEditor.clickBucket('Split group'); + await visEditor.selectAggregation('Terms'); + await visEditor.selectField('machine.os.raw'); + + await visEditor.clickOptionsTab(); + await testSubjects.setValue('metricColorRange0__to', '10000'); + await testSubjects.click('metricColorRange__addRangeButton'); + + await testSubjects.setValue('metricColorRange1__to', '20000'); + await visChart.waitForVisualizationRenderingStabilized(); + + const backgroundButton = await find.byCssSelector('[data-text="Background"]'); + await backgroundButton.click(); + await visEditor.clickGo(); + + await visualize.navigateToLensFromAnotherVisulization(); + await lens.waitForVisualization('mtrVis'); + + expect(await lens.getLayerCount()).to.be(1); + + const dimensions = await testSubjects.findAll('lns-dimensionTrigger'); + expect(dimensions).to.have.length(2); + expect(await dimensions[0].getVisibleText()).to.be('Average machine.ram'); + expect(await dimensions[1].getVisibleText()).to.be('machine.os.raw: Descending'); + + expect((await lens.getMetricVisualizationData()).length).to.be.equal(6); + expect(await lens.getMetricVisualizationData()).to.eql([ + { + title: 'osx', + subtitle: 'Average machine.ram', + extraText: '', + value: '13.23B', + color: 'rgba(245, 247, 250, 1)', + showingBar: false, + }, + { + title: 'win 7', + subtitle: 'Average machine.ram', + extraText: '', + value: '13.19B', + color: 'rgba(245, 247, 250, 1)', + showingBar: false, + }, + { + title: 'win xp', + subtitle: 'Average machine.ram', + extraText: '', + value: '13.07B', + color: 'rgba(245, 247, 250, 1)', + showingBar: false, + }, + { + title: 'win 8', + subtitle: 'Average machine.ram', + extraText: '', + value: '13.03B', + color: 'rgba(245, 247, 250, 1)', + showingBar: false, + }, + { + title: 'ios', + subtitle: 'Average machine.ram', + extraText: '', + value: '13.01B', + color: 'rgba(245, 247, 250, 1)', + showingBar: false, + }, + { + title: undefined, + subtitle: undefined, + extraText: undefined, + value: undefined, + color: 'rgba(0, 0, 0, 0)', + showingBar: false, + }, + ]); + + dimensions[0].click(); + + await lens.openPalettePanel('lnsMetric'); + const colorStops = await lens.getPaletteColorStops(); + + expect(colorStops).to.eql([ + { stop: '0', color: 'rgba(0, 104, 55, 1)' }, + { stop: '10000', color: 'rgba(165, 0, 38, 1)' }, + { stop: '20000', color: undefined }, + ]); + }); }); } diff --git a/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/table.ts b/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/table.ts index 09466bd7f1c70..c03773e3276b1 100644 --- a/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/table.ts +++ b/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/table.ts @@ -45,8 +45,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); it('should show the "Edit Visualization in Lens" menu item', async () => { - const button = await testSubjects.exists('visualizeEditInLensButton'); - expect(button).to.eql(true); + expect(await visualize.hasNavigateToLensButton()).to.eql(true); }); it('should convert aggregation with params', async () => { @@ -56,8 +55,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await visEditor.clickGo(); await header.waitUntilLoadingHasFinished(); - const button = await testSubjects.find('visualizeEditInLensButton'); - await button.click(); + await visualize.navigateToLensFromAnotherVisulization(); await lens.waitForVisualization('lnsDataTable'); expect(await lens.getLayerCount()).to.be(1); @@ -77,8 +75,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await visEditor.clickGo(); await header.waitUntilLoadingHasFinished(); - const button = await testSubjects.find('visualizeEditInLensButton'); - await button.click(); + await visualize.navigateToLensFromAnotherVisulization(); await lens.waitForVisualization('lnsDataTable'); expect(await lens.getLayerCount()).to.be(1); @@ -98,8 +95,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await visEditor.clickGo(); await header.waitUntilLoadingHasFinished(); - const button = await testSubjects.find('visualizeEditInLensButton'); - await button.click(); + await visualize.navigateToLensFromAnotherVisulization(); await lens.waitForVisualization('lnsDataTable'); expect(await lens.getLayerCount()).to.be(1); @@ -121,8 +117,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await visEditor.clickGo(); await header.waitUntilLoadingHasFinished(); - const button = await testSubjects.find('visualizeEditInLensButton'); - await button.click(); + await visualize.navigateToLensFromAnotherVisulization(); await lens.waitForVisualization('lnsDataTable'); expect(await lens.getLayerCount()).to.be(1); @@ -145,8 +140,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await visEditor.clickGo(); await header.waitUntilLoadingHasFinished(); - const button = await testSubjects.find('visualizeEditInLensButton'); - await button.click(); + await visualize.navigateToLensFromAnotherVisulization(); await lens.waitForVisualization('lnsDataTable'); expect(await lens.getLayerCount()).to.be(1); @@ -168,8 +162,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await visEditor.clickGo(); await header.waitUntilLoadingHasFinished(); - const button = await testSubjects.find('visualizeEditInLensButton'); - await button.click(); + await visualize.navigateToLensFromAnotherVisulization(); await lens.waitForVisualization('lnsDataTable'); expect(await lens.getLayerCount()).to.be(1); diff --git a/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/xy.ts b/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/xy.ts index 161a3549e856c..fa6b603584daa 100644 --- a/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/xy.ts +++ b/x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/xy.ts @@ -36,8 +36,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { }); it('should show the "Edit Visualization in Lens" menu item', async () => { - const button = await testSubjects.exists('visualizeEditInLensButton'); - expect(button).to.eql(true); + expect(await visualize.hasNavigateToLensButton()).to.eql(true); }); it('should hide the "Edit Visualization in Lens" menu item if dot size aggregation is defined', async () => { @@ -45,8 +44,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await visEditor.selectAggregation('Max', 'metrics'); await visEditor.selectField('memory', 'metrics'); await visEditor.clickGo(isNewChartsLibraryEnabled); - const button = await testSubjects.exists('visualizeEditInLensButton'); - expect(button).to.eql(false); + expect(await visualize.hasNavigateToLensButton()).to.eql(false); }); it('should convert to Lens', async () => { @@ -57,8 +55,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await visEditor.clickGo(isNewChartsLibraryEnabled); const expectedData = await visChart.getLegendEntriesXYCharts('xyVisChart'); - const button = await testSubjects.find('visualizeEditInLensButton'); - await button.click(); + await visualize.navigateToLensFromAnotherVisulization(); await lens.waitForVisualization('xyVisChart'); const data = await lens.getCurrentChartDebugState('xyVisChart'); await retry.try(async () => { diff --git a/x-pack/test/functional/apps/remote_clusters/feature_controls/remote_clusters_security.ts b/x-pack/test/functional/apps/remote_clusters/feature_controls/remote_clusters_security.ts index 03e0c69a276f4..4e5f66e0c5bb6 100644 --- a/x-pack/test/functional/apps/remote_clusters/feature_controls/remote_clusters_security.ts +++ b/x-pack/test/functional/apps/remote_clusters/feature_controls/remote_clusters_security.ts @@ -15,8 +15,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { const appsMenu = getService('appsMenu'); const managementMenu = getService('managementMenu'); - // Failing: See https://github.com/elastic/kibana/issues/138129 - describe.skip('security', () => { + describe('security', () => { before(async () => { await kibanaServer.savedObjects.cleanStandardList(); await PageObjects.common.navigateToApp('home'); diff --git a/x-pack/test/observability_functional/apps/observability/pages/alert_details_page.ts b/x-pack/test/observability_functional/apps/observability/pages/alert_details_page.ts index 472af7376d02e..7f2b386c7c736 100644 --- a/x-pack/test/observability_functional/apps/observability/pages/alert_details_page.ts +++ b/x-pack/test/observability_functional/apps/observability/pages/alert_details_page.ts @@ -5,7 +5,6 @@ * 2.0. */ -import uuid from 'uuid'; import { FtrProviderContext } from '../../../ftr_provider_context'; export default ({ getService }: FtrProviderContext) => { @@ -28,10 +27,12 @@ export default ({ getService }: FtrProviderContext) => { await esArchiver.unload('x-pack/test/functional/es_archives/infra/metrics_and_logs'); }); - it('should show 404 page when the feature flag is disabled', async () => { - await observability.alerts.common.navigateToAlertDetails(uuid.v4()); + it('should show 404 page when the feature flag is disabled but the alert exists', async () => { + await observability.alerts.common.navigateToAlertDetails( + '4c87bd11-ff31-4a05-8a04-833e2da94858' + ); await retry.waitFor( - 'Alerts page to be visible', + 'The 404 - Not found page to be visible', async () => await testSubjects.exists('pageNotFound') ); }); diff --git a/x-pack/test/security_solution_endpoint/apps/endpoint/artifact_entries_list.ts b/x-pack/test/security_solution_endpoint/apps/endpoint/artifact_entries_list.ts index a24add1c7b897..b52db3c2c266e 100644 --- a/x-pack/test/security_solution_endpoint/apps/endpoint/artifact_entries_list.ts +++ b/x-pack/test/security_solution_endpoint/apps/endpoint/artifact_entries_list.ts @@ -22,7 +22,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { const esClient = getService('es'); const unzipPromisify = promisify(unzip); - describe.skip('For each artifact list under management', function () { + describe('For each artifact list under management', function () { let indexedData: IndexedHostsAndAlertsResponse; const checkFleetArtifacts = async ( diff --git a/x-pack/test/security_solution_endpoint/apps/endpoint/endpoint_permissions.ts b/x-pack/test/security_solution_endpoint/apps/endpoint/endpoint_permissions.ts index 81491e07f024c..accae3bee5c4d 100644 --- a/x-pack/test/security_solution_endpoint/apps/endpoint/endpoint_permissions.ts +++ b/x-pack/test/security_solution_endpoint/apps/endpoint/endpoint_permissions.ts @@ -20,7 +20,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { const endpointTestResources = getService('endpointTestResources'); const policyTestResources = getService('policyTestResources'); - describe.skip('Endpoint permissions:', () => { + describe('Endpoint permissions:', () => { let indexedData: IndexedHostsAndAlertsResponse; before(async () => { diff --git a/x-pack/test/security_solution_endpoint/apps/endpoint/responder.ts b/x-pack/test/security_solution_endpoint/apps/endpoint/responder.ts index 64296e2dbcdda..ddcbbc6251fdf 100644 --- a/x-pack/test/security_solution_endpoint/apps/endpoint/responder.ts +++ b/x-pack/test/security_solution_endpoint/apps/endpoint/responder.ts @@ -76,7 +76,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { ); }; - describe.skip('Response Actions Responder', function () { + describe('Response Actions Responder', function () { let indexedData: IndexedHostsAndAlertsResponse; let endpointAgentId: string; diff --git a/x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js b/x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js index 00dd89acbc9ef..be05ce3e5e35a 100644 --- a/x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js +++ b/x-pack/test/stack_functional_integration/configs/config.stack_functional_integration_base.js @@ -12,6 +12,9 @@ import { REPO_ROOT } from '@kbn/utils'; import chalk from 'chalk'; import { esTestConfig, kbnTestConfig } from '@kbn/test'; import { TriggersActionsPageProvider } from '../../functional_with_es_ssl/page_objects/triggers_actions_ui_page'; +import { ReportingAPIProvider } from '../../upgrade/services/reporting_upgrade_services'; +import { MapsHelper } from '../../upgrade/services/maps_upgrade_services'; +import { RulesHelper } from '../../upgrade/services/rules_upgrade_services'; const log = new ToolingLog({ level: 'info', @@ -24,6 +27,7 @@ const testsFolder = '../apps'; const prepend = (testFile) => require.resolve(`${testsFolder}/${testFile}`); export default async ({ readConfigFile }) => { + const apiConfig = await readConfigFile(require.resolve('../../api_integration/config')); const xpackFunctionalConfig = await readConfigFile( require.resolve('../../functional/config.base.js') ); @@ -65,6 +69,13 @@ export default async ({ readConfigFile }) => { screenshots: { directory: resolve(INTEGRATION_TEST_ROOT, 'test/screenshots'), }, + services: { + ...apiConfig.get('services'), + ...xpackFunctionalConfig.get('services'), + reportingAPI: ReportingAPIProvider, + mapsHelper: MapsHelper, + rulesHelper: RulesHelper, + }, }; return settings; };