[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

@ -2539,7 +2539,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/charts/common/palette.ts",
@ -2597,7 +2597,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/charts/common/palette.ts",

View file

@ -1137,8 +1137,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
}
],
"path": "src/plugins/dashboard/public/locator.ts",
@ -1204,8 +1204,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
") | undefined"
],
@ -1334,8 +1334,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
") | undefined"
],

View file

@ -241,7 +241,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: ",
{
"pluginId": "data",
@ -608,7 +608,7 @@
"description": [],
"signature": [
"() => { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }"
],
"path": "src/plugins/data/common/search/aggs/agg_config.ts",
@ -629,7 +629,7 @@
"description": [],
"signature": [
"() => { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }"
],
"path": "src/plugins/data/common/search/aggs/agg_config.ts",
@ -1273,7 +1273,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -1512,7 +1512,7 @@
"text": "AggConfig"
},
">(params: Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -1543,7 +1543,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -2274,7 +2274,7 @@
"description": [],
"signature": [
"(agg: TAggConfig, state?: { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined) => TAggConfig"
],
"path": "src/plugins/data/common/search/aggs/param_types/agg.ts",
@ -2303,7 +2303,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/param_types/agg.ts",
@ -8188,7 +8188,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8270,7 +8270,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8320,7 +8320,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8434,7 +8434,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8516,7 +8516,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8598,7 +8598,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8648,7 +8648,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8762,7 +8762,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8844,7 +8844,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -8958,7 +8958,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9012,7 +9012,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9062,7 +9062,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9120,7 +9120,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9178,7 +9178,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9236,7 +9236,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9294,7 +9294,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9352,7 +9352,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9402,7 +9402,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9452,7 +9452,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9506,7 +9506,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9560,7 +9560,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9610,7 +9610,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9660,7 +9660,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9710,7 +9710,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9760,7 +9760,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9810,7 +9810,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9860,7 +9860,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9914,7 +9914,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -9964,7 +9964,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -10014,7 +10014,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -10068,7 +10068,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -10118,7 +10118,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -10168,7 +10168,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -10218,7 +10218,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -14889,7 +14889,7 @@
"text": "IAggType"
},
"; enabled?: boolean | undefined; id?: string | undefined; schema?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; }"
],
"path": "src/plugins/data/common/search/aggs/agg_config.ts",
@ -15020,7 +15020,7 @@
"text": "IndexPattern"
},
", configStates?: Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -15131,7 +15131,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts",
@ -15170,7 +15170,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/esdsl.ts",
@ -17656,7 +17656,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/index_patterns/expressions/load_index_pattern.ts",
@ -24304,7 +24304,7 @@
"description": [],
"signature": [
"(agg: TAggConfig, state?: { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined) => TAggConfig"
],
"path": "src/plugins/data/common/search/aggs/param_types/agg.ts",
@ -24333,7 +24333,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/param_types/agg.ts",
@ -28751,7 +28751,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -28833,7 +28833,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -28883,7 +28883,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -28997,7 +28997,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29079,7 +29079,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29161,7 +29161,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29211,7 +29211,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29325,7 +29325,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29407,7 +29407,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29521,7 +29521,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29575,7 +29575,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29625,7 +29625,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29683,7 +29683,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29741,7 +29741,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29799,7 +29799,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29857,7 +29857,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29915,7 +29915,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -29965,7 +29965,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30015,7 +30015,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30069,7 +30069,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30123,7 +30123,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30173,7 +30173,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30223,7 +30223,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30273,7 +30273,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30323,7 +30323,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30373,7 +30373,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30423,7 +30423,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30477,7 +30477,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30527,7 +30527,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30577,7 +30577,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30631,7 +30631,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30681,7 +30681,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30731,7 +30731,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -30781,7 +30781,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -32535,7 +32535,7 @@
"text": "IAggType"
},
"; enabled?: boolean | undefined; id?: string | undefined; schema?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; }"
],
"path": "src/plugins/data/common/search/aggs/agg_config.ts",
@ -32631,7 +32631,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts",
@ -34951,7 +34951,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/index_patterns/expressions/load_index_pattern.ts",

View file

@ -8503,7 +8503,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/index_patterns/expressions/load_index_pattern.ts",

View file

@ -30,8 +30,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -492,8 +492,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
", collector: unknown) => {}"
],

View file

@ -918,7 +918,7 @@
"text": "IndexPattern"
},
", configStates?: Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -4174,7 +4174,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: ",
{
"pluginId": "data",
@ -4541,7 +4541,7 @@
"description": [],
"signature": [
"() => { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }"
],
"path": "src/plugins/data/common/search/aggs/agg_config.ts",
@ -4562,7 +4562,7 @@
"description": [],
"signature": [
"() => { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }"
],
"path": "src/plugins/data/common/search/aggs/agg_config.ts",
@ -5206,7 +5206,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -5445,7 +5445,7 @@
"text": "AggConfig"
},
">(params: Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -5476,7 +5476,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -6207,7 +6207,7 @@
"description": [],
"signature": [
"(agg: TAggConfig, state?: { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined) => TAggConfig"
],
"path": "src/plugins/data/common/search/aggs/param_types/agg.ts",
@ -6236,7 +6236,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/param_types/agg.ts",
@ -11247,7 +11247,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">) => any"
],
"path": "src/plugins/data/common/search/expressions/utils/function_wrapper.ts",
@ -14922,7 +14922,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15004,7 +15004,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15054,7 +15054,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15168,7 +15168,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15250,7 +15250,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15332,7 +15332,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15382,7 +15382,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15496,7 +15496,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15578,7 +15578,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15692,7 +15692,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15746,7 +15746,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15796,7 +15796,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15854,7 +15854,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15912,7 +15912,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -15970,7 +15970,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16028,7 +16028,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16086,7 +16086,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16136,7 +16136,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16186,7 +16186,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16240,7 +16240,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16294,7 +16294,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16344,7 +16344,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16394,7 +16394,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16444,7 +16444,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16494,7 +16494,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16544,7 +16544,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16594,7 +16594,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16648,7 +16648,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16698,7 +16698,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16748,7 +16748,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16802,7 +16802,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16852,7 +16852,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16902,7 +16902,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -16952,7 +16952,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/aggs/types.ts",
@ -17102,7 +17102,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/bucket_avg.ts",
@ -17117,7 +17117,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/bucket_avg.ts",
@ -17156,7 +17156,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/bucket_max.ts",
@ -17171,7 +17171,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/bucket_max.ts",
@ -17210,7 +17210,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/bucket_min.ts",
@ -17225,7 +17225,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/bucket_min.ts",
@ -17264,7 +17264,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/bucket_sum.ts",
@ -17279,7 +17279,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/bucket_sum.ts",
@ -17365,7 +17365,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/cumulative_sum.ts",
@ -17702,7 +17702,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/derivative.ts",
@ -17843,7 +17843,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/filtered_metric.ts",
@ -17858,7 +17858,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/filtered_metric.ts",
@ -18557,7 +18557,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/moving_avg.ts",
@ -18770,7 +18770,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/metrics/serial_diff.ts",
@ -19027,7 +19027,7 @@
"description": [],
"signature": [
"{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined"
],
"path": "src/plugins/data/common/search/aggs/buckets/terms.ts",
@ -23574,7 +23574,7 @@
"text": "IAggType"
},
"; enabled?: boolean | undefined; id?: string | undefined; schema?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; }"
],
"path": "src/plugins/data/common/search/aggs/agg_config.ts",
@ -24027,7 +24027,7 @@
"text": "IndexPattern"
},
", configStates?: Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: string | ",
{
"pluginId": "data",
@ -24216,7 +24216,7 @@
"text": "IAggType"
},
"; enabled?: boolean | undefined; id?: string | undefined; schema?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; }"
],
"path": "src/plugins/data/common/search/aggs/agg_configs.ts",
@ -24356,7 +24356,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/esaggs/esaggs_fn.ts",
@ -24395,7 +24395,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/esdsl.ts",
@ -24575,7 +24575,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/cidr.ts",
@ -24638,7 +24638,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/date_range.ts",
@ -24687,7 +24687,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/exists_filter.ts",
@ -24750,7 +24750,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/extended_bounds.ts",
@ -24805,7 +24805,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/field.ts",
@ -24860,7 +24860,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/geo_bounding_box.ts",
@ -24915,7 +24915,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/geo_point.ts",
@ -24978,7 +24978,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/ip_range.ts",
@ -25149,7 +25149,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/kibana_filter.ts",
@ -25212,7 +25212,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/timerange.ts",
@ -25261,7 +25261,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/kql.ts",
@ -25310,7 +25310,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/lucene.ts",
@ -25373,7 +25373,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/numerical_range.ts",
@ -25422,7 +25422,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/phrase_filter.ts",
@ -25477,7 +25477,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/query_filter.ts",
@ -25524,7 +25524,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/range.ts",
@ -25573,7 +25573,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/data/common/search/expressions/range_filter.ts",
@ -30132,7 +30132,7 @@
"text": "IBucketAggConfig"
},
", state?: { type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; } | undefined) => ",
{
"pluginId": "data",

View file

@ -81,8 +81,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
}
],
"path": "src/plugins/discover/public/locator.ts",
@ -163,8 +163,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
") | undefined"
],
@ -278,8 +278,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
") | undefined"
],

View file

@ -8095,8 +8095,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; disabledActions?: string[] | undefined; disableTriggers?: boolean | undefined; searchSessionId?: string | undefined; syncColors?: boolean | undefined; }"
],
@ -8511,8 +8511,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => void"
],
@ -8539,8 +8539,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -9194,8 +9194,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => void"
],
@ -9222,8 +9222,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -9965,8 +9965,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; disabledActions?: string[] | undefined; disableTriggers?: boolean | undefined; searchSessionId?: string | undefined; syncColors?: boolean | undefined; }"
],
@ -10037,16 +10037,16 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
", version: string) => ",
{
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
}
],
"path": "src/plugins/embeddable/common/lib/migrate.ts",

View file

@ -350,7 +350,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expression_repeat_image/common/types/expression_functions.ts",

View file

@ -891,7 +891,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expression_shape/common/types/expression_functions.ts",
@ -1405,7 +1405,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expression_shape/common/types/expression_functions.ts",

View file

