Removed one liner deprecation found with ElasticClient and made it harder to accidently import from the kbn package (#110318)
## Summary Removes ElasticSearch deprecation and makes it harder to import it from the wrong package. I accidentally exposed a deprecated `ElasticSearch` from a package we do not want to expose and everyone's IDE is suggesting it rather than the correct one from Kibana core. * Removes the type from the exports within the package * Fixes the instance that is trying to import it in favor of the correct one.
This commit is contained in:
parent
18fe8c4987
commit
2859eeb7de
|
@ -12,7 +12,6 @@ export * from './decode_version';
|
||||||
export * from './delete_all_index';
|
export * from './delete_all_index';
|
||||||
export * from './delete_policy';
|
export * from './delete_policy';
|
||||||
export * from './delete_template';
|
export * from './delete_template';
|
||||||
export * from './elasticsearch_client';
|
|
||||||
export * from './encode_hit_version';
|
export * from './encode_hit_version';
|
||||||
export * from './get_index_aliases';
|
export * from './get_index_aliases';
|
||||||
export * from './get_index_count';
|
export * from './get_index_count';
|
||||||
|
|
|
@ -17,14 +17,17 @@ import type { ListArray, ExceptionListItemSchema } from '@kbn/securitysolution-i
|
||||||
import { MAX_EXCEPTION_LIST_SIZE } from '@kbn/securitysolution-list-constants';
|
import { MAX_EXCEPTION_LIST_SIZE } from '@kbn/securitysolution-list-constants';
|
||||||
import { hasLargeValueList } from '@kbn/securitysolution-list-utils';
|
import { hasLargeValueList } from '@kbn/securitysolution-list-utils';
|
||||||
import { parseScheduleDates } from '@kbn/securitysolution-io-ts-utils';
|
import { parseScheduleDates } from '@kbn/securitysolution-io-ts-utils';
|
||||||
import { ElasticsearchClient } from '@kbn/securitysolution-es-utils';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
TimestampOverrideOrUndefined,
|
TimestampOverrideOrUndefined,
|
||||||
Privilege,
|
Privilege,
|
||||||
RuleExecutionStatus,
|
RuleExecutionStatus,
|
||||||
} from '../../../../common/detection_engine/schemas/common/schemas';
|
} from '../../../../common/detection_engine/schemas/common/schemas';
|
||||||
import { Logger, SavedObjectsClientContract } from '../../../../../../../src/core/server';
|
import {
|
||||||
|
ElasticsearchClient,
|
||||||
|
Logger,
|
||||||
|
SavedObjectsClientContract,
|
||||||
|
} from '../../../../../../../src/core/server';
|
||||||
import {
|
import {
|
||||||
AlertInstanceContext,
|
AlertInstanceContext,
|
||||||
AlertInstanceState,
|
AlertInstanceState,
|
||||||
|
|
Loading…
Reference in a new issue