Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ src/platform/packages/shared/home/sample_data_card @elastic/appex-sharedux
src/platform/packages/shared/home/sample_data_tab @elastic/appex-sharedux
src/platform/packages/shared/home/sample_data_types @elastic/appex-sharedux
src/platform/packages/shared/kbn-actions-types @elastic/response-ops
src/platform/packages/shared/kbn-actions-utils @elastic/response-ops
src/platform/packages/shared/kbn-aiops-utils @elastic/ml-ui
src/platform/packages/shared/kbn-alerting-types @elastic/response-ops
src/platform/packages/shared/kbn-alerts-as-data-utils @elastic/response-ops
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"@kbn/actions-plugin": "link:x-pack/platform/plugins/shared/actions",
"@kbn/actions-simulators-plugin": "link:x-pack/platform/test/alerting_api_integration/common/plugins/actions_simulators",
"@kbn/actions-types": "link:src/platform/packages/shared/kbn-actions-types",
"@kbn/actions-utils": "link:src/platform/packages/shared/kbn-actions-utils",
"@kbn/advanced-settings-plugin": "link:src/platform/plugins/private/advanced_settings",
"@kbn/ai-assistant": "link:x-pack/platform/packages/shared/kbn-ai-assistant",
"@kbn/ai-assistant-common": "link:x-pack/platform/packages/shared/ai-assistant/common",
Expand Down
13 changes: 13 additions & 0 deletions src/platform/packages/shared/kbn-actions-utils/index.ts
Original file line number Diff line number Diff line change
@@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side
* Public License v 1"; you may not use this file except in compliance with, at
* 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 { CustomHostSettings, ProxySettings, SSLSettings } from './utils/types';
export { customHostSettingsSchema } from './utils/types';
export { getNodeSSLOptions, getSSLSettingsFromConfig } from './utils/get_node_ssl_options';
export { getCustomAgents } from './utils/get_custom_agents';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved these functions to a package so we could use them from another package.

14 changes: 14 additions & 0 deletions src/platform/packages/shared/kbn-actions-utils/jest.config.js
Original file line number Diff line number Diff line change
@@ -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", the "GNU Affero General Public License v3.0 only", and the "Server Side
* Public License v 1"; you may not use this file except in compliance with, at
* 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: ['<rootDir>/src/platform/packages/shared/kbn-actions-utils'],
};
9 changes: 9 additions & 0 deletions src/platform/packages/shared/kbn-actions-utils/kibana.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "shared-common",
"id": "@kbn/actions-utils",
"owner": [
"@elastic/response-ops"
],
"group": "platform",
"visibility": "shared"
}
6 changes: 6 additions & 0 deletions src/platform/packages/shared/kbn-actions-utils/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "@kbn/actions-utils",
"private": true,
"version": "1.0.0",
"license": "Elastic License 2.0 OR AGPL-3.0-only OR SSPL-1.0"
}
22 changes: 22 additions & 0 deletions src/platform/packages/shared/kbn-actions-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": "@kbn/tsconfig-base/tsconfig.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
"jest",
"node",
]
},
"include": [
"**/*.ts",
"**/*.tsx",
],
"exclude": [
"target/**/*"
],
"kbn_references": [
"@kbn/licensing-types",
"@kbn/config-schema",
"@kbn/logging",
]
}
Loading