mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[data] Extract @kbn/field-types to a package (#106973)
This commit is contained in:
parent
e8a4d6177e
commit
3c3087855f
39 changed files with 322 additions and 515 deletions
|
@ -4,10 +4,13 @@
|
|||
|
||||
## castEsToKbnFieldTypeName variable
|
||||
|
||||
Get the KbnFieldType name for an esType string
|
||||
> Warning: This API is now obsolete.
|
||||
>
|
||||
> import from "<!-- -->@<!-- -->kbn/field-types" instead
|
||||
>
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
castEsToKbnFieldTypeName: (esType: ES_FIELD_TYPES | string) => KBN_FIELD_TYPES
|
||||
castEsToKbnFieldTypeName: (esType: string) => import("@kbn/field-types").KBN_FIELD_TYPES
|
||||
```
|
||||
|
|
|
@ -1,54 +0,0 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [ES\_FIELD\_TYPES](./kibana-plugin-plugins-data-public.es_field_types.md)
|
||||
|
||||
## ES\_FIELD\_TYPES enum
|
||||
|
||||
\*
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare enum ES_FIELD_TYPES
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| \_ID | <code>"_id"</code> | |
|
||||
| \_INDEX | <code>"_index"</code> | |
|
||||
| \_SOURCE | <code>"_source"</code> | |
|
||||
| \_TYPE | <code>"_type"</code> | |
|
||||
| ATTACHMENT | <code>"attachment"</code> | |
|
||||
| BOOLEAN | <code>"boolean"</code> | |
|
||||
| BYTE | <code>"byte"</code> | |
|
||||
| DATE | <code>"date"</code> | |
|
||||
| DATE\_NANOS | <code>"date_nanos"</code> | |
|
||||
| DATE\_RANGE | <code>"date_range"</code> | |
|
||||
| DOUBLE | <code>"double"</code> | |
|
||||
| DOUBLE\_RANGE | <code>"double_range"</code> | |
|
||||
| FLOAT | <code>"float"</code> | |
|
||||
| FLOAT\_RANGE | <code>"float_range"</code> | |
|
||||
| GEO\_POINT | <code>"geo_point"</code> | |
|
||||
| GEO\_SHAPE | <code>"geo_shape"</code> | |
|
||||
| HALF\_FLOAT | <code>"half_float"</code> | |
|
||||
| HISTOGRAM | <code>"histogram"</code> | |
|
||||
| INTEGER | <code>"integer"</code> | |
|
||||
| INTEGER\_RANGE | <code>"integer_range"</code> | |
|
||||
| IP | <code>"ip"</code> | |
|
||||
| IP\_RANGE | <code>"ip_range"</code> | |
|
||||
| KEYWORD | <code>"keyword"</code> | |
|
||||
| LONG | <code>"long"</code> | |
|
||||
| LONG\_RANGE | <code>"long_range"</code> | |
|
||||
| MURMUR3 | <code>"murmur3"</code> | |
|
||||
| NESTED | <code>"nested"</code> | |
|
||||
| OBJECT | <code>"object"</code> | |
|
||||
| SCALED\_FLOAT | <code>"scaled_float"</code> | |
|
||||
| SHORT | <code>"short"</code> | |
|
||||
| STRING | <code>"string"</code> | |
|
||||
| TEXT | <code>"text"</code> | |
|
||||
| TOKEN\_COUNT | <code>"token_count"</code> | |
|
||||
| UNSIGNED\_LONG | <code>"unsigned_long"</code> | |
|
||||
| VERSION | <code>"version"</code> | |
|
||||
|
|
@ -4,9 +4,10 @@
|
|||
|
||||
## getKbnTypeNames variable
|
||||
|
||||
Get the esTypes known by all kbnFieldTypes
|
||||
|
||||
{<!-- -->Array<string>}
|
||||
> Warning: This API is now obsolete.
|
||||
>
|
||||
> import from "<!-- -->@<!-- -->kbn/field-types" instead
|
||||
>
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [KBN\_FIELD\_TYPES](./kibana-plugin-plugins-data-public.kbn_field_types.md)
|
||||
|
||||
## KBN\_FIELD\_TYPES enum
|
||||
|
||||
\*
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare enum KBN_FIELD_TYPES
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| \_SOURCE | <code>"_source"</code> | |
|
||||
| ATTACHMENT | <code>"attachment"</code> | |
|
||||
| BOOLEAN | <code>"boolean"</code> | |
|
||||
| CONFLICT | <code>"conflict"</code> | |
|
||||
| DATE | <code>"date"</code> | |
|
||||
| DATE\_RANGE | <code>"date_range"</code> | |
|
||||
| GEO\_POINT | <code>"geo_point"</code> | |
|
||||
| GEO\_SHAPE | <code>"geo_shape"</code> | |
|
||||
| HISTOGRAM | <code>"histogram"</code> | |
|
||||
| IP | <code>"ip"</code> | |
|
||||
| IP\_RANGE | <code>"ip_range"</code> | |
|
||||
| MISSING | <code>"missing"</code> | |
|
||||
| MURMUR3 | <code>"murmur3"</code> | |
|
||||
| NESTED | <code>"nested"</code> | |
|
||||
| NUMBER | <code>"number"</code> | |
|
||||
| NUMBER\_RANGE | <code>"number_range"</code> | |
|
||||
| OBJECT | <code>"object"</code> | |
|
||||
| STRING | <code>"string"</code> | |
|
||||
| UNKNOWN | <code>"unknown"</code> | |
|
||||
|
|
@ -4,10 +4,13 @@
|
|||
|
||||
## castEsToKbnFieldTypeName variable
|
||||
|
||||
Get the KbnFieldType name for an esType string
|
||||
> Warning: This API is now obsolete.
|
||||
>
|
||||
> import from "<!-- -->@<!-- -->kbn/field-types" instead
|
||||
>
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
castEsToKbnFieldTypeName: (esType: ES_FIELD_TYPES | string) => KBN_FIELD_TYPES
|
||||
castEsToKbnFieldTypeName: (esType: string) => import("@kbn/field-types").KBN_FIELD_TYPES
|
||||
```
|
||||
|
|
|
@ -1,54 +0,0 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [ES\_FIELD\_TYPES](./kibana-plugin-plugins-data-server.es_field_types.md)
|
||||
|
||||
## ES\_FIELD\_TYPES enum
|
||||
|
||||
\*
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare enum ES_FIELD_TYPES
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| \_ID | <code>"_id"</code> | |
|
||||
| \_INDEX | <code>"_index"</code> | |
|
||||
| \_SOURCE | <code>"_source"</code> | |
|
||||
| \_TYPE | <code>"_type"</code> | |
|
||||
| ATTACHMENT | <code>"attachment"</code> | |
|
||||
| BOOLEAN | <code>"boolean"</code> | |
|
||||
| BYTE | <code>"byte"</code> | |
|
||||
| DATE | <code>"date"</code> | |
|
||||
| DATE\_NANOS | <code>"date_nanos"</code> | |
|
||||
| DATE\_RANGE | <code>"date_range"</code> | |
|
||||
| DOUBLE | <code>"double"</code> | |
|
||||
| DOUBLE\_RANGE | <code>"double_range"</code> | |
|
||||
| FLOAT | <code>"float"</code> | |
|
||||
| FLOAT\_RANGE | <code>"float_range"</code> | |
|
||||
| GEO\_POINT | <code>"geo_point"</code> | |
|
||||
| GEO\_SHAPE | <code>"geo_shape"</code> | |
|
||||
| HALF\_FLOAT | <code>"half_float"</code> | |
|
||||
| HISTOGRAM | <code>"histogram"</code> | |
|
||||
| INTEGER | <code>"integer"</code> | |
|
||||
| INTEGER\_RANGE | <code>"integer_range"</code> | |
|
||||
| IP | <code>"ip"</code> | |
|
||||
| IP\_RANGE | <code>"ip_range"</code> | |
|
||||
| KEYWORD | <code>"keyword"</code> | |
|
||||
| LONG | <code>"long"</code> | |
|
||||
| LONG\_RANGE | <code>"long_range"</code> | |
|
||||
| MURMUR3 | <code>"murmur3"</code> | |
|
||||
| NESTED | <code>"nested"</code> | |
|
||||
| OBJECT | <code>"object"</code> | |
|
||||
| SCALED\_FLOAT | <code>"scaled_float"</code> | |
|
||||
| SHORT | <code>"short"</code> | |
|
||||
| STRING | <code>"string"</code> | |
|
||||
| TEXT | <code>"text"</code> | |
|
||||
| TOKEN\_COUNT | <code>"token_count"</code> | |
|
||||
| UNSIGNED\_LONG | <code>"unsigned_long"</code> | |
|
||||
| VERSION | <code>"version"</code> | |
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [KBN\_FIELD\_TYPES](./kibana-plugin-plugins-data-server.kbn_field_types.md)
|
||||
|
||||
## KBN\_FIELD\_TYPES enum
|
||||
|
||||
\*
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
export declare enum KBN_FIELD_TYPES
|
||||
```
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
| Member | Value | Description |
|
||||
| --- | --- | --- |
|
||||
| \_SOURCE | <code>"_source"</code> | |
|
||||
| ATTACHMENT | <code>"attachment"</code> | |
|
||||
| BOOLEAN | <code>"boolean"</code> | |
|
||||
| CONFLICT | <code>"conflict"</code> | |
|
||||
| DATE | <code>"date"</code> | |
|
||||
| DATE\_RANGE | <code>"date_range"</code> | |
|
||||
| GEO\_POINT | <code>"geo_point"</code> | |
|
||||
| GEO\_SHAPE | <code>"geo_shape"</code> | |
|
||||
| HISTOGRAM | <code>"histogram"</code> | |
|
||||
| IP | <code>"ip"</code> | |
|
||||
| IP\_RANGE | <code>"ip_range"</code> | |
|
||||
| MISSING | <code>"missing"</code> | |
|
||||
| MURMUR3 | <code>"murmur3"</code> | |
|
||||
| NESTED | <code>"nested"</code> | |
|
||||
| NUMBER | <code>"number"</code> | |
|
||||
| NUMBER\_RANGE | <code>"number_range"</code> | |
|
||||
| OBJECT | <code>"object"</code> | |
|
||||
| STRING | <code>"string"</code> | |
|
||||
| UNKNOWN | <code>"unknown"</code> | |
|
||||
|
|
@ -130,6 +130,7 @@
|
|||
"@kbn/config-schema": "link:bazel-bin/packages/kbn-config-schema",
|
||||
"@kbn/crypto": "link:bazel-bin/packages/kbn-crypto",
|
||||
"@kbn/es-query": "link:bazel-bin/packages/kbn-es-query",
|
||||
"@kbn/field-types": "link:bazel-bin/packages/kbn-field-types",
|
||||
"@kbn/i18n": "link:bazel-bin/packages/kbn-i18n",
|
||||
"@kbn/interpreter": "link:bazel-bin/packages/kbn-interpreter",
|
||||
"@kbn/io-ts-utils": "link:bazel-bin/packages/kbn-io-ts-utils",
|
||||
|
|
|
@ -25,6 +25,7 @@ filegroup(
|
|||
"//packages/kbn-eslint-import-resolver-kibana:build",
|
||||
"//packages/kbn-eslint-plugin-eslint:build",
|
||||
"//packages/kbn-expect:build",
|
||||
"//packages/kbn-field-types:build",
|
||||
"//packages/kbn-i18n:build",
|
||||
"//packages/kbn-interpreter:build",
|
||||
"//packages/kbn-io-ts-utils:build",
|
||||
|
|
3
packages/kbn-field-types/.babelrc
Normal file
3
packages/kbn-field-types/.babelrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"presets": ["@kbn/babel-preset/node_preset"]
|
||||
}
|
96
packages/kbn-field-types/BUILD.bazel
Normal file
96
packages/kbn-field-types/BUILD.bazel
Normal file
|
@ -0,0 +1,96 @@
|
|||
|
||||
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-field-types"
|
||||
PKG_REQUIRE_NAME = "@kbn/field-types"
|
||||
|
||||
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 = [
|
||||
"@npm//jest-styled-components",
|
||||
"@npm//node-forge",
|
||||
]
|
||||
|
||||
TYPES_DEPS = [
|
||||
"@npm//@types/flot",
|
||||
"@npm//@types/jest",
|
||||
"@npm//@types/node",
|
||||
"@npm//@types/node-forge",
|
||||
"@npm//@types/testing-library__jest-dom",
|
||||
"@npm//resize-observer-polyfill",
|
||||
"@npm//@emotion/react",
|
||||
"@npm//jest-styled-components",
|
||||
]
|
||||
|
||||
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"],
|
||||
)
|
3
packages/kbn-field-types/README.md
Normal file
3
packages/kbn-field-types/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# @kbn/field-types
|
||||
|
||||
Types and utilities for kbn and es field types
|
13
packages/kbn-field-types/jest.config.js
Normal file
13
packages/kbn-field-types/jest.config.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* 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-field-types'],
|
||||
};
|
8
packages/kbn-field-types/package.json
Normal file
8
packages/kbn-field-types/package.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "@kbn/field-types",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"license": "SSPL-1.0 OR Elastic License 2.0",
|
||||
"main": "./target_node/index.js",
|
||||
"types": "./target_types/index.d.ts"
|
||||
}
|
18
packages/kbn-field-types/src/index.ts
Normal file
18
packages/kbn-field-types/src/index.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* 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 { KbnFieldType } from './kbn_field_type';
|
||||
|
||||
export {
|
||||
castEsToKbnFieldTypeName,
|
||||
getKbnFieldType,
|
||||
getKbnTypeNames,
|
||||
getFilterableKbnTypeNames,
|
||||
} from './kbn_field_types';
|
||||
|
||||
export { KBN_FIELD_TYPES, ES_FIELD_TYPES, KbnFieldTypeOptions } from './types';
|
85
packages/kbn-field-types/src/types.ts
Normal file
85
packages/kbn-field-types/src/types.ts
Normal file
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/** @public **/
|
||||
export interface KbnFieldTypeOptions {
|
||||
sortable: boolean;
|
||||
filterable: boolean;
|
||||
name: string;
|
||||
esTypes: ES_FIELD_TYPES[];
|
||||
}
|
||||
|
||||
/** @public **/
|
||||
export enum ES_FIELD_TYPES {
|
||||
_ID = '_id',
|
||||
_INDEX = '_index',
|
||||
_SOURCE = '_source',
|
||||
_TYPE = '_type',
|
||||
|
||||
STRING = 'string',
|
||||
TEXT = 'text',
|
||||
KEYWORD = 'keyword',
|
||||
VERSION = 'version',
|
||||
|
||||
BOOLEAN = 'boolean',
|
||||
OBJECT = 'object',
|
||||
|
||||
DATE = 'date',
|
||||
DATE_NANOS = 'date_nanos',
|
||||
DATE_RANGE = 'date_range',
|
||||
|
||||
GEO_POINT = 'geo_point',
|
||||
GEO_SHAPE = 'geo_shape',
|
||||
|
||||
FLOAT = 'float',
|
||||
HALF_FLOAT = 'half_float',
|
||||
SCALED_FLOAT = 'scaled_float',
|
||||
DOUBLE = 'double',
|
||||
INTEGER = 'integer',
|
||||
LONG = 'long',
|
||||
SHORT = 'short',
|
||||
UNSIGNED_LONG = 'unsigned_long',
|
||||
|
||||
FLOAT_RANGE = 'float_range',
|
||||
DOUBLE_RANGE = 'double_range',
|
||||
INTEGER_RANGE = 'integer_range',
|
||||
LONG_RANGE = 'long_range',
|
||||
|
||||
NESTED = 'nested',
|
||||
BYTE = 'byte',
|
||||
IP = 'ip',
|
||||
IP_RANGE = 'ip_range',
|
||||
ATTACHMENT = 'attachment',
|
||||
TOKEN_COUNT = 'token_count',
|
||||
MURMUR3 = 'murmur3',
|
||||
|
||||
HISTOGRAM = 'histogram',
|
||||
}
|
||||
|
||||
/** @public **/
|
||||
export enum KBN_FIELD_TYPES {
|
||||
_SOURCE = '_source',
|
||||
ATTACHMENT = 'attachment',
|
||||
BOOLEAN = 'boolean',
|
||||
DATE = 'date',
|
||||
DATE_RANGE = 'date_range',
|
||||
GEO_POINT = 'geo_point',
|
||||
GEO_SHAPE = 'geo_shape',
|
||||
IP = 'ip',
|
||||
IP_RANGE = 'ip_range',
|
||||
MURMUR3 = 'murmur3',
|
||||
NUMBER = 'number',
|
||||
NUMBER_RANGE = 'number_range',
|
||||
STRING = 'string',
|
||||
UNKNOWN = 'unknown',
|
||||
CONFLICT = 'conflict',
|
||||
OBJECT = 'object',
|
||||
NESTED = 'nested',
|
||||
HISTOGRAM = 'histogram',
|
||||
MISSING = 'missing',
|
||||
}
|
14
packages/kbn-field-types/tsconfig.json
Normal file
14
packages/kbn-field-types/tsconfig.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"incremental": false,
|
||||
"outDir": "./target_types",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"rootDir": "src",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": "../../../../packages/kbn-field-types/src"
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
import { asPrettyString } from '../utils';
|
||||
|
|
|
@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom/server';
|
||||
import { findLast, cloneDeep, escape } from 'lodash';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { HtmlContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
import { asPrettyString } from '../utils';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import moment, { unitOfTime, Duration } from 'moment';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
import { BytesFormat } from './bytes';
|
||||
import { NumberFormat } from './number';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
import numeral from '@elastic/numeral';
|
||||
// @ts-ignore
|
||||
import numeralLanguages from '@elastic/numeral/languages';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert } from '../types';
|
||||
import { UI_SETTINGS } from '../../constants';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import moment from 'moment';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
import React, { Fragment } from 'react';
|
||||
import ReactDOM from 'react-dom/server';
|
||||
import { escape, keys } from 'lodash';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { shortenDottedString } from '../../utils';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert, HtmlContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
import { UI_SETTINGS } from '../../constants';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
import escape from 'lodash/escape';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { asPrettyString, getHighlightHtml } from '../utils';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert, FIELD_FORMAT_IDS, HtmlContextTypeConvert } from '../types';
|
||||
import { shortenDottedString } from '../../utils';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { truncate } from 'lodash';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { escape, memoize } from 'lodash';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { getHighlightHtml } from '../utils';
|
||||
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
|
||||
import { FieldFormat } from '../field_format';
|
||||
import {
|
||||
TextContextTypeConvert,
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
// eslint-disable-next-line max-classes-per-file
|
||||
import { forOwn, isFunction, memoize, identity } from 'lodash';
|
||||
import { ES_FIELD_TYPES, KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
|
||||
import {
|
||||
FieldFormatsGetConfigFn,
|
||||
|
@ -20,7 +21,6 @@ import {
|
|||
import { baseFormatters } from './constants/base_formatters';
|
||||
import { FieldFormat } from './field_format';
|
||||
import { FormatFactory } from './utils';
|
||||
import { ES_FIELD_TYPES, KBN_FIELD_TYPES } from '../kbn_field_types/types';
|
||||
import { UI_SETTINGS } from '../constants';
|
||||
import { FieldFormatNotFoundError } from '../field_formats';
|
||||
import { SerializedFieldFormat } from '../../../expressions/common/types';
|
||||
|
|
|
@ -6,11 +6,43 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export { KbnFieldType } from './kbn_field_type';
|
||||
// NOTE: trick to mark exports as deprecated (only for constants and types, but not for interfaces, classes or enums)
|
||||
import {
|
||||
castEsToKbnFieldTypeName as oldCastEsToKbnFieldTypeName,
|
||||
getFilterableKbnTypeNames as oldGetFilterableKbnTypeNames,
|
||||
getKbnFieldType as oldGetKbnFieldType,
|
||||
getKbnTypeNames as oldGetKbnTypeNames,
|
||||
KbnFieldType,
|
||||
} from '@kbn/field-types';
|
||||
|
||||
/**
|
||||
* @deprecated Import from the "@kbn/field-types" package directly instead.
|
||||
* @removeBy 8.0
|
||||
*/
|
||||
const castEsToKbnFieldTypeName = oldCastEsToKbnFieldTypeName;
|
||||
|
||||
/**
|
||||
* @deprecated Import from the "@kbn/field-types" package directly instead.
|
||||
* @removeBy 8.0
|
||||
*/
|
||||
const getFilterableKbnTypeNames = oldGetFilterableKbnTypeNames;
|
||||
|
||||
/**
|
||||
* @deprecated Import from the "@kbn/field-types" package directly instead.
|
||||
* @removeBy 8.0
|
||||
*/
|
||||
const getKbnFieldType = oldGetKbnFieldType;
|
||||
|
||||
/**
|
||||
* @deprecated Import from the "@kbn/field-types" package directly instead.
|
||||
* @removeBy 8.0
|
||||
*/
|
||||
const getKbnTypeNames = oldGetKbnTypeNames;
|
||||
|
||||
export {
|
||||
castEsToKbnFieldTypeName,
|
||||
getKbnFieldType,
|
||||
getKbnTypeNames,
|
||||
getFilterableKbnTypeNames,
|
||||
} from './kbn_field_types';
|
||||
KbnFieldType,
|
||||
};
|
||||
|
|
|
@ -6,80 +6,6 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
/** @public **/
|
||||
export interface KbnFieldTypeOptions {
|
||||
sortable: boolean;
|
||||
filterable: boolean;
|
||||
name: string;
|
||||
esTypes: ES_FIELD_TYPES[];
|
||||
}
|
||||
import { KbnFieldTypeOptions, ES_FIELD_TYPES, KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
|
||||
/** @public **/
|
||||
export enum ES_FIELD_TYPES {
|
||||
_ID = '_id',
|
||||
_INDEX = '_index',
|
||||
_SOURCE = '_source',
|
||||
_TYPE = '_type',
|
||||
|
||||
STRING = 'string',
|
||||
TEXT = 'text',
|
||||
KEYWORD = 'keyword',
|
||||
VERSION = 'version',
|
||||
|
||||
BOOLEAN = 'boolean',
|
||||
OBJECT = 'object',
|
||||
|
||||
DATE = 'date',
|
||||
DATE_NANOS = 'date_nanos',
|
||||
DATE_RANGE = 'date_range',
|
||||
|
||||
GEO_POINT = 'geo_point',
|
||||
GEO_SHAPE = 'geo_shape',
|
||||
|
||||
FLOAT = 'float',
|
||||
HALF_FLOAT = 'half_float',
|
||||
SCALED_FLOAT = 'scaled_float',
|
||||
DOUBLE = 'double',
|
||||
INTEGER = 'integer',
|
||||
LONG = 'long',
|
||||
SHORT = 'short',
|
||||
UNSIGNED_LONG = 'unsigned_long',
|
||||
|
||||
FLOAT_RANGE = 'float_range',
|
||||
DOUBLE_RANGE = 'double_range',
|
||||
INTEGER_RANGE = 'integer_range',
|
||||
LONG_RANGE = 'long_range',
|
||||
|
||||
NESTED = 'nested',
|
||||
BYTE = 'byte',
|
||||
IP = 'ip',
|
||||
IP_RANGE = 'ip_range',
|
||||
ATTACHMENT = 'attachment',
|
||||
TOKEN_COUNT = 'token_count',
|
||||
MURMUR3 = 'murmur3',
|
||||
|
||||
HISTOGRAM = 'histogram',
|
||||
}
|
||||
|
||||
/** @public **/
|
||||
export enum KBN_FIELD_TYPES {
|
||||
_SOURCE = '_source',
|
||||
ATTACHMENT = 'attachment',
|
||||
BOOLEAN = 'boolean',
|
||||
DATE = 'date',
|
||||
DATE_RANGE = 'date_range',
|
||||
GEO_POINT = 'geo_point',
|
||||
GEO_SHAPE = 'geo_shape',
|
||||
IP = 'ip',
|
||||
IP_RANGE = 'ip_range',
|
||||
MURMUR3 = 'murmur3',
|
||||
NUMBER = 'number',
|
||||
NUMBER_RANGE = 'number_range',
|
||||
STRING = 'string',
|
||||
UNKNOWN = 'unknown',
|
||||
CONFLICT = 'conflict',
|
||||
OBJECT = 'object',
|
||||
NESTED = 'nested',
|
||||
HISTOGRAM = 'histogram',
|
||||
MISSING = 'missing',
|
||||
}
|
||||
export { KbnFieldTypeOptions, ES_FIELD_TYPES, KBN_FIELD_TYPES };
|
||||
|
|
|
@ -26,6 +26,7 @@ import { DetailedPeerCertificate } from 'tls';
|
|||
import { Ensure } from '@kbn/utility-types';
|
||||
import { EnvironmentMode } from '@kbn/config';
|
||||
import { ErrorToastOptions } from 'src/core/public/notifications';
|
||||
import { ES_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { EsQueryConfig as EsQueryConfig_2 } from '@kbn/es-query';
|
||||
import { estypes } from '@elastic/elasticsearch';
|
||||
import { EuiBreadcrumb } from '@elastic/eui';
|
||||
|
@ -60,6 +61,7 @@ import { ISearchOptions as ISearchOptions_2 } from 'src/plugins/data/public';
|
|||
import { ISearchSource as ISearchSource_2 } from 'src/plugins/data/public';
|
||||
import { IStorageWrapper } from 'src/plugins/kibana_utils/public';
|
||||
import { IUiSettingsClient } from 'src/core/public';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { KibanaClient } from '@elastic/elasticsearch/api/kibana';
|
||||
import { KibanaExecutionContext } from 'src/core/public';
|
||||
import { KueryNode as KueryNode_3 } from '@kbn/es-query';
|
||||
|
@ -608,8 +610,8 @@ export enum BUCKET_TYPES {
|
|||
|
||||
// Warning: (ae-missing-release-tag) "castEsToKbnFieldTypeName" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public
|
||||
export const castEsToKbnFieldTypeName: (esType: ES_FIELD_TYPES | string) => KBN_FIELD_TYPES;
|
||||
// @public @deprecated (undocumented)
|
||||
export const castEsToKbnFieldTypeName: (esType: string) => import("@kbn/field-types").KBN_FIELD_TYPES;
|
||||
|
||||
// Warning: (ae-forgotten-export) The symbol "QuerySetup" needs to be exported by the entry point index.d.ts
|
||||
// Warning: (ae-forgotten-export) The symbol "BaseStateContainer" needs to be exported by the entry point index.d.ts
|
||||
|
@ -715,79 +717,7 @@ export class DuplicateIndexPatternError extends Error {
|
|||
constructor(message: string);
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export enum ES_FIELD_TYPES {
|
||||
// (undocumented)
|
||||
ATTACHMENT = "attachment",
|
||||
// (undocumented)
|
||||
BOOLEAN = "boolean",
|
||||
// (undocumented)
|
||||
BYTE = "byte",
|
||||
// (undocumented)
|
||||
DATE = "date",
|
||||
// (undocumented)
|
||||
DATE_NANOS = "date_nanos",
|
||||
// (undocumented)
|
||||
DATE_RANGE = "date_range",
|
||||
// (undocumented)
|
||||
DOUBLE = "double",
|
||||
// (undocumented)
|
||||
DOUBLE_RANGE = "double_range",
|
||||
// (undocumented)
|
||||
FLOAT = "float",
|
||||
// (undocumented)
|
||||
FLOAT_RANGE = "float_range",
|
||||
// (undocumented)
|
||||
GEO_POINT = "geo_point",
|
||||
// (undocumented)
|
||||
GEO_SHAPE = "geo_shape",
|
||||
// (undocumented)
|
||||
HALF_FLOAT = "half_float",
|
||||
// (undocumented)
|
||||
HISTOGRAM = "histogram",
|
||||
// (undocumented)
|
||||
_ID = "_id",
|
||||
// (undocumented)
|
||||
_INDEX = "_index",
|
||||
// (undocumented)
|
||||
INTEGER = "integer",
|
||||
// (undocumented)
|
||||
INTEGER_RANGE = "integer_range",
|
||||
// (undocumented)
|
||||
IP = "ip",
|
||||
// (undocumented)
|
||||
IP_RANGE = "ip_range",
|
||||
// (undocumented)
|
||||
KEYWORD = "keyword",
|
||||
// (undocumented)
|
||||
LONG = "long",
|
||||
// (undocumented)
|
||||
LONG_RANGE = "long_range",
|
||||
// (undocumented)
|
||||
MURMUR3 = "murmur3",
|
||||
// (undocumented)
|
||||
NESTED = "nested",
|
||||
// (undocumented)
|
||||
OBJECT = "object",
|
||||
// (undocumented)
|
||||
SCALED_FLOAT = "scaled_float",
|
||||
// (undocumented)
|
||||
SHORT = "short",
|
||||
// (undocumented)
|
||||
_SOURCE = "_source",
|
||||
// (undocumented)
|
||||
STRING = "string",
|
||||
// (undocumented)
|
||||
TEXT = "text",
|
||||
// (undocumented)
|
||||
TOKEN_COUNT = "token_count",
|
||||
// (undocumented)
|
||||
_TYPE = "_type",
|
||||
// (undocumented)
|
||||
UNSIGNED_LONG = "unsigned_long",
|
||||
// (undocumented)
|
||||
VERSION = "version"
|
||||
}
|
||||
export { ES_FIELD_TYPES }
|
||||
|
||||
// Warning: (ae-missing-release-tag) "ES_SEARCH_STRATEGY" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
|
@ -1182,7 +1112,7 @@ export function getEsQueryConfig(config: KibanaConfig): EsQueryConfig_2;
|
|||
|
||||
// Warning: (ae-missing-release-tag) "getKbnTypeNames" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public
|
||||
// @public @deprecated (undocumented)
|
||||
export const getKbnTypeNames: () => string[];
|
||||
|
||||
// Warning: (ae-forgotten-export) The symbol "ISearchRequestParams" needs to be exported by the entry point index.d.ts
|
||||
|
@ -1873,47 +1803,7 @@ export const isQuery: (x: unknown) => x is Query;
|
|||
// @public (undocumented)
|
||||
export const isTimeRange: (x: unknown) => x is TimeRange;
|
||||
|
||||
// @public (undocumented)
|
||||
export enum KBN_FIELD_TYPES {
|
||||
// (undocumented)
|
||||
ATTACHMENT = "attachment",
|
||||
// (undocumented)
|
||||
BOOLEAN = "boolean",
|
||||
// (undocumented)
|
||||
CONFLICT = "conflict",
|
||||
// (undocumented)
|
||||
DATE = "date",
|
||||
// (undocumented)
|
||||
DATE_RANGE = "date_range",
|
||||
// (undocumented)
|
||||
GEO_POINT = "geo_point",
|
||||
// (undocumented)
|
||||
GEO_SHAPE = "geo_shape",
|
||||
// (undocumented)
|
||||
HISTOGRAM = "histogram",
|
||||
// (undocumented)
|
||||
IP = "ip",
|
||||
// (undocumented)
|
||||
IP_RANGE = "ip_range",
|
||||
// (undocumented)
|
||||
MISSING = "missing",
|
||||
// (undocumented)
|
||||
MURMUR3 = "murmur3",
|
||||
// (undocumented)
|
||||
NESTED = "nested",
|
||||
// (undocumented)
|
||||
NUMBER = "number",
|
||||
// (undocumented)
|
||||
NUMBER_RANGE = "number_range",
|
||||
// (undocumented)
|
||||
OBJECT = "object",
|
||||
// (undocumented)
|
||||
_SOURCE = "_source",
|
||||
// (undocumented)
|
||||
STRING = "string",
|
||||
// (undocumented)
|
||||
UNKNOWN = "unknown"
|
||||
}
|
||||
export { KBN_FIELD_TYPES }
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
|
|
|
@ -23,6 +23,7 @@ import { ElasticsearchClient as ElasticsearchClient_2 } from 'kibana/server';
|
|||
import { Ensure } from '@kbn/utility-types';
|
||||
import { EnvironmentMode } from '@kbn/config';
|
||||
import { ErrorToastOptions } from 'src/core/public/notifications';
|
||||
import { ES_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { EsQueryConfig as EsQueryConfig_2 } from '@kbn/es-query';
|
||||
import { estypes } from '@elastic/elasticsearch';
|
||||
import { EventEmitter } from 'events';
|
||||
|
@ -43,6 +44,7 @@ import { ISearchOptions as ISearchOptions_2 } from 'src/plugins/data/public';
|
|||
import { ISearchSource } from 'src/plugins/data/public';
|
||||
import { IUiSettingsClient } from 'src/core/server';
|
||||
import { IUiSettingsClient as IUiSettingsClient_3 } from 'kibana/server';
|
||||
import { KBN_FIELD_TYPES } from '@kbn/field-types';
|
||||
import { KibanaExecutionContext } from 'src/core/public';
|
||||
import { KibanaRequest } from 'src/core/server';
|
||||
import { KibanaRequest as KibanaRequest_2 } from 'kibana/server';
|
||||
|
@ -353,8 +355,8 @@ export const buildQueryFromFilters: (filters: Filter_2[] | undefined, indexPatte
|
|||
|
||||
// Warning: (ae-missing-release-tag) "castEsToKbnFieldTypeName" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public
|
||||
export const castEsToKbnFieldTypeName: (esType: ES_FIELD_TYPES | string) => KBN_FIELD_TYPES;
|
||||
// @public @deprecated (undocumented)
|
||||
export const castEsToKbnFieldTypeName: (esType: string) => import("@kbn/field-types").KBN_FIELD_TYPES;
|
||||
|
||||
// Warning: (ae-forgotten-export) The symbol "PluginConfigDescriptor" needs to be exported by the entry point index.d.ts
|
||||
// Warning: (ae-forgotten-export) The symbol "ConfigSchema" needs to be exported by the entry point index.d.ts
|
||||
|
@ -369,79 +371,7 @@ export interface DataRequestHandlerContext extends RequestHandlerContext {
|
|||
search: SearchRequestHandlerContext;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export enum ES_FIELD_TYPES {
|
||||
// (undocumented)
|
||||
ATTACHMENT = "attachment",
|
||||
// (undocumented)
|
||||
BOOLEAN = "boolean",
|
||||
// (undocumented)
|
||||
BYTE = "byte",
|
||||
// (undocumented)
|
||||
DATE = "date",
|
||||
// (undocumented)
|
||||
DATE_NANOS = "date_nanos",
|
||||
// (undocumented)
|
||||
DATE_RANGE = "date_range",
|
||||
// (undocumented)
|
||||
DOUBLE = "double",
|
||||
// (undocumented)
|
||||
DOUBLE_RANGE = "double_range",
|
||||
// (undocumented)
|
||||
FLOAT = "float",
|
||||
// (undocumented)
|
||||
FLOAT_RANGE = "float_range",
|
||||
// (undocumented)
|
||||
GEO_POINT = "geo_point",
|
||||
// (undocumented)
|
||||
GEO_SHAPE = "geo_shape",
|
||||
// (undocumented)
|
||||
HALF_FLOAT = "half_float",
|
||||
// (undocumented)
|
||||
HISTOGRAM = "histogram",
|
||||
// (undocumented)
|
||||
_ID = "_id",
|
||||
// (undocumented)
|
||||
_INDEX = "_index",
|
||||
// (undocumented)
|
||||
INTEGER = "integer",
|
||||
// (undocumented)
|
||||
INTEGER_RANGE = "integer_range",
|
||||
// (undocumented)
|
||||
IP = "ip",
|
||||
// (undocumented)
|
||||
IP_RANGE = "ip_range",
|
||||
// (undocumented)
|
||||
KEYWORD = "keyword",
|
||||
// (undocumented)
|
||||
LONG = "long",
|
||||
// (undocumented)
|
||||
LONG_RANGE = "long_range",
|
||||
// (undocumented)
|
||||
MURMUR3 = "murmur3",
|
||||
// (undocumented)
|
||||
NESTED = "nested",
|
||||
// (undocumented)
|
||||
OBJECT = "object",
|
||||
// (undocumented)
|
||||
SCALED_FLOAT = "scaled_float",
|
||||
// (undocumented)
|
||||
SHORT = "short",
|
||||
// (undocumented)
|
||||
_SOURCE = "_source",
|
||||
// (undocumented)
|
||||
STRING = "string",
|
||||
// (undocumented)
|
||||
TEXT = "text",
|
||||
// (undocumented)
|
||||
TOKEN_COUNT = "token_count",
|
||||
// (undocumented)
|
||||
_TYPE = "_type",
|
||||
// (undocumented)
|
||||
UNSIGNED_LONG = "unsigned_long",
|
||||
// (undocumented)
|
||||
VERSION = "version"
|
||||
}
|
||||
export { ES_FIELD_TYPES }
|
||||
|
||||
// Warning: (ae-missing-release-tag) "ES_SEARCH_STRATEGY" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
|
@ -1081,47 +1011,7 @@ export interface ISearchStrategy<SearchStrategyRequest extends IKibanaSearchRequ
|
|||
search: (request: SearchStrategyRequest, options: ISearchOptions, deps: SearchStrategyDependencies) => Observable<SearchStrategyResponse>;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export enum KBN_FIELD_TYPES {
|
||||
// (undocumented)
|
||||
ATTACHMENT = "attachment",
|
||||
// (undocumented)
|
||||
BOOLEAN = "boolean",
|
||||
// (undocumented)
|
||||
CONFLICT = "conflict",
|
||||
// (undocumented)
|
||||
DATE = "date",
|
||||
// (undocumented)
|
||||
DATE_RANGE = "date_range",
|
||||
// (undocumented)
|
||||
GEO_POINT = "geo_point",
|
||||
// (undocumented)
|
||||
GEO_SHAPE = "geo_shape",
|
||||
// (undocumented)
|
||||
HISTOGRAM = "histogram",
|
||||
// (undocumented)
|
||||
IP = "ip",
|
||||
// (undocumented)
|
||||
IP_RANGE = "ip_range",
|
||||
// (undocumented)
|
||||
MISSING = "missing",
|
||||
// (undocumented)
|
||||
MURMUR3 = "murmur3",
|
||||
// (undocumented)
|
||||
NESTED = "nested",
|
||||
// (undocumented)
|
||||
NUMBER = "number",
|
||||
// (undocumented)
|
||||
NUMBER_RANGE = "number_range",
|
||||
// (undocumented)
|
||||
OBJECT = "object",
|
||||
// (undocumented)
|
||||
_SOURCE = "_source",
|
||||
// (undocumented)
|
||||
STRING = "string",
|
||||
// (undocumented)
|
||||
UNKNOWN = "unknown"
|
||||
}
|
||||
export { KBN_FIELD_TYPES }
|
||||
|
||||
// Warning: (ae-missing-release-tag) "KibanaContext" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
|
|
|
@ -2798,6 +2798,10 @@
|
|||
version "0.0.0"
|
||||
uid ""
|
||||
|
||||
"@kbn/field-types@link:bazel-bin/packages/kbn-field-types":
|
||||
version "0.0.0"
|
||||
uid ""
|
||||
|
||||
"@kbn/i18n@link:bazel-bin/packages/kbn-i18n":
|
||||
version "0.0.0"
|
||||
uid ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue