diff --git a/src/core/server/elasticsearch/client/cluster_client.ts b/src/core/server/elasticsearch/client/cluster_client.ts index 09b577088e8a33..d9a0e6fe3f2384 100644 --- a/src/core/server/elasticsearch/client/cluster_client.ts +++ b/src/core/server/elasticsearch/client/cluster_client.ts @@ -22,7 +22,7 @@ import { Logger } from '../../logging'; import { GetAuthHeaders, isRealRequest, Headers } from '../../http'; import { ensureRawRequest, filterHeaders } from '../../http/router'; import { ScopeableRequest } from '../types'; -import { ElasticSearchClient } from './types'; +import { ElasticsearchClient } from './types'; import { configureClient } from './configure_client'; import { ElasticsearchClientConfig } from './client_config'; import { ScopedClusterClient, IScopedClusterClient } from './scoped_cluster_client'; @@ -38,9 +38,9 @@ const noop = () => undefined; **/ export interface IClusterClient { /** - * A {@link ElasticSearchClient | client} to be used to query the ES cluster on behalf of the Kibana internal user + * A {@link ElasticsearchClient | client} to be used to query the ES cluster on behalf of the Kibana internal user */ - readonly asInternalUser: ElasticSearchClient; + readonly asInternalUser: ElasticsearchClient; /** * Creates a {@link IScopedClusterClient | scoped cluster client} bound to given {@link ScopeableRequest | request} */ diff --git a/src/core/server/elasticsearch/client/index.ts b/src/core/server/elasticsearch/client/index.ts index 1a2f1f013d69f6..18e84482024ca1 100644 --- a/src/core/server/elasticsearch/client/index.ts +++ b/src/core/server/elasticsearch/client/index.ts @@ -17,7 +17,7 @@ * under the License. */ -export { ElasticSearchClient } from './types'; +export { ElasticsearchClient } from './types'; export { IScopedClusterClient, ScopedClusterClient } from './scoped_cluster_client'; export { ElasticsearchClientConfig } from './client_config'; export { IClusterClient, ICustomClusterClient, ClusterClient } from './cluster_client'; diff --git a/src/core/server/elasticsearch/client/mocks.ts b/src/core/server/elasticsearch/client/mocks.ts index 36cc27a5ba3ee9..75644435a7f2a7 100644 --- a/src/core/server/elasticsearch/client/mocks.ts +++ b/src/core/server/elasticsearch/client/mocks.ts @@ -19,7 +19,7 @@ import { Client, ApiResponse } from '@elastic/elasticsearch'; import { TransportRequestPromise } from '@elastic/elasticsearch/lib/Transport'; -import { ElasticSearchClient } from './types'; +import { ElasticsearchClient } from './types'; import { ICustomClusterClient } from './cluster_client'; const createInternalClientMock = (): DeeplyMockedKeys => { @@ -63,7 +63,7 @@ const createInternalClientMock = (): DeeplyMockedKeys => { return (client as unknown) as DeeplyMockedKeys; }; -export type ElasticSearchClientMock = DeeplyMockedKeys; +export type ElasticSearchClientMock = DeeplyMockedKeys; const createClientMock = (): ElasticSearchClientMock => (createInternalClientMock() as unknown) as ElasticSearchClientMock; diff --git a/src/core/server/elasticsearch/client/scoped_cluster_client.ts b/src/core/server/elasticsearch/client/scoped_cluster_client.ts index 51a51db190c2d1..1af7948a65e168 100644 --- a/src/core/server/elasticsearch/client/scoped_cluster_client.ts +++ b/src/core/server/elasticsearch/client/scoped_cluster_client.ts @@ -17,7 +17,7 @@ * under the License. */ -import { ElasticSearchClient } from './types'; +import { ElasticsearchClient } from './types'; /** * Serves the same purpose as the normal {@link ClusterClient | cluster client} but exposes @@ -29,21 +29,21 @@ import { ElasticSearchClient } from './types'; **/ export interface IScopedClusterClient { /** - * A {@link ElasticSearchClient | client} to be used to query the elasticsearch cluster + * A {@link ElasticsearchClient | client} to be used to query the elasticsearch cluster * on behalf of the internal Kibana user. */ - readonly asInternalUser: ElasticSearchClient; + readonly asInternalUser: ElasticsearchClient; /** - * A {@link ElasticSearchClient | client} to be used to query the elasticsearch cluster + * A {@link ElasticsearchClient | client} to be used to query the elasticsearch cluster * on behalf of the user that initiated the request to the Kibana server. */ - readonly asCurrentUser: ElasticSearchClient; + readonly asCurrentUser: ElasticsearchClient; } /** @internal **/ export class ScopedClusterClient implements IScopedClusterClient { constructor( - public readonly asInternalUser: ElasticSearchClient, - public readonly asCurrentUser: ElasticSearchClient + public readonly asInternalUser: ElasticsearchClient, + public readonly asCurrentUser: ElasticsearchClient ) {} } diff --git a/src/core/server/elasticsearch/client/types.ts b/src/core/server/elasticsearch/client/types.ts index 6e93c2dddaa224..934120c330e920 100644 --- a/src/core/server/elasticsearch/client/types.ts +++ b/src/core/server/elasticsearch/client/types.ts @@ -29,7 +29,7 @@ import type { * * @public */ -export type ElasticSearchClient = Omit< +export type ElasticsearchClient = Omit< Client, 'connectionPool' | 'transport' | 'serializer' | 'extend' | 'helpers' | 'child' | 'close' > & { diff --git a/src/core/server/elasticsearch/index.ts b/src/core/server/elasticsearch/index.ts index c5ee9f5e3d17b0..8bb77b5dfdee07 100644 --- a/src/core/server/elasticsearch/index.ts +++ b/src/core/server/elasticsearch/index.ts @@ -34,6 +34,6 @@ export { IClusterClient, ICustomClusterClient, ElasticsearchClientConfig, - ElasticSearchClient, + ElasticsearchClient, IScopedClusterClient, } from './client';