[Data cleanup] unify serializable state (#107745)

* Use Serializable from package

* Rename to align with core

* fix

* more replacements

* docssss

* fix

* Move it to @kbn/utility-types and remove core export

* buildy build

* tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Liza Katz 2021-08-10 13:03:48 +02:00 committed by GitHub
parent eca7146a9f
commit 204efae5bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
178 changed files with 759 additions and 927 deletions

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { JsonObject } from '@kbn/common-utils';
import { JsonObject } from '@kbn/utility-types';
import type { IEsSearchResponse } from '../../../../../../../../src/plugins/data/common';
import type { Ecs } from '../../../../ecs';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { JsonObject } from '@kbn/common-utils';
import { JsonObject } from '@kbn/utility-types';
import { IEsSearchResponse } from '../../../../../../../../src/plugins/data/common';
import { Inspect, Maybe } from '../../../common';

View file

@ -4,7 +4,7 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { JsonObject } from '@kbn/common-utils';
import { JsonObject } from '@kbn/utility-types';
import { DslQuery, Filter } from '@kbn/es-query';

View file

@ -6,7 +6,7 @@
*/
import { isEmpty, isString, flow } from 'lodash/fp';
import { JsonObject } from '@kbn/common-utils';
import { JsonObject } from '@kbn/utility-types';
import { EsQueryConfig, Filter, Query } from '@kbn/es-query';
import { esQuery, esKuery, IIndexPattern } from '../../../../../../../src/plugins/data/public';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { JsonObject } from '@kbn/common-utils';
import { JsonObject } from '@kbn/utility-types';
import { DocValueFields } from '../../../../../../common/search_strategy';
export const buildTimelineDetailsQuery = (