Skip to content

Commit

Permalink
[ES body removal] @elastic/kibana-security (#204862)
Browse files Browse the repository at this point in the history
## Summary

Attempt to remove the deprecated `body` in the ES client.
  • Loading branch information
afharo authored Dec 19, 2024
1 parent edce912 commit e5cdf36
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { errors } from '@elastic/elasticsearch';
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import type * as estypes from '@elastic/elasticsearch/lib/api/types';

import type { RequestHandler, RouteConfig } from '@kbn/core/server';
import { kibanaResponseFactory } from '@kbn/core/server';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import type * as estypes from '@elastic/elasticsearch/lib/api/types';

import type { RouteDefinitionParams } from '..';
import { KIBANA_ADMIN_ROLE_NAME, KIBANA_USER_ROLE_NAME } from '../../deprecations';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
import type {
AggregateName,
AggregationsMultiTermsAggregate,
BulkOperationContainer,
CreateRequest,
IndicesCreateRequest,
MsearchRequestItem,
SearchHit,
} from '@elastic/elasticsearch/lib/api/types';
import type {
BulkOperationContainer,
SortResults,
} from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
} from '@elastic/elasticsearch/lib/api/types';
import semver from 'semver';

import type { ElasticsearchClient, Logger } from '@kbn/core/server';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
* 2.0.
*/

import type { SecurityActivateUserProfileRequest } from '@elastic/elasticsearch/lib/api/types';
import type { SecurityUserProfile } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import type {
SecurityActivateUserProfileRequest,
SecurityUserProfile,
} from '@elastic/elasticsearch/lib/api/types';

import type { IClusterClient, Logger } from '@kbn/core/server';
import type {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
import type * as estypes from '@elastic/elasticsearch/lib/api/types';
import type { SuperTest } from 'supertest';

import type {
Expand Down

0 comments on commit e5cdf36

Please sign in to comment.