diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 120c6fe53d6b6..825a2014b7471 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -665,16 +665,6 @@ src/platform/packages/shared/react/kibana_context/styled @elastic/appex-sharedux src/platform/packages/shared/react/kibana_context/theme @elastic/appex-sharedux src/platform/packages/shared/react/kibana_mount @elastic/appex-sharedux src/platform/packages/shared/react/use_observable @elastic/appex-sharedux -src/platform/packages/shared/response-ops/alerts-apis @elastic/response-ops -src/platform/packages/shared/response-ops/alerts-delete @elastic/response-ops -src/platform/packages/shared/response-ops/alerts-fields-browser @elastic/response-ops -src/platform/packages/shared/response-ops/alerts-filters-form @elastic/response-ops -src/platform/packages/shared/response-ops/alerts-table @elastic/response-ops -src/platform/packages/shared/response-ops/form-generator @elastic/response-ops -src/platform/packages/shared/response-ops/recurring-schedule-form @elastic/response-ops -src/platform/packages/shared/response-ops/rule_form @elastic/response-ops -src/platform/packages/shared/response-ops/rule_params @elastic/response-ops -src/platform/packages/shared/response-ops/rules-apis @elastic/response-ops src/platform/packages/shared/serverless/settings/common @elastic/appex-sharedux @elastic/kibana-management src/platform/packages/shared/serverless/settings/observability_project @elastic/appex-sharedux @elastic/kibana-management @elastic/obs-presentation-team src/platform/packages/shared/serverless/settings/search_project @elastic/search-kibana @elastic/kibana-management @@ -998,7 +988,17 @@ x-pack/platform/packages/shared/ml/random_sampler_utils @elastic/ml-ui x-pack/platform/packages/shared/ml/response_stream @elastic/ml-ui x-pack/platform/packages/shared/ml/runtime_field_utils @elastic/ml-ui x-pack/platform/packages/shared/ml/trained_models_utils @elastic/ml-ui +x-pack/platform/packages/shared/response-ops/alerts-apis @elastic/response-ops +x-pack/platform/packages/shared/response-ops/alerts-delete @elastic/response-ops +x-pack/platform/packages/shared/response-ops/alerts-fields-browser @elastic/response-ops +x-pack/platform/packages/shared/response-ops/alerts-filters-form @elastic/response-ops +x-pack/platform/packages/shared/response-ops/alerts-table @elastic/response-ops +x-pack/platform/packages/shared/response-ops/form-generator @elastic/response-ops +x-pack/platform/packages/shared/response-ops/recurring-schedule-form @elastic/response-ops x-pack/platform/packages/shared/response-ops/retry-service @elastic/response-ops +x-pack/platform/packages/shared/response-ops/rule_form @elastic/response-ops +x-pack/platform/packages/shared/response-ops/rule_params @elastic/response-ops +x-pack/platform/packages/shared/response-ops/rules-apis @elastic/response-ops x-pack/platform/packages/shared/security/api_key_management @elastic/kibana-security x-pack/platform/packages/shared/security/form_components @elastic/kibana-security x-pack/platform/packages/shared/security/plugin_types_common @elastic/kibana-security diff --git a/package.json b/package.json index aea2110fb8c49..98ff67dc8a22f 100644 --- a/package.json +++ b/package.json @@ -886,17 +886,17 @@ "@kbn/resizable-layout": "link:src/platform/packages/shared/kbn-resizable-layout", "@kbn/resizable-layout-examples-plugin": "link:examples/resizable_layout_examples", "@kbn/resolver-test-plugin": "link:x-pack/solutions/security/test/plugin_functional/plugins/resolver_test", - "@kbn/response-ops-alerts-apis": "link:src/platform/packages/shared/response-ops/alerts-apis", - "@kbn/response-ops-alerts-delete": "link:src/platform/packages/shared/response-ops/alerts-delete", - "@kbn/response-ops-alerts-fields-browser": "link:src/platform/packages/shared/response-ops/alerts-fields-browser", - "@kbn/response-ops-alerts-filters-form": "link:src/platform/packages/shared/response-ops/alerts-filters-form", - "@kbn/response-ops-alerts-table": "link:src/platform/packages/shared/response-ops/alerts-table", - "@kbn/response-ops-form-generator": "link:src/platform/packages/shared/response-ops/form-generator", - "@kbn/response-ops-recurring-schedule-form": "link:src/platform/packages/shared/response-ops/recurring-schedule-form", + "@kbn/response-ops-alerts-apis": "link:x-pack/platform/packages/shared/response-ops/alerts-apis", + "@kbn/response-ops-alerts-delete": "link:x-pack/platform/packages/shared/response-ops/alerts-delete", + "@kbn/response-ops-alerts-fields-browser": "link:x-pack/platform/packages/shared/response-ops/alerts-fields-browser", + "@kbn/response-ops-alerts-filters-form": "link:x-pack/platform/packages/shared/response-ops/alerts-filters-form", + "@kbn/response-ops-alerts-table": "link:x-pack/platform/packages/shared/response-ops/alerts-table", + "@kbn/response-ops-form-generator": "link:x-pack/platform/packages/shared/response-ops/form-generator", + "@kbn/response-ops-recurring-schedule-form": "link:x-pack/platform/packages/shared/response-ops/recurring-schedule-form", "@kbn/response-ops-retry-service": "link:x-pack/platform/packages/shared/response-ops/retry-service", - "@kbn/response-ops-rule-form": "link:src/platform/packages/shared/response-ops/rule_form", - "@kbn/response-ops-rule-params": "link:src/platform/packages/shared/response-ops/rule_params", - "@kbn/response-ops-rules-apis": "link:src/platform/packages/shared/response-ops/rules-apis", + "@kbn/response-ops-rule-form": "link:x-pack/platform/packages/shared/response-ops/rule_form", + "@kbn/response-ops-rule-params": "link:x-pack/platform/packages/shared/response-ops/rule_params", + "@kbn/response-ops-rules-apis": "link:x-pack/platform/packages/shared/response-ops/rules-apis", "@kbn/response-stream-plugin": "link:examples/response_stream", "@kbn/restorable-state": "link:src/platform/packages/shared/kbn-restorable-state", "@kbn/rison": "link:src/platform/packages/shared/kbn-rison", diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index 495a0f2c69790..bb0e7fd20ca2e 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -62,7 +62,7 @@ export const storybookAliases = { presentation: 'src/platform/plugins/shared/presentation_util/storybook', profiling: 'x-pack/solutions/observability/plugins/profiling/.storybook', random_sampling: 'x-pack/platform/packages/private/kbn-random-sampling/.storybook', - ['response-ops']: 'src/platform/packages/shared/response-ops/.storybook', + ['response-ops']: 'x-pack/platform/packages/shared/response-ops/.storybook', security: 'x-pack/platform/packages/shared/security/form_components/.storybook', security_solution: 'x-pack/solutions/security/plugins/security_solution/.storybook', security_solution_packages: 'x-pack/solutions/security/packages/storybook/config', diff --git a/src/platform/packages/shared/response-ops/.storybook/main.ts b/src/platform/packages/shared/response-ops/.storybook/main.ts deleted file mode 100644 index e3b5b1c6c596a..0000000000000 --- a/src/platform/packages/shared/response-ops/.storybook/main.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { defaultConfig } from '@kbn/storybook'; - -module.exports = defaultConfig; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/constants.ts b/src/platform/packages/shared/response-ops/alerts-apis/constants.ts deleted file mode 100644 index 02e1d52cb58f6..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-apis/constants.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export const BASE_ALERTING_API_PATH = '/api/alerting'; -export const INTERNAL_BASE_ALERTING_API_PATH = '/internal/alerting'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/jest.config.js b/src/platform/packages/shared/response-ops/alerts-apis/jest.config.js deleted file mode 100644 index 0a5dbf1fd7a59..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-apis/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/alerts-apis'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/query_keys.ts b/src/platform/packages/shared/response-ops/alerts-apis/query_keys.ts deleted file mode 100644 index fdfb96db8ea00..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-apis/query_keys.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export const queryKeys = { - root: 'alerts', - getMutedAlerts: (ruleIds: string[]) => - [queryKeys.root, 'mutedInstanceIdsForRuleIds', ruleIds] as const, -}; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts b/src/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts deleted file mode 100644 index e8d6b49e9d94e..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -/* eslint-disable import/no-extraneous-dependencies */ -import '@testing-library/jest-dom'; -import 'jest-styled-components'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/jest.config.js b/src/platform/packages/shared/response-ops/alerts-delete/jest.config.js deleted file mode 100644 index 32f48b729d95a..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-delete/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/alerts-delete'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/alerts-delete/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/setup_tests.ts b/src/platform/packages/shared/response-ops/alerts-delete/setup_tests.ts deleted file mode 100644 index b3862573ca0f9..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-delete/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -/* eslint-disable import/no-extraneous-dependencies */ -import '@testing-library/jest-dom'; -import '@emotion/jest'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.styles.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.styles.ts deleted file mode 100644 index 073e9fe6d13fd..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.styles.ts +++ /dev/null @@ -1,18 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { css } from '@emotion/react'; -import type { UseEuiTheme } from '@elastic/eui'; - -export const styles = { - badgesGroup: ({ euiTheme }: { euiTheme: UseEuiTheme['euiTheme'] }) => css` - margin-top: ${euiTheme.size.xs}; - min-height: 24px; - `, -}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/index.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/index.ts deleted file mode 100644 index e3a795a174f2a..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { CategoriesBadges } from './categories_badges'; -export type { CategoriesBadgesProps } from './categories_badges'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.styles.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.styles.ts deleted file mode 100644 index 693a40943a1ae..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.styles.ts +++ /dev/null @@ -1,22 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { css } from '@emotion/react'; - -export const styles = { - countBadge: css` - margin-left: 5px; - `, - categoryName: ({ bold }: { bold: boolean }) => css` - font-weight: ${bold ? 'bold' : 'normal'}; - `, - selectableContainer: css` - width: 300px; - `, -}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/index.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/index.ts deleted file mode 100644 index 62fa588b1dc1d..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { CategoriesSelector } from './categories_selector'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.styles.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.styles.ts deleted file mode 100644 index 1cb5da4d0dac5..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.styles.ts +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { css } from '@emotion/react'; - -export const styles = { - buttonContainer: css` - display: inline-block; - position: relative; - `, -}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/index.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/index.ts deleted file mode 100644 index 1373943bd99b5..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { getFieldItemsData, getFieldColumns } from './field_items'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/index.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/index.ts deleted file mode 100644 index 7add3b194f33a..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { FieldName } from './field_name'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.styles.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.styles.ts deleted file mode 100644 index c04635d5efb49..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.styles.ts +++ /dev/null @@ -1,16 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { css } from '@emotion/react'; - -export const styles = { - count: css` - font-weight: bold; - `, -}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/index.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/index.ts deleted file mode 100644 index 52faf941ddf78..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { FieldTable } from './field_table'; -export type { FieldTableProps } from './field_table'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/index.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/index.ts deleted file mode 100644 index aac6c19da1575..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { Search } from './search'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/index.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/index.ts deleted file mode 100644 index d292ac79283fb..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/index.ts +++ /dev/null @@ -1,13 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { FieldBrowser } from './components/field_browser/field_browser'; -export type { FieldBrowserProps, FieldBrowserOptions } from './types'; - -export { FieldBrowser }; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js b/src/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js deleted file mode 100644 index 2bfa9bcfe0c51..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/alerts-fields-browser'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.ts b/src/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.ts deleted file mode 100644 index 5ebc6d3dac1ca..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -// eslint-disable-next-line import/no-extraneous-dependencies -import '@testing-library/jest-dom'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/jest.config.js b/src/platform/packages/shared/response-ops/alerts-filters-form/jest.config.js deleted file mode 100644 index 33affa5c3bcd1..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/alerts-filters-form'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/alerts-filters-form/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/setup_tests.ts b/src/platform/packages/shared/response-ops/alerts-filters-form/setup_tests.ts deleted file mode 100644 index 5ebc6d3dac1ca..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -// eslint-disable-next-line import/no-extraneous-dependencies -import '@testing-library/jest-dom'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/empty_state.stories.tsx b/src/platform/packages/shared/response-ops/alerts-table/components/empty_state.stories.tsx deleted file mode 100644 index 950f61f449185..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-table/components/empty_state.stories.tsx +++ /dev/null @@ -1,24 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { EmptyState as Component } from './empty_state'; - -export default { - component: Component, - title: 'app/AlertTable', - argTypes: { - height: { type: 'select', options: ['short', 'tall'] }, - }, -}; - -export const EmptyState = { - args: { - height: 'tall', - }, -}; diff --git a/src/platform/packages/shared/response-ops/alerts-table/index.ts b/src/platform/packages/shared/response-ops/alerts-table/index.ts deleted file mode 100644 index 798caff6903d7..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-table/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { AlertsTable } from './components/alerts_table'; -export { AlertsTable } from './components/alerts_table'; -// Lazy load helper -// eslint-disable-next-line import/no-default-export -export default AlertsTable; diff --git a/src/platform/packages/shared/response-ops/alerts-table/jest.config.js b/src/platform/packages/shared/response-ops/alerts-table/jest.config.js deleted file mode 100644 index d019e2c06116a..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-table/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/alerts-table'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/alerts-table/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/alerts-table/query_client.ts b/src/platform/packages/shared/response-ops/alerts-table/query_client.ts deleted file mode 100644 index ed2f0fa4cd9fa..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-table/query_client.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { QueryClient } from '@kbn/react-query'; - -export const alertsTableQueryClient = new QueryClient(); diff --git a/src/platform/packages/shared/response-ops/alerts-table/setup_tests.ts b/src/platform/packages/shared/response-ops/alerts-table/setup_tests.ts deleted file mode 100644 index b3862573ca0f9..0000000000000 --- a/src/platform/packages/shared/response-ops/alerts-table/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -/* eslint-disable import/no-extraneous-dependencies */ -import '@testing-library/jest-dom'; -import '@emotion/jest'; diff --git a/src/platform/packages/shared/response-ops/form-generator/index.ts b/src/platform/packages/shared/response-ops/form-generator/index.ts deleted file mode 100644 index 15b1c76442b46..0000000000000 --- a/src/platform/packages/shared/response-ops/form-generator/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { generateFormFields } from './src/form'; diff --git a/src/platform/packages/shared/response-ops/form-generator/jest.config.js b/src/platform/packages/shared/response-ops/form-generator/jest.config.js deleted file mode 100644 index 12c3d935dfc26..0000000000000 --- a/src/platform/packages/shared/response-ops/form-generator/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/form-generator'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/form-generator/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/form-generator/setup_tests.ts b/src/platform/packages/shared/response-ops/form-generator/setup_tests.ts deleted file mode 100644 index b3862573ca0f9..0000000000000 --- a/src/platform/packages/shared/response-ops/form-generator/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -/* eslint-disable import/no-extraneous-dependencies */ -import '@testing-library/jest-dom'; -import '@emotion/jest'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/index.ts b/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/index.ts deleted file mode 100644 index a798f4d9e9b4f..0000000000000 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './discriminated_union_widget'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/index.ts b/src/platform/packages/shared/response-ops/form-generator/src/widgets/index.ts deleted file mode 100644 index d73556b0b77bb..0000000000000 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { getWidgetComponent } from './registry'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/jest.config.js b/src/platform/packages/shared/response-ops/recurring-schedule-form/jest.config.js deleted file mode 100644 index 8b566d2f853d5..0000000000000 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/recurring-schedule-form'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/recurring-schedule-form/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/setup_tests.ts b/src/platform/packages/shared/response-ops/recurring-schedule-form/setup_tests.ts deleted file mode 100644 index 5ebc6d3dac1ca..0000000000000 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -// eslint-disable-next-line import/no-extraneous-dependencies -import '@testing-library/jest-dom'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.test.ts b/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.test.ts deleted file mode 100644 index f4aaa82c562b4..0000000000000 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.test.ts +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import moment from 'moment'; -import { monthDayDate } from './month_day_date'; - -describe('monthDayDate', () => { - test('should parse the month and date', () => { - expect(monthDayDate(moment('2023-03-23'))).toEqual('March 23'); - }); -}); diff --git a/src/platform/packages/shared/response-ops/rule_form/flyout/index.ts b/src/platform/packages/shared/response-ops/rule_form/flyout/index.ts deleted file mode 100644 index 75bd503c5be67..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/flyout/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './rule_form_flyout'; -export { RuleForm } from '../src/rule_form'; diff --git a/src/platform/packages/shared/response-ops/rule_form/jest.config.js b/src/platform/packages/shared/response-ops/rule_form/jest.config.js deleted file mode 100644 index 91e0da8a4f871..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/rule_form'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/rule_form/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/rule_form/lib/index.ts b/src/platform/packages/shared/response-ops/rule_form/lib/index.ts deleted file mode 100644 index f6e5c3561c8ec..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/lib/index.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './is_valid_rule_form_plugins'; -export * from './rule_flyout_ui_context'; -export * from './rule_form_error_prompt_wrapper'; diff --git a/src/platform/packages/shared/response-ops/rule_form/setup_tests.ts b/src/platform/packages/shared/response-ops/rule_form/setup_tests.ts deleted file mode 100644 index 5ebc6d3dac1ca..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -// eslint-disable-next-line import/no-extraneous-dependencies -import '@testing-library/jest-dom'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/index.ts deleted file mode 100644 index 63f6cc248f3db..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/index.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export type * from './types'; -export * from './create_rule'; -export * from './transform_create_rule_body'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/index.ts deleted file mode 100644 index db1387b299d4e..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './load_rule_template'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/index.ts deleted file mode 100644 index 6b2e68fa1357b..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export type * from './types'; -export * from './fetch_ui_config'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/types.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/types.ts deleted file mode 100644 index 05bbb2f83ad2a..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/types.ts +++ /dev/null @@ -1,16 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export interface UiConfig { - isUsingSecurity: boolean; - minimumScheduleInterval?: { - value: string; - enforce: boolean; - }; -} diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/apis/index.ts deleted file mode 100644 index d7fa2a2e7555f..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './create_rule'; -export * from './fetch_ui_config'; -export * from './resolve_rule'; -export * from './update_rule'; -export * from './create_rule_from_template'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/index.ts deleted file mode 100644 index 3ea1b8a0d46b8..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './resolve_rule'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/index.ts deleted file mode 100644 index fab0ac651426e..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/index.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export type * from './types'; -export * from './transform_update_rule_body'; -export * from './update_rule'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/index.ts deleted file mode 100644 index 88860a2bc9170..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/index.ts +++ /dev/null @@ -1,16 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './use_create_rule'; -export * from './use_load_connector_types'; -export * from './use_load_connectors'; -export * from './use_load_ui_config'; -export * from './use_resolve_rule'; -export * from './use_update_rule'; -export * from './use_load_rule_type_alert_fields'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/index.ts deleted file mode 100644 index 9b6ee5bbc44a7..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export type * from './types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/transformations/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/transformations/index.ts deleted file mode 100644 index 2f0fd7d84539b..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/transformations/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './transform_rule'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/types/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/common/types/index.ts deleted file mode 100644 index e47f235dba53d..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/types/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export type * from '@kbn/alerts-ui-shared/src/common/types/rule_types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/index.ts deleted file mode 100644 index a00e1404755c9..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './confirm_create_rule'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/index.ts deleted file mode 100644 index a313092bed805..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './confirm_rule_close'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/components/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/components/index.ts deleted file mode 100644 index f1f737cf52e97..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/components/index.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './request_code_block'; -export * from './confirm_create_rule'; -export * from './confirm_rule_close'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/index.ts deleted file mode 100644 index 18fa50fae60cb..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './request_code_block'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/constants/routes.ts b/src/platform/packages/shared/response-ops/rule_form/src/constants/routes.ts deleted file mode 100644 index a447f83c13ef2..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/constants/routes.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export const BASE_ALERTING_API_PATH = '/api/alerting'; -export const INTERNAL_BASE_ALERTING_API_PATH = '/internal/alerting'; -export const BASE_TRIGGERS_ACTIONS_UI_API_PATH = '/internal/triggers_actions_ui'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/constants/rule_flapping.ts b/src/platform/packages/shared/response-ops/rule_form/src/constants/rule_flapping.ts deleted file mode 100644 index 542bb055fd431..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/constants/rule_flapping.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -// Feature flag for frontend rule specific flapping in rule flyout -export const IS_RULE_SPECIFIC_FLAPPING_ENABLED = true; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/hooks/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/hooks/index.ts deleted file mode 100644 index d10d3e3328883..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/hooks/index.ts +++ /dev/null @@ -1,13 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './use_rule_form_dispatch'; -export * from './use_rule_form_state'; -export * from './use_rule_form_steps'; -export * from './use_rule_form_screen_context'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_dispatch.ts b/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_dispatch.ts deleted file mode 100644 index 612888e79d8e0..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_dispatch.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { useContext } from 'react'; -import { RuleFormReducerContext } from '../rule_form_state/rule_form_state_context'; - -export const useRuleFormDispatch = () => { - return useContext(RuleFormReducerContext); -}; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_screen_context.ts b/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_screen_context.ts deleted file mode 100644 index 806d65c1f8241..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_screen_context.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { useContext } from 'react'; -import { RuleFormScreenContext } from '../rule_form_screen_context'; - -export const useRuleFormScreenContext = () => { - return useContext(RuleFormScreenContext); -}; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_state.ts b/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_state.ts deleted file mode 100644 index 594b540d34b01..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_state.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { useContext } from 'react'; -import { RuleFormStateContext } from '../rule_form_state/rule_form_state_context'; - -export const useRuleFormState = () => { - return useContext(RuleFormStateContext); -}; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/optional_field_label/index.tsx b/src/platform/packages/shared/response-ops/rule_form/src/optional_field_label/index.tsx deleted file mode 100644 index 31f3777b2439a..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/optional_field_label/index.tsx +++ /dev/null @@ -1,19 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import { EuiText } from '@elastic/eui'; -import React from 'react'; - -import * as i18n from '../translations'; - -export const OptionalFieldLabel = ( - - {i18n.OPTIONAL_LABEL} - -); diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/index.ts deleted file mode 100644 index 6269ff1b48fbd..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/index.ts +++ /dev/null @@ -1,13 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './rule_actions'; -export * from './rule_actions_notify_when'; -export * from './rule_actions_alerts_filter'; -export * from './rule_actions_alerts_filter_timeframe'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/index.ts deleted file mode 100644 index 78f9c3feb6251..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './rule_definition'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/rule_details/index.ts deleted file mode 100644 index 4fadf8eb4b6e6..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './rule_details'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/index.ts deleted file mode 100644 index bd430e32d43c3..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './rule_flyout'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/index.ts deleted file mode 100644 index 1804a351dcd40..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './rule_form_screen_context'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/index.ts deleted file mode 100644 index 9f966ca9b0e0b..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/index.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './rule_form_state_context'; -export * from './rule_form_state_provider'; -export * from './rule_form_state_reducer'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/rule_page/index.ts deleted file mode 100644 index b7069b619a76f..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/index.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './rule_page'; -export * from './rule_page_name_input'; -export * from './rule_page_footer'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/index.tsx b/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/index.tsx deleted file mode 100644 index fed01305089db..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/index.tsx +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { RuleTypeModalComponent as RuleTypeModal } from './components'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/types.ts b/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/types.ts deleted file mode 100644 index 0faa3ecab6caa..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/types.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export type { RuleTypeWithDescription, RuleTypeIndexWithDescriptions } from '../common/types'; -export interface RuleTypeCountsByProducer { - total: number; - [x: string]: number; -} diff --git a/src/platform/packages/shared/response-ops/rule_form/src/validation/index.ts b/src/platform/packages/shared/response-ops/rule_form/src/validation/index.ts deleted file mode 100644 index 7d43b562b7e2b..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_form/src/validation/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './validate_form'; -export * from './validate_params_for_warnings'; diff --git a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/index.ts b/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/index.ts deleted file mode 100644 index 2e4827a3001b7..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/index.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { mlAnomalyDetectionAlertParamsSchema } from './latest'; -export { mlAnomalyDetectionAlertParamsSchema as mlAnomalyDetectionAlertParamsSchemaV1 } from './v1'; -export { validateAnomalyDetectionCustomFilter } from './utils'; diff --git a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/latest.ts b/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/index.ts b/src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/index.ts deleted file mode 100644 index 7ea30e9ae8385..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { anomalyDetectionJobsHealthRuleParamsSchema } from './latest'; -export { anomalyDetectionJobsHealthRuleParamsSchema as anomalyDetectionJobsHealthRuleParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/latest.ts b/src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts b/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts deleted file mode 100644 index dc6ebfe4ef99e..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { anomalyParamsSchema } from './latest'; -export { anomalyParamsSchema as anomalyParamsSchemaV1 } from './v1'; - -export type { AnomalyRuleParams } from './latest'; -export type { AnomalyRuleParams as AnomalyRuleParamsV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/latest.ts b/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/index.ts b/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/index.ts deleted file mode 100644 index 4a3980868ebba..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { ccrReadExceptionsParamsSchema, type CcrReadExceptionsParams } from './latest'; -export { ccrReadExceptionsParamsSchema as ccrReadExceptionsParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/latest.ts b/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/v1.ts b/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/v1.ts deleted file mode 100644 index 1bc9aa20568cc..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/v1.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const ccrReadExceptionsParamsSchema = stackMonitoringCommonSchema.extends({}); - -export type CcrReadExceptionsParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/cluster_health/index.ts b/src/platform/packages/shared/response-ops/rule_params/cluster_health/index.ts deleted file mode 100644 index 35a206d94e4ab..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/cluster_health/index.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -export { clusterHealthParamsSchema, type ClusterHealthParams } from './latest'; -export { clusterHealthParamsSchema as clusterHealthParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/cluster_health/latest.ts b/src/platform/packages/shared/response-ops/rule_params/cluster_health/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/cluster_health/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/cluster_health/v1.ts b/src/platform/packages/shared/response-ops/rule_params/cluster_health/v1.ts deleted file mode 100644 index a0319ae1d4edb..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/cluster_health/v1.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const clusterHealthParamsSchema = stackMonitoringCommonSchema.extends({}); - -export type ClusterHealthParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/thread_pool_rejections_common_schema.ts b/src/platform/packages/shared/response-ops/rule_params/common/thread_pool_rejections_common_schema.ts deleted file mode 100644 index 5deb07ecb37fa..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/common/thread_pool_rejections_common_schema.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { baseSchema } from './stack_monitoring_common_schema'; - -export const threadPoolRejectionsCommonSchema = baseSchema.extends({}); - -export type ThreadPoolRejectionsCommonParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/cpu_usage/index.ts b/src/platform/packages/shared/response-ops/rule_params/cpu_usage/index.ts deleted file mode 100644 index a53052904352d..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/cpu_usage/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { cpuUsageParamsSchema, type CpuUsageParams } from './latest'; -export { cpuUsageParamsSchema as cpuUsageParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/cpu_usage/latest.ts b/src/platform/packages/shared/response-ops/rule_params/cpu_usage/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/cpu_usage/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/cpu_usage/v1.ts b/src/platform/packages/shared/response-ops/rule_params/cpu_usage/v1.ts deleted file mode 100644 index 0a53545bb9f78..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/cpu_usage/v1.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const cpuUsageParamsSchema = stackMonitoringCommonSchema.extends({}); - -export type CpuUsageParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/custom_threshold/index.ts b/src/platform/packages/shared/response-ops/rule_params/custom_threshold/index.ts deleted file mode 100644 index d64b6891138f4..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/custom_threshold/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { customThresholdParamsSchema, type CustomThresholdParams } from './latest'; -export { customThresholdParamsSchema as customThresholdParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/custom_threshold/latest.ts b/src/platform/packages/shared/response-ops/rule_params/custom_threshold/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/custom_threshold/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/degraded_docs/index.ts b/src/platform/packages/shared/response-ops/rule_params/degraded_docs/index.ts deleted file mode 100644 index 8ee2244abfc7d..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/degraded_docs/index.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { degradedDocsParamsSchema } from './latest'; - -export type { DegradedDocsRuleParams } from './latest'; diff --git a/src/platform/packages/shared/response-ops/rule_params/degraded_docs/latest.ts b/src/platform/packages/shared/response-ops/rule_params/degraded_docs/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/degraded_docs/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/disk_usage/index.ts b/src/platform/packages/shared/response-ops/rule_params/disk_usage/index.ts deleted file mode 100644 index 4d84b379618d1..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/disk_usage/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { diskUsageParamsSchema, type DiskUsageParams } from './latest'; -export { diskUsageParamsSchema as diskUsageParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/disk_usage/latest.ts b/src/platform/packages/shared/response-ops/rule_params/disk_usage/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/disk_usage/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/disk_usage/v1.ts b/src/platform/packages/shared/response-ops/rule_params/disk_usage/v1.ts deleted file mode 100644 index 397d8124097d5..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/disk_usage/v1.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const diskUsageParamsSchema = stackMonitoringCommonSchema.extends({}); - -export type DiskUsageParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/error_count/index.ts b/src/platform/packages/shared/response-ops/rule_params/error_count/index.ts deleted file mode 100644 index e14153eb3083f..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/error_count/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { errorCountParamsSchema } from './latest'; -export { errorCountParamsSchema as errorCountParamsSchemaV1 } from './v1'; - -export type { ErrorCountRuleParams } from './latest'; -export type { ErrorCountRuleParams as ErrorCountRuleParamsV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/error_count/latest.ts b/src/platform/packages/shared/response-ops/rule_params/error_count/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/error_count/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/index.ts b/src/platform/packages/shared/response-ops/rule_params/es_query/index.ts deleted file mode 100644 index 12da197ccc54f..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/es_query/index.ts +++ /dev/null @@ -1,13 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -export { EsQueryRuleParamsSchema } from './latest'; -export { EsQueryRuleParamsSchema as EsQueryRuleParamsSchemaV1 } from './v1'; - -export type { EsQueryRuleParams } from './latest'; -export type { EsQueryRuleParams as EsQueryRuleParamsV1 } from './latest'; diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/latest.ts b/src/platform/packages/shared/response-ops/rule_params/es_query/latest.ts deleted file mode 100644 index 7e4d06d0f8706..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/es_query/latest.ts +++ /dev/null @@ -1,9 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/index.ts b/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/index.ts deleted file mode 100644 index 4c634861aab51..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { esVersionMismatchParamsSchema, type EsVersionMismatchParams } from './latest'; -export { esVersionMismatchParamsSchema as esVersionMismatchParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/latest.ts b/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/v1.ts b/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/v1.ts deleted file mode 100644 index 78bd51aec5724..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/es_version_mismatch/v1.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const esVersionMismatchParamsSchema = stackMonitoringCommonSchema.extends({}); - -export type EsVersionMismatchParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/geo_containment/latest.ts b/src/platform/packages/shared/response-ops/rule_params/geo_containment/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/geo_containment/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/index_threshold/latest.ts b/src/platform/packages/shared/response-ops/rule_params/index_threshold/latest.ts deleted file mode 100644 index 7e4d06d0f8706..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/index_threshold/latest.ts +++ /dev/null @@ -1,9 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/jest.config.js b/src/platform/packages/shared/response-ops/rule_params/jest.config.js deleted file mode 100644 index 6df21724dbd84..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/jest.config.js +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test/jest_node', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/rule_params'], -}; diff --git a/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/index.ts b/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/index.ts deleted file mode 100644 index 5bac7bbb483c4..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { kibanaVersionMismatchParamsSchema, type KibanaVersionMismatchParams } from './latest'; -export { kibanaVersionMismatchParamsSchema as kibanaVersionMismatchParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/latest.ts b/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/v1.ts b/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/v1.ts deleted file mode 100644 index c7c2af1c61372..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/v1.ts +++ /dev/null @@ -1,15 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const kibanaVersionMismatchParamsSchema = stackMonitoringCommonSchema.extends({}); - -export type KibanaVersionMismatchParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/large_shard_size/index.ts b/src/platform/packages/shared/response-ops/rule_params/large_shard_size/index.ts deleted file mode 100644 index 63fca509e4db1..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/large_shard_size/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { largeShardSizeParamsSchema, type LargeShardSizeParams } from './latest'; -export { largeShardSizeParamsSchema as largeShardSizeParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/large_shard_size/latest.ts b/src/platform/packages/shared/response-ops/rule_params/large_shard_size/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/large_shard_size/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/latest.ts b/src/platform/packages/shared/response-ops/rule_params/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/license_expiration/index.ts b/src/platform/packages/shared/response-ops/rule_params/license_expiration/index.ts deleted file mode 100644 index 9bd9f7484cb81..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/license_expiration/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { licenseExpirationParamsSchema, type LicenseExpirationParams } from './latest'; -export { licenseExpirationParamsSchema as licenseExpirationParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/license_expiration/latest.ts b/src/platform/packages/shared/response-ops/rule_params/license_expiration/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/license_expiration/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/license_expiration/v1.ts b/src/platform/packages/shared/response-ops/rule_params/license_expiration/v1.ts deleted file mode 100644 index 45a616c2e9e0d..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/license_expiration/v1.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const licenseExpirationParamsSchema = stackMonitoringCommonSchema.extends({}); -export type LicenseExpirationParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/log_threshold/index.ts b/src/platform/packages/shared/response-ops/rule_params/log_threshold/index.ts deleted file mode 100644 index c0914ab8adaeb..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/log_threshold/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { logThresholdParamsSchema } from './latest'; -export { logThresholdParamsSchema as logThresholdParamsSchemaV1 } from './v1'; - -export type { LogThresholdParams } from './latest'; -export type { LogThresholdParams as LogThresholdParamsV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/log_threshold/latest.ts b/src/platform/packages/shared/response-ops/rule_params/log_threshold/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/log_threshold/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/index.ts b/src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/index.ts deleted file mode 100644 index a80128d054c50..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { logstashVersionMismatchParamsSchema, type LogstashVersionMismatchParams } from './latest'; -export { logstashVersionMismatchParamsSchema as logstashVersionMismatchParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/latest.ts b/src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/memory_usage/index.ts b/src/platform/packages/shared/response-ops/rule_params/memory_usage/index.ts deleted file mode 100644 index 72d29231f51f2..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/memory_usage/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { memoryUsageParamsSchema, type MemoryUsageParams } from './latest'; -export { memoryUsageParamsSchema as memoryUsageParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/memory_usage/latest.ts b/src/platform/packages/shared/response-ops/rule_params/memory_usage/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/memory_usage/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/memory_usage/v1.ts b/src/platform/packages/shared/response-ops/rule_params/memory_usage/v1.ts deleted file mode 100644 index 4c339ae34839d..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/memory_usage/v1.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const memoryUsageParamsSchema = stackMonitoringCommonSchema.extends({}); -export type MemoryUsageParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/index.ts b/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/index.ts deleted file mode 100644 index 779a8d97d2905..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { metricInventoryThresholdRuleParamsSchema } from './latest'; -export { metricInventoryThresholdRuleParamsSchema as metricInventoryThresholdRuleParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/latest.ts b/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_threshold/index.ts b/src/platform/packages/shared/response-ops/rule_params/metric_threshold/index.ts deleted file mode 100644 index a3110ba721272..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/metric_threshold/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { metricThresholdRuleParamsSchema } from './latest'; -export { metricThresholdRuleParamsSchema as metricThresholdRuleParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_threshold/latest.ts b/src/platform/packages/shared/response-ops/rule_params/metric_threshold/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/metric_threshold/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/index.ts b/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/index.ts deleted file mode 100644 index d365b6069d82c..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { missingMonitoringDataParamsSchema, type MissingMonitoringDataParams } from './latest'; -export { missingMonitoringDataParamsSchema as missingMonitoringDataParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/latest.ts b/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/v1.ts b/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/v1.ts deleted file mode 100644 index afabb2b784d7b..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/v1.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const missingMonitoringDataParamsSchema = stackMonitoringCommonSchema.extends({}); -export type MissingMonitoringDataParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/nodes_changed/index.ts b/src/platform/packages/shared/response-ops/rule_params/nodes_changed/index.ts deleted file mode 100644 index dd61a4345c960..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/nodes_changed/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { nodesChangedParamsSchema, type NodesChangedParams } from './latest'; -export { nodesChangedParamsSchema as nodesChangedParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/nodes_changed/latest.ts b/src/platform/packages/shared/response-ops/rule_params/nodes_changed/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/nodes_changed/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/nodes_changed/v1.ts b/src/platform/packages/shared/response-ops/rule_params/nodes_changed/v1.ts deleted file mode 100644 index 721603aaa5b0b..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/nodes_changed/v1.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -import type { TypeOf } from '@kbn/config-schema'; -import { stackMonitoringCommonSchema } from '../common'; - -export const nodesChangedParamsSchema = stackMonitoringCommonSchema.extends({}); -export type NodesChangedParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/index.ts b/src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/index.ts deleted file mode 100644 index 6be9015871505..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/index.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { sloBurnRateParamsSchema } from './latest'; -export { sloBurnRateParamsSchema as sloBurnRateParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/latest.ts b/src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/latest.ts b/src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/synthetics_tls/index.ts b/src/platform/packages/shared/response-ops/rule_params/synthetics_tls/index.ts deleted file mode 100644 index 49f3fb4669f30..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/synthetics_tls/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { tlsRuleParamsSchema } from './latest'; -export { tlsRuleParamsSchema as tlsRuleParamsSchemaV1 } from './v1'; - -export type { TLSRuleParams } from './latest'; -export type { TLSRuleParams as TLSRuleParamsV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/synthetics_tls/latest.ts b/src/platform/packages/shared/response-ops/rule_params/synthetics_tls/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/synthetics_tls/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/index.ts b/src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/index.ts deleted file mode 100644 index 81cf24aeebb90..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { - threadPoolSearchRejectionsParamsSchema, - type ThreadPoolSearchRejectionsParams, -} from './latest'; -export { threadPoolSearchRejectionsParamsSchema as threadPoolSearchRejectionsParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/latest.ts b/src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/index.ts b/src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/index.ts deleted file mode 100644 index 8f7836070078a..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { - threadPoolWriteRejectionsParamsSchema, - type ThreadPoolWriteRejectionsParams, -} from './latest'; -export { threadPoolWriteRejectionsParamsSchema as threadPoolWriteRejectionsParamsSchemaV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/latest.ts b/src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.ts b/src/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.ts b/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transform_health/latest.ts b/src/platform/packages/shared/response-ops/rule_params/transform_health/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/transform_health/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/latest.ts b/src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/latest.ts b/src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_tls/index.ts b/src/platform/packages/shared/response-ops/rule_params/uptime_tls/index.ts deleted file mode 100644 index 89b393515819e..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_tls/index.ts +++ /dev/null @@ -1,14 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export { uptimeTLSRuleParamsSchema } from './latest'; -export { uptimeTLSRuleParamsSchema as uptimeTLSRuleParamsSchemaV1 } from './v1'; - -export type { UptimeTLSRuleParams } from './latest'; -export type { UptimeTLSRuleParams as UptimeTLSRuleParamsV1 } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_tls/latest.ts b/src/platform/packages/shared/response-ops/rule_params/uptime_tls/latest.ts deleted file mode 100644 index f278309c22b03..0000000000000 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_tls/latest.ts +++ /dev/null @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export * from './v1'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/constants.ts b/src/platform/packages/shared/response-ops/rules-apis/constants.ts deleted file mode 100644 index 02e1d52cb58f6..0000000000000 --- a/src/platform/packages/shared/response-ops/rules-apis/constants.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export const BASE_ALERTING_API_PATH = '/api/alerting'; -export const INTERNAL_BASE_ALERTING_API_PATH = '/internal/alerting'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/jest.config.js b/src/platform/packages/shared/response-ops/rules-apis/jest.config.js deleted file mode 100644 index ff622756f4039..0000000000000 --- a/src/platform/packages/shared/response-ops/rules-apis/jest.config.js +++ /dev/null @@ -1,17 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../../../../..', - roots: ['/src/platform/packages/shared/response-ops/rules-apis'], - setupFilesAfterEnv: [ - '/src/platform/packages/shared/response-ops/rules-apis/setup_tests.ts', - ], -}; diff --git a/src/platform/packages/shared/response-ops/rules-apis/mutation_keys.ts b/src/platform/packages/shared/response-ops/rules-apis/mutation_keys.ts deleted file mode 100644 index 76eb5ea3e0ebf..0000000000000 --- a/src/platform/packages/shared/response-ops/rules-apis/mutation_keys.ts +++ /dev/null @@ -1,12 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ - -export const mutationKeys = { - root: 'rules', -}; diff --git a/src/platform/packages/shared/response-ops/rules-apis/setup_tests.ts b/src/platform/packages/shared/response-ops/rules-apis/setup_tests.ts deleted file mode 100644 index e8d6b49e9d94e..0000000000000 --- a/src/platform/packages/shared/response-ops/rules-apis/setup_tests.ts +++ /dev/null @@ -1,11 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -/* eslint-disable import/no-extraneous-dependencies */ -import '@testing-library/jest-dom'; -import 'jest-styled-components'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/test_utils.ts b/src/platform/packages/shared/response-ops/rules-apis/test_utils.ts deleted file mode 100644 index 083a40babd64c..0000000000000 --- a/src/platform/packages/shared/response-ops/rules-apis/test_utils.ts +++ /dev/null @@ -1,22 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". - */ -/* eslint-disable no-console */ - -export const testQueryClientConfig = { - defaultOptions: { - queries: { - retry: false, - }, - }, - logger: { - log: console.log, - warn: console.warn, - error: () => {}, - }, -}; diff --git a/tsconfig.base.json b/tsconfig.base.json index ece10ae5fe60e..5745618a3400e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1784,28 +1784,28 @@ "@kbn/resizable-layout-examples-plugin/*": ["examples/resizable_layout_examples/*"], "@kbn/resolver-test-plugin": ["x-pack/solutions/security/test/plugin_functional/plugins/resolver_test"], "@kbn/resolver-test-plugin/*": ["x-pack/solutions/security/test/plugin_functional/plugins/resolver_test/*"], - "@kbn/response-ops-alerts-apis": ["src/platform/packages/shared/response-ops/alerts-apis"], - "@kbn/response-ops-alerts-apis/*": ["src/platform/packages/shared/response-ops/alerts-apis/*"], - "@kbn/response-ops-alerts-delete": ["src/platform/packages/shared/response-ops/alerts-delete"], - "@kbn/response-ops-alerts-delete/*": ["src/platform/packages/shared/response-ops/alerts-delete/*"], - "@kbn/response-ops-alerts-fields-browser": ["src/platform/packages/shared/response-ops/alerts-fields-browser"], - "@kbn/response-ops-alerts-fields-browser/*": ["src/platform/packages/shared/response-ops/alerts-fields-browser/*"], - "@kbn/response-ops-alerts-filters-form": ["src/platform/packages/shared/response-ops/alerts-filters-form"], - "@kbn/response-ops-alerts-filters-form/*": ["src/platform/packages/shared/response-ops/alerts-filters-form/*"], - "@kbn/response-ops-alerts-table": ["src/platform/packages/shared/response-ops/alerts-table"], - "@kbn/response-ops-alerts-table/*": ["src/platform/packages/shared/response-ops/alerts-table/*"], - "@kbn/response-ops-form-generator": ["src/platform/packages/shared/response-ops/form-generator"], - "@kbn/response-ops-form-generator/*": ["src/platform/packages/shared/response-ops/form-generator/*"], - "@kbn/response-ops-recurring-schedule-form": ["src/platform/packages/shared/response-ops/recurring-schedule-form"], - "@kbn/response-ops-recurring-schedule-form/*": ["src/platform/packages/shared/response-ops/recurring-schedule-form/*"], + "@kbn/response-ops-alerts-apis": ["x-pack/platform/packages/shared/response-ops/alerts-apis"], + "@kbn/response-ops-alerts-apis/*": ["x-pack/platform/packages/shared/response-ops/alerts-apis/*"], + "@kbn/response-ops-alerts-delete": ["x-pack/platform/packages/shared/response-ops/alerts-delete"], + "@kbn/response-ops-alerts-delete/*": ["x-pack/platform/packages/shared/response-ops/alerts-delete/*"], + "@kbn/response-ops-alerts-fields-browser": ["x-pack/platform/packages/shared/response-ops/alerts-fields-browser"], + "@kbn/response-ops-alerts-fields-browser/*": ["x-pack/platform/packages/shared/response-ops/alerts-fields-browser/*"], + "@kbn/response-ops-alerts-filters-form": ["x-pack/platform/packages/shared/response-ops/alerts-filters-form"], + "@kbn/response-ops-alerts-filters-form/*": ["x-pack/platform/packages/shared/response-ops/alerts-filters-form/*"], + "@kbn/response-ops-alerts-table": ["x-pack/platform/packages/shared/response-ops/alerts-table"], + "@kbn/response-ops-alerts-table/*": ["x-pack/platform/packages/shared/response-ops/alerts-table/*"], + "@kbn/response-ops-form-generator": ["x-pack/platform/packages/shared/response-ops/form-generator"], + "@kbn/response-ops-form-generator/*": ["x-pack/platform/packages/shared/response-ops/form-generator/*"], + "@kbn/response-ops-recurring-schedule-form": ["x-pack/platform/packages/shared/response-ops/recurring-schedule-form"], + "@kbn/response-ops-recurring-schedule-form/*": ["x-pack/platform/packages/shared/response-ops/recurring-schedule-form/*"], "@kbn/response-ops-retry-service": ["x-pack/platform/packages/shared/response-ops/retry-service"], "@kbn/response-ops-retry-service/*": ["x-pack/platform/packages/shared/response-ops/retry-service/*"], - "@kbn/response-ops-rule-form": ["src/platform/packages/shared/response-ops/rule_form"], - "@kbn/response-ops-rule-form/*": ["src/platform/packages/shared/response-ops/rule_form/*"], - "@kbn/response-ops-rule-params": ["src/platform/packages/shared/response-ops/rule_params"], - "@kbn/response-ops-rule-params/*": ["src/platform/packages/shared/response-ops/rule_params/*"], - "@kbn/response-ops-rules-apis": ["src/platform/packages/shared/response-ops/rules-apis"], - "@kbn/response-ops-rules-apis/*": ["src/platform/packages/shared/response-ops/rules-apis/*"], + "@kbn/response-ops-rule-form": ["x-pack/platform/packages/shared/response-ops/rule_form"], + "@kbn/response-ops-rule-form/*": ["x-pack/platform/packages/shared/response-ops/rule_form/*"], + "@kbn/response-ops-rule-params": ["x-pack/platform/packages/shared/response-ops/rule_params"], + "@kbn/response-ops-rule-params/*": ["x-pack/platform/packages/shared/response-ops/rule_params/*"], + "@kbn/response-ops-rules-apis": ["x-pack/platform/packages/shared/response-ops/rules-apis"], + "@kbn/response-ops-rules-apis/*": ["x-pack/platform/packages/shared/response-ops/rules-apis/*"], "@kbn/response-stream-plugin": ["examples/response_stream"], "@kbn/response-stream-plugin/*": ["examples/response_stream/*"], "@kbn/restorable-state": ["src/platform/packages/shared/kbn-restorable-state"], diff --git a/x-pack/platform/packages/shared/response-ops/.storybook/main.ts b/x-pack/platform/packages/shared/response-ops/.storybook/main.ts new file mode 100644 index 0000000000000..bf63e08d64c32 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/.storybook/main.ts @@ -0,0 +1,10 @@ +/* + * 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 { defaultConfig } from '@kbn/storybook'; + +module.exports = defaultConfig; diff --git a/src/platform/packages/shared/response-ops/.storybook/manager.ts b/x-pack/platform/packages/shared/response-ops/.storybook/manager.ts similarity index 50% rename from src/platform/packages/shared/response-ops/.storybook/manager.ts rename to x-pack/platform/packages/shared/response-ops/.storybook/manager.ts index 7161175b9b83c..4a04886b9d639 100644 --- a/src/platform/packages/shared/response-ops/.storybook/manager.ts +++ b/x-pack/platform/packages/shared/response-ops/.storybook/manager.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { addons } from '@storybook/manager-api'; diff --git a/src/platform/packages/shared/response-ops/.storybook/preview.tsx b/x-pack/platform/packages/shared/response-ops/.storybook/preview.tsx similarity index 76% rename from src/platform/packages/shared/response-ops/.storybook/preview.tsx rename to x-pack/platform/packages/shared/response-ops/.storybook/preview.tsx index c207e11c72dfb..c987fdeeffa67 100644 --- a/src/platform/packages/shared/response-ops/.storybook/preview.tsx +++ b/x-pack/platform/packages/shared/response-ops/.storybook/preview.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { FC, PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/README.md b/x-pack/platform/packages/shared/response-ops/alerts-apis/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-apis/README.md rename to x-pack/platform/packages/shared/response-ops/alerts-apis/README.md diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.test.ts similarity index 74% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.test.ts index 154f49e71f601..de8f148f65a04 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core-http-browser-mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.ts similarity index 61% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.ts index 3b72a93b4104d..5203f133b62ce 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_mute_alerts.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.test.ts similarity index 74% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.test.ts index 3c80e7d9d402e..786fcbcbebc21 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core-http-browser-mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.ts similarity index 61% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.ts index a8ef492800220..d7f119cb9207d 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/bulk_unmute_alerts.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.test.ts similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.test.ts index 1a3be5c51bf8b..acae3468f9549 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core-http-browser-mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.ts similarity index 72% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.ts index 85f78d10c9c29..50a646785a226 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/get_muted_alerts_instances_by_rule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.test.ts similarity index 63% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.test.ts index efbe1a18c6b25..c6d8277a8716e 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core-http-browser-mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.ts similarity index 58% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.ts index df818cd77c95d..bbbb34bec2425 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/mute_alert_instance.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.test.ts similarity index 63% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.test.ts index 4193d422eda80..3e6f369517c41 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core-http-browser-mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.ts similarity index 59% rename from src/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.ts index f6c6fc0411b17..1fde8ef9e5bb9 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/apis/unmute_alert_instance.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-apis/constants.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/constants.ts new file mode 100644 index 0000000000000..bf24be6ef2c33 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/constants.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 const BASE_ALERTING_API_PATH = '/api/alerting'; +export const INTERNAL_BASE_ALERTING_API_PATH = '/internal/alerting'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.test.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.test.tsx index c61088d258712..722c21ac0d43d 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook, waitFor } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.ts similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.ts index 42e96c76c2c84..669c8c1f5e076 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_mute_alerts.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMutation } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.test.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.test.tsx index e263aa18c0cb6..7911f542a9b6d 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook, waitFor } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.ts similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.ts index 41b84bdb2faa8..eea0ebec20708 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_bulk_unmute_alerts.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMutation } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.test.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.test.tsx index ac1dc15801994..5acc65b908cc9 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook, waitFor } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.tsx b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.tsx index c97b1d5628175..b6e9ddebe92cb 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_get_muted_alerts_query.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.test.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.test.tsx index 65854d714868d..98446387866f8 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook, waitFor } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.ts similarity index 81% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.ts index f5aec899fd64b..653c549fdd2f3 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_mute_alert_instance.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMutation } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.test.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.test.tsx index 3c368b632e604..1679a5eb0daf4 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook, waitFor } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.ts similarity index 81% rename from src/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.ts index 4213bccf74585..483662849011a 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/hooks/use_unmute_alert_instance.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMutation } from '@kbn/react-query'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-apis/jest.config.js b/x-pack/platform/packages/shared/response-ops/alerts-apis/jest.config.js new file mode 100644 index 0000000000000..8394900233bd9 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/alerts-apis'], + setupFilesAfterEnv: [ + '/x-pack/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/alerts-apis/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-apis/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/alerts-apis/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/alerts-apis/moon.yml b/x-pack/platform/packages/shared/response-ops/alerts-apis/moon.yml similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-apis/moon.yml rename to x-pack/platform/packages/shared/response-ops/alerts-apis/moon.yml index 3f5f642a7283f..f2c4cf06dd14a 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/alerts-apis + sourceRoot: x-pack/platform/packages/shared/response-ops/alerts-apis dependsOn: - '@kbn/core-http-browser' - '@kbn/i18n' diff --git a/src/platform/packages/shared/response-ops/alerts-apis/mutation_keys.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/mutation_keys.ts similarity index 53% rename from src/platform/packages/shared/response-ops/alerts-apis/mutation_keys.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/mutation_keys.ts index 116561320027f..194ba620afed7 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/mutation_keys.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/mutation_keys.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 const mutationKeys = { diff --git a/src/platform/packages/shared/response-ops/alerts-apis/package.json b/x-pack/platform/packages/shared/response-ops/alerts-apis/package.json similarity index 56% rename from src/platform/packages/shared/response-ops/alerts-apis/package.json rename to x-pack/platform/packages/shared/response-ops/alerts-apis/package.json index 7b0c1015879b7..9096dad5424d5 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/package.json +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-alerts-apis", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/x-pack/platform/packages/shared/response-ops/alerts-apis/query_keys.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/query_keys.ts new file mode 100644 index 0000000000000..622d64f2b0b46 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/query_keys.ts @@ -0,0 +1,12 @@ +/* + * 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 const queryKeys = { + root: 'alerts', + getMutedAlerts: (ruleIds: string[]) => + [queryKeys.root, 'mutedInstanceIdsForRuleIds', ruleIds] as const, +}; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts new file mode 100644 index 0000000000000..6b0e4de58bcb6 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/setup_tests.ts @@ -0,0 +1,10 @@ +/* + * 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. + */ + +/* eslint-disable import/no-extraneous-dependencies */ +import '@testing-library/jest-dom'; +import 'jest-styled-components'; diff --git a/src/platform/packages/shared/response-ops/alerts-apis/tsconfig.json b/x-pack/platform/packages/shared/response-ops/alerts-apis/tsconfig.json similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-apis/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/alerts-apis/tsconfig.json diff --git a/src/platform/packages/shared/response-ops/alerts-apis/types.ts b/x-pack/platform/packages/shared/response-ops/alerts-apis/types.ts similarity index 52% rename from src/platform/packages/shared/response-ops/alerts-apis/types.ts rename to x-pack/platform/packages/shared/response-ops/alerts-apis/types.ts index 77f70906e5620..63f05bfeff4e5 100644 --- a/src/platform/packages/shared/response-ops/alerts-apis/types.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-apis/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { IHttpFetchError, ResponseErrorBody } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/README.md b/x-pack/platform/packages/shared/response-ops/alerts-delete/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-delete/README.md rename to x-pack/platform/packages/shared/response-ops/alerts-delete/README.md diff --git a/src/platform/packages/shared/response-ops/alerts-delete/alerts_delete.stories.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/alerts_delete.stories.tsx similarity index 90% rename from src/platform/packages/shared/response-ops/alerts-delete/alerts_delete.stories.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/alerts_delete.stories.tsx index fd285ef5faa18..77b9a9b929efd 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/alerts_delete.stories.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/alerts_delete.stories.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.test.tsx similarity index 74% rename from src/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.test.tsx index bc5468f5ba964..9ed516967a08a 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core/public/mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.ts similarity index 69% rename from src/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.ts index 8979c8ad7c18f..45d137163e151 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/get_alert_delete_last_run.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { AlertDeleteLastRunResponse } from '@kbn/alerting-plugin/common/routes/alert_delete'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.test.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.test.tsx index 25b71ca345fe7..9f0fa888089aa 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.ts similarity index 77% rename from src/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.ts index 95438b63acb00..a83188b57f3cf 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/last_run/use_alert_delete_last_run.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useQuery } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.test.tsx similarity index 80% rename from src/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.test.tsx index bf1cb69866236..50d02f3c3ef68 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core/public/mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.ts similarity index 76% rename from src/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.ts index ae33e56fa75ec..4b2cce03127d4 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/get_alert_delete_preview.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { AlertDeletePreviewResponse } from '@kbn/alerting-plugin/common/routes/alert_delete'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.test.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.test.tsx index 2206fcb9e87d6..3a752b3c763a1 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.ts similarity index 80% rename from src/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.ts index 6a1c31acbfa7a..742d903acde1e 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/preview/use_alert_delete_preview.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.test.ts similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.test.ts index aa9f5347cb482..007616be18a24 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core/public/mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.ts similarity index 70% rename from src/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.ts index a60a0f7d60675..713efc1979ac1 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/create_alert_delete_schedule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core/public'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.test.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.test.tsx index f2e788044c1a3..76bf1bd7ac6fc 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.ts similarity index 72% rename from src/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.ts index fe3e176c8f810..b0c0646a77af3 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/api/schedule/use_alert_delete_schedule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMutation } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.test.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.test.tsx index 47ad092cd6c08..c1625b6b69317 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.tsx similarity index 85% rename from src/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.tsx index 3ad4f796fc7b5..ad51ac8dc5cea 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/descriptive_form_group.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { lazy, Suspense, useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/components/modal.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/alerts-delete/components/modal.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal.test.tsx index e22d0ddf8b11d..2cdd95acd78a5 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/components/modal.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/components/modal.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/alerts-delete/components/modal.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal.tsx index e554fd50c1b86..52d81d051eded 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/components/modal.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/components/modal_threshold_selector.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal_threshold_selector.tsx similarity index 87% rename from src/platform/packages/shared/response-ops/alerts-delete/components/modal_threshold_selector.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal_threshold_selector.tsx index 902d72d73774c..83fd9a6588fdf 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/components/modal_threshold_selector.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/components/modal_threshold_selector.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/constants.tsx b/x-pack/platform/packages/shared/response-ops/alerts-delete/constants.tsx similarity index 70% rename from src/platform/packages/shared/response-ops/alerts-delete/constants.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-delete/constants.tsx index 779df757f605b..298e91a422ded 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/constants.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/constants.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiSelectOption } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/index.ts similarity index 72% rename from src/platform/packages/shared/response-ops/alerts-delete/index.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/index.ts index 9ca37f8051c84..cd777e68dcb68 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/index.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { AlertDeleteModal } from './components/modal'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-delete/jest.config.js b/x-pack/platform/packages/shared/response-ops/alerts-delete/jest.config.js new file mode 100644 index 0000000000000..4bfad00d8ea83 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/alerts-delete'], + setupFilesAfterEnv: [ + 'x-pack/platform/packages/shared/response-ops/alerts-delete/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/alerts-delete/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-delete/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/alerts-delete/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/alerts-delete/moon.yml b/x-pack/platform/packages/shared/response-ops/alerts-delete/moon.yml similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-delete/moon.yml rename to x-pack/platform/packages/shared/response-ops/alerts-delete/moon.yml index e8c9a27000d07..7c33e08dd5eae 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/alerts-delete + sourceRoot: x-pack/platform/packages/shared/response-ops/alerts-delete dependsOn: - '@kbn/i18n' - '@kbn/core' diff --git a/src/platform/packages/shared/response-ops/alerts-delete/package.json b/x-pack/platform/packages/shared/response-ops/alerts-delete/package.json similarity index 58% rename from src/platform/packages/shared/response-ops/alerts-delete/package.json rename to x-pack/platform/packages/shared/response-ops/alerts-delete/package.json index fd42d7653c883..705abfb537b41 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/package.json +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-alerts-delete", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" + "license": "Elastic License 2.0" } diff --git a/x-pack/platform/packages/shared/response-ops/alerts-delete/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/setup_tests.ts new file mode 100644 index 0000000000000..5bdf388e23c50 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/setup_tests.ts @@ -0,0 +1,10 @@ +/* + * 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. + */ + +/* eslint-disable import/no-extraneous-dependencies */ +import '@testing-library/jest-dom'; +import '@emotion/jest'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/translations.ts b/x-pack/platform/packages/shared/response-ops/alerts-delete/translations.ts similarity index 91% rename from src/platform/packages/shared/response-ops/alerts-delete/translations.ts rename to x-pack/platform/packages/shared/response-ops/alerts-delete/translations.ts index d673568f944ff..7837605021f61 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/translations.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/translations.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-delete/tsconfig.json b/x-pack/platform/packages/shared/response-ops/alerts-delete/tsconfig.json similarity index 95% rename from src/platform/packages/shared/response-ops/alerts-delete/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/alerts-delete/tsconfig.json index b25915a115ff8..256704a86e980 100644 --- a/src/platform/packages/shared/response-ops/alerts-delete/tsconfig.json +++ b/x-pack/platform/packages/shared/response-ops/alerts-delete/tsconfig.json @@ -15,6 +15,6 @@ "@kbn/alerting-types", "@kbn/core-notifications-browser", "@kbn/kibana-react-plugin", - "@kbn/react-query", + "@kbn/react-query" ] } diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/README.md b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/README.md rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/README.md diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.styles.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.styles.ts new file mode 100644 index 0000000000000..be100d595a308 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.styles.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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { css } from '@emotion/react'; +import type { UseEuiTheme } from '@elastic/eui'; + +export const styles = { + badgesGroup: ({ euiTheme }: { euiTheme: UseEuiTheme['euiTheme'] }) => css` + margin-top: ${euiTheme.size.xs}; + min-height: 24px; + `, +}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.test.tsx similarity index 81% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.test.tsx index a6c6de00c0223..e72e524a3ab5f 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { render } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.tsx similarity index 81% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.tsx index e8bf89a55101c..1e3142d0ad103 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/categories_badges.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/index.ts new file mode 100644 index 0000000000000..26e882bb0e1d9 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_badges/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 { CategoriesBadges } from './categories_badges'; +export type { CategoriesBadgesProps } from './categories_badges'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.styles.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.styles.ts new file mode 100644 index 0000000000000..6216a57beaee7 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.styles.ts @@ -0,0 +1,20 @@ +/* + * 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 { css } from '@emotion/react'; + +export const styles = { + countBadge: css` + margin-left: 5px; + `, + categoryName: ({ bold }: { bold: boolean }) => css` + font-weight: ${bold ? 'bold' : 'normal'}; + `, + selectableContainer: css` + width: 300px; + `, +}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.test.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.test.tsx index 1bf4c4629a36e..a1a8b6c55cee6 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.tsx index b908283698b63..9a05251f26c89 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/categories_selector.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useMemo, useState } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/index.ts new file mode 100644 index 0000000000000..6c49384ce6913 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/categories_selector/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 { CategoriesSelector } from './categories_selector'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.styles.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.styles.ts new file mode 100644 index 0000000000000..6db8a68f734d6 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.styles.ts @@ -0,0 +1,15 @@ +/* + * 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 { css } from '@emotion/react'; + +export const styles = { + buttonContainer: css` + display: inline-block; + position: relative; + `, +}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.test.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.test.tsx index 88fdd2b503640..6f662e047e481 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.tsx index 738f4b2837210..8df41a2b5a361 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser/field_browser.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiButtonEmpty, EuiToolTip } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.test.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.test.tsx index d64494091552f..da1dc466e9f36 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { mount } from 'enzyme'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.tsx index d11b6bda12438..558c8ac9ead84 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_browser_modal/field_browser_modal.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.style.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.style.ts similarity index 56% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.style.ts rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.style.ts index 2a835c43d70bf..d879b239dc599 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.style.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.style.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { css } from '@emotion/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.test.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.test.tsx index 46bbf336de3cd..75fb55920f8e5 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.tsx index 7a820bdf4529b..a811c92ce008f 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/field_items.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/index.ts new file mode 100644 index 0000000000000..d783e8cd7f095 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_items/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 { getFieldItemsData, getFieldColumns } from './field_items'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.test.tsx similarity index 70% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.test.tsx index bf14f0228c4b0..3a589ac97e711 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { mount } from 'enzyme'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.tsx similarity index 59% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.tsx index 8f64e690697d4..0ef0ce64c637b 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/field_name.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/index.ts new file mode 100644 index 0000000000000..7891ca3b0555d --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_name/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 { FieldName } from './field_name'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.styles.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.styles.ts similarity index 54% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.styles.ts rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.styles.ts index ce14cde1b8304..86e151a10bddf 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.styles.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.styles.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { UseEuiTheme } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.test.tsx index c75ca0a70e1c7..fcb6076bbb315 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.tsx index 287b66b75a594..99434e53d86e9 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useEffect, useMemo, useState } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.styles.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.styles.ts new file mode 100644 index 0000000000000..a29b0050babcf --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.styles.ts @@ -0,0 +1,14 @@ +/* + * 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 { css } from '@emotion/react'; + +export const styles = { + count: css` + font-weight: bold; + `, +}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.test.tsx similarity index 90% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.test.tsx index 3088a4719c0e4..46acd1840a16a 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.tsx index 5d65c6aa04137..d1ef6a860e97f 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/field_table_header.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useState } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/index.ts new file mode 100644 index 0000000000000..02dee020e0abc --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/field_table/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 { FieldTable } from './field_table'; +export type { FieldTableProps } from './field_table'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/index.ts new file mode 100644 index 0000000000000..3b965d88b9bc3 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/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 { Search } from './search'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.test.tsx similarity index 81% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.test.tsx index 042d8fba36d41..25390da9506cf 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { mount } from 'enzyme'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.tsx b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.tsx similarity index 68% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.tsx index fa80dfaa26fa1..36db3c367e0a3 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/components/search/search.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/helpers.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/helpers.test.ts similarity index 97% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/helpers.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/helpers.test.ts index 1951a0f11b37d..1e61bac6a59c1 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/helpers.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/helpers.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { mockBrowserFields } from './mock'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/helpers.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/helpers.ts similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/helpers.ts rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/helpers.ts index b0268f5fd95f8..2dc8f2d188b3f 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/helpers.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/helpers.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EcsMetadata } from '@kbn/alerts-as-data-utils/src/field_maps/types'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/index.ts new file mode 100644 index 0000000000000..0fc291391e901 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/index.ts @@ -0,0 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { FieldBrowser } from './components/field_browser/field_browser'; +export type { FieldBrowserProps, FieldBrowserOptions } from './types'; + +export { FieldBrowser }; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js new file mode 100644 index 0000000000000..953163a4db069 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/alerts-fields-browser'], + setupFilesAfterEnv: [ + '/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/mock.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/mock.ts similarity index 97% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/mock.ts rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/mock.ts index c14aff67511dc..2493d76d46605 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/mock.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/mock.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { MappingRuntimeFields } from '@elastic/elasticsearch/lib/api/types'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/moon.yml b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/moon.yml similarity index 93% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/moon.yml rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/moon.yml index 1039b11ddfb22..8dbf0f02de87d 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/alerts-fields-browser + sourceRoot: x-pack/platform/packages/shared/response-ops/alerts-fields-browser dependsOn: - '@kbn/i18n' - '@kbn/rule-registry-plugin' diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/package.json b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/package.json similarity index 59% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/package.json rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/package.json index 93efb418dbbdf..48e419fcc02d4 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/package.json +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-alerts-fields-browser", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.ts new file mode 100644 index 0000000000000..72e0edd0d07f7 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/setup_tests.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. + */ + +// eslint-disable-next-line import/no-extraneous-dependencies +import '@testing-library/jest-dom'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/translations.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/translations.ts similarity index 90% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/translations.ts rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/translations.ts index 136a5f699c611..2c0e30a736aad 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/translations.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/translations.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json similarity index 52% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json index e64a5af562e14..e1cc8c18d0a35 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/tsconfig.json @@ -2,23 +2,14 @@ "extends": "@kbn/tsconfig-base/tsconfig.json", "compilerOptions": { "outDir": "target/types", - "types": [ - "jest", - "node", - "@emotion/react/types/css-prop" - ] + "types": ["jest", "node", "@emotion/react/types/css-prop"] }, - "include": [ - "**/*.ts", - "**/*.tsx" - ], - "exclude": [ - "target/**/*" - ], + "include": ["**/*.ts", "**/*.tsx"], + "exclude": ["target/**/*"], "kbn_references": [ "@kbn/i18n", "@kbn/rule-registry-plugin", "@kbn/alerts-as-data-utils", - "@kbn/rule-data-utils", + "@kbn/rule-data-utils" ] } diff --git a/src/platform/packages/shared/response-ops/alerts-fields-browser/types.ts b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/types.ts similarity index 81% rename from src/platform/packages/shared/response-ops/alerts-fields-browser/types.ts rename to x-pack/platform/packages/shared/response-ops/alerts-fields-browser/types.ts index deb845dbc9caf..aabafc7ff169d 100644 --- a/src/platform/packages/shared/response-ops/alerts-fields-browser/types.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-fields-browser/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiBasicTableColumn } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/README.md b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-filters-form/README.md rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/README.md diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.test.tsx index 9685b0fc6e490..5bfda12571218 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.tsx index 55434d956434c..6118b18f691be 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_tags.tsx @@ -1,19 +1,17 @@ /* * 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiComboBoxOptionOption } from '@elastic/eui'; import { EuiComboBox, EuiFormRow } from '@elastic/eui'; -import { useGetRuleTagsQuery } from '@kbn/response-ops-rules-apis/hooks/use_get_rule_tags_query'; import React, { useCallback, useMemo } from 'react'; import type { EuiComboBoxProps } from '@elastic/eui/src/components/combo_box/combo_box'; import { nodeBuilder, toKqlExpression } from '@kbn/es-query'; import { ALERT_RULE_TAGS } from '@kbn/rule-data-utils'; +import { useGetRuleTagsQuery } from '@kbn/response-ops-rules-apis/hooks/use_get_rule_tags_query'; import { RULE_TAGS_FILTER_SUBJ } from '../constants'; import { RULE_TAGS_FILTER_LABEL, diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.test.tsx index 5eeacd66531ef..19ac61463ee64 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.tsx similarity index 90% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.tsx index f5c554e2e92d9..9b40af5122167 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filter_by_rule_types.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiComboBoxOptionOption } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.test.tsx index ac14443b006db..980bd57a20f3d 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.tsx index be1ddfd710636..0ccdaf8940af7 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.test.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.test.tsx index ad9039069c17c..cdc8cd944b6f8 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.tsx index 184e846d6f45a..9a65798d44903 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_filters_form_item.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.test.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.test.tsx index 4fc57bfde2f23..7614a5d80802f 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.tsx index 186c21b5f1729..ccc2cd3571107 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/components/alerts_solution_selector.tsx @@ -1,11 +1,10 @@ /* * 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { forwardRef, useMemo } from 'react'; import type { EuiSuperSelectOption } from '@elastic/eui'; import { EuiFlexGroup, EuiFlexItem, EuiFormRow, EuiIcon, EuiSuperSelect } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/constants.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/constants.ts similarity index 63% rename from src/platform/packages/shared/response-ops/alerts-filters-form/constants.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/constants.ts index be2eac82b8f7e..7bcaeb055b594 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/constants.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/constants.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 const DELETE_OPERAND_BUTTON_SUBJ = 'deleteOperandButton'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/contexts/alerts_filters_form_context.tsx b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/contexts/alerts_filters_form_context.tsx similarity index 68% rename from src/platform/packages/shared/response-ops/alerts-filters-form/contexts/alerts_filters_form_context.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/contexts/alerts_filters_form_context.tsx index cf7fa1879d701..b0fcd72bee01f 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/contexts/alerts_filters_form_context.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/contexts/alerts_filters_form_context.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.test.ts similarity index 67% rename from src/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.test.ts index a050e9a7dd7bb..ef615fbec584a 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { getFilterMetadata } from './filters_metadata'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.ts similarity index 68% rename from src/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.ts index 5d7056cb6964d..531c1fa3b5f50 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/filters_metadata.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { filterMetadata as ruleTagsFilterMetadata } from './components/alerts_filter_by_rule_tags'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-filters-form/jest.config.js b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/jest.config.js new file mode 100644 index 0000000000000..def11edd7b552 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/alerts-filters-form'], + setupFilesAfterEnv: [ + '/x-pack/platform/packages/shared/response-ops/alerts-filters-form/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-filters-form/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/moon.yml b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/moon.yml similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-filters-form/moon.yml rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/moon.yml index 43e4a11e9b277..62dc5cb2729be 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/alerts-filters-form + sourceRoot: x-pack/platform/packages/shared/response-ops/alerts-filters-form dependsOn: - '@kbn/response-ops-rules-apis' - '@kbn/i18n' diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/package.json b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/package.json similarity index 59% rename from src/platform/packages/shared/response-ops/alerts-filters-form/package.json rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/package.json index 36b2d9a9529c1..1d1cc95f78b5d 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/package.json +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-alerts-filters-form", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/x-pack/platform/packages/shared/response-ops/alerts-filters-form/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/setup_tests.ts new file mode 100644 index 0000000000000..72e0edd0d07f7 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/setup_tests.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. + */ + +// eslint-disable-next-line import/no-extraneous-dependencies +import '@testing-library/jest-dom'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/translations.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/translations.ts similarity index 89% rename from src/platform/packages/shared/response-ops/alerts-filters-form/translations.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/translations.ts index afab94e6385cf..ef91dde3455e6 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/translations.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/translations.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/tsconfig.json b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/tsconfig.json similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-filters-form/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/tsconfig.json diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/types.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/types.ts similarity index 78% rename from src/platform/packages/shared/response-ops/alerts-filters-form/types.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/types.ts index 1bcfcc96f253a..ab3b358405bde 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/types.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.test.ts similarity index 87% rename from src/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.test.ts index 2a2b4f75f9c62..189680a25f2b6 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { alertsFiltersToEsQuery, isEmptyExpression, isFilter } from './filters'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.ts similarity index 82% rename from src/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.ts index 0ce6deb28133b..720bf1dabb94e 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/filters.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { fromKueryExpression } from '@kbn/es-query'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.test.ts similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.test.ts index fac6e19b7863e..390b2344aee57 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleTypeSolution } from '@kbn/alerting-types'; diff --git a/src/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.ts b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.ts similarity index 78% rename from src/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.ts rename to x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.ts index 5bd8a097caa38..5aadbc1bac363 100644 --- a/src/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-filters-form/utils/solutions.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleTypeSolution } from '@kbn/alerting-types'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/README.md b/x-pack/platform/packages/shared/response-ops/alerts-table/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-table/README.md rename to x-pack/platform/packages/shared/response-ops/alerts-table/README.md diff --git a/src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.test.ts similarity index 71% rename from src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.test.ts index 575ac3ce7abae..fe3794f8f6e82 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { bulkGetCases } from './bulk_get_cases'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.ts similarity index 72% rename from src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.ts index 28dc8ac34b07d..5f2ff07cc1db8 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_cases.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { CaseStatuses } from '@kbn/cases-components'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.test.ts similarity index 73% rename from src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.test.ts index c6d0638be3f04..2c04046a233a3 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { coreMock } from '@kbn/core/public/mocks'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.ts similarity index 85% rename from src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.ts index 9a52d09c8aea1..7b30b60ea9a1e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/apis/bulk_get_maintenance_windows.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/assets/illustration_product_no_results_magnifying_glass.svg b/x-pack/platform/packages/shared/response-ops/alerts-table/assets/illustration_product_no_results_magnifying_glass.svg similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-table/assets/illustration_product_no_results_magnifying_glass.svg rename to x-pack/platform/packages/shared/response-ops/alerts-table/assets/illustration_product_no_results_magnifying_glass.svg diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.test.tsx similarity index 78% rename from src/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.test.tsx index 96deee7bf52d3..013dcc77da15d 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ComponentProps } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.tsx similarity index 85% rename from src/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.tsx index 53d6fd85a167b..ca3ff2772eb59 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/actions_cell_host.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { SetRequired } from 'type-fest'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alert_actions_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_actions_cell.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/components/alert_actions_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_actions_cell.tsx index 3c7e882fc3a39..c428410a8c9db 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alert_actions_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_actions_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.test.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.test.tsx index c59e5b3160580..829220012b5ed 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ReactElement } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.tsx index 024f7b6f4491d..6716144f3921e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_detail_flyout.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo, useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.test.tsx similarity index 85% rename from src/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.test.tsx index a198e6312c910..6e6bbe8a5d760 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.tsx index fc6b2738e203f..38080923ea7d2 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alert_lifecycle_status_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { AlertStatus } from '@kbn/rule-data-utils'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_count.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_count.tsx similarity index 74% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_count.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_count.tsx index df530d1422ca9..90fa62aa1ca0f 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_count.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_count.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.test.tsx similarity index 98% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.test.tsx index 532b5d5e7c817..4c968ef6e4c51 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { FunctionComponent } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.tsx index b11e2417f04cc..87f90c1ec1cbb 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_data_grid.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { FC } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.test.tsx similarity index 73% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.test.tsx index 0405efd1faaa4..52007b78d6ddd 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.tsx index ffdcc2e73f75e..e1c26e90d20fc 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiButtonIcon } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.test.tsx index 59cfaa28d793f..ab87260dd9c6d 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.tsx index 739640afc9a37..f02674284144c 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_query_inspector_modal.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { type ReactNode } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_table.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_table.test.tsx similarity index 98% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_table.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_table.test.tsx index 3ec95aa80c4b8..5a182ed55f23d 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_table.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_table.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_table.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_table.tsx similarity index 98% rename from src/platform/packages/shared/response-ops/alerts-table/components/alerts_table.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_table.tsx index 727f2a22f705c..521f4d9d196a5 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/alerts_table.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/alerts_table.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Ref, FC } from 'react'; @@ -36,9 +34,9 @@ import { DEFAULT_ALERTS_PAGE_SIZE } from '@kbn/alerts-ui-shared/src/common/const import { AlertsQueryContext } from '@kbn/alerts-ui-shared/src/common/contexts/alerts_query_context'; import type { Alert, BrowserFields } from '@kbn/alerting-types'; import { useGetMutedAlertsQuery } from '@kbn/response-ops-alerts-apis/hooks/use_get_muted_alerts_query'; -import { queryKeys as alertsQueryKeys } from '@kbn/response-ops-alerts-apis/query_keys'; import deepEqual from 'fast-deep-equal'; import { useFetchAlertsFieldsQuery } from '@kbn/alerts-ui-shared/src/common/hooks/use_fetch_alerts_fields_query'; +import { queryKeys as alertsQueryKeys } from '@kbn/response-ops-alerts-apis/query_keys'; import { applySetStateAction } from '../utils/apply_set_state_action'; import { useAlertsTableQueryParams } from '../hooks/use_alerts_table_query_params'; import { applyColumnsConfiguration } from '../utils/columns_configuration'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_cell.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_cell.tsx index 5d1136c7f68a0..b75b95bf27db8 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RenderCellValue } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_header_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_header_cell.tsx similarity index 76% rename from src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_header_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_header_cell.tsx index a1238d2b859ca..62ebe9e94f1d6 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_header_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_header_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiCheckbox } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_toolbar_control.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_toolbar_control.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_toolbar_control.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_toolbar_control.tsx index 5544c5e5bd602..e8ca117f66b9f 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_toolbar_control.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/bulk_actions_toolbar_control.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState, useCallback, useMemo, useEffect } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/cases_cell.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cases_cell.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/alerts-table/components/cases_cell.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/cases_cell.test.tsx index 566ac43d62199..d7ba6ac5c6128 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/cases_cell.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cases_cell.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/cases_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cases_cell.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/components/cases_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/cases_cell.tsx index fd3fc6db1d3d2..2074066b33d49 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/cases_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cases_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { memo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.test.tsx similarity index 85% rename from src/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.test.tsx index 173389523cf6f..fcc94b50e68a1 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useEffect } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.tsx similarity index 74% rename from src/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.tsx index 3cc3ce71774b1..885f7afe4ca8d 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_popover_host.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiDataGridCellPopoverElementProps } from '@elastic/eui/src/components/datagrid/data_grid_types'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.test.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.test.tsx index 29d8fcb9c2694..495b7310bd5a3 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ComponentProps, FC } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.tsx index ee166c0740e5a..dce3277089896 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/cell_value_host.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiSkeletonText } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/control_column_header_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/control_column_header_cell.tsx similarity index 50% rename from src/platform/packages/shared/response-ops/alerts-table/components/control_column_header_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/control_column_header_cell.tsx index 373a595dd96f0..9b59ba58983cf 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/control_column_header_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/control_column_header_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { memo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.test.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.test.tsx index b2fea8d66bf5a..79708a13c9f4a 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.tsx index 7334fb0dbefd5..64f6811f63756 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_alert_actions.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/default_cell.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell.test.tsx similarity index 80% rename from src/platform/packages/shared/response-ops/alerts-table/components/default_cell.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell.test.tsx index dd1d14179dc25..6c8b0fcd2482c 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/default_cell.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/default_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell.tsx similarity index 52% rename from src/platform/packages/shared/response-ops/alerts-table/components/default_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell.tsx index ef675bf64d5a5..f4d6359169e5e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/default_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { memo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.test.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.test.tsx index e7237bebae325..37aa62fe54e97 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ComponentProps } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.tsx index fba72ddd7fac1..568f2951aa72c 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/default_cell_value.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ComponentProps } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.test.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.test.tsx index 2a3c0cdee055c..51c0f9331a2f2 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.tsx similarity index 75% rename from src/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.tsx index 02cf739d364a1..4a2bb6838ffab 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/edit_tags_action.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.stories.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.stories.tsx new file mode 100644 index 0000000000000..87227cccc242d --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.stories.tsx @@ -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 { EmptyState as Component } from './empty_state'; + +export default { + component: Component, + title: 'app/AlertTable', + argTypes: { + height: { type: 'select', options: ['short', 'tall'] }, + }, +}; + +export const EmptyState = { + args: { + height: 'tall', + }, +}; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/empty_state.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.test.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/alerts-table/components/empty_state.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.test.tsx index 9aa9cf5288bc8..103cbf150f557 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/empty_state.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/empty_state.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/alerts-table/components/empty_state.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.tsx index 027854b09e303..8c13ce74d8bf9 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/empty_state.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/empty_state.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ReactNode } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/error_boundary.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_boundary.test.tsx similarity index 71% rename from src/platform/packages/shared/response-ops/alerts-table/components/error_boundary.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/error_boundary.test.tsx index 40f03951e63bc..b47536e8b4b6d 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/error_boundary.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_boundary.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/error_boundary.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_boundary.tsx similarity index 68% rename from src/platform/packages/shared/response-ops/alerts-table/components/error_boundary.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/error_boundary.tsx index 91ecfc8906454..7a48dd8fb1a01 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/error_boundary.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_boundary.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/error_cell.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_cell.test.tsx similarity index 65% rename from src/platform/packages/shared/response-ops/alerts-table/components/error_cell.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/error_cell.test.tsx index 6c7a7d5677ca1..c30129322c52b 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/error_cell.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_cell.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/error_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_cell.tsx similarity index 78% rename from src/platform/packages/shared/response-ops/alerts-table/components/error_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/error_cell.tsx index 086563f167bee..d57f3f6a66a7a 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/error_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_cell.tsx @@ -1,11 +1,10 @@ /* * 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { css } from '@emotion/react'; import { EuiCodeBlock, EuiFlexGroup, EuiFlexItem, EuiIcon, EuiSpacer, EuiText } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/error_fallback.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_fallback.test.tsx similarity index 62% rename from src/platform/packages/shared/response-ops/alerts-table/components/error_fallback.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/error_fallback.test.tsx index 0f16e059e25b4..a8292021ea953 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/error_fallback.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_fallback.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/error_fallback.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_fallback.tsx similarity index 75% rename from src/platform/packages/shared/response-ops/alerts-table/components/error_fallback.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/error_fallback.tsx index c7629f6414d00..294a756d7b2cc 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/error_fallback.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/error_fallback.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.test.tsx similarity index 80% rename from src/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.test.tsx index c8857b0c820a3..a84cbfb8c6cc0 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.tsx similarity index 78% rename from src/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.tsx index 81aef4894fbcd..63b277c02681e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/hover_visibility_container.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/last_updated_at.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/last_updated_at.tsx similarity index 85% rename from src/platform/packages/shared/response-ops/alerts-table/components/last_updated_at.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/last_updated_at.tsx index fc25536337de4..00e119111137a 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/last_updated_at.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/last_updated_at.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiText, EuiToolTip, logicalCSS, useEuiTheme } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.test.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.test.tsx index 53cead17bc112..4315e203e7c10 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.tsx index 2819930f657b7..972de62291759 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { memo, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_tooltip_content.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_tooltip_content.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_tooltip_content.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_tooltip_content.tsx index c57293d035cb1..1797708c387db 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_tooltip_content.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/maintenance_windows_tooltip_content.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 moment from 'moment'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/mark_as_untracked_alert_action.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/mark_as_untracked_alert_action.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/alerts-table/components/mark_as_untracked_alert_action.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/mark_as_untracked_alert_action.tsx index 66f08e0b4d5ee..f4964f34269a1 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/mark_as_untracked_alert_action.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/mark_as_untracked_alert_action.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/mute_alert_action.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/mute_alert_action.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/components/mute_alert_action.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/mute_alert_action.tsx index 8eedfaa2e653e..481d1d2650a48 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/mute_alert_action.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/mute_alert_action.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiContextMenuItem } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.test.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.test.tsx index 86ff686bcbfbf..f25991acde647 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.tsx index f6b66fc227ec8..32872a1a90ddd 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/non_virtualized_grid_body.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { memo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/system_cell.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/system_cell.test.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/components/system_cell.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/system_cell.test.tsx index 93043f2657972..0315cf713bb5b 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/system_cell.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/system_cell.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ComponentProps } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/system_cell.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/system_cell.tsx similarity index 75% rename from src/platform/packages/shared/response-ops/alerts-table/components/system_cell.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/system_cell.tsx index ea29ca8987d75..349cf5b071233 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/system_cell.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/system_cell.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { memo, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.test.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.test.tsx index 2d035e73fdaa1..009d2dfc8ee85 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.tsx index 8c0394da86e06..2c00a050f4d62 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_flyout.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useMemo, useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.test.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.test.tsx index 39baa942e6ddb..d5495cc34d831 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.tsx index 54714846b36c6..5c3fa93def725 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/edit_tags_selectable.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useMemo, useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/items/types.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/types.ts similarity index 58% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/items/types.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/types.ts index e0879297d392a..df9eb61770b09 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/items/types.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiSelectableOption, IconType } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.test.tsx index db851bbfb7ee8..3ef591af2f25a 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook, act } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.tsx index 216ee7950d93c..f0608dcaca005 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/items/use_items_state.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiSelectableOption, IconType } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/translations.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/translations.ts similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/translations.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/translations.ts index 7f04f75ae4c49..361d78762c080 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/translations.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/translations.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/use_focus_button/index.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_focus_button/index.tsx similarity index 63% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/use_focus_button/index.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_focus_button/index.tsx index 5ca75265d68fc..968ac6b9ca665 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/use_focus_button/index.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_focus_button/index.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiFocusTrapProps } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.test.tsx index 24d0ea15dcc42..dd0c5bb11276a 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.tsx similarity index 87% rename from src/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.tsx index 1fba9bc4c0e38..760004ea23857 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/tags/use_tags_action.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiIcon } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/view_alert_details_alert_action.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/view_alert_details_alert_action.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/components/view_alert_details_alert_action.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/view_alert_details_alert_action.tsx index d3411c851251f..f792a7e359028 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/view_alert_details_alert_action.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/view_alert_details_alert_action.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/components/view_rule_details_alert_action.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/components/view_rule_details_alert_action.tsx similarity index 80% rename from src/platform/packages/shared/response-ops/alerts-table/components/view_rule_details_alert_action.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/components/view_rule_details_alert_action.tsx index 33f9a7cb53759..72a366d62f438 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/components/view_rule_details_alert_action.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/components/view_rule_details_alert_action.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/configuration.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/configuration.ts similarity index 89% rename from src/platform/packages/shared/response-ops/alerts-table/configuration.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/configuration.ts index 10a1de95120cb..41155cb680812 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/configuration.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/configuration.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/alerts-table/constants.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/constants.ts similarity index 91% rename from src/platform/packages/shared/response-ops/alerts-table/constants.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/constants.ts index 190f2f2127cec..0ed1f5c7a8722 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/constants.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/constants.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiIconType } from '@elastic/eui/src/components/icon/icon'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/contexts/alerts_table_context.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/contexts/alerts_table_context.tsx similarity index 68% rename from src/platform/packages/shared/response-ops/alerts-table/contexts/alerts_table_context.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/contexts/alerts_table_context.tsx index 7583c671e32b7..c41209bb51b25 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/contexts/alerts_table_context.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/contexts/alerts_table_context.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/contexts/individual_tags_action_context.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/contexts/individual_tags_action_context.tsx similarity index 72% rename from src/platform/packages/shared/response-ops/alerts-table/contexts/individual_tags_action_context.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/contexts/individual_tags_action_context.tsx index 50881afe7b213..4d9d8b72eca2e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/contexts/individual_tags_action_context.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/contexts/individual_tags_action_context.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alert_muted_state.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alert_muted_state.ts similarity index 68% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_alert_muted_state.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alert_muted_state.ts index dada59bcf06da..51124905f6e1f 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alert_muted_state.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alert_muted_state.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.test.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.test.tsx index d14a823d173b2..8d4912be42b15 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { act, renderHook } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.tsx index d860dad0d926e..65892298103ed 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_configuration.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useCallback, useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.test.ts similarity index 91% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.test.ts index 4caa30debec08..676f5f1db57c6 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.ts similarity index 89% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.ts index ea08f0ac0c499..a7a0d0a11fda7 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_alerts_table_query_params.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Dispatch, SetStateAction } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.test.tsx similarity index 98% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.test.tsx index 86ff290c79567..5fda08070ad11 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.ts similarity index 97% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.ts index ae070cd0fe17b..cd9139f05af39 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_actions.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type React from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.test.tsx similarity index 87% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.test.tsx index fedfab650e416..4a7db9182836e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook, waitFor } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.tsx index f63c8416c6f44..086e58387104c 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_cases.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.test.tsx index 940e71a370fff..a019fa17ae45b 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { renderHook, waitFor } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.tsx index b6c3251340cd2..98eb13ee129d3 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_get_maintenance_windows.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts.tsx index 0370ef1c687c4..34dd6329786e7 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts_by_query.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts_by_query.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts_by_query.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts_by_query.tsx index a6a4bd84b05d6..b946c7ac3576b 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts_by_query.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_untrack_alerts_by_query.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.test.tsx index e8f6aefc49643..f5f16cea4f754 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.tsx index 134730bdb7d07..6253f218cfecc 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_bulk_update_alert_tags.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.test.tsx similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.test.tsx index 606849464da40..f0ccb96bb9d92 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.ts similarity index 73% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.ts index 14b2d2559e61f..89ef717eaf2bc 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_case_view_navigation.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { generatePath } from 'react-router-dom'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.test.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.test.tsx index 0a4630b697ae1..1e6f18bc5e98d 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.ts similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.ts index d75260ac279c7..170492d6a6d5d 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_columns.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Dispatch, SetStateAction } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.test.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.test.tsx index a792696129fc0..c4e8026cde30e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useControllableState } from './use_controllable_state'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.ts similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.ts index 32792d2854cd3..b225953eba972 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_controllable_state.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_field_formatter.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_field_formatter.ts similarity index 69% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_field_formatter.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_field_formatter.ts index e51e6bafe411f..54f43f8af129e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_field_formatter.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_field_formatter.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { FieldFormatParams } from '@kbn/field-formats-plugin/common'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_license.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_license.test.ts similarity index 78% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_license.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_license.test.ts index 8e452d17ca927..3d235f2665d6f 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_license.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_license.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { BehaviorSubject } from 'rxjs'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_license.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_license.ts similarity index 72% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_license.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_license.ts index f370ad555815f..2582000487f16 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_license.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_license.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ILicense, LicenseType } from '@kbn/licensing-types'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.test.ts similarity index 82% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.test.ts index e0be04c602389..700c03dc4f41f 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useSorting } from './use_sorting'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.ts similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.ts index 86f3a1f11946f..33afcc482bdb4 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_sorting.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiDataGridSorting } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_toolbar_visibility.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_toolbar_visibility.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/alerts-table/hooks/use_toolbar_visibility.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_toolbar_visibility.tsx index 2c42376cb2638..4bbdfb28f7ae6 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/hooks/use_toolbar_visibility.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/hooks/use_toolbar_visibility.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { diff --git a/x-pack/platform/packages/shared/response-ops/alerts-table/index.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/index.ts new file mode 100644 index 0000000000000..0eafa227e37c9 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { AlertsTable } from './components/alerts_table'; +export { AlertsTable } from './components/alerts_table'; +// Lazy load helper +// eslint-disable-next-line import/no-default-export +export default AlertsTable; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-table/jest.config.js b/x-pack/platform/packages/shared/response-ops/alerts-table/jest.config.js new file mode 100644 index 0000000000000..5875afb61826e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/alerts-table'], + setupFilesAfterEnv: [ + '/x-pack/platform/packages/shared/response-ops/alerts-table/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/alerts-table/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/alerts-table/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-table/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/alerts-table/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/alerts-table/mocks/cases.mock.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/mocks/cases.mock.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/alerts-table/mocks/cases.mock.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/mocks/cases.mock.tsx index 91cc623429ec6..1ff37e1d9a88b 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/mocks/cases.mock.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/mocks/cases.mock.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/mocks/context.mock.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/mocks/context.mock.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/alerts-table/mocks/context.mock.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/mocks/context.mock.tsx index d2b474c2d9f16..a60d8012a96bc 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/mocks/context.mock.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/mocks/context.mock.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Alert, BrowserFields, LegacyField } from '@kbn/alerting-types'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/mocks/maintenance_windows.mock.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/mocks/maintenance_windows.mock.ts similarity index 76% rename from src/platform/packages/shared/response-ops/alerts-table/mocks/maintenance_windows.mock.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/mocks/maintenance_windows.mock.ts index 957cc8ab66474..c32cbd32b2472 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/mocks/maintenance_windows.mock.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/mocks/maintenance_windows.mock.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { MaintenanceWindowStatus } from '@kbn/maintenance-windows-plugin/common'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/moon.yml b/x-pack/platform/packages/shared/response-ops/alerts-table/moon.yml similarity index 96% rename from src/platform/packages/shared/response-ops/alerts-table/moon.yml rename to x-pack/platform/packages/shared/response-ops/alerts-table/moon.yml index 991d602751648..a7609b7df00f7 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/alerts-table + sourceRoot: x-pack/platform/packages/shared/response-ops/alerts-table dependsOn: - '@kbn/rule-data-utils' - '@kbn/i18n' diff --git a/src/platform/packages/shared/response-ops/alerts-table/package.json b/x-pack/platform/packages/shared/response-ops/alerts-table/package.json similarity index 57% rename from src/platform/packages/shared/response-ops/alerts-table/package.json rename to x-pack/platform/packages/shared/response-ops/alerts-table/package.json index 61543bb5695c2..8779cc2f2cc57 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/package.json +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-alerts-table", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/x-pack/platform/packages/shared/response-ops/alerts-table/query_client.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/query_client.ts new file mode 100644 index 0000000000000..5813d44d66bc6 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/query_client.ts @@ -0,0 +1,10 @@ +/* + * 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 { QueryClient } from '@kbn/react-query'; + +export const alertsTableQueryClient = new QueryClient(); diff --git a/src/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.test.tsx similarity index 98% rename from src/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.test.tsx index 3a9ba774f0032..84322f0bc9a29 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo, useReducer } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.ts similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.ts index 1f67c7abd6327..11478f0d9cef3 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/reducers/bulk_actions_reducer.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { BulkActionsReducerAction, BulkActionsState } from '../types'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/schemas/alerts_table_configuration_schema.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/schemas/alerts_table_configuration_schema.ts similarity index 69% rename from src/platform/packages/shared/response-ops/alerts-table/schemas/alerts_table_configuration_schema.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/schemas/alerts_table_configuration_schema.ts index 34ab657145838..979d15f22aed5 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/schemas/alerts_table_configuration_schema.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/schemas/alerts_table_configuration_schema.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { z } from '@kbn/zod'; diff --git a/x-pack/platform/packages/shared/response-ops/alerts-table/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/setup_tests.ts new file mode 100644 index 0000000000000..5bdf388e23c50 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/setup_tests.ts @@ -0,0 +1,10 @@ +/* + * 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. + */ + +/* eslint-disable import/no-extraneous-dependencies */ +import '@testing-library/jest-dom'; +import '@emotion/jest'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/translations.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/translations.ts similarity index 96% rename from src/platform/packages/shared/response-ops/alerts-table/translations.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/translations.ts index a3cf81277d6dd..bd3e7d830695b 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/translations.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/translations.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/tsconfig.json b/x-pack/platform/packages/shared/response-ops/alerts-table/tsconfig.json similarity index 100% rename from src/platform/packages/shared/response-ops/alerts-table/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/alerts-table/tsconfig.json diff --git a/src/platform/packages/shared/response-ops/alerts-table/types.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/types.ts similarity index 98% rename from src/platform/packages/shared/response-ops/alerts-table/types.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/types.ts index aba95491f6dae..206bd7c4cd7c9 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/types.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.test.ts similarity index 65% rename from src/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.test.ts index 37aebe455319a..ed53c6922bde3 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { applySetStateAction } from './apply_set_state_action'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.ts similarity index 50% rename from src/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.ts index eccdb2a00868f..8d1ff103e847e 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/apply_set_state_action.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { SetStateAction } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.test.ts similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.test.ts index 4685d3b139372..c09e553872886 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { applyColumnsConfiguration } from './columns_configuration'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.ts similarity index 73% rename from src/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.ts index 4b8a05c9903a9..7d45b873bb705 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/columns_configuration.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiDataGridColumn } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.test.ts similarity index 83% rename from src/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.test.ts index 73bc875328a3c..66fa858e685f5 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { MockedKeys } from '@kbn/utility-types-jest'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.ts similarity index 64% rename from src/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.ts index 0d5827f580751..548438f84a1b8 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/local_storage_wrapper.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { IStorage, IStorageWrapper } from '@kbn/kibana-utils-plugin/public'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/react.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/react.ts similarity index 60% rename from src/platform/packages/shared/response-ops/alerts-table/utils/react.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/react.ts index 7dc5504dd81c1..64aaf8e584398 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/react.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/react.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ReactElement } from 'react'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/test.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/test.ts similarity index 84% rename from src/platform/packages/shared/response-ops/alerts-table/utils/test.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/test.ts index 728e3288fbfd4..6a16ddfb1be90 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/test.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { DeepPartial } from 'utility-types'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.test.tsx b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.test.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.test.tsx rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.test.tsx index 45ea3bc4bf6be..7f57c63220ce9 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { toggleColumn, toggleVisibleColumn } from './toggle_column'; diff --git a/src/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.ts b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.ts similarity index 88% rename from src/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.ts rename to x-pack/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.ts index 887d6c2289445..542558bed6eef 100644 --- a/src/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.ts +++ b/x-pack/platform/packages/shared/response-ops/alerts-table/utils/toggle_column.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiDataGridColumn } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/form-generator/README.md b/x-pack/platform/packages/shared/response-ops/form-generator/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/form-generator/README.md rename to x-pack/platform/packages/shared/response-ops/form-generator/README.md diff --git a/x-pack/platform/packages/shared/response-ops/form-generator/index.ts b/x-pack/platform/packages/shared/response-ops/form-generator/index.ts new file mode 100644 index 0000000000000..77d5be1c582e4 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/form-generator/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 { generateFormFields } from './src/form'; diff --git a/x-pack/platform/packages/shared/response-ops/form-generator/jest.config.js b/x-pack/platform/packages/shared/response-ops/form-generator/jest.config.js new file mode 100644 index 0000000000000..42cd1c8f0b9c3 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/form-generator/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/form-generator'], + setupFilesAfterEnv: [ + '/x-pack/platform/packages/shared/response-ops/form-generator/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/form-generator/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/form-generator/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/form-generator/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/form-generator/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/form-generator/moon.yml b/x-pack/platform/packages/shared/response-ops/form-generator/moon.yml similarity index 93% rename from src/platform/packages/shared/response-ops/form-generator/moon.yml rename to x-pack/platform/packages/shared/response-ops/form-generator/moon.yml index fd3c42e2d87a5..20e58baf12968 100644 --- a/src/platform/packages/shared/response-ops/form-generator/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/form-generator/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/form-generator + sourceRoot: x-pack/platform/packages/shared/response-ops/form-generator dependsOn: - '@kbn/zod' - '@kbn/i18n-react' diff --git a/src/platform/packages/shared/response-ops/form-generator/package.json b/x-pack/platform/packages/shared/response-ops/form-generator/package.json similarity index 57% rename from src/platform/packages/shared/response-ops/form-generator/package.json rename to x-pack/platform/packages/shared/response-ops/form-generator/package.json index f4dcd6c85bc6f..cae39266741c5 100644 --- a/src/platform/packages/shared/response-ops/form-generator/package.json +++ b/x-pack/platform/packages/shared/response-ops/form-generator/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-form-generator", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/x-pack/platform/packages/shared/response-ops/form-generator/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/form-generator/setup_tests.ts new file mode 100644 index 0000000000000..5bdf388e23c50 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/form-generator/setup_tests.ts @@ -0,0 +1,10 @@ +/* + * 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. + */ + +/* eslint-disable import/no-extraneous-dependencies */ +import '@testing-library/jest-dom'; +import '@emotion/jest'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/field_builder.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/field_builder.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/form-generator/src/field_builder.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/field_builder.test.tsx index 6ca10dc17f8b6..c945ee77b9823 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/field_builder.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/field_builder.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/field_builder.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/field_builder.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/form-generator/src/field_builder.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/field_builder.tsx index ac44bf4e15bd1..e64098ecb5e68 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/field_builder.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/field_builder.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/form.stories.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/form.stories.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/form-generator/src/form.stories.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/form.stories.tsx index c5e946a7909fb..ef688b3d9a679 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/form.stories.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/form.stories.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/form.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/form.test.tsx similarity index 98% rename from src/platform/packages/shared/response-ops/form-generator/src/form.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/form.test.tsx index db6d39f933ee7..68b1b8fa7c66e 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/form.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/form.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/form.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/form.tsx similarity index 78% rename from src/platform/packages/shared/response-ops/form-generator/src/form.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/form.tsx index 1a14566b2945f..8d6d287768dfb 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/form.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/form.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { z } from '@kbn/zod/v4'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/schema_connector_metadata.ts b/x-pack/platform/packages/shared/response-ops/form-generator/src/schema_connector_metadata.ts similarity index 54% rename from src/platform/packages/shared/response-ops/form-generator/src/schema_connector_metadata.ts rename to x-pack/platform/packages/shared/response-ops/form-generator/src/schema_connector_metadata.ts index f97634dfbb524..509a78979fd7c 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/schema_connector_metadata.ts +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/schema_connector_metadata.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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. */ // In the long-term, we'll want to remove the connector_spec dependency from this package diff --git a/src/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.test.ts b/x-pack/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.test.ts similarity index 98% rename from src/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.test.ts rename to x-pack/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.test.ts index 1557859a1448b..6f6ec00d9e731 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.test.ts +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { z } from '@kbn/zod/v4'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.ts b/x-pack/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.ts similarity index 83% rename from src/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.ts rename to x-pack/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.ts index 20651f70b3033..e6d560b99cf87 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.ts +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/schema_extract_core.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { z } from '@kbn/zod/v4'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.test.tsx index 64ca881b208b3..05301c3e5b30d 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.tsx index 3b73a37c33fc9..5be138e1a52b2 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/discriminated_union_widget.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/index.ts b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/index.ts new file mode 100644 index 0000000000000..70ce710854af7 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/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 './discriminated_union_widget'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.serializer.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.serializer.test.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.serializer.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.serializer.test.tsx index fd5858f3e038e..808d899ca06d2 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.serializer.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.serializer.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.test.tsx index 01931f70ca24c..5a50593307e83 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.tsx index 6e05509102efd..2e123b4f32e2c 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/multi_option_union_widget.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState, useEffect, useRef } from 'react'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.test.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.test.tsx index ec182fd2a9ef7..3bc63e2ce7f11 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.tsx index 71a600258636c..b4bf96067db7b 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/discriminated_union_widget/single_option_union_widget.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type React from 'react'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/hidden_widget.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/hidden_widget.tsx similarity index 67% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/hidden_widget.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/hidden_widget.tsx index e88a4d3c22d55..01a0b1f512190 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/hidden_widget.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/hidden_widget.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.test.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.test.tsx index 1882ad42ba106..9dc276bff3d39 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.tsx similarity index 74% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.tsx index 5464113b47dab..16b941897f282 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/object_widget.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.test.tsx index 3020f94a8b653..bc9b6337433a6 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.tsx similarity index 71% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.tsx index 3d7d16589797a..27994d71be1fc 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/password_widget.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.test.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.test.tsx index 7ea86dedf5af1..cc30e364823c6 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.tsx similarity index 78% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.tsx index 40863b23b07a9..82d71275c58dd 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/select_widget.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.test.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.test.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.test.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.test.tsx index 114b8f28bfe3e..2f002296af552 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.tsx b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.tsx similarity index 67% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.tsx rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.tsx index 4f5c86c0c8917..1a681fbb05b2d 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.tsx +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/components/text_widget.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/index.ts b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/index.ts new file mode 100644 index 0000000000000..b061fcac23daa --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/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 { getWidgetComponent } from './registry'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/registry.test.ts b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/registry.test.ts similarity index 94% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/registry.test.ts rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/registry.test.ts index 0b74cec610039..49846454a8d9f 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/registry.test.ts +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/registry.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { z } from '@kbn/zod/v4'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/registry.ts b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/registry.ts similarity index 86% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/registry.ts rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/registry.ts index 8db99d09bd4ea..c248680a2a94b 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/registry.ts +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/registry.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { z } from '@kbn/zod/v4'; diff --git a/src/platform/packages/shared/response-ops/form-generator/src/widgets/types.ts b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/types.ts similarity index 79% rename from src/platform/packages/shared/response-ops/form-generator/src/widgets/types.ts rename to x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/types.ts index 2a1a1878accc7..97242fdc60448 100644 --- a/src/platform/packages/shared/response-ops/form-generator/src/widgets/types.ts +++ b/x-pack/platform/packages/shared/response-ops/form-generator/src/widgets/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ValidationFunc } from '@kbn/es-ui-shared-plugin/static/forms/hook_form_lib'; diff --git a/src/platform/packages/shared/response-ops/form-generator/tsconfig.json b/x-pack/platform/packages/shared/response-ops/form-generator/tsconfig.json similarity index 100% rename from src/platform/packages/shared/response-ops/form-generator/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/form-generator/tsconfig.json diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/README.md b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/README.md rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/README.md diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.test.tsx b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.test.tsx rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.test.tsx index 9686e4aea3c27..43ccf73826e10 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.tsx b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.tsx rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.tsx index bf7ab898f925c..f282d2d5371a1 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.tsx +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/custom_recurring_schedule.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { memo, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.test.tsx b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.test.tsx rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.test.tsx index fd2549ef6ac83..14f28874b64ef 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.tsx b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.tsx rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.tsx index 647b1701e60e3..5febd2c0aacb9 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.tsx +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/components/recurring_schedule_form_fields.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { memo, useMemo, useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/constants.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/constants.ts similarity index 90% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/constants.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/constants.ts index 916a37d0acd4a..21e3bc98d8940 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/constants.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/constants.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { Frequency } from '@kbn/rrule'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.test.ts similarity index 83% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.test.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.test.ts index 53db3256e0b59..2d698fb9fc7f3 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.test.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.ts similarity index 58% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.ts index b3d31feedd89a..4464f0ad32beb 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/converters/moment.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/jest.config.js b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/jest.config.js new file mode 100644 index 0000000000000..6c0d8253d6df0 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/recurring-schedule-form'], + setupFilesAfterEnv: [ + '/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/moon.yml b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/moon.yml similarity index 93% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/moon.yml rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/moon.yml index 4f5d58d8cd7d8..6acf0879cf19d 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/recurring-schedule-form + sourceRoot: x-pack/platform/packages/shared/response-ops/recurring-schedule-form dependsOn: - '@kbn/rrule' - '@kbn/es-ui-shared-plugin' diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/package.json b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/package.json similarity index 60% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/package.json rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/package.json index ee843c3b9c5ac..5f47837cc4460 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/package.json +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-recurring-schedule-form", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/schemas/recurring_schedule_form_schema.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/schemas/recurring_schedule_form_schema.ts similarity index 83% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/schemas/recurring_schedule_form_schema.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/schemas/recurring_schedule_form_schema.ts index 5498db958b7a4..4a012f223caf5 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/schemas/recurring_schedule_form_schema.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/schemas/recurring_schedule_form_schema.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { Frequency } from '@kbn/rrule'; diff --git a/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/setup_tests.ts new file mode 100644 index 0000000000000..72e0edd0d07f7 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/setup_tests.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. + */ + +// eslint-disable-next-line import/no-extraneous-dependencies +import '@testing-library/jest-dom'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/translations.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/translations.ts similarity index 96% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/translations.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/translations.ts index 57193426ed688..1d9550e07eb1c 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/translations.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/translations.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/tsconfig.json b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/tsconfig.json similarity index 100% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/tsconfig.json diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/types.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/types.ts similarity index 73% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/types.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/types.ts index 46717ef5e889c..d92ed7c38b8af 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/types.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Frequency, WeekdayStr, Options } from '@kbn/rrule'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.test.ts similarity index 95% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.test.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.test.ts index 7de189237ca81..a8fb03c9bef2b 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.test.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 moment from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.ts similarity index 87% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.ts index 5b88ecf69fcd9..d115d920e880f 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/convert_to_rrule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 moment from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.test.ts similarity index 75% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.test.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.test.ts index 0c53c9a28fbf0..963ce5084f2a8 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.test.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 moment from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.ts similarity index 66% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.ts index c88fafe687d60..01bfe9bc8469b 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_initial_by_weekday.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.test.ts similarity index 60% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.test.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.test.ts index 556bf4c96027b..b72b88f030712 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.test.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 moment from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.ts similarity index 56% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.ts index 72f6ef8247061..250137a8af0ad 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_nth_by_weekday.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.test.ts similarity index 65% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.test.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.test.ts index c9217b5440922..35f3832db3a33 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.test.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 moment from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.ts similarity index 62% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.ts index c1f21296a0100..52ccf47fa2b1f 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_presets.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.test.ts similarity index 74% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.test.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.test.ts index 0797eb6b522bf..894165bd5a3b4 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.test.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 moment from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.ts similarity index 56% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.ts index 13582d5161696..0aa2b2470c186 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/get_weekday_info.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.test.ts new file mode 100644 index 0000000000000..98c50dbf772fa --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.test.ts @@ -0,0 +1,15 @@ +/* + * 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 moment from 'moment'; +import { monthDayDate } from './month_day_date'; + +describe('monthDayDate', () => { + test('should parse the month and date', () => { + expect(monthDayDate(moment('2023-03-23'))).toEqual('March 23'); + }); +}); diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.ts similarity index 63% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.ts index 82d25e5fbbf57..8c055489e713e 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/month_day_date.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.test.ts similarity index 73% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.test.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.test.ts index 77bd4a7260161..1ef04733e2ee7 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.test.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { parseSchedule } from './parse_schedule'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.ts similarity index 75% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.ts index 2cd49294fc3e0..0ba00c3499480 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/parse_schedule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RecurringSchedule } from '../types'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.test.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.test.ts similarity index 93% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.test.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.test.ts index 97f1e6f7c788f..01895440a5976 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.test.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 moment from 'moment'; diff --git a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.ts b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.ts similarity index 92% rename from src/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.ts rename to x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.ts index c44893a07b085..f189c67219483 100644 --- a/src/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.ts +++ b/x-pack/platform/packages/shared/response-ops/recurring-schedule-form/utils/recurring_summary.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/src/platform/packages/shared/response-ops/rule_form/README.md b/x-pack/platform/packages/shared/response-ops/rule_form/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/rule_form/README.md rename to x-pack/platform/packages/shared/response-ops/rule_form/README.md diff --git a/src/platform/packages/shared/response-ops/rule_form/flyout/README.md b/x-pack/platform/packages/shared/response-ops/rule_form/flyout/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/rule_form/flyout/README.md rename to x-pack/platform/packages/shared/response-ops/rule_form/flyout/README.md diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/flyout/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/flyout/index.ts new file mode 100644 index 0000000000000..40af4fca05082 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/flyout/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 './rule_form_flyout'; +export { RuleForm } from '../src/rule_form'; diff --git a/src/platform/packages/shared/response-ops/rule_form/flyout/rule_form_flyout.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/flyout/rule_form_flyout.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/rule_form/flyout/rule_form_flyout.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/flyout/rule_form_flyout.tsx index 42dba0a50d780..bb4bc4d25d3b1 100644 --- a/src/platform/packages/shared/response-ops/rule_form/flyout/rule_form_flyout.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/flyout/rule_form_flyout.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiFlyoutResizableProps } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/rule_form/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/index.ts similarity index 65% rename from src/platform/packages/shared/response-ops/rule_form/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/index.ts index 5dadfe7494301..a782dfd380479 100644 --- a/src/platform/packages/shared/response-ops/rule_form/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type * from './src/types'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/jest.config.js b/x-pack/platform/packages/shared/response-ops/rule_form/jest.config.js new file mode 100644 index 0000000000000..761d09cee9f14 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/rule_form'], + setupFilesAfterEnv: [ + '/x-pack/platform/packages/shared/response-ops/rule_form/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/rule_form/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/rule_form/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/rule_form/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/rule_form/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/rule_form/lib/README.md b/x-pack/platform/packages/shared/response-ops/rule_form/lib/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/rule_form/lib/README.md rename to x-pack/platform/packages/shared/response-ops/rule_form/lib/README.md diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/lib/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/lib/index.ts new file mode 100644 index 0000000000000..c8bba0e2bd3fe --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/lib/index.ts @@ -0,0 +1,10 @@ +/* + * 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 './is_valid_rule_form_plugins'; +export * from './rule_flyout_ui_context'; +export * from './rule_form_error_prompt_wrapper'; diff --git a/src/platform/packages/shared/response-ops/rule_form/lib/is_valid_rule_form_plugins.ts b/x-pack/platform/packages/shared/response-ops/rule_form/lib/is_valid_rule_form_plugins.ts similarity index 70% rename from src/platform/packages/shared/response-ops/rule_form/lib/is_valid_rule_form_plugins.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/lib/is_valid_rule_form_plugins.ts index ed4d9abdaeb3f..cccd4afb7f211 100644 --- a/src/platform/packages/shared/response-ops/rule_form/lib/is_valid_rule_form_plugins.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/lib/is_valid_rule_form_plugins.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleFormProps } from '../src/rule_form'; diff --git a/src/platform/packages/shared/response-ops/rule_form/lib/rule_flyout_ui_context.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/lib/rule_flyout_ui_context.tsx similarity index 74% rename from src/platform/packages/shared/response-ops/rule_form/lib/rule_flyout_ui_context.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/lib/rule_flyout_ui_context.tsx index fd077f8fd02a2..c62c742282f6b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/lib/rule_flyout_ui_context.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/lib/rule_flyout_ui_context.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { createContext, useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/lib/rule_form_error_prompt_wrapper.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/lib/rule_form_error_prompt_wrapper.tsx similarity index 65% rename from src/platform/packages/shared/response-ops/rule_form/lib/rule_form_error_prompt_wrapper.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/lib/rule_form_error_prompt_wrapper.tsx index 51f96829d2863..3a9a7a3f76625 100644 --- a/src/platform/packages/shared/response-ops/rule_form/lib/rule_form_error_prompt_wrapper.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/lib/rule_form_error_prompt_wrapper.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/moon.yml b/x-pack/platform/packages/shared/response-ops/rule_form/moon.yml similarity index 96% rename from src/platform/packages/shared/response-ops/rule_form/moon.yml rename to x-pack/platform/packages/shared/response-ops/rule_form/moon.yml index 35c7b16dec39d..5c2df2885cf0d 100644 --- a/src/platform/packages/shared/response-ops/rule_form/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/rule_form/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/rule_form + sourceRoot: x-pack/platform/packages/shared/response-ops/rule_form dependsOn: - '@kbn/alerting-types' - '@kbn/i18n' diff --git a/src/platform/packages/shared/response-ops/rule_form/package.json b/x-pack/platform/packages/shared/response-ops/rule_form/package.json similarity index 56% rename from src/platform/packages/shared/response-ops/rule_form/package.json rename to x-pack/platform/packages/shared/response-ops/rule_form/package.json index c3a412a09c9bb..1bd982914bf3f 100644 --- a/src/platform/packages/shared/response-ops/rule_form/package.json +++ b/x-pack/platform/packages/shared/response-ops/rule_form/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-rule-form", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/rule_form/setup_tests.ts new file mode 100644 index 0000000000000..72e0edd0d07f7 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/setup_tests.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. + */ + +// eslint-disable-next-line import/no-extraneous-dependencies +import '@testing-library/jest-dom'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.test.ts similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.test.ts index 7e3cbc3dd3b8b..24f2610f4c954 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core/public/mocks'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.ts similarity index 66% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.ts index b05813c080544..6c8fd32a27fea 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/create_rule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpSetup } from '@kbn/core/public'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/index.ts new file mode 100644 index 0000000000000..24604d4baca39 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/index.ts @@ -0,0 +1,10 @@ +/* + * 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 type * from './types'; +export * from './create_rule'; +export * from './transform_create_rule_body'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.test.ts similarity index 87% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.test.ts index 4fe0456970816..0f304eae3d9ba 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { transformCreateRuleBody } from './transform_create_rule_body'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.ts similarity index 81% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.ts index ae59d1fd6c011..460303a8cccbf 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/transform_create_rule_body.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RewriteResponseCase } from '@kbn/actions-types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/types.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/types.ts similarity index 65% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/types.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/types.ts index 8da57271ff7d2..bd8ec135c7ddf 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/types.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Rule, RuleTypeParams } from '../../types'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/index.ts new file mode 100644 index 0000000000000..36615c1bac138 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/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 './load_rule_template'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/load_rule_template.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/load_rule_template.ts similarity index 65% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/load_rule_template.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/load_rule_template.ts index 4abcb9e0036e2..a8a8ac1d50e4d 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/load_rule_template.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/create_rule_from_template/load_rule_template.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpSetup } from '@kbn/core/public'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.test.ts similarity index 60% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.test.ts index f952b1780813c..c1c4051bc7f30 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core/public/mocks'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.ts similarity index 52% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.ts index 165bbb054035c..e2ff1920bb0a0 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/fetch_ui_config.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/index.ts new file mode 100644 index 0000000000000..138f9a731f5ae --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/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 type * from './types'; +export * from './fetch_ui_config'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/types.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/types.ts new file mode 100644 index 0000000000000..203ecd94ebcc1 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/fetch_ui_config/types.ts @@ -0,0 +1,14 @@ +/* + * 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 interface UiConfig { + isUsingSecurity: boolean; + minimumScheduleInterval?: { + value: string; + enforce: boolean; + }; +} diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/index.ts new file mode 100644 index 0000000000000..1ced0c6ddbae1 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/index.ts @@ -0,0 +1,12 @@ +/* + * 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 './create_rule'; +export * from './fetch_ui_config'; +export * from './resolve_rule'; +export * from './update_rule'; +export * from './create_rule_from_template'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/index.ts new file mode 100644 index 0000000000000..8766edd9ed44d --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/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 './resolve_rule'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.test.ts similarity index 89% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.test.ts index c7c8634dd2a3f..bce67275419c2 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core/public/mocks'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.ts similarity index 64% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.ts index 5502e44ca36f2..9b68a8fb5a52f 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/resolve_rule/resolve_rule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpSetup } from '@kbn/core-http-browser'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/index.ts new file mode 100644 index 0000000000000..b272eccb0e424 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/index.ts @@ -0,0 +1,10 @@ +/* + * 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 type * from './types'; +export * from './transform_update_rule_body'; +export * from './update_rule'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.test.ts similarity index 87% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.test.ts index a001b359117e3..8af788b2353c4 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleTypeParams } from '../../types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.ts similarity index 81% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.ts index 8c8639b6226b2..b205415dded2c 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/transform_update_rule_body.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RewriteResponseCase } from '@kbn/actions-types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/types.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/types.ts similarity index 61% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/types.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/types.ts index 09378e0b1256b..5fe948c91b222 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/types.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Rule, RuleTypeParams } from '../../types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.test.ts similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.test.ts index 6bd398607458d..ddfcd302084a4 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { httpServiceMock } from '@kbn/core/public/mocks'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.ts similarity index 76% rename from src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.ts index bbacc4496a0bb..8a7e72ff41f18 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/apis/update_rule/update_rule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpSetup } from '@kbn/core/public'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/index.ts new file mode 100644 index 0000000000000..268777761f9c9 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/index.ts @@ -0,0 +1,14 @@ +/* + * 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 './use_create_rule'; +export * from './use_load_connector_types'; +export * from './use_load_connectors'; +export * from './use_load_ui_config'; +export * from './use_resolve_rule'; +export * from './use_update_rule'; +export * from './use_load_rule_type_alert_fields'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.test.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.test.tsx index 249c9841d5960..b5fc26a70e610 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.ts similarity index 69% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.ts index 487abb1b7b2fc..d92a101448c9b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_create_rule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMutation } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.test.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.test.tsx index 609e68f3b139a..aa7b306634084 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.ts similarity index 72% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.ts index 3148706c005c0..f04b0a8565f0a 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connector_types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useQuery } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.test.tsx similarity index 87% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.test.tsx index 49d1c0f81ae57..802786954c873 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.ts similarity index 71% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.ts index ee9b895e2078d..6a954fd9bae6f 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_connectors.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useQuery } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.test.tsx similarity index 81% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.test.tsx index 7cd7f6b61b70c..609bc4b39d17f 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.ts similarity index 82% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.ts index b2cc2df2da5b4..0c985da74d348 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_rule_type_alert_fields.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ActionVariable } from '@kbn/alerting-types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_ui_config.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_ui_config.ts similarity index 67% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_ui_config.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_ui_config.ts index bef27aac8722b..b0246d608ab7b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_ui_config.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_load_ui_config.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useQuery } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.test.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.test.tsx index fcf27ce4d9e36..3003c5dba9f9b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.ts similarity index 76% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.ts index 5297229b382a9..5806de6aa854d 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_resolve_rule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useQuery } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.test.tsx similarity index 90% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.test.tsx index d249407518613..6fe92d1bca2ca 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.tsx similarity index 72% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.tsx index f0559aed9c5a4..61ca948ad0540 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_rule_template.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useQuery } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.test.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.test.tsx index 30817fd0d07a1..117ae14fbae55 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.ts similarity index 70% rename from src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.ts index 96cf1f268e3cf..a7031703fc822 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/hooks/use_update_rule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMutation } from '@kbn/react-query'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/i18n.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/i18n.ts similarity index 79% rename from src/platform/packages/shared/response-ops/rule_form/src/common/i18n.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/i18n.ts index 9cb100485ebbc..a200ba738a1af 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/i18n.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/i18n.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/index.ts new file mode 100644 index 0000000000000..d6aaa0f3a4aad --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/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 type * from './types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/test_utils/actions_test_utils.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/test_utils/actions_test_utils.ts similarity index 85% rename from src/platform/packages/shared/response-ops/rule_form/src/common/test_utils/actions_test_utils.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/test_utils/actions_test_utils.ts index 7d12a2a502f74..f711678d36ec9 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/test_utils/actions_test_utils.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/test_utils/actions_test_utils.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ActionType } from '@kbn/actions-types'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/transformations/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/transformations/index.ts new file mode 100644 index 0000000000000..4681b3ba80cb9 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/transformations/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 './transform_rule'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/common/transformations/transform_rule.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/transformations/transform_rule.ts similarity index 88% rename from src/platform/packages/shared/response-ops/rule_form/src/common/transformations/transform_rule.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/common/transformations/transform_rule.ts index dc11e04215ed7..93bead78b6b01 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/common/transformations/transform_rule.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/transformations/transform_rule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { AsApiContract, RewriteRequestCase } from '@kbn/actions-types'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/common/types/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/types/index.ts new file mode 100644 index 0000000000000..c1aadb05f4895 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/common/types/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 type * from '@kbn/alerts-ui-shared/src/common/types/rule_types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/confirm_create_rule.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/confirm_create_rule.tsx similarity index 75% rename from src/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/confirm_create_rule.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/confirm_create_rule.tsx index a5b6330561783..3556b58d38fe9 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/confirm_create_rule.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/confirm_create_rule.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/index.ts new file mode 100644 index 0000000000000..59f209a222ed2 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_create_rule/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 './confirm_create_rule'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/confirm_rule_close.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/confirm_rule_close.tsx similarity index 76% rename from src/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/confirm_rule_close.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/confirm_rule_close.tsx index 80da9044e33e8..f7a48b1fac3de 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/confirm_rule_close.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/confirm_rule_close.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/index.ts new file mode 100644 index 0000000000000..f6ade0219a998 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/confirm_rule_close/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 './confirm_rule_close'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/components/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/index.ts new file mode 100644 index 0000000000000..e49d3da92fd83 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/index.ts @@ -0,0 +1,10 @@ +/* + * 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 './request_code_block'; +export * from './confirm_create_rule'; +export * from './confirm_rule_close'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/index.ts new file mode 100644 index 0000000000000..367a0126c6167 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/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 './request_code_block'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/request_code_block.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/request_code_block.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/request_code_block.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/request_code_block.tsx index 39a12b0389564..1e7119595c588 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/request_code_block.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/components/request_code_block/request_code_block.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { omit, pick } from 'lodash'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/constants/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/constants/index.ts similarity index 82% rename from src/platform/packages/shared/response-ops/rule_form/src/constants/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/constants/index.ts index d9359c0138acf..479615df405d8 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/constants/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/constants/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { RuleNotifyWhen } from '@kbn/alerting-types'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/constants/routes.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/constants/routes.ts new file mode 100644 index 0000000000000..5678b8008b341 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/constants/routes.ts @@ -0,0 +1,10 @@ +/* + * 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 const BASE_ALERTING_API_PATH = '/api/alerting'; +export const INTERNAL_BASE_ALERTING_API_PATH = '/internal/alerting'; +export const BASE_TRIGGERS_ACTIONS_UI_API_PATH = '/internal/triggers_actions_ui'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/constants/rule_flapping.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/constants/rule_flapping.ts new file mode 100644 index 0000000000000..708a5d8e4c862 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/constants/rule_flapping.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. + */ + +// Feature flag for frontend rule specific flapping in rule flyout +export const IS_RULE_SPECIFIC_FLAPPING_ENABLED = true; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/create_rule_form.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/create_rule_form.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/create_rule_form.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/create_rule_form.tsx index 370087526e0e7..fa8be05808159 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/create_rule_form.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/create_rule_form.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/edit_rule_form.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/edit_rule_form.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/rule_form/src/edit_rule_form.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/edit_rule_form.tsx index a71af83cbb491..a3f9a9059bcab 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/edit_rule_form.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/edit_rule_form.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useMemo } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/index.ts new file mode 100644 index 0000000000000..26d790dcb8081 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/index.ts @@ -0,0 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +export * from './use_rule_form_dispatch'; +export * from './use_rule_form_state'; +export * from './use_rule_form_steps'; +export * from './use_rule_form_screen_context'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.test.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.test.tsx index 616ed0edd2692..bbfc3e1f0f2ad 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.ts similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.ts index 1ff65281ae077..305a4ce3fe610 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_load_dependencies.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_dispatch.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_dispatch.ts new file mode 100644 index 0000000000000..764cf4352bd7d --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_dispatch.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { useContext } from 'react'; +import { RuleFormReducerContext } from '../rule_form_state/rule_form_state_context'; + +export const useRuleFormDispatch = () => { + return useContext(RuleFormReducerContext); +}; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_screen_context.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_screen_context.ts new file mode 100644 index 0000000000000..3e740585d2a3f --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_screen_context.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { useContext } from 'react'; +import { RuleFormScreenContext } from '../rule_form_screen_context'; + +export const useRuleFormScreenContext = () => { + return useContext(RuleFormScreenContext); +}; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_state.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_state.ts new file mode 100644 index 0000000000000..6480fc0c1858c --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_state.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import { useContext } from 'react'; +import { RuleFormStateContext } from '../rule_form_state/rule_form_state_context'; + +export const useRuleFormState = () => { + return useContext(RuleFormStateContext); +}; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.test.tsx index 0bc603ec5cfba..4c636b76b4414 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.tsx index b1576f67335cf..c726673b8b02a 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/hooks/use_rule_form_steps.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { omit } from 'lodash'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/optional_field_label/index.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/optional_field_label/index.tsx new file mode 100644 index 0000000000000..f12b5da606c61 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/optional_field_label/index.tsx @@ -0,0 +1,17 @@ +/* + * 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 { EuiText } from '@elastic/eui'; +import React from 'react'; + +import * as i18n from '../translations'; + +export const OptionalFieldLabel = ( + + {i18n.OPTIONAL_LABEL} + +); diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/index.ts new file mode 100644 index 0000000000000..81a9d1b055d66 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/index.ts @@ -0,0 +1,11 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +export * from './rule_actions'; +export * from './rule_actions_notify_when'; +export * from './rule_actions_alerts_filter'; +export * from './rule_actions_alerts_filter_timeframe'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.test.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.test.tsx index deff748cb7195..d38cb290ef07b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.tsx index 53b33f534c419..56822fa4b0a77 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiButton, EuiFlexGroup, EuiFlexItem, EuiImage, EuiSpacer, EuiText } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.test.tsx index 9173ad72d642b..306003b73accf 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.tsx index 36c9c1b74b646..c7ef4bdd91f75 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { EuiSpacer, EuiSwitch } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.test.tsx index d83d02831194e..fd0494e4f8006 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.tsx index c203edce865c0..f94ebe059aaab 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_alerts_filter_timeframe.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Moment } from 'moment'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.test.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.test.tsx index ce76f78192a5c..787dc9f8c4ad5 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.tsx index 0daccfe54b293..db402aa8d6768 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_body.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiSelectableProps } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.test.tsx index 9baff17734bd9..a4704de5edb66 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.tsx index 30fb7a1fcbbec..06a699ec89f6b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_connectors_modal.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_illustration.svg b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_illustration.svg similarity index 100% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_illustration.svg rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_illustration.svg diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.test.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.test.tsx index cd6f8b52510ac..9f3dd4c610684 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.tsx similarity index 98% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.tsx index 6e27e4af14022..d99c828a5e366 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_item.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.test.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.test.tsx index 815262bae1dd4..867f37610522a 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { lazy } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.tsx index 43a94df244fb9..8a8a4cdd952a9 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_message.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { Suspense, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.test.tsx similarity index 90% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.test.tsx index 67d407805c3e9..322c7626af5a0 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.tsx index e6a4db7bb5d86..bdfdc4250feb1 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_notify_when.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState, useCallback, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.test.tsx index f24cfd9273479..0f82a562bae15 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.tsx index fce76c75409ef..f62f42786cb56 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_settings.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.test.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.test.tsx index 06602c4dc7734..04e8006412735 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.tsx index 9329d34fb9d42..c2347d43946ea 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_actions/rule_actions_system_actions_item.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/index.ts new file mode 100644 index 0000000000000..5abfa60db48a4 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/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 './rule_definition'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.test.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.test.tsx index 327a0ba12634c..3d69dbadbac7b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.tsx index a79f1f5efe447..6e02d41aa364e 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_alert_delay.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.test.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.test.tsx index 935aec998929d..570e9b49ea2ad 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.tsx index 3607c8c225fab..c67ca4f0afd5c 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_consumer_selection.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo, useCallback } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.test.tsx index 16ed9aaa4fa79..ed6a670a73216 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { type ReactNode } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.tsx index 4d673f4064b85..15a6f34992bee 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_definition.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.test.tsx similarity index 89% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.test.tsx index 89bdb5b19b801..0f07a2e99f41e 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.tsx index 87257780855c3..b127011144040 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_definition/rule_schedule.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo, useCallback } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/index.ts new file mode 100644 index 0000000000000..ac78394c868ec --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/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 './rule_details'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.test.tsx similarity index 64% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.test.tsx index 458663bb5b123..6998c1ef6e424 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.tsx similarity index 60% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.tsx index 461a774da21ed..2f7953f5b5b62 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/label_with_tooltip.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_dashboards.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_dashboards.tsx similarity index 85% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_dashboards.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_dashboards.tsx index 386356e5b6bc0..87a44c5742f3e 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_dashboards.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_dashboards.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.test.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.test.tsx index 5e2117ed54f46..22abc876a4fb2 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.tsx index 0c6031a22f928..e98dcf329167c 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_details.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.test.tsx similarity index 81% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.test.tsx index 8605a68a94093..3323136a35047 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.tsx similarity index 85% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.tsx index 2f31d5b81a08e..b5d34183023cd 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_details/rule_investigation_guide_editor.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiMarkdownAstNode, EuiMarkdownParseError } from '@elastic/eui'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/index.ts new file mode 100644 index 0000000000000..fc5dd2fec2580 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/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 './rule_flyout'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.test.tsx index 54624c7b7dff8..9cff0e7943a23 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.tsx index b7c63950880e0..c8f7a62702737 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState, useCallback, useMemo, useEffect } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx index 814652f2eb03a..2e2cc5f6f92cc 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_body.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_create_footer.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_create_footer.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_create_footer.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_create_footer.tsx index caacacb9240dc..87b98c26a627d 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_create_footer.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_create_footer.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_footer.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_footer.tsx similarity index 83% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_footer.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_footer.tsx index 59a43f7ee7cf7..2c0979555f8f4 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_footer.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_footer.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_tabs.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_tabs.tsx similarity index 70% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_tabs.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_tabs.tsx index 0af30276ff995..30bbe60e1929b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_tabs.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_edit_tabs.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_select_connector.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_select_connector.tsx similarity index 81% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_select_connector.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_select_connector.tsx index 1f17fb6435a49..bd4992d49d5b3 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_select_connector.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_select_connector.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_show_request.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_show_request.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_show_request.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_show_request.tsx index b5cf0682f42df..a2a95d128695d 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_show_request.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_flyout/rule_flyout_show_request.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form.tsx similarity index 93% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form.tsx index 6f526d1cba189..d24630e487186 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { EuiFlyoutResizableProps } from '@elastic/eui'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/index.ts similarity index 50% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/index.ts index c3cb2ef3b1c02..7d3a93535f2f7 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 './rule_form_health_check_error'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_action_permission_error.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_action_permission_error.tsx similarity index 65% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_action_permission_error.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_action_permission_error.tsx index 0bf755d0962a5..fc6ade90ca677 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_action_permission_error.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_action_permission_error.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.test.tsx similarity index 70% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.test.tsx index b0c4cfd0ecf0b..1c383d9ee778b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.tsx similarity index 78% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.tsx index 7add2847bab4c..e35b4b519d48b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_circuit_breaker_error.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { FC } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.test.tsx similarity index 90% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.test.tsx index 17cf37dde1ce0..373d38b87c5c1 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.tsx index af6b2760db272..dd1ce79d0d6b4 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_health_check_error.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_resolve_rule_error.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_resolve_rule_error.tsx similarity index 63% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_resolve_rule_error.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_resolve_rule_error.tsx index 9e468f74bd5c6..88215a3120530 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_resolve_rule_error.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_resolve_rule_error.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_rule_type_error.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_rule_type_error.tsx similarity index 64% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_rule_type_error.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_rule_type_error.tsx index bd218a0957f35..e3cce03bcb96a 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_rule_type_error.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_errors/rule_form_rule_type_error.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/index.ts new file mode 100644 index 0000000000000..bd95bb511611c --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/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 './rule_form_screen_context'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/rule_form_screen_context.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/rule_form_screen_context.tsx similarity index 77% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/rule_form_screen_context.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/rule_form_screen_context.tsx index 15c346266c922..534856dbced48 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/rule_form_screen_context.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_screen_context/rule_form_screen_context.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { createContext, useState } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/index.ts new file mode 100644 index 0000000000000..0f45951499c76 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/index.ts @@ -0,0 +1,10 @@ +/* + * 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 './rule_form_state_context'; +export * from './rule_form_state_provider'; +export * from './rule_form_state_reducer'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_context.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_context.tsx similarity index 60% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_context.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_context.tsx index 2e40c1bdeb1d4..3f94ae103f60d 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_context.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_context.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { createContext } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_provider.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_provider.tsx similarity index 86% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_provider.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_provider.tsx index 504528c303ebc..f307336d9b4c0 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_provider.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_provider.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useReducer, useState, useCallback } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.test.tsx index d4174e9195efd..12adf2e5648b9 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useReducer } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.ts similarity index 95% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.ts index 0a0bffeb62f56..6f3bf33c4cacf 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_form_state/rule_form_state_reducer.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleActionParams } from '@kbn/alerting-types'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/index.ts new file mode 100644 index 0000000000000..f480048735665 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/index.ts @@ -0,0 +1,10 @@ +/* + * 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 './rule_page'; +export * from './rule_page_name_input'; +export * from './rule_page_footer'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.test.tsx index fb76d92e52121..5be80d4de1802 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.tsx index bf7988fa742fb..69c76004a2b0d 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.test.tsx index 9bbfbe311bfec..50e4dfe354ef5 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.tsx index d5c8d6c32ade3..ee3586e85c37a 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_footer.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useMemo, useState } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.test.tsx similarity index 81% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.test.tsx index 4c0b0fa5e2cac..ae6f00404a10f 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.tsx similarity index 90% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.tsx index 4c78734163fee..4cbad47f01b72 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_name_input.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useState, useCallback, useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.test.tsx index f2f42cc2446f5..524301ae96200 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.tsx index 4033e878756f3..ad6d3a29acc44 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_page/rule_page_show_request_modal.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.test.ts similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.test.ts index b539278c3d411..3012b9969c5ab 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleTypeWithDescription } from '../../types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.ts similarity index 79% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.ts index 82b693eb7a331..4246cef6ff686 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/helpers/filter_and_count_rule_types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { countBy } from 'lodash'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/index.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/index.tsx similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/index.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/index.tsx index 10b66d8de14e8..1218f9a65a14a 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/index.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/index.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { countBy } from 'lodash'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.test.tsx similarity index 88% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.test.tsx index bb0658a71d481..c12fcbab568a7 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.tsx index 41897aa040f19..ee18894e2fe25 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_list.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useMemo, useCallback } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal.tsx similarity index 95% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal.tsx index 7d224bc6a2412..258acccc3c319 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal_component.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal_component.test.tsx similarity index 97% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal_component.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal_component.test.tsx index 6b53a34537605..bcacbb9b57ba9 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal_component.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/rule_type_modal_component.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.test.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.test.tsx similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.test.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.test.tsx index cbcafd6ba86c9..276ff29d85c82 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.tsx rename to x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.tsx index 0ab43d604413f..dc6b9cb0917aa 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.tsx +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/components/template_list.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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, { useCallback, useEffect, useRef } from 'react'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/index.tsx b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/index.tsx new file mode 100644 index 0000000000000..6f4f3ee73858f --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/index.tsx @@ -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 { RuleTypeModalComponent as RuleTypeModal } from './components'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/types.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/types.ts new file mode 100644 index 0000000000000..d7a8ba5ef60d6 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/rule_type_modal/types.ts @@ -0,0 +1,12 @@ +/* + * 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 type { RuleTypeWithDescription, RuleTypeIndexWithDescriptions } from '../common/types'; +export interface RuleTypeCountsByProducer { + total: number; + [x: string]: number; +} diff --git a/src/platform/packages/shared/response-ops/rule_form/src/translations.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/translations.ts similarity index 98% rename from src/platform/packages/shared/response-ops/rule_form/src/translations.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/translations.ts index d904b6b2c27d3..1c18a3549d3ba 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/translations.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/translations.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/types.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/types.ts similarity index 91% rename from src/platform/packages/shared/response-ops/rule_form/src/types.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/types.ts index c785594ae1ced..da1c2e6797f2f 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/types.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ActionType } from '@kbn/actions-types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.test.ts similarity index 86% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.test.ts index 4786865b28fd6..492514632e925 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { AlertConsumers, DEPRECATED_ALERTING_CONSUMERS } from '@kbn/rule-data-utils'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.ts similarity index 73% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.ts index bf503334903bf..1e4ed7296e4ad 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_consumers.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleCreationValidConsumer } from '@kbn/rule-data-utils'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_rule_types.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_rule_types.ts similarity index 87% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_rule_types.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_rule_types.ts index 8aa71b4e16fce..ef62b27ae1ff9 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_rule_types.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_authorized_rule_types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleCreationValidConsumer } from '@kbn/rule-data-utils'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_default_params.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_default_params.ts similarity index 59% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_default_params.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_default_params.ts index cc91320fd2d8b..e8d7f6054d04a 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_default_params.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_default_params.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ActionTypeModel, RuleTypeWithDescription } from '@kbn/alerts-ui-shared'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_consumer.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_consumer.ts similarity index 58% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_consumer.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_consumer.ts index 224c79da207fd..6558ee817f22e 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_consumer.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_consumer.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleTypeWithDescription } from '../common'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.test.ts similarity index 93% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.test.ts index 821cd3d16270e..d905bce5fa5ad 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleTypeWithDescription } from '@kbn/alerts-ui-shared'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.ts similarity index 87% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.ts index f05aa051d9f8d..1062dd6ca4e72 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_multi_consumer.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleCreationValidConsumer } from '@kbn/rule-data-utils'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_schedule.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_schedule.ts similarity index 74% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_schedule.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_schedule.ts index a0007faeab3bd..70253c48f862e 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_schedule.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_initial_schedule.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { parseDuration } from './parse_duration'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.test.ts similarity index 89% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.test.ts index 6e2fd6afeb707..0b8226ae34516 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleTypeModel, RuleTypeParams, RuleTypeWithDescription } from '../common'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.ts similarity index 78% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.ts index a8c512d06584b..9aee5a76d0974 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_selected_action_group.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.test.ts similarity index 77% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.test.ts index 5c26483eed2a4..83d6515bf7831 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { getTimeOptions, getTimeFieldOptions } from './get_time_options'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.ts similarity index 82% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.ts index f34c4f25aa83c..7ef3812dfd781 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/get_time_options.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.test.ts similarity index 70% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.test.ts index 2c43b9f728065..3a5b6abfe2790 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { AlertConsumers } from '@kbn/rule-data-utils'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.ts similarity index 62% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.ts index fd1009aaf655c..3391a15212041 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/has_alerts_fields.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { RuleCreationValidConsumer } from '@kbn/rule-data-utils'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/index.ts similarity index 59% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/index.ts index f3612142ea5ec..190342083f91b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 './get_time_options'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.test.ts similarity index 94% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.test.ts index 95aaff7b940fc..99dd3492c7518 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.ts similarity index 87% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.ts index 99da8ca29ddad..5fdfd6b2f22e6 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_duration.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { DEFAULT_RULE_INTERVAL } from '../constants'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/utils/parse_rule_circuit_breaker_error_message.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_rule_circuit_breaker_error_message.ts similarity index 55% rename from src/platform/packages/shared/response-ops/rule_form/src/utils/parse_rule_circuit_breaker_error_message.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_rule_circuit_breaker_error_message.ts index 46760bf000f0d..8162aa65ebbfe 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/utils/parse_rule_circuit_breaker_error_message.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/utils/parse_rule_circuit_breaker_error_message.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { errorMessageHeader } from '@kbn/alerting-types'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/index.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/index.ts new file mode 100644 index 0000000000000..bdacec1fbb15a --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/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 './validate_form'; +export * from './validate_params_for_warnings'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.test.ts similarity index 93% rename from src/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.test.ts index f9ecd9c0b105e..939a18df9be1b 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { diff --git a/src/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.ts similarity index 92% rename from src/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.ts index c57f4adc62e4e..de33f0ea81f22 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_form.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { isObject } from 'lodash'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.test.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.test.ts similarity index 85% rename from src/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.test.ts index fc7e7eeb531dd..a0153043867bd 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { ActionVariable } from '@kbn/alerting-types'; diff --git a/src/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.ts b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.ts similarity index 79% rename from src/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.ts rename to x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.ts index 0c3cc943dfe28..405c760857355 100644 --- a/src/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_form/src/validation/validate_params_for_warnings.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { i18n } from '@kbn/i18n'; diff --git a/src/platform/packages/shared/response-ops/rule_form/tsconfig.json b/x-pack/platform/packages/shared/response-ops/rule_form/tsconfig.json similarity index 100% rename from src/platform/packages/shared/response-ops/rule_form/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/rule_form/tsconfig.json diff --git a/src/platform/packages/shared/response-ops/rule_params/README.md b/x-pack/platform/packages/shared/response-ops/rule_params/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/README.md rename to x-pack/platform/packages/shared/response-ops/rule_params/README.md diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/index.ts new file mode 100644 index 0000000000000..349e3bb0b9139 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/index.ts @@ -0,0 +1,10 @@ +/* + * 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 { mlAnomalyDetectionAlertParamsSchema } from './latest'; +export { mlAnomalyDetectionAlertParamsSchema as mlAnomalyDetectionAlertParamsSchemaV1 } from './v1'; +export { validateAnomalyDetectionCustomFilter } from './utils'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.test.ts b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.test.ts similarity index 86% rename from src/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.test.ts index 1670eb38f8338..e6fcf822a0132 100644 --- a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { MlAnomalyResultType } from '@kbn/ml-anomaly-utils'; diff --git a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.ts b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.ts similarity index 67% rename from src/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.ts index 04e5503047173..cb0585badc268 100644 --- a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/utils.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { MlAnomalyResultType } from '@kbn/ml-anomaly-utils'; diff --git a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/v1.ts similarity index 77% rename from src/platform/packages/shared/response-ops/rule_params/anomaly_detection/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/v1.ts index 28a5affbb61fa..d2e78cf92ae3f 100644 --- a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { schema } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/index.ts new file mode 100644 index 0000000000000..529108b083194 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/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 { anomalyDetectionJobsHealthRuleParamsSchema } from './latest'; +export { anomalyDetectionJobsHealthRuleParamsSchema as anomalyDetectionJobsHealthRuleParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/v1.ts similarity index 77% rename from src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/v1.ts index b3e4f0e7fbbc6..df0380a17f62a 100644 --- a/src/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/anomaly_detection_jobs_health/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { schema } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts new file mode 100644 index 0000000000000..b3df3b939d69d --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { anomalyParamsSchema } from './latest'; +export { anomalyParamsSchema as anomalyParamsSchemaV1 } from './v1'; + +export type { AnomalyRuleParams } from './latest'; +export type { AnomalyRuleParams as AnomalyRuleParamsV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts similarity index 84% rename from src/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts index 8842ecde3e326..c2e798557357a 100644 --- a/src/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/apm_anomaly/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/index.ts new file mode 100644 index 0000000000000..0bd8a69380c43 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/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 { ccrReadExceptionsParamsSchema, type CcrReadExceptionsParams } from './latest'; +export { ccrReadExceptionsParamsSchema as ccrReadExceptionsParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/v1.ts new file mode 100644 index 0000000000000..98c8c1eccca94 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/ccr_read_exceptions/v1.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const ccrReadExceptionsParamsSchema = stackMonitoringCommonSchema.extends({}); + +export type CcrReadExceptionsParams = TypeOf; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/index.ts new file mode 100644 index 0000000000000..28baf81134a03 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/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 { clusterHealthParamsSchema, type ClusterHealthParams } from './latest'; +export { clusterHealthParamsSchema as clusterHealthParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/v1.ts new file mode 100644 index 0000000000000..64e831636bbbc --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/cluster_health/v1.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const clusterHealthParamsSchema = stackMonitoringCommonSchema.extends({}); + +export type ClusterHealthParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/constants.ts b/x-pack/platform/packages/shared/response-ops/rule_params/common/constants.ts similarity index 69% rename from src/platform/packages/shared/response-ops/rule_params/common/constants.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/common/constants.ts index 20348be2c9829..3318e26941656 100644 --- a/src/platform/packages/shared/response-ops/rule_params/common/constants.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/common/constants.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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. */ /** diff --git a/src/platform/packages/shared/response-ops/rule_params/common/data_view_spec_schema.ts b/x-pack/platform/packages/shared/response-ops/rule_params/common/data_view_spec_schema.ts similarity index 93% rename from src/platform/packages/shared/response-ops/rule_params/common/data_view_spec_schema.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/common/data_view_spec_schema.ts index 799787dc03ee1..e89f18de09738 100644 --- a/src/platform/packages/shared/response-ops/rule_params/common/data_view_spec_schema.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/common/data_view_spec_schema.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Type, TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/common/index.ts similarity index 51% rename from src/platform/packages/shared/response-ops/rule_params/common/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/common/index.ts index f8f30477018a0..fca3a14cc20d6 100644 --- a/src/platform/packages/shared/response-ops/rule_params/common/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/common/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 './search_configuration_schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts b/x-pack/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts similarity index 55% rename from src/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts index ebdd1ac1537b9..05897ad6a7e5d 100644 --- a/src/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/common/search_configuration_schema.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/stack_monitoring_common_schema.ts b/x-pack/platform/packages/shared/response-ops/rule_params/common/stack_monitoring_common_schema.ts similarity index 60% rename from src/platform/packages/shared/response-ops/rule_params/common/stack_monitoring_common_schema.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/common/stack_monitoring_common_schema.ts index cfba9ab6ba848..e03469d52c92d 100644 --- a/src/platform/packages/shared/response-ops/rule_params/common/stack_monitoring_common_schema.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/common/stack_monitoring_common_schema.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/common/thread_pool_rejections_common_schema.ts b/x-pack/platform/packages/shared/response-ops/rule_params/common/thread_pool_rejections_common_schema.ts new file mode 100644 index 0000000000000..85992c24b98a7 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/common/thread_pool_rejections_common_schema.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { TypeOf } from '@kbn/config-schema'; +import { baseSchema } from './stack_monitoring_common_schema'; + +export const threadPoolRejectionsCommonSchema = baseSchema.extends({}); + +export type ThreadPoolRejectionsCommonParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/utils.test.ts b/x-pack/platform/packages/shared/response-ops/rule_params/common/utils.test.ts similarity index 68% rename from src/platform/packages/shared/response-ops/rule_params/common/utils.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/common/utils.test.ts index 503193698f51b..f8b87c35fa4dc 100644 --- a/src/platform/packages/shared/response-ops/rule_params/common/utils.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/common/utils.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { validateKQLStringFilter } from './utils'; diff --git a/src/platform/packages/shared/response-ops/rule_params/common/utils.ts b/x-pack/platform/packages/shared/response-ops/rule_params/common/utils.ts similarity index 93% rename from src/platform/packages/shared/response-ops/rule_params/common/utils.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/common/utils.ts index 772a2e5ac683c..d4f8bd326122e 100644 --- a/src/platform/packages/shared/response-ops/rule_params/common/utils.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/common/utils.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { schema } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/index.ts new file mode 100644 index 0000000000000..0876f382e0e15 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/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 { cpuUsageParamsSchema, type CpuUsageParams } from './latest'; +export { cpuUsageParamsSchema as cpuUsageParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/v1.ts new file mode 100644 index 0000000000000..66bb7fea6bbb5 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/cpu_usage/v1.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const cpuUsageParamsSchema = stackMonitoringCommonSchema.extends({}); + +export type CpuUsageParams = TypeOf; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/index.ts new file mode 100644 index 0000000000000..9a23e69172016 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/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 { customThresholdParamsSchema, type CustomThresholdParams } from './latest'; +export { customThresholdParamsSchema as customThresholdParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/custom_threshold/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/v1.ts similarity index 86% rename from src/platform/packages/shared/response-ops/rule_params/custom_threshold/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/v1.ts index 9ebe3e171c141..5e7e8c1f62fdc 100644 --- a/src/platform/packages/shared/response-ops/rule_params/custom_threshold/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/custom_threshold/v1.ts @@ -1,11 +1,10 @@ /* * 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; import { schema } from '@kbn/config-schema'; import { COMPARATORS } from '@kbn/alerting-comparators'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/index.ts new file mode 100644 index 0000000000000..6803cc623f1c2 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/index.ts @@ -0,0 +1,10 @@ +/* + * 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 { degradedDocsParamsSchema } from './latest'; + +export type { DegradedDocsRuleParams } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/degraded_docs/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/v1.ts similarity index 67% rename from src/platform/packages/shared/response-ops/rule_params/degraded_docs/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/v1.ts index 7d5aa1e6507a0..032add5cbdc9c 100644 --- a/src/platform/packages/shared/response-ops/rule_params/degraded_docs/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/degraded_docs/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { COMPARATORS } from '@kbn/alerting-comparators'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/index.ts new file mode 100644 index 0000000000000..091731ef295d2 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/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 { diskUsageParamsSchema, type DiskUsageParams } from './latest'; +export { diskUsageParamsSchema as diskUsageParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/v1.ts new file mode 100644 index 0000000000000..a64224f72a110 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/disk_usage/v1.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const diskUsageParamsSchema = stackMonitoringCommonSchema.extends({}); + +export type DiskUsageParams = TypeOf; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/error_count/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/error_count/index.ts new file mode 100644 index 0000000000000..d7f96262f09fa --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/error_count/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { errorCountParamsSchema } from './latest'; +export { errorCountParamsSchema as errorCountParamsSchemaV1 } from './v1'; + +export type { ErrorCountRuleParams } from './latest'; +export type { ErrorCountRuleParams as ErrorCountRuleParamsV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/error_count/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/error_count/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/error_count/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/error_count/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/error_count/v1.ts similarity index 84% rename from src/platform/packages/shared/response-ops/rule_params/error_count/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/error_count/v1.ts index 101cb809591ef..2eb8c8c47db27 100644 --- a/src/platform/packages/shared/response-ops/rule_params/error_count/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/error_count/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_esql_rule_request.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_esql_rule_request.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_esql_rule_request.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_esql_rule_request.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_esql_rule_response.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_esql_rule_response.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_esql_rule_response.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_esql_rule_response.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_kql_rule_request.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_kql_rule_request.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_kql_rule_request.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_kql_rule_request.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_kql_rule_response.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_kql_rule_response.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_kql_rule_response.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_kql_rule_response.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_rule_request.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_rule_request.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_rule_request.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_rule_request.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_rule_response.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_rule_response.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_rule_response.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/es_query/create_es_query_rule_response.yaml diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/es_query/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/index.ts new file mode 100644 index 0000000000000..222f32bcb861d --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { EsQueryRuleParamsSchema } from './latest'; +export { EsQueryRuleParamsSchema as EsQueryRuleParamsSchemaV1 } from './v1'; + +export type { EsQueryRuleParams } from './latest'; +export type { EsQueryRuleParams as EsQueryRuleParamsV1 } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/es_query/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/v1.test.ts b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/v1.test.ts similarity index 92% rename from src/platform/packages/shared/response-ops/rule_params/es_query/v1.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/es_query/v1.test.ts index e59ac56903ad9..a305c6e08eb43 100644 --- a/src/platform/packages/shared/response-ops/rule_params/es_query/v1.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/v1.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { validateParams } from './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/es_query/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/v1.ts similarity index 96% rename from src/platform/packages/shared/response-ops/rule_params/es_query/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/es_query/v1.ts index b6b45c7e60645..a75c9ed0a4176 100644 --- a/src/platform/packages/shared/response-ops/rule_params/es_query/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/es_query/v1.ts @@ -1,11 +1,10 @@ /* * 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; import { schema } from '@kbn/config-schema'; import { i18n } from '@kbn/i18n'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/index.ts new file mode 100644 index 0000000000000..36d54cc7d25bd --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/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 { esVersionMismatchParamsSchema, type EsVersionMismatchParams } from './latest'; +export { esVersionMismatchParamsSchema as esVersionMismatchParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/v1.ts new file mode 100644 index 0000000000000..1fc20632a9c4d --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/es_version_mismatch/v1.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const esVersionMismatchParamsSchema = stackMonitoringCommonSchema.extends({}); + +export type EsVersionMismatchParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/examples_create_rule_params.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/examples_create_rule_params.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/examples_create_rule_params.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/examples_create_rule_params.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/geo_containment/create_tracking_containment_rule_request.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/create_tracking_containment_rule_request.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/geo_containment/create_tracking_containment_rule_request.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/create_tracking_containment_rule_request.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/geo_containment/create_tracking_containment_rule_response.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/create_tracking_containment_rule_response.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/geo_containment/create_tracking_containment_rule_response.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/create_tracking_containment_rule_response.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/geo_containment/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/index.ts similarity index 52% rename from src/platform/packages/shared/response-ops/rule_params/geo_containment/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/index.ts index 80fd9231fe804..0eb6c516ad124 100644 --- a/src/platform/packages/shared/response-ops/rule_params/geo_containment/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { trackingContainmentRuleParamsSchema } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/geo_containment/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/v1.ts similarity index 71% rename from src/platform/packages/shared/response-ops/rule_params/geo_containment/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/v1.ts index 09a937c929744..9a24d68790522 100644 --- a/src/platform/packages/shared/response-ops/rule_params/geo_containment/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/geo_containment/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/index.ts similarity index 60% rename from src/platform/packages/shared/response-ops/rule_params/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/index.ts index 4f9f32dbe4f9e..d7164a9f715df 100644 --- a/src/platform/packages/shared/response-ops/rule_params/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { ruleParamsSchema, ruleParamsSchemaWithDefaultValue } from './latest'; diff --git a/src/platform/packages/shared/response-ops/rule_params/index_threshold/create_index_threshold_rule_request.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/create_index_threshold_rule_request.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/index_threshold/create_index_threshold_rule_request.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/create_index_threshold_rule_request.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/index_threshold/create_index_threshold_rule_response.yaml b/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/create_index_threshold_rule_response.yaml similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/index_threshold/create_index_threshold_rule_response.yaml rename to x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/create_index_threshold_rule_response.yaml diff --git a/src/platform/packages/shared/response-ops/rule_params/index_threshold/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/index.ts similarity index 57% rename from src/platform/packages/shared/response-ops/rule_params/index_threshold/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/index.ts index de7a2bae19297..afb83fa0df395 100644 --- a/src/platform/packages/shared/response-ops/rule_params/index_threshold/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/index.ts @@ -1,11 +1,10 @@ /* * 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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { ParamsSchema } from './latest'; export { ParamsSchema as ParamsSchemaV1 } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/index_threshold/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/v1.ts similarity index 93% rename from src/platform/packages/shared/response-ops/rule_params/index_threshold/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/v1.ts index 9fdc909e42be5..1c8218f7bcbfc 100644 --- a/src/platform/packages/shared/response-ops/rule_params/index_threshold/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/index_threshold/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/jest.config.js b/x-pack/platform/packages/shared/response-ops/rule_params/jest.config.js new file mode 100644 index 0000000000000..a8f8c9bbb6ab1 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/jest.config.js @@ -0,0 +1,12 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test/jest_node', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/rule_params'], +}; diff --git a/src/platform/packages/shared/response-ops/rule_params/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/rule_params/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/rule_params/kibana.jsonc diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/index.ts new file mode 100644 index 0000000000000..b205376cd411d --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/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 { kibanaVersionMismatchParamsSchema, type KibanaVersionMismatchParams } from './latest'; +export { kibanaVersionMismatchParamsSchema as kibanaVersionMismatchParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/v1.ts new file mode 100644 index 0000000000000..bf319f6d2043f --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/kibana_version_mismatch/v1.ts @@ -0,0 +1,13 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +import type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const kibanaVersionMismatchParamsSchema = stackMonitoringCommonSchema.extends({}); + +export type KibanaVersionMismatchParams = TypeOf; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/index.ts new file mode 100644 index 0000000000000..e78a28c2b91dd --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/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 { largeShardSizeParamsSchema, type LargeShardSizeParams } from './latest'; +export { largeShardSizeParamsSchema as largeShardSizeParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/large_shard_size/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/v1.ts similarity index 51% rename from src/platform/packages/shared/response-ops/rule_params/large_shard_size/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/v1.ts index bb58a4a8244ff..e9b4ac7bc309a 100644 --- a/src/platform/packages/shared/response-ops/rule_params/large_shard_size/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/large_shard_size/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { schema, type TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/index.ts new file mode 100644 index 0000000000000..a86de283f8062 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/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 { licenseExpirationParamsSchema, type LicenseExpirationParams } from './latest'; +export { licenseExpirationParamsSchema as licenseExpirationParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/v1.ts new file mode 100644 index 0000000000000..dc666b8759d58 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/license_expiration/v1.ts @@ -0,0 +1,12 @@ +/* + * 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 type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const licenseExpirationParamsSchema = stackMonitoringCommonSchema.extends({}); +export type LicenseExpirationParams = TypeOf; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/index.ts new file mode 100644 index 0000000000000..744005a328231 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { logThresholdParamsSchema } from './latest'; +export { logThresholdParamsSchema as logThresholdParamsSchemaV1 } from './v1'; + +export type { LogThresholdParams } from './latest'; +export type { LogThresholdParams as LogThresholdParamsV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/log_threshold/v1.test.ts b/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/v1.test.ts similarity index 91% rename from src/platform/packages/shared/response-ops/rule_params/log_threshold/v1.test.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/v1.test.ts index 425c0893eab9c..d55a8fdc2e824 100644 --- a/src/platform/packages/shared/response-ops/rule_params/log_threshold/v1.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/v1.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { omit } from 'lodash'; diff --git a/src/platform/packages/shared/response-ops/rule_params/log_threshold/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/v1.ts similarity index 88% rename from src/platform/packages/shared/response-ops/rule_params/log_threshold/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/v1.ts index c5ad3041e4e3c..0602e1873ebfd 100644 --- a/src/platform/packages/shared/response-ops/rule_params/log_threshold/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/log_threshold/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { schema } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/index.ts new file mode 100644 index 0000000000000..02a6b5051a472 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/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 { logstashVersionMismatchParamsSchema, type LogstashVersionMismatchParams } from './latest'; +export { logstashVersionMismatchParamsSchema as logstashVersionMismatchParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/v1.ts similarity index 50% rename from src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/v1.ts index ca4272044b684..95cae0da7167f 100644 --- a/src/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/logstash_version_mismatch/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/index.ts new file mode 100644 index 0000000000000..3961aea2911d2 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/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 { memoryUsageParamsSchema, type MemoryUsageParams } from './latest'; +export { memoryUsageParamsSchema as memoryUsageParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/v1.ts new file mode 100644 index 0000000000000..f3ae18455aa95 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/memory_usage/v1.ts @@ -0,0 +1,12 @@ +/* + * 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 type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const memoryUsageParamsSchema = stackMonitoringCommonSchema.extends({}); +export type MemoryUsageParams = TypeOf; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/index.ts new file mode 100644 index 0000000000000..000a52fb30f85 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/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 { metricInventoryThresholdRuleParamsSchema } from './latest'; +export { metricInventoryThresholdRuleParamsSchema as metricInventoryThresholdRuleParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts similarity index 87% rename from src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts index 670fe1bf9ea09..6e1a6e54b291f 100644 --- a/src/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/metric_inventory_threshold/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { Type } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/index.ts new file mode 100644 index 0000000000000..1c91c874be842 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/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 { metricThresholdRuleParamsSchema } from './latest'; +export { metricThresholdRuleParamsSchema as metricThresholdRuleParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts similarity index 92% rename from src/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts index bb98628278a5d..9a57f9a9df416 100644 --- a/src/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/metric_threshold/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { schema } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/index.ts new file mode 100644 index 0000000000000..790b1c9905eea --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/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 { missingMonitoringDataParamsSchema, type MissingMonitoringDataParams } from './latest'; +export { missingMonitoringDataParamsSchema as missingMonitoringDataParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/v1.ts new file mode 100644 index 0000000000000..2738fda6fe5ea --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/missing_monitoring_data/v1.ts @@ -0,0 +1,12 @@ +/* + * 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 type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const missingMonitoringDataParamsSchema = stackMonitoringCommonSchema.extends({}); +export type MissingMonitoringDataParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/moon.yml b/x-pack/platform/packages/shared/response-ops/rule_params/moon.yml similarity index 94% rename from src/platform/packages/shared/response-ops/rule_params/moon.yml rename to x-pack/platform/packages/shared/response-ops/rule_params/moon.yml index ae03afef02549..057c361a78e27 100644 --- a/src/platform/packages/shared/response-ops/rule_params/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/rule_params/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/rule_params + sourceRoot: x-pack/platform/packages/shared/response-ops/rule_params dependsOn: - '@kbn/config-schema' - '@kbn/ml-anomaly-utils' diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/index.ts new file mode 100644 index 0000000000000..2daa8772a23b3 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/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 { nodesChangedParamsSchema, type NodesChangedParams } from './latest'; +export { nodesChangedParamsSchema as nodesChangedParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/latest.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 './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/v1.ts new file mode 100644 index 0000000000000..53f2416b422a9 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/nodes_changed/v1.ts @@ -0,0 +1,12 @@ +/* + * 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 type { TypeOf } from '@kbn/config-schema'; +import { stackMonitoringCommonSchema } from '../common'; + +export const nodesChangedParamsSchema = stackMonitoringCommonSchema.extends({}); +export type NodesChangedParams = TypeOf; diff --git a/src/platform/packages/shared/response-ops/rule_params/package.json b/x-pack/platform/packages/shared/response-ops/rule_params/package.json similarity index 56% rename from src/platform/packages/shared/response-ops/rule_params/package.json rename to x-pack/platform/packages/shared/response-ops/rule_params/package.json index 43145b8d5da4c..fc9e806f9062c 100644 --- a/src/platform/packages/shared/response-ops/rule_params/package.json +++ b/x-pack/platform/packages/shared/response-ops/rule_params/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-rule-params", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/index.ts new file mode 100644 index 0000000000000..887d951a145f1 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/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 { sloBurnRateParamsSchema } from './latest'; +export { sloBurnRateParamsSchema as sloBurnRateParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/v1.ts similarity index 67% rename from src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/v1.ts index 54416ea41348d..c08ca213f5aed 100644 --- a/src/platform/packages/shared/response-ops/rule_params/slo_burn_rate/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/slo_burn_rate/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { schema } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/index.ts similarity index 63% rename from src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/index.ts index 6d88868f33633..bed2e117f615e 100644 --- a/src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { syntheticsMonitorStatusRuleParamsSchema } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/v1.ts similarity index 84% rename from src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/v1.ts index 79f8edb1f234f..28f6ab32edc95 100644 --- a/src/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_monitor_status/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/index.ts new file mode 100644 index 0000000000000..75aa7514fb027 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { tlsRuleParamsSchema } from './latest'; +export { tlsRuleParamsSchema as tlsRuleParamsSchemaV1 } from './v1'; + +export type { TLSRuleParams } from './latest'; +export type { TLSRuleParams as TLSRuleParamsV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/synthetics_tls/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/v1.ts similarity index 69% rename from src/platform/packages/shared/response-ops/rule_params/synthetics_tls/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/v1.ts index 4eb6e4c6815b1..5d80839f9c62a 100644 --- a/src/platform/packages/shared/response-ops/rule_params/synthetics_tls/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/synthetics_tls/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/index.ts new file mode 100644 index 0000000000000..0936898360d01 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { + threadPoolSearchRejectionsParamsSchema, + type ThreadPoolSearchRejectionsParams, +} from './latest'; +export { threadPoolSearchRejectionsParamsSchema as threadPoolSearchRejectionsParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/v1.ts similarity index 51% rename from src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/v1.ts index b71184869ca91..9a5b34b1fd796 100644 --- a/src/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_search_rejections/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/index.ts new file mode 100644 index 0000000000000..850294fa8bd8a --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { + threadPoolWriteRejectionsParamsSchema, + type ThreadPoolWriteRejectionsParams, +} from './latest'; +export { threadPoolWriteRejectionsParamsSchema as threadPoolWriteRejectionsParamsSchemaV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/v1.ts similarity index 51% rename from src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/v1.ts index b2368d91fa8b9..7502064974952 100644 --- a/src/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/thread_pool_write_rejections/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts similarity index 51% rename from src/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts index baf910d1c033c..220d95fe846fa 100644 --- a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { transactionDurationParamsSchema } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts similarity index 86% rename from src/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts index 36684b50ea066..78c31d00fbae6 100644 --- a/src/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_duration/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts similarity index 51% rename from src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts index c9630b7347e81..fdbf28e3da491 100644 --- a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { transactionErrorRateParamsSchema } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts similarity index 69% rename from src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts index f413ec94d8a89..678cb72c3b9c7 100644 --- a/src/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transaction_error_rate/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transform_health/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transform_health/index.ts similarity index 50% rename from src/platform/packages/shared/response-ops/rule_params/transform_health/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/transform_health/index.ts index 46f35a2b29725..8a67796f1cc3a 100644 --- a/src/platform/packages/shared/response-ops/rule_params/transform_health/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transform_health/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { transformHealthRuleParamsSchema } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/transform_health/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transform_health/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transform_health/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/transform_health/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/transform_health/v1.ts similarity index 71% rename from src/platform/packages/shared/response-ops/rule_params/transform_health/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/transform_health/v1.ts index 0fd4db22fcb28..b704a9ad349d6 100644 --- a/src/platform/packages/shared/response-ops/rule_params/transform_health/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/transform_health/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/tsconfig.json b/x-pack/platform/packages/shared/response-ops/rule_params/tsconfig.json similarity index 100% rename from src/platform/packages/shared/response-ops/rule_params/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/rule_params/tsconfig.json diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/index.ts similarity index 52% rename from src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/index.ts index ab67697c8d42c..44395ddc28bf3 100644 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { uptimeDurationAnomalyRuleParamsSchema } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/v1.ts similarity index 54% rename from src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/v1.ts index a3ddb306243d8..e5af3260561ea 100644 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_duration_anomaly/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/index.ts similarity index 51% rename from src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/index.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/index.ts index da4a31c8f023a..aa006c6c9562e 100644 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/index.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/index.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { uptimeMonitorStatusRuleParamsSchema } from './latest'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/v1.ts similarity index 79% rename from src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/v1.ts index 8dc99e1228967..52f917f2a0e81 100644 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_monitor_status/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/index.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/index.ts new file mode 100644 index 0000000000000..d7b140a3c9a01 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/index.ts @@ -0,0 +1,12 @@ +/* + * 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 { uptimeTLSRuleParamsSchema } from './latest'; +export { uptimeTLSRuleParamsSchema as uptimeTLSRuleParamsSchemaV1 } from './v1'; + +export type { UptimeTLSRuleParams } from './latest'; +export type { UptimeTLSRuleParams as UptimeTLSRuleParamsV1 } from './v1'; diff --git a/x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/latest.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/latest.ts new file mode 100644 index 0000000000000..25300c97a6d2e --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/latest.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 './v1'; diff --git a/src/platform/packages/shared/response-ops/rule_params/uptime_tls/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/v1.ts similarity index 57% rename from src/platform/packages/shared/response-ops/rule_params/uptime_tls/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/v1.ts index 143dec217cab0..be1d01d51a5a5 100644 --- a/src/platform/packages/shared/response-ops/rule_params/uptime_tls/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/uptime_tls/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rule_params/v1.ts b/x-pack/platform/packages/shared/response-ops/rule_params/v1.ts similarity index 68% rename from src/platform/packages/shared/response-ops/rule_params/v1.ts rename to x-pack/platform/packages/shared/response-ops/rule_params/v1.ts index 1a4f134c226f0..46d790fcd348c 100644 --- a/src/platform/packages/shared/response-ops/rule_params/v1.ts +++ b/x-pack/platform/packages/shared/response-ops/rule_params/v1.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 path from 'node:path'; import type { TypeOf } from '@kbn/config-schema'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/README.md b/x-pack/platform/packages/shared/response-ops/rules-apis/README.md similarity index 100% rename from src/platform/packages/shared/response-ops/rules-apis/README.md rename to x-pack/platform/packages/shared/response-ops/rules-apis/README.md diff --git a/src/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.test.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.test.ts similarity index 93% rename from src/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.test.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.test.ts index 316855cbcc7ae..c4057cc04affc 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { FindRuleTemplatesApiResponse } from './find_rule_templates'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.ts similarity index 85% rename from src/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.ts index 9f38bd03afbd2..ac286d23c88af 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/find_rule_templates.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.test.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.test.ts similarity index 83% rename from src/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.test.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.test.ts index 9e461665fd609..cb5f709bd5353 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { getInternalRuleTypes } from './get_internal_rule_types'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.ts similarity index 83% rename from src/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.ts index a63e69c4288ed..dc8aef21d5707 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_internal_rule_types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { AsApiContract, RewriteRequestCase } from '@kbn/actions-types'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.test.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.test.ts similarity index 75% rename from src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.test.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.test.ts index 4a4a33879889d..8cfb68df7d69c 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { getRuleTags } from './get_rule_tags'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.ts similarity index 75% rename from src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.ts index c47deee6b8356..f7a7e315033c3 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_tags.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.test.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.test.ts similarity index 83% rename from src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.test.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.test.ts index 604d52079db69..784798c25c4cb 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.test.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.test.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { getRuleTypes } from './get_rule_types'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.ts similarity index 82% rename from src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.ts index f011ab9cb8d4b..2438441d1ea54 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/apis/get_rule_types.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/x-pack/platform/packages/shared/response-ops/rules-apis/constants.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/constants.ts new file mode 100644 index 0000000000000..bf24be6ef2c33 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/constants.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 const BASE_ALERTING_API_PATH = '/api/alerting'; +export const INTERNAL_BASE_ALERTING_API_PATH = '/internal/alerting'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.test.tsx b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.test.tsx similarity index 96% rename from src/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.test.tsx rename to x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.test.tsx index 8167b33625efa..5609bab93cb6b 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { waitFor, renderHook } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.ts similarity index 87% rename from src/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.ts index 4f091cbe43b01..572223c842a5d 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_find_templates_query.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.test.tsx b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.test.tsx similarity index 82% rename from src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.test.tsx rename to x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.test.tsx index 22f33c72513d2..3c13e22899160 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.ts similarity index 59% rename from src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.ts index 60a4d36bf1e2f..09b239b150ca6 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_internal_rule_types_query.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.test.tsx b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.test.tsx similarity index 92% rename from src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.test.tsx rename to x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.test.tsx index c585fffefced7..bc3fe2cfb8765 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { waitFor, renderHook } from '@testing-library/react'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.ts similarity index 86% rename from src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.ts index b0de619710440..be7f860d09491 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_tags_query.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 { useMemo } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.test.tsx b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.test.tsx similarity index 81% rename from src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.test.tsx rename to x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.test.tsx index d02520bddf323..d3b323dbd3f0d 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.test.tsx +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.test.tsx @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { PropsWithChildren } from 'react'; diff --git a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.ts similarity index 72% rename from src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.ts index a85bc2387b0e7..7a8bf89f3f061 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/hooks/use_get_rule_types_query.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 type { HttpStart } from '@kbn/core-http-browser'; diff --git a/x-pack/platform/packages/shared/response-ops/rules-apis/jest.config.js b/x-pack/platform/packages/shared/response-ops/rules-apis/jest.config.js new file mode 100644 index 0000000000000..8feaddaf9989c --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/jest.config.js @@ -0,0 +1,15 @@ +/* + * 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. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/response-ops/rules-apis'], + setupFilesAfterEnv: [ + '/x-pack/platform/packages/shared/response-ops/rules-apis/setup_tests.ts', + ], +}; diff --git a/src/platform/packages/shared/response-ops/rules-apis/kibana.jsonc b/x-pack/platform/packages/shared/response-ops/rules-apis/kibana.jsonc similarity index 100% rename from src/platform/packages/shared/response-ops/rules-apis/kibana.jsonc rename to x-pack/platform/packages/shared/response-ops/rules-apis/kibana.jsonc diff --git a/src/platform/packages/shared/response-ops/rules-apis/moon.yml b/x-pack/platform/packages/shared/response-ops/rules-apis/moon.yml similarity index 94% rename from src/platform/packages/shared/response-ops/rules-apis/moon.yml rename to x-pack/platform/packages/shared/response-ops/rules-apis/moon.yml index 768d589b49c07..4467979468261 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/moon.yml +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/moon.yml @@ -16,7 +16,7 @@ project: channel: '' owner: '@elastic/response-ops' metadata: - sourceRoot: src/platform/packages/shared/response-ops/rules-apis + sourceRoot: x-pack/platform/packages/shared/response-ops/rules-apis dependsOn: - '@kbn/core-http-browser-mocks' - '@kbn/core-http-browser' diff --git a/x-pack/platform/packages/shared/response-ops/rules-apis/mutation_keys.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/mutation_keys.ts new file mode 100644 index 0000000000000..7056560afdd55 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/mutation_keys.ts @@ -0,0 +1,10 @@ +/* + * 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 const mutationKeys = { + root: 'rules', +}; diff --git a/src/platform/packages/shared/response-ops/rules-apis/package.json b/x-pack/platform/packages/shared/response-ops/rules-apis/package.json similarity index 56% rename from src/platform/packages/shared/response-ops/rules-apis/package.json rename to x-pack/platform/packages/shared/response-ops/rules-apis/package.json index 93170a0ec6baf..6687b3658c8a5 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/package.json +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/package.json @@ -2,5 +2,5 @@ "name": "@kbn/response-ops-rules-apis", "private": true, "version": "1.0.0", - "license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0" -} \ No newline at end of file + "license": "Elastic License 2.0" +} diff --git a/src/platform/packages/shared/response-ops/rules-apis/query_keys.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/query_keys.ts similarity index 63% rename from src/platform/packages/shared/response-ops/rules-apis/query_keys.ts rename to x-pack/platform/packages/shared/response-ops/rules-apis/query_keys.ts index f01b37f92b057..cd12c0877a68b 100644 --- a/src/platform/packages/shared/response-ops/rules-apis/query_keys.ts +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/query_keys.ts @@ -1,10 +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", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public - * License v3.0 only", or the "Server Side Public License, v 1". + * 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 const queryKeys = { diff --git a/x-pack/platform/packages/shared/response-ops/rules-apis/setup_tests.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/setup_tests.ts new file mode 100644 index 0000000000000..6b0e4de58bcb6 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/setup_tests.ts @@ -0,0 +1,10 @@ +/* + * 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. + */ + +/* eslint-disable import/no-extraneous-dependencies */ +import '@testing-library/jest-dom'; +import 'jest-styled-components'; diff --git a/x-pack/platform/packages/shared/response-ops/rules-apis/test_utils.ts b/x-pack/platform/packages/shared/response-ops/rules-apis/test_utils.ts new file mode 100644 index 0000000000000..bfe0a88206df2 --- /dev/null +++ b/x-pack/platform/packages/shared/response-ops/rules-apis/test_utils.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; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +/* eslint-disable no-console */ + +export const testQueryClientConfig = { + defaultOptions: { + queries: { + retry: false, + }, + }, + logger: { + log: console.log, + warn: console.warn, + error: () => {}, + }, +}; diff --git a/src/platform/packages/shared/response-ops/rules-apis/tsconfig.json b/x-pack/platform/packages/shared/response-ops/rules-apis/tsconfig.json similarity index 100% rename from src/platform/packages/shared/response-ops/rules-apis/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/rules-apis/tsconfig.json diff --git a/src/platform/packages/shared/response-ops/tsconfig.json b/x-pack/platform/packages/shared/response-ops/tsconfig.json similarity index 62% rename from src/platform/packages/shared/response-ops/tsconfig.json rename to x-pack/platform/packages/shared/response-ops/tsconfig.json index baccf9eb2e0ff..dbae3e30376fd 100644 --- a/src/platform/packages/shared/response-ops/tsconfig.json +++ b/x-pack/platform/packages/shared/response-ops/tsconfig.json @@ -5,10 +5,5 @@ }, "include": [".storybook/**/*.ts", ".storybook/**/*.tsx"], "exclude": ["target/**/*"], - "kbn_references": [ - "@kbn/storybook", - "@kbn/react-query", - "@kbn/core", - "@kbn/kibana-react-plugin", - ] + "kbn_references": ["@kbn/storybook", "@kbn/react-query", "@kbn/core", "@kbn/kibana-react-plugin"] } diff --git a/x-pack/platform/plugins/private/translations/translations/de-DE.json b/x-pack/platform/plugins/private/translations/translations/de-DE.json index 18a760fdc3776..d9fcb60d51c3c 100644 --- a/x-pack/platform/plugins/private/translations/translations/de-DE.json +++ b/x-pack/platform/plugins/private/translations/translations/de-DE.json @@ -5922,165 +5922,6 @@ "reporting.share.screenCapturePanelContent.optimizeForPrintingLabel": "Für den Druck optimieren", "reporting.shareContextMenu.ExportsButtonLabel": "PDF", "reporting.shareContextMenu.ExportsButtonLabelPNG": "PNG-Export", - "responseOpsRuleForm.actiActionsonNotifyWhen.forEachOption": "Für jeden Alert", - "responseOpsRuleForm.actiActionsonNotifyWhen.summaryOption": "Zusammenfassung der Warnmeldungen", - "responseOpsRuleForm.actionForm.actionGroupRecoveredMessage": "Wiederhergestellt", - "responseOpsRuleForm.components.ruleTypeModal.allRuleTypes": "Alle", - "responseOpsRuleForm.components.ruleTypeModal.loadingRuleTypes": "Regeltypen werden geladen", - "responseOpsRuleForm.components.ruleTypeModal.minimumRequiredLicenseMessage": "Für diese Regel ist eine {minimumLicenseRequired}-Lizenz erforderlich.", - "responseOpsRuleForm.components.ruleTypeModal.noRuleTypesErrorBody": "Versuchen Sie eine andere Suche oder ändern Sie Ihre Filtereinstellungen", - "responseOpsRuleForm.components.ruleTypeModal.noRuleTypesErrorTitle": "Keine Regeltypen gefunden", - "responseOpsRuleForm.disabledActionsWarningTitle": "Diese Regel hat Aktionen, die deaktiviert sind", - "responseOpsRuleForm.healthCheck.actionText": "Weitere Informationen", - "responseOpsRuleForm.healthCheck.alertsErrorText": "Um eine Regel zu erstellen, müssen Sie die Alerting- und Actions-Plugins aktivieren.", - "responseOpsRuleForm.healthCheck.alertsErrorTitle": "Sie müssen Alerting und Aktionen aktivieren", - "responseOpsRuleForm.healthCheck.apiKeysAndEncryptionErrorText": "Sie müssen API-Schlüssel aktivieren und einen Verschlüsselungsschlüssel konfigurieren, um das Alerting zu nutzen.", - "responseOpsRuleForm.healthCheck.apiKeysDisabledErrorText": "Sie müssen API-Schlüssel aktivieren, um das Alerting nutzen zu können.", - "responseOpsRuleForm.healthCheck.apiKeysDisabledErrorTitle": "Zusätzliche Einrichtung erforderlich", - "responseOpsRuleForm.healthCheck.encryptionErrorText": "Sie müssen einen Verschlüsselungscode konfigurieren, um das Alerting verwenden zu können.", - "responseOpsRuleForm.healthCheck.encryptionErrorTitle": "Zusätzliche Einrichtung erforderlich", - "responseOpsRuleForm.healthCheck.healthCheck.apiKeysAndEncryptionErrorTitle": "Zusätzliche Einrichtung erforderlich", - "responseOpsRuleForm.producerDisplayNames.apm": "APM und Nutzenerfahrung", - "responseOpsRuleForm.producerDisplayNames.infrastructure": "Infrastruktur", - "responseOpsRuleForm.producerDisplayNames.logs": "Logs", - "responseOpsRuleForm.producerDisplayNames.metrics": "Metriken", - "responseOpsRuleForm.producerDisplayNames.ml": "Machine Learning", - "responseOpsRuleForm.producerDisplayNames.monitoring": "Stack-Überwachung", - "responseOpsRuleForm.producerDisplayNames.observability": "Observability", - "responseOpsRuleForm.producerDisplayNames.siem": "Security", - "responseOpsRuleForm.producerDisplayNames.slo": "SLOs", - "responseOpsRuleForm.producerDisplayNames.stackAlerts": "Stack-Alarme", - "responseOpsRuleForm.producerDisplayNames.uptime": "Synthetics und Uptime", - "responseOpsRuleForm.ruleActionsAlertsFilter.ActionAlertsFilterQueryPlaceholder": "Filtern Sie Alerts mithilfe der KQL-Syntax.", - "responseOpsRuleForm.ruleActionsAlertsFilter.ActionAlertsFilterQueryToggleLabel": "Wenn der Alarm mit einer Abfrage übereinstimmt", - "responseOpsRuleForm.ruleActionsItem.actionErrorToolTip": "Die Aktion enthält Fehler.", - "responseOpsRuleForm.ruleActionsItem.actionUnableToLoadConnectorTitle": "Erstellen Sie einen Connector und versuchen Sie es erneut. Wenn Sie keinen Connector erstellen können, wenden Sie sich an Ihren Systemadministrator.", - "responseOpsRuleForm.ruleActionsItem.actionUseAadTemplateFieldsLabel": "Verwenden Sie Vorlagenfelder aus dem Alerts-Index", - "responseOpsRuleForm.ruleActionsItem.actionWarningsTitle": "1 Warnung", - "responseOpsRuleForm.ruleActionsItem.existingAlertActionTypeEditTitle": "{actionConnectorName}", - "responseOpsRuleForm.ruleActionsItem.runWhenGroupTitle": "Ausführen, wenn {groupName}", - "responseOpsRuleForm.ruleActionsItem.summaryGroupTitle": "Zusammenfassung der Warnmeldungen", - "responseOpsRuleForm.ruleActionsNotifyWhen.actionFrequencyLabel": "Aktionsfrequenz", - "responseOpsRuleForm.ruleActionsNotifyWhen.frequencyNotifyWhen.label": "Ausführen alle", - "responseOpsRuleForm.ruleActionsNotifyWhen.notifyWhenThrottleWarning": "Benutzerdefinierte Aktionsintervalle dürfen nicht kürzer sein als das Prüfintervall der Regel.", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.description": "Aktionen werden ausgeführt, wenn sich der Alert-Status ändert.", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.display": "Bei Statusänderungen", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.label": "Bei Statusänderungen", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.description": "Aktionen werden ausgeführt, wenn die Regelbedingungen erfüllt sind.", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.display": "Bei Prüfintervallen", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.label": "Bei Prüfintervallen", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.description": "Aktionen werden ausgeführt, wenn die Regelbedingungen erfüllt sind.", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.display": "Zu benutzerdefinierten Aktionsintervallen", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.label": "Zu benutzerdefinierten Aktionsintervallen", - "responseOpsRuleForm.ruleActionsNotifyWhen.summaryOrRulePerSelectRoleDescription": "Wählen Sie die Art der Aktionshäufigkeit aus", - "responseOpsRuleForm.ruleActionsSetting.actionGroupNotSupported": "{actionGroupName} (derzeit nicht unterstützt)", - "responseOpsRuleForm.ruleActionsSetting.actionGroupRunWhen": "Ausführen, wenn", - "responseOpsRuleForm.ruleActionsSystemActionsItem.deleteActionAriaLabel": "Aktion löschen", - "responseOpsRuleForm.ruleForm.actionsForm.publicBaseUrl": "server.publicBaseUrl ist nicht festgelegt. Die generierten URLs sind entweder relativ oder leer.", - "responseOpsRuleForm.ruleForm.actionsForm.requiredFilterQuery": "Eine benutzerdefinierte Abfrage ist erforderlich.", - "responseOpsRuleForm.ruleForm.actionTypeModalEmptyText": "Versuchen Sie eine andere Suche oder ändern Sie Ihre Filtereinstellungen.", - "responseOpsRuleForm.ruleForm.actionTypeModalEmptyTitle": "Keine Connectoren gefunden", - "responseOpsRuleForm.ruleForm.actionTypeModalFilterAll": "Alle", - "responseOpsRuleForm.ruleForm.actionTypeModalFilterListTitle": "Filter", - "responseOpsRuleForm.ruleForm.actionTypeModalTitle": "Connector auswählen", - "responseOpsRuleForm.ruleForm.circuitBreakerHideFullErrorText": "Vollständigen Fehler ausblenden", - "responseOpsRuleForm.ruleForm.circuitBreakerSeeFullErrorText": "Vollständigen Fehler anzeigen", - "responseOpsRuleForm.ruleForm.confirmRuleSaveCancelButtonText": "Abbrechen", - "responseOpsRuleForm.ruleForm.confirmRuleSaveConfirmButtonText": "Regel speichern", - "responseOpsRuleForm.ruleForm.confirmRuleSaveMessageText": "Sie können jederzeit eine Aktion hinzufügen.", - "responseOpsRuleForm.ruleForm.confirmRuleSaveTitle": "Regel ohne Aktionen speichern?", - "responseOpsRuleForm.ruleForm.createErrorText": "Regel kann nicht erstellt werden.", - "responseOpsRuleForm.ruleForm.createSuccessText": "Erstellte Regel \"{ruleName}\"", - "responseOpsRuleForm.ruleForm.editErrorText": "Die Regel kann nicht aktualisiert werden.", - "responseOpsRuleForm.ruleForm.editSuccessText": "„{ruleName}“ aktualisiert", - "responseOpsRuleForm.ruleForm.error.belowMinimumAlertDelayText": "Die Alarmverzögerung muss 1 oder größer sein.", - "responseOpsRuleForm.ruleForm.error.belowMinimumText": "Das Intervall muss mindestens {minimum} betragen.", - "responseOpsRuleForm.ruleForm.error.requiredConsumerText": "Umfang ist erforderlich.", - "responseOpsRuleForm.ruleForm.error.requiredIntervalText": "Ein Prüfintervall ist erforderlich.", - "responseOpsRuleForm.ruleForm.error.requiredNameText": "Name ist erforderlich.", - "responseOpsRuleForm.ruleForm.error.requiredRuleTypeIdText": "Regeltyp ist erforderlich.", - "responseOpsRuleForm.ruleForm.intervalWarningText": "Intervalle unter {minimum} werden aus Leistungsgründen nicht empfohlen.", - "responseOpsRuleForm.ruleForm.modalSearchClearFiltersText": "Filter löschen", - "responseOpsRuleForm.ruleForm.modalSearchPlaceholder": "Search", - "responseOpsRuleForm.ruleForm.returnTitle": "Zurückkehren", - "responseOpsRuleForm.ruleForm.routeParamsErrorText": "Beim Laden des Regelformulars ist ein Fehler aufgetreten. Bitte stellen Sie sicher, dass die Route korrekt ist.", - "responseOpsRuleForm.ruleForm.routeParamsErrorTitle": "Regelformular kann nicht geladen werden", - "responseOpsRuleForm.ruleForm.ruleActions.addActionDescriptionText": "Wählen Sie einen Connector aus und konfigurieren Sie die Aktionen, die ausgeführt werden sollen, wenn ein Alarm ausgelöst wird", - "responseOpsRuleForm.ruleForm.ruleActions.addActionHeader": "Aktion hinzufügen", - "responseOpsRuleForm.ruleForm.ruleActions.addActionOptionalText": "Optional", - "responseOpsRuleForm.ruleForm.ruleActions.addActionText": "Aktion hinzufügen", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeTimezoneLabel": "Zeitzone", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeToggleLabel": "Wenn während des Zeitrahmens ein Alert generiert wird", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeWeekdays": "Wochentage", - "responseOpsRuleForm.ruleForm.ruleActionsNoPermissionDescription": "Sie müssen Lesezugriff auf Aktionen und Konnektoren haben, um Regeln bearbeiten zu dürfen.", - "responseOpsRuleForm.ruleForm.ruleActionsNoPermissionTitle": "Aktionen und Verbindungsberechtigungen fehlen", - "responseOpsRuleForm.ruleForm.ruleActionsTitle": "Aktionen", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayHelpText": "Ein Alert wird nur dann ausgegeben, wenn die angegebene Anzahl aufeinanderfolgender Ausführungen die Regelbedingungen erfüllt.", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayTitlePrefix": "Alarm nach", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayTitleSuffix": "aufeinanderfolgende Treffer", - "responseOpsRuleForm.ruleForm.ruleDefinition.advancedOptionsTitle": "Erweiterte Optionen", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertDelayDescription": "Legen Sie die Anzahl der aufeinanderfolgenden Ausführungen fest, für die diese Regel die Alarmbedingungen erfüllen muss, bevor ein Alarm ausgelöst wird", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertDelayTitle": "Alarmverzögerung", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertFlappingDetectionDescription": "Erkennen Sie Alerts, die schnell zwischen aktivem und wiederhergestelltem Zustand wechseln, und reduzieren Sie unerwünschtes Rauschen für diese fluktuierenden Alerts.", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertFlappingDetectionTitle": "Erkennung von Alarmflattern", - "responseOpsRuleForm.ruleForm.ruleDefinition.docLinkTitle": "Dokumentation anzeigen", - "responseOpsRuleForm.ruleForm.ruleDefinition.loadingRuleTypeParamsTitle": "Regeltypparameter werden geladen", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleDescriptionText": "Stellen Sie die Frequenz ein, um die Alarmbedingungen zu überprüfen", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleTitle": "Regelzeitplan", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleTooltipText": "Die Prüfungen werden in eine Warteschlange gestellt; sie werden so nahe am festgelegten Wert durchgeführt, wie es die Kapazität erlaubt.", - "responseOpsRuleForm.ruleForm.ruleDefinition.scopeDescriptionText": "Wählen Sie die Anwendungen aus, um die entsprechenden Rollenberechtigungen zuzuordnen", - "responseOpsRuleForm.ruleForm.ruleDefinition.scopeTitle": "Geltungsbereich der Regel", - "responseOpsRuleForm.ruleForm.ruleDefinitionTitle": "Regeldefinition", - "responseOpsRuleForm.ruleForm.ruleDefinitionTitleShort": "Definition", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleNameInputButtonAriaLabel": "Regelnamen speichern", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleNameInputTitle": "Regelname", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleTagsInputTitle": "Tags", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleTagsPlaceholder": "Tags hinzufügen", - "responseOpsRuleForm.ruleForm.ruleDetailsTitle": "Regeldetails", - "responseOpsRuleForm.ruleForm.ruleDetailsTitleShort": "Details", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.backText": "Zurück", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.cancelText": "Abbrechen", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.createText": "Regel erstellen", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.nextText": "Weiter", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.saveText": "Änderungen speichern", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.backText": "Zurück", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.createTitle": "Regel erstellen", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.editTitle": "Regel bearbeiten", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalCancel": "Abbrechen", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalConfirm": "Änderungen verwerfen", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalDescription": "Sie können nicht gespeicherte Änderungen nicht wiederherstellen.", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalTitle": "Möchten Sie ungespeicherte Änderungen an der Regel verwerfen?", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.apm": "APM und Nutzenerfahrung", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.consumerSelectComboBoxTitle": "Wählen Sie einen Bereich aus", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.consumerSelectTitle": "Rollen-Sichtbarkeit", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.infrastructure": "Metriken", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.logs": "Logs", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.slo": "SLOs", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.stackAlerts": "Stack-Regeln", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.uptime": "Synthetics und Uptime", - "responseOpsRuleForm.ruleForm.ruleNotFoundErrorText": "Beim Laden der Regel ist ein Fehler aufgetreten. Bitte stellen Sie sicher, dass die Regel existiert und Sie Zugriff auf die ausgewählte Regel haben.", - "responseOpsRuleForm.ruleForm.ruleNotFoundErrorTitle": "Regel kann nicht geladen werden", - "responseOpsRuleForm.ruleForm.rulePage.ruleNameAriaLabelText": "Regelname bearbeiten", - "responseOpsRuleForm.ruleForm.rulePageFooter.cancelText": "Abbrechen", - "responseOpsRuleForm.ruleForm.rulePageFooter.createText": "Regel erstellen", - "responseOpsRuleForm.ruleForm.rulePageFooter.saveText": "Regel speichern", - "responseOpsRuleForm.ruleForm.rulePageFooter.showRequestText": "Anfrage anzeigen", - "responseOpsRuleForm.ruleForm.ruleSchedule.scheduleTitlePrefix": "Alle", - "responseOpsRuleForm.ruleForm.ruleTypeNotFoundErrorText": "Beim Laden des Regeltyps ist ein Fehler aufgetreten. Bitte stellen Sie sicher, dass Sie Zugriff auf den ausgewählten Regeltyp haben.", - "responseOpsRuleForm.ruleForm.ruleTypeNotFoundErrorTitle": "Regeltyp kann nicht geladen werden", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitle": "{requestType} Anforderung einer Alerting-Regel", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitleCreate": "Erstellen", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitleEdit": "Bearbeiten", - "responseOpsRuleForm.ruleForm.showRequestModal.somethingWentWrongDescription": "Entschuldigen Sie bitte, es ist etwas schief gelaufen.", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitle": "Diese Kibana-Anfrage wird diese Regel {requestType}.", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitleCreate": "erstellen", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitleEdit": "Bearbeiten", - "responseOpsRuleForm.technicalPreviewBadgeDescription": "Diese Funktionalität befindet sich in der technischen Vorschau und kann in einer zukünftigen Version geändert oder vollständig entfernt werden. Elastic wird sich bemühen, alle Probleme zu beheben, aber die Features in der technischen Vorschau unterliegen nicht dem Support-SLA der offiziellen GA-Features.", - "responseOpsRuleForm.technicalPreviewBadgeLabel": "Technische Vorschau", - "responseOpsRuleForm.timeUnits.dayLabel": "{timeValue, plural, one {day} other {Tage}}", - "responseOpsRuleForm.timeUnits.hourLabel": "{timeValue, plural, one {hour} other {Stunden}}", - "responseOpsRuleForm.timeUnits.minuteLabel": "{timeValue, plural, one {minute} other {Minuten}}", - "responseOpsRuleForm.timeUnits.secondLabel": "{timeValue, plural, one {second} other {Sekunden}}", "savedObjects.overwriteRejectedDescription": "Überschreibungsbestätigung wurde abgelehnt", "savedObjects.saveDuplicateRejectedDescription": "Speichern mit Bestätigung des duplizierten Titels wurde abgelehnt", "savedObjects.saveModal.cancelButtonLabel": "Abbrechen", diff --git a/x-pack/platform/plugins/private/translations/translations/fr-FR.json b/x-pack/platform/plugins/private/translations/translations/fr-FR.json index 3525fee51f430..aff852f16e14d 100644 --- a/x-pack/platform/plugins/private/translations/translations/fr-FR.json +++ b/x-pack/platform/plugins/private/translations/translations/fr-FR.json @@ -5950,165 +5950,6 @@ "reporting.share.screenCapturePanelContent.optimizeForPrintingLabel": "Optimiser pour l'impression", "reporting.shareContextMenu.ExportsButtonLabel": "PDF", "reporting.shareContextMenu.ExportsButtonLabelPNG": "Export PNG", - "responseOpsRuleForm.actiActionsonNotifyWhen.forEachOption": "Pour chaque alerte", - "responseOpsRuleForm.actiActionsonNotifyWhen.summaryOption": "Résumé des alertes", - "responseOpsRuleForm.actionForm.actionGroupRecoveredMessage": "Récupéré", - "responseOpsRuleForm.components.ruleTypeModal.allRuleTypes": "Tous", - "responseOpsRuleForm.components.ruleTypeModal.loadingRuleTypes": "Chargement des types de règles", - "responseOpsRuleForm.components.ruleTypeModal.minimumRequiredLicenseMessage": "Cette règle nécessite une licence {minimumLicenseRequired}.", - "responseOpsRuleForm.components.ruleTypeModal.noRuleTypesErrorBody": "Essayez une autre recherche ou modifiez vos paramètres de filtrage", - "responseOpsRuleForm.components.ruleTypeModal.noRuleTypesErrorTitle": "Aucun type de règles trouvé", - "responseOpsRuleForm.disabledActionsWarningTitle": "Cette règle possède des actions qui sont désactivées", - "responseOpsRuleForm.healthCheck.actionText": "En savoir plus.", - "responseOpsRuleForm.healthCheck.alertsErrorText": "Pour créer une règle, vous devez activer les plug-ins d'alerting et d'actions.", - "responseOpsRuleForm.healthCheck.alertsErrorTitle": "Vous devez activer Alerting et Actions", - "responseOpsRuleForm.healthCheck.apiKeysAndEncryptionErrorText": "Vous devez activer les clés d'API et configurer une clé de chiffrement pour utiliser Alerting.", - "responseOpsRuleForm.healthCheck.apiKeysDisabledErrorText": "Vous devez activer les clés d'API pour utiliser Alerting.", - "responseOpsRuleForm.healthCheck.apiKeysDisabledErrorTitle": "Configuration supplémentaire requise", - "responseOpsRuleForm.healthCheck.encryptionErrorText": "Vous devez configurer une clé de chiffrement pour utiliser Alerting.", - "responseOpsRuleForm.healthCheck.encryptionErrorTitle": "Configuration supplémentaire requise", - "responseOpsRuleForm.healthCheck.healthCheck.apiKeysAndEncryptionErrorTitle": "Configuration supplémentaire requise", - "responseOpsRuleForm.producerDisplayNames.apm": "APM et expérience utilisateur", - "responseOpsRuleForm.producerDisplayNames.infrastructure": "Infrastructure", - "responseOpsRuleForm.producerDisplayNames.logs": "Logs", - "responseOpsRuleForm.producerDisplayNames.metrics": "Indicateurs", - "responseOpsRuleForm.producerDisplayNames.ml": "Machine Learning", - "responseOpsRuleForm.producerDisplayNames.monitoring": "Monitoring du stack", - "responseOpsRuleForm.producerDisplayNames.observability": "Observabilité", - "responseOpsRuleForm.producerDisplayNames.siem": "Sécurité", - "responseOpsRuleForm.producerDisplayNames.slo": "SLO", - "responseOpsRuleForm.producerDisplayNames.stackAlerts": "Alertes de la suite", - "responseOpsRuleForm.producerDisplayNames.uptime": "Synthetics et Uptime", - "responseOpsRuleForm.ruleActionsAlertsFilter.ActionAlertsFilterQueryPlaceholder": "Filtrer les alertes à l'aide de la syntaxe KQL", - "responseOpsRuleForm.ruleActionsAlertsFilter.ActionAlertsFilterQueryToggleLabel": "Si l'alerte correspond à une requête", - "responseOpsRuleForm.ruleActionsItem.actionErrorToolTip": "L'action contient des erreurs.", - "responseOpsRuleForm.ruleActionsItem.actionUnableToLoadConnectorTitle": "Créez un connecteur et réessayez. Si vous ne parvenez pas à créer un connecteur, contactez votre administrateur système.", - "responseOpsRuleForm.ruleActionsItem.actionUseAadTemplateFieldsLabel": "Utiliser les champs de modèle de l'index des alertes", - "responseOpsRuleForm.ruleActionsItem.actionWarningsTitle": "1 avertissement", - "responseOpsRuleForm.ruleActionsItem.existingAlertActionTypeEditTitle": "{actionConnectorName}", - "responseOpsRuleForm.ruleActionsItem.runWhenGroupTitle": "Exécuter lorsque {groupName}", - "responseOpsRuleForm.ruleActionsItem.summaryGroupTitle": "Résumé des alertes", - "responseOpsRuleForm.ruleActionsNotifyWhen.actionFrequencyLabel": "Fréquence d'action", - "responseOpsRuleForm.ruleActionsNotifyWhen.frequencyNotifyWhen.label": "Exécuter chaque", - "responseOpsRuleForm.ruleActionsNotifyWhen.notifyWhenThrottleWarning": "Les intervalles d'action personnalisés ne peuvent pas être plus courts que l'intervalle de vérification de la règle", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.description": "Actions exécutées si le statut de l'alerte change.", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.display": "Lors de changements de statut", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.label": "Lors de changements de statut", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.description": "Les actions sont exécutées si les conditions de règle sont remplies.", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.display": "Selon les intervalles de vérification", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.label": "Selon les intervalles de vérification", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.description": "Les actions sont exécutées si les conditions de règle sont remplies.", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.display": "Selon des intervalles d'action personnalisés", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.label": "Selon des intervalles d'action personnalisés", - "responseOpsRuleForm.ruleActionsNotifyWhen.summaryOrRulePerSelectRoleDescription": "Sélection du type de fréquence d'action", - "responseOpsRuleForm.ruleActionsSetting.actionGroupNotSupported": "{actionGroupName} (non pris en charge actuellement)", - "responseOpsRuleForm.ruleActionsSetting.actionGroupRunWhen": "Exécuter quand", - "responseOpsRuleForm.ruleActionsSystemActionsItem.deleteActionAriaLabel": "supprimer l'action", - "responseOpsRuleForm.ruleForm.actionsForm.publicBaseUrl": "server.publicBaseUrl n'est pas défini. Les URL générées seront relatives ou vides.", - "responseOpsRuleForm.ruleForm.actionsForm.requiredFilterQuery": "Une requête personnalisée est requise.", - "responseOpsRuleForm.ruleForm.actionTypeModalEmptyText": "Essayez une autre recherche ou modifiez vos paramètres de filtrage.", - "responseOpsRuleForm.ruleForm.actionTypeModalEmptyTitle": "Aucun connecteur trouvé", - "responseOpsRuleForm.ruleForm.actionTypeModalFilterAll": "Tous", - "responseOpsRuleForm.ruleForm.actionTypeModalFilterListTitle": "Filtre", - "responseOpsRuleForm.ruleForm.actionTypeModalTitle": "Sélectionner un connecteur", - "responseOpsRuleForm.ruleForm.circuitBreakerHideFullErrorText": "Masquer l'erreur en intégralité", - "responseOpsRuleForm.ruleForm.circuitBreakerSeeFullErrorText": "Afficher l'erreur en intégralité", - "responseOpsRuleForm.ruleForm.confirmRuleSaveCancelButtonText": "Annuler", - "responseOpsRuleForm.ruleForm.confirmRuleSaveConfirmButtonText": "Enregistrer la règle", - "responseOpsRuleForm.ruleForm.confirmRuleSaveMessageText": "Vous pouvez ajouter une action à tout moment.", - "responseOpsRuleForm.ruleForm.confirmRuleSaveTitle": "Enregistrer la règle ne contenant aucune action ?", - "responseOpsRuleForm.ruleForm.createErrorText": "Impossible de créer une règle.", - "responseOpsRuleForm.ruleForm.createSuccessText": "Création de la règle \"{ruleName}\" effectuée", - "responseOpsRuleForm.ruleForm.editErrorText": "Impossible de mettre à jour la règle.", - "responseOpsRuleForm.ruleForm.editSuccessText": "Mise à jour de \"{ruleName}\" effectuée", - "responseOpsRuleForm.ruleForm.error.belowMinimumAlertDelayText": "Le délai d'alerte doit être supérieur ou égal à 1.", - "responseOpsRuleForm.ruleForm.error.belowMinimumText": "L'intervalle doit être au minimum de {minimum}.", - "responseOpsRuleForm.ruleForm.error.requiredConsumerText": "La portée est requise.", - "responseOpsRuleForm.ruleForm.error.requiredIntervalText": "L'intervalle de vérification est requis.", - "responseOpsRuleForm.ruleForm.error.requiredNameText": "Un nom est requis.", - "responseOpsRuleForm.ruleForm.error.requiredRuleTypeIdText": "Le type de règle est requis.", - "responseOpsRuleForm.ruleForm.intervalWarningText": "Des intervalles inférieurs à {minimum} ne sont pas recommandés pour des raisons de performances.", - "responseOpsRuleForm.ruleForm.modalSearchClearFiltersText": "Effacer les filtres", - "responseOpsRuleForm.ruleForm.modalSearchPlaceholder": "Recherche", - "responseOpsRuleForm.ruleForm.returnTitle": "Renvoyer", - "responseOpsRuleForm.ruleForm.routeParamsErrorText": "Une erreur s'est produite lors du chargement du formulaire de la règle. Veuillez vérifier que le chemin est correct.", - "responseOpsRuleForm.ruleForm.routeParamsErrorTitle": "Impossible de charger le formulaire de règle", - "responseOpsRuleForm.ruleForm.ruleActions.addActionDescriptionText": "Sélectionnez un connecteur et configurez les actions devant être effectuées lors du déclenchement d'une alerte", - "responseOpsRuleForm.ruleForm.ruleActions.addActionHeader": "Ajouter une action", - "responseOpsRuleForm.ruleForm.ruleActions.addActionOptionalText": "Facultatif", - "responseOpsRuleForm.ruleForm.ruleActions.addActionText": "Ajouter une action", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeTimezoneLabel": "Fuseau horaire", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeToggleLabel": "Si l'alerte est générée pendant l'intervalle de temps", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeWeekdays": "Jours de la semaine", - "responseOpsRuleForm.ruleForm.ruleActionsNoPermissionDescription": "Pour modifier les règles, vous devez avoir un accès en lecture aux actions et aux connecteurs.", - "responseOpsRuleForm.ruleForm.ruleActionsNoPermissionTitle": "Privilèges manquants pour les actions et les connecteurs", - "responseOpsRuleForm.ruleForm.ruleActionsTitle": "Actions", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayHelpText": "Une alerte n'est déclenchée que si le nombre spécifié d'exécutions consécutives remplit les conditions de la règle.", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayTitlePrefix": "Après une alerte", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayTitleSuffix": "correspondances consécutives", - "responseOpsRuleForm.ruleForm.ruleDefinition.advancedOptionsTitle": "Options avancées", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertDelayDescription": "Définir le nombre d’exécutions consécutives pour lesquelles cette règle doit répondre aux conditions d'alerte avant qu'une alerte ne se déclenche", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertDelayTitle": "Délai d'alerte", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertFlappingDetectionDescription": "Détectez les alertes qui passent rapidement de l'état actif à l'état récupéré et réduisez le bruit non souhaité de ces alertes instables", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertFlappingDetectionTitle": "Détection de bagotement d'alerte", - "responseOpsRuleForm.ruleForm.ruleDefinition.docLinkTitle": "Afficher la documentation", - "responseOpsRuleForm.ruleForm.ruleDefinition.loadingRuleTypeParamsTitle": "Chargement des paramètres de types de règles", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleDescriptionText": "Définir la fréquence de vérification des conditions de l'alerte", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleTitle": "Calendrier des règles", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleTooltipText": "Les vérifications sont mises en file d'attente ; elles seront exécutées au plus près de la valeur définie, en fonction de la capacité.", - "responseOpsRuleForm.ruleForm.ruleDefinition.scopeDescriptionText": "Sélectionnez les applications auxquelles associer le privilège de rôle correspondant", - "responseOpsRuleForm.ruleForm.ruleDefinition.scopeTitle": "Portée de la règle", - "responseOpsRuleForm.ruleForm.ruleDefinitionTitle": "Définition de la règle", - "responseOpsRuleForm.ruleForm.ruleDefinitionTitleShort": "Définition", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleNameInputButtonAriaLabel": "Enregistrer le nom de la règle", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleNameInputTitle": "Nom de règle", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleTagsInputTitle": "Balises", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleTagsPlaceholder": "Ajouter des balises", - "responseOpsRuleForm.ruleForm.ruleDetailsTitle": "Détails de la règle", - "responseOpsRuleForm.ruleForm.ruleDetailsTitleShort": "Détails", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.backText": "Retour", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.cancelText": "Annuler", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.createText": "Créer une règle", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.nextText": "Suivant", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.saveText": "Enregistrer les modifications", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.backText": "Retour", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.createTitle": "Créer une règle", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.editTitle": "Modifier la règle", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalCancel": "Annuler", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalConfirm": "Abandonner les modifications", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalDescription": "Vous ne pouvez pas récupérer de modifications non enregistrées.", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalTitle": "Abandonner les modifications non enregistrées apportées à la règle ?", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.apm": "APM et expérience utilisateur", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.consumerSelectComboBoxTitle": "Sélectionner une portée", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.consumerSelectTitle": "Visibilité du rôle", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.infrastructure": "Indicateurs", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.logs": "Logs", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.slo": "SLO", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.stackAlerts": "Règles de la Suite Elastic", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.uptime": "Synthetics et Uptime", - "responseOpsRuleForm.ruleForm.ruleNotFoundErrorText": "Une erreur s'est produite lors du chargement de la règle. Veuillez vous assurer que la règle existe et que vous y avez accès.", - "responseOpsRuleForm.ruleForm.ruleNotFoundErrorTitle": "Impossible de charger la règle", - "responseOpsRuleForm.ruleForm.rulePage.ruleNameAriaLabelText": "Modifier le nom de la règle", - "responseOpsRuleForm.ruleForm.rulePageFooter.cancelText": "Annuler", - "responseOpsRuleForm.ruleForm.rulePageFooter.createText": "Créer une règle", - "responseOpsRuleForm.ruleForm.rulePageFooter.saveText": "Enregistrer la règle", - "responseOpsRuleForm.ruleForm.rulePageFooter.showRequestText": "Afficher la requête", - "responseOpsRuleForm.ruleForm.ruleSchedule.scheduleTitlePrefix": "Chaque", - "responseOpsRuleForm.ruleForm.ruleTypeNotFoundErrorText": "Une erreur s'est produite lors du chargement du type de règle. Veuillez vous assurer que vous avez accès au type de règle sélectionné.", - "responseOpsRuleForm.ruleForm.ruleTypeNotFoundErrorTitle": "Impossible de charger le type de règle", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitle": "{requestType} requête de règle d'alerte", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitleCreate": "Créer", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitleEdit": "Modifier", - "responseOpsRuleForm.ruleForm.showRequestModal.somethingWentWrongDescription": "Désolé, un problème est survenu.", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitle": "La requête Kibana va {requestType} cette règle.", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitleCreate": "créer", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitleEdit": "modifier", - "responseOpsRuleForm.technicalPreviewBadgeDescription": "Cette fonctionnalité est en version d'évaluation technique et pourra être modifiée ou retirée complètement dans une future version. Elastic s'efforcera de corriger tout problème, mais les fonctionnalités des versions d'évaluation technique ne sont pas soumises aux SLA de support des fonctionnalités officielles en disponibilité générale.", - "responseOpsRuleForm.technicalPreviewBadgeLabel": "Version d'évaluation technique", - "responseOpsRuleForm.timeUnits.dayLabel": "{timeValue, plural, one {day} other {jours}}", - "responseOpsRuleForm.timeUnits.hourLabel": "{timeValue, plural, one {hour} other {heures}}", - "responseOpsRuleForm.timeUnits.minuteLabel": "{timeValue, plural, one {minute} other {minutes}}", - "responseOpsRuleForm.timeUnits.secondLabel": "{timeValue, plural, one {second} other {secondes}}", "savedObjects.overwriteRejectedDescription": "La confirmation d'écrasement a été rejetée.", "savedObjects.saveDuplicateRejectedDescription": "La confirmation d'enregistrement avec un doublon de titre a été rejetée.", "savedObjects.saveModal.cancelButtonLabel": "Annuler", diff --git a/x-pack/platform/plugins/private/translations/translations/ja-JP.json b/x-pack/platform/plugins/private/translations/translations/ja-JP.json index 97bd6cb1a2208..18a119c25822e 100644 --- a/x-pack/platform/plugins/private/translations/translations/ja-JP.json +++ b/x-pack/platform/plugins/private/translations/translations/ja-JP.json @@ -5951,165 +5951,6 @@ "reporting.share.screenCapturePanelContent.optimizeForPrintingLabel": "印刷用に最適化", "reporting.shareContextMenu.ExportsButtonLabel": "PDF", "reporting.shareContextMenu.ExportsButtonLabelPNG": "PNGエクスポート", - "responseOpsRuleForm.actiActionsonNotifyWhen.forEachOption": "各アラート", - "responseOpsRuleForm.actiActionsonNotifyWhen.summaryOption": "アラートの概要", - "responseOpsRuleForm.actionForm.actionGroupRecoveredMessage": "回復済み", - "responseOpsRuleForm.components.ruleTypeModal.allRuleTypes": "すべて", - "responseOpsRuleForm.components.ruleTypeModal.loadingRuleTypes": "ルールタイプを読み込んでいます", - "responseOpsRuleForm.components.ruleTypeModal.minimumRequiredLicenseMessage": "このルールには{minimumLicenseRequired}ライセンスが必要です。", - "responseOpsRuleForm.components.ruleTypeModal.noRuleTypesErrorBody": "別の検索を試すか、フィルター設定を変更してください", - "responseOpsRuleForm.components.ruleTypeModal.noRuleTypesErrorTitle": "ルールタイプが見つかりませんでした", - "responseOpsRuleForm.disabledActionsWarningTitle": "このアラートには無効なアクションがあります", - "responseOpsRuleForm.healthCheck.actionText": "詳細情報", - "responseOpsRuleForm.healthCheck.alertsErrorText": "ルールを作製するには、アラートおよびアクションプラグインを有効にする必要があります。", - "responseOpsRuleForm.healthCheck.alertsErrorTitle": "アラートとアクションを有効にする必要があります", - "responseOpsRuleForm.healthCheck.apiKeysAndEncryptionErrorText": "Alertingを使用するには、APIキーを有効にして、暗号化鍵を構成する必要があります。", - "responseOpsRuleForm.healthCheck.apiKeysDisabledErrorText": "Alertingを使用するには、APIキーを有効にする必要があります。", - "responseOpsRuleForm.healthCheck.apiKeysDisabledErrorTitle": "追加の設定が必要です", - "responseOpsRuleForm.healthCheck.encryptionErrorText": "Alertingを使用するには、暗号化鍵を構成する必要があります。", - "responseOpsRuleForm.healthCheck.encryptionErrorTitle": "追加の設定が必要です", - "responseOpsRuleForm.healthCheck.healthCheck.apiKeysAndEncryptionErrorTitle": "追加の設定が必要です", - "responseOpsRuleForm.producerDisplayNames.apm": "APMおよびユーザーエクスペリエンス", - "responseOpsRuleForm.producerDisplayNames.infrastructure": "インフラストラクチャー", - "responseOpsRuleForm.producerDisplayNames.logs": "ログ", - "responseOpsRuleForm.producerDisplayNames.metrics": "メトリック", - "responseOpsRuleForm.producerDisplayNames.ml": "機械学習", - "responseOpsRuleForm.producerDisplayNames.monitoring": "スタック監視", - "responseOpsRuleForm.producerDisplayNames.observability": "Observability", - "responseOpsRuleForm.producerDisplayNames.siem": "セキュリティ", - "responseOpsRuleForm.producerDisplayNames.slo": "SLO", - "responseOpsRuleForm.producerDisplayNames.stackAlerts": "スタックアラート", - "responseOpsRuleForm.producerDisplayNames.uptime": "Syntheticsとアップタイム", - "responseOpsRuleForm.ruleActionsAlertsFilter.ActionAlertsFilterQueryPlaceholder": "KQL構文を使用してアラートをフィルター", - "responseOpsRuleForm.ruleActionsAlertsFilter.ActionAlertsFilterQueryToggleLabel": "アラートがクエリと一致する場合", - "responseOpsRuleForm.ruleActionsItem.actionErrorToolTip": "アクションにはエラーがあります。", - "responseOpsRuleForm.ruleActionsItem.actionUnableToLoadConnectorTitle": "コネクターを作成し、再試行してください。コネクターを作成できない場合は、システム管理者に連絡してください。", - "responseOpsRuleForm.ruleActionsItem.actionUseAadTemplateFieldsLabel": "アラートインデックスのテンプレートフィールドを使用", - "responseOpsRuleForm.ruleActionsItem.actionWarningsTitle": "1件の警告", - "responseOpsRuleForm.ruleActionsItem.existingAlertActionTypeEditTitle": "{actionConnectorName}", - "responseOpsRuleForm.ruleActionsItem.runWhenGroupTitle": "{groupName}のときに実行", - "responseOpsRuleForm.ruleActionsItem.summaryGroupTitle": "アラートの概要", - "responseOpsRuleForm.ruleActionsNotifyWhen.actionFrequencyLabel": "アクション頻度", - "responseOpsRuleForm.ruleActionsNotifyWhen.frequencyNotifyWhen.label": "次の間隔で実行", - "responseOpsRuleForm.ruleActionsNotifyWhen.notifyWhenThrottleWarning": "カスタムアクション間隔をルールのチェック間隔よりも短くすることはできません", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.description": "アラートステータスが変更される場合にアクションを実行します。", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.display": "ステータス変更時", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.label": "ステータス変更時", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.description": "ルール条件が満たされた場合に、アクションが実行されます。", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.display": "チェック間隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.label": "チェック間隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.description": "ルール条件が満たされた場合に、アクションが実行されます。", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.display": "カスタムアクション間隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.label": "カスタムアクション間隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.summaryOrRulePerSelectRoleDescription": "アクション頻度タイプ選択", - "responseOpsRuleForm.ruleActionsSetting.actionGroupNotSupported": "{actionGroupName}(現在サポートされていません)", - "responseOpsRuleForm.ruleActionsSetting.actionGroupRunWhen": "次のときに実行", - "responseOpsRuleForm.ruleActionsSystemActionsItem.deleteActionAriaLabel": "削除アクション", - "responseOpsRuleForm.ruleForm.actionsForm.publicBaseUrl": "server.publicBaseUrlが設定されていません。生成されたURLは相対URLか空になります。", - "responseOpsRuleForm.ruleForm.actionsForm.requiredFilterQuery": "カスタムクエリが必要です。", - "responseOpsRuleForm.ruleForm.actionTypeModalEmptyText": "別の検索を試すか、フィルター設定を変更してください。", - "responseOpsRuleForm.ruleForm.actionTypeModalEmptyTitle": "コネクターが見つかりません", - "responseOpsRuleForm.ruleForm.actionTypeModalFilterAll": "すべて", - "responseOpsRuleForm.ruleForm.actionTypeModalFilterListTitle": "フィルター", - "responseOpsRuleForm.ruleForm.actionTypeModalTitle": "コネクターを選択", - "responseOpsRuleForm.ruleForm.circuitBreakerHideFullErrorText": "完全なエラーを非表示", - "responseOpsRuleForm.ruleForm.circuitBreakerSeeFullErrorText": "完全なエラーを表示", - "responseOpsRuleForm.ruleForm.confirmRuleSaveCancelButtonText": "キャンセル", - "responseOpsRuleForm.ruleForm.confirmRuleSaveConfirmButtonText": "ルールを保存", - "responseOpsRuleForm.ruleForm.confirmRuleSaveMessageText": "いつでもアクションを追加できます。", - "responseOpsRuleForm.ruleForm.confirmRuleSaveTitle": "アクションがないルールを保存しますか?", - "responseOpsRuleForm.ruleForm.createErrorText": "ルールを作成できません。", - "responseOpsRuleForm.ruleForm.createSuccessText": "ルール\"{ruleName}\"を作成しました", - "responseOpsRuleForm.ruleForm.editErrorText": "ルールを更新できません", - "responseOpsRuleForm.ruleForm.editSuccessText": "''{ruleName}''を更新しました", - "responseOpsRuleForm.ruleForm.error.belowMinimumAlertDelayText": "アラート遅延は1以上の値でなければなりません。", - "responseOpsRuleForm.ruleForm.error.belowMinimumText": "間隔は{minimum}以上でなければなりません。", - "responseOpsRuleForm.ruleForm.error.requiredConsumerText": "範囲が必要です。", - "responseOpsRuleForm.ruleForm.error.requiredIntervalText": "確認間隔が必要です。", - "responseOpsRuleForm.ruleForm.error.requiredNameText": "名前が必要です。", - "responseOpsRuleForm.ruleForm.error.requiredRuleTypeIdText": "ルールタイプは必須です。", - "responseOpsRuleForm.ruleForm.intervalWarningText": "パフォーマンスの考慮から、{minimum}未満の間隔は推奨されません。", - "responseOpsRuleForm.ruleForm.modalSearchClearFiltersText": "フィルターを消去", - "responseOpsRuleForm.ruleForm.modalSearchPlaceholder": "検索", - "responseOpsRuleForm.ruleForm.returnTitle": "戻る", - "responseOpsRuleForm.ruleForm.routeParamsErrorText": "ルールフォームの読み込みエラーが発生しました。ルートが正しいことを確認してください。", - "responseOpsRuleForm.ruleForm.routeParamsErrorTitle": "ルールフォームを読み込めません。", - "responseOpsRuleForm.ruleForm.ruleActions.addActionDescriptionText": "コネクターを選択し、アラートがトリガーされたときに実行するアクションを設定します", - "responseOpsRuleForm.ruleForm.ruleActions.addActionHeader": "アクションを追加", - "responseOpsRuleForm.ruleForm.ruleActions.addActionOptionalText": "オプション", - "responseOpsRuleForm.ruleForm.ruleActions.addActionText": "アクションの追加", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeTimezoneLabel": "タイムゾーン", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeToggleLabel": "アラートがタイムフレーム中に生成された場合", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeWeekdays": "曜日", - "responseOpsRuleForm.ruleForm.ruleActionsNoPermissionDescription": "ルールを編集するには、アクションとコネクターへの読み取りアクセス権が必要です。", - "responseOpsRuleForm.ruleForm.ruleActionsNoPermissionTitle": "アクションとコネクターの権限が不足しています", - "responseOpsRuleForm.ruleForm.ruleActionsTitle": "アクション", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayHelpText": "指定した数の連続実行がルール条件を満たしたときにのみ、アラートが発生します。", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayTitlePrefix": "次の後にアラート", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayTitleSuffix": "連続一致", - "responseOpsRuleForm.ruleForm.ruleDefinition.advancedOptionsTitle": "高度なオプション", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertDelayDescription": "アラートが発生する前に、このルールがアラート条件を満たす必要がある連続実行の回数を設定します", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertDelayTitle": "アラート遅延", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertFlappingDetectionDescription": "アクティブと回復済みの状態がすばやく切り替わるアラートを検出し、これらのフラップアラートに対する不要なノイズを低減します", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertFlappingDetectionTitle": "アラートフラップ検出", - "responseOpsRuleForm.ruleForm.ruleDefinition.docLinkTitle": "ドキュメンテーションを表示", - "responseOpsRuleForm.ruleForm.ruleDefinition.loadingRuleTypeParamsTitle": "ルールタイプパラメーターを読み込んでいます", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleDescriptionText": "アラート条件を確認する頻度を設定します", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleTitle": "ルールスケジュール", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleTooltipText": "チェックはキューに登録されています。可能なかぎり定義された値に近づくように実行されます。", - "responseOpsRuleForm.ruleForm.ruleDefinition.scopeDescriptionText": "対応するロール権限に関連付けるアプリケーションを選択", - "responseOpsRuleForm.ruleForm.ruleDefinition.scopeTitle": "ルール範囲", - "responseOpsRuleForm.ruleForm.ruleDefinitionTitle": "ルール検知", - "responseOpsRuleForm.ruleForm.ruleDefinitionTitleShort": "定義", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleNameInputButtonAriaLabel": "ルール名を保存", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleNameInputTitle": "ルール名", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleTagsInputTitle": "タグ", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleTagsPlaceholder": "タグを追加", - "responseOpsRuleForm.ruleForm.ruleDetailsTitle": "ルール詳細", - "responseOpsRuleForm.ruleForm.ruleDetailsTitleShort": "詳細", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.backText": "戻る", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.cancelText": "キャンセル", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.createText": "ルールを作成", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.nextText": "次へ", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.saveText": "変更を保存", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.backText": "戻る", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.createTitle": "ルールを作成", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.editTitle": "ルールを編集", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalCancel": "キャンセル", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalConfirm": "変更を破棄", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalDescription": "保存されていない変更は回復できません。", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalTitle": "ルールの保存されていない変更を破棄しますか?", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.apm": "APMおよびユーザーエクスペリエンス", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.consumerSelectComboBoxTitle": "範囲を選択", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.consumerSelectTitle": "ロールの表示", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.infrastructure": "メトリック", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.logs": "ログ", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.slo": "SLO", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.stackAlerts": "スタックルール", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.uptime": "Syntheticsとアップタイム", - "responseOpsRuleForm.ruleForm.ruleNotFoundErrorText": "ルールの読み込みエラーが発生しました。ルールが存在し、選択したルールにアクセスできることを確認してください。", - "responseOpsRuleForm.ruleForm.ruleNotFoundErrorTitle": "ルールを読み込めません", - "responseOpsRuleForm.ruleForm.rulePage.ruleNameAriaLabelText": "ルール名を編集", - "responseOpsRuleForm.ruleForm.rulePageFooter.cancelText": "キャンセル", - "responseOpsRuleForm.ruleForm.rulePageFooter.createText": "ルールを作成", - "responseOpsRuleForm.ruleForm.rulePageFooter.saveText": "ルールを保存", - "responseOpsRuleForm.ruleForm.rulePageFooter.showRequestText": "リクエストを表示", - "responseOpsRuleForm.ruleForm.ruleSchedule.scheduleTitlePrefix": "毎", - "responseOpsRuleForm.ruleForm.ruleTypeNotFoundErrorText": "ルールタイプの読み込みエラーが発生しました。選択したルールタイプにアクセスできることを確認してください。", - "responseOpsRuleForm.ruleForm.ruleTypeNotFoundErrorTitle": "ルールタイプを読み込めません", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitle": "{requestType}アラートルールリクエスト", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitleCreate": "作成", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitleEdit": "編集", - "responseOpsRuleForm.ruleForm.showRequestModal.somethingWentWrongDescription": "申し訳ございませんが、何か問題が発生しました。", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitle": "このKibanaリクエストはこのルールを{requestType}します。", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitleCreate": "作成", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitleEdit": "編集", - "responseOpsRuleForm.technicalPreviewBadgeDescription": "この機能はテクニカルプレビュー中であり、将来のリリースでは変更されたり完全に削除されたりする場合があります。Elasticはすべての問題の修正に努めますが、テクニカルプレビュー中の機能には正式なGA機能のサポートSLAが適用されません。", - "responseOpsRuleForm.technicalPreviewBadgeLabel": "テクニカルプレビュー", - "responseOpsRuleForm.timeUnits.dayLabel": "{timeValue, plural, one {day} other {日}}", - "responseOpsRuleForm.timeUnits.hourLabel": "{timeValue, plural, one {hour} other {時間}}", - "responseOpsRuleForm.timeUnits.minuteLabel": "{timeValue, plural, one {minute} other {分}}", - "responseOpsRuleForm.timeUnits.secondLabel": "{timeValue, plural, one {second} other {秒}}", "savedObjects.overwriteRejectedDescription": "上書き確認が拒否されました", "savedObjects.saveDuplicateRejectedDescription": "重複ファイルの保存確認が拒否されました", "savedObjects.saveModal.cancelButtonLabel": "キャンセル", diff --git a/x-pack/platform/plugins/private/translations/translations/zh-CN.json b/x-pack/platform/plugins/private/translations/translations/zh-CN.json index fa2d2ac347900..1e4d246c50e36 100644 --- a/x-pack/platform/plugins/private/translations/translations/zh-CN.json +++ b/x-pack/platform/plugins/private/translations/translations/zh-CN.json @@ -5944,164 +5944,6 @@ "reporting.share.screenCapturePanelContent.optimizeForPrintingLabel": "打印优化", "reporting.shareContextMenu.ExportsButtonLabel": "PDF", "reporting.shareContextMenu.ExportsButtonLabelPNG": "PNG 导出", - "responseOpsRuleForm.actiActionsonNotifyWhen.forEachOption": "对于每个告警", - "responseOpsRuleForm.actiActionsonNotifyWhen.summaryOption": "告警的摘要", - "responseOpsRuleForm.actionForm.actionGroupRecoveredMessage": "已恢复", - "responseOpsRuleForm.components.ruleTypeModal.allRuleTypes": "全部", - "responseOpsRuleForm.components.ruleTypeModal.loadingRuleTypes": "正在加载规则类型", - "responseOpsRuleForm.components.ruleTypeModal.minimumRequiredLicenseMessage": "此规则需要{minimumLicenseRequired}许可证。", - "responseOpsRuleForm.components.ruleTypeModal.noRuleTypesErrorBody": "请尝试不同搜索或更改筛选设置", - "responseOpsRuleForm.components.ruleTypeModal.noRuleTypesErrorTitle": "找不到规则类型", - "responseOpsRuleForm.disabledActionsWarningTitle": "此规则具有已禁用的操作", - "responseOpsRuleForm.healthCheck.actionText": "了解详情。", - "responseOpsRuleForm.healthCheck.alertsErrorText": "要创建规则,必须启用告警和操作插件。", - "responseOpsRuleForm.healthCheck.alertsErrorTitle": "必须启用“告警和操作”", - "responseOpsRuleForm.healthCheck.apiKeysAndEncryptionErrorText": "必须启用 API 密钥并配置加密密钥才能使用 Alerting。", - "responseOpsRuleForm.healthCheck.apiKeysDisabledErrorText": "必须启用 API 密钥才能使用 Alerting。", - "responseOpsRuleForm.healthCheck.apiKeysDisabledErrorTitle": "需要其他设置", - "responseOpsRuleForm.healthCheck.encryptionErrorText": "必须配置加密密钥才能使用 Alerting。", - "responseOpsRuleForm.healthCheck.encryptionErrorTitle": "需要其他设置", - "responseOpsRuleForm.healthCheck.healthCheck.apiKeysAndEncryptionErrorTitle": "需要其他设置", - "responseOpsRuleForm.producerDisplayNames.apm": "APM 和用户体验", - "responseOpsRuleForm.producerDisplayNames.infrastructure": "基础设施", - "responseOpsRuleForm.producerDisplayNames.logs": "日志", - "responseOpsRuleForm.producerDisplayNames.metrics": "指标", - "responseOpsRuleForm.producerDisplayNames.ml": "机器学习", - "responseOpsRuleForm.producerDisplayNames.monitoring": "堆栈监测", - "responseOpsRuleForm.producerDisplayNames.observability": "可观测性", - "responseOpsRuleForm.producerDisplayNames.siem": "安全", - "responseOpsRuleForm.producerDisplayNames.slo": "SLO", - "responseOpsRuleForm.producerDisplayNames.stackAlerts": "堆栈告警", - "responseOpsRuleForm.producerDisplayNames.uptime": "Synthetics 和 Uptime", - "responseOpsRuleForm.ruleActionsAlertsFilter.ActionAlertsFilterQueryPlaceholder": "使用 KQL 语法筛选告警", - "responseOpsRuleForm.ruleActionsAlertsFilter.ActionAlertsFilterQueryToggleLabel": "如果告警与查询匹配", - "responseOpsRuleForm.ruleActionsItem.actionErrorToolTip": "操作包含错误。", - "responseOpsRuleForm.ruleActionsItem.actionUnableToLoadConnectorTitle": "创建连接器然后重试。如果无法创建连接器,请联系您的系统管理员。", - "responseOpsRuleForm.ruleActionsItem.actionUseAadTemplateFieldsLabel": "使用告警索引中的模板字段", - "responseOpsRuleForm.ruleActionsItem.actionWarningsTitle": "1 个警告", - "responseOpsRuleForm.ruleActionsItem.existingAlertActionTypeEditTitle": "{actionConnectorName}", - "responseOpsRuleForm.ruleActionsItem.runWhenGroupTitle": "当 {groupName} 时运行", - "responseOpsRuleForm.ruleActionsItem.summaryGroupTitle": "告警的摘要", - "responseOpsRuleForm.ruleActionsNotifyWhen.actionFrequencyLabel": "操作频率", - "responseOpsRuleForm.ruleActionsNotifyWhen.frequencyNotifyWhen.label": "运行间隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.notifyWhenThrottleWarning": "自定义操作时间间隔不能短于规则的检查时间间隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.description": "操作在告警状态更改时运行。", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.display": "在状态更改时", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActionGroupChange.label": "在状态更改时", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.description": "操作在符合规则条件时运行。", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.display": "按检查时间间隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.onActiveAlert.label": "按检查时间间隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.description": "操作在符合规则条件时运行。", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.display": "按自定义操作时间间隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.onThrottleInterval.label": "按自定义操作时间间隔", - "responseOpsRuleForm.ruleActionsNotifyWhen.summaryOrRulePerSelectRoleDescription": "操作频率类型选择", - "responseOpsRuleForm.ruleActionsSetting.actionGroupNotSupported": "{actionGroupName}(当前不支持)", - "responseOpsRuleForm.ruleActionsSetting.actionGroupRunWhen": "运行条件", - "responseOpsRuleForm.ruleActionsSystemActionsItem.deleteActionAriaLabel": "删除操作", - "responseOpsRuleForm.ruleForm.actionsForm.publicBaseUrl": "未设置 server.publicBaseUrl。生成的 URL 将为相对 URL 或为空。", - "responseOpsRuleForm.ruleForm.actionsForm.requiredFilterQuery": "需要自定义查询。", - "responseOpsRuleForm.ruleForm.actionTypeModalEmptyText": "请尝试不同搜索或更改筛选设置。", - "responseOpsRuleForm.ruleForm.actionTypeModalEmptyTitle": "找不到连接器", - "responseOpsRuleForm.ruleForm.actionTypeModalFilterAll": "全部", - "responseOpsRuleForm.ruleForm.actionTypeModalFilterListTitle": "筛选", - "responseOpsRuleForm.ruleForm.actionTypeModalTitle": "选择连接器", - "responseOpsRuleForm.ruleForm.circuitBreakerHideFullErrorText": "隐藏完整错误", - "responseOpsRuleForm.ruleForm.circuitBreakerSeeFullErrorText": "查看完整错误", - "responseOpsRuleForm.ruleForm.confirmRuleSaveCancelButtonText": "取消", - "responseOpsRuleForm.ruleForm.confirmRuleSaveConfirmButtonText": "保存规则", - "responseOpsRuleForm.ruleForm.confirmRuleSaveMessageText": "您可以随时添加操作。", - "responseOpsRuleForm.ruleForm.confirmRuleSaveTitle": "保存规则,而不执行任何操作?", - "responseOpsRuleForm.ruleForm.createErrorText": "无法创建规则。", - "responseOpsRuleForm.ruleForm.createSuccessText": "已创建规则“{ruleName}”", - "responseOpsRuleForm.ruleForm.editErrorText": "无法更新规则。", - "responseOpsRuleForm.ruleForm.editSuccessText": "已更新“{ruleName}”", - "responseOpsRuleForm.ruleForm.error.belowMinimumAlertDelayText": "告警延迟必须等于或大于 1。", - "responseOpsRuleForm.ruleForm.error.belowMinimumText": "时间间隔必须至少为 {minimum}。", - "responseOpsRuleForm.ruleForm.error.requiredConsumerText": "“范围”必填。", - "responseOpsRuleForm.ruleForm.error.requiredIntervalText": "“检查时间间隔”必填。", - "responseOpsRuleForm.ruleForm.error.requiredNameText": "“名称”必填。", - "responseOpsRuleForm.ruleForm.error.requiredRuleTypeIdText": "“规则类型”必填。", - "responseOpsRuleForm.ruleForm.intervalWarningText": "出于性能考虑,不建议时间间隔小于 {minimum}。", - "responseOpsRuleForm.ruleForm.modalSearchClearFiltersText": "清除筛选", - "responseOpsRuleForm.ruleForm.modalSearchPlaceholder": "搜索", - "responseOpsRuleForm.ruleForm.returnTitle": "返回", - "responseOpsRuleForm.ruleForm.routeParamsErrorText": "加载规则表单时出现错误。请确保路由正确。", - "responseOpsRuleForm.ruleForm.routeParamsErrorTitle": "无法加载规则表单", - "responseOpsRuleForm.ruleForm.ruleActions.addActionDescriptionText": "选择连接器并配置在触发告警时要执行的操作", - "responseOpsRuleForm.ruleForm.ruleActions.addActionHeader": "添加操作", - "responseOpsRuleForm.ruleForm.ruleActions.addActionOptionalText": "可选", - "responseOpsRuleForm.ruleForm.ruleActions.addActionText": "添加操作", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeTimezoneLabel": "时区", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeToggleLabel": "如果在时间范围内生成了告警", - "responseOpsRuleForm.ruleForm.ruleActionsAlertsFilterTimeframeWeekdays": "星期几", - "responseOpsRuleForm.ruleForm.ruleActionsNoPermissionDescription": "您必须对操作和连接器具有读取访问权限才能编辑规则。", - "responseOpsRuleForm.ruleForm.ruleActionsNoPermissionTitle": "缺少操作和连接器权限", - "responseOpsRuleForm.ruleForm.ruleActionsTitle": "操作", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayHelpText": "仅当指定数目的连续运行满足规则条件时,才会发生告警。", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayTitlePrefix": "此后告警", - "responseOpsRuleForm.ruleForm.ruleAlertDelay.alertDelayTitleSuffix": "连续匹配", - "responseOpsRuleForm.ruleForm.ruleDefinition.advancedOptionsTitle": "高级选项", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertDelayDescription": "设置连续运行次数,此规则的该次数必须满足告警条件,才会发生告警", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertDelayTitle": "告警延迟", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertFlappingDetectionDescription": "检测在“活动”和“已恢复”状态之间快速切换的告警,并为这些摆动告警减少不必要噪音", - "responseOpsRuleForm.ruleForm.ruleDefinition.alertFlappingDetectionTitle": "告警摆动检测", - "responseOpsRuleForm.ruleForm.ruleDefinition.docLinkTitle": "查看文档", - "responseOpsRuleForm.ruleForm.ruleDefinition.loadingRuleTypeParamsTitle": "正在加载规则类型参数", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleDescriptionText": "设置检查告警条件的频率", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleTitle": "规则计划", - "responseOpsRuleForm.ruleForm.ruleDefinition.scheduleTooltipText": "检查已排队;它们的运行接近于容量允许的定义值。", - "responseOpsRuleForm.ruleForm.ruleDefinition.scopeDescriptionText": "选择应用程序以关联对应角色权限", - "responseOpsRuleForm.ruleForm.ruleDefinition.scopeTitle": "规则范围", - "responseOpsRuleForm.ruleForm.ruleDefinitionTitle": "规则定义", - "responseOpsRuleForm.ruleForm.ruleDefinitionTitleShort": "定义", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleNameInputButtonAriaLabel": "保存规则名称", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleNameInputTitle": "规则名称", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleTagsInputTitle": "标签", - "responseOpsRuleForm.ruleForm.ruleDetails.ruleTagsPlaceholder": "添加标签", - "responseOpsRuleForm.ruleForm.ruleDetailsTitle": "规则详情", - "responseOpsRuleForm.ruleForm.ruleDetailsTitleShort": "详情", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.backText": "返回", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.cancelText": "取消", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.createText": "创建规则", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.nextText": "下一步", - "responseOpsRuleForm.ruleForm.ruleFlyoutFooter.saveText": "保存更改", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.backText": "返回", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.createTitle": "创建规则", - "responseOpsRuleForm.ruleForm.ruleFlyoutHeader.editTitle": "编辑规则", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalCancel": "取消", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalConfirm": "放弃更改", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalDescription": "您无法恢复未保存更改。", - "responseOpsRuleForm.ruleForm.ruleFormCancelModalTitle": "丢弃规则的未保存更改?", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.apm": "APM 和用户体验", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.consumerSelectComboBoxTitle": "选择范围", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.consumerSelectTitle": "角色可见性", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.infrastructure": "指标", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.logs": "日志", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.slo": "SLO", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.stackAlerts": "Stack 规则", - "responseOpsRuleForm.ruleForm.ruleFormConsumerSelection.uptime": "Synthetics 和 Uptime", - "responseOpsRuleForm.ruleForm.ruleNotFoundErrorText": "加载规则时出错。请确保规则存在,并且您有权访问选定规则。", - "responseOpsRuleForm.ruleForm.ruleNotFoundErrorTitle": "无法加载规则", - "responseOpsRuleForm.ruleForm.rulePage.ruleNameAriaLabelText": "编辑规则名称", - "responseOpsRuleForm.ruleForm.rulePageFooter.cancelText": "取消", - "responseOpsRuleForm.ruleForm.rulePageFooter.createText": "创建规则", - "responseOpsRuleForm.ruleForm.rulePageFooter.saveText": "保存规则", - "responseOpsRuleForm.ruleForm.rulePageFooter.showRequestText": "显示请求", - "responseOpsRuleForm.ruleForm.ruleSchedule.scheduleTitlePrefix": "每", - "responseOpsRuleForm.ruleForm.ruleTypeNotFoundErrorText": "加载规则类型时出现错误。请确保您有权访问选定规则类型。", - "responseOpsRuleForm.ruleForm.ruleTypeNotFoundErrorTitle": "无法加载规则类型", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitle": "{requestType} 告警规则请求", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitleCreate": "创建", - "responseOpsRuleForm.ruleForm.showRequestModal.headerTitleEdit": "编辑", - "responseOpsRuleForm.ruleForm.showRequestModal.somethingWentWrongDescription": "抱歉,出现问题。", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitle": "此 Kibana 请求将 {requestType} 该规则。", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitleCreate": "创建", - "responseOpsRuleForm.ruleForm.showRequestModal.subheadingTitleEdit": "编辑", - "responseOpsRuleForm.technicalPreviewBadgeDescription": "此功能处于技术预览状态,在未来版本中可能会更改或完全移除。Elastic 将努力修复任何问题,但处于技术预览状态的功能不受正式 GA 功能支持 SLA 的约束。", - "responseOpsRuleForm.technicalPreviewBadgeLabel": "技术预览", - "responseOpsRuleForm.timeUnits.hourLabel": "{timeValue, plural, one {小时} other {小时}}", - "responseOpsRuleForm.timeUnits.minuteLabel": "{timeValue, plural, one {分钟} other {分钟}}", - "responseOpsRuleForm.timeUnits.secondLabel": "{timeValue, plural, one {秒} other {秒}}", "savedObjects.overwriteRejectedDescription": "已拒绝覆盖确认", "savedObjects.saveDuplicateRejectedDescription": "已拒绝使用重复标题保存确认", "savedObjects.saveModal.cancelButtonLabel": "取消", diff --git a/yarn.lock b/yarn.lock index aa30545cbfd63..c5a19e1019922 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8110,31 +8110,31 @@ version "0.0.0" uid "" -"@kbn/response-ops-alerts-apis@link:src/platform/packages/shared/response-ops/alerts-apis": +"@kbn/response-ops-alerts-apis@link:x-pack/platform/packages/shared/response-ops/alerts-apis": version "0.0.0" uid "" -"@kbn/response-ops-alerts-delete@link:src/platform/packages/shared/response-ops/alerts-delete": +"@kbn/response-ops-alerts-delete@link:x-pack/platform/packages/shared/response-ops/alerts-delete": version "0.0.0" uid "" -"@kbn/response-ops-alerts-fields-browser@link:src/platform/packages/shared/response-ops/alerts-fields-browser": +"@kbn/response-ops-alerts-fields-browser@link:x-pack/platform/packages/shared/response-ops/alerts-fields-browser": version "0.0.0" uid "" -"@kbn/response-ops-alerts-filters-form@link:src/platform/packages/shared/response-ops/alerts-filters-form": +"@kbn/response-ops-alerts-filters-form@link:x-pack/platform/packages/shared/response-ops/alerts-filters-form": version "0.0.0" uid "" -"@kbn/response-ops-alerts-table@link:src/platform/packages/shared/response-ops/alerts-table": +"@kbn/response-ops-alerts-table@link:x-pack/platform/packages/shared/response-ops/alerts-table": version "0.0.0" uid "" -"@kbn/response-ops-form-generator@link:src/platform/packages/shared/response-ops/form-generator": +"@kbn/response-ops-form-generator@link:x-pack/platform/packages/shared/response-ops/form-generator": version "0.0.0" uid "" -"@kbn/response-ops-recurring-schedule-form@link:src/platform/packages/shared/response-ops/recurring-schedule-form": +"@kbn/response-ops-recurring-schedule-form@link:x-pack/platform/packages/shared/response-ops/recurring-schedule-form": version "0.0.0" uid "" @@ -8142,15 +8142,15 @@ version "0.0.0" uid "" -"@kbn/response-ops-rule-form@link:src/platform/packages/shared/response-ops/rule_form": +"@kbn/response-ops-rule-form@link:x-pack/platform/packages/shared/response-ops/rule_form": version "0.0.0" uid "" -"@kbn/response-ops-rule-params@link:src/platform/packages/shared/response-ops/rule_params": +"@kbn/response-ops-rule-params@link:x-pack/platform/packages/shared/response-ops/rule_params": version "0.0.0" uid "" -"@kbn/response-ops-rules-apis@link:src/platform/packages/shared/response-ops/rules-apis": +"@kbn/response-ops-rules-apis@link:x-pack/platform/packages/shared/response-ops/rules-apis": version "0.0.0" uid ""