Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 @@ -434,6 +434,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 @@ -171,6 +171,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/agent-builder-platform-plugin": "link:x-pack/platform/plugins/shared/agent_builder_platform",
"@kbn/ai-assistant": "link:x-pack/platform/packages/shared/kbn-ai-assistant",
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"
}
47 changes: 47 additions & 0 deletions src/platform/packages/shared/kbn-actions-utils/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file is generated by the @kbn/moon package. Any manual edits will be erased!
# To extend this, write your extensions/overrides to 'moon.extend.yml'
# then regenerate this file with: 'node scripts/regenerate_moon_projects.js --update --filter @kbn/actions-utils'

$schema: https://moonrepo.dev/schemas/project.json
id: '@kbn/actions-utils'
type: unknown
owners:
defaultOwner: '@elastic/response-ops'
toolchain:
default: node
language: typescript
project:
name: '@kbn/actions-utils'
description: Moon project for @kbn/actions-utils
channel: ''
owner: '@elastic/response-ops'
metadata:
sourceRoot: src/platform/packages/shared/kbn-actions-utils
dependsOn:
- '@kbn/config-schema'
- '@kbn/logging'
tags:
- shared-common
- package
- prod
- group-platform
- shared
- jest-unit-tests
fileGroups:
src:
- '**/*.ts'
- '**/*.tsx'
- '!target/**/*'
tasks:
jest:
args:
- '--config'
- $projectRoot/jest.config.js
inputs:
- '@group(src)'
jestCI:
args:
- '--config'
- $projectRoot/jest.config.js
inputs:
- '@group(src)'
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"
}
21 changes: 21 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,21 @@
{
"extends": "@kbn/tsconfig-base/tsconfig.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
"jest",
"node",
]
},
"include": [
"**/*.ts",
"**/*.tsx",
],
"exclude": [
"target/**/*"
],
"kbn_references": [
"@kbn/config-schema",
"@kbn/logging",
]
}
Loading