From 454efff28397b3908a2b6a9a232f196d0610fa7e Mon Sep 17 00:00:00 2001 From: Liza K Date: Thu, 29 Jul 2021 16:53:06 +0200 Subject: [PATCH] Align deprecation messages --- ...in-plugins-data-public.aggconfig.tojson.md | 2 +- ...plugin-plugins-data-public.customfilter.md | 2 +- ...na-plugin-plugins-data-public.esfilters.md | 4 +- ...bana-plugin-plugins-data-public.eskuery.md | 2 +- ...bana-plugin-plugins-data-public.esquery.md | 2 +- ...lugin-plugins-data-public.esqueryconfig.md | 2 +- ...plugin-plugins-data-public.existsfilter.md | 2 +- ...ibana-plugin-plugins-data-public.filter.md | 2 +- ...lugin-plugins-data-public.ifieldsubtype.md | 2 +- ...a-plugin-plugins-data-public.ifieldtype.md | 2 +- ...ta-public.indexpattern.addscriptedfield.md | 2 +- ...indexpattern.getaggregationrestrictions.md | 8 +- ...ublic.indexpattern.getnonscriptedfields.md | 2 +- ...a-public.indexpattern.getscriptedfields.md | 2 +- ...s-data-public.indexpattern.intervalname.md | 2 +- ...public.indexpattern.removescriptedfield.md | 2 +- ...ana-plugin-plugins-data-public.isfilter.md | 2 +- ...na-plugin-plugins-data-public.isfilters.md | 2 +- ...na-plugin-plugins-data-public.kuerynode.md | 2 +- ...ugin-plugins-data-public.matchallfilter.md | 2 +- ...plugin-plugins-data-public.phrasefilter.md | 2 +- ...lugin-plugins-data-public.phrasesfilter.md | 2 +- ...-plugin-plugins-data-public.rangefilter.md | 2 +- ...gin-plugins-data-public.rangefiltermeta.md | 2 +- ...n-plugins-data-public.rangefilterparams.md | 2 +- ...-plugins-data-public.searchsource.fetch.md | 2 +- ...ugins-data-server.buildqueryfromfilters.md | 2 +- ...lugin-plugins-data-server.esqueryconfig.md | 2 +- ...ibana-plugin-plugins-data-server.filter.md | 2 +- ...lugin-plugins-data-server.ifieldsubtype.md | 2 +- ...a-plugin-plugins-data-server.ifieldtype.md | 2 +- ...ta-server.indexpattern.addscriptedfield.md | 2 +- ...indexpattern.getaggregationrestrictions.md | 8 +- ...erver.indexpattern.getnonscriptedfields.md | 2 +- ...a-server.indexpattern.getscriptedfields.md | 2 +- ...s-data-server.indexpattern.intervalname.md | 2 +- ...server.indexpattern.removescriptedfield.md | 2 +- ...na-plugin-plugins-data-server.kuerynode.md | 2 +- src/plugins/data/common/es_query/index.ts | 177 ++++++++++++------ src/plugins/data/common/index.ts | 5 +- .../common/index_patterns/fields/types.ts | 4 +- .../index_patterns/index_pattern.ts | 9 +- .../data/common/search/aggs/agg_config.ts | 3 +- .../search/search_source/search_source.ts | 3 +- src/plugins/data/public/deprecated.ts | 21 ++- src/plugins/data/public/public.api.md | 18 +- src/plugins/data/server/deprecated.ts | 9 +- .../data/server/search/routes/msearch.ts | 1 + src/plugins/data/server/server.api.md | 10 +- 49 files changed, 208 insertions(+), 142 deletions(-) diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.aggconfig.tojson.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.aggconfig.tojson.md index aa639aa574076..6e9f12d98d149 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.aggconfig.tojson.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.aggconfig.tojson.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> - Use serialize() instead. +> Use serialize() instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.customfilter.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.customfilter.md index 5c666c7f9fe1e..3d08df8544d6c 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.customfilter.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.customfilter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esfilters.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esfilters.md index ee04b37bb153c..041cbd5d10bf1 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esfilters.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esfilters.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import helpers from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import helpers from the "@kbn/es-query" package directly instead. 8.0 > Filter helpers namespace: @@ -28,7 +28,7 @@ esFilters: { isPhraseFilter: (filter: any) => filter is import("@kbn/es-query").PhraseFilter; isExistsFilter: (filter: any) => filter is import("@kbn/es-query").ExistsFilter; isPhrasesFilter: (filter: any) => filter is import("@kbn/es-query").PhrasesFilter; - isRangeFilter: (filter: any) => filter is import("@kbn/es-query").RangeFilter; + isRangeFilter: (filter?: import("@kbn/es-query").ExistsFilter | import("@kbn/es-query").GeoPolygonFilter | import("@kbn/es-query").PhrasesFilter | import("@kbn/es-query").PhraseFilter | import("@kbn/es-query").MatchAllFilter | import("@kbn/es-query").MissingFilter | import("@kbn/es-query").RangeFilter | import("@kbn/es-query").GeoBoundingBoxFilter | undefined) => filter is import("@kbn/es-query").RangeFilter; isMatchAllFilter: (filter: any) => filter is import("@kbn/es-query").MatchAllFilter; isMissingFilter: (filter: any) => filter is import("@kbn/es-query").MissingFilter; isQueryStringFilter: (filter: any) => filter is import("@kbn/es-query/target_types/filters/build_filters").QueryStringFilter; diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.eskuery.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.eskuery.md index 48cb20e0b9032..e569733f15e7f 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.eskuery.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.eskuery.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import helpers from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import helpers from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esquery.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esquery.md index deb50b1928010..447e387f90eb5 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esquery.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esquery.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import helpers from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import helpers from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esqueryconfig.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esqueryconfig.md index 3e8c370941260..f877fa26b1b25 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esqueryconfig.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.esqueryconfig.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.existsfilter.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.existsfilter.md index ec5bc71c614ec..5c98ba4131ac3 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.existsfilter.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.existsfilter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.filter.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.filter.md index 454dde806532f..b25d313129634 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.filter.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.filter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ifieldsubtype.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ifieldsubtype.md index e2fa06a8acc6c..ec723ddc00e72 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ifieldsubtype.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ifieldsubtype.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ifieldtype.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ifieldtype.md index e1acea53ea5e0..b2d0405145a4a 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ifieldtype.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.ifieldtype.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Use IndexPatternField or FieldSpec instead +> Use `IndexPatternField` or `FieldSpec` instead 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.addscriptedfield.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.addscriptedfield.md index e0ee1f0ec15a4..3f8048d2913fb 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.addscriptedfield.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.addscriptedfield.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> use runtime field instead +> use runtime field instead 8.0 > Add scripted field to field list diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.getaggregationrestrictions.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.getaggregationrestrictions.md index 1bbe0b594ecf0..e42980bb53af4 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.getaggregationrestrictions.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.getaggregationrestrictions.md @@ -9,9 +9,7 @@ ```typescript getAggregationRestrictions(): Record Warning: This API is now obsolete. > -> use runtime field instead +> use runtime field instead 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.getscriptedfields.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.getscriptedfields.md index 57e1b5f49371b..517dec992c090 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.getscriptedfields.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.getscriptedfields.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> use runtime field instead +> use runtime field instead 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.intervalname.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.intervalname.md index 81e7fb9c1d57b..9d26cf9730f46 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.intervalname.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.intervalname.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Deprecated. used by time range index patterns +> Used by time range index patterns 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.removescriptedfield.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.removescriptedfield.md index d3e1b26810fd7..fbd85a7d73230 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.removescriptedfield.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.removescriptedfield.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> use runtime field instead +> use runtime field instead 8.0 > Remove scripted field from field list diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.isfilter.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.isfilter.md index eb6b9968544c7..8891620ad01ef 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.isfilter.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.isfilter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.isfilters.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.isfilters.md index 52bfaa67e2258..522a1c66bb80e 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.isfilters.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.isfilters.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.kuerynode.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.kuerynode.md index bb3eb02dc88b9..6c6904d6625c6 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.kuerynode.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.kuerynode.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.matchallfilter.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.matchallfilter.md index 36712d80ff644..35ebdb1473c4e 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.matchallfilter.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.matchallfilter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.phrasefilter.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.phrasefilter.md index 1c0dcc0589d0a..850aff0f6cd85 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.phrasefilter.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.phrasefilter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.phrasesfilter.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.phrasesfilter.md index 64bce6d4f6111..a28dba5b1cd3f 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.phrasesfilter.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.phrasesfilter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefilter.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefilter.md index 9f072aae6e194..91dd7c13c472e 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefilter.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefilter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefiltermeta.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefiltermeta.md index e1b4f2886a6de..291dc90c3971d 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefiltermeta.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefiltermeta.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefilterparams.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefilterparams.md index 23c11b1317c7e..42db2d353befa 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefilterparams.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.rangefilterparams.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.searchsource.fetch.md b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.searchsource.fetch.md index e6ba1a51a867d..977f875b214e5 100644 --- a/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.searchsource.fetch.md +++ b/docs/development/plugins/data/public/kibana-plugin-plugins-data-public.searchsource.fetch.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Use fetch$ instead +> Use the `fetch$` method instead 8.0 > Fetch this source and reject the returned Promise on error diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md index 90fdb471d6280..ac2c23d4ca2e9 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md index 5c736f40cdbf4..0444360663382 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md index f46ff36277d93..7addd40a81938 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md index e8e872577b46b..9ac9ba1abc637 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldtype.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldtype.md index 9f14bedf92008..35802b671bb39 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldtype.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldtype.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Use IndexPatternField or FieldSpec instead +> Use `IndexPatternField` or `FieldSpec` instead 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.addscriptedfield.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.addscriptedfield.md index 33f1ac5e31660..9fe169233af13 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.addscriptedfield.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.addscriptedfield.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> use runtime field instead +> use runtime field instead 8.0 > Add scripted field to field list diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.getaggregationrestrictions.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.getaggregationrestrictions.md index 70a3da86e9fbd..b655e779e4fa4 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.getaggregationrestrictions.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.getaggregationrestrictions.md @@ -9,9 +9,7 @@ ```typescript getAggregationRestrictions(): Record Warning: This API is now obsolete. > -> use runtime field instead +> use runtime field instead 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.getscriptedfields.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.getscriptedfields.md index 95f9f31309674..15978b6414947 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.getscriptedfields.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.getscriptedfields.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> use runtime field instead +> use runtime field instead 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.intervalname.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.intervalname.md index c144520075790..e2810cc21a378 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.intervalname.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.intervalname.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Deprecated. used by time range index patterns +> Used by time range index patterns 8.0 > Signature: diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.removescriptedfield.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.removescriptedfield.md index b351eba2ace4f..bc96d3596ed12 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.removescriptedfield.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.removescriptedfield.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> use runtime field instead +> use runtime field instead 8.0 > Remove scripted field from field list diff --git a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md index a5c14ee8627b1..0bdb5d6726fa8 100644 --- a/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md +++ b/docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md @@ -6,7 +6,7 @@ > Warning: This API is now obsolete. > -> Please import from the package kbn/es-query directly. This import will be deprecated in v8.0.0. +> Import from the "@kbn/es-query" package directly instead. 8.0 > Signature: diff --git a/src/plugins/data/common/es_query/index.ts b/src/plugins/data/common/es_query/index.ts index b24ddf7303694..973b6c4310a83 100644 --- a/src/plugins/data/common/es_query/index.ts +++ b/src/plugins/data/common/es_query/index.ts @@ -72,288 +72,347 @@ import { } from '@kbn/es-query'; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isFilter = oldIsFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isFilterDisabled = oldIsFilterDisabled; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const disableFilter = oldDisableFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const fromKueryExpression = oldFromKueryExpression; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const toElasticsearchQuery = oldToElasticsearchQuery; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const nodeTypes = oldNodeTypes; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildEsQuery = oldBuildEsQuery; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildQueryFromFilters = oldBuildQueryFromFilters; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const luceneStringToDsl = oldLuceneStringToDsl; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const decorateQuery = olddecorateQuery; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const getPhraseFilterField = oldgetPhraseFilterField; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const getPhraseFilterValue = oldgetPhraseFilterValue; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isFilterPinned = oldIsFilterPinned; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const nodeBuilder = oldNodeBuilder; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isFilters = oldIsFilters; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const uniqFilters = oldUniqFilters; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const onlyDisabledFiltersChanged = oldOnlyDisabledFiltersChanged; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isExistsFilter = oldIsExistsFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isMatchAllFilter = oldIsMatchAllFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isGeoBoundingBoxFilter = oldIsGeoBoundingBoxFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isGeoPolygonFilter = oldIsGeoPolygonFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isMissingFilter = oldIsMissingFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isPhraseFilter = oldIsPhraseFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isPhrasesFilter = oldIsPhrasesFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isRangeFilter = oldIsRangeFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const isQueryStringFilter = oldIsQueryStringFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildQueryFilter = oldBuildQueryFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildPhrasesFilter = oldBuildPhrasesFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildPhraseFilter = oldBuildPhraseFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildRangeFilter = oldBuildRangeFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildCustomFilter = oldBuildCustomFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildFilter = oldBuildFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildEmptyFilter = oldBuildEmptyFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const buildExistsFilter = oldBuildExistsFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const toggleFilterNegated = oldtoggleFilterNegated; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const enableFilter = oldEnableFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const pinFilter = oldPinFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const toggleFilterDisabled = oldToggleFilterDisabled; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const compareFilters = oldCompareFilters; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const dedupFilters = oldDedupFilters; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const COMPARE_ALL_OPTIONS = OLD_COMPARE_ALL_OPTIONS; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ const FILTERS = oldFILTERS; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type Filter = oldFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type RangeFilterMeta = oldRangeFilterMeta; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type RangeFilterParams = oldRangeFilterParams; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type ExistsFilter = oldExistsFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type GeoPolygonFilter = oldGeoPolygonFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type PhrasesFilter = oldPhrasesFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type PhraseFilter = oldPhraseFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type MatchAllFilter = oldMatchAllFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type CustomFilter = oldCustomFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type MissingFilter = oldMissingFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type RangeFilter = oldRangeFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type GeoBoundingBoxFilter = oldGeoBoundingBoxFilter; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type KueryNode = oldKueryNode; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type FilterMeta = oldFilterMeta; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type IFieldSubType = oldIFieldSubType; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ type EsQueryConfig = oldEsQueryConfig; /** - * @deprecated Please import from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ export { diff --git a/src/plugins/data/common/index.ts b/src/plugins/data/common/index.ts index eac55317c89cd..65d8cf83db809 100644 --- a/src/plugins/data/common/index.ts +++ b/src/plugins/data/common/index.ts @@ -18,8 +18,9 @@ export * from './utils'; export * from './exports'; /** - * Use data plugin interface instead - * @deprecated + * + * @deprecated Use data plugin interface instead + * @removeBy 8.0 */ export { IndexPatternAttributes } from './types'; diff --git a/src/plugins/data/common/index_patterns/fields/types.ts b/src/plugins/data/common/index_patterns/fields/types.ts index 38258dd4f53f4..1bb3c93ca2d38 100644 --- a/src/plugins/data/common/index_patterns/fields/types.ts +++ b/src/plugins/data/common/index_patterns/fields/types.ts @@ -9,8 +9,8 @@ import { IndexPatternFieldBase } from '@kbn/es-query'; import { FieldSpec, IndexPattern } from '../..'; /** - * @deprecated - * Use IndexPatternField or FieldSpec instead + * @deprecated Use `IndexPatternField` or `FieldSpec` instead + * @removeBy 8.0 */ export interface IFieldType extends IndexPatternFieldBase { count?: number; diff --git a/src/plugins/data/common/index_patterns/index_patterns/index_pattern.ts b/src/plugins/data/common/index_patterns/index_patterns/index_pattern.ts index 0c3a9901f8c8c..245fd6959602c 100644 --- a/src/plugins/data/common/index_patterns/index_patterns/index_pattern.ts +++ b/src/plugins/data/common/index_patterns/index_patterns/index_pattern.ts @@ -52,8 +52,9 @@ export class IndexPattern implements IIndexPattern { public fields: IIndexPatternFieldList & { toSpec: () => IndexPatternFieldMap }; public timeFieldName: string | undefined; /** - * @deprecated - * Deprecated. used by time range index patterns + * @deprecated Used by time range index patterns + * @removeBy 8.0 + * */ public intervalName: string | undefined; /** @@ -241,6 +242,7 @@ export class IndexPattern implements IIndexPattern { * @param fieldType * @param lang * @deprecated use runtime field instead + * @removeBy 8.0 */ async addScriptedField(name: string, script: string, fieldType: string = 'string') { const scriptedFields = this.getScriptedFields(); @@ -267,6 +269,7 @@ export class IndexPattern implements IIndexPattern { * Remove scripted field from field list * @param fieldName * @deprecated use runtime field instead + * @removeBy 8.0 */ removeScriptedField(fieldName: string) { @@ -279,6 +282,7 @@ export class IndexPattern implements IIndexPattern { /** * * @deprecated use runtime field instead + * @removeBy 8.0 */ getNonScriptedFields() { return [...this.fields.getAll().filter((field) => !field.scripted)]; @@ -287,6 +291,7 @@ export class IndexPattern implements IIndexPattern { /** * * @deprecated use runtime field instead + * @removeBy 8.0 */ getScriptedFields() { return [...this.fields.getAll().filter((field) => field.scripted)]; diff --git a/src/plugins/data/common/search/aggs/agg_config.ts b/src/plugins/data/common/search/aggs/agg_config.ts index 8f14e96a6970e..8172678d75145 100644 --- a/src/plugins/data/common/search/aggs/agg_config.ts +++ b/src/plugins/data/common/search/aggs/agg_config.ts @@ -317,7 +317,8 @@ export class AggConfig { } /** - * @deprecated - Use serialize() instead. + * @deprecated Use serialize() instead. + * @removeBy 8.0 */ toJSON(): AggConfigSerialized { return this.serialize(); diff --git a/src/plugins/data/common/search/search_source/search_source.ts b/src/plugins/data/common/search/search_source/search_source.ts index 13f157da731a6..73c53d7714062 100644 --- a/src/plugins/data/common/search/search_source/search_source.ts +++ b/src/plugins/data/common/search/search_source/search_source.ts @@ -314,7 +314,8 @@ export class SearchSource { /** * Fetch this source and reject the returned Promise on error - * @deprecated Use fetch$ instead + * @deprecated Use the `fetch$` method instead + * @removeBy 8.0 */ fetch(options: ISearchOptions = {}) { return this.fetch$(options) diff --git a/src/plugins/data/public/deprecated.ts b/src/plugins/data/public/deprecated.ts index 229b6b39d9ad8..0310e1ebd1aee 100644 --- a/src/plugins/data/public/deprecated.ts +++ b/src/plugins/data/public/deprecated.ts @@ -70,25 +70,30 @@ import { } from './query'; /** - * @deprecated This import will be removed in v8.0.0. + * @deprecated This import will be removed. + * @removeBy 8.0 */ const changeTimeFilter = oldChangeTimeFilter; /** - * @deprecated This import will be removed in v8.0.0. + * @deprecated This import will be removed. + * @removeBy 8.0 */ const mapAndFlattenFilters = oldMapAndFlattenFilters; /** - * @deprecated This import will be removed in v8.0.0. + * @deprecated This import will be removed. + * @removeBy 8.0 */ const extractTimeFilter = oldExtractTimeFilter; /** - * @deprecated This import will be removed in v8.0.0. + * @deprecated This import will be removed. + * @removeBy 8.0 */ const convertRangeFilterToTimeRangeString = oldConvertRangeFilterToTimeRangeString; /** * Filter helpers namespace: - * @deprecated Please import helpers from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import helpers from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ export const esFilters = { FilterLabel, @@ -151,7 +156,8 @@ export { }; /** - * @deprecated Please import helpers from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import helpers from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ export const esKuery = { nodeTypes, @@ -160,7 +166,8 @@ export const esKuery = { }; /** - * @deprecated Please import helpers from the package kbn/es-query directly. This import will be removed in v8.0.0. + * @deprecated Import helpers from the "@kbn/es-query" package directly instead. + * @removeBy 8.0 */ export const esQuery = { buildEsQuery, diff --git a/src/plugins/data/public/public.api.md b/src/plugins/data/public/public.api.md index a3b308798938d..6d5033576b6f2 100644 --- a/src/plugins/data/public/public.api.md +++ b/src/plugins/data/public/public.api.md @@ -828,7 +828,7 @@ export const esFilters: { isPhraseFilter: (filter: any) => filter is import("@kbn/es-query").PhraseFilter; isExistsFilter: (filter: any) => filter is import("@kbn/es-query").ExistsFilter; isPhrasesFilter: (filter: any) => filter is import("@kbn/es-query").PhrasesFilter; - isRangeFilter: (filter: any) => filter is import("@kbn/es-query").RangeFilter; + isRangeFilter: (filter?: import("@kbn/es-query").ExistsFilter | import("@kbn/es-query").GeoPolygonFilter | import("@kbn/es-query").PhrasesFilter | import("@kbn/es-query").PhraseFilter | import("@kbn/es-query").MatchAllFilter | import("@kbn/es-query").MissingFilter | import("@kbn/es-query").RangeFilter | import("@kbn/es-query").GeoBoundingBoxFilter | undefined) => filter is import("@kbn/es-query").RangeFilter; isMatchAllFilter: (filter: any) => filter is import("@kbn/es-query").MatchAllFilter; isMissingFilter: (filter: any) => filter is import("@kbn/es-query").MissingFilter; isQueryStringFilter: (filter: any) => filter is import("@kbn/es-query/target_types/filters/build_filters").QueryStringFilter; @@ -1421,9 +1421,7 @@ export class IndexPattern implements IIndexPattern { // (undocumented) getAggregationRestrictions(): Record