@ -76,8 +76,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>, ",
{
@ -116,8 +116,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>, {}>"
],
@ -157,7 +157,7 @@
"text": "ExecutionContext"
},
"<InspectorAdapters, ",
"SerializableState",
"Serializable",
">"
],
"path": "src/plugins/expressions/common/execution/execution.ts",
@ -203,8 +203,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>"
],
@ -350,8 +350,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>"
],
@ -840,8 +840,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -1469,8 +1469,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -1851,8 +1851,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => ",
{
@ -1886,8 +1886,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -2301,16 +2301,16 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
") => ",
{
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
"; }"
],
@ -4000,8 +4000,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -4616,8 +4616,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => ",
{
@ -4651,8 +4651,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -7709,7 +7709,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -7755,7 +7755,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -7793,7 +7793,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -7831,7 +7831,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -7869,7 +7869,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -7931,7 +7931,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -7993,7 +7993,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -8055,7 +8055,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -8117,7 +8117,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -8614,8 +8614,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -9105,7 +9105,7 @@
"label": "searchContext",
"description": [],
"signature": [
"SerializableState",
"Serializable",
" | undefined"
],
"path": "src/plugins/expressions/public/types/index.ts",
@ -10235,7 +10235,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -10638,8 +10638,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }"
],
@ -10786,8 +10786,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }"
],
@ -11195,8 +11195,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>; readonly fork: () => ",
{
@ -11550,8 +11550,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>, ",
{
@ -11590,8 +11590,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>, {}>"
],
@ -11631,7 +11631,7 @@
"text": "ExecutionContext"
},
"<InspectorAdapters, ",
"SerializableState",
"Serializable",
">"
],
"path": "src/plugins/expressions/common/execution/execution.ts",
@ -11677,8 +11677,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>"
],
@ -11824,8 +11824,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>"
],
@ -12745,8 +12745,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -13127,8 +13127,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => ",
{
@ -13162,8 +13162,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -13577,16 +13577,16 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
") => ",
{
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
"; }"
],
@ -17443,7 +17443,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -17489,7 +17489,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -17527,7 +17527,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -17565,7 +17565,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -17603,7 +17603,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -17665,7 +17665,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -17727,7 +17727,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -17789,7 +17789,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -17851,7 +17851,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -18962,7 +18962,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -19314,8 +19314,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }"
],
@ -19462,8 +19462,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }"
],
@ -19839,8 +19839,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>; readonly fork: () => ",
{
@ -19955,8 +19955,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>, ",
{
@ -19995,8 +19995,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>, {}>"
],
@ -20036,7 +20036,7 @@
"text": "ExecutionContext"
},
"<InspectorAdapters, ",
"SerializableState",
"Serializable",
">"
],
"path": "src/plugins/expressions/common/execution/execution.ts",
@ -20082,8 +20082,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>"
],
@ -20229,8 +20229,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>>>"
],
@ -20719,8 +20719,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -21348,8 +21348,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -21730,8 +21730,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => ",
{
@ -21765,8 +21765,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -22180,16 +22180,16 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
") => ",
{
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
"; }"
],
@ -23248,8 +23248,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -23864,8 +23864,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => ",
{
@ -23899,8 +23899,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -25367,8 +25367,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>"
],
@ -25533,7 +25533,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">"
],
"path": "src/plugins/expressions/common/util/test_utils.ts",
@ -25923,8 +25923,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>"
],
@ -26796,7 +26796,7 @@
"\nany extra parameters for the source that produced this column"
],
"signature": [
"SerializableState",
"Serializable",
" | undefined"
],
"path": "src/plugins/expressions/common/expression_types/specs/datatable.ts",
@ -28555,8 +28555,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined"
],
@ -29009,7 +29009,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29055,7 +29055,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29093,7 +29093,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29131,7 +29131,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29169,7 +29169,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29231,7 +29231,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29293,7 +29293,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29355,7 +29355,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29417,7 +29417,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -29882,8 +29882,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>"
],
@ -31260,7 +31260,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/types.ts",
@ -31570,8 +31570,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | undefined; rawError?: any; duration: number | undefined; }"
],
@ -31640,7 +31640,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/clog.ts",
@ -31703,7 +31703,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/cumulative_sum.ts",
@ -31766,7 +31766,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/derivative.ts",
@ -31813,7 +31813,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/font.ts",
@ -31876,7 +31876,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/moving_average.ts",
@ -31939,7 +31939,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/overall_metric.ts",
@ -31978,7 +31978,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/theme.ts",
@ -32033,7 +32033,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/ui_setting.ts",
@ -32072,7 +32072,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/var.ts",
@ -32111,7 +32111,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/expressions/common/expression_functions/specs/var_set.ts",
@ -32271,8 +32271,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>; readonly fork: () => ",
{
@ -32380,8 +32380,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }"
],
@ -32550,8 +32550,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }"
],
@ -34894,8 +34894,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>) => ",
{
@ -34926,8 +34926,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>, \"error\" | \"info\">; }>"
],
@ -34962,8 +34962,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }>"
],
@ -36961,7 +36961,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">) => ",
{
"pluginId": "expressions",
@ -37038,7 +37038,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">"
],
"path": "src/plugins/expressions/common/expression_functions/specs/math_column.ts",
@ -39686,7 +39686,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">) => any"
],
"path": "src/plugins/expressions/common/expression_functions/specs/theme.ts",
@ -39744,7 +39744,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">"
],
"path": "src/plugins/expressions/common/expression_functions/specs/theme.ts",
@ -40166,7 +40166,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">) => any"
],
"path": "src/plugins/expressions/common/expression_functions/specs/var.ts",
@ -40224,7 +40224,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">"
],
"path": "src/plugins/expressions/common/expression_functions/specs/var.ts",
@ -40429,7 +40429,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">) => unknown"
],
"path": "src/plugins/expressions/common/expression_functions/specs/var_set.ts",
@ -40487,7 +40487,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">"
],
"path": "src/plugins/expressions/common/expression_functions/specs/var_set.ts",

View file

@ -24,8 +24,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
}
],
"path": "x-pack/plugins/index_lifecycle_management/public/locator.ts",

View file

@ -9150,8 +9150,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => S"
],
@ -9198,8 +9198,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -10007,8 +10007,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">) => P) | undefined"
],
@ -10037,8 +10037,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -10964,16 +10964,16 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
", version: string) => ",
{
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
}
],
"path": "src/plugins/kibana_utils/common/persistable_state/types.ts",
@ -11216,16 +11216,16 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | ",
{
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableValue",
"text": "SerializableValue"
"section": "def-common.SerializableRecord",
"text": "SerializableRecord"
},
"[] | null | undefined"
],
@ -11235,10 +11235,10 @@
},
{
"parentPluginId": "kibanaUtils",
"id": "def-common.SerializableState",
"id": "def-common.Serializable",
"type": "Type",
"tags": [],
"label": "SerializableState",
"label": "Serializable",
"description": [
"\nSerializable state is something is a POJO JavaScript object that can be\nserialized to a JSON string."
],
@ -11259,10 +11259,10 @@
},
{
"parentPluginId": "kibanaUtils",
"id": "def-common.SerializableValue",
"id": "def-common.SerializableRecord",
"type": "Type",
"tags": [],
"label": "SerializableValue",
"label": "SerializableRecord",
"description": [],
"signature": [
"string | number | boolean | ",
@ -11270,8 +11270,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | null | undefined"
],

View file

@ -2742,8 +2742,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
" | undefined; }> | Output>>; readonly fork: () => ",
{

View file

@ -598,7 +598,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">) => any"
],
"path": "src/plugins/presentation_util/common/lib/test_helpers/function_wrapper.ts",

View file

@ -437,8 +437,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">(locator: ",
{
@ -1884,8 +1884,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">(locator: ",
{

View file

@ -1566,8 +1566,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">, triggers: string[]) => Promise<void>"
],
@ -1596,8 +1596,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -1647,8 +1647,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">, triggers: string[]) => Promise<void>"
],
@ -1693,8 +1693,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">"
],
@ -1880,8 +1880,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">; }[]>"
],
@ -3132,8 +3132,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
", object, ",
{
@ -3366,8 +3366,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">; }"
],
@ -3935,8 +3935,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">; }"
],
@ -4124,8 +4124,8 @@
"pluginId": "kibanaUtils",
"scope": "common",
"docId": "kibKibanaUtilsPluginApi",
"section": "def-common.SerializableState",
"text": "SerializableState"
"section": "def-common.Serializable",
"text": "Serializable"
},
">; }"
],

View file

@ -1256,7 +1256,7 @@
"text": "SerializedFieldFormat"
},
"<Record<string, any>> | undefined; source?: string | undefined; sourceParams?: ",
"SerializableState",
"Serializable",
" | undefined; }; id: string; name: string; }[]; type: \"datatable\"; rows: Record<string, any>[]; }"
],
"path": "src/plugins/visualizations/common/prepare_log_table.ts",
@ -1651,7 +1651,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: ",
{
"pluginId": "data",
@ -2075,7 +2075,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: ",
{
"pluginId": "data",
@ -4881,7 +4881,7 @@
"text": "SerializedFieldFormat"
},
"<Record<string, any>> | undefined; source?: string | undefined; sourceParams?: ",
"SerializableState",
"Serializable",
" | undefined; }; id: string; name: string; }[]; type: \"datatable\"; rows: Record<string, any>[]; }"
],
"path": "src/plugins/visualizations/common/prepare_log_table.ts",
@ -4981,7 +4981,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/visualizations/common/expression_functions/range.ts",
@ -5047,7 +5047,7 @@
"text": "Adapters"
},
", ",
"SerializableState",
"Serializable",
">>"
],
"path": "src/plugins/visualizations/common/expression_functions/vis_dimension.ts",
@ -5120,7 +5120,7 @@
"description": [],
"signature": [
"Pick<Pick<{ type: string; enabled?: boolean | undefined; id?: string | undefined; params?: {} | ",
"SerializableState",
"Serializable",
" | undefined; schema?: string | undefined; }, \"enabled\" | \"id\" | \"schema\" | \"params\"> & Pick<{ type: ",
{
"pluginId": "data",

View file

@ -9,9 +9,9 @@ Returns a serialized field format for the field used in this agg. This can be pa
<b>Signature:</b>
```typescript
toSerializedFieldFormat(): {} | Ensure<SerializedFieldFormat<SerializableState>, SerializableState>;
toSerializedFieldFormat(): {} | Ensure<SerializedFieldFormat<SerializableRecord>, SerializableRecord>;
```
<b>Returns:</b>
`{} | Ensure<SerializedFieldFormat<SerializableState>, SerializableState>`
`{} | Ensure<SerializedFieldFormat<SerializableRecord>, SerializableRecord>`

View file

@ -13,7 +13,7 @@ constructor(indexPattern: IndexPattern, configStates: Pick<Pick<{
type: string;
enabled?: boolean | undefined;
id?: string | undefined;
params?: {} | import("./agg_config").SerializableState | undefined;
params?: {} | import("@kbn/common-utils").SerializableRecord | undefined;
schema?: string | undefined;
}, "schema" | "enabled" | "id" | "params"> & Pick<{
type: string | IAggType;
@ -27,6 +27,6 @@ constructor(indexPattern: IndexPattern, configStates: Pick<Pick<{
| Parameter | Type | Description |
| --- | --- | --- |
| indexPattern | <code>IndexPattern</code> | |
| configStates | <code>Pick&lt;Pick&lt;{</code><br/><code> type: string;</code><br/><code> enabled?: boolean &#124; undefined;</code><br/><code> id?: string &#124; undefined;</code><br/><code> params?: {} &#124; import(&quot;./agg_config&quot;).SerializableState &#124; undefined;</code><br/><code> schema?: string &#124; undefined;</code><br/><code> }, &quot;schema&quot; &#124; &quot;enabled&quot; &#124; &quot;id&quot; &#124; &quot;params&quot;&gt; &amp; Pick&lt;{</code><br/><code> type: string &#124; IAggType;</code><br/><code> }, &quot;type&quot;&gt; &amp; Pick&lt;{</code><br/><code> type: string &#124; IAggType;</code><br/><code> }, never&gt;, &quot;schema&quot; &#124; &quot;type&quot; &#124; &quot;enabled&quot; &#124; &quot;id&quot; &#124; &quot;params&quot;&gt;[] &#124; undefined</code> | |
| configStates | <code>Pick&lt;Pick&lt;{</code><br/><code> type: string;</code><br/><code> enabled?: boolean &#124; undefined;</code><br/><code> id?: string &#124; undefined;</code><br/><code> params?: {} &#124; import(&quot;@kbn/common-utils&quot;).SerializableRecord &#124; undefined;</code><br/><code> schema?: string &#124; undefined;</code><br/><code> }, &quot;schema&quot; &#124; &quot;enabled&quot; &#124; &quot;id&quot; &#124; &quot;params&quot;&gt; &amp; Pick&lt;{</code><br/><code> type: string &#124; IAggType;</code><br/><code> }, &quot;type&quot;&gt; &amp; Pick&lt;{</code><br/><code> type: string &#124; IAggType;</code><br/><code> }, never&gt;, &quot;schema&quot; &#124; &quot;type&quot; &#124; &quot;enabled&quot; &#124; &quot;id&quot; &#124; &quot;params&quot;&gt;[] &#124; undefined</code> | |
| opts | <code>AggConfigsOptions</code> | |

View file

@ -24,7 +24,7 @@ export declare class FilterManager implements PersistableStateService
| [getAllMigrations](./kibana-plugin-plugins-data-public.filtermanager.getallmigrations.md) | | <code>() =&gt; {}</code> | |
| [inject](./kibana-plugin-plugins-data-public.filtermanager.inject.md) | | <code>any</code> | |
| [migrateToLatest](./kibana-plugin-plugins-data-public.filtermanager.migratetolatest.md) | | <code>any</code> | |
| [telemetry](./kibana-plugin-plugins-data-public.filtermanager.telemetry.md) | | <code>(filters: import(&quot;../../../../kibana_utils/common/persistable_state&quot;).SerializableState, collector: unknown) =&gt; {}</code> | |
| [telemetry](./kibana-plugin-plugins-data-public.filtermanager.telemetry.md) | | <code>(filters: import(&quot;@kbn/common-utils&quot;).SerializableRecord, collector: unknown) =&gt; {}</code> | |
## Methods

View file

@ -7,5 +7,5 @@
<b>Signature:</b>
```typescript
telemetry: (filters: import("../../../../kibana_utils/common/persistable_state").SerializableState, collector: unknown) => {};
telemetry: (filters: import("@kbn/common-utils").SerializableRecord, collector: unknown) => {};
```

View file

@ -10,6 +10,6 @@
esKuery: {
nodeTypes: import("@kbn/es-query/target_types/kuery/node_types").NodeTypes;
fromKueryExpression: (expression: any, parseOptions?: Partial<import("@kbn/es-query/target_types/kuery/types").KueryParseOptions> | undefined) => import("@kbn/es-query").KueryNode;
toElasticsearchQuery: (node: import("@kbn/es-query").KueryNode, indexPattern?: import("@kbn/es-query").IndexPatternBase | undefined, config?: Record<string, any> | undefined, context?: Record<string, any> | undefined) => import("@kbn/common-utils").JsonObject;
toElasticsearchQuery: (node: import("@kbn/es-query").KueryNode, indexPattern?: import("@kbn/es-query").IndexPatternBase | undefined, config?: Record<string, any> | undefined, context?: Record<string, any> | undefined) => import("@kbn/utility-types").JsonObject;
}
```

View file

@ -13,7 +13,7 @@ export declare type EmbeddableInput = {
id: string;
lastReloadRequestTime?: number;
hidePanelTitles?: boolean;
enhancements?: SerializableState;
enhancements?: SerializableRecord;
disabledActions?: string[];
disableTriggers?: boolean;
searchSessionId?: string;

View file

@ -7,7 +7,7 @@
<b>Signature:</b>
```typescript
export interface EnhancementRegistryDefinition<P extends SerializableState = SerializableState> extends PersistableStateDefinition<P>
export interface EnhancementRegistryDefinition<P extends SerializableRecord = SerializableRecord> extends PersistableStateDefinition<P>
```
## Properties

View file

@ -7,7 +7,7 @@
<b>Signature:</b>
```typescript
export interface EnhancementRegistryDefinition<P extends SerializableState = SerializableState> extends PersistableStateDefinition<P>
export interface EnhancementRegistryDefinition<P extends SerializableRecord = SerializableRecord> extends PersistableStateDefinition<P>
```
## Properties

View file

@ -9,7 +9,7 @@
<b>Signature:</b>
```typescript
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableState = SerializableState>
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableRecord = SerializableRecord>
```
## Properties

View file

@ -29,7 +29,7 @@ export declare class ExpressionFunction implements PersistableState<ExpressionAs
| [help](./kibana-plugin-plugins-expressions-public.expressionfunction.help.md) | | <code>string</code> | A short help text. |
| [inject](./kibana-plugin-plugins-expressions-public.expressionfunction.inject.md) | | <code>(state: ExpressionAstFunction['arguments'], references: SavedObjectReference[]) =&gt; ExpressionAstFunction['arguments']</code> | |
| [inputTypes](./kibana-plugin-plugins-expressions-public.expressionfunction.inputtypes.md) | | <code>string[] &#124; undefined</code> | Type of inputs that this function supports. |
| [migrations](./kibana-plugin-plugins-expressions-public.expressionfunction.migrations.md) | | <code>{</code><br/><code> [key: string]: (state: SerializableState) =&gt; SerializableState;</code><br/><code> }</code> | |
| [migrations](./kibana-plugin-plugins-expressions-public.expressionfunction.migrations.md) | | <code>{</code><br/><code> [key: string]: (state: SerializableRecord) =&gt; SerializableRecord;</code><br/><code> }</code> | |
| [name](./kibana-plugin-plugins-expressions-public.expressionfunction.name.md) | | <code>string</code> | Name of function |
| [telemetry](./kibana-plugin-plugins-expressions-public.expressionfunction.telemetry.md) | | <code>(state: ExpressionAstFunction['arguments'], telemetryData: Record&lt;string, any&gt;) =&gt; Record&lt;string, any&gt;</code> | |
| [type](./kibana-plugin-plugins-expressions-public.expressionfunction.type.md) | | <code>string</code> | Return type of function. This SHOULD be supplied. We use it for UI and autocomplete hinting. We may also use it for optimizations in the future. |

View file

@ -8,6 +8,6 @@
```typescript
migrations: {
[key: string]: (state: SerializableState) => SerializableState;
[key: string]: (state: SerializableRecord) => SerializableRecord;
};
```

View file

@ -9,6 +9,6 @@
```typescript
export declare type ExpressionValueError = ExpressionValueBoxed<'error', {
error: ErrorLike;
info?: SerializableState;
info?: SerializableRecord;
}>;
```

View file

@ -25,7 +25,7 @@ export interface IExpressionLoaderParams
| [onRenderError](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.onrendererror.md) | <code>RenderErrorHandlerFnType</code> | |
| [partial](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.partial.md) | <code>boolean</code> | The flag to toggle on emitting partial results. By default, the partial results are disabled. |
| [renderMode](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.rendermode.md) | <code>RenderMode</code> | |
| [searchContext](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.searchcontext.md) | <code>SerializableState</code> | |
| [searchContext](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.searchcontext.md) | <code>SerializableRecord</code> | |
| [searchSessionId](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.searchsessionid.md) | <code>string</code> | |
| [syncColors](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.synccolors.md) | <code>boolean</code> | |
| [throttle](./kibana-plugin-plugins-expressions-public.iexpressionloaderparams.throttle.md) | <code>number</code> | Throttling of partial results in milliseconds. 0 is disabling the throttling. By default, it equals 1000. |

View file

@ -7,5 +7,5 @@
<b>Signature:</b>
```typescript
searchContext?: SerializableState;
searchContext?: SerializableRecord;
```

View file

@ -9,7 +9,7 @@
<b>Signature:</b>
```typescript
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableState = SerializableState>
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableRecord = SerializableRecord>
```
## Properties

View file

@ -29,7 +29,7 @@ export declare class ExpressionFunction implements PersistableState<ExpressionAs
| [help](./kibana-plugin-plugins-expressions-server.expressionfunction.help.md) | | <code>string</code> | A short help text. |
| [inject](./kibana-plugin-plugins-expressions-server.expressionfunction.inject.md) | | <code>(state: ExpressionAstFunction['arguments'], references: SavedObjectReference[]) =&gt; ExpressionAstFunction['arguments']</code> | |
| [inputTypes](./kibana-plugin-plugins-expressions-server.expressionfunction.inputtypes.md) | | <code>string[] &#124; undefined</code> | Type of inputs that this function supports. |
| [migrations](./kibana-plugin-plugins-expressions-server.expressionfunction.migrations.md) | | <code>{</code><br/><code> [key: string]: (state: SerializableState) =&gt; SerializableState;</code><br/><code> }</code> | |
| [migrations](./kibana-plugin-plugins-expressions-server.expressionfunction.migrations.md) | | <code>{</code><br/><code> [key: string]: (state: SerializableRecord) =&gt; SerializableRecord;</code><br/><code> }</code> | |
| [name](./kibana-plugin-plugins-expressions-server.expressionfunction.name.md) | | <code>string</code> | Name of function |
| [telemetry](./kibana-plugin-plugins-expressions-server.expressionfunction.telemetry.md) | | <code>(state: ExpressionAstFunction['arguments'], telemetryData: Record&lt;string, any&gt;) =&gt; Record&lt;string, any&gt;</code> | |
| [type](./kibana-plugin-plugins-expressions-server.expressionfunction.type.md) | | <code>string</code> | Return type of function. This SHOULD be supplied. We use it for UI and autocomplete hinting. We may also use it for optimizations in the future. |

View file

@ -8,6 +8,6 @@
```typescript
migrations: {
[key: string]: (state: SerializableState) => SerializableState;
[key: string]: (state: SerializableRecord) => SerializableRecord;
};
```

View file

@ -9,6 +9,6 @@
```typescript
export declare type ExpressionValueError = ExpressionValueBoxed<'error', {
error: ErrorLike;
info?: SerializableState;
info?: SerializableRecord;
}>;
```

View file

@ -6,16 +6,17 @@
* Side Public License, v 1.
*/
import { SerializableState, MigrateFunction } from 'src/plugins/kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import { MigrateFunction } from 'src/plugins/kibana_utils/common';
import { LocatorDefinition, LocatorPublic } from '../../../src/plugins/share/public';
export const HELLO_LOCATOR = 'HELLO_LOCATOR';
export interface HelloLocatorV1Params extends SerializableState {
export interface HelloLocatorV1Params extends SerializableRecord {
name: string;
}
export interface HelloLocatorV2Params extends SerializableState {
export interface HelloLocatorV2Params extends SerializableRecord {
firstName: string;
lastName: string;
}

View file

@ -124,7 +124,6 @@
"@kbn/analytics": "link:bazel-bin/packages/kbn-analytics",
"@kbn/apm-config-loader": "link:bazel-bin/packages/kbn-apm-config-loader",
"@kbn/apm-utils": "link:bazel-bin/packages/kbn-apm-utils",
"@kbn/common-utils": "link:bazel-bin/packages/kbn-common-utils",
"@kbn/config": "link:bazel-bin/packages/kbn-config",
"@kbn/config-schema": "link:bazel-bin/packages/kbn-config-schema",
"@kbn/crypto": "link:bazel-bin/packages/kbn-crypto",

View file

@ -13,7 +13,6 @@ filegroup(
"//packages/kbn-babel-code-parser:build",
"//packages/kbn-babel-preset:build",
"//packages/kbn-cli-dev-mode:build",
"//packages/kbn-common-utils:build",
"//packages/kbn-config:build",
"//packages/kbn-config-schema:build",
"//packages/kbn-crypto:build",

View file

@ -1,3 +0,0 @@
{
"presets": ["@kbn/babel-preset/node_preset"]
}

View file

@ -1,89 +0,0 @@
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
load("//src/dev/bazel:index.bzl", "jsts_transpiler")
PKG_BASE_NAME = "kbn-common-utils"
PKG_REQUIRE_NAME = "@kbn/common-utils"
SOURCE_FILES = glob(
[
"src/**/*.ts",
],
exclude = ["**/*.test.*"],
)
SRCS = SOURCE_FILES
filegroup(
name = "srcs",
srcs = SRCS,
)
NPM_MODULE_EXTRA_FILES = [
"package.json",
"README.md"
]
RUNTIME_DEPS = [
"//packages/kbn-config-schema",
"@npm//tslib",
]
TYPES_DEPS = [
"//packages/kbn-config-schema",
"@npm//tslib",
"@npm//@types/jest",
"@npm//@types/node",
]
jsts_transpiler(
name = "target_node",
srcs = SRCS,
build_pkg_name = package_name(),
)
ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
],
)
ts_project(
name = "tsc_types",
args = ['--pretty'],
srcs = SRCS,
deps = TYPES_DEPS,
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",
tsconfig = ":tsconfig",
)
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
pkg_npm(
name = "npm_module",
deps = [
":%s" % PKG_BASE_NAME,
]
)
filegroup(
name = "build",
srcs = [
":npm_module",
],
visibility = ["//visibility:public"],
)

View file

@ -1,3 +0,0 @@
# @kbn/common-utils
Shared common (client and server sie) utilities shared across packages and plugins.

View file

@ -1,13 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-common-utils'],
};

View file

@ -1,8 +0,0 @@
{
"name": "@kbn/common-utils",
"main": "./target_node/index.js",
"types": "./target_types/index.d.ts",
"version": "1.0.0",
"license": "SSPL-1.0 OR Elastic License 2.0",
"private": true
}

View file

@ -1,9 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export * from './json';

View file

@ -1,9 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export { JsonArray, JsonValue, JsonObject } from './typed_json';

View file

@ -1,16 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
export type JsonValue = null | boolean | number | string | JsonObject | JsonArray;
export interface JsonObject {
[key: string]: JsonValue;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface JsonArray extends Array<JsonValue> {}

View file

@ -1,19 +0,0 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "target_types",
"sourceMap": true,
"sourceRoot": "../../../../packages/kbn-common-utils/src",
"types": [
"jest",
"node"
]
},
"include": [
"src/**/*"
]
}

View file

@ -31,7 +31,7 @@ NPM_MODULE_EXTRA_FILES = [
]
RUNTIME_DEPS = [
"//packages/kbn-common-utils",
"//packages/kbn-utility-types",
"//packages/kbn-config-schema",
"//packages/kbn-i18n",
"@npm//@elastic/elasticsearch",
@ -42,7 +42,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
"//packages/kbn-common-utils",
"//packages/kbn-utility-types",
"//packages/kbn-i18n",
"@npm//@elastic/elasticsearch",
"@npm//@types/jest",

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { JsonObject } from '@kbn/common-utils';
import { JsonObject } from '@kbn/utility-types';
import { nodeTypes } from '../node_types/index';
import { KQLSyntaxError } from '../kuery_syntax_error';
import { KueryNode, DslQuery, KueryParseOptions } from '../types';

View file

@ -7,7 +7,7 @@
*/
import _ from 'lodash';
import { JsonObject } from '@kbn/common-utils';
import { JsonObject } from '@kbn/utility-types';
import * as ast from '../ast';
import { nodeTypes } from '../node_types';
import { NamedArgTypeBuildNode } from './types';

View file

@ -10,7 +10,7 @@
* WARNING: these typings are incomplete
*/
import { JsonValue } from '@kbn/common-utils';
import { JsonValue } from '@kbn/utility-types';
import { KueryNode } from '..';
import { IndexPatternBase } from '../..';

View file

@ -7,6 +7,7 @@ PKG_REQUIRE_NAME = "@kbn/utility-types"
SOURCE_FILES = glob([
"src/jest/index.ts",
"src/serializable/**",
"src/index.ts"
])

View file

@ -9,6 +9,14 @@
import { PromiseType } from 'utility-types';
export { $Values, Assign, Class, Optional, Required } from 'utility-types';
export type {
JsonArray,
JsonValue,
JsonObject,
SerializableRecord,
Serializable,
} from './serializable';
/**
* A type that may or may not be a `Promise`.
*/

View file

@ -6,11 +6,21 @@
* Side Public License, v 1.
*/
export type JsonValue = null | boolean | number | string | JsonObject | JsonArray;
export interface JsonObject {
[key: string]: JsonValue;
}
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface JsonArray extends Array<JsonValue> {}
export type Serializable =
| string
| number
| boolean
| null
| undefined
| SerializableArray
| SerializableRecord;

View file

@ -15,5 +15,4 @@ export * from './capabilities';
export * from './app_category';
export * from './ui_settings';
export * from './saved_objects';
export * from './serializable';
export type { KibanaExecutionContext } from './execution_context';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { SerializableState } from 'src/plugins/kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import type { TimeRange, Filter, Query, QueryState, RefreshInterval } from '../../data/public';
import type { LocatorDefinition, LocatorPublic } from '../../share/public';
import type { SavedDashboardPanel } from '../common/types';
@ -26,7 +26,7 @@ const cleanEmptyKeys = (stateObj: Record<string, unknown>) => {
export const DASHBOARD_APP_LOCATOR = 'DASHBOARD_APP_LOCATOR';
export interface DashboardAppLocatorParams extends SerializableState {
export interface DashboardAppLocatorParams extends SerializableRecord {
/**
* If given, the dashboard saved object with this id will be loaded. If not given,
* a new, unsaved dashboard will be loaded up.
@ -40,7 +40,7 @@ export interface DashboardAppLocatorParams extends SerializableState {
/**
* Optionally set the refresh interval.
*/
refreshInterval?: RefreshInterval & SerializableState;
refreshInterval?: RefreshInterval & SerializableRecord;
/**
* Optionally apply filers. NOTE: if given and used in conjunction with `dashboardId`, and the
@ -80,7 +80,7 @@ export interface DashboardAppLocatorParams extends SerializableState {
/**
* List of dashboard panels
*/
panels?: SavedDashboardPanel[] & SerializableState;
panels?: SavedDashboardPanel[] & SerializableRecord;
/**
* Saved query ID

View file

@ -16,7 +16,7 @@ import {
createInject,
} from '../../common/embeddable/dashboard_container_persistable_state';
import { EmbeddableStateWithType } from 'src/plugins/embeddable/common';
import { SerializableState } from '../../../kibana_utils/common';
import { SerializableRecord } from '@kbn/utility-types';
const embeddableSetupMock = createEmbeddableSetupMock();
const extract = createExtract(embeddableSetupMock);
@ -589,7 +589,7 @@ describe('dashboard', () => {
it('runs migrations on by value panels only', () => {
const newEmbeddableSetupMock = createEmbeddableSetupMock();
newEmbeddableSetupMock.getAllMigrations.mockImplementation(() => ({
'7.13.0': (state: SerializableState) => {
'7.13.0': (state: SerializableRecord) => {
state.superCoolKey = 'ONLY 4 BY VALUE EMBEDDABLES THANK YOU VERY MUCH';
return state;
},

View file

@ -6,6 +6,7 @@
* Side Public License, v 1.
*/
import { Serializable } from '@kbn/utility-types';
import { get, flow, mapValues } from 'lodash';
import {
SavedObjectAttributes,
@ -29,7 +30,6 @@ import {
mergeMigrationFunctionMaps,
MigrateFunction,
MigrateFunctionsObject,
SerializableValue,
} from '../../../kibana_utils/common';
import { replaceIndexPatternReference } from './replace_index_pattern_reference';
@ -154,8 +154,8 @@ function createExtractPanelReferencesMigration(
}
type ValueOrReferenceInput = SavedObjectEmbeddableInput & {
attributes?: SerializableValue;
savedVis?: SerializableValue;
attributes?: Serializable;
savedVis?: Serializable;
};
// Runs the embeddable migrations on each panel

View file

@ -8,7 +8,7 @@
import uuid from 'uuid';
import { Filter } from '@kbn/es-query';
import { SerializableState } from '../../../kibana_utils/common/persistable_state';
import type { SerializableRecord } from '@kbn/utility-types';
import { SavedObjectReference } from '../../../../core/types';
export const extract = (filters: Filter[]) => {
@ -51,7 +51,7 @@ export const inject = (filters: Filter[], references: SavedObjectReference[]) =>
});
};
export const telemetry = (filters: SerializableState, collector: unknown) => {
export const telemetry = (filters: SerializableRecord, collector: unknown) => {
return {};
};

View file

@ -9,6 +9,7 @@
import moment from 'moment';
import _ from 'lodash';
import { i18n } from '@kbn/i18n';
import type { SerializableRecord } from '@kbn/utility-types';
import { Assign, Ensure } from '@kbn/utility-types';
import { ISearchOptions, ISearchSource } from 'src/plugins/data/public';
@ -23,23 +24,16 @@ import { writeParams } from './agg_params';
import { IAggConfigs } from './agg_configs';
import { parseTimeShift } from './utils';
type State = string | number | boolean | null | undefined | SerializableState;
/** @internal **/
export interface SerializableState {
[key: string]: State | State[];
}
/** @public **/
export type AggConfigSerialized = Ensure<
{
type: string;
enabled?: boolean;
id?: string;
params?: {} | SerializableState;
params?: {} | SerializableRecord;
schema?: string;
},
SerializableState
SerializableRecord
>;
export type AggConfigOptions = Assign<AggConfigSerialized, { type: IAggType }>;
@ -311,7 +305,7 @@ export class AggConfig {
id: this.id,
enabled: this.enabled,
type: this.type && this.type.name,
params: outParams as SerializableState,
params: outParams as SerializableRecord,
...(this.schema && { schema: this.schema }),
};
}
@ -333,7 +327,7 @@ export class AggConfig {
*/
toSerializedFieldFormat():
| {}
| Ensure<SerializedFieldFormat<SerializableState>, SerializableState> {
| Ensure<SerializedFieldFormat<SerializableRecord>, SerializableRecord> {
return this.type ? this.type.getSerializedFormat(this) : {};
}

View file

@ -12,7 +12,7 @@ import { AggTypesDependencies } from '../agg_types';
import { BUCKET_TYPES } from './bucket_agg_types';
import { IBucketHistogramAggConfig, getHistogramBucketAgg, AutoBounds } from './histogram';
import { BucketAggType } from './bucket_agg_type';
import { SerializableState } from 'src/plugins/expressions/common';
import { SerializableRecord } from '@kbn/utility-types';
describe('Histogram Agg', () => {
let aggTypesDependencies: AggTypesDependencies;
@ -256,7 +256,7 @@ describe('Histogram Agg', () => {
});
(aggConfigs.aggs[0] as IBucketHistogramAggConfig).setAutoBounds({ min: 0, max: 1000 });
const serializedAgg = aggConfigs.aggs[0].serialize();
const serializedIntervalParam = (serializedAgg.params as SerializableState).used_interval;
const serializedIntervalParam = (serializedAgg.params as SerializableRecord).used_interval;
expect(serializedIntervalParam).toBe(500);
const freshHistogramAggConfig = getAggConfigs({
interval: 100,

View file

@ -106,6 +106,7 @@ import { SavedObjectsFindOptions } from 'kibana/public';
import { SavedObjectsFindResponse } from 'kibana/server';
import { SavedObjectsUpdateResponse } from 'kibana/server';
import { SchemaTypeError } from '@kbn/config-schema';
import { SerializableRecord } from '@kbn/utility-types';
import { SerializedFieldFormat as SerializedFieldFormat_3 } from 'src/plugins/expressions/common';
import { StartServicesAccessor } from 'kibana/public';
import { ToastInputFields } from 'src/core/public/notifications';
@ -200,8 +201,7 @@ export class AggConfig {
toExpressionAst(): ExpressionAstExpression | undefined;
// @deprecated (undocumented)
toJSON(): AggConfigSerialized;
// Warning: (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
toSerializedFieldFormat(): {} | Ensure<SerializedFieldFormat_3<SerializableState_2>, SerializableState_2>;
toSerializedFieldFormat(): {} | Ensure<SerializedFieldFormat_3<SerializableRecord>, SerializableRecord>;
// (undocumented)
get type(): IAggType;
set type(type: IAggType);
@ -227,7 +227,7 @@ export class AggConfigs {
type: string;
enabled?: boolean | undefined;
id?: string | undefined;
params?: {} | import("./agg_config").SerializableState | undefined;
params?: {} | import("@kbn/utility-types").SerializableRecord | undefined;
schema?: string | undefined;
}, "schema" | "enabled" | "id" | "params"> & Pick<{
type: string | IAggType;
@ -330,9 +330,9 @@ export type AggConfigSerialized = Ensure<{
type: string;
enabled?: boolean;
id?: string;
params?: {} | SerializableState_2;
params?: {} | SerializableRecord;
schema?: string;
}, SerializableState_2>;
}, SerializableRecord>;
// Warning: (ae-missing-release-tag) "AggFunctionsMapping" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@ -792,7 +792,7 @@ export const esFilters: {
export const esKuery: {
nodeTypes: import("@kbn/es-query/target_types/kuery/node_types").NodeTypes;
fromKueryExpression: (expression: any, parseOptions?: Partial<import("@kbn/es-query/target_types/kuery/types").KueryParseOptions> | undefined) => import("@kbn/es-query").KueryNode;
toElasticsearchQuery: (node: import("@kbn/es-query").KueryNode, indexPattern?: import("@kbn/es-query").IndexPatternBase | undefined, config?: Record<string, any> | undefined, context?: Record<string, any> | undefined) => import("@kbn/common-utils").JsonObject;
toElasticsearchQuery: (node: import("@kbn/es-query").KueryNode, indexPattern?: import("@kbn/es-query").IndexPatternBase | undefined, config?: Record<string, any> | undefined, context?: Record<string, any> | undefined) => import("@kbn/utility-types").JsonObject;
};
// Warning: (ae-missing-release-tag) "esQuery" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@ -943,7 +943,7 @@ export class FilterManager implements PersistableStateService {
static setFiltersStore(filters: Filter_2[], store: FilterStateStore, shouldOverrideStore?: boolean): void;
setGlobalFilters(newGlobalFilters: Filter_2[]): void;
// (undocumented)
telemetry: (filters: import("../../../../kibana_utils/common/persistable_state").SerializableState, collector: unknown) => {};
telemetry: (filters: import("@kbn/utility-types").SerializableRecord, collector: unknown) => {};
}
// Warning: (ae-missing-release-tag) "generateFilters" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)

View file

@ -228,15 +228,15 @@ export class FilterManager implements PersistableStateService {
});
}
// Filter needs to implement SerializableState
// Filter needs to implement SerializableRecord
public extract = extract as any;
// Filter needs to implement SerializableState
// Filter needs to implement SerializableRecord
public inject = inject as any;
public telemetry = telemetry;
// Filter needs to implement SerializableState
// Filter needs to implement SerializableRecord
public migrateToLatest = migrateToLatest as any;
public getAllMigrations = getAllMigrations;

View file

@ -60,6 +60,7 @@ import { SavedObjectsClientContract as SavedObjectsClientContract_2 } from 'kiba
import { SavedObjectsFindOptions } from 'kibana/server';
import { SavedObjectsFindResponse } from 'kibana/server';
import { SavedObjectsUpdateResponse } from 'kibana/server';
import { SerializableRecord } from '@kbn/utility-types';
import { SerializedFieldFormat as SerializedFieldFormat_3 } from 'src/plugins/expressions/common';
import { ToastInputFields } from 'src/core/public/notifications';
import { Type } from '@kbn/config-schema';
@ -124,7 +125,7 @@ export const esFilters: {
export const esKuery: {
nodeTypes: import("@kbn/es-query/target_types/kuery/node_types").NodeTypes;
fromKueryExpression: (expression: any, parseOptions?: Partial<import("@kbn/es-query/target_types/kuery/types").KueryParseOptions> | undefined) => import("@kbn/es-query").KueryNode;
toElasticsearchQuery: (node: import("@kbn/es-query").KueryNode, indexPattern?: import("@kbn/es-query").IndexPatternBase | undefined, config?: Record<string, any> | undefined, context?: Record<string, any> | undefined) => import("@kbn/common-utils").JsonObject;
toElasticsearchQuery: (node: import("@kbn/es-query").KueryNode, indexPattern?: import("@kbn/es-query").IndexPatternBase | undefined, config?: Record<string, any> | undefined, context?: Record<string, any> | undefined) => import("@kbn/utility-types").JsonObject;
};
// Warning: (ae-missing-release-tag) "esQuery" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)

View file

@ -10,7 +10,7 @@ import { hashedItemStore, getStatesFromKbnUrl } from '../../kibana_utils/public'
import { mockStorage } from '../../kibana_utils/public/storage/hashed_item_store/mock';
import { FilterStateStore } from '../../data/common';
import { DiscoverAppLocatorDefinition } from './locator';
import { SerializableState } from 'src/plugins/kibana_utils/common';
import { SerializableRecord } from '@kbn/utility-types';
const indexPatternId: string = 'c367b774-a4c2-11ea-bb37-0242ac130002';
const savedSearchId: string = '571aaf70-4c88-11e8-b3d7-01146121b73d';
@ -215,7 +215,7 @@ describe('Discover url generator', () => {
const { path } = await locator.getLocation({
columns: ['_source'],
interval: 'auto',
sort: [['timestamp, asc']] as string[][] & SerializableState,
sort: [['timestamp, asc']] as string[][] & SerializableRecord,
savedQuery: '__savedQueryId__',
});

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { SerializableState } from 'src/plugins/kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import type { TimeRange, Filter, Query, QueryState, RefreshInterval } from '../../data/public';
import type { LocatorDefinition, LocatorPublic } from '../../share/public';
import { esFilters } from '../../data/public';
@ -14,7 +14,7 @@ import { setStateToKbnUrl } from '../../kibana_utils/public';
export const DISCOVER_APP_LOCATOR = 'DISCOVER_APP_LOCATOR';
export interface DiscoverAppLocatorParams extends SerializableState {
export interface DiscoverAppLocatorParams extends SerializableRecord {
/**
* Optionally set saved search ID.
*/
@ -33,7 +33,7 @@ export interface DiscoverAppLocatorParams extends SerializableState {
/**
* Optionally set the refresh interval.
*/
refreshInterval?: RefreshInterval & SerializableState;
refreshInterval?: RefreshInterval & SerializableRecord;
/**
* Optionally apply filters.
@ -69,7 +69,7 @@ export interface DiscoverAppLocatorParams extends SerializableState {
/**
* Array of the used sorting [[field,direction],...]
*/
sort?: string[][] & SerializableState;
sort?: string[][] & SerializableRecord;
/**
* id of the used saved query

View file

@ -6,9 +6,9 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { CommonEmbeddableStartContract, EmbeddableStateWithType } from '../types';
import { extractBaseEmbeddableInput } from './migrate_base_input';
import { SerializableState } from '../../../kibana_utils/common/persistable_state';
export const getExtractFunction = (embeddables: CommonEmbeddableStartContract) => {
return (state: EmbeddableStateWithType) => {
@ -30,7 +30,7 @@ export const getExtractFunction = (embeddables: CommonEmbeddableStartContract) =
if (!enhancements[key]) return;
const enhancementResult = embeddables
.getEnhancement(key)
.extract(enhancements[key] as SerializableState);
.extract(enhancements[key] as SerializableRecord);
refs.push(...enhancementResult.references);
updatedInput.enhancements![key] = enhancementResult.state;
});

View file

@ -6,10 +6,10 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { CommonEmbeddableStartContract, EmbeddableStateWithType } from '../types';
import { SavedObjectReference } from '../../../../core/types';
import { injectBaseEmbeddableInput } from './migrate_base_input';
import { SerializableState } from '../../../kibana_utils/common/persistable_state';
export const getInjectFunction = (embeddables: CommonEmbeddableStartContract) => {
return (state: EmbeddableStateWithType, references: SavedObjectReference[]) => {
@ -27,7 +27,7 @@ export const getInjectFunction = (embeddables: CommonEmbeddableStartContract) =>
if (!enhancements[key]) return;
updatedInput.enhancements![key] = embeddables
.getEnhancement(key)
.inject(enhancements[key] as SerializableState, references);
.inject(enhancements[key] as SerializableRecord, references);
});
return updatedInput;

View file

@ -6,15 +6,15 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { CommonEmbeddableStartContract } from '../types';
import { baseEmbeddableMigrations } from './migrate_base_input';
import { SerializableState } from '../../../kibana_utils/common/persistable_state';
export type MigrateFunction = (state: SerializableState, version: string) => SerializableState;
export type MigrateFunction = (state: SerializableRecord, version: string) => SerializableRecord;
export const getMigrateFunction = (embeddables: CommonEmbeddableStartContract) => {
const migrateFn: MigrateFunction = (state: SerializableState, version: string) => {
const enhancements = (state.enhancements as SerializableState) || {};
const migrateFn: MigrateFunction = (state: SerializableRecord, version: string) => {
const enhancements = (state.enhancements as SerializableRecord) || {};
const factory = embeddables.getEmbeddableFactory(state.type as string);
let updatedInput = baseEmbeddableMigrations[version]
@ -26,7 +26,7 @@ export const getMigrateFunction = (embeddables: CommonEmbeddableStartContract) =
}
if (factory?.isContainerType) {
updatedInput.panels = ((state.panels as SerializableState[]) || []).map((panel) => {
updatedInput.panels = ((state.panels as SerializableRecord[]) || []).map((panel) => {
return migrateFn(panel, version);
});
}
@ -36,7 +36,7 @@ export const getMigrateFunction = (embeddables: CommonEmbeddableStartContract) =
if (!enhancements[key]) return;
const enhancementDefinition = embeddables.getEnhancement(key);
const migratedEnhancement = enhancementDefinition?.migrations?.[version]
? enhancementDefinition.migrations[version](enhancements[key] as SerializableState)
? enhancementDefinition.migrations[version](enhancements[key] as SerializableRecord)
: enhancements[key];
(updatedInput.enhancements! as Record<string, any>)[key] = migratedEnhancement;
});

View file

@ -5,8 +5,10 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import type { KibanaExecutionContext } from 'src/core/public';
import { PersistableStateService, SerializableState } from '../../kibana_utils/common';
import { PersistableStateService } from '../../kibana_utils/common';
export enum ViewMode {
EDIT = 'edit',
@ -28,7 +30,7 @@ export type EmbeddableInput = {
/**
* Reserved key for enhancements added by other plugins.
*/
enhancements?: SerializableState;
enhancements?: SerializableRecord;
/**
* List of action IDs that this embeddable should not render.

View file

@ -9,6 +9,7 @@
import React from 'react';
import { Subscription } from 'rxjs';
import { identity } from 'lodash';
import type { SerializableRecord } from '@kbn/utility-types';
import { getSavedObjectFinder, showSaveModal } from '../../saved_objects/public';
import { UiActionsSetup, UiActionsStart } from '../../ui_actions/public';
import { Start as InspectorStart } from '../../inspector/public';
@ -39,11 +40,7 @@ import {
import { EmbeddableFactoryDefinition } from './lib/embeddables/embeddable_factory_definition';
import { EmbeddableStateTransfer } from './lib/state_transfer';
import { Storage } from '../../kibana_utils/public';
import {
migrateToLatest,
PersistableStateService,
SerializableState,
} from '../../kibana_utils/common';
import { migrateToLatest, PersistableStateService } from '../../kibana_utils/common';
import { ATTRIBUTE_SERVICE_KEY, AttributeService } from './lib/attribute_service';
import { AttributeServiceOptions } from './lib/attribute_service/attribute_service';
import { EmbeddableStateWithType } from '../common/types';
@ -240,7 +237,7 @@ export class EmbeddablePublicPlugin implements Plugin<EmbeddableSetup, Embeddabl
inject: enhancement.inject || identity,
extract:
enhancement.extract ||
((state: SerializableState) => {
((state: SerializableRecord) => {
return { state, references: [] };
}),
migrations: enhancement.migrations || {},
@ -253,7 +250,7 @@ export class EmbeddablePublicPlugin implements Plugin<EmbeddableSetup, Embeddabl
id: 'unknown',
telemetry: (state, stats) => stats,
inject: identity,
extract: (state: SerializableState) => {
extract: (state: SerializableRecord) => {
return { state, references: [] };
},
migrations: {},

View file

@ -54,6 +54,7 @@ import { SavedObjectAttributes } from 'kibana/server';
import { SavedObjectAttributes as SavedObjectAttributes_2 } from 'src/core/public';
import { SavedObjectAttributes as SavedObjectAttributes_3 } from 'kibana/public';
import { SchemaTypeError } from '@kbn/config-schema';
import { SerializableRecord } from '@kbn/utility-types';
import { SimpleSavedObject as SimpleSavedObject_2 } from 'src/core/public';
import { Start as Start_2 } from 'src/plugins/inspector/public';
import { TransportRequestOptions } from '@elastic/elasticsearch/lib/Transport';
@ -319,7 +320,7 @@ export abstract class Embeddable<TEmbeddableInput extends EmbeddableInput = Embe
// Warning: (ae-missing-release-tag) "EmbeddableChildPanel" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export class EmbeddableChildPanel extends React.Component<EmbeddableChildPanelProps, State_2> {
export class EmbeddableChildPanel extends React.Component<EmbeddableChildPanelProps, State> {
constructor(props: EmbeddableChildPanelProps);
// (undocumented)
[panel: string]: any;
@ -417,7 +418,7 @@ export type EmbeddableInput = {
id: string;
lastReloadRequestTime?: number;
hidePanelTitles?: boolean;
enhancements?: SerializableState;
enhancements?: SerializableRecord;
disabledActions?: string[];
disableTriggers?: boolean;
searchSessionId?: string;
@ -477,7 +478,7 @@ export interface EmbeddablePackageState {
// Warning: (ae-missing-release-tag) "EmbeddablePanel" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export class EmbeddablePanel extends React.Component<Props, State_3> {
export class EmbeddablePanel extends React.Component<Props, State_2> {
constructor(props: Props);
// (undocumented)
closeMyContextMenuPanel: () => void;
@ -620,7 +621,7 @@ export class EmbeddableStateTransfer {
// Warning: (ae-missing-release-tag) "EnhancementRegistryDefinition" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface EnhancementRegistryDefinition<P extends SerializableState = SerializableState> extends PersistableStateDefinition<P> {
export interface EnhancementRegistryDefinition<P extends SerializableRecord = SerializableRecord> extends PersistableStateDefinition<P> {
// (undocumented)
id: string;
}
@ -897,7 +898,6 @@ export const withEmbeddableSubscription: <I extends EmbeddableInput, O extends E
// Warnings were encountered during analysis:
//
// src/plugins/embeddable/common/types.ts:31:3 - (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
// src/plugins/embeddable/public/lib/panel/panel_header/panel_actions/add_panel/open_add_panel_flyout.tsx:25:3 - (ae-forgotten-export) The symbol "UsageCollectionStart" needs to be exported by the entry point index.d.ts
// src/plugins/embeddable/public/lib/triggers/triggers.ts:35:5 - (ae-forgotten-export) The symbol "Datatable" needs to be exported by the entry point index.d.ts

View file

@ -6,6 +6,7 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { SavedObjectAttributes } from 'kibana/public';
import {
EmbeddableFactory,
@ -14,21 +15,17 @@ import {
IEmbeddable,
EmbeddableFactoryDefinition,
} from './lib/embeddables';
import {
PersistableState,
PersistableStateDefinition,
SerializableState,
} from '../../kibana_utils/common';
import { PersistableState, PersistableStateDefinition } from '../../kibana_utils/common';
export type EmbeddableFactoryRegistry = Map<string, EmbeddableFactory>;
export type EnhancementsRegistry = Map<string, EnhancementRegistryItem>;
export interface EnhancementRegistryDefinition<P extends SerializableState = SerializableState>
export interface EnhancementRegistryDefinition<P extends SerializableRecord = SerializableRecord>
extends PersistableStateDefinition<P> {
id: string;
}
export interface EnhancementRegistryItem<P extends SerializableState = SerializableState>
export interface EnhancementRegistryItem<P extends SerializableRecord = SerializableRecord>
extends PersistableState<P> {
id: string;
}

View file

@ -6,6 +6,7 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { CoreSetup, CoreStart, Plugin } from 'kibana/server';
import { identity } from 'lodash';
import {
@ -23,7 +24,6 @@ import {
} from '../common/lib';
import {
PersistableStateService,
SerializableState,
PersistableStateMigrateFn,
MigrateFunctionsObject,
} from '../../kibana_utils/common';
@ -96,7 +96,7 @@ export class EmbeddableServerPlugin implements Plugin<EmbeddableSetup, Embeddabl
inject: enhancement.inject || identity,
extract:
enhancement.extract ||
((state: SerializableState) => {
((state: SerializableRecord) => {
return { state, references: [] };
}),
migrations: enhancement.migrations || {},
@ -109,7 +109,7 @@ export class EmbeddableServerPlugin implements Plugin<EmbeddableSetup, Embeddabl
id: 'unknown',
telemetry: (state, stats) => stats,
inject: identity,
extract: (state: SerializableState) => {
extract: (state: SerializableRecord) => {
return { state, references: [] };
},
migrations: {},

View file

@ -8,6 +8,7 @@ import { CoreSetup } from 'kibana/server';
import { CoreStart } from 'kibana/server';
import { KibanaExecutionContext } from 'src/core/public';
import { Plugin } from 'kibana/server';
import { SerializableRecord } from '@kbn/utility-types';
// Warning: (ae-forgotten-export) The symbol "EmbeddableStateWithType" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "PersistableStateDefinition" needs to be exported by the entry point index.d.ts
@ -39,11 +40,10 @@ export interface EmbeddableSetup extends PersistableStateService<EmbeddableState
// @public (undocumented)
export type EmbeddableStart = PersistableStateService<EmbeddableStateWithType>;
// Warning: (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
// Warning: (ae-missing-release-tag) "EnhancementRegistryDefinition" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export interface EnhancementRegistryDefinition<P extends SerializableState = SerializableState> extends PersistableStateDefinition<P> {
export interface EnhancementRegistryDefinition<P extends SerializableRecord = SerializableRecord> extends PersistableStateDefinition<P> {
// (undocumented)
id: string;
}

View file

@ -6,22 +6,19 @@
* Side Public License, v 1.
*/
import {
PersistableState,
PersistableStateDefinition,
SerializableState,
} from '../../kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import { PersistableState, PersistableStateDefinition } from '../../kibana_utils/common';
import { EmbeddableStateWithType } from '../common/types';
export type EmbeddableFactoryRegistry = Map<string, EmbeddableRegistryItem>;
export type EnhancementsRegistry = Map<string, EnhancementRegistryItem>;
export interface EnhancementRegistryDefinition<P extends SerializableState = SerializableState>
export interface EnhancementRegistryDefinition<P extends SerializableRecord = SerializableRecord>
extends PersistableStateDefinition<P> {
id: string;
}
export interface EnhancementRegistryItem<P extends SerializableState = SerializableState>
export interface EnhancementRegistryItem<P extends SerializableRecord = SerializableRecord>
extends PersistableState<P> {
id: string;
}

View file

@ -6,11 +6,12 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import type { KibanaRequest } from 'src/core/server';
import type { KibanaExecutionContext } from 'src/core/public';
import { ExpressionType, SerializableState } from '../expression_types';
import { ExpressionType } from '../expression_types';
import { Adapters, RequestAdapter } from '../../../inspector/common';
import { TablesAdapter } from '../util/tables_adapter';
@ -20,7 +21,7 @@ import { TablesAdapter } from '../util/tables_adapter';
*/
export interface ExecutionContext<
InspectorAdapters extends Adapters = Adapters,
ExecutionContextSearch extends SerializableState = SerializableState
ExecutionContextSearch extends SerializableRecord = SerializableRecord
> {
/**
* Get search context of the expression.

View file

@ -10,6 +10,7 @@
import { cloneDeep, mapValues } from 'lodash';
import { Observable } from 'rxjs';
import type { SerializableRecord } from '@kbn/utility-types';
import { ExecutorState, ExecutorContainer } from './container';
import { createExecutorContainer } from './container';
import { AnyExpressionFunctionDefinition, ExpressionFunction } from '../expression_functions';
@ -25,7 +26,6 @@ import {
MigrateFunctionsObject,
migrateToLatest,
PersistableStateService,
SerializableState,
VersionedState,
} from '../../../kibana_utils/common';
import { ExpressionExecutionParams } from '../service';
@ -272,7 +272,7 @@ export class Executor<Context extends Record<string, unknown> = Record<string, u
return migrateToLatest(this.getAllMigrations(), state) as ExpressionAstExpression;
}
private migrate(ast: SerializableState, version: string) {
private migrate(ast: SerializableRecord, version: string) {
return this.walkAst(cloneDeep(ast) as ExpressionAstExpression, (fn, link) => {
if (!fn.migrations[version]) return link;
const updatedAst = fn.migrations[version](link) as ExpressionAstFunction;

View file

@ -7,12 +7,13 @@
*/
import { identity } from 'lodash';
import type { SerializableRecord } from '@kbn/utility-types';
import { AnyExpressionFunctionDefinition } from './types';
import { ExpressionFunctionParameter } from './expression_function_parameter';
import { ExpressionValue } from '../expression_types/types';
import { ExpressionAstFunction } from '../ast';
import { SavedObjectReference } from '../../../../core/types';
import { PersistableState, SerializableState } from '../../../kibana_utils/common';
import { PersistableState } from '../../../kibana_utils/common';
export class ExpressionFunction implements PersistableState<ExpressionAstFunction['arguments']> {
/**
@ -65,7 +66,7 @@ export class ExpressionFunction implements PersistableState<ExpressionAstFunctio
references: SavedObjectReference[]
) => ExpressionAstFunction['arguments'];
migrations: {
[key: string]: (state: SerializableState) => SerializableState;
[key: string]: (state: SerializableRecord) => SerializableRecord;
};
constructor(functionDefinition: AnyExpressionFunctionDefinition) {

View file

@ -6,6 +6,7 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { map, pick, zipObject } from 'lodash';
import { ExpressionTypeDefinition } from '../types';
@ -13,13 +14,6 @@ import { PointSeries, PointSeriesColumn } from './pointseries';
import { ExpressionValueRender } from './render';
import { SerializedFieldFormat } from '../../types';
type State = string | number | boolean | null | undefined | SerializableState;
/** @internal **/
export interface SerializableState {
[key: string]: State | State[];
}
const name = 'datatable';
/**
@ -84,7 +78,7 @@ export interface DatatableColumnMeta {
/**
* any extra parameters for the source that produced this column
*/
sourceParams?: SerializableState;
sourceParams?: SerializableRecord;
}
/**

View file

@ -6,10 +6,10 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { ExpressionTypeDefinition, ExpressionValueBoxed } from '../types';
import { ExpressionValueRender } from './render';
import { getType } from '../get_type';
import { SerializableState } from '../../../../kibana_utils/common';
import { ErrorLike } from '../../util';
const name = 'error';
@ -18,7 +18,7 @@ export type ExpressionValueError = ExpressionValueBoxed<
'error',
{
error: ErrorLike;
info?: SerializableState;
info?: SerializableRecord;
}
>;

View file

@ -7,6 +7,7 @@
*/
import { Observable } from 'rxjs';
import type { SerializableRecord } from '@kbn/utility-types';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import type { KibanaRequest } from 'src/core/server';
import type { KibanaExecutionContext } from 'src/core/public';
@ -18,11 +19,7 @@ import { ExecutionContract, ExecutionResult } from '../execution';
import { AnyExpressionTypeDefinition, ExpressionValueError } from '../expression_types';
import { AnyExpressionFunctionDefinition } from '../expression_functions';
import { SavedObjectReference } from '../../../../core/types';
import {
PersistableStateService,
SerializableState,
VersionedState,
} from '../../../kibana_utils/common';
import { PersistableStateService, VersionedState } from '../../../kibana_utils/common';
import { Adapters } from '../../../inspector/common/adapters';
import {
clog,
@ -60,7 +57,7 @@ export type ExpressionsServiceSetup = Pick<
>;
export interface ExpressionExecutionParams {
searchContext?: SerializableState;
searchContext?: SerializableRecord;
variables?: Record<string, any>;

View file

@ -17,6 +17,7 @@ import { PackageInfo } from '@kbn/config';
import { Plugin as Plugin_2 } from 'src/core/public';
import { PluginInitializerContext as PluginInitializerContext_2 } from 'src/core/public';
import React from 'react';
import { SerializableRecord } from '@kbn/utility-types';
import { UnwrapObservable } from '@kbn/utility-types';
import { UnwrapPromiseOrReturn } from '@kbn/utility-types';
@ -133,11 +134,10 @@ export class Execution<Input = unknown, Output = unknown, InspectorAdapters exte
// @public (undocumented)
export type ExecutionContainer<Output = ExpressionValue> = StateContainer<ExecutionState<Output>, ExecutionPureTransitions<Output>>;
// Warning: (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
// Warning: (ae-missing-release-tag) "ExecutionContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableState_2 = SerializableState_2> {
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableRecord = SerializableRecord> {
abortSignal: AbortSignal;
getExecutionContext: () => KibanaExecutionContext | undefined;
getKibanaRequest?: () => KibanaRequest;
@ -356,7 +356,7 @@ export class ExpressionFunction implements PersistableState<ExpressionAstFunctio
inputTypes: string[] | undefined;
// (undocumented)
migrations: {
[key: string]: (state: SerializableState) => SerializableState;
[key: string]: (state: SerializableRecord) => SerializableRecord;
};
name: string;
// (undocumented)
@ -764,7 +764,7 @@ export type ExpressionValueConverter<I extends ExpressionValue, O extends Expres
// @public (undocumented)
export type ExpressionValueError = ExpressionValueBoxed<'error', {
error: ErrorLike;
info?: SerializableState;
info?: SerializableRecord;
}>;
// Warning: (ae-missing-release-tag) "ExpressionValueFilter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@ -923,7 +923,7 @@ export interface IExpressionLoaderParams {
// (undocumented)
renderMode?: RenderMode;
// (undocumented)
searchContext?: SerializableState_2;
searchContext?: SerializableRecord;
// (undocumented)
searchSessionId?: string;
// (undocumented)
@ -1193,7 +1193,6 @@ export type UnmappedTypeStrings = 'date' | 'filter';
// Warnings were encountered during analysis:
//
// src/plugins/expressions/common/ast/types.ts:29:3 - (ae-forgotten-export) The symbol "ExpressionAstFunctionDebug" needs to be exported by the entry point index.d.ts
// src/plugins/expressions/common/expression_functions/expression_function.ts:68:5 - (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
// src/plugins/expressions/common/expression_types/specs/error.ts:20:5 - (ae-forgotten-export) The symbol "ErrorLike" needs to be exported by the entry point index.d.ts
// (No @packageDocumentation comment for this package)

View file

@ -5,13 +5,14 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import type { KibanaExecutionContext } from 'src/core/public';
import { Adapters } from '../../../inspector/public';
import {
IInterpreterRenderHandlers,
ExpressionValue,
ExpressionsService,
SerializableState,
RenderMode,
} from '../../common';
import { ExpressionRenderHandlerParams } from '../render';
@ -33,7 +34,7 @@ export interface ExpressionInterpreter {
}
export interface IExpressionLoaderParams {
searchContext?: SerializableState;
searchContext?: SerializableRecord;
context?: ExpressionValue;
variables?: Record<string, any>;
// Enables debug tracking on each expression in the AST

View file

@ -14,6 +14,7 @@ import { Observable } from 'rxjs';
import { ObservableLike } from '@kbn/utility-types';
import { Plugin as Plugin_2 } from 'src/core/server';
import { PluginInitializerContext } from 'src/core/server';
import { SerializableRecord } from '@kbn/utility-types';
import { UnwrapObservable } from '@kbn/utility-types';
import { UnwrapPromiseOrReturn } from '@kbn/utility-types';
@ -131,11 +132,10 @@ export class Execution<Input = unknown, Output = unknown, InspectorAdapters exte
// @public (undocumented)
export type ExecutionContainer<Output = ExpressionValue> = StateContainer<ExecutionState<Output>, ExecutionPureTransitions<Output>>;
// Warning: (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
// Warning: (ae-missing-release-tag) "ExecutionContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableState_2 = SerializableState_2> {
export interface ExecutionContext<InspectorAdapters extends Adapters = Adapters, ExecutionContextSearch extends SerializableRecord = SerializableRecord> {
abortSignal: AbortSignal;
getExecutionContext: () => KibanaExecutionContext | undefined;
getKibanaRequest?: () => KibanaRequest;
@ -328,7 +328,7 @@ export class ExpressionFunction implements PersistableState<ExpressionAstFunctio
inputTypes: string[] | undefined;
// (undocumented)
migrations: {
[key: string]: (state: SerializableState) => SerializableState;
[key: string]: (state: SerializableRecord) => SerializableRecord;
};
name: string;
// (undocumented)
@ -604,7 +604,7 @@ export type ExpressionValueConverter<I extends ExpressionValue, O extends Expres
// @public (undocumented)
export type ExpressionValueError = ExpressionValueBoxed<'error', {
error: ErrorLike;
info?: SerializableState;
info?: SerializableRecord;
}>;
// Warning: (ae-missing-release-tag) "ExpressionValueFilter" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
@ -947,7 +947,6 @@ export type UnmappedTypeStrings = 'date' | 'filter';
// Warnings were encountered during analysis:
//
// src/plugins/expressions/common/ast/types.ts:29:3 - (ae-forgotten-export) The symbol "ExpressionAstFunctionDebug" needs to be exported by the entry point index.d.ts
// src/plugins/expressions/common/expression_functions/expression_function.ts:68:5 - (ae-forgotten-export) The symbol "SerializableState" needs to be exported by the entry point index.d.ts
// src/plugins/expressions/common/expression_types/specs/error.ts:20:5 - (ae-forgotten-export) The symbol "ErrorLike" needs to be exported by the entry point index.d.ts
// (No @packageDocumentation comment for this package)

View file

@ -7,7 +7,8 @@
*/
import { mergeWith } from 'lodash';
import { MigrateFunctionsObject, MigrateFunction, SerializableState } from './types';
import type { SerializableRecord } from '@kbn/utility-types';
import { MigrateFunctionsObject, MigrateFunction } from './types';
export const mergeMigrationFunctionMaps = (
obj1: MigrateFunctionsObject,
@ -17,7 +18,7 @@ export const mergeMigrationFunctionMaps = (
if (!srcValue || !objValue) {
return srcValue || objValue;
}
return (state: SerializableState) => objValue(srcValue(state));
return (state: SerializableRecord) => objValue(srcValue(state));
};
return mergeWith({ ...obj1 }, obj2, customizer);

View file

@ -6,19 +6,20 @@
* Side Public License, v 1.
*/
import { SerializableState, MigrateFunction } from './types';
import { SerializableRecord } from '@kbn/utility-types';
import { MigrateFunction } from './types';
import { migrateToLatest } from './migrate_to_latest';
interface StateV1 extends SerializableState {
interface StateV1 extends SerializableRecord {
name: string;
}
interface StateV2 extends SerializableState {
interface StateV2 extends SerializableRecord {
firstName: string;
lastName: string;
}
interface StateV3 extends SerializableState {
interface StateV3 extends SerializableRecord {
firstName: string;
lastName: string;
isAdmin: boolean;

View file

@ -7,9 +7,10 @@
*/
import { compare } from 'semver';
import { SerializableState, VersionedState, MigrateFunctionsObject } from './types';
import { SerializableRecord } from '@kbn/utility-types';
import { VersionedState, MigrateFunctionsObject } from './types';
export function migrateToLatest<S extends SerializableState>(
export function migrateToLatest<S extends SerializableRecord>(
migrations: MigrateFunctionsObject,
{ state, version: oldVersion }: VersionedState
): S {

View file

@ -6,18 +6,9 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { SavedObjectReference } from '../../../../core/types';
/**
* Serializable state is something is a POJO JavaScript object that can be
* serialized to a JSON string.
*/
export type SerializableState = {
[key: string]: Serializable;
};
export type SerializableValue = string | number | boolean | null | undefined | SerializableState;
export type Serializable = SerializableValue | SerializableValue[];
/**
* Versioned state is a POJO JavaScript object that can be serialized to JSON,
* and which also contains the version information. The version is stored in
@ -35,7 +26,7 @@ export type Serializable = SerializableValue | SerializableValue[];
* };
* ```
*/
export interface VersionedState<S extends SerializableState = SerializableState> {
export interface VersionedState<S extends SerializableRecord = SerializableRecord> {
version: string;
state: S;
}
@ -50,7 +41,7 @@ export interface VersionedState<S extends SerializableState = SerializableState>
*
* @todo Maybe rename it to `PersistableStateItem`?
*/
export interface PersistableState<P extends SerializableState = SerializableState> {
export interface PersistableState<P extends SerializableRecord = SerializableRecord> {
/**
* Function which reports telemetry information. This function is essentially
* a "reducer" - it receives the existing "stats" object and returns an
@ -101,8 +92,8 @@ export interface PersistableState<P extends SerializableState = SerializableStat
*/
export type MigrateFunctionsObject = { [semver: string]: MigrateFunction<any, any> };
export type MigrateFunction<
FromVersion extends SerializableState = SerializableState,
ToVersion extends SerializableState = SerializableState
FromVersion extends SerializableRecord = SerializableRecord,
ToVersion extends SerializableRecord = SerializableRecord
> = (state: FromVersion) => ToVersion;
/**
@ -111,21 +102,21 @@ export type MigrateFunction<
* @param version
*/
export type PersistableStateMigrateFn = (
state: SerializableState,
state: SerializableRecord,
version: string
) => SerializableState;
) => SerializableRecord;
/**
* @todo Shall we remove this?
*/
export type PersistableStateDefinition<P extends SerializableState = SerializableState> = Partial<
export type PersistableStateDefinition<P extends SerializableRecord = SerializableRecord> = Partial<
PersistableState<P>
>;
/**
* @todo Add description.
*/
export interface PersistableStateService<P extends SerializableState = SerializableState> {
export interface PersistableStateService<P extends SerializableRecord = SerializableRecord> {
/**
* Function which reports telemetry information. This function is essentially
* a "reducer" - it receives the existing "stats" object and returns an

View file

@ -6,14 +6,14 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { UiComponent } from '../../common/ui/ui_component';
import { SerializableState } from '../../common';
/**
* Represents something that can be configured by user using UI.
*/
export interface Configurable<
Config extends SerializableState = SerializableState,
Config extends SerializableRecord = SerializableRecord,
Context = object
> {
/**
@ -36,7 +36,7 @@ export interface Configurable<
* Props provided to `CollectConfig` component on every re-render.
*/
export interface CollectConfigProps<
Config extends SerializableState = SerializableState,
Config extends SerializableRecord = SerializableRecord,
Context = object
> {
/**

View file

@ -6,13 +6,13 @@
* Side Public License, v 1.
*/
import { SerializableState } from 'src/plugins/kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import { LocatorDefinition, LocatorPublic } from 'src/plugins/share/common';
import { MANAGEMENT_APP_ID } from './contants';
export const MANAGEMENT_APP_LOCATOR = 'MANAGEMENT_APP_LOCATOR';
export interface ManagementAppLocatorParams extends SerializableState {
export interface ManagementAppLocatorParams extends SerializableRecord {
sectionId: string;
appId?: string;
}

View file

@ -6,11 +6,11 @@
* Side Public License, v 1.
*/
import type { SerializableState } from 'src/plugins/kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import { LocatorDefinition } from '../locators';
import { UrlService, UrlServiceDependencies } from '../url_service';
export interface TestLocatorState extends SerializableState {
export interface TestLocatorState extends SerializableRecord {
savedObjectId: string;
showFlyout: boolean;
pageNumber: number;

View file

@ -6,9 +6,10 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import type { SavedObjectReference } from 'kibana/server';
import { DependencyList } from 'react';
import type { PersistableState, SerializableState } from 'src/plugins/kibana_utils/common';
import type { PersistableState } from 'src/plugins/kibana_utils/common';
import { useLocatorUrl } from './use_locator_url';
import type {
LocatorDefinition,
@ -30,7 +31,7 @@ export interface LocatorDependencies {
getUrl: (location: KibanaLocation, getUrlParams: LocatorGetUrlParams) => Promise<string>;
}
export class Locator<P extends SerializableState> implements LocatorPublic<P> {
export class Locator<P extends SerializableRecord> implements LocatorPublic<P> {
public readonly migrations: PersistableState<P>['migrations'];
constructor(

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { SerializableState } from 'src/plugins/kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import type { LocatorDependencies } from './locator';
import type { LocatorDefinition, LocatorPublic, ILocatorClient } from './types';
import { Locator } from './locator';
@ -27,7 +27,7 @@ export class LocatorClient implements ILocatorClient {
* @param definition A definition of URL locator.
* @returns A public interface of URL locator.
*/
public create<P extends SerializableState>(definition: LocatorDefinition<P>): LocatorPublic<P> {
public create<P extends SerializableRecord>(definition: LocatorDefinition<P>): LocatorPublic<P> {
const locator = new Locator<P>(definition, this.deps);
this.locators.set(definition.id, locator);
@ -41,7 +41,7 @@ export class LocatorClient implements ILocatorClient {
* @param id ID of a URL locator.
* @returns A public interface of a registered URL locator.
*/
public get<P extends SerializableState>(id: string): undefined | LocatorPublic<P> {
public get<P extends SerializableRecord>(id: string): undefined | LocatorPublic<P> {
return this.locators.get(id);
}
}

View file

@ -6,8 +6,9 @@
* Side Public License, v 1.
*/
import type { SerializableRecord } from '@kbn/utility-types';
import { DependencyList } from 'react';
import { PersistableState, SerializableState } from 'src/plugins/kibana_utils/common';
import { PersistableState } from 'src/plugins/kibana_utils/common';
/**
* URL locator registry.
@ -18,20 +19,20 @@ export interface ILocatorClient {
*
* @param urlGenerator Definition of the new locator.
*/
create<P extends SerializableState>(locatorDefinition: LocatorDefinition<P>): LocatorPublic<P>;
create<P extends SerializableRecord>(locatorDefinition: LocatorDefinition<P>): LocatorPublic<P>;
/**
* Retrieve a previously registered locator.
*
* @param id Unique ID of the locator.
*/
get<P extends SerializableState>(id: string): undefined | LocatorPublic<P>;
get<P extends SerializableRecord>(id: string): undefined | LocatorPublic<P>;
}
/**
* A convenience interface used to define and register a locator.
*/
export interface LocatorDefinition<P extends SerializableState>
export interface LocatorDefinition<P extends SerializableRecord>
extends Partial<PersistableState<P>> {
/**
* Unique ID of the locator. Should be constant and unique across Kibana.
@ -50,7 +51,7 @@ export interface LocatorDefinition<P extends SerializableState>
/**
* Public interface of a registered locator.
*/
export interface LocatorPublic<P extends SerializableState> extends PersistableState<P> {
export interface LocatorPublic<P extends SerializableRecord> extends PersistableState<P> {
/**
* Returns a reference to a Kibana client-side location.
*

View file

@ -8,10 +8,10 @@
import { DependencyList, useEffect, useState } from 'react';
import useMountedState from 'react-use/lib/useMountedState';
import { SerializableState } from 'src/plugins/kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import { LocatorGetUrlParams, LocatorPublic } from '../../../common/url_service';
export const useLocatorUrl = <P extends SerializableState>(
export const useLocatorUrl = <P extends SerializableRecord>(
locator: LocatorPublic<P> | null | undefined,
params: P,
getUrlParams?: LocatorGetUrlParams,

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { SerializableState } from 'src/plugins/kibana_utils/common';
import { SerializableRecord } from '@kbn/utility-types';
import { SharePluginSetup, SharePluginStart } from '.';
import { LocatorPublic, UrlService } from '../common/url_service';
@ -42,7 +42,7 @@ const createStartContract = (): Start => {
return startContract;
};
const createLocator = <T extends SerializableState = SerializableState>(): jest.Mocked<
const createLocator = <T extends SerializableRecord = SerializableRecord>(): jest.Mocked<
LocatorPublic<T>
> => ({
getLocation: jest.fn(),

View file

@ -9,8 +9,8 @@
import type { CoreSetup } from 'src/core/public';
import { i18n } from '@kbn/i18n';
import { BehaviorSubject } from 'rxjs';
import type { SerializableRecord } from '@kbn/utility-types';
import { migrateToLatest } from '../../../../kibana_utils/common';
import type { SerializableState } from '../../../../kibana_utils/common';
import type { UrlService } from '../../../common/url_service';
import { render } from './render';
import { parseSearchParams } from './util/parse_search_params';
@ -23,7 +23,7 @@ export interface RedirectOptions {
version: string;
/** Locator params. */
params: unknown & SerializableState;
params: unknown & SerializableRecord;
}
export interface RedirectManagerDependencies {

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import type { SerializableState } from 'src/plugins/kibana_utils/common';
import type { SerializableRecord } from '@kbn/utility-types';
import { i18n } from '@kbn/i18n';
import type { RedirectOptions } from '../redirect_manager';
@ -63,7 +63,7 @@ export function parseSearchParams(urlSearch: string): RedirectOptions {
throw new Error(message);
}
let params: unknown & SerializableState;
let params: unknown & SerializableRecord;
try {
params = JSON.parse(paramsJson);
} catch {

Some files were not shown because too many files have changed in this diff Show more