Move src/core/types/elasticsearch to @kbn/es-types (#140522)

* create empty package

* move types to packages

* [CI] Auto-commit changed files from 'node scripts/generate codeowners'

* start fixing imports

* fix more imports

* fix inline import

* add apm-ui as owners

* [CI] Auto-commit changed files from 'node scripts/generate codeowners'

* fix new usages

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Pierre Gayvallet 2022-09-20 10:32:13 +02:00 committed by GitHub
parent 256f2e7353
commit 9579ea7235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
76 changed files with 254 additions and 93 deletions

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import type { ESSearchRequest } from '@kbn/core/types/elasticsearch';
import type { ESSearchRequest } from '@kbn/es-types';
interface BuildSortedEventsQueryOpts {
aggs?: Record<string, estypes.AggregationsAggregationContainer>;

View file

@ -17,7 +17,7 @@ import { loggingSystemMock } from '@kbn/core/server/mocks';
import { getRuleType } from './rule_type';
import { EsQueryRuleParams, EsQueryRuleState } from './rule_type_params';
import { ActionContext } from './action_context';
import { ESSearchResponse, ESSearchRequest } from '@kbn/core/types/elasticsearch';
import type { ESSearchResponse, ESSearchRequest } from '@kbn/es-types';
import { elasticsearchClientMock } from '@kbn/core-elasticsearch-client-server-mocks';
import { coreMock } from '@kbn/core/server/mocks';
import { ActionGroupId, ConditionMetAlertInstanceId } from './constants